Codebase list sugar-artwork / 6e69629
Imported Upstream version 0.84.1 Jonas Smedegaard 15 years ago
38 changed file(s) with 42223 addition(s) and 1257 deletion(s). Raw diff Collapse all Expand all
+0
-40
.gitignore less more
0 INSTALL
1 Makefile
2 Makefile.in
3 aclocal.m4
4 *.stamp
5 *.o
6 autom4te.cache
7 config.guess
8 config.h
9 config.h.in
10 config.log
11 config.status
12 config.sub
13 configure
14 depcomp
15 *.la
16 *.lo
17 install-sh
18 intltool-*
19 libtool
20 ltmain.sh
21 missing
22 mkinstalldirs
23 Makefile.in.in
24 .deps
25 .libs
26 stamp-h1
27 *~
28 gtk/theme/sugar.gtkrc
29 gtk/theme/sugar-xo.gtkrc
30 compile
31 test/engines
32 test/symbols
33 test/valgrind-logs
34 test/torturetest
35 test/torture_*
36 test/exported_*
37 .DS_Store
38 gtk/theme/sugar-100.gtkrc
39 gtk/theme/sugar-72.gtkrc
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = .
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog NEWS \
40 config.guess config.sub depcomp install-sh ltmain.sh missing
41 subdir = .
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
47 configure.lineno configure.status.lineno
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_HEADER = config.h
50 CONFIG_CLEAN_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54 html-recursive info-recursive install-data-recursive \
55 install-exec-recursive install-info-recursive \
56 install-recursive installcheck-recursive installdirs-recursive \
57 pdf-recursive ps-recursive uninstall-info-recursive \
58 uninstall-recursive
59 ETAGS = etags
60 CTAGS = ctags
61 DIST_SUBDIRS = $(SUBDIRS)
62 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
63 distdir = $(PACKAGE)-$(VERSION)
64 top_distdir = $(distdir)
65 am__remove_distdir = \
66 { test ! -d $(distdir) \
67 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
68 && rm -fr $(distdir); }; }
69 GZIP_ENV = --best
70 DIST_ARCHIVES = $(distdir).tar.bz2
71 distuninstallcheck_listfiles = find . -type f -print
72 distcleancheck_listfiles = find . -type f -print
73 ACLOCAL = @ACLOCAL@
74 AMDEP_FALSE = @AMDEP_FALSE@
75 AMDEP_TRUE = @AMDEP_TRUE@
76 AMTAR = @AMTAR@
77 AR = @AR@
78 AUTOCONF = @AUTOCONF@
79 AUTOHEADER = @AUTOHEADER@
80 AUTOMAKE = @AUTOMAKE@
81 AWK = @AWK@
82 CC = @CC@
83 CCDEPMODE = @CCDEPMODE@
84 CFLAGS = @CFLAGS@
85 CPP = @CPP@
86 CPPFLAGS = @CPPFLAGS@
87 CYGPATH_W = @CYGPATH_W@
88 DEFS = @DEFS@
89 DEPDIR = @DEPDIR@
90 DSYMUTIL = @DSYMUTIL@
91 DUMPBIN = @DUMPBIN@
92 ECHO_C = @ECHO_C@
93 ECHO_N = @ECHO_N@
94 ECHO_T = @ECHO_T@
95 EGREP = @EGREP@
96 ENGINE_CFLAGS = @ENGINE_CFLAGS@
97 ENGINE_LIBS = @ENGINE_LIBS@
98 EXEEXT = @EXEEXT@
99 FGREP = @FGREP@
100 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
101 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
102 GREP = @GREP@
103 GTK2_CFLAGS = @GTK2_CFLAGS@
104 GTK2_LIBS = @GTK2_LIBS@
105 GTK_VERSION = @GTK_VERSION@
106 ICONMAP = @ICONMAP@
107 ICON_SLICER = @ICON_SLICER@
108 INSTALL_DATA = @INSTALL_DATA@
109 INSTALL_PROGRAM = @INSTALL_PROGRAM@
110 INSTALL_SCRIPT = @INSTALL_SCRIPT@
111 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
112 LD = @LD@
113 LDFLAGS = @LDFLAGS@
114 LIBOBJS = @LIBOBJS@
115 LIBS = @LIBS@
116 LIBTOOL = @LIBTOOL@
117 LIPO = @LIPO@
118 LN_S = @LN_S@
119 LTLIBOBJS = @LTLIBOBJS@
120 MAKEINFO = @MAKEINFO@
121 NM = @NM@
122 NMEDIT = @NMEDIT@
123 OBJEXT = @OBJEXT@
124 OTOOL = @OTOOL@
125 OTOOL64 = @OTOOL64@
126 PACKAGE = @PACKAGE@
127 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
128 PACKAGE_NAME = @PACKAGE_NAME@
129 PACKAGE_STRING = @PACKAGE_STRING@
130 PACKAGE_TARNAME = @PACKAGE_TARNAME@
131 PACKAGE_VERSION = @PACKAGE_VERSION@
132 PATH_SEPARATOR = @PATH_SEPARATOR@
133 PKG_CONFIG = @PKG_CONFIG@
134 RANLIB = @RANLIB@
135 SED = @SED@
136 SET_MAKE = @SET_MAKE@
137 SHELL = @SHELL@
138 STRIP = @STRIP@
139 VERSION = @VERSION@
140 ac_ct_CC = @ac_ct_CC@
141 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
142 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
143 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
144 am__include = @am__include@
145 am__leading_dot = @am__leading_dot@
146 am__quote = @am__quote@
147 am__tar = @am__tar@
148 am__untar = @am__untar@
149 bindir = @bindir@
150 build = @build@
151 build_alias = @build_alias@
152 build_cpu = @build_cpu@
153 build_os = @build_os@
154 build_vendor = @build_vendor@
155 datadir = @datadir@
156 datarootdir = @datarootdir@
157 docdir = @docdir@
158 dvidir = @dvidir@
159 exec_prefix = @exec_prefix@
160 host = @host@
161 host_alias = @host_alias@
162 host_cpu = @host_cpu@
163 host_os = @host_os@
164 host_vendor = @host_vendor@
165 htmldir = @htmldir@
166 includedir = @includedir@
167 infodir = @infodir@
168 install_sh = @install_sh@
169 libdir = @libdir@
170 libexecdir = @libexecdir@
171 localedir = @localedir@
172 localstatedir = @localstatedir@
173 lt_ECHO = @lt_ECHO@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 oldincludedir = @oldincludedir@
177 pdfdir = @pdfdir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 psdir = @psdir@
181 sbindir = @sbindir@
182 sharedstatedir = @sharedstatedir@
183 sysconfdir = @sysconfdir@
184 target_alias = @target_alias@
185 SUBDIRS = cursor icons gtk matchbox
186 all: config.h
187 $(MAKE) $(AM_MAKEFLAGS) all-recursive
188
189 .SUFFIXES:
190 am--refresh:
191 @:
192 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
193 @for dep in $?; do \
194 case '$(am__configure_deps)' in \
195 *$$dep*) \
196 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
197 cd $(srcdir) && $(AUTOMAKE) --foreign \
198 && exit 0; \
199 exit 1;; \
200 esac; \
201 done; \
202 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
203 cd $(top_srcdir) && \
204 $(AUTOMAKE) --foreign Makefile
205 .PRECIOUS: Makefile
206 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
207 @case '$?' in \
208 *config.status*) \
209 echo ' $(SHELL) ./config.status'; \
210 $(SHELL) ./config.status;; \
211 *) \
212 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
213 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
214 esac;
215
216 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
217 $(SHELL) ./config.status --recheck
218
219 $(top_srcdir)/configure: $(am__configure_deps)
220 cd $(srcdir) && $(AUTOCONF)
221 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
222 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
223
224 config.h: stamp-h1
225 @if test ! -f $@; then \
226 rm -f stamp-h1; \
227 $(MAKE) stamp-h1; \
228 else :; fi
229
230 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
231 @rm -f stamp-h1
232 cd $(top_builddir) && $(SHELL) ./config.status config.h
233 $(srcdir)/config.h.in: $(am__configure_deps)
234 cd $(top_srcdir) && $(AUTOHEADER)
235 rm -f stamp-h1
236 touch $@
237
238 distclean-hdr:
239 -rm -f config.h stamp-h1
240
241 mostlyclean-libtool:
242 -rm -f *.lo
243
244 clean-libtool:
245 -rm -rf .libs _libs
246
247 distclean-libtool:
248 -rm -f libtool
249 uninstall-info-am:
250
251 # This directory's subdirectories are mostly independent; you can cd
252 # into them and run `make' without going through this Makefile.
253 # To change the values of `make' variables: instead of editing Makefiles,
254 # (1) if the variable is set in `config.status', edit `config.status'
255 # (which will cause the Makefiles to be regenerated when you run `make');
256 # (2) otherwise, pass the desired values on the `make' command line.
257 $(RECURSIVE_TARGETS):
258 @failcom='exit 1'; \
259 for f in x $$MAKEFLAGS; do \
260 case $$f in \
261 *=* | --[!k]*);; \
262 *k*) failcom='fail=yes';; \
263 esac; \
264 done; \
265 dot_seen=no; \
266 target=`echo $@ | sed s/-recursive//`; \
267 list='$(SUBDIRS)'; for subdir in $$list; do \
268 echo "Making $$target in $$subdir"; \
269 if test "$$subdir" = "."; then \
270 dot_seen=yes; \
271 local_target="$$target-am"; \
272 else \
273 local_target="$$target"; \
274 fi; \
275 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
276 || eval $$failcom; \
277 done; \
278 if test "$$dot_seen" = "no"; then \
279 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
280 fi; test -z "$$fail"
281
282 mostlyclean-recursive clean-recursive distclean-recursive \
283 maintainer-clean-recursive:
284 @failcom='exit 1'; \
285 for f in x $$MAKEFLAGS; do \
286 case $$f in \
287 *=* | --[!k]*);; \
288 *k*) failcom='fail=yes';; \
289 esac; \
290 done; \
291 dot_seen=no; \
292 case "$@" in \
293 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
294 *) list='$(SUBDIRS)' ;; \
295 esac; \
296 rev=''; for subdir in $$list; do \
297 if test "$$subdir" = "."; then :; else \
298 rev="$$subdir $$rev"; \
299 fi; \
300 done; \
301 rev="$$rev ."; \
302 target=`echo $@ | sed s/-recursive//`; \
303 for subdir in $$rev; do \
304 echo "Making $$target in $$subdir"; \
305 if test "$$subdir" = "."; then \
306 local_target="$$target-am"; \
307 else \
308 local_target="$$target"; \
309 fi; \
310 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
311 || eval $$failcom; \
312 done && test -z "$$fail"
313 tags-recursive:
314 list='$(SUBDIRS)'; for subdir in $$list; do \
315 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
316 done
317 ctags-recursive:
318 list='$(SUBDIRS)'; for subdir in $$list; do \
319 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
320 done
321
322 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
323 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
324 unique=`for i in $$list; do \
325 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
326 done | \
327 $(AWK) ' { files[$$0] = 1; } \
328 END { for (i in files) print i; }'`; \
329 mkid -fID $$unique
330 tags: TAGS
331
332 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
333 $(TAGS_FILES) $(LISP)
334 tags=; \
335 here=`pwd`; \
336 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
337 include_option=--etags-include; \
338 empty_fix=.; \
339 else \
340 include_option=--include; \
341 empty_fix=; \
342 fi; \
343 list='$(SUBDIRS)'; for subdir in $$list; do \
344 if test "$$subdir" = .; then :; else \
345 test ! -f $$subdir/TAGS || \
346 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
347 fi; \
348 done; \
349 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
350 unique=`for i in $$list; do \
351 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 done | \
353 $(AWK) ' { files[$$0] = 1; } \
354 END { for (i in files) print i; }'`; \
355 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
356 test -n "$$unique" || unique=$$empty_fix; \
357 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
358 $$tags $$unique; \
359 fi
360 ctags: CTAGS
361 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
363 tags=; \
364 here=`pwd`; \
365 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) ' { files[$$0] = 1; } \
370 END { for (i in files) print i; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375 GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380 distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383 distdir: $(DISTFILES)
384 $(am__remove_distdir)
385 mkdir $(distdir)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
388 list='$(DISTFILES)'; for file in $$list; do \
389 case $$file in \
390 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
391 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
392 esac; \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
396 dir="/$$dir"; \
397 $(mkdir_p) "$(distdir)$$dir"; \
398 else \
399 dir=''; \
400 fi; \
401 if test -d $$d/$$file; then \
402 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
403 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
404 fi; \
405 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
406 else \
407 test -f $(distdir)/$$file \
408 || cp -p $$d/$$file $(distdir)/$$file \
409 || exit 1; \
410 fi; \
411 done
412 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
413 if test "$$subdir" = .; then :; else \
414 test -d "$(distdir)/$$subdir" \
415 || $(mkdir_p) "$(distdir)/$$subdir" \
416 || exit 1; \
417 distdir=`$(am__cd) $(distdir) && pwd`; \
418 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
419 (cd $$subdir && \
420 $(MAKE) $(AM_MAKEFLAGS) \
421 top_distdir="$$top_distdir" \
422 distdir="$$distdir/$$subdir" \
423 distdir) \
424 || exit 1; \
425 fi; \
426 done
427 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
428 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
429 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
430 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
431 || chmod -R a+r $(distdir)
432 dist-gzip: distdir
433 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
434 $(am__remove_distdir)
435 dist-bzip2: distdir
436 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
437 $(am__remove_distdir)
438
439 dist-tarZ: distdir
440 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
441 $(am__remove_distdir)
442
443 dist-shar: distdir
444 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
445 $(am__remove_distdir)
446
447 dist-zip: distdir
448 -rm -f $(distdir).zip
449 zip -rq $(distdir).zip $(distdir)
450 $(am__remove_distdir)
451
452 dist dist-all: distdir
453 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
454 $(am__remove_distdir)
455
456 # This target untars the dist file and tries a VPATH configuration. Then
457 # it guarantees that the distribution is self-contained by making another
458 # tarfile.
459 distcheck: dist
460 case '$(DIST_ARCHIVES)' in \
461 *.tar.gz*) \
462 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
463 *.tar.bz2*) \
464 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
465 *.tar.Z*) \
466 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
467 *.shar.gz*) \
468 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
469 *.zip*) \
470 unzip $(distdir).zip ;;\
471 esac
472 chmod -R a-w $(distdir); chmod a+w $(distdir)
473 mkdir $(distdir)/_build
474 mkdir $(distdir)/_inst
475 chmod a-w $(distdir)
476 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
477 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
478 && cd $(distdir)/_build \
479 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
480 $(DISTCHECK_CONFIGURE_FLAGS) \
481 && $(MAKE) $(AM_MAKEFLAGS) \
482 && $(MAKE) $(AM_MAKEFLAGS) dvi \
483 && $(MAKE) $(AM_MAKEFLAGS) check \
484 && $(MAKE) $(AM_MAKEFLAGS) install \
485 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
486 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
487 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
488 distuninstallcheck \
489 && chmod -R a-w "$$dc_install_base" \
490 && ({ \
491 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
492 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
493 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
494 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
495 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
496 } || { rm -rf "$$dc_destdir"; exit 1; }) \
497 && rm -rf "$$dc_destdir" \
498 && $(MAKE) $(AM_MAKEFLAGS) dist \
499 && rm -rf $(DIST_ARCHIVES) \
500 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
501 $(am__remove_distdir)
502 @(echo "$(distdir) archives ready for distribution: "; \
503 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
504 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
505 distuninstallcheck:
506 @cd $(distuninstallcheck_dir) \
507 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
508 || { echo "ERROR: files left after uninstall:" ; \
509 if test -n "$(DESTDIR)"; then \
510 echo " (check DESTDIR support)"; \
511 fi ; \
512 $(distuninstallcheck_listfiles) ; \
513 exit 1; } >&2
514 distcleancheck: distclean
515 @if test '$(srcdir)' = . ; then \
516 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
517 exit 1 ; \
518 fi
519 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
520 || { echo "ERROR: files left in build directory after distclean:" ; \
521 $(distcleancheck_listfiles) ; \
522 exit 1; } >&2
523 check-am: all-am
524 check: check-recursive
525 all-am: Makefile config.h
526 installdirs: installdirs-recursive
527 installdirs-am:
528 install: install-recursive
529 install-exec: install-exec-recursive
530 install-data: install-data-recursive
531 uninstall: uninstall-recursive
532
533 install-am: all-am
534 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
535
536 installcheck: installcheck-recursive
537 install-strip:
538 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
539 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
540 `test -z '$(STRIP)' || \
541 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
542 mostlyclean-generic:
543
544 clean-generic:
545
546 distclean-generic:
547 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
548
549 maintainer-clean-generic:
550 @echo "This command is intended for maintainers to use"
551 @echo "it deletes files that may require special tools to rebuild."
552 clean: clean-recursive
553
554 clean-am: clean-generic clean-libtool mostlyclean-am
555
556 distclean: distclean-recursive
557 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
558 -rm -f Makefile
559 distclean-am: clean-am distclean-generic distclean-hdr \
560 distclean-libtool distclean-tags
561
562 dvi: dvi-recursive
563
564 dvi-am:
565
566 html: html-recursive
567
568 info: info-recursive
569
570 info-am:
571
572 install-data-am:
573
574 install-exec-am:
575
576 install-info: install-info-recursive
577
578 install-man:
579
580 installcheck-am:
581
582 maintainer-clean: maintainer-clean-recursive
583 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
584 -rm -rf $(top_srcdir)/autom4te.cache
585 -rm -f Makefile
586 maintainer-clean-am: distclean-am maintainer-clean-generic
587
588 mostlyclean: mostlyclean-recursive
589
590 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
591
592 pdf: pdf-recursive
593
594 pdf-am:
595
596 ps: ps-recursive
597
598 ps-am:
599
600 uninstall-am: uninstall-info-am
601
602 uninstall-info: uninstall-info-recursive
603
604 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
605 check-am clean clean-generic clean-libtool clean-recursive \
606 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
607 dist-shar dist-tarZ dist-zip distcheck distclean \
608 distclean-generic distclean-hdr distclean-libtool \
609 distclean-recursive distclean-tags distcleancheck distdir \
610 distuninstallcheck dvi dvi-am html html-am info info-am \
611 install install-am install-data install-data-am install-exec \
612 install-exec-am install-info install-info-am install-man \
613 install-strip installcheck installcheck-am installdirs \
614 installdirs-am maintainer-clean maintainer-clean-generic \
615 maintainer-clean-recursive mostlyclean mostlyclean-generic \
616 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
617 tags tags-recursive uninstall uninstall-am uninstall-info-am
618
619 # Tell versions [3.59,3.63) of GNU make to not export all variables.
620 # Otherwise a system limit (for SysV at least) may be exceeded.
621 .NOEXPORT:
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14 #
15 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16 # 2006, 2007, 2008 Free Software Foundation, Inc.
17 # Written by Gordon Matzigkeit, 1996
18 #
19 # This file is free software; the Free Software Foundation gives
20 # unlimited permission to copy and/or distribute it, with or without
21 # modifications, as long as this notice is preserved.
22
23 m4_define([_LT_COPYING], [dnl
24 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25 # 2006, 2007, 2008 Free Software Foundation, Inc.
26 # Written by Gordon Matzigkeit, 1996
27 #
28 # This file is part of GNU Libtool.
29 #
30 # GNU Libtool is free software; you can redistribute it and/or
31 # modify it under the terms of the GNU General Public License as
32 # published by the Free Software Foundation; either version 2 of
33 # the License, or (at your option) any later version.
34 #
35 # As a special exception to the GNU General Public License,
36 # if you distribute this file as part of a program or library that
37 # is built using GNU Libtool, you may include this file under the
38 # same distribution terms that you use for the rest of that program.
39 #
40 # GNU Libtool is distributed in the hope that it will be useful,
41 # but WITHOUT ANY WARRANTY; without even the implied warranty of
42 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 # GNU General Public License for more details.
44 #
45 # You should have received a copy of the GNU General Public License
46 # along with GNU Libtool; see the file COPYING. If not, a copy
47 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48 # obtained by writing to the Free Software Foundation, Inc.,
49 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
50 ])
51
52 # serial 56 LT_INIT
53
54
55 # LT_PREREQ(VERSION)
56 # ------------------
57 # Complain and exit if this libtool version is less that VERSION.
58 m4_defun([LT_PREREQ],
59 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
60 [m4_default([$3],
61 [m4_fatal([Libtool version $1 or higher is required],
62 63)])],
63 [$2])])
64
65
66 # _LT_CHECK_BUILDDIR
67 # ------------------
68 # Complain if the absolute build directory name contains unusual characters
69 m4_defun([_LT_CHECK_BUILDDIR],
70 [case `pwd` in
71 *\ * | *\ *)
72 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
73 esac
74 ])
75
76
77 # LT_INIT([OPTIONS])
78 # ------------------
79 AC_DEFUN([LT_INIT],
80 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
81 AC_BEFORE([$0], [LT_LANG])dnl
82 AC_BEFORE([$0], [LT_OUTPUT])dnl
83 AC_BEFORE([$0], [LTDL_INIT])dnl
84 m4_require([_LT_CHECK_BUILDDIR])dnl
85
86 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
87 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
88 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
89 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
90 dnl unless we require an AC_DEFUNed macro:
91 AC_REQUIRE([LTOPTIONS_VERSION])dnl
92 AC_REQUIRE([LTSUGAR_VERSION])dnl
93 AC_REQUIRE([LTVERSION_VERSION])dnl
94 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
95 m4_require([_LT_PROG_LTMAIN])dnl
96
97 dnl Parse OPTIONS
98 _LT_SET_OPTIONS([$0], [$1])
99
100 # This can be used to rebuild libtool when needed
101 LIBTOOL_DEPS="$ltmain"
102
103 # Always use our own libtool.
104 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
105 AC_SUBST(LIBTOOL)dnl
106
107 _LT_SETUP
108
109 # Only expand once:
110 m4_define([LT_INIT])
111 ])# LT_INIT
112
113 # Old names:
114 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
115 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
116 dnl aclocal-1.4 backwards compatibility:
117 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
118 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
119
120
121 # _LT_CC_BASENAME(CC)
122 # -------------------
123 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
124 m4_defun([_LT_CC_BASENAME],
125 [for cc_temp in $1""; do
126 case $cc_temp in
127 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
128 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
129 \-*) ;;
130 *) break;;
131 esac
132 done
133 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
134 ])
135
136
137 # _LT_FILEUTILS_DEFAULTS
138 # ----------------------
139 # It is okay to use these file commands and assume they have been set
140 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
141 m4_defun([_LT_FILEUTILS_DEFAULTS],
142 [: ${CP="cp -f"}
143 : ${MV="mv -f"}
144 : ${RM="rm -f"}
145 ])# _LT_FILEUTILS_DEFAULTS
146
147
148 # _LT_SETUP
149 # ---------
150 m4_defun([_LT_SETUP],
151 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
152 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
153 _LT_DECL([], [host_alias], [0], [The host system])dnl
154 _LT_DECL([], [host], [0])dnl
155 _LT_DECL([], [host_os], [0])dnl
156 dnl
157 _LT_DECL([], [build_alias], [0], [The build system])dnl
158 _LT_DECL([], [build], [0])dnl
159 _LT_DECL([], [build_os], [0])dnl
160 dnl
161 AC_REQUIRE([AC_PROG_CC])dnl
162 AC_REQUIRE([LT_PATH_LD])dnl
163 AC_REQUIRE([LT_PATH_NM])dnl
164 dnl
165 AC_REQUIRE([AC_PROG_LN_S])dnl
166 test -z "$LN_S" && LN_S="ln -s"
167 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
168 dnl
169 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
170 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
171 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
172 dnl
173 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
174 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
175 m4_require([_LT_CMD_RELOAD])dnl
176 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
177 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
178 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
179
180 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
182 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
184 setopt NO_GLOB_SUBST
185 fi
186 ])
187 if test -n "${ZSH_VERSION+set}" ; then
188 setopt NO_GLOB_SUBST
189 fi
190
191 _LT_CHECK_OBJDIR
192
193 m4_require([_LT_TAG_COMPILER])dnl
194 _LT_PROG_ECHO_BACKSLASH
195
196 case $host_os in
197 aix3*)
198 # AIX sometimes has problems with the GCC collect2 program. For some
199 # reason, if we set the COLLECT_NAMES environment variable, the problems
200 # vanish in a puff of smoke.
201 if test "X${COLLECT_NAMES+set}" != Xset; then
202 COLLECT_NAMES=
203 export COLLECT_NAMES
204 fi
205 ;;
206 esac
207
208 # Sed substitution that helps us do robust quoting. It backslashifies
209 # metacharacters that are still active within double-quoted strings.
210 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
211
212 # Same as above, but do not quote variable references.
213 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
214
215 # Sed substitution to delay expansion of an escaped shell variable in a
216 # double_quote_subst'ed string.
217 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
218
219 # Sed substitution to delay expansion of an escaped single quote.
220 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
221
222 # Sed substitution to avoid accidental globbing in evaled expressions
223 no_glob_subst='s/\*/\\\*/g'
224
225 # Global variables:
226 ofile=libtool
227 can_build_shared=yes
228
229 # All known linkers require a `.a' archive for static linking (except MSVC,
230 # which needs '.lib').
231 libext=a
232
233 with_gnu_ld="$lt_cv_prog_gnu_ld"
234
235 old_CC="$CC"
236 old_CFLAGS="$CFLAGS"
237
238 # Set sane defaults for various variables
239 test -z "$CC" && CC=cc
240 test -z "$LTCC" && LTCC=$CC
241 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
242 test -z "$LD" && LD=ld
243 test -z "$ac_objext" && ac_objext=o
244
245 _LT_CC_BASENAME([$compiler])
246
247 # Only perform the check for file, if the check method requires it
248 test -z "$MAGIC_CMD" && MAGIC_CMD=file
249 case $deplibs_check_method in
250 file_magic*)
251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
252 _LT_PATH_MAGIC
253 fi
254 ;;
255 esac
256
257 # Use C for the default configuration in the libtool script
258 LT_SUPPORTED_TAG([CC])
259 _LT_LANG_C_CONFIG
260 _LT_LANG_DEFAULT_CONFIG
261 _LT_CONFIG_COMMANDS
262 ])# _LT_SETUP
263
264
265 # _LT_PROG_LTMAIN
266 # ---------------
267 # Note that this code is called both from `configure', and `config.status'
268 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
269 # `config.status' has no value for ac_aux_dir unless we are using Automake,
270 # so we pass a copy along to make sure it has a sensible value anyway.
271 m4_defun([_LT_PROG_LTMAIN],
272 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
273 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
274 ltmain="$ac_aux_dir/ltmain.sh"
275 ])# _LT_PROG_LTMAIN
276
277
278
279 # So that we can recreate a full libtool script including additional
280 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
281 # in macros and then make a single call at the end using the `libtool'
282 # label.
283
284
285 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
286 # ----------------------------------------
287 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
288 m4_define([_LT_CONFIG_LIBTOOL_INIT],
289 [m4_ifval([$1],
290 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
291 [$1
292 ])])])
293
294 # Initialize.
295 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
296
297
298 # _LT_CONFIG_LIBTOOL([COMMANDS])
299 # ------------------------------
300 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
301 m4_define([_LT_CONFIG_LIBTOOL],
302 [m4_ifval([$1],
303 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
304 [$1
305 ])])])
306
307 # Initialize.
308 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
309
310
311 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
312 # -----------------------------------------------------
313 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
314 [_LT_CONFIG_LIBTOOL([$1])
315 _LT_CONFIG_LIBTOOL_INIT([$2])
316 ])
317
318
319 # _LT_FORMAT_COMMENT([COMMENT])
320 # -----------------------------
321 # Add leading comment marks to the start of each line, and a trailing
322 # full-stop to the whole comment if one is not present already.
323 m4_define([_LT_FORMAT_COMMENT],
324 [m4_ifval([$1], [
325 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
326 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
327 )])
328
329
330
331
332
333 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
334 # -------------------------------------------------------------------
335 # CONFIGNAME is the name given to the value in the libtool script.
336 # VARNAME is the (base) name used in the configure script.
337 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
338 # VARNAME. Any other value will be used directly.
339 m4_define([_LT_DECL],
340 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
341 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
342 [m4_ifval([$1], [$1], [$2])])
343 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
344 m4_ifval([$4],
345 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
346 lt_dict_add_subkey([lt_decl_dict], [$2],
347 [tagged?], [m4_ifval([$5], [yes], [no])])])
348 ])
349
350
351 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
352 # --------------------------------------------------------
353 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
354
355
356 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
357 # ------------------------------------------------
358 m4_define([lt_decl_tag_varnames],
359 [_lt_decl_filter([tagged?], [yes], $@)])
360
361
362 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
363 # ---------------------------------------------------------
364 m4_define([_lt_decl_filter],
365 [m4_case([$#],
366 [0], [m4_fatal([$0: too few arguments: $#])],
367 [1], [m4_fatal([$0: too few arguments: $#: $1])],
368 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
369 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
370 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
371 ])
372
373
374 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
375 # --------------------------------------------------
376 m4_define([lt_decl_quote_varnames],
377 [_lt_decl_filter([value], [1], $@)])
378
379
380 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
381 # ---------------------------------------------------
382 m4_define([lt_decl_dquote_varnames],
383 [_lt_decl_filter([value], [2], $@)])
384
385
386 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
387 # ---------------------------------------------------
388 m4_define([lt_decl_varnames_tagged],
389 [_$0(m4_quote(m4_default([$1], [[, ]])),
390 m4_quote(m4_if([$2], [],
391 m4_quote(lt_decl_tag_varnames),
392 m4_quote(m4_shift($@)))),
393 m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
394 m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
395
396
397 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
398 # ------------------------------------------------
399 m4_define([lt_decl_all_varnames],
400 [_$0(m4_quote(m4_default([$1], [[, ]])),
401 m4_if([$2], [],
402 m4_quote(lt_decl_varnames),
403 m4_quote(m4_shift($@))))[]dnl
404 ])
405 m4_define([_lt_decl_all_varnames],
406 [lt_join($@, lt_decl_varnames_tagged([$1],
407 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
408 ])
409
410
411 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
412 # ------------------------------------
413 # Quote a variable value, and forward it to `config.status' so that its
414 # declaration there will have the same value as in `configure'. VARNAME
415 # must have a single quote delimited value for this to work.
416 m4_define([_LT_CONFIG_STATUS_DECLARE],
417 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
418
419
420 # _LT_CONFIG_STATUS_DECLARATIONS
421 # ------------------------------
422 # We delimit libtool config variables with single quotes, so when
423 # we write them to config.status, we have to be sure to quote all
424 # embedded single quotes properly. In configure, this macro expands
425 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
426 #
427 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
428 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
429 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
430 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
431
432
433 # _LT_LIBTOOL_TAGS
434 # ----------------
435 # Output comment and list of tags supported by the script
436 m4_defun([_LT_LIBTOOL_TAGS],
437 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
438 available_tags="_LT_TAGS"dnl
439 ])
440
441
442 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
443 # -----------------------------------
444 # Extract the dictionary values for VARNAME (optionally with TAG) and
445 # expand to a commented shell variable setting:
446 #
447 # # Some comment about what VAR is for.
448 # visible_name=$lt_internal_name
449 m4_define([_LT_LIBTOOL_DECLARE],
450 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
451 [description])))[]dnl
452 m4_pushdef([_libtool_name],
453 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
454 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
455 [0], [_libtool_name=[$]$1],
456 [1], [_libtool_name=$lt_[]$1],
457 [2], [_libtool_name=$lt_[]$1],
458 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
459 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
460 ])
461
462
463 # _LT_LIBTOOL_CONFIG_VARS
464 # -----------------------
465 # Produce commented declarations of non-tagged libtool config variables
466 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
467 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
468 # section) are produced by _LT_LIBTOOL_TAG_VARS.
469 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
470 [m4_foreach([_lt_var],
471 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
472 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
473
474
475 # _LT_LIBTOOL_TAG_VARS(TAG)
476 # -------------------------
477 m4_define([_LT_LIBTOOL_TAG_VARS],
478 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
479 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
480
481
482 # _LT_TAGVAR(VARNAME, [TAGNAME])
483 # ------------------------------
484 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
485
486
487 # _LT_CONFIG_COMMANDS
488 # -------------------
489 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
490 # variables for single and double quote escaping we saved from calls
491 # to _LT_DECL, we can put quote escaped variables declarations
492 # into `config.status', and then the shell code to quote escape them in
493 # for loops in `config.status'. Finally, any additional code accumulated
494 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
495 m4_defun([_LT_CONFIG_COMMANDS],
496 [AC_PROVIDE_IFELSE([LT_OUTPUT],
497 dnl If the libtool generation code has been placed in $CONFIG_LT,
498 dnl instead of duplicating it all over again into config.status,
499 dnl then we will have config.status run $CONFIG_LT later, so it
500 dnl needs to know what name is stored there:
501 [AC_CONFIG_COMMANDS([libtool],
502 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
503 dnl If the libtool generation code is destined for config.status,
504 dnl expand the accumulated commands and init code now:
505 [AC_CONFIG_COMMANDS([libtool],
506 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
507 ])#_LT_CONFIG_COMMANDS
508
509
510 # Initialize.
511 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
512 [
513
514 # The HP-UX ksh and POSIX shell print the target directory to stdout
515 # if CDPATH is set.
516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
517
518 sed_quote_subst='$sed_quote_subst'
519 double_quote_subst='$double_quote_subst'
520 delay_variable_subst='$delay_variable_subst'
521 _LT_CONFIG_STATUS_DECLARATIONS
522 LTCC='$LTCC'
523 LTCFLAGS='$LTCFLAGS'
524 compiler='$compiler_DEFAULT'
525
526 # Quote evaled strings.
527 for var in lt_decl_all_varnames([[ \
528 ]], lt_decl_quote_varnames); do
529 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
530 *[[\\\\\\\`\\"\\\$]]*)
531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
532 ;;
533 *)
534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
535 ;;
536 esac
537 done
538
539 # Double-quote double-evaled strings.
540 for var in lt_decl_all_varnames([[ \
541 ]], lt_decl_dquote_varnames); do
542 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
543 *[[\\\\\\\`\\"\\\$]]*)
544 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
545 ;;
546 *)
547 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548 ;;
549 esac
550 done
551
552 # Fix-up fallback echo if it was mangled by the above quoting rules.
553 case \$lt_ECHO in
554 *'\\\[$]0 --fallback-echo"')dnl "
555 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
556 ;;
557 esac
558
559 _LT_OUTPUT_LIBTOOL_INIT
560 ])
561
562
563 # LT_OUTPUT
564 # ---------
565 # This macro allows early generation of the libtool script (before
566 # AC_OUTPUT is called), incase it is used in configure for compilation
567 # tests.
568 AC_DEFUN([LT_OUTPUT],
569 [: ${CONFIG_LT=./config.lt}
570 AC_MSG_NOTICE([creating $CONFIG_LT])
571 cat >"$CONFIG_LT" <<_LTEOF
572 #! $SHELL
573 # Generated by $as_me.
574 # Run this file to recreate a libtool stub with the current configuration.
575
576 lt_cl_silent=false
577 SHELL=\${CONFIG_SHELL-$SHELL}
578 _LTEOF
579
580 cat >>"$CONFIG_LT" <<\_LTEOF
581 AS_SHELL_SANITIZE
582 _AS_PREPARE
583
584 exec AS_MESSAGE_FD>&1
585 exec AS_MESSAGE_LOG_FD>>config.log
586 {
587 echo
588 AS_BOX([Running $as_me.])
589 } >&AS_MESSAGE_LOG_FD
590
591 lt_cl_help="\
592 \`$as_me' creates a local libtool stub from the current configuration,
593 for use in further configure time tests before the real libtool is
594 generated.
595
596 Usage: $[0] [[OPTIONS]]
597
598 -h, --help print this help, then exit
599 -V, --version print version number, then exit
600 -q, --quiet do not print progress messages
601 -d, --debug don't remove temporary files
602
603 Report bugs to <bug-libtool@gnu.org>."
604
605 lt_cl_version="\
606 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
607 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
608 configured by $[0], generated by m4_PACKAGE_STRING.
609
610 Copyright (C) 2008 Free Software Foundation, Inc.
611 This config.lt script is free software; the Free Software Foundation
612 gives unlimited permision to copy, distribute and modify it."
613
614 while test $[#] != 0
615 do
616 case $[1] in
617 --version | --v* | -V )
618 echo "$lt_cl_version"; exit 0 ;;
619 --help | --h* | -h )
620 echo "$lt_cl_help"; exit 0 ;;
621 --debug | --d* | -d )
622 debug=: ;;
623 --quiet | --q* | --silent | --s* | -q )
624 lt_cl_silent=: ;;
625
626 -*) AC_MSG_ERROR([unrecognized option: $[1]
627 Try \`$[0] --help' for more information.]) ;;
628
629 *) AC_MSG_ERROR([unrecognized argument: $[1]
630 Try \`$[0] --help' for more information.]) ;;
631 esac
632 shift
633 done
634
635 if $lt_cl_silent; then
636 exec AS_MESSAGE_FD>/dev/null
637 fi
638 _LTEOF
639
640 cat >>"$CONFIG_LT" <<_LTEOF
641 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
642 _LTEOF
643
644 cat >>"$CONFIG_LT" <<\_LTEOF
645 AC_MSG_NOTICE([creating $ofile])
646 _LT_OUTPUT_LIBTOOL_COMMANDS
647 AS_EXIT(0)
648 _LTEOF
649 chmod +x "$CONFIG_LT"
650
651 # configure is writing to config.log, but config.lt does its own redirection,
652 # appending to config.log, which fails on DOS, as config.log is still kept
653 # open by configure. Here we exec the FD to /dev/null, effectively closing
654 # config.log, so it can be properly (re)opened and appended to by config.lt.
655 if test "$no_create" != yes; then
656 lt_cl_success=:
657 test "$silent" = yes &&
658 lt_config_lt_args="$lt_config_lt_args --quiet"
659 exec AS_MESSAGE_LOG_FD>/dev/null
660 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
661 exec AS_MESSAGE_LOG_FD>>config.log
662 $lt_cl_success || AS_EXIT(1)
663 fi
664 ])# LT_OUTPUT
665
666
667 # _LT_CONFIG(TAG)
668 # ---------------
669 # If TAG is the built-in tag, create an initial libtool script with a
670 # default configuration from the untagged config vars. Otherwise add code
671 # to config.status for appending the configuration named by TAG from the
672 # matching tagged config vars.
673 m4_defun([_LT_CONFIG],
674 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
675 _LT_CONFIG_SAVE_COMMANDS([
676 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
677 m4_if(_LT_TAG, [C], [
678 # See if we are running on zsh, and set the options which allow our
679 # commands through without removal of \ escapes.
680 if test -n "${ZSH_VERSION+set}" ; then
681 setopt NO_GLOB_SUBST
682 fi
683
684 cfgfile="${ofile}T"
685 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
686 $RM "$cfgfile"
687
688 cat <<_LT_EOF >> "$cfgfile"
689 #! $SHELL
690
691 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
692 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
695 #
696 _LT_COPYING
697 _LT_LIBTOOL_TAGS
698
699 # ### BEGIN LIBTOOL CONFIG
700 _LT_LIBTOOL_CONFIG_VARS
701 _LT_LIBTOOL_TAG_VARS
702 # ### END LIBTOOL CONFIG
703
704 _LT_EOF
705
706 case $host_os in
707 aix3*)
708 cat <<\_LT_EOF >> "$cfgfile"
709 # AIX sometimes has problems with the GCC collect2 program. For some
710 # reason, if we set the COLLECT_NAMES environment variable, the problems
711 # vanish in a puff of smoke.
712 if test "X${COLLECT_NAMES+set}" != Xset; then
713 COLLECT_NAMES=
714 export COLLECT_NAMES
715 fi
716 _LT_EOF
717 ;;
718 esac
719
720 _LT_PROG_LTMAIN
721
722 # We use sed instead of cat because bash on DJGPP gets confused if
723 # if finds mixed CR/LF and LF-only lines. Since sed operates in
724 # text mode, it properly converts lines to CR/LF. This bash problem
725 # is reportedly fixed, but why not run on old versions too?
726 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
727 || (rm -f "$cfgfile"; exit 1)
728
729 _LT_PROG_XSI_SHELLFNS
730
731 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
732 || (rm -f "$cfgfile"; exit 1)
733
734 mv -f "$cfgfile" "$ofile" ||
735 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
736 chmod +x "$ofile"
737 ],
738 [cat <<_LT_EOF >> "$ofile"
739
740 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
741 dnl in a comment (ie after a #).
742 # ### BEGIN LIBTOOL TAG CONFIG: $1
743 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
744 # ### END LIBTOOL TAG CONFIG: $1
745 _LT_EOF
746 ])dnl /m4_if
747 ],
748 [m4_if([$1], [], [
749 PACKAGE='$PACKAGE'
750 VERSION='$VERSION'
751 TIMESTAMP='$TIMESTAMP'
752 RM='$RM'
753 ofile='$ofile'], [])
754 ])dnl /_LT_CONFIG_SAVE_COMMANDS
755 ])# _LT_CONFIG
756
757
758 # LT_SUPPORTED_TAG(TAG)
759 # ---------------------
760 # Trace this macro to discover what tags are supported by the libtool
761 # --tag option, using:
762 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
763 AC_DEFUN([LT_SUPPORTED_TAG], [])
764
765
766 # C support is built-in for now
767 m4_define([_LT_LANG_C_enabled], [])
768 m4_define([_LT_TAGS], [])
769
770
771 # LT_LANG(LANG)
772 # -------------
773 # Enable libtool support for the given language if not already enabled.
774 AC_DEFUN([LT_LANG],
775 [AC_BEFORE([$0], [LT_OUTPUT])dnl
776 m4_case([$1],
777 [C], [_LT_LANG(C)],
778 [C++], [_LT_LANG(CXX)],
779 [Java], [_LT_LANG(GCJ)],
780 [Fortran 77], [_LT_LANG(F77)],
781 [Fortran], [_LT_LANG(FC)],
782 [Windows Resource], [_LT_LANG(RC)],
783 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
784 [_LT_LANG($1)],
785 [m4_fatal([$0: unsupported language: "$1"])])])dnl
786 ])# LT_LANG
787
788
789 # _LT_LANG(LANGNAME)
790 # ------------------
791 m4_defun([_LT_LANG],
792 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
793 [LT_SUPPORTED_TAG([$1])dnl
794 m4_append([_LT_TAGS], [$1 ])dnl
795 m4_define([_LT_LANG_]$1[_enabled], [])dnl
796 _LT_LANG_$1_CONFIG($1)])dnl
797 ])# _LT_LANG
798
799
800 # _LT_LANG_DEFAULT_CONFIG
801 # -----------------------
802 m4_defun([_LT_LANG_DEFAULT_CONFIG],
803 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
804 [LT_LANG(CXX)],
805 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
806
807 AC_PROVIDE_IFELSE([AC_PROG_F77],
808 [LT_LANG(F77)],
809 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
810
811 AC_PROVIDE_IFELSE([AC_PROG_FC],
812 [LT_LANG(FC)],
813 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
814
815 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
816 dnl pulling things in needlessly.
817 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
818 [LT_LANG(GCJ)],
819 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
820 [LT_LANG(GCJ)],
821 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
822 [LT_LANG(GCJ)],
823 [m4_ifdef([AC_PROG_GCJ],
824 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
825 m4_ifdef([A][M_PROG_GCJ],
826 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
827 m4_ifdef([LT_PROG_GCJ],
828 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
829
830 AC_PROVIDE_IFELSE([LT_PROG_RC],
831 [LT_LANG(RC)],
832 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
833 ])# _LT_LANG_DEFAULT_CONFIG
834
835 # Obsolete macros:
836 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
837 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
838 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
839 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
840 dnl aclocal-1.4 backwards compatibility:
841 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
842 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
843 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
844 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
845
846
847 # _LT_TAG_COMPILER
848 # ----------------
849 m4_defun([_LT_TAG_COMPILER],
850 [AC_REQUIRE([AC_PROG_CC])dnl
851
852 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
853 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
854 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
855 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
856
857 # If no C compiler was specified, use CC.
858 LTCC=${LTCC-"$CC"}
859
860 # If no C compiler flags were specified, use CFLAGS.
861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
862
863 # Allow CC to be a program name with arguments.
864 compiler=$CC
865 ])# _LT_TAG_COMPILER
866
867
868 # _LT_COMPILER_BOILERPLATE
869 # ------------------------
870 # Check for compiler boilerplate output or warnings with
871 # the simple compiler test code.
872 m4_defun([_LT_COMPILER_BOILERPLATE],
873 [m4_require([_LT_DECL_SED])dnl
874 ac_outfile=conftest.$ac_objext
875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
877 _lt_compiler_boilerplate=`cat conftest.err`
878 $RM conftest*
879 ])# _LT_COMPILER_BOILERPLATE
880
881
882 # _LT_LINKER_BOILERPLATE
883 # ----------------------
884 # Check for linker boilerplate output or warnings with
885 # the simple link test code.
886 m4_defun([_LT_LINKER_BOILERPLATE],
887 [m4_require([_LT_DECL_SED])dnl
888 ac_outfile=conftest.$ac_objext
889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
891 _lt_linker_boilerplate=`cat conftest.err`
892 $RM -r conftest*
893 ])# _LT_LINKER_BOILERPLATE
894
895 # _LT_REQUIRED_DARWIN_CHECKS
896 # -------------------------
897 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
898 case $host_os in
899 rhapsody* | darwin*)
900 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
901 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
902 AC_CHECK_TOOL([LIPO], [lipo], [:])
903 AC_CHECK_TOOL([OTOOL], [otool], [:])
904 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
905 _LT_DECL([], [DSYMUTIL], [1],
906 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
907 _LT_DECL([], [NMEDIT], [1],
908 [Tool to change global to local symbols on Mac OS X])
909 _LT_DECL([], [LIPO], [1],
910 [Tool to manipulate fat objects and archives on Mac OS X])
911 _LT_DECL([], [OTOOL], [1],
912 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
913 _LT_DECL([], [OTOOL64], [1],
914 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
915
916 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
917 [lt_cv_apple_cc_single_mod=no
918 if test -z "${LT_MULTI_MODULE}"; then
919 # By default we will add the -single_module flag. You can override
920 # by either setting the environment variable LT_MULTI_MODULE
921 # non-empty at configure time, or by adding -multi_module to the
922 # link flags.
923 rm -rf libconftest.dylib*
924 echo "int foo(void){return 1;}" > conftest.c
925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
926 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
929 _lt_result=$?
930 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
931 lt_cv_apple_cc_single_mod=yes
932 else
933 cat conftest.err >&AS_MESSAGE_LOG_FD
934 fi
935 rm -rf libconftest.dylib*
936 rm -f conftest.*
937 fi])
938 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
939 [lt_cv_ld_exported_symbols_list],
940 [lt_cv_ld_exported_symbols_list=no
941 save_LDFLAGS=$LDFLAGS
942 echo "_main" > conftest.sym
943 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
944 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
945 [lt_cv_ld_exported_symbols_list=yes],
946 [lt_cv_ld_exported_symbols_list=no])
947 LDFLAGS="$save_LDFLAGS"
948 ])
949 case $host_os in
950 rhapsody* | darwin1.[[012]])
951 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
952 darwin1.*)
953 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
954 darwin*) # darwin 5.x on
955 # if running on 10.5 or later, the deployment target defaults
956 # to the OS version, if on x86, and 10.4, the deployment
957 # target defaults to 10.4. Don't you love it?
958 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
959 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
961 10.[[012]]*)
962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
963 10.*)
964 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
965 esac
966 ;;
967 esac
968 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
969 _lt_dar_single_mod='$single_module'
970 fi
971 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
972 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
973 else
974 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
975 fi
976 if test "$DSYMUTIL" != ":"; then
977 _lt_dsymutil='~$DSYMUTIL $lib || :'
978 else
979 _lt_dsymutil=
980 fi
981 ;;
982 esac
983 ])
984
985
986 # _LT_DARWIN_LINKER_FEATURES
987 # --------------------------
988 # Checks for linker and compiler features on darwin
989 m4_defun([_LT_DARWIN_LINKER_FEATURES],
990 [
991 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
992 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
993 _LT_TAGVAR(hardcode_direct, $1)=no
994 _LT_TAGVAR(hardcode_automatic, $1)=yes
995 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
996 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
997 _LT_TAGVAR(link_all_deplibs, $1)=yes
998 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
999 if test "$GCC" = "yes"; then
1000 output_verbose_link_cmd=echo
1001 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1002 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1003 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1004 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1005 m4_if([$1], [CXX],
1006 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1007 _LT_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${_lt_dsymutil}"
1008 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
1009 fi
1010 ],[])
1011 else
1012 _LT_TAGVAR(ld_shlibs, $1)=no
1013 fi
1014 ])
1015
1016 # _LT_SYS_MODULE_PATH_AIX
1017 # -----------------------
1018 # Links a minimal program and checks the executable
1019 # for the system default hardcoded library path. In most cases,
1020 # this is /usr/lib:/lib, but when the MPI compilers are used
1021 # the location of the communication and MPI libs are included too.
1022 # If we don't find anything, use the default library path according
1023 # to the aix ld manual.
1024 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1025 [m4_require([_LT_DECL_SED])dnl
1026 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1027 lt_aix_libpath_sed='
1028 /Import File Strings/,/^$/ {
1029 /^0/ {
1030 s/^0 *\(.*\)$/\1/
1031 p
1032 }
1033 }'
1034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1035 # Check for a 64-bit object if we didn't find anything.
1036 if test -z "$aix_libpath"; then
1037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1038 fi],[])
1039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1040 ])# _LT_SYS_MODULE_PATH_AIX
1041
1042
1043 # _LT_SHELL_INIT(ARG)
1044 # -------------------
1045 m4_define([_LT_SHELL_INIT],
1046 [ifdef([AC_DIVERSION_NOTICE],
1047 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1048 [AC_DIVERT_PUSH(NOTICE)])
1049 $1
1050 AC_DIVERT_POP
1051 ])# _LT_SHELL_INIT
1052
1053
1054 # _LT_PROG_ECHO_BACKSLASH
1055 # -----------------------
1056 # Add some code to the start of the generated configure script which
1057 # will find an echo command which doesn't interpret backslashes.
1058 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1059 [_LT_SHELL_INIT([
1060 # Check that we are running under the correct shell.
1061 SHELL=${CONFIG_SHELL-/bin/sh}
1062
1063 case X$lt_ECHO in
1064 X*--fallback-echo)
1065 # Remove one level of quotation (which was required for Make).
1066 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1067 ;;
1068 esac
1069
1070 ECHO=${lt_ECHO-echo}
1071 if test "X[$]1" = X--no-reexec; then
1072 # Discard the --no-reexec flag, and continue.
1073 shift
1074 elif test "X[$]1" = X--fallback-echo; then
1075 # Avoid inline document here, it may be left over
1076 :
1077 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1078 # Yippee, $ECHO works!
1079 :
1080 else
1081 # Restart under the correct shell.
1082 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1083 fi
1084
1085 if test "X[$]1" = X--fallback-echo; then
1086 # used as fallback echo
1087 shift
1088 cat <<_LT_EOF
1089 [$]*
1090 _LT_EOF
1091 exit 0
1092 fi
1093
1094 # The HP-UX ksh and POSIX shell print the target directory to stdout
1095 # if CDPATH is set.
1096 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1097
1098 if test -z "$lt_ECHO"; then
1099 if test "X${echo_test_string+set}" != Xset; then
1100 # find a string as large as possible, as long as the shell can cope with it
1101 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1102 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1103 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1104 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1105 then
1106 break
1107 fi
1108 done
1109 fi
1110
1111 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1112 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1113 test "X$echo_testing_string" = "X$echo_test_string"; then
1114 :
1115 else
1116 # The Solaris, AIX, and Digital Unix default echo programs unquote
1117 # backslashes. This makes it impossible to quote backslashes using
1118 # echo "$something" | sed 's/\\/\\\\/g'
1119 #
1120 # So, first we look for a working echo in the user's PATH.
1121
1122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1123 for dir in $PATH /usr/ucb; do
1124 IFS="$lt_save_ifs"
1125 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1126 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1127 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1128 test "X$echo_testing_string" = "X$echo_test_string"; then
1129 ECHO="$dir/echo"
1130 break
1131 fi
1132 done
1133 IFS="$lt_save_ifs"
1134
1135 if test "X$ECHO" = Xecho; then
1136 # We didn't find a better echo, so look for alternatives.
1137 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1138 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1139 test "X$echo_testing_string" = "X$echo_test_string"; then
1140 # This shell has a builtin print -r that does the trick.
1141 ECHO='print -r'
1142 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1143 test "X$CONFIG_SHELL" != X/bin/ksh; then
1144 # If we have ksh, try running configure again with it.
1145 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1146 export ORIGINAL_CONFIG_SHELL
1147 CONFIG_SHELL=/bin/ksh
1148 export CONFIG_SHELL
1149 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1150 else
1151 # Try using printf.
1152 ECHO='printf %s\n'
1153 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1154 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1155 test "X$echo_testing_string" = "X$echo_test_string"; then
1156 # Cool, printf works
1157 :
1158 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1159 test "X$echo_testing_string" = 'X\t' &&
1160 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1161 test "X$echo_testing_string" = "X$echo_test_string"; then
1162 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1163 export CONFIG_SHELL
1164 SHELL="$CONFIG_SHELL"
1165 export SHELL
1166 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1167 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1168 test "X$echo_testing_string" = 'X\t' &&
1169 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1170 test "X$echo_testing_string" = "X$echo_test_string"; then
1171 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1172 else
1173 # maybe with a smaller string...
1174 prev=:
1175
1176 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1177 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1178 then
1179 break
1180 fi
1181 prev="$cmd"
1182 done
1183
1184 if test "$prev" != 'sed 50q "[$]0"'; then
1185 echo_test_string=`eval $prev`
1186 export echo_test_string
1187 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1188 else
1189 # Oops. We lost completely, so just stick with echo.
1190 ECHO=echo
1191 fi
1192 fi
1193 fi
1194 fi
1195 fi
1196 fi
1197
1198 # Copy echo and quote the copy suitably for passing to libtool from
1199 # the Makefile, instead of quoting the original, which is used later.
1200 lt_ECHO=$ECHO
1201 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1202 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1203 fi
1204
1205 AC_SUBST(lt_ECHO)
1206 ])
1207 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1208 _LT_DECL([], [ECHO], [1],
1209 [An echo program that does not interpret backslashes])
1210 ])# _LT_PROG_ECHO_BACKSLASH
1211
1212
1213 # _LT_ENABLE_LOCK
1214 # ---------------
1215 m4_defun([_LT_ENABLE_LOCK],
1216 [AC_ARG_ENABLE([libtool-lock],
1217 [AS_HELP_STRING([--disable-libtool-lock],
1218 [avoid locking (might break parallel builds)])])
1219 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1220
1221 # Some flags need to be propagated to the compiler or linker for good
1222 # libtool support.
1223 case $host in
1224 ia64-*-hpux*)
1225 # Find out which ABI we are using.
1226 echo 'int i;' > conftest.$ac_ext
1227 if AC_TRY_EVAL(ac_compile); then
1228 case `/usr/bin/file conftest.$ac_objext` in
1229 *ELF-32*)
1230 HPUX_IA64_MODE="32"
1231 ;;
1232 *ELF-64*)
1233 HPUX_IA64_MODE="64"
1234 ;;
1235 esac
1236 fi
1237 rm -rf conftest*
1238 ;;
1239 *-*-irix6*)
1240 # Find out which ABI we are using.
1241 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1242 if AC_TRY_EVAL(ac_compile); then
1243 if test "$lt_cv_prog_gnu_ld" = yes; then
1244 case `/usr/bin/file conftest.$ac_objext` in
1245 *32-bit*)
1246 LD="${LD-ld} -melf32bsmip"
1247 ;;
1248 *N32*)
1249 LD="${LD-ld} -melf32bmipn32"
1250 ;;
1251 *64-bit*)
1252 LD="${LD-ld} -melf64bmip"
1253 ;;
1254 esac
1255 else
1256 case `/usr/bin/file conftest.$ac_objext` in
1257 *32-bit*)
1258 LD="${LD-ld} -32"
1259 ;;
1260 *N32*)
1261 LD="${LD-ld} -n32"
1262 ;;
1263 *64-bit*)
1264 LD="${LD-ld} -64"
1265 ;;
1266 esac
1267 fi
1268 fi
1269 rm -rf conftest*
1270 ;;
1271
1272 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1273 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1274 # Find out which ABI we are using.
1275 echo 'int i;' > conftest.$ac_ext
1276 if AC_TRY_EVAL(ac_compile); then
1277 case `/usr/bin/file conftest.o` in
1278 *32-bit*)
1279 case $host in
1280 x86_64-*kfreebsd*-gnu)
1281 LD="${LD-ld} -m elf_i386_fbsd"
1282 ;;
1283 x86_64-*linux*)
1284 LD="${LD-ld} -m elf_i386"
1285 ;;
1286 ppc64-*linux*|powerpc64-*linux*)
1287 LD="${LD-ld} -m elf32ppclinux"
1288 ;;
1289 s390x-*linux*)
1290 LD="${LD-ld} -m elf_s390"
1291 ;;
1292 sparc64-*linux*)
1293 LD="${LD-ld} -m elf32_sparc"
1294 ;;
1295 esac
1296 ;;
1297 *64-bit*)
1298 case $host in
1299 x86_64-*kfreebsd*-gnu)
1300 LD="${LD-ld} -m elf_x86_64_fbsd"
1301 ;;
1302 x86_64-*linux*)
1303 LD="${LD-ld} -m elf_x86_64"
1304 ;;
1305 ppc*-*linux*|powerpc*-*linux*)
1306 LD="${LD-ld} -m elf64ppc"
1307 ;;
1308 s390*-*linux*|s390*-*tpf*)
1309 LD="${LD-ld} -m elf64_s390"
1310 ;;
1311 sparc*-*linux*)
1312 LD="${LD-ld} -m elf64_sparc"
1313 ;;
1314 esac
1315 ;;
1316 esac
1317 fi
1318 rm -rf conftest*
1319 ;;
1320
1321 *-*-sco3.2v5*)
1322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1323 SAVE_CFLAGS="$CFLAGS"
1324 CFLAGS="$CFLAGS -belf"
1325 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1326 [AC_LANG_PUSH(C)
1327 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1328 AC_LANG_POP])
1329 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1331 CFLAGS="$SAVE_CFLAGS"
1332 fi
1333 ;;
1334 sparc*-*solaris*)
1335 # Find out which ABI we are using.
1336 echo 'int i;' > conftest.$ac_ext
1337 if AC_TRY_EVAL(ac_compile); then
1338 case `/usr/bin/file conftest.o` in
1339 *64-bit*)
1340 case $lt_cv_prog_gnu_ld in
1341 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1342 *)
1343 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1344 LD="${LD-ld} -64"
1345 fi
1346 ;;
1347 esac
1348 ;;
1349 esac
1350 fi
1351 rm -rf conftest*
1352 ;;
1353 esac
1354
1355 need_locks="$enable_libtool_lock"
1356 ])# _LT_ENABLE_LOCK
1357
1358
1359 # _LT_CMD_OLD_ARCHIVE
1360 # -------------------
1361 m4_defun([_LT_CMD_OLD_ARCHIVE],
1362 [AC_CHECK_TOOL(AR, ar, false)
1363 test -z "$AR" && AR=ar
1364 test -z "$AR_FLAGS" && AR_FLAGS=cru
1365 _LT_DECL([], [AR], [1], [The archiver])
1366 _LT_DECL([], [AR_FLAGS], [1])
1367
1368 AC_CHECK_TOOL(STRIP, strip, :)
1369 test -z "$STRIP" && STRIP=:
1370 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1371
1372 AC_CHECK_TOOL(RANLIB, ranlib, :)
1373 test -z "$RANLIB" && RANLIB=:
1374 _LT_DECL([], [RANLIB], [1],
1375 [Commands used to install an old-style archive])
1376
1377 # Determine commands to create old-style static archives.
1378 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1379 old_postinstall_cmds='chmod 644 $oldlib'
1380 old_postuninstall_cmds=
1381
1382 if test -n "$RANLIB"; then
1383 case $host_os in
1384 openbsd*)
1385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1386 ;;
1387 *)
1388 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1389 ;;
1390 esac
1391 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1392 fi
1393 _LT_DECL([], [old_postinstall_cmds], [2])
1394 _LT_DECL([], [old_postuninstall_cmds], [2])
1395 _LT_TAGDECL([], [old_archive_cmds], [2],
1396 [Commands used to build an old-style archive])
1397 ])# _LT_CMD_OLD_ARCHIVE
1398
1399
1400 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1401 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1402 # ----------------------------------------------------------------
1403 # Check whether the given compiler option works
1404 AC_DEFUN([_LT_COMPILER_OPTION],
1405 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1406 m4_require([_LT_DECL_SED])dnl
1407 AC_CACHE_CHECK([$1], [$2],
1408 [$2=no
1409 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1411 lt_compiler_flag="$3"
1412 # Insert the option either (1) after the last *FLAGS variable, or
1413 # (2) before a word containing "conftest.", or (3) at the end.
1414 # Note that $ac_compile itself does not contain backslashes and begins
1415 # with a dollar sign (not a hyphen), so the echo should work correctly.
1416 # The option is referenced via a variable to avoid confusing sed.
1417 lt_compile=`echo "$ac_compile" | $SED \
1418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1419 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1420 -e 's:$: $lt_compiler_flag:'`
1421 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1422 (eval "$lt_compile" 2>conftest.err)
1423 ac_status=$?
1424 cat conftest.err >&AS_MESSAGE_LOG_FD
1425 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1426 if (exit $ac_status) && test -s "$ac_outfile"; then
1427 # The compiler can only warn and ignore the option if not recognized
1428 # So say no if there are warnings other than the usual output.
1429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1432 $2=yes
1433 fi
1434 fi
1435 $RM conftest*
1436 ])
1437
1438 if test x"[$]$2" = xyes; then
1439 m4_if([$5], , :, [$5])
1440 else
1441 m4_if([$6], , :, [$6])
1442 fi
1443 ])# _LT_COMPILER_OPTION
1444
1445 # Old name:
1446 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1447 dnl aclocal-1.4 backwards compatibility:
1448 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1449
1450
1451 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1452 # [ACTION-SUCCESS], [ACTION-FAILURE])
1453 # ----------------------------------------------------
1454 # Check whether the given linker option works
1455 AC_DEFUN([_LT_LINKER_OPTION],
1456 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1457 m4_require([_LT_DECL_SED])dnl
1458 AC_CACHE_CHECK([$1], [$2],
1459 [$2=no
1460 save_LDFLAGS="$LDFLAGS"
1461 LDFLAGS="$LDFLAGS $3"
1462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1464 # The linker can only warn and ignore the option if not recognized
1465 # So say no if there are warnings
1466 if test -s conftest.err; then
1467 # Append any errors to the config.log.
1468 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1469 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1471 if diff conftest.exp conftest.er2 >/dev/null; then
1472 $2=yes
1473 fi
1474 else
1475 $2=yes
1476 fi
1477 fi
1478 $RM -r conftest*
1479 LDFLAGS="$save_LDFLAGS"
1480 ])
1481
1482 if test x"[$]$2" = xyes; then
1483 m4_if([$4], , :, [$4])
1484 else
1485 m4_if([$5], , :, [$5])
1486 fi
1487 ])# _LT_LINKER_OPTION
1488
1489 # Old name:
1490 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1491 dnl aclocal-1.4 backwards compatibility:
1492 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1493
1494
1495 # LT_CMD_MAX_LEN
1496 #---------------
1497 AC_DEFUN([LT_CMD_MAX_LEN],
1498 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1499 # find the maximum length of command line arguments
1500 AC_MSG_CHECKING([the maximum length of command line arguments])
1501 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1502 i=0
1503 teststring="ABCD"
1504
1505 case $build_os in
1506 msdosdjgpp*)
1507 # On DJGPP, this test can blow up pretty badly due to problems in libc
1508 # (any single argument exceeding 2000 bytes causes a buffer overrun
1509 # during glob expansion). Even if it were fixed, the result of this
1510 # check would be larger than it should be.
1511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1512 ;;
1513
1514 gnu*)
1515 # Under GNU Hurd, this test is not required because there is
1516 # no limit to the length of command line arguments.
1517 # Libtool will interpret -1 as no limit whatsoever
1518 lt_cv_sys_max_cmd_len=-1;
1519 ;;
1520
1521 cygwin* | mingw*)
1522 # On Win9x/ME, this test blows up -- it succeeds, but takes
1523 # about 5 minutes as the teststring grows exponentially.
1524 # Worse, since 9x/ME are not pre-emptively multitasking,
1525 # you end up with a "frozen" computer, even though with patience
1526 # the test eventually succeeds (with a max line length of 256k).
1527 # Instead, let's just punt: use the minimum linelength reported by
1528 # all of the supported platforms: 8192 (on NT/2K/XP).
1529 lt_cv_sys_max_cmd_len=8192;
1530 ;;
1531
1532 amigaos*)
1533 # On AmigaOS with pdksh, this test takes hours, literally.
1534 # So we just punt and use a minimum line length of 8192.
1535 lt_cv_sys_max_cmd_len=8192;
1536 ;;
1537
1538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1539 # This has been around since 386BSD, at least. Likely further.
1540 if test -x /sbin/sysctl; then
1541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1542 elif test -x /usr/sbin/sysctl; then
1543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1544 else
1545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1546 fi
1547 # And add a safety zone
1548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1550 ;;
1551
1552 interix*)
1553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1554 lt_cv_sys_max_cmd_len=196608
1555 ;;
1556
1557 osf*)
1558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1560 # nice to cause kernel panics so lets avoid the loop below.
1561 # First set a reasonable default.
1562 lt_cv_sys_max_cmd_len=16384
1563 #
1564 if test -x /sbin/sysconfig; then
1565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1566 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1567 esac
1568 fi
1569 ;;
1570 sco3.2v5*)
1571 lt_cv_sys_max_cmd_len=102400
1572 ;;
1573 sysv5* | sco5v6* | sysv4.2uw2*)
1574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1575 if test -n "$kargmax"; then
1576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1577 else
1578 lt_cv_sys_max_cmd_len=32768
1579 fi
1580 ;;
1581 *)
1582 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1583 if test -n "$lt_cv_sys_max_cmd_len"; then
1584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1586 else
1587 # Make teststring a little bigger before we do anything with it.
1588 # a 1K string should be a reasonable start.
1589 for i in 1 2 3 4 5 6 7 8 ; do
1590 teststring=$teststring$teststring
1591 done
1592 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1593 # If test is not a shell built-in, we'll probably end up computing a
1594 # maximum length that is only half of the actual maximum length, but
1595 # we can't tell.
1596 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1597 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1598 test $i != 17 # 1/2 MB should be enough
1599 do
1600 i=`expr $i + 1`
1601 teststring=$teststring$teststring
1602 done
1603 # Only check the string length outside the loop.
1604 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1605 teststring=
1606 # Add a significant safety factor because C++ compilers can tack on
1607 # massive amounts of additional arguments before passing them to the
1608 # linker. It appears as though 1/2 is a usable value.
1609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1610 fi
1611 ;;
1612 esac
1613 ])
1614 if test -n $lt_cv_sys_max_cmd_len ; then
1615 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1616 else
1617 AC_MSG_RESULT(none)
1618 fi
1619 max_cmd_len=$lt_cv_sys_max_cmd_len
1620 _LT_DECL([], [max_cmd_len], [0],
1621 [What is the maximum length of a command?])
1622 ])# LT_CMD_MAX_LEN
1623
1624 # Old name:
1625 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1626 dnl aclocal-1.4 backwards compatibility:
1627 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1628
1629
1630 # _LT_HEADER_DLFCN
1631 # ----------------
1632 m4_defun([_LT_HEADER_DLFCN],
1633 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1634 ])# _LT_HEADER_DLFCN
1635
1636
1637 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1638 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1639 # ----------------------------------------------------------------
1640 m4_defun([_LT_TRY_DLOPEN_SELF],
1641 [m4_require([_LT_HEADER_DLFCN])dnl
1642 if test "$cross_compiling" = yes; then :
1643 [$4]
1644 else
1645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1646 lt_status=$lt_dlunknown
1647 cat > conftest.$ac_ext <<_LT_EOF
1648 [#line __oline__ "configure"
1649 #include "confdefs.h"
1650
1651 #if HAVE_DLFCN_H
1652 #include <dlfcn.h>
1653 #endif
1654
1655 #include <stdio.h>
1656
1657 #ifdef RTLD_GLOBAL
1658 # define LT_DLGLOBAL RTLD_GLOBAL
1659 #else
1660 # ifdef DL_GLOBAL
1661 # define LT_DLGLOBAL DL_GLOBAL
1662 # else
1663 # define LT_DLGLOBAL 0
1664 # endif
1665 #endif
1666
1667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1668 find out it does not work in some platform. */
1669 #ifndef LT_DLLAZY_OR_NOW
1670 # ifdef RTLD_LAZY
1671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1672 # else
1673 # ifdef DL_LAZY
1674 # define LT_DLLAZY_OR_NOW DL_LAZY
1675 # else
1676 # ifdef RTLD_NOW
1677 # define LT_DLLAZY_OR_NOW RTLD_NOW
1678 # else
1679 # ifdef DL_NOW
1680 # define LT_DLLAZY_OR_NOW DL_NOW
1681 # else
1682 # define LT_DLLAZY_OR_NOW 0
1683 # endif
1684 # endif
1685 # endif
1686 # endif
1687 #endif
1688
1689 #ifdef __cplusplus
1690 extern "C" void exit (int);
1691 #endif
1692
1693 void fnord() { int i=42;}
1694 int main ()
1695 {
1696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1697 int status = $lt_dlunknown;
1698
1699 if (self)
1700 {
1701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1703 /* dlclose (self); */
1704 }
1705 else
1706 puts (dlerror ());
1707
1708 exit (status);
1709 }]
1710 _LT_EOF
1711 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1712 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1713 lt_status=$?
1714 case x$lt_status in
1715 x$lt_dlno_uscore) $1 ;;
1716 x$lt_dlneed_uscore) $2 ;;
1717 x$lt_dlunknown|x*) $3 ;;
1718 esac
1719 else :
1720 # compilation failed
1721 $3
1722 fi
1723 fi
1724 rm -fr conftest*
1725 ])# _LT_TRY_DLOPEN_SELF
1726
1727
1728 # LT_SYS_DLOPEN_SELF
1729 # ------------------
1730 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1731 [m4_require([_LT_HEADER_DLFCN])dnl
1732 if test "x$enable_dlopen" != xyes; then
1733 enable_dlopen=unknown
1734 enable_dlopen_self=unknown
1735 enable_dlopen_self_static=unknown
1736 else
1737 lt_cv_dlopen=no
1738 lt_cv_dlopen_libs=
1739
1740 case $host_os in
1741 beos*)
1742 lt_cv_dlopen="load_add_on"
1743 lt_cv_dlopen_libs=
1744 lt_cv_dlopen_self=yes
1745 ;;
1746
1747 mingw* | pw32*)
1748 lt_cv_dlopen="LoadLibrary"
1749 lt_cv_dlopen_libs=
1750 ;;
1751
1752 cygwin*)
1753 lt_cv_dlopen="dlopen"
1754 lt_cv_dlopen_libs=
1755 ;;
1756
1757 darwin*)
1758 # if libdl is installed we need to link against it
1759 AC_CHECK_LIB([dl], [dlopen],
1760 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1761 lt_cv_dlopen="dyld"
1762 lt_cv_dlopen_libs=
1763 lt_cv_dlopen_self=yes
1764 ])
1765 ;;
1766
1767 *)
1768 AC_CHECK_FUNC([shl_load],
1769 [lt_cv_dlopen="shl_load"],
1770 [AC_CHECK_LIB([dld], [shl_load],
1771 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1772 [AC_CHECK_FUNC([dlopen],
1773 [lt_cv_dlopen="dlopen"],
1774 [AC_CHECK_LIB([dl], [dlopen],
1775 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1776 [AC_CHECK_LIB([svld], [dlopen],
1777 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1778 [AC_CHECK_LIB([dld], [dld_link],
1779 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1780 ])
1781 ])
1782 ])
1783 ])
1784 ])
1785 ;;
1786 esac
1787
1788 if test "x$lt_cv_dlopen" != xno; then
1789 enable_dlopen=yes
1790 else
1791 enable_dlopen=no
1792 fi
1793
1794 case $lt_cv_dlopen in
1795 dlopen)
1796 save_CPPFLAGS="$CPPFLAGS"
1797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1798
1799 save_LDFLAGS="$LDFLAGS"
1800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1801
1802 save_LIBS="$LIBS"
1803 LIBS="$lt_cv_dlopen_libs $LIBS"
1804
1805 AC_CACHE_CHECK([whether a program can dlopen itself],
1806 lt_cv_dlopen_self, [dnl
1807 _LT_TRY_DLOPEN_SELF(
1808 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1809 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1810 ])
1811
1812 if test "x$lt_cv_dlopen_self" = xyes; then
1813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1814 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1815 lt_cv_dlopen_self_static, [dnl
1816 _LT_TRY_DLOPEN_SELF(
1817 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1818 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1819 ])
1820 fi
1821
1822 CPPFLAGS="$save_CPPFLAGS"
1823 LDFLAGS="$save_LDFLAGS"
1824 LIBS="$save_LIBS"
1825 ;;
1826 esac
1827
1828 case $lt_cv_dlopen_self in
1829 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1830 *) enable_dlopen_self=unknown ;;
1831 esac
1832
1833 case $lt_cv_dlopen_self_static in
1834 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1835 *) enable_dlopen_self_static=unknown ;;
1836 esac
1837 fi
1838 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1839 [Whether dlopen is supported])
1840 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1841 [Whether dlopen of programs is supported])
1842 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1843 [Whether dlopen of statically linked programs is supported])
1844 ])# LT_SYS_DLOPEN_SELF
1845
1846 # Old name:
1847 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1848 dnl aclocal-1.4 backwards compatibility:
1849 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1850
1851
1852 # _LT_COMPILER_C_O([TAGNAME])
1853 # ---------------------------
1854 # Check to see if options -c and -o are simultaneously supported by compiler.
1855 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1856 m4_defun([_LT_COMPILER_C_O],
1857 [m4_require([_LT_DECL_SED])dnl
1858 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1859 m4_require([_LT_TAG_COMPILER])dnl
1860 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1861 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1862 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1863 $RM -r conftest 2>/dev/null
1864 mkdir conftest
1865 cd conftest
1866 mkdir out
1867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1868
1869 lt_compiler_flag="-o out/conftest2.$ac_objext"
1870 # Insert the option either (1) after the last *FLAGS variable, or
1871 # (2) before a word containing "conftest.", or (3) at the end.
1872 # Note that $ac_compile itself does not contain backslashes and begins
1873 # with a dollar sign (not a hyphen), so the echo should work correctly.
1874 lt_compile=`echo "$ac_compile" | $SED \
1875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1876 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1877 -e 's:$: $lt_compiler_flag:'`
1878 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1879 (eval "$lt_compile" 2>out/conftest.err)
1880 ac_status=$?
1881 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1882 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1884 then
1885 # The compiler can only warn and ignore the option if not recognized
1886 # So say no if there are warnings
1887 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1890 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1891 fi
1892 fi
1893 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1894 $RM conftest*
1895 # SGI C++ compiler will create directory out/ii_files/ for
1896 # template instantiation
1897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1898 $RM out/* && rmdir out
1899 cd ..
1900 $RM -r conftest
1901 $RM conftest*
1902 ])
1903 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1904 [Does compiler simultaneously support -c and -o options?])
1905 ])# _LT_COMPILER_C_O
1906
1907
1908 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1909 # ----------------------------------
1910 # Check to see if we can do hard links to lock some files if needed
1911 m4_defun([_LT_COMPILER_FILE_LOCKS],
1912 [m4_require([_LT_ENABLE_LOCK])dnl
1913 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1914 _LT_COMPILER_C_O([$1])
1915
1916 hard_links="nottested"
1917 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1918 # do not overwrite the value of need_locks provided by the user
1919 AC_MSG_CHECKING([if we can lock with hard links])
1920 hard_links=yes
1921 $RM conftest*
1922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1923 touch conftest.a
1924 ln conftest.a conftest.b 2>&5 || hard_links=no
1925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1926 AC_MSG_RESULT([$hard_links])
1927 if test "$hard_links" = no; then
1928 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1929 need_locks=warn
1930 fi
1931 else
1932 need_locks=no
1933 fi
1934 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1935 ])# _LT_COMPILER_FILE_LOCKS
1936
1937
1938 # _LT_CHECK_OBJDIR
1939 # ----------------
1940 m4_defun([_LT_CHECK_OBJDIR],
1941 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1942 [rm -f .libs 2>/dev/null
1943 mkdir .libs 2>/dev/null
1944 if test -d .libs; then
1945 lt_cv_objdir=.libs
1946 else
1947 # MS-DOS does not allow filenames that begin with a dot.
1948 lt_cv_objdir=_libs
1949 fi
1950 rmdir .libs 2>/dev/null])
1951 objdir=$lt_cv_objdir
1952 _LT_DECL([], [objdir], [0],
1953 [The name of the directory that contains temporary libtool files])dnl
1954 m4_pattern_allow([LT_OBJDIR])dnl
1955 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1956 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1957 ])# _LT_CHECK_OBJDIR
1958
1959
1960 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1961 # --------------------------------------
1962 # Check hardcoding attributes.
1963 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1964 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1965 _LT_TAGVAR(hardcode_action, $1)=
1966 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1967 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1968 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1969
1970 # We can hardcode non-existent directories.
1971 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1973 # have to relink, otherwise we might link with an installed library
1974 # when we should be linking with a yet-to-be-installed one
1975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1976 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1977 # Linking always hardcodes the temporary library directory.
1978 _LT_TAGVAR(hardcode_action, $1)=relink
1979 else
1980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1981 _LT_TAGVAR(hardcode_action, $1)=immediate
1982 fi
1983 else
1984 # We cannot hardcode anything, or else we can only hardcode existing
1985 # directories.
1986 _LT_TAGVAR(hardcode_action, $1)=unsupported
1987 fi
1988 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1989
1990 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1991 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1992 # Fast installation is not supported
1993 enable_fast_install=no
1994 elif test "$shlibpath_overrides_runpath" = yes ||
1995 test "$enable_shared" = no; then
1996 # Fast installation is not necessary
1997 enable_fast_install=needless
1998 fi
1999 _LT_TAGDECL([], [hardcode_action], [0],
2000 [How to hardcode a shared library path into an executable])
2001 ])# _LT_LINKER_HARDCODE_LIBPATH
2002
2003
2004 # _LT_CMD_STRIPLIB
2005 # ----------------
2006 m4_defun([_LT_CMD_STRIPLIB],
2007 [m4_require([_LT_DECL_EGREP])
2008 striplib=
2009 old_striplib=
2010 AC_MSG_CHECKING([whether stripping libraries is possible])
2011 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2012 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2013 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2014 AC_MSG_RESULT([yes])
2015 else
2016 # FIXME - insert some real tests, host_os isn't really good enough
2017 case $host_os in
2018 darwin*)
2019 if test -n "$STRIP" ; then
2020 striplib="$STRIP -x"
2021 old_striplib="$STRIP -S"
2022 AC_MSG_RESULT([yes])
2023 else
2024 AC_MSG_RESULT([no])
2025 fi
2026 ;;
2027 *)
2028 AC_MSG_RESULT([no])
2029 ;;
2030 esac
2031 fi
2032 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2033 _LT_DECL([], [striplib], [1])
2034 ])# _LT_CMD_STRIPLIB
2035
2036
2037 # _LT_SYS_DYNAMIC_LINKER([TAG])
2038 # -----------------------------
2039 # PORTME Fill in your ld.so characteristics
2040 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2041 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2042 m4_require([_LT_DECL_EGREP])dnl
2043 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2044 m4_require([_LT_DECL_SED])dnl
2045 AC_MSG_CHECKING([dynamic linker characteristics])
2046 m4_if([$1],
2047 [], [
2048 if test "$GCC" = yes; then
2049 case $host_os in
2050 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2051 *) lt_awk_arg="/^libraries:/" ;;
2052 esac
2053 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2054 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2055 # if the path contains ";" then we assume it to be the separator
2056 # otherwise default to the standard path separator (i.e. ":") - it is
2057 # assumed that no part of a normal pathname contains ";" but that should
2058 # okay in the real world where ";" in dirpaths is itself problematic.
2059 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2060 else
2061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2062 fi
2063 # Ok, now we have the path, separated by spaces, we can step through it
2064 # and add multilib dir if necessary.
2065 lt_tmp_lt_search_path_spec=
2066 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2067 for lt_sys_path in $lt_search_path_spec; do
2068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2070 else
2071 test -d "$lt_sys_path" && \
2072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2073 fi
2074 done
2075 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2076 BEGIN {RS=" "; FS="/|\n";} {
2077 lt_foo="";
2078 lt_count=0;
2079 for (lt_i = NF; lt_i > 0; lt_i--) {
2080 if ($lt_i != "" && $lt_i != ".") {
2081 if ($lt_i == "..") {
2082 lt_count++;
2083 } else {
2084 if (lt_count == 0) {
2085 lt_foo="/" $lt_i lt_foo;
2086 } else {
2087 lt_count--;
2088 }
2089 }
2090 }
2091 }
2092 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2093 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2094 }'`
2095 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2096 else
2097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2098 fi])
2099 library_names_spec=
2100 libname_spec='lib$name'
2101 soname_spec=
2102 shrext_cmds=".so"
2103 postinstall_cmds=
2104 postuninstall_cmds=
2105 finish_cmds=
2106 finish_eval=
2107 shlibpath_var=
2108 shlibpath_overrides_runpath=unknown
2109 version_type=none
2110 dynamic_linker="$host_os ld.so"
2111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2112 need_lib_prefix=unknown
2113 hardcode_into_libs=no
2114
2115 # when you set need_version to no, make sure it does not cause -set_version
2116 # flags to be left without arguments
2117 need_version=unknown
2118
2119 case $host_os in
2120 aix3*)
2121 version_type=linux
2122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2123 shlibpath_var=LIBPATH
2124
2125 # AIX 3 has no versioning support, so we append a major version to the name.
2126 soname_spec='${libname}${release}${shared_ext}$major'
2127 ;;
2128
2129 aix[[4-9]]*)
2130 version_type=linux
2131 need_lib_prefix=no
2132 need_version=no
2133 hardcode_into_libs=yes
2134 if test "$host_cpu" = ia64; then
2135 # AIX 5 supports IA64
2136 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2137 shlibpath_var=LD_LIBRARY_PATH
2138 else
2139 # With GCC up to 2.95.x, collect2 would create an import file
2140 # for dependence libraries. The import file would start with
2141 # the line `#! .'. This would cause the generated library to
2142 # depend on `.', always an invalid library. This was fixed in
2143 # development snapshots of GCC prior to 3.0.
2144 case $host_os in
2145 aix4 | aix4.[[01]] | aix4.[[01]].*)
2146 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2147 echo ' yes '
2148 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2149 :
2150 else
2151 can_build_shared=no
2152 fi
2153 ;;
2154 esac
2155 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2156 # soname into executable. Probably we can add versioning support to
2157 # collect2, so additional links can be useful in future.
2158 if test "$aix_use_runtimelinking" = yes; then
2159 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2160 # instead of lib<name>.a to let people know that these are not
2161 # typical AIX shared libraries.
2162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2163 else
2164 # We preserve .a as extension for shared libraries through AIX4.2
2165 # and later when we are not doing run time linking.
2166 library_names_spec='${libname}${release}.a $libname.a'
2167 soname_spec='${libname}${release}${shared_ext}$major'
2168 fi
2169 shlibpath_var=LIBPATH
2170 fi
2171 ;;
2172
2173 amigaos*)
2174 case $host_cpu in
2175 powerpc)
2176 # Since July 2007 AmigaOS4 officially supports .so libraries.
2177 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2179 ;;
2180 m68k)
2181 library_names_spec='$libname.ixlibrary $libname.a'
2182 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2183 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'
2184 ;;
2185 esac
2186 ;;
2187
2188 beos*)
2189 library_names_spec='${libname}${shared_ext}'
2190 dynamic_linker="$host_os ld.so"
2191 shlibpath_var=LIBRARY_PATH
2192 ;;
2193
2194 bsdi[[45]]*)
2195 version_type=linux
2196 need_version=no
2197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2198 soname_spec='${libname}${release}${shared_ext}$major'
2199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2200 shlibpath_var=LD_LIBRARY_PATH
2201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2203 # the default ld.so.conf also contains /usr/contrib/lib and
2204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2205 # libtool to hard-code these into programs
2206 ;;
2207
2208 cygwin* | mingw* | pw32*)
2209 version_type=windows
2210 shrext_cmds=".dll"
2211 need_version=no
2212 need_lib_prefix=no
2213
2214 case $GCC,$host_os in
2215 yes,cygwin* | yes,mingw* | yes,pw32*)
2216 library_names_spec='$libname.dll.a'
2217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2218 postinstall_cmds='base_file=`basename \${file}`~
2219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2220 dldir=$destdir/`dirname \$dlpath`~
2221 test -d \$dldir || mkdir -p \$dldir~
2222 $install_prog $dir/$dlname \$dldir/$dlname~
2223 chmod a+x \$dldir/$dlname~
2224 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2225 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2226 fi'
2227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2228 dlpath=$dir/\$dldll~
2229 $RM \$dlpath'
2230 shlibpath_overrides_runpath=yes
2231
2232 case $host_os in
2233 cygwin*)
2234 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2236 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2237 ;;
2238 mingw*)
2239 # MinGW DLLs use traditional 'lib' prefix
2240 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2241 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2242 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2243 # It is most probably a Windows format PATH printed by
2244 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2245 # path with ; separators, and with drive letters. We can handle the
2246 # drive letters (cygwin fileutils understands them), so leave them,
2247 # especially as we might pass files found there to a mingw objdump,
2248 # which wouldn't understand a cygwinified path. Ahh.
2249 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2250 else
2251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2252 fi
2253 ;;
2254 pw32*)
2255 # pw32 DLLs use 'pw' prefix rather than 'lib'
2256 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2257 ;;
2258 esac
2259 ;;
2260
2261 *)
2262 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2263 ;;
2264 esac
2265 dynamic_linker='Win32 ld.exe'
2266 # FIXME: first we should search . and the directory the executable is in
2267 shlibpath_var=PATH
2268 ;;
2269
2270 darwin* | rhapsody*)
2271 dynamic_linker="$host_os dyld"
2272 version_type=darwin
2273 need_lib_prefix=no
2274 need_version=no
2275 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2276 soname_spec='${libname}${release}${major}$shared_ext'
2277 shlibpath_overrides_runpath=yes
2278 shlibpath_var=DYLD_LIBRARY_PATH
2279 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2280 m4_if([$1], [],[
2281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2283 ;;
2284
2285 dgux*)
2286 version_type=linux
2287 need_lib_prefix=no
2288 need_version=no
2289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2290 soname_spec='${libname}${release}${shared_ext}$major'
2291 shlibpath_var=LD_LIBRARY_PATH
2292 ;;
2293
2294 freebsd1*)
2295 dynamic_linker=no
2296 ;;
2297
2298 freebsd* | dragonfly*)
2299 # DragonFly does not have aout. When/if they implement a new
2300 # versioning mechanism, adjust this.
2301 if test -x /usr/bin/objformat; then
2302 objformat=`/usr/bin/objformat`
2303 else
2304 case $host_os in
2305 freebsd[[123]]*) objformat=aout ;;
2306 *) objformat=elf ;;
2307 esac
2308 fi
2309 version_type=freebsd-$objformat
2310 case $version_type in
2311 freebsd-elf*)
2312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2313 need_version=no
2314 need_lib_prefix=no
2315 ;;
2316 freebsd-*)
2317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2318 need_version=yes
2319 ;;
2320 esac
2321 shlibpath_var=LD_LIBRARY_PATH
2322 case $host_os in
2323 freebsd2*)
2324 shlibpath_overrides_runpath=yes
2325 ;;
2326 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2327 shlibpath_overrides_runpath=yes
2328 hardcode_into_libs=yes
2329 ;;
2330 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2331 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2332 shlibpath_overrides_runpath=no
2333 hardcode_into_libs=yes
2334 ;;
2335 *) # from 4.6 on, and DragonFly
2336 shlibpath_overrides_runpath=yes
2337 hardcode_into_libs=yes
2338 ;;
2339 esac
2340 ;;
2341
2342 gnu*)
2343 version_type=linux
2344 need_lib_prefix=no
2345 need_version=no
2346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2347 soname_spec='${libname}${release}${shared_ext}$major'
2348 shlibpath_var=LD_LIBRARY_PATH
2349 hardcode_into_libs=yes
2350 ;;
2351
2352 hpux9* | hpux10* | hpux11*)
2353 # Give a soname corresponding to the major version so that dld.sl refuses to
2354 # link against other versions.
2355 version_type=sunos
2356 need_lib_prefix=no
2357 need_version=no
2358 case $host_cpu in
2359 ia64*)
2360 shrext_cmds='.so'
2361 hardcode_into_libs=yes
2362 dynamic_linker="$host_os dld.so"
2363 shlibpath_var=LD_LIBRARY_PATH
2364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2366 soname_spec='${libname}${release}${shared_ext}$major'
2367 if test "X$HPUX_IA64_MODE" = X32; then
2368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2369 else
2370 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2371 fi
2372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2373 ;;
2374 hppa*64*)
2375 shrext_cmds='.sl'
2376 hardcode_into_libs=yes
2377 dynamic_linker="$host_os dld.sl"
2378 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2381 soname_spec='${libname}${release}${shared_ext}$major'
2382 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2384 ;;
2385 *)
2386 shrext_cmds='.sl'
2387 dynamic_linker="$host_os dld.sl"
2388 shlibpath_var=SHLIB_PATH
2389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2391 soname_spec='${libname}${release}${shared_ext}$major'
2392 ;;
2393 esac
2394 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2395 postinstall_cmds='chmod 555 $lib'
2396 ;;
2397
2398 interix[[3-9]]*)
2399 version_type=linux
2400 need_lib_prefix=no
2401 need_version=no
2402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2403 soname_spec='${libname}${release}${shared_ext}$major'
2404 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2405 shlibpath_var=LD_LIBRARY_PATH
2406 shlibpath_overrides_runpath=no
2407 hardcode_into_libs=yes
2408 ;;
2409
2410 irix5* | irix6* | nonstopux*)
2411 case $host_os in
2412 nonstopux*) version_type=nonstopux ;;
2413 *)
2414 if test "$lt_cv_prog_gnu_ld" = yes; then
2415 version_type=linux
2416 else
2417 version_type=irix
2418 fi ;;
2419 esac
2420 need_lib_prefix=no
2421 need_version=no
2422 soname_spec='${libname}${release}${shared_ext}$major'
2423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2424 case $host_os in
2425 irix5* | nonstopux*)
2426 libsuff= shlibsuff=
2427 ;;
2428 *)
2429 case $LD in # libtool.m4 will add one of these switches to LD
2430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2431 libsuff= shlibsuff= libmagic=32-bit;;
2432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2433 libsuff=32 shlibsuff=N32 libmagic=N32;;
2434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2436 *) libsuff= shlibsuff= libmagic=never-match;;
2437 esac
2438 ;;
2439 esac
2440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2441 shlibpath_overrides_runpath=no
2442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2444 hardcode_into_libs=yes
2445 ;;
2446
2447 # No shared lib support for Linux oldld, aout, or coff.
2448 linux*oldld* | linux*aout* | linux*coff*)
2449 dynamic_linker=no
2450 ;;
2451
2452 # This must be Linux ELF.
2453 linux* | k*bsd*-gnu)
2454 version_type=linux
2455 need_lib_prefix=no
2456 need_version=no
2457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2458 soname_spec='${libname}${release}${shared_ext}$major'
2459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2460 shlibpath_var=LD_LIBRARY_PATH
2461 shlibpath_overrides_runpath=no
2462 # Some binutils ld are patched to set DT_RUNPATH
2463 save_LDFLAGS=$LDFLAGS
2464 save_libdir=$libdir
2465 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2466 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2467 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2468 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2469 [shlibpath_overrides_runpath=yes])])
2470 LDFLAGS=$save_LDFLAGS
2471 libdir=$save_libdir
2472
2473 # This implies no fast_install, which is unacceptable.
2474 # Some rework will be needed to allow for fast_install
2475 # before this can be enabled.
2476 hardcode_into_libs=yes
2477
2478 # Append ld.so.conf contents to the search path
2479 if test -f /etc/ld.so.conf; then
2480 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' ' '`
2481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2482 fi
2483
2484 # We used to test for /lib/ld.so.1 and disable shared libraries on
2485 # powerpc, because MkLinux only supported shared libraries with the
2486 # GNU dynamic linker. Since this was broken with cross compilers,
2487 # most powerpc-linux boxes support dynamic linking these days and
2488 # people can always --disable-shared, the test was removed, and we
2489 # assume the GNU/Linux dynamic linker is in use.
2490 dynamic_linker='GNU/Linux ld.so'
2491 ;;
2492
2493 netbsdelf*-gnu)
2494 version_type=linux
2495 need_lib_prefix=no
2496 need_version=no
2497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2498 soname_spec='${libname}${release}${shared_ext}$major'
2499 shlibpath_var=LD_LIBRARY_PATH
2500 shlibpath_overrides_runpath=no
2501 hardcode_into_libs=yes
2502 dynamic_linker='NetBSD ld.elf_so'
2503 ;;
2504
2505 netbsd*)
2506 version_type=sunos
2507 need_lib_prefix=no
2508 need_version=no
2509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2512 dynamic_linker='NetBSD (a.out) ld.so'
2513 else
2514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2515 soname_spec='${libname}${release}${shared_ext}$major'
2516 dynamic_linker='NetBSD ld.elf_so'
2517 fi
2518 shlibpath_var=LD_LIBRARY_PATH
2519 shlibpath_overrides_runpath=yes
2520 hardcode_into_libs=yes
2521 ;;
2522
2523 newsos6)
2524 version_type=linux
2525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2526 shlibpath_var=LD_LIBRARY_PATH
2527 shlibpath_overrides_runpath=yes
2528 ;;
2529
2530 *nto* | *qnx*)
2531 version_type=qnx
2532 need_lib_prefix=no
2533 need_version=no
2534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2535 soname_spec='${libname}${release}${shared_ext}$major'
2536 shlibpath_var=LD_LIBRARY_PATH
2537 shlibpath_overrides_runpath=no
2538 hardcode_into_libs=yes
2539 dynamic_linker='ldqnx.so'
2540 ;;
2541
2542 openbsd*)
2543 version_type=sunos
2544 sys_lib_dlsearch_path_spec="/usr/lib"
2545 need_lib_prefix=no
2546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2547 case $host_os in
2548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2549 *) need_version=no ;;
2550 esac
2551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2553 shlibpath_var=LD_LIBRARY_PATH
2554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2555 case $host_os in
2556 openbsd2.[[89]] | openbsd2.[[89]].*)
2557 shlibpath_overrides_runpath=no
2558 ;;
2559 *)
2560 shlibpath_overrides_runpath=yes
2561 ;;
2562 esac
2563 else
2564 shlibpath_overrides_runpath=yes
2565 fi
2566 ;;
2567
2568 os2*)
2569 libname_spec='$name'
2570 shrext_cmds=".dll"
2571 need_lib_prefix=no
2572 library_names_spec='$libname${shared_ext} $libname.a'
2573 dynamic_linker='OS/2 ld.exe'
2574 shlibpath_var=LIBPATH
2575 ;;
2576
2577 osf3* | osf4* | osf5*)
2578 version_type=osf
2579 need_lib_prefix=no
2580 need_version=no
2581 soname_spec='${libname}${release}${shared_ext}$major'
2582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2583 shlibpath_var=LD_LIBRARY_PATH
2584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2586 ;;
2587
2588 rdos*)
2589 dynamic_linker=no
2590 ;;
2591
2592 solaris*)
2593 version_type=linux
2594 need_lib_prefix=no
2595 need_version=no
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2597 soname_spec='${libname}${release}${shared_ext}$major'
2598 shlibpath_var=LD_LIBRARY_PATH
2599 shlibpath_overrides_runpath=yes
2600 hardcode_into_libs=yes
2601 # ldd complains unless libraries are executable
2602 postinstall_cmds='chmod +x $lib'
2603 ;;
2604
2605 sunos4*)
2606 version_type=sunos
2607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2609 shlibpath_var=LD_LIBRARY_PATH
2610 shlibpath_overrides_runpath=yes
2611 if test "$with_gnu_ld" = yes; then
2612 need_lib_prefix=no
2613 fi
2614 need_version=yes
2615 ;;
2616
2617 sysv4 | sysv4.3*)
2618 version_type=linux
2619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2620 soname_spec='${libname}${release}${shared_ext}$major'
2621 shlibpath_var=LD_LIBRARY_PATH
2622 case $host_vendor in
2623 sni)
2624 shlibpath_overrides_runpath=no
2625 need_lib_prefix=no
2626 runpath_var=LD_RUN_PATH
2627 ;;
2628 siemens)
2629 need_lib_prefix=no
2630 ;;
2631 motorola)
2632 need_lib_prefix=no
2633 need_version=no
2634 shlibpath_overrides_runpath=no
2635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2636 ;;
2637 esac
2638 ;;
2639
2640 sysv4*MP*)
2641 if test -d /usr/nec ;then
2642 version_type=linux
2643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2644 soname_spec='$libname${shared_ext}.$major'
2645 shlibpath_var=LD_LIBRARY_PATH
2646 fi
2647 ;;
2648
2649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2650 version_type=freebsd-elf
2651 need_lib_prefix=no
2652 need_version=no
2653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2654 soname_spec='${libname}${release}${shared_ext}$major'
2655 shlibpath_var=LD_LIBRARY_PATH
2656 shlibpath_overrides_runpath=yes
2657 hardcode_into_libs=yes
2658 if test "$with_gnu_ld" = yes; then
2659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2660 else
2661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2662 case $host_os in
2663 sco3.2v5*)
2664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2665 ;;
2666 esac
2667 fi
2668 sys_lib_dlsearch_path_spec='/usr/lib'
2669 ;;
2670
2671 tpf*)
2672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2673 version_type=linux
2674 need_lib_prefix=no
2675 need_version=no
2676 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2677 shlibpath_var=LD_LIBRARY_PATH
2678 shlibpath_overrides_runpath=no
2679 hardcode_into_libs=yes
2680 ;;
2681
2682 uts4*)
2683 version_type=linux
2684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2685 soname_spec='${libname}${release}${shared_ext}$major'
2686 shlibpath_var=LD_LIBRARY_PATH
2687 ;;
2688
2689 *)
2690 dynamic_linker=no
2691 ;;
2692 esac
2693 AC_MSG_RESULT([$dynamic_linker])
2694 test "$dynamic_linker" = no && can_build_shared=no
2695
2696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2697 if test "$GCC" = yes; then
2698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2699 fi
2700
2701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2703 fi
2704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2706 fi
2707
2708 _LT_DECL([], [variables_saved_for_relink], [1],
2709 [Variables whose values should be saved in libtool wrapper scripts and
2710 restored at link time])
2711 _LT_DECL([], [need_lib_prefix], [0],
2712 [Do we need the "lib" prefix for modules?])
2713 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2714 _LT_DECL([], [version_type], [0], [Library versioning type])
2715 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2716 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2717 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2718 [Is shlibpath searched before the hard-coded library search path?])
2719 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2720 _LT_DECL([], [library_names_spec], [1],
2721 [[List of archive names. First name is the real one, the rest are links.
2722 The last name is the one that the linker finds with -lNAME]])
2723 _LT_DECL([], [soname_spec], [1],
2724 [[The coded name of the library, if different from the real name]])
2725 _LT_DECL([], [postinstall_cmds], [2],
2726 [Command to use after installation of a shared archive])
2727 _LT_DECL([], [postuninstall_cmds], [2],
2728 [Command to use after uninstallation of a shared archive])
2729 _LT_DECL([], [finish_cmds], [2],
2730 [Commands used to finish a libtool library installation in a directory])
2731 _LT_DECL([], [finish_eval], [1],
2732 [[As "finish_cmds", except a single script fragment to be evaled but
2733 not shown]])
2734 _LT_DECL([], [hardcode_into_libs], [0],
2735 [Whether we should hardcode library paths into libraries])
2736 _LT_DECL([], [sys_lib_search_path_spec], [2],
2737 [Compile-time system search path for libraries])
2738 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2739 [Run-time system search path for libraries])
2740 ])# _LT_SYS_DYNAMIC_LINKER
2741
2742
2743 # _LT_PATH_TOOL_PREFIX(TOOL)
2744 # --------------------------
2745 # find a file program which can recognize shared library
2746 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2747 [m4_require([_LT_DECL_EGREP])dnl
2748 AC_MSG_CHECKING([for $1])
2749 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2750 [case $MAGIC_CMD in
2751 [[\\/*] | ?:[\\/]*])
2752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2753 ;;
2754 *)
2755 lt_save_MAGIC_CMD="$MAGIC_CMD"
2756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2757 dnl $ac_dummy forces splitting on constant user-supplied paths.
2758 dnl POSIX.2 word splitting is done only on the output of word expansions,
2759 dnl not every word. This closes a longstanding sh security hole.
2760 ac_dummy="m4_if([$2], , $PATH, [$2])"
2761 for ac_dir in $ac_dummy; do
2762 IFS="$lt_save_ifs"
2763 test -z "$ac_dir" && ac_dir=.
2764 if test -f $ac_dir/$1; then
2765 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2766 if test -n "$file_magic_test_file"; then
2767 case $deplibs_check_method in
2768 "file_magic "*)
2769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2772 $EGREP "$file_magic_regex" > /dev/null; then
2773 :
2774 else
2775 cat <<_LT_EOF 1>&2
2776
2777 *** Warning: the command libtool uses to detect shared libraries,
2778 *** $file_magic_cmd, produces output that libtool cannot recognize.
2779 *** The result is that libtool may fail to recognize shared libraries
2780 *** as such. This will affect the creation of libtool libraries that
2781 *** depend on shared libraries, but programs linked with such libtool
2782 *** libraries will work regardless of this problem. Nevertheless, you
2783 *** may want to report the problem to your system manager and/or to
2784 *** bug-libtool@gnu.org
2785
2786 _LT_EOF
2787 fi ;;
2788 esac
2789 fi
2790 break
2791 fi
2792 done
2793 IFS="$lt_save_ifs"
2794 MAGIC_CMD="$lt_save_MAGIC_CMD"
2795 ;;
2796 esac])
2797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2798 if test -n "$MAGIC_CMD"; then
2799 AC_MSG_RESULT($MAGIC_CMD)
2800 else
2801 AC_MSG_RESULT(no)
2802 fi
2803 _LT_DECL([], [MAGIC_CMD], [0],
2804 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2805 ])# _LT_PATH_TOOL_PREFIX
2806
2807 # Old name:
2808 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2809 dnl aclocal-1.4 backwards compatibility:
2810 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2811
2812
2813 # _LT_PATH_MAGIC
2814 # --------------
2815 # find a file program which can recognize a shared library
2816 m4_defun([_LT_PATH_MAGIC],
2817 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2818 if test -z "$lt_cv_path_MAGIC_CMD"; then
2819 if test -n "$ac_tool_prefix"; then
2820 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2821 else
2822 MAGIC_CMD=:
2823 fi
2824 fi
2825 ])# _LT_PATH_MAGIC
2826
2827
2828 # LT_PATH_LD
2829 # ----------
2830 # find the pathname to the GNU or non-GNU linker
2831 AC_DEFUN([LT_PATH_LD],
2832 [AC_REQUIRE([AC_PROG_CC])dnl
2833 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2834 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2835 m4_require([_LT_DECL_SED])dnl
2836 m4_require([_LT_DECL_EGREP])dnl
2837
2838 AC_ARG_WITH([gnu-ld],
2839 [AS_HELP_STRING([--with-gnu-ld],
2840 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2841 [test "$withval" = no || with_gnu_ld=yes],
2842 [with_gnu_ld=no])dnl
2843
2844 ac_prog=ld
2845 if test "$GCC" = yes; then
2846 # Check if gcc -print-prog-name=ld gives a path.
2847 AC_MSG_CHECKING([for ld used by $CC])
2848 case $host in
2849 *-*-mingw*)
2850 # gcc leaves a trailing carriage return which upsets mingw
2851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2852 *)
2853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2854 esac
2855 case $ac_prog in
2856 # Accept absolute paths.
2857 [[\\/]]* | ?:[[\\/]]*)
2858 re_direlt='/[[^/]][[^/]]*/\.\./'
2859 # Canonicalize the pathname of ld
2860 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2861 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2862 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2863 done
2864 test -z "$LD" && LD="$ac_prog"
2865 ;;
2866 "")
2867 # If it fails, then pretend we aren't using GCC.
2868 ac_prog=ld
2869 ;;
2870 *)
2871 # If it is relative, then search for the first ld in PATH.
2872 with_gnu_ld=unknown
2873 ;;
2874 esac
2875 elif test "$with_gnu_ld" = yes; then
2876 AC_MSG_CHECKING([for GNU ld])
2877 else
2878 AC_MSG_CHECKING([for non-GNU ld])
2879 fi
2880 AC_CACHE_VAL(lt_cv_path_LD,
2881 [if test -z "$LD"; then
2882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2883 for ac_dir in $PATH; do
2884 IFS="$lt_save_ifs"
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2887 lt_cv_path_LD="$ac_dir/$ac_prog"
2888 # Check to see if the program is GNU ld. I'd rather use --version,
2889 # but apparently some variants of GNU ld only accept -v.
2890 # Break only if it was the GNU/non-GNU ld that we prefer.
2891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2892 *GNU* | *'with BFD'*)
2893 test "$with_gnu_ld" != no && break
2894 ;;
2895 *)
2896 test "$with_gnu_ld" != yes && break
2897 ;;
2898 esac
2899 fi
2900 done
2901 IFS="$lt_save_ifs"
2902 else
2903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2904 fi])
2905 LD="$lt_cv_path_LD"
2906 if test -n "$LD"; then
2907 AC_MSG_RESULT($LD)
2908 else
2909 AC_MSG_RESULT(no)
2910 fi
2911 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2912 _LT_PATH_LD_GNU
2913 AC_SUBST([LD])
2914
2915 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2916 ])# LT_PATH_LD
2917
2918 # Old names:
2919 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2920 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2921 dnl aclocal-1.4 backwards compatibility:
2922 dnl AC_DEFUN([AM_PROG_LD], [])
2923 dnl AC_DEFUN([AC_PROG_LD], [])
2924
2925
2926 # _LT_PATH_LD_GNU
2927 #- --------------
2928 m4_defun([_LT_PATH_LD_GNU],
2929 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2930 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2931 case `$LD -v 2>&1 </dev/null` in
2932 *GNU* | *'with BFD'*)
2933 lt_cv_prog_gnu_ld=yes
2934 ;;
2935 *)
2936 lt_cv_prog_gnu_ld=no
2937 ;;
2938 esac])
2939 with_gnu_ld=$lt_cv_prog_gnu_ld
2940 ])# _LT_PATH_LD_GNU
2941
2942
2943 # _LT_CMD_RELOAD
2944 # --------------
2945 # find reload flag for linker
2946 # -- PORTME Some linkers may need a different reload flag.
2947 m4_defun([_LT_CMD_RELOAD],
2948 [AC_CACHE_CHECK([for $LD option to reload object files],
2949 lt_cv_ld_reload_flag,
2950 [lt_cv_ld_reload_flag='-r'])
2951 reload_flag=$lt_cv_ld_reload_flag
2952 case $reload_flag in
2953 "" | " "*) ;;
2954 *) reload_flag=" $reload_flag" ;;
2955 esac
2956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2957 case $host_os in
2958 darwin*)
2959 if test "$GCC" = yes; then
2960 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2961 else
2962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2963 fi
2964 ;;
2965 esac
2966 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2967 _LT_DECL([], [reload_cmds], [2])dnl
2968 ])# _LT_CMD_RELOAD
2969
2970
2971 # _LT_CHECK_MAGIC_METHOD
2972 # ----------------------
2973 # how to check for library dependencies
2974 # -- PORTME fill in with the dynamic library characteristics
2975 m4_defun([_LT_CHECK_MAGIC_METHOD],
2976 [m4_require([_LT_DECL_EGREP])
2977 AC_CACHE_CHECK([how to recognize dependent libraries],
2978 lt_cv_deplibs_check_method,
2979 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2980 lt_cv_file_magic_test_file=
2981 lt_cv_deplibs_check_method='unknown'
2982 # Need to set the preceding variable on all platforms that support
2983 # interlibrary dependencies.
2984 # 'none' -- dependencies not supported.
2985 # `unknown' -- same as none, but documents that we really don't know.
2986 # 'pass_all' -- all dependencies passed with no checks.
2987 # 'test_compile' -- check by making test program.
2988 # 'file_magic [[regex]]' -- check by looking for files in library path
2989 # which responds to the $file_magic_cmd with a given extended regex.
2990 # If you have `file' or equivalent on your system and you're not sure
2991 # whether `pass_all' will *always* work, you probably want this one.
2992
2993 case $host_os in
2994 aix[[4-9]]*)
2995 lt_cv_deplibs_check_method=pass_all
2996 ;;
2997
2998 beos*)
2999 lt_cv_deplibs_check_method=pass_all
3000 ;;
3001
3002 bsdi[[45]]*)
3003 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3004 lt_cv_file_magic_cmd='/usr/bin/file -L'
3005 lt_cv_file_magic_test_file=/shlib/libc.so
3006 ;;
3007
3008 cygwin*)
3009 # func_win32_libid is a shell function defined in ltmain.sh
3010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3011 lt_cv_file_magic_cmd='func_win32_libid'
3012 ;;
3013
3014 mingw* | pw32*)
3015 # Base MSYS/MinGW do not provide the 'file' command needed by
3016 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3017 # unless we find 'file', for example because we are cross-compiling.
3018 if ( file / ) >/dev/null 2>&1; then
3019 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3020 lt_cv_file_magic_cmd='func_win32_libid'
3021 else
3022 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3023 lt_cv_file_magic_cmd='$OBJDUMP -f'
3024 fi
3025 ;;
3026
3027 darwin* | rhapsody*)
3028 lt_cv_deplibs_check_method=pass_all
3029 ;;
3030
3031 freebsd* | dragonfly*)
3032 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3033 case $host_cpu in
3034 i*86 )
3035 # Not sure whether the presence of OpenBSD here was a mistake.
3036 # Let's accept both of them until this is cleared up.
3037 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3038 lt_cv_file_magic_cmd=/usr/bin/file
3039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3040 ;;
3041 esac
3042 else
3043 lt_cv_deplibs_check_method=pass_all
3044 fi
3045 ;;
3046
3047 gnu*)
3048 lt_cv_deplibs_check_method=pass_all
3049 ;;
3050
3051 hpux10.20* | hpux11*)
3052 lt_cv_file_magic_cmd=/usr/bin/file
3053 case $host_cpu in
3054 ia64*)
3055 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3057 ;;
3058 hppa*64*)
3059 [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]']
3060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3061 ;;
3062 *)
3063 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3065 ;;
3066 esac
3067 ;;
3068
3069 interix[[3-9]]*)
3070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3071 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3072 ;;
3073
3074 irix5* | irix6* | nonstopux*)
3075 case $LD in
3076 *-32|*"-32 ") libmagic=32-bit;;
3077 *-n32|*"-n32 ") libmagic=N32;;
3078 *-64|*"-64 ") libmagic=64-bit;;
3079 *) libmagic=never-match;;
3080 esac
3081 lt_cv_deplibs_check_method=pass_all
3082 ;;
3083
3084 # This must be Linux ELF.
3085 linux* | k*bsd*-gnu)
3086 lt_cv_deplibs_check_method=pass_all
3087 ;;
3088
3089 netbsd* | netbsdelf*-gnu)
3090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3091 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3092 else
3093 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3094 fi
3095 ;;
3096
3097 newos6*)
3098 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3099 lt_cv_file_magic_cmd=/usr/bin/file
3100 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3101 ;;
3102
3103 *nto* | *qnx*)
3104 lt_cv_deplibs_check_method=pass_all
3105 ;;
3106
3107 openbsd*)
3108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3109 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3110 else
3111 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3112 fi
3113 ;;
3114
3115 osf3* | osf4* | osf5*)
3116 lt_cv_deplibs_check_method=pass_all
3117 ;;
3118
3119 rdos*)
3120 lt_cv_deplibs_check_method=pass_all
3121 ;;
3122
3123 solaris*)
3124 lt_cv_deplibs_check_method=pass_all
3125 ;;
3126
3127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3128 lt_cv_deplibs_check_method=pass_all
3129 ;;
3130
3131 sysv4 | sysv4.3*)
3132 case $host_vendor in
3133 motorola)
3134 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]]'
3135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3136 ;;
3137 ncr)
3138 lt_cv_deplibs_check_method=pass_all
3139 ;;
3140 sequent)
3141 lt_cv_file_magic_cmd='/bin/file'
3142 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3143 ;;
3144 sni)
3145 lt_cv_file_magic_cmd='/bin/file'
3146 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3147 lt_cv_file_magic_test_file=/lib/libc.so
3148 ;;
3149 siemens)
3150 lt_cv_deplibs_check_method=pass_all
3151 ;;
3152 pc)
3153 lt_cv_deplibs_check_method=pass_all
3154 ;;
3155 esac
3156 ;;
3157
3158 tpf*)
3159 lt_cv_deplibs_check_method=pass_all
3160 ;;
3161 esac
3162 ])
3163 file_magic_cmd=$lt_cv_file_magic_cmd
3164 deplibs_check_method=$lt_cv_deplibs_check_method
3165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3166
3167 _LT_DECL([], [deplibs_check_method], [1],
3168 [Method to check whether dependent libraries are shared objects])
3169 _LT_DECL([], [file_magic_cmd], [1],
3170 [Command to use when deplibs_check_method == "file_magic"])
3171 ])# _LT_CHECK_MAGIC_METHOD
3172
3173
3174 # LT_PATH_NM
3175 # ----------
3176 # find the pathname to a BSD- or MS-compatible name lister
3177 AC_DEFUN([LT_PATH_NM],
3178 [AC_REQUIRE([AC_PROG_CC])dnl
3179 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3180 [if test -n "$NM"; then
3181 # Let the user override the test.
3182 lt_cv_path_NM="$NM"
3183 else
3184 lt_nm_to_check="${ac_tool_prefix}nm"
3185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3186 lt_nm_to_check="$lt_nm_to_check nm"
3187 fi
3188 for lt_tmp_nm in $lt_nm_to_check; do
3189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3191 IFS="$lt_save_ifs"
3192 test -z "$ac_dir" && ac_dir=.
3193 tmp_nm="$ac_dir/$lt_tmp_nm"
3194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3195 # Check to see if the nm accepts a BSD-compat flag.
3196 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3197 # nm: unknown option "B" ignored
3198 # Tru64's nm complains that /dev/null is an invalid object file
3199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3200 */dev/null* | *'Invalid file or object type'*)
3201 lt_cv_path_NM="$tmp_nm -B"
3202 break
3203 ;;
3204 *)
3205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3206 */dev/null*)
3207 lt_cv_path_NM="$tmp_nm -p"
3208 break
3209 ;;
3210 *)
3211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3212 continue # so that we can try to find one that supports BSD flags
3213 ;;
3214 esac
3215 ;;
3216 esac
3217 fi
3218 done
3219 IFS="$lt_save_ifs"
3220 done
3221 : ${lt_cv_path_NM=no}
3222 fi])
3223 if test "$lt_cv_path_NM" != "no"; then
3224 NM="$lt_cv_path_NM"
3225 else
3226 # Didn't find any BSD compatible name lister, look for dumpbin.
3227 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3228 AC_SUBST([DUMPBIN])
3229 if test "$DUMPBIN" != ":"; then
3230 NM="$DUMPBIN"
3231 fi
3232 fi
3233 test -z "$NM" && NM=nm
3234 AC_SUBST([NM])
3235 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3236
3237 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3238 [lt_cv_nm_interface="BSD nm"
3239 echo "int some_variable = 0;" > conftest.$ac_ext
3240 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3241 (eval "$ac_compile" 2>conftest.err)
3242 cat conftest.err >&AS_MESSAGE_LOG_FD
3243 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3244 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3245 cat conftest.err >&AS_MESSAGE_LOG_FD
3246 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3247 cat conftest.out >&AS_MESSAGE_LOG_FD
3248 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3249 lt_cv_nm_interface="MS dumpbin"
3250 fi
3251 rm -f conftest*])
3252 ])# LT_PATH_NM
3253
3254 # Old names:
3255 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3256 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3257 dnl aclocal-1.4 backwards compatibility:
3258 dnl AC_DEFUN([AM_PROG_NM], [])
3259 dnl AC_DEFUN([AC_PROG_NM], [])
3260
3261
3262 # LT_LIB_M
3263 # --------
3264 # check for math library
3265 AC_DEFUN([LT_LIB_M],
3266 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3267 LIBM=
3268 case $host in
3269 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3270 # These system don't have libm, or don't need it
3271 ;;
3272 *-ncr-sysv4.3*)
3273 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3274 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3275 ;;
3276 *)
3277 AC_CHECK_LIB(m, cos, LIBM="-lm")
3278 ;;
3279 esac
3280 AC_SUBST([LIBM])
3281 ])# LT_LIB_M
3282
3283 # Old name:
3284 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3285 dnl aclocal-1.4 backwards compatibility:
3286 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3287
3288
3289 # _LT_COMPILER_NO_RTTI([TAGNAME])
3290 # -------------------------------
3291 m4_defun([_LT_COMPILER_NO_RTTI],
3292 [m4_require([_LT_TAG_COMPILER])dnl
3293
3294 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3295
3296 if test "$GCC" = yes; then
3297 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3298
3299 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3300 lt_cv_prog_compiler_rtti_exceptions,
3301 [-fno-rtti -fno-exceptions], [],
3302 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3303 fi
3304 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3305 [Compiler flag to turn off builtin functions])
3306 ])# _LT_COMPILER_NO_RTTI
3307
3308
3309 # _LT_CMD_GLOBAL_SYMBOLS
3310 # ----------------------
3311 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3312 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3313 AC_REQUIRE([AC_PROG_CC])dnl
3314 AC_REQUIRE([LT_PATH_NM])dnl
3315 AC_REQUIRE([LT_PATH_LD])dnl
3316 m4_require([_LT_DECL_SED])dnl
3317 m4_require([_LT_DECL_EGREP])dnl
3318 m4_require([_LT_TAG_COMPILER])dnl
3319
3320 # Check for command to grab the raw symbol name followed by C symbol from nm.
3321 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3322 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3323 [
3324 # These are sane defaults that work on at least a few old systems.
3325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3326
3327 # Character class describing NM global symbol codes.
3328 symcode='[[BCDEGRST]]'
3329
3330 # Regexp to match symbols that can be accessed directly from C.
3331 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3332
3333 # Define system-specific variables.
3334 case $host_os in
3335 aix*)
3336 symcode='[[BCDT]]'
3337 ;;
3338 cygwin* | mingw* | pw32*)
3339 symcode='[[ABCDGISTW]]'
3340 ;;
3341 hpux*)
3342 if test "$host_cpu" = ia64; then
3343 symcode='[[ABCDEGRST]]'
3344 fi
3345 ;;
3346 irix* | nonstopux*)
3347 symcode='[[BCDEGRST]]'
3348 ;;
3349 osf*)
3350 symcode='[[BCDEGQRST]]'
3351 ;;
3352 solaris*)
3353 symcode='[[BDRT]]'
3354 ;;
3355 sco3.2v5*)
3356 symcode='[[DT]]'
3357 ;;
3358 sysv4.2uw2*)
3359 symcode='[[DT]]'
3360 ;;
3361 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3362 symcode='[[ABDT]]'
3363 ;;
3364 sysv4)
3365 symcode='[[DFNSTU]]'
3366 ;;
3367 esac
3368
3369 # If we're using GNU nm, then use its standard symbol codes.
3370 case `$NM -V 2>&1` in
3371 *GNU* | *'with BFD'*)
3372 symcode='[[ABCDGIRSTW]]' ;;
3373 esac
3374
3375 # Transform an extracted symbol line into a proper C declaration.
3376 # Some systems (esp. on ia64) link data and code symbols differently,
3377 # so use this general approach.
3378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3379
3380 # Transform an extracted symbol line into symbol name and symbol address
3381 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3382 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3383
3384 # Handle CRLF in mingw tool chain
3385 opt_cr=
3386 case $build_os in
3387 mingw*)
3388 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3389 ;;
3390 esac
3391
3392 # Try without a prefix underscore, then with it.
3393 for ac_symprfx in "" "_"; do
3394
3395 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3396 symxfrm="\\1 $ac_symprfx\\2 \\2"
3397
3398 # Write the raw and C identifiers.
3399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3400 # Fake it for dumpbin and say T for any non-static function
3401 # and D for any global variable.
3402 # Also find C++ and __fastcall symbols from MSVC++,
3403 # which start with @ or ?.
3404 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3405 " {last_section=section; section=\$ 3};"\
3406 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3407 " \$ 0!~/External *\|/{next};"\
3408 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3409 " {if(hide[section]) next};"\
3410 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3411 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3412 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3413 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3414 " ' prfx=^$ac_symprfx]"
3415 else
3416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3417 fi
3418
3419 # Check to see that the pipe works correctly.
3420 pipe_works=no
3421
3422 rm -f conftest*
3423 cat > conftest.$ac_ext <<_LT_EOF
3424 #ifdef __cplusplus
3425 extern "C" {
3426 #endif
3427 char nm_test_var;
3428 void nm_test_func(void);
3429 void nm_test_func(void){}
3430 #ifdef __cplusplus
3431 }
3432 #endif
3433 int main(){nm_test_var='a';nm_test_func();return(0);}
3434 _LT_EOF
3435
3436 if AC_TRY_EVAL(ac_compile); then
3437 # Now try to grab the symbols.
3438 nlist=conftest.nm
3439 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3440 # Try sorting and uniquifying the output.
3441 if sort "$nlist" | uniq > "$nlist"T; then
3442 mv -f "$nlist"T "$nlist"
3443 else
3444 rm -f "$nlist"T
3445 fi
3446
3447 # Make sure that we snagged all the symbols we need.
3448 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3449 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3450 cat <<_LT_EOF > conftest.$ac_ext
3451 #ifdef __cplusplus
3452 extern "C" {
3453 #endif
3454
3455 _LT_EOF
3456 # Now generate the symbol file.
3457 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3458
3459 cat <<_LT_EOF >> conftest.$ac_ext
3460
3461 /* The mapping between symbol names and symbols. */
3462 const struct {
3463 const char *name;
3464 void *address;
3465 }
3466 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3467 {
3468 { "@PROGRAM@", (void *) 0 },
3469 _LT_EOF
3470 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3471 cat <<\_LT_EOF >> conftest.$ac_ext
3472 {0, (void *) 0}
3473 };
3474
3475 /* This works around a problem in FreeBSD linker */
3476 #ifdef FREEBSD_WORKAROUND
3477 static const void *lt_preloaded_setup() {
3478 return lt__PROGRAM__LTX_preloaded_symbols;
3479 }
3480 #endif
3481
3482 #ifdef __cplusplus
3483 }
3484 #endif
3485 _LT_EOF
3486 # Now try linking the two files.
3487 mv conftest.$ac_objext conftstm.$ac_objext
3488 lt_save_LIBS="$LIBS"
3489 lt_save_CFLAGS="$CFLAGS"
3490 LIBS="conftstm.$ac_objext"
3491 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3492 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3493 pipe_works=yes
3494 fi
3495 LIBS="$lt_save_LIBS"
3496 CFLAGS="$lt_save_CFLAGS"
3497 else
3498 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3499 fi
3500 else
3501 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3502 fi
3503 else
3504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3505 fi
3506 else
3507 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3508 cat conftest.$ac_ext >&5
3509 fi
3510 rm -rf conftest* conftst*
3511
3512 # Do not use the global_symbol_pipe unless it works.
3513 if test "$pipe_works" = yes; then
3514 break
3515 else
3516 lt_cv_sys_global_symbol_pipe=
3517 fi
3518 done
3519 ])
3520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3521 lt_cv_sys_global_symbol_to_cdecl=
3522 fi
3523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3524 AC_MSG_RESULT(failed)
3525 else
3526 AC_MSG_RESULT(ok)
3527 fi
3528
3529 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3530 [Take the output of nm and produce a listing of raw symbols and C names])
3531 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3532 [Transform the output of nm in a proper C declaration])
3533 _LT_DECL([global_symbol_to_c_name_address],
3534 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3535 [Transform the output of nm in a C name address pair])
3536 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3537 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3538 [Transform the output of nm in a C name address pair when lib prefix is needed])
3539 ]) # _LT_CMD_GLOBAL_SYMBOLS
3540
3541
3542 # _LT_COMPILER_PIC([TAGNAME])
3543 # ---------------------------
3544 m4_defun([_LT_COMPILER_PIC],
3545 [m4_require([_LT_TAG_COMPILER])dnl
3546 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3547 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3548 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3549
3550 AC_MSG_CHECKING([for $compiler option to produce PIC])
3551 m4_if([$1], [CXX], [
3552 # C++ specific cases for pic, static, wl, etc.
3553 if test "$GXX" = yes; then
3554 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3555 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3556
3557 case $host_os in
3558 aix*)
3559 # All AIX code is PIC.
3560 if test "$host_cpu" = ia64; then
3561 # AIX 5 now supports IA64 processor
3562 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3563 fi
3564 ;;
3565
3566 amigaos*)
3567 case $host_cpu in
3568 powerpc)
3569 # see comment about AmigaOS4 .so support
3570 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3571 ;;
3572 m68k)
3573 # FIXME: we need at least 68020 code to build shared libraries, but
3574 # adding the `-m68020' flag to GCC prevents building anything better,
3575 # like `-m68040'.
3576 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3577 ;;
3578 esac
3579 ;;
3580
3581 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3582 # PIC is the default for these OSes.
3583 ;;
3584 mingw* | cygwin* | os2* | pw32*)
3585 # This hack is so that the source file can tell whether it is being
3586 # built for inclusion in a dll (and should export symbols for example).
3587 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3588 # (--disable-auto-import) libraries
3589 m4_if([$1], [GCJ], [],
3590 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3591 ;;
3592 darwin* | rhapsody*)
3593 # PIC is the default on this platform
3594 # Common symbols not allowed in MH_DYLIB files
3595 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3596 ;;
3597 *djgpp*)
3598 # DJGPP does not support shared libraries at all
3599 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3600 ;;
3601 interix[[3-9]]*)
3602 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3603 # Instead, we relocate shared libraries at runtime.
3604 ;;
3605 sysv4*MP*)
3606 if test -d /usr/nec; then
3607 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3608 fi
3609 ;;
3610 hpux*)
3611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3612 # not for PA HP-UX.
3613 case $host_cpu in
3614 hppa*64*|ia64*)
3615 ;;
3616 *)
3617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3618 ;;
3619 esac
3620 ;;
3621 *qnx* | *nto*)
3622 # QNX uses GNU C++, but need to define -shared option too, otherwise
3623 # it will coredump.
3624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3625 ;;
3626 *)
3627 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3628 ;;
3629 esac
3630 else
3631 case $host_os in
3632 aix[[4-9]]*)
3633 # All AIX code is PIC.
3634 if test "$host_cpu" = ia64; then
3635 # AIX 5 now supports IA64 processor
3636 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3637 else
3638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3639 fi
3640 ;;
3641 chorus*)
3642 case $cc_basename in
3643 cxch68*)
3644 # Green Hills C++ Compiler
3645 # _LT_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"
3646 ;;
3647 esac
3648 ;;
3649 dgux*)
3650 case $cc_basename in
3651 ec++*)
3652 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3653 ;;
3654 ghcx*)
3655 # Green Hills C++ Compiler
3656 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3657 ;;
3658 *)
3659 ;;
3660 esac
3661 ;;
3662 freebsd* | dragonfly*)
3663 # FreeBSD uses GNU C++
3664 ;;
3665 hpux9* | hpux10* | hpux11*)
3666 case $cc_basename in
3667 CC*)
3668 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3669 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3670 if test "$host_cpu" != ia64; then
3671 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3672 fi
3673 ;;
3674 aCC*)
3675 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3676 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3677 case $host_cpu in
3678 hppa*64*|ia64*)
3679 # +Z the default
3680 ;;
3681 *)
3682 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3683 ;;
3684 esac
3685 ;;
3686 *)
3687 ;;
3688 esac
3689 ;;
3690 interix*)
3691 # This is c89, which is MS Visual C++ (no shared libs)
3692 # Anyone wants to do a port?
3693 ;;
3694 irix5* | irix6* | nonstopux*)
3695 case $cc_basename in
3696 CC*)
3697 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3698 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3699 # CC pic flag -KPIC is the default.
3700 ;;
3701 *)
3702 ;;
3703 esac
3704 ;;
3705 linux* | k*bsd*-gnu)
3706 case $cc_basename in
3707 KCC*)
3708 # KAI C++ Compiler
3709 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3710 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3711 ;;
3712 icpc* | ecpc* )
3713 # Intel C++
3714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3715 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3716 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3717 ;;
3718 pgCC* | pgcpp*)
3719 # Portland Group C++ compiler
3720 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3721 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3722 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3723 ;;
3724 cxx*)
3725 # Compaq C++
3726 # Make sure the PIC flag is empty. It appears that all Alpha
3727 # Linux and Compaq Tru64 Unix objects are PIC.
3728 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3730 ;;
3731 xlc* | xlC*)
3732 # IBM XL 8.0 on PPC
3733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3735 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3736 ;;
3737 *)
3738 case `$CC -V 2>&1 | sed 5q` in
3739 *Sun\ C*)
3740 # Sun C++ 5.9
3741 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3742 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3744 ;;
3745 esac
3746 ;;
3747 esac
3748 ;;
3749 lynxos*)
3750 ;;
3751 m88k*)
3752 ;;
3753 mvs*)
3754 case $cc_basename in
3755 cxx*)
3756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3757 ;;
3758 *)
3759 ;;
3760 esac
3761 ;;
3762 netbsd* | netbsdelf*-gnu)
3763 ;;
3764 *qnx* | *nto*)
3765 # QNX uses GNU C++, but need to define -shared option too, otherwise
3766 # it will coredump.
3767 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3768 ;;
3769 osf3* | osf4* | osf5*)
3770 case $cc_basename in
3771 KCC*)
3772 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3773 ;;
3774 RCC*)
3775 # Rational C++ 2.4.1
3776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3777 ;;
3778 cxx*)
3779 # Digital/Compaq C++
3780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3781 # Make sure the PIC flag is empty. It appears that all Alpha
3782 # Linux and Compaq Tru64 Unix objects are PIC.
3783 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3784 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3785 ;;
3786 *)
3787 ;;
3788 esac
3789 ;;
3790 psos*)
3791 ;;
3792 solaris*)
3793 case $cc_basename in
3794 CC*)
3795 # Sun C++ 4.2, 5.x and Centerline C++
3796 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3797 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3798 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3799 ;;
3800 gcx*)
3801 # Green Hills C++ Compiler
3802 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3803 ;;
3804 *)
3805 ;;
3806 esac
3807 ;;
3808 sunos4*)
3809 case $cc_basename in
3810 CC*)
3811 # Sun C++ 4.x
3812 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3813 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3814 ;;
3815 lcc*)
3816 # Lucid
3817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3818 ;;
3819 *)
3820 ;;
3821 esac
3822 ;;
3823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3824 case $cc_basename in
3825 CC*)
3826 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3827 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3828 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3829 ;;
3830 esac
3831 ;;
3832 tandem*)
3833 case $cc_basename in
3834 NCC*)
3835 # NonStop-UX NCC 3.20
3836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3837 ;;
3838 *)
3839 ;;
3840 esac
3841 ;;
3842 vxworks*)
3843 ;;
3844 *)
3845 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3846 ;;
3847 esac
3848 fi
3849 ],
3850 [
3851 if test "$GCC" = yes; then
3852 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3853 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3854
3855 case $host_os in
3856 aix*)
3857 # All AIX code is PIC.
3858 if test "$host_cpu" = ia64; then
3859 # AIX 5 now supports IA64 processor
3860 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3861 fi
3862 ;;
3863
3864 amigaos*)
3865 case $host_cpu in
3866 powerpc)
3867 # see comment about AmigaOS4 .so support
3868 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3869 ;;
3870 m68k)
3871 # FIXME: we need at least 68020 code to build shared libraries, but
3872 # adding the `-m68020' flag to GCC prevents building anything better,
3873 # like `-m68040'.
3874 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3875 ;;
3876 esac
3877 ;;
3878
3879 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3880 # PIC is the default for these OSes.
3881 ;;
3882
3883 mingw* | cygwin* | pw32* | os2*)
3884 # This hack is so that the source file can tell whether it is being
3885 # built for inclusion in a dll (and should export symbols for example).
3886 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3887 # (--disable-auto-import) libraries
3888 m4_if([$1], [GCJ], [],
3889 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3890 ;;
3891
3892 darwin* | rhapsody*)
3893 # PIC is the default on this platform
3894 # Common symbols not allowed in MH_DYLIB files
3895 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3896 ;;
3897
3898 hpux*)
3899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3900 # not for PA HP-UX.
3901 case $host_cpu in
3902 hppa*64*|ia64*)
3903 # +Z the default
3904 ;;
3905 *)
3906 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3907 ;;
3908 esac
3909 ;;
3910
3911 interix[[3-9]]*)
3912 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3913 # Instead, we relocate shared libraries at runtime.
3914 ;;
3915
3916 msdosdjgpp*)
3917 # Just because we use GCC doesn't mean we suddenly get shared libraries
3918 # on systems that don't support them.
3919 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3920 enable_shared=no
3921 ;;
3922
3923 *nto* | *qnx*)
3924 # QNX uses GNU C++, but need to define -shared option too, otherwise
3925 # it will coredump.
3926 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3927 ;;
3928
3929 sysv4*MP*)
3930 if test -d /usr/nec; then
3931 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3932 fi
3933 ;;
3934
3935 *)
3936 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3937 ;;
3938 esac
3939 else
3940 # PORTME Check for flag to pass linker flags through the system compiler.
3941 case $host_os in
3942 aix*)
3943 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3944 if test "$host_cpu" = ia64; then
3945 # AIX 5 now supports IA64 processor
3946 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3947 else
3948 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3949 fi
3950 ;;
3951
3952 mingw* | cygwin* | pw32* | os2*)
3953 # This hack is so that the source file can tell whether it is being
3954 # built for inclusion in a dll (and should export symbols for example).
3955 m4_if([$1], [GCJ], [],
3956 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3957 ;;
3958
3959 hpux9* | hpux10* | hpux11*)
3960 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3961 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3962 # not for PA HP-UX.
3963 case $host_cpu in
3964 hppa*64*|ia64*)
3965 # +Z the default
3966 ;;
3967 *)
3968 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3969 ;;
3970 esac
3971 # Is there a better lt_prog_compiler_static that works with the bundled CC?
3972 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3973 ;;
3974
3975 irix5* | irix6* | nonstopux*)
3976 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3977 # PIC (with -KPIC) is the default.
3978 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3979 ;;
3980
3981 linux* | k*bsd*-gnu)
3982 case $cc_basename in
3983 icc* | ecc* | ifort*)
3984 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3985 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3986 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3987 ;;
3988 pgcc* | pgf77* | pgf90* | pgf95*)
3989 # Portland Group compilers (*not* the Pentium gcc compiler,
3990 # which looks to be a dead project)
3991 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3992 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3993 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3994 ;;
3995 ccc*)
3996 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3997 # All Alpha code is PIC.
3998 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3999 ;;
4000 xl*)
4001 # IBM XL C 8.0/Fortran 10.1 on PPC
4002 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4004 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4005 ;;
4006 *)
4007 case `$CC -V 2>&1 | sed 5q` in
4008 *Sun\ C*)
4009 # Sun C 5.9
4010 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4011 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4012 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013 ;;
4014 *Sun\ F*)
4015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4016 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4017 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4018 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4019 ;;
4020 esac
4021 ;;
4022 esac
4023 ;;
4024
4025 newsos6)
4026 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4027 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4028 ;;
4029
4030 *nto* | *qnx*)
4031 # QNX uses GNU C++, but need to define -shared option too, otherwise
4032 # it will coredump.
4033 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4034 ;;
4035
4036 osf3* | osf4* | osf5*)
4037 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4038 # All OSF/1 code is PIC.
4039 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4040 ;;
4041
4042 rdos*)
4043 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4044 ;;
4045
4046 solaris*)
4047 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4048 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4049 case $cc_basename in
4050 f77* | f90* | f95*)
4051 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4052 *)
4053 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4054 esac
4055 ;;
4056
4057 sunos4*)
4058 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4059 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4060 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4061 ;;
4062
4063 sysv4 | sysv4.2uw2* | sysv4.3*)
4064 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4065 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4066 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4067 ;;
4068
4069 sysv4*MP*)
4070 if test -d /usr/nec ;then
4071 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4072 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4073 fi
4074 ;;
4075
4076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4077 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4078 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4079 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4080 ;;
4081
4082 unicos*)
4083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4084 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4085 ;;
4086
4087 uts4*)
4088 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4089 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4090 ;;
4091
4092 *)
4093 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4094 ;;
4095 esac
4096 fi
4097 ])
4098 case $host_os in
4099 # For platforms which do not support PIC, -DPIC is meaningless:
4100 *djgpp*)
4101 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4102 ;;
4103 *)
4104 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4105 ;;
4106 esac
4107 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4108 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4109 [How to pass a linker flag through the compiler])
4110
4111 #
4112 # Check to make sure the PIC flag actually works.
4113 #
4114 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4115 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4116 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4117 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4118 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4119 "" | " "*) ;;
4120 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4121 esac],
4122 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4123 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4124 fi
4125 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4126 [Additional compiler flags for building library objects])
4127
4128 #
4129 # Check to make sure the static flag actually works.
4130 #
4131 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4132 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4133 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4134 $lt_tmp_static_flag,
4135 [],
4136 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4137 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4138 [Compiler flag to prevent dynamic linking])
4139 ])# _LT_COMPILER_PIC
4140
4141
4142 # _LT_LINKER_SHLIBS([TAGNAME])
4143 # ----------------------------
4144 # See if the linker supports building shared libraries.
4145 m4_defun([_LT_LINKER_SHLIBS],
4146 [AC_REQUIRE([LT_PATH_LD])dnl
4147 AC_REQUIRE([LT_PATH_NM])dnl
4148 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4149 m4_require([_LT_DECL_EGREP])dnl
4150 m4_require([_LT_DECL_SED])dnl
4151 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4152 m4_require([_LT_TAG_COMPILER])dnl
4153 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4154 m4_if([$1], [CXX], [
4155 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4156 case $host_os in
4157 aix[[4-9]]*)
4158 # If we're using GNU nm, then we don't want the "-C" option.
4159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4160 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4161 _LT_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'
4162 else
4163 _LT_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'
4164 fi
4165 ;;
4166 pw32*)
4167 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4168 ;;
4169 cygwin* | mingw*)
4170 _LT_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'
4171 ;;
4172 linux* | k*bsd*-gnu)
4173 _LT_TAGVAR(link_all_deplibs, $1)=no
4174 ;;
4175 *)
4176 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4177 ;;
4178 esac
4179 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4180 ], [
4181 runpath_var=
4182 _LT_TAGVAR(allow_undefined_flag, $1)=
4183 _LT_TAGVAR(always_export_symbols, $1)=no
4184 _LT_TAGVAR(archive_cmds, $1)=
4185 _LT_TAGVAR(archive_expsym_cmds, $1)=
4186 _LT_TAGVAR(compiler_needs_object, $1)=no
4187 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4188 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4189 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4190 _LT_TAGVAR(hardcode_automatic, $1)=no
4191 _LT_TAGVAR(hardcode_direct, $1)=no
4192 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4193 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4194 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4195 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4196 _LT_TAGVAR(hardcode_minus_L, $1)=no
4197 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4198 _LT_TAGVAR(inherit_rpath, $1)=no
4199 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4200 _LT_TAGVAR(module_cmds, $1)=
4201 _LT_TAGVAR(module_expsym_cmds, $1)=
4202 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4203 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4204 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4205 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4206 # include_expsyms should be a list of space-separated symbols to be *always*
4207 # included in the symbol list
4208 _LT_TAGVAR(include_expsyms, $1)=
4209 # exclude_expsyms can be an extended regexp of symbols to exclude
4210 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4211 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4212 # as well as any symbol that contains `d'.
4213 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4214 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4215 # platforms (ab)use it in PIC code, but their linkers get confused if
4216 # the symbol is explicitly referenced. Since portable code cannot
4217 # rely on this symbol name, it's probably fine to never include it in
4218 # preloaded symbol tables.
4219 # Exclude shared library initialization/finalization symbols.
4220 dnl Note also adjust exclude_expsyms for C++ above.
4221 extract_expsyms_cmds=
4222
4223 case $host_os in
4224 cygwin* | mingw* | pw32*)
4225 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4226 # When not using gcc, we currently assume that we are using
4227 # Microsoft Visual C++.
4228 if test "$GCC" != yes; then
4229 with_gnu_ld=no
4230 fi
4231 ;;
4232 interix*)
4233 # we just hope/assume this is gcc and not c89 (= MSVC++)
4234 with_gnu_ld=yes
4235 ;;
4236 openbsd*)
4237 with_gnu_ld=no
4238 ;;
4239 esac
4240
4241 _LT_TAGVAR(ld_shlibs, $1)=yes
4242 if test "$with_gnu_ld" = yes; then
4243 # If archive_cmds runs LD, not CC, wlarc should be empty
4244 wlarc='${wl}'
4245
4246 # Set some defaults for GNU ld with shared library support. These
4247 # are reset later if shared libraries are not supported. Putting them
4248 # here allows them to be overridden if necessary.
4249 runpath_var=LD_RUN_PATH
4250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4251 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4252 # ancient GNU ld didn't support --whole-archive et. al.
4253 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4254 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4255 else
4256 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4257 fi
4258 supports_anon_versioning=no
4259 case `$LD -v 2>&1` in
4260 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4263 *\ 2.11.*) ;; # other 2.11 versions
4264 *) supports_anon_versioning=yes ;;
4265 esac
4266
4267 # See if GNU ld supports shared libraries.
4268 case $host_os in
4269 aix[[3-9]]*)
4270 # On AIX/PPC, the GNU linker is very broken
4271 if test "$host_cpu" != ia64; then
4272 _LT_TAGVAR(ld_shlibs, $1)=no
4273 cat <<_LT_EOF 1>&2
4274
4275 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4276 *** to be unable to reliably create shared libraries on AIX.
4277 *** Therefore, libtool is disabling shared libraries support. If you
4278 *** really care for shared libraries, you may want to modify your PATH
4279 *** so that a non-GNU linker is found, and then restart.
4280
4281 _LT_EOF
4282 fi
4283 ;;
4284
4285 amigaos*)
4286 case $host_cpu in
4287 powerpc)
4288 # see comment about AmigaOS4 .so support
4289 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4290 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4291 ;;
4292 m68k)
4293 _LT_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)'
4294 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4295 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4296 ;;
4297 esac
4298 ;;
4299
4300 beos*)
4301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4302 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4303 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4304 # support --undefined. This deserves some investigation. FIXME
4305 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4306 else
4307 _LT_TAGVAR(ld_shlibs, $1)=no
4308 fi
4309 ;;
4310
4311 cygwin* | mingw* | pw32*)
4312 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4313 # as there is no search path for DLLs.
4314 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4315 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4316 _LT_TAGVAR(always_export_symbols, $1)=no
4317 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4318 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4319
4320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4321 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4322 # If the export-symbols file already is a .def file (1st line
4323 # is EXPORTS), use it as is; otherwise, prepend...
4324 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4325 cp $export_symbols $output_objdir/$soname.def;
4326 else
4327 echo EXPORTS > $output_objdir/$soname.def;
4328 cat $export_symbols >> $output_objdir/$soname.def;
4329 fi~
4330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4331 else
4332 _LT_TAGVAR(ld_shlibs, $1)=no
4333 fi
4334 ;;
4335
4336 interix[[3-9]]*)
4337 _LT_TAGVAR(hardcode_direct, $1)=no
4338 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4340 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4342 # Instead, shared libraries are loaded at an image base (0x10000000 by
4343 # default) and relocated if they conflict, which is a slow very memory
4344 # consuming and fragmenting process. To avoid this, we pick a random,
4345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4346 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4347 _LT_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'
4348 _LT_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'
4349 ;;
4350
4351 gnu* | linux* | tpf* | k*bsd*-gnu)
4352 tmp_diet=no
4353 if test "$host_os" = linux-dietlibc; then
4354 case $cc_basename in
4355 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4356 esac
4357 fi
4358 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4359 && test "$tmp_diet" = no
4360 then
4361 tmp_addflag=
4362 tmp_sharedflag='-shared'
4363 case $cc_basename,$host_cpu in
4364 pgcc*) # Portland Group C compiler
4365 _LT_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'
4366 tmp_addflag=' $pic_flag'
4367 ;;
4368 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4369 _LT_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'
4370 tmp_addflag=' $pic_flag -Mnomain' ;;
4371 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4372 tmp_addflag=' -i_dynamic' ;;
4373 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4374 tmp_addflag=' -i_dynamic -nofor_main' ;;
4375 ifc* | ifort*) # Intel Fortran compiler
4376 tmp_addflag=' -nofor_main' ;;
4377 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4378 tmp_sharedflag='-qmkshrobj'
4379 tmp_addflag= ;;
4380 esac
4381 case `$CC -V 2>&1 | sed 5q` in
4382 *Sun\ C*) # Sun C 5.9
4383 _LT_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'
4384 _LT_TAGVAR(compiler_needs_object, $1)=yes
4385 tmp_sharedflag='-G' ;;
4386 *Sun\ F*) # Sun Fortran 8.3
4387 tmp_sharedflag='-G' ;;
4388 esac
4389 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4390
4391 if test "x$supports_anon_versioning" = xyes; then
4392 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4394 echo "local: *; };" >> $output_objdir/$libname.ver~
4395 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4396 fi
4397
4398 case $cc_basename in
4399 xlf*)
4400 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4401 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4403 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4404 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4405 if test "x$supports_anon_versioning" = xyes; then
4406 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4407 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4408 echo "local: *; };" >> $output_objdir/$libname.ver~
4409 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4410 fi
4411 ;;
4412 esac
4413 else
4414 _LT_TAGVAR(ld_shlibs, $1)=no
4415 fi
4416 ;;
4417
4418 netbsd* | netbsdelf*-gnu)
4419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4420 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4421 wlarc=
4422 else
4423 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4424 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4425 fi
4426 ;;
4427
4428 solaris*)
4429 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4430 _LT_TAGVAR(ld_shlibs, $1)=no
4431 cat <<_LT_EOF 1>&2
4432
4433 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4434 *** create shared libraries on Solaris systems. Therefore, libtool
4435 *** is disabling shared libraries support. We urge you to upgrade GNU
4436 *** binutils to release 2.9.1 or newer. Another option is to modify
4437 *** your PATH or compiler configuration so that the native linker is
4438 *** used, and then restart.
4439
4440 _LT_EOF
4441 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4442 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4443 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4444 else
4445 _LT_TAGVAR(ld_shlibs, $1)=no
4446 fi
4447 ;;
4448
4449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4450 case `$LD -v 2>&1` in
4451 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4452 _LT_TAGVAR(ld_shlibs, $1)=no
4453 cat <<_LT_EOF 1>&2
4454
4455 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4456 *** reliably create shared libraries on SCO systems. Therefore, libtool
4457 *** is disabling shared libraries support. We urge you to upgrade GNU
4458 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4459 *** your PATH or compiler configuration so that the native linker is
4460 *** used, and then restart.
4461
4462 _LT_EOF
4463 ;;
4464 *)
4465 # For security reasons, it is highly recommended that you always
4466 # use absolute paths for naming shared libraries, and exclude the
4467 # DT_RUNPATH tag from executables and libraries. But doing so
4468 # requires that you compile everything twice, which is a pain.
4469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4471 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4472 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4473 else
4474 _LT_TAGVAR(ld_shlibs, $1)=no
4475 fi
4476 ;;
4477 esac
4478 ;;
4479
4480 sunos4*)
4481 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4482 wlarc=
4483 _LT_TAGVAR(hardcode_direct, $1)=yes
4484 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4485 ;;
4486
4487 *)
4488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4490 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4491 else
4492 _LT_TAGVAR(ld_shlibs, $1)=no
4493 fi
4494 ;;
4495 esac
4496
4497 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4498 runpath_var=
4499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4500 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4501 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4502 fi
4503 else
4504 # PORTME fill in a description of your system's linker (not GNU ld)
4505 case $host_os in
4506 aix3*)
4507 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4508 _LT_TAGVAR(always_export_symbols, $1)=yes
4509 _LT_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'
4510 # Note: this linker hardcodes the directories in LIBPATH if there
4511 # are no directories specified by -L.
4512 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4513 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4514 # Neither direct hardcoding nor static linking is supported with a
4515 # broken collect2.
4516 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4517 fi
4518 ;;
4519
4520 aix[[4-9]]*)
4521 if test "$host_cpu" = ia64; then
4522 # On IA64, the linker does run time linking by default, so we don't
4523 # have to do anything special.
4524 aix_use_runtimelinking=no
4525 exp_sym_flag='-Bexport'
4526 no_entry_flag=""
4527 else
4528 # If we're using GNU nm, then we don't want the "-C" option.
4529 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4531 _LT_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'
4532 else
4533 _LT_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'
4534 fi
4535 aix_use_runtimelinking=no
4536
4537 # Test if we are trying to use run time linking or normal
4538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4539 # need to do runtime linking.
4540 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4541 for ld_flag in $LDFLAGS; do
4542 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4543 aix_use_runtimelinking=yes
4544 break
4545 fi
4546 done
4547 ;;
4548 esac
4549
4550 exp_sym_flag='-bexport'
4551 no_entry_flag='-bnoentry'
4552 fi
4553
4554 # When large executables or shared objects are built, AIX ld can
4555 # have problems creating the table of contents. If linking a library
4556 # or program results in "error TOC overflow" add -mminimal-toc to
4557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4559
4560 _LT_TAGVAR(archive_cmds, $1)=''
4561 _LT_TAGVAR(hardcode_direct, $1)=yes
4562 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4563 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4564 _LT_TAGVAR(link_all_deplibs, $1)=yes
4565 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4566
4567 if test "$GCC" = yes; then
4568 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4569 # We only want to do this on AIX 4.2 and lower, the check
4570 # below for broken collect2 doesn't work under 4.3+
4571 collect2name=`${CC} -print-prog-name=collect2`
4572 if test -f "$collect2name" &&
4573 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4574 then
4575 # We have reworked collect2
4576 :
4577 else
4578 # We have old collect2
4579 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4580 # It fails to find uninstalled libraries when the uninstalled
4581 # path is not listed in the libpath. Setting hardcode_minus_L
4582 # to unsupported forces relinking
4583 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4585 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4586 fi
4587 ;;
4588 esac
4589 shared_flag='-shared'
4590 if test "$aix_use_runtimelinking" = yes; then
4591 shared_flag="$shared_flag "'${wl}-G'
4592 fi
4593 _LT_TAGVAR(link_all_deplibs, $1)=no
4594 else
4595 # not using gcc
4596 if test "$host_cpu" = ia64; then
4597 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4598 # chokes on -Wl,-G. The following line is correct:
4599 shared_flag='-G'
4600 else
4601 if test "$aix_use_runtimelinking" = yes; then
4602 shared_flag='${wl}-G'
4603 else
4604 shared_flag='${wl}-bM:SRE'
4605 fi
4606 fi
4607 fi
4608
4609 # It seems that -bexpall does not export symbols beginning with
4610 # underscore (_), so it is better to generate a list of symbols to export.
4611 _LT_TAGVAR(always_export_symbols, $1)=yes
4612 if test "$aix_use_runtimelinking" = yes; then
4613 # Warning - without using the other runtime loading flags (-brtl),
4614 # -berok will link without error, but may produce a broken library.
4615 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4616 # Determine the default libpath from the value encoded in an
4617 # empty executable.
4618 _LT_SYS_MODULE_PATH_AIX
4619 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4620 _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4621 else
4622 if test "$host_cpu" = ia64; then
4623 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4624 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4625 _LT_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"
4626 else
4627 # Determine the default libpath from the value encoded in an
4628 # empty executable.
4629 _LT_SYS_MODULE_PATH_AIX
4630 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4631 # Warning - without using the other run time loading flags,
4632 # -berok will link without error, but may produce a broken library.
4633 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4634 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4635 # Exported symbols can be pulled into shared objects from archives
4636 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4637 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4638 # This is similar to how AIX traditionally builds its shared libraries.
4639 _LT_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'
4640 fi
4641 fi
4642 ;;
4643
4644 amigaos*)
4645 case $host_cpu in
4646 powerpc)
4647 # see comment about AmigaOS4 .so support
4648 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4649 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4650 ;;
4651 m68k)
4652 _LT_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)'
4653 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4654 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4655 ;;
4656 esac
4657 ;;
4658
4659 bsdi[[45]]*)
4660 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4661 ;;
4662
4663 cygwin* | mingw* | pw32*)
4664 # When not using gcc, we currently assume that we are using
4665 # Microsoft Visual C++.
4666 # hardcode_libdir_flag_spec is actually meaningless, as there is
4667 # no search path for DLLs.
4668 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4669 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4670 # Tell ltmain to make .lib files, not .a files.
4671 libext=lib
4672 # Tell ltmain to make .dll files, not .so files.
4673 shrext_cmds=".dll"
4674 # FIXME: Setting linknames here is a bad hack.
4675 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4676 # The linker will automatically build a .lib file if we build a DLL.
4677 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4678 # FIXME: Should let the user specify the lib program.
4679 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4680 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4681 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4682 ;;
4683
4684 darwin* | rhapsody*)
4685 _LT_DARWIN_LINKER_FEATURES($1)
4686 ;;
4687
4688 dgux*)
4689 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4690 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4691 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4692 ;;
4693
4694 freebsd1*)
4695 _LT_TAGVAR(ld_shlibs, $1)=no
4696 ;;
4697
4698 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4699 # support. Future versions do this automatically, but an explicit c++rt0.o
4700 # does not break anything, and helps significantly (at the cost of a little
4701 # extra space).
4702 freebsd2.2*)
4703 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4704 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4705 _LT_TAGVAR(hardcode_direct, $1)=yes
4706 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4707 ;;
4708
4709 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4710 freebsd2*)
4711 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4712 _LT_TAGVAR(hardcode_direct, $1)=yes
4713 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4714 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4715 ;;
4716
4717 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4718 freebsd* | dragonfly*)
4719 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4720 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4721 _LT_TAGVAR(hardcode_direct, $1)=yes
4722 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4723 ;;
4724
4725 hpux9*)
4726 if test "$GCC" = yes; then
4727 _LT_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'
4728 else
4729 _LT_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'
4730 fi
4731 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4732 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4733 _LT_TAGVAR(hardcode_direct, $1)=yes
4734
4735 # hardcode_minus_L: Not really in the search PATH,
4736 # but as the default location of the library.
4737 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4738 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4739 ;;
4740
4741 hpux10*)
4742 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4743 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4744 else
4745 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4746 fi
4747 if test "$with_gnu_ld" = no; then
4748 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4749 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4750 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4751 _LT_TAGVAR(hardcode_direct, $1)=yes
4752 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4753 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4754 # hardcode_minus_L: Not really in the search PATH,
4755 # but as the default location of the library.
4756 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4757 fi
4758 ;;
4759
4760 hpux11*)
4761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4762 case $host_cpu in
4763 hppa*64*)
4764 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4765 ;;
4766 ia64*)
4767 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4768 ;;
4769 *)
4770 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4771 ;;
4772 esac
4773 else
4774 case $host_cpu in
4775 hppa*64*)
4776 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4777 ;;
4778 ia64*)
4779 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4780 ;;
4781 *)
4782 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4783 ;;
4784 esac
4785 fi
4786 if test "$with_gnu_ld" = no; then
4787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4788 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4789
4790 case $host_cpu in
4791 hppa*64*|ia64*)
4792 _LT_TAGVAR(hardcode_direct, $1)=no
4793 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4794 ;;
4795 *)
4796 _LT_TAGVAR(hardcode_direct, $1)=yes
4797 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4798 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4799
4800 # hardcode_minus_L: Not really in the search PATH,
4801 # but as the default location of the library.
4802 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4803 ;;
4804 esac
4805 fi
4806 ;;
4807
4808 irix5* | irix6* | nonstopux*)
4809 if test "$GCC" = yes; then
4810 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4811 # Try to use the -exported_symbol ld option, if it does not
4812 # work, assume that -exports_file does not work either and
4813 # implicitly export all symbols.
4814 save_LDFLAGS="$LDFLAGS"
4815 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4816 AC_LINK_IFELSE(int foo(void) {},
4817 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4818 )
4819 LDFLAGS="$save_LDFLAGS"
4820 else
4821 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4822 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4823 fi
4824 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4825 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4826 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4827 _LT_TAGVAR(inherit_rpath, $1)=yes
4828 _LT_TAGVAR(link_all_deplibs, $1)=yes
4829 ;;
4830
4831 netbsd* | netbsdelf*-gnu)
4832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4833 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4834 else
4835 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4836 fi
4837 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4838 _LT_TAGVAR(hardcode_direct, $1)=yes
4839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4840 ;;
4841
4842 newsos6)
4843 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4844 _LT_TAGVAR(hardcode_direct, $1)=yes
4845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4846 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4847 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4848 ;;
4849
4850 *nto* | *qnx*)
4851 ;;
4852
4853 openbsd*)
4854 if test -f /usr/libexec/ld.so; then
4855 _LT_TAGVAR(hardcode_direct, $1)=yes
4856 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4857 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4859 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4860 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4861 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4862 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4863 else
4864 case $host_os in
4865 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4866 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4868 ;;
4869 *)
4870 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4871 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4872 ;;
4873 esac
4874 fi
4875 else
4876 _LT_TAGVAR(ld_shlibs, $1)=no
4877 fi
4878 ;;
4879
4880 os2*)
4881 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4882 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4883 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4884 _LT_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'
4885 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4886 ;;
4887
4888 osf3*)
4889 if test "$GCC" = yes; then
4890 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4892 else
4893 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4894 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4895 fi
4896 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4898 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4899 ;;
4900
4901 osf4* | osf5*) # as osf3* with the addition of -msym flag
4902 if test "$GCC" = yes; then
4903 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4906 else
4907 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4908 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4909 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4910 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4911
4912 # Both c and cxx compiler support -rpath directly
4913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4914 fi
4915 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4916 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4917 ;;
4918
4919 solaris*)
4920 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4921 if test "$GCC" = yes; then
4922 wlarc='${wl}'
4923 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4924 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4925 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4926 else
4927 case `$CC -V 2>&1` in
4928 *"Compilers 5.0"*)
4929 wlarc=''
4930 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4931 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4933 ;;
4934 *)
4935 wlarc='${wl}'
4936 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4937 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4938 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4939 ;;
4940 esac
4941 fi
4942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4943 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4944 case $host_os in
4945 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4946 *)
4947 # The compiler driver will combine and reorder linker options,
4948 # but understands `-z linker_flag'. GCC discards it without `$wl',
4949 # but is careful enough not to reorder.
4950 # Supported since Solaris 2.6 (maybe 2.5.1?)
4951 if test "$GCC" = yes; then
4952 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4953 else
4954 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4955 fi
4956 ;;
4957 esac
4958 _LT_TAGVAR(link_all_deplibs, $1)=yes
4959 ;;
4960
4961 sunos4*)
4962 if test "x$host_vendor" = xsequent; then
4963 # Use $CC to link under sequent, because it throws in some extra .o
4964 # files that make .init and .fini sections work.
4965 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4966 else
4967 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4968 fi
4969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4970 _LT_TAGVAR(hardcode_direct, $1)=yes
4971 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4972 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4973 ;;
4974
4975 sysv4)
4976 case $host_vendor in
4977 sni)
4978 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4979 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
4980 ;;
4981 siemens)
4982 ## LD is ld it makes a PLAMLIB
4983 ## CC just makes a GrossModule.
4984 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4985 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
4986 _LT_TAGVAR(hardcode_direct, $1)=no
4987 ;;
4988 motorola)
4989 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4990 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
4991 ;;
4992 esac
4993 runpath_var='LD_RUN_PATH'
4994 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4995 ;;
4996
4997 sysv4.3*)
4998 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4999 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5000 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5001 ;;
5002
5003 sysv4*MP*)
5004 if test -d /usr/nec; then
5005 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5006 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5007 runpath_var=LD_RUN_PATH
5008 hardcode_runpath_var=yes
5009 _LT_TAGVAR(ld_shlibs, $1)=yes
5010 fi
5011 ;;
5012
5013 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5014 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5015 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5016 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5017 runpath_var='LD_RUN_PATH'
5018
5019 if test "$GCC" = yes; then
5020 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5021 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5022 else
5023 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5024 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5025 fi
5026 ;;
5027
5028 sysv5* | sco3.2v5* | sco5v6*)
5029 # Note: We can NOT use -z defs as we might desire, because we do not
5030 # link with -lc, and that would cause any symbols used from libc to
5031 # always be unresolved, which means just about no library would
5032 # ever link correctly. If we're not using GNU ld we use -z text
5033 # though, which does catch some bad symbols but isn't as heavy-handed
5034 # as -z defs.
5035 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5036 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5037 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5040 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5041 _LT_TAGVAR(link_all_deplibs, $1)=yes
5042 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5043 runpath_var='LD_RUN_PATH'
5044
5045 if test "$GCC" = yes; then
5046 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5047 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5048 else
5049 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5050 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5051 fi
5052 ;;
5053
5054 uts4*)
5055 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5056 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5057 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5058 ;;
5059
5060 *)
5061 _LT_TAGVAR(ld_shlibs, $1)=no
5062 ;;
5063 esac
5064
5065 if test x$host_vendor = xsni; then
5066 case $host in
5067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5068 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5069 ;;
5070 esac
5071 fi
5072 fi
5073 ])
5074 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5075 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5076
5077 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5078
5079 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5080 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5081 _LT_DECL([], [extract_expsyms_cmds], [2],
5082 [The commands to extract the exported symbol list from a shared archive])
5083
5084 #
5085 # Do we need to explicitly link libc?
5086 #
5087 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5088 x|xyes)
5089 # Assume -lc should be added
5090 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5091
5092 if test "$enable_shared" = yes && test "$GCC" = yes; then
5093 case $_LT_TAGVAR(archive_cmds, $1) in
5094 *'~'*)
5095 # FIXME: we may have to deal with multi-command sequences.
5096 ;;
5097 '$CC '*)
5098 # Test whether the compiler implicitly links with -lc since on some
5099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5100 # to ld, don't add -lc before -lgcc.
5101 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5102 $RM conftest*
5103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5104
5105 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5106 soname=conftest
5107 lib=conftest
5108 libobjs=conftest.$ac_objext
5109 deplibs=
5110 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5111 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5112 compiler_flags=-v
5113 linker_flags=-v
5114 verstring=
5115 output_objdir=.
5116 libname=conftest
5117 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5118 _LT_TAGVAR(allow_undefined_flag, $1)=
5119 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5120 then
5121 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5122 else
5123 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5124 fi
5125 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5126 else
5127 cat conftest.err 1>&5
5128 fi
5129 $RM conftest*
5130 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5131 ;;
5132 esac
5133 fi
5134 ;;
5135 esac
5136
5137 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5138 [Whether or not to add -lc for building shared libraries])
5139 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5140 [enable_shared_with_static_runtimes], [0],
5141 [Whether or not to disallow shared libs when runtime libs are static])
5142 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5143 [Compiler flag to allow reflexive dlopens])
5144 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5145 [Compiler flag to generate shared objects directly from archives])
5146 _LT_TAGDECL([], [compiler_needs_object], [1],
5147 [Whether the compiler copes with passing no objects directly])
5148 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5149 [Create an old-style archive from a shared archive])
5150 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5151 [Create a temporary old-style archive to link instead of a shared archive])
5152 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5153 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5154 _LT_TAGDECL([], [module_cmds], [2],
5155 [Commands used to build a loadable module if different from building
5156 a shared archive.])
5157 _LT_TAGDECL([], [module_expsym_cmds], [2])
5158 _LT_TAGDECL([], [with_gnu_ld], [1],
5159 [Whether we are building with GNU ld or not])
5160 _LT_TAGDECL([], [allow_undefined_flag], [1],
5161 [Flag that allows shared libraries with undefined symbols to be built])
5162 _LT_TAGDECL([], [no_undefined_flag], [1],
5163 [Flag that enforces no undefined symbols])
5164 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5165 [Flag to hardcode $libdir into a binary during linking.
5166 This must work even if $libdir does not exist])
5167 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5168 [[If ld is used when linking, flag to hardcode $libdir into a binary
5169 during linking. This must work even if $libdir does not exist]])
5170 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5171 [Whether we need a single "-rpath" flag with a separated argument])
5172 _LT_TAGDECL([], [hardcode_direct], [0],
5173 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5174 DIR into the resulting binary])
5175 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5176 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5177 DIR into the resulting binary and the resulting library dependency is
5178 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5179 library is relocated])
5180 _LT_TAGDECL([], [hardcode_minus_L], [0],
5181 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5182 into the resulting binary])
5183 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5184 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5185 into the resulting binary])
5186 _LT_TAGDECL([], [hardcode_automatic], [0],
5187 [Set to "yes" if building a shared library automatically hardcodes DIR
5188 into the library and all subsequent libraries and executables linked
5189 against it])
5190 _LT_TAGDECL([], [inherit_rpath], [0],
5191 [Set to yes if linker adds runtime paths of dependent libraries
5192 to runtime path list])
5193 _LT_TAGDECL([], [link_all_deplibs], [0],
5194 [Whether libtool must link a program against all its dependency libraries])
5195 _LT_TAGDECL([], [fix_srcfile_path], [1],
5196 [Fix the shell variable $srcfile for the compiler])
5197 _LT_TAGDECL([], [always_export_symbols], [0],
5198 [Set to "yes" if exported symbols are required])
5199 _LT_TAGDECL([], [export_symbols_cmds], [2],
5200 [The commands to list exported symbols])
5201 _LT_TAGDECL([], [exclude_expsyms], [1],
5202 [Symbols that should not be listed in the preloaded symbols])
5203 _LT_TAGDECL([], [include_expsyms], [1],
5204 [Symbols that must always be exported])
5205 _LT_TAGDECL([], [prelink_cmds], [2],
5206 [Commands necessary for linking programs (against libraries) with templates])
5207 _LT_TAGDECL([], [file_list_spec], [1],
5208 [Specify filename containing input files])
5209 dnl FIXME: Not yet implemented
5210 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5211 dnl [Compiler flag to generate thread safe objects])
5212 ])# _LT_LINKER_SHLIBS
5213
5214
5215 # _LT_LANG_C_CONFIG([TAG])
5216 # ------------------------
5217 # Ensure that the configuration variables for a C compiler are suitably
5218 # defined. These variables are subsequently used by _LT_CONFIG to write
5219 # the compiler configuration to `libtool'.
5220 m4_defun([_LT_LANG_C_CONFIG],
5221 [m4_require([_LT_DECL_EGREP])dnl
5222 lt_save_CC="$CC"
5223 AC_LANG_PUSH(C)
5224
5225 # Source file extension for C test sources.
5226 ac_ext=c
5227
5228 # Object file extension for compiled C test sources.
5229 objext=o
5230 _LT_TAGVAR(objext, $1)=$objext
5231
5232 # Code to be used in simple compile tests
5233 lt_simple_compile_test_code="int some_variable = 0;"
5234
5235 # Code to be used in simple link tests
5236 lt_simple_link_test_code='int main(){return(0);}'
5237
5238 _LT_TAG_COMPILER
5239 # Save the default compiler, since it gets overwritten when the other
5240 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5241 compiler_DEFAULT=$CC
5242
5243 # save warnings/boilerplate of simple test code
5244 _LT_COMPILER_BOILERPLATE
5245 _LT_LINKER_BOILERPLATE
5246
5247 if test -n "$compiler"; then
5248 _LT_COMPILER_NO_RTTI($1)
5249 _LT_COMPILER_PIC($1)
5250 _LT_COMPILER_C_O($1)
5251 _LT_COMPILER_FILE_LOCKS($1)
5252 _LT_LINKER_SHLIBS($1)
5253 _LT_SYS_DYNAMIC_LINKER($1)
5254 _LT_LINKER_HARDCODE_LIBPATH($1)
5255 LT_SYS_DLOPEN_SELF
5256 _LT_CMD_STRIPLIB
5257
5258 # Report which library types will actually be built
5259 AC_MSG_CHECKING([if libtool supports shared libraries])
5260 AC_MSG_RESULT([$can_build_shared])
5261
5262 AC_MSG_CHECKING([whether to build shared libraries])
5263 test "$can_build_shared" = "no" && enable_shared=no
5264
5265 # On AIX, shared libraries and static libraries use the same namespace, and
5266 # are all built from PIC.
5267 case $host_os in
5268 aix3*)
5269 test "$enable_shared" = yes && enable_static=no
5270 if test -n "$RANLIB"; then
5271 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5272 postinstall_cmds='$RANLIB $lib'
5273 fi
5274 ;;
5275
5276 aix[[4-9]]*)
5277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5278 test "$enable_shared" = yes && enable_static=no
5279 fi
5280 ;;
5281 esac
5282 AC_MSG_RESULT([$enable_shared])
5283
5284 AC_MSG_CHECKING([whether to build static libraries])
5285 # Make sure either enable_shared or enable_static is yes.
5286 test "$enable_shared" = yes || enable_static=yes
5287 AC_MSG_RESULT([$enable_static])
5288
5289 _LT_CONFIG($1)
5290 fi
5291 AC_LANG_POP
5292 CC="$lt_save_CC"
5293 ])# _LT_LANG_C_CONFIG
5294
5295
5296 # _LT_PROG_CXX
5297 # ------------
5298 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5299 # compiler, we have our own version here.
5300 m4_defun([_LT_PROG_CXX],
5301 [
5302 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5303 AC_PROG_CXX
5304 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5305 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5306 (test "X$CXX" != "Xg++"))) ; then
5307 AC_PROG_CXXCPP
5308 else
5309 _lt_caught_CXX_error=yes
5310 fi
5311 popdef([AC_MSG_ERROR])
5312 ])# _LT_PROG_CXX
5313
5314 dnl aclocal-1.4 backwards compatibility:
5315 dnl AC_DEFUN([_LT_PROG_CXX], [])
5316
5317
5318 # _LT_LANG_CXX_CONFIG([TAG])
5319 # --------------------------
5320 # Ensure that the configuration variables for a C++ compiler are suitably
5321 # defined. These variables are subsequently used by _LT_CONFIG to write
5322 # the compiler configuration to `libtool'.
5323 m4_defun([_LT_LANG_CXX_CONFIG],
5324 [AC_REQUIRE([_LT_PROG_CXX])dnl
5325 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5326 m4_require([_LT_DECL_EGREP])dnl
5327
5328 AC_LANG_PUSH(C++)
5329 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5330 _LT_TAGVAR(allow_undefined_flag, $1)=
5331 _LT_TAGVAR(always_export_symbols, $1)=no
5332 _LT_TAGVAR(archive_expsym_cmds, $1)=
5333 _LT_TAGVAR(compiler_needs_object, $1)=no
5334 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5335 _LT_TAGVAR(hardcode_direct, $1)=no
5336 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5337 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5338 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5339 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5340 _LT_TAGVAR(hardcode_minus_L, $1)=no
5341 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5342 _LT_TAGVAR(hardcode_automatic, $1)=no
5343 _LT_TAGVAR(inherit_rpath, $1)=no
5344 _LT_TAGVAR(module_cmds, $1)=
5345 _LT_TAGVAR(module_expsym_cmds, $1)=
5346 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5347 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5348 _LT_TAGVAR(no_undefined_flag, $1)=
5349 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5350 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5351
5352 # Source file extension for C++ test sources.
5353 ac_ext=cpp
5354
5355 # Object file extension for compiled C++ test sources.
5356 objext=o
5357 _LT_TAGVAR(objext, $1)=$objext
5358
5359 # No sense in running all these tests if we already determined that
5360 # the CXX compiler isn't working. Some variables (like enable_shared)
5361 # are currently assumed to apply to all compilers on this platform,
5362 # and will be corrupted by setting them based on a non-working compiler.
5363 if test "$_lt_caught_CXX_error" != yes; then
5364 # Code to be used in simple compile tests
5365 lt_simple_compile_test_code="int some_variable = 0;"
5366
5367 # Code to be used in simple link tests
5368 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5369
5370 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5371 _LT_TAG_COMPILER
5372
5373 # save warnings/boilerplate of simple test code
5374 _LT_COMPILER_BOILERPLATE
5375 _LT_LINKER_BOILERPLATE
5376
5377 # Allow CC to be a program name with arguments.
5378 lt_save_CC=$CC
5379 lt_save_LD=$LD
5380 lt_save_GCC=$GCC
5381 GCC=$GXX
5382 lt_save_with_gnu_ld=$with_gnu_ld
5383 lt_save_path_LD=$lt_cv_path_LD
5384 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5385 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5386 else
5387 $as_unset lt_cv_prog_gnu_ld
5388 fi
5389 if test -n "${lt_cv_path_LDCXX+set}"; then
5390 lt_cv_path_LD=$lt_cv_path_LDCXX
5391 else
5392 $as_unset lt_cv_path_LD
5393 fi
5394 test -z "${LDCXX+set}" || LD=$LDCXX
5395 CC=${CXX-"c++"}
5396 compiler=$CC
5397 _LT_TAGVAR(compiler, $1)=$CC
5398 _LT_CC_BASENAME([$compiler])
5399
5400 if test -n "$compiler"; then
5401 # We don't want -fno-exception when compiling C++ code, so set the
5402 # no_builtin_flag separately
5403 if test "$GXX" = yes; then
5404 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5405 else
5406 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5407 fi
5408
5409 if test "$GXX" = yes; then
5410 # Set up default GNU C++ configuration
5411
5412 LT_PATH_LD
5413
5414 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5415 # archiving commands below assume that GNU ld is being used.
5416 if test "$with_gnu_ld" = yes; then
5417 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5418 _LT_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'
5419
5420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5421 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5422
5423 # If archive_cmds runs LD, not CC, wlarc should be empty
5424 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5425 # investigate it a little bit more. (MM)
5426 wlarc='${wl}'
5427
5428 # ancient GNU ld didn't support --whole-archive et. al.
5429 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5430 $GREP 'no-whole-archive' > /dev/null; then
5431 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5432 else
5433 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5434 fi
5435 else
5436 with_gnu_ld=no
5437 wlarc=
5438
5439 # A generic and very simple default shared library creation
5440 # command for GNU C++ for the case where it uses the native
5441 # linker, instead of GNU ld. If possible, this setting should
5442 # overridden to take advantage of the native linker features on
5443 # the platform it is being used on.
5444 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5445 fi
5446
5447 # Commands to make compiler produce verbose output that lists
5448 # what "hidden" libraries, object files and flags are used when
5449 # linking a shared library.
5450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5451
5452 else
5453 GXX=no
5454 with_gnu_ld=no
5455 wlarc=
5456 fi
5457
5458 # PORTME: fill in a description of your system's C++ link characteristics
5459 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5460 _LT_TAGVAR(ld_shlibs, $1)=yes
5461 case $host_os in
5462 aix3*)
5463 # FIXME: insert proper C++ library support
5464 _LT_TAGVAR(ld_shlibs, $1)=no
5465 ;;
5466 aix[[4-9]]*)
5467 if test "$host_cpu" = ia64; then
5468 # On IA64, the linker does run time linking by default, so we don't
5469 # have to do anything special.
5470 aix_use_runtimelinking=no
5471 exp_sym_flag='-Bexport'
5472 no_entry_flag=""
5473 else
5474 aix_use_runtimelinking=no
5475
5476 # Test if we are trying to use run time linking or normal
5477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5478 # need to do runtime linking.
5479 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5480 for ld_flag in $LDFLAGS; do
5481 case $ld_flag in
5482 *-brtl*)
5483 aix_use_runtimelinking=yes
5484 break
5485 ;;
5486 esac
5487 done
5488 ;;
5489 esac
5490
5491 exp_sym_flag='-bexport'
5492 no_entry_flag='-bnoentry'
5493 fi
5494
5495 # When large executables or shared objects are built, AIX ld can
5496 # have problems creating the table of contents. If linking a library
5497 # or program results in "error TOC overflow" add -mminimal-toc to
5498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5500
5501 _LT_TAGVAR(archive_cmds, $1)=''
5502 _LT_TAGVAR(hardcode_direct, $1)=yes
5503 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5504 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5505 _LT_TAGVAR(link_all_deplibs, $1)=yes
5506 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5507
5508 if test "$GXX" = yes; then
5509 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5510 # We only want to do this on AIX 4.2 and lower, the check
5511 # below for broken collect2 doesn't work under 4.3+
5512 collect2name=`${CC} -print-prog-name=collect2`
5513 if test -f "$collect2name" &&
5514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5515 then
5516 # We have reworked collect2
5517 :
5518 else
5519 # We have old collect2
5520 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5521 # It fails to find uninstalled libraries when the uninstalled
5522 # path is not listed in the libpath. Setting hardcode_minus_L
5523 # to unsupported forces relinking
5524 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5525 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5526 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5527 fi
5528 esac
5529 shared_flag='-shared'
5530 if test "$aix_use_runtimelinking" = yes; then
5531 shared_flag="$shared_flag "'${wl}-G'
5532 fi
5533 else
5534 # not using gcc
5535 if test "$host_cpu" = ia64; then
5536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5537 # chokes on -Wl,-G. The following line is correct:
5538 shared_flag='-G'
5539 else
5540 if test "$aix_use_runtimelinking" = yes; then
5541 shared_flag='${wl}-G'
5542 else
5543 shared_flag='${wl}-bM:SRE'
5544 fi
5545 fi
5546 fi
5547
5548 # It seems that -bexpall does not export symbols beginning with
5549 # underscore (_), so it is better to generate a list of symbols to
5550 # export.
5551 _LT_TAGVAR(always_export_symbols, $1)=yes
5552 if test "$aix_use_runtimelinking" = yes; then
5553 # Warning - without using the other runtime loading flags (-brtl),
5554 # -berok will link without error, but may produce a broken library.
5555 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5556 # Determine the default libpath from the value encoded in an empty
5557 # executable.
5558 _LT_SYS_MODULE_PATH_AIX
5559 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5560
5561 _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5562 else
5563 if test "$host_cpu" = ia64; then
5564 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5565 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5566 _LT_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"
5567 else
5568 # Determine the default libpath from the value encoded in an
5569 # empty executable.
5570 _LT_SYS_MODULE_PATH_AIX
5571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5572 # Warning - without using the other run time loading flags,
5573 # -berok will link without error, but may produce a broken library.
5574 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5575 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5576 # Exported symbols can be pulled into shared objects from archives
5577 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5578 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5579 # This is similar to how AIX traditionally builds its shared
5580 # libraries.
5581 _LT_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'
5582 fi
5583 fi
5584 ;;
5585
5586 beos*)
5587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5588 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5590 # support --undefined. This deserves some investigation. FIXME
5591 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5592 else
5593 _LT_TAGVAR(ld_shlibs, $1)=no
5594 fi
5595 ;;
5596
5597 chorus*)
5598 case $cc_basename in
5599 *)
5600 # FIXME: insert proper C++ library support
5601 _LT_TAGVAR(ld_shlibs, $1)=no
5602 ;;
5603 esac
5604 ;;
5605
5606 cygwin* | mingw* | pw32*)
5607 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5608 # as there is no search path for DLLs.
5609 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5610 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5611 _LT_TAGVAR(always_export_symbols, $1)=no
5612 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5613
5614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5615 _LT_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'
5616 # If the export-symbols file already is a .def file (1st line
5617 # is EXPORTS), use it as is; otherwise, prepend...
5618 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5619 cp $export_symbols $output_objdir/$soname.def;
5620 else
5621 echo EXPORTS > $output_objdir/$soname.def;
5622 cat $export_symbols >> $output_objdir/$soname.def;
5623 fi~
5624 $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'
5625 else
5626 _LT_TAGVAR(ld_shlibs, $1)=no
5627 fi
5628 ;;
5629 darwin* | rhapsody*)
5630 _LT_DARWIN_LINKER_FEATURES($1)
5631 ;;
5632
5633 dgux*)
5634 case $cc_basename in
5635 ec++*)
5636 # FIXME: insert proper C++ library support
5637 _LT_TAGVAR(ld_shlibs, $1)=no
5638 ;;
5639 ghcx*)
5640 # Green Hills C++ Compiler
5641 # FIXME: insert proper C++ library support
5642 _LT_TAGVAR(ld_shlibs, $1)=no
5643 ;;
5644 *)
5645 # FIXME: insert proper C++ library support
5646 _LT_TAGVAR(ld_shlibs, $1)=no
5647 ;;
5648 esac
5649 ;;
5650
5651 freebsd[[12]]*)
5652 # C++ shared libraries reported to be fairly broken before
5653 # switch to ELF
5654 _LT_TAGVAR(ld_shlibs, $1)=no
5655 ;;
5656
5657 freebsd-elf*)
5658 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5659 ;;
5660
5661 freebsd* | dragonfly*)
5662 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5663 # conventions
5664 _LT_TAGVAR(ld_shlibs, $1)=yes
5665 ;;
5666
5667 gnu*)
5668 ;;
5669
5670 hpux9*)
5671 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5672 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5673 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5674 _LT_TAGVAR(hardcode_direct, $1)=yes
5675 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5676 # but as the default
5677 # location of the library.
5678
5679 case $cc_basename in
5680 CC*)
5681 # FIXME: insert proper C++ library support
5682 _LT_TAGVAR(ld_shlibs, $1)=no
5683 ;;
5684 aCC*)
5685 _LT_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'
5686 # Commands to make compiler produce verbose output that lists
5687 # what "hidden" libraries, object files and flags are used when
5688 # linking a shared library.
5689 #
5690 # There doesn't appear to be a way to prevent this compiler from
5691 # explicitly linking system object files so we need to strip them
5692 # from the output so that they don't get included in the library
5693 # dependencies.
5694 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5695 ;;
5696 *)
5697 if test "$GXX" = yes; then
5698 _LT_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'
5699 else
5700 # FIXME: insert proper C++ library support
5701 _LT_TAGVAR(ld_shlibs, $1)=no
5702 fi
5703 ;;
5704 esac
5705 ;;
5706
5707 hpux10*|hpux11*)
5708 if test $with_gnu_ld = no; then
5709 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5710 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5711
5712 case $host_cpu in
5713 hppa*64*|ia64*)
5714 ;;
5715 *)
5716 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5717 ;;
5718 esac
5719 fi
5720 case $host_cpu in
5721 hppa*64*|ia64*)
5722 _LT_TAGVAR(hardcode_direct, $1)=no
5723 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5724 ;;
5725 *)
5726 _LT_TAGVAR(hardcode_direct, $1)=yes
5727 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5728 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5729 # but as the default
5730 # location of the library.
5731 ;;
5732 esac
5733
5734 case $cc_basename in
5735 CC*)
5736 # FIXME: insert proper C++ library support
5737 _LT_TAGVAR(ld_shlibs, $1)=no
5738 ;;
5739 aCC*)
5740 case $host_cpu in
5741 hppa*64*)
5742 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5743 ;;
5744 ia64*)
5745 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5746 ;;
5747 *)
5748 _LT_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'
5749 ;;
5750 esac
5751 # Commands to make compiler produce verbose output that lists
5752 # what "hidden" libraries, object files and flags are used when
5753 # linking a shared library.
5754 #
5755 # There doesn't appear to be a way to prevent this compiler from
5756 # explicitly linking system object files so we need to strip them
5757 # from the output so that they don't get included in the library
5758 # dependencies.
5759 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 "X$list" | $Xsed'
5760 ;;
5761 *)
5762 if test "$GXX" = yes; then
5763 if test $with_gnu_ld = no; then
5764 case $host_cpu in
5765 hppa*64*)
5766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5767 ;;
5768 ia64*)
5769 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5770 ;;
5771 *)
5772 _LT_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'
5773 ;;
5774 esac
5775 fi
5776 else
5777 # FIXME: insert proper C++ library support
5778 _LT_TAGVAR(ld_shlibs, $1)=no
5779 fi
5780 ;;
5781 esac
5782 ;;
5783
5784 interix[[3-9]]*)
5785 _LT_TAGVAR(hardcode_direct, $1)=no
5786 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5788 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5790 # Instead, shared libraries are loaded at an image base (0x10000000 by
5791 # default) and relocated if they conflict, which is a slow very memory
5792 # consuming and fragmenting process. To avoid this, we pick a random,
5793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5795 _LT_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'
5796 _LT_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'
5797 ;;
5798 irix5* | irix6*)
5799 case $cc_basename in
5800 CC*)
5801 # SGI C++
5802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5803
5804 # Archives containing C++ object files must be created using
5805 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5806 # necessary to make sure instantiated templates are included
5807 # in the archive.
5808 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5809 ;;
5810 *)
5811 if test "$GXX" = yes; then
5812 if test "$with_gnu_ld" = no; then
5813 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5814 else
5815 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5816 fi
5817 fi
5818 _LT_TAGVAR(link_all_deplibs, $1)=yes
5819 ;;
5820 esac
5821 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5822 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5823 _LT_TAGVAR(inherit_rpath, $1)=yes
5824 ;;
5825
5826 linux* | k*bsd*-gnu)
5827 case $cc_basename in
5828 KCC*)
5829 # Kuck and Associates, Inc. (KAI) C++ Compiler
5830
5831 # KCC will only create a shared library if the output file
5832 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5833 # to its proper name (with version) after linking.
5834 _LT_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'
5835 _LT_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'
5836 # Commands to make compiler produce verbose output that lists
5837 # what "hidden" libraries, object files and flags are used when
5838 # linking a shared library.
5839 #
5840 # There doesn't appear to be a way to prevent this compiler from
5841 # explicitly linking system object files so we need to strip them
5842 # from the output so that they don't get included in the library
5843 # dependencies.
5844 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 "X$list" | $Xsed'
5845
5846 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5847 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5848
5849 # Archives containing C++ object files must be created using
5850 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5851 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5852 ;;
5853 icpc* | ecpc* )
5854 # Intel C++
5855 with_gnu_ld=yes
5856 # version 8.0 and above of icpc choke on multiply defined symbols
5857 # if we add $predep_objects and $postdep_objects, however 7.1 and
5858 # earlier do not add the objects themselves.
5859 case `$CC -V 2>&1` in
5860 *"Version 7."*)
5861 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5862 _LT_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'
5863 ;;
5864 *) # Version 8.0 or newer
5865 tmp_idyn=
5866 case $host_cpu in
5867 ia64*) tmp_idyn=' -i_dynamic';;
5868 esac
5869 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5870 _LT_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'
5871 ;;
5872 esac
5873 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5874 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5875 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5876 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5877 ;;
5878 pgCC* | pgcpp*)
5879 # Portland Group C++ compiler
5880 case `$CC -V` in
5881 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5882 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5883 rm -rf $tpldir~
5884 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5885 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5886 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5887 rm -rf $tpldir~
5888 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5889 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5890 $RANLIB $oldlib'
5891 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5892 rm -rf $tpldir~
5893 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5894 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5895 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5896 rm -rf $tpldir~
5897 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5898 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5899 ;;
5900 *) # Version 6 will use weak symbols
5901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5902 _LT_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'
5903 ;;
5904 esac
5905
5906 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5907 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5908 _LT_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'
5909 ;;
5910 cxx*)
5911 # Compaq C++
5912 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5913 _LT_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'
5914
5915 runpath_var=LD_RUN_PATH
5916 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5917 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5918
5919 # Commands to make compiler produce verbose output that lists
5920 # what "hidden" libraries, object files and flags are used when
5921 # linking a shared library.
5922 #
5923 # There doesn't appear to be a way to prevent this compiler from
5924 # explicitly linking system object files so we need to strip them
5925 # from the output so that they don't get included in the library
5926 # dependencies.
5927 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
5928 ;;
5929 xl*)
5930 # IBM XL 8.0 on PPC, with GNU ld
5931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5932 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5933 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5934 if test "x$supports_anon_versioning" = xyes; then
5935 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5937 echo "local: *; };" >> $output_objdir/$libname.ver~
5938 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5939 fi
5940 ;;
5941 *)
5942 case `$CC -V 2>&1 | sed 5q` in
5943 *Sun\ C*)
5944 # Sun C++ 5.9
5945 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5946 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5947 _LT_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'
5948 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5949 _LT_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'
5950 _LT_TAGVAR(compiler_needs_object, $1)=yes
5951
5952 # Not sure whether something based on
5953 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5954 # would be better.
5955 output_verbose_link_cmd='echo'
5956
5957 # Archives containing C++ object files must be created using
5958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5959 # necessary to make sure instantiated templates are included
5960 # in the archive.
5961 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5962 ;;
5963 esac
5964 ;;
5965 esac
5966 ;;
5967
5968 lynxos*)
5969 # FIXME: insert proper C++ library support
5970 _LT_TAGVAR(ld_shlibs, $1)=no
5971 ;;
5972
5973 m88k*)
5974 # FIXME: insert proper C++ library support
5975 _LT_TAGVAR(ld_shlibs, $1)=no
5976 ;;
5977
5978 mvs*)
5979 case $cc_basename in
5980 cxx*)
5981 # FIXME: insert proper C++ library support
5982 _LT_TAGVAR(ld_shlibs, $1)=no
5983 ;;
5984 *)
5985 # FIXME: insert proper C++ library support
5986 _LT_TAGVAR(ld_shlibs, $1)=no
5987 ;;
5988 esac
5989 ;;
5990
5991 netbsd*)
5992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5993 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5994 wlarc=
5995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5996 _LT_TAGVAR(hardcode_direct, $1)=yes
5997 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5998 fi
5999 # Workaround some broken pre-1.5 toolchains
6000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6001 ;;
6002
6003 *nto* | *qnx*)
6004 _LT_TAGVAR(ld_shlibs, $1)=yes
6005 ;;
6006
6007 openbsd2*)
6008 # C++ shared libraries are fairly broken
6009 _LT_TAGVAR(ld_shlibs, $1)=no
6010 ;;
6011
6012 openbsd*)
6013 if test -f /usr/libexec/ld.so; then
6014 _LT_TAGVAR(hardcode_direct, $1)=yes
6015 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6016 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6017 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6018 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6020 _LT_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'
6021 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6022 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6023 fi
6024 output_verbose_link_cmd=echo
6025 else
6026 _LT_TAGVAR(ld_shlibs, $1)=no
6027 fi
6028 ;;
6029
6030 osf3* | osf4* | osf5*)
6031 case $cc_basename in
6032 KCC*)
6033 # Kuck and Associates, Inc. (KAI) C++ Compiler
6034
6035 # KCC will only create a shared library if the output file
6036 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6037 # to its proper name (with version) after linking.
6038 _LT_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'
6039
6040 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6041 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6042
6043 # Archives containing C++ object files must be created using
6044 # the KAI C++ compiler.
6045 case $host in
6046 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6047 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6048 esac
6049 ;;
6050 RCC*)
6051 # Rational C++ 2.4.1
6052 # FIXME: insert proper C++ library support
6053 _LT_TAGVAR(ld_shlibs, $1)=no
6054 ;;
6055 cxx*)
6056 case $host in
6057 osf3*)
6058 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6059 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6060 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6061 ;;
6062 *)
6063 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6064 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6065 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6066 echo "-hidden">> $lib.exp~
6067 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6068 $RM $lib.exp'
6069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6070 ;;
6071 esac
6072
6073 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6074
6075 # Commands to make compiler produce verbose output that lists
6076 # what "hidden" libraries, object files and flags are used when
6077 # linking a shared library.
6078 #
6079 # There doesn't appear to be a way to prevent this compiler from
6080 # explicitly linking system object files so we need to strip them
6081 # from the output so that they don't get included in the library
6082 # dependencies.
6083 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6084 ;;
6085 *)
6086 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6087 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6088 case $host in
6089 osf3*)
6090 _LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6091 ;;
6092 *)
6093 _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6094 ;;
6095 esac
6096
6097 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6098 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6099
6100 # Commands to make compiler produce verbose output that lists
6101 # what "hidden" libraries, object files and flags are used when
6102 # linking a shared library.
6103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6104
6105 else
6106 # FIXME: insert proper C++ library support
6107 _LT_TAGVAR(ld_shlibs, $1)=no
6108 fi
6109 ;;
6110 esac
6111 ;;
6112
6113 psos*)
6114 # FIXME: insert proper C++ library support
6115 _LT_TAGVAR(ld_shlibs, $1)=no
6116 ;;
6117
6118 sunos4*)
6119 case $cc_basename in
6120 CC*)
6121 # Sun C++ 4.x
6122 # FIXME: insert proper C++ library support
6123 _LT_TAGVAR(ld_shlibs, $1)=no
6124 ;;
6125 lcc*)
6126 # Lucid
6127 # FIXME: insert proper C++ library support
6128 _LT_TAGVAR(ld_shlibs, $1)=no
6129 ;;
6130 *)
6131 # FIXME: insert proper C++ library support
6132 _LT_TAGVAR(ld_shlibs, $1)=no
6133 ;;
6134 esac
6135 ;;
6136
6137 solaris*)
6138 case $cc_basename in
6139 CC*)
6140 # Sun C++ 4.2, 5.x and Centerline C++
6141 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6142 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6143 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6144 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6145 $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'
6146
6147 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6148 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6149 case $host_os in
6150 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6151 *)
6152 # The compiler driver will combine and reorder linker options,
6153 # but understands `-z linker_flag'.
6154 # Supported since Solaris 2.6 (maybe 2.5.1?)
6155 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6156 ;;
6157 esac
6158 _LT_TAGVAR(link_all_deplibs, $1)=yes
6159
6160 output_verbose_link_cmd='echo'
6161
6162 # Archives containing C++ object files must be created using
6163 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6164 # necessary to make sure instantiated templates are included
6165 # in the archive.
6166 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6167 ;;
6168 gcx*)
6169 # Green Hills C++ Compiler
6170 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6171
6172 # The C++ compiler must be used to create the archive.
6173 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6174 ;;
6175 *)
6176 # GNU C++ compiler with Solaris linker
6177 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6178 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6179 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6181 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6182 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6183
6184 # Commands to make compiler produce verbose output that lists
6185 # what "hidden" libraries, object files and flags are used when
6186 # linking a shared library.
6187 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6188 else
6189 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6190 # platform.
6191 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6192 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6193 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6194
6195 # Commands to make compiler produce verbose output that lists
6196 # what "hidden" libraries, object files and flags are used when
6197 # linking a shared library.
6198 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6199 fi
6200
6201 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6202 case $host_os in
6203 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6204 *)
6205 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6206 ;;
6207 esac
6208 fi
6209 ;;
6210 esac
6211 ;;
6212
6213 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6214 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6215 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6216 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6217 runpath_var='LD_RUN_PATH'
6218
6219 case $cc_basename in
6220 CC*)
6221 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6222 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6223 ;;
6224 *)
6225 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6226 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6227 ;;
6228 esac
6229 ;;
6230
6231 sysv5* | sco3.2v5* | sco5v6*)
6232 # Note: We can NOT use -z defs as we might desire, because we do not
6233 # link with -lc, and that would cause any symbols used from libc to
6234 # always be unresolved, which means just about no library would
6235 # ever link correctly. If we're not using GNU ld we use -z text
6236 # though, which does catch some bad symbols but isn't as heavy-handed
6237 # as -z defs.
6238 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6239 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6240 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6241 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6243 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6244 _LT_TAGVAR(link_all_deplibs, $1)=yes
6245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6246 runpath_var='LD_RUN_PATH'
6247
6248 case $cc_basename in
6249 CC*)
6250 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6251 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6252 ;;
6253 *)
6254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6255 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6256 ;;
6257 esac
6258 ;;
6259
6260 tandem*)
6261 case $cc_basename in
6262 NCC*)
6263 # NonStop-UX NCC 3.20
6264 # FIXME: insert proper C++ library support
6265 _LT_TAGVAR(ld_shlibs, $1)=no
6266 ;;
6267 *)
6268 # FIXME: insert proper C++ library support
6269 _LT_TAGVAR(ld_shlibs, $1)=no
6270 ;;
6271 esac
6272 ;;
6273
6274 vxworks*)
6275 # FIXME: insert proper C++ library support
6276 _LT_TAGVAR(ld_shlibs, $1)=no
6277 ;;
6278
6279 *)
6280 # FIXME: insert proper C++ library support
6281 _LT_TAGVAR(ld_shlibs, $1)=no
6282 ;;
6283 esac
6284
6285 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6286 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6287
6288 _LT_TAGVAR(GCC, $1)="$GXX"
6289 _LT_TAGVAR(LD, $1)="$LD"
6290
6291 ## CAVEAT EMPTOR:
6292 ## There is no encapsulation within the following macros, do not change
6293 ## the running order or otherwise move them around unless you know exactly
6294 ## what you are doing...
6295 _LT_SYS_HIDDEN_LIBDEPS($1)
6296 _LT_COMPILER_PIC($1)
6297 _LT_COMPILER_C_O($1)
6298 _LT_COMPILER_FILE_LOCKS($1)
6299 _LT_LINKER_SHLIBS($1)
6300 _LT_SYS_DYNAMIC_LINKER($1)
6301 _LT_LINKER_HARDCODE_LIBPATH($1)
6302
6303 _LT_CONFIG($1)
6304 fi # test -n "$compiler"
6305
6306 CC=$lt_save_CC
6307 LDCXX=$LD
6308 LD=$lt_save_LD
6309 GCC=$lt_save_GCC
6310 with_gnu_ld=$lt_save_with_gnu_ld
6311 lt_cv_path_LDCXX=$lt_cv_path_LD
6312 lt_cv_path_LD=$lt_save_path_LD
6313 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6314 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6315 fi # test "$_lt_caught_CXX_error" != yes
6316
6317 AC_LANG_POP
6318 ])# _LT_LANG_CXX_CONFIG
6319
6320
6321 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6322 # ---------------------------------
6323 # Figure out "hidden" library dependencies from verbose
6324 # compiler output when linking a shared library.
6325 # Parse the compiler output and extract the necessary
6326 # objects, libraries and library flags.
6327 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6328 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6329 # Dependencies to place before and after the object being linked:
6330 _LT_TAGVAR(predep_objects, $1)=
6331 _LT_TAGVAR(postdep_objects, $1)=
6332 _LT_TAGVAR(predeps, $1)=
6333 _LT_TAGVAR(postdeps, $1)=
6334 _LT_TAGVAR(compiler_lib_search_path, $1)=
6335
6336 dnl we can't use the lt_simple_compile_test_code here,
6337 dnl because it contains code intended for an executable,
6338 dnl not a library. It's possible we should let each
6339 dnl tag define a new lt_????_link_test_code variable,
6340 dnl but it's only used here...
6341 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6342 int a;
6343 void foo (void) { a = 0; }
6344 _LT_EOF
6345 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6346 class Foo
6347 {
6348 public:
6349 Foo (void) { a = 0; }
6350 private:
6351 int a;
6352 };
6353 _LT_EOF
6354 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6355 subroutine foo
6356 implicit none
6357 integer*4 a
6358 a=0
6359 return
6360 end
6361 _LT_EOF
6362 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6363 subroutine foo
6364 implicit none
6365 integer a
6366 a=0
6367 return
6368 end
6369 _LT_EOF
6370 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6371 public class foo {
6372 private int a;
6373 public void bar (void) {
6374 a = 0;
6375 }
6376 };
6377 _LT_EOF
6378 ])
6379 dnl Parse the compiler output and extract the necessary
6380 dnl objects, libraries and library flags.
6381 if AC_TRY_EVAL(ac_compile); then
6382 # Parse the compiler output and extract the necessary
6383 # objects, libraries and library flags.
6384
6385 # Sentinel used to keep track of whether or not we are before
6386 # the conftest object file.
6387 pre_test_object_deps_done=no
6388
6389 for p in `eval "$output_verbose_link_cmd"`; do
6390 case $p in
6391
6392 -L* | -R* | -l*)
6393 # Some compilers place space between "-{L,R}" and the path.
6394 # Remove the space.
6395 if test $p = "-L" ||
6396 test $p = "-R"; then
6397 prev=$p
6398 continue
6399 else
6400 prev=
6401 fi
6402
6403 if test "$pre_test_object_deps_done" = no; then
6404 case $p in
6405 -L* | -R*)
6406 # Internal compiler library paths should come after those
6407 # provided the user. The postdeps already come after the
6408 # user supplied libs so there is no need to process them.
6409 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6410 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6411 else
6412 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6413 fi
6414 ;;
6415 # The "-l" case would never come before the object being
6416 # linked, so don't bother handling this case.
6417 esac
6418 else
6419 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6420 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6421 else
6422 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6423 fi
6424 fi
6425 ;;
6426
6427 *.$objext)
6428 # This assumes that the test object file only shows up
6429 # once in the compiler output.
6430 if test "$p" = "conftest.$objext"; then
6431 pre_test_object_deps_done=yes
6432 continue
6433 fi
6434
6435 if test "$pre_test_object_deps_done" = no; then
6436 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6437 _LT_TAGVAR(predep_objects, $1)="$p"
6438 else
6439 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6440 fi
6441 else
6442 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6443 _LT_TAGVAR(postdep_objects, $1)="$p"
6444 else
6445 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6446 fi
6447 fi
6448 ;;
6449
6450 *) ;; # Ignore the rest.
6451
6452 esac
6453 done
6454
6455 # Clean up.
6456 rm -f a.out a.exe
6457 else
6458 echo "libtool.m4: error: problem compiling $1 test program"
6459 fi
6460
6461 $RM -f confest.$objext
6462
6463 # PORTME: override above test on systems where it is broken
6464 m4_if([$1], [CXX],
6465 [case $host_os in
6466 interix[[3-9]]*)
6467 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6468 # hack all around it, let's just trust "g++" to DTRT.
6469 _LT_TAGVAR(predep_objects,$1)=
6470 _LT_TAGVAR(postdep_objects,$1)=
6471 _LT_TAGVAR(postdeps,$1)=
6472 ;;
6473
6474 linux*)
6475 case `$CC -V 2>&1 | sed 5q` in
6476 *Sun\ C*)
6477 # Sun C++ 5.9
6478
6479 # The more standards-conforming stlport4 library is
6480 # incompatible with the Cstd library. Avoid specifying
6481 # it if it's in CXXFLAGS. Ignore libCrun as
6482 # -library=stlport4 depends on it.
6483 case " $CXX $CXXFLAGS " in
6484 *" -library=stlport4 "*)
6485 solaris_use_stlport4=yes
6486 ;;
6487 esac
6488
6489 if test "$solaris_use_stlport4" != yes; then
6490 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6491 fi
6492 ;;
6493 esac
6494 ;;
6495
6496 solaris*)
6497 case $cc_basename in
6498 CC*)
6499 # The more standards-conforming stlport4 library is
6500 # incompatible with the Cstd library. Avoid specifying
6501 # it if it's in CXXFLAGS. Ignore libCrun as
6502 # -library=stlport4 depends on it.
6503 case " $CXX $CXXFLAGS " in
6504 *" -library=stlport4 "*)
6505 solaris_use_stlport4=yes
6506 ;;
6507 esac
6508
6509 # Adding this requires a known-good setup of shared libraries for
6510 # Sun compiler versions before 5.6, else PIC objects from an old
6511 # archive will be linked into the output, leading to subtle bugs.
6512 if test "$solaris_use_stlport4" != yes; then
6513 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6514 fi
6515 ;;
6516 esac
6517 ;;
6518 esac
6519 ])
6520
6521 case " $_LT_TAGVAR(postdeps, $1) " in
6522 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6523 esac
6524 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6525 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6526 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6527 fi
6528 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6529 [The directories searched by this compiler when creating a shared library])
6530 _LT_TAGDECL([], [predep_objects], [1],
6531 [Dependencies to place before and after the objects being linked to
6532 create a shared library])
6533 _LT_TAGDECL([], [postdep_objects], [1])
6534 _LT_TAGDECL([], [predeps], [1])
6535 _LT_TAGDECL([], [postdeps], [1])
6536 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6537 [The library search path used internally by the compiler when linking
6538 a shared library])
6539 ])# _LT_SYS_HIDDEN_LIBDEPS
6540
6541
6542 # _LT_PROG_F77
6543 # ------------
6544 # Since AC_PROG_F77 is broken, in that it returns the empty string
6545 # if there is no fortran compiler, we have our own version here.
6546 m4_defun([_LT_PROG_F77],
6547 [
6548 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6549 AC_PROG_F77
6550 if test -z "$F77" || test "X$F77" = "Xno"; then
6551 _lt_disable_F77=yes
6552 fi
6553 popdef([AC_MSG_ERROR])
6554 ])# _LT_PROG_F77
6555
6556 dnl aclocal-1.4 backwards compatibility:
6557 dnl AC_DEFUN([_LT_PROG_F77], [])
6558
6559
6560 # _LT_LANG_F77_CONFIG([TAG])
6561 # --------------------------
6562 # Ensure that the configuration variables for a Fortran 77 compiler are
6563 # suitably defined. These variables are subsequently used by _LT_CONFIG
6564 # to write the compiler configuration to `libtool'.
6565 m4_defun([_LT_LANG_F77_CONFIG],
6566 [AC_REQUIRE([_LT_PROG_F77])dnl
6567 AC_LANG_PUSH(Fortran 77)
6568
6569 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6570 _LT_TAGVAR(allow_undefined_flag, $1)=
6571 _LT_TAGVAR(always_export_symbols, $1)=no
6572 _LT_TAGVAR(archive_expsym_cmds, $1)=
6573 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6574 _LT_TAGVAR(hardcode_direct, $1)=no
6575 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6576 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6577 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6578 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6579 _LT_TAGVAR(hardcode_minus_L, $1)=no
6580 _LT_TAGVAR(hardcode_automatic, $1)=no
6581 _LT_TAGVAR(inherit_rpath, $1)=no
6582 _LT_TAGVAR(module_cmds, $1)=
6583 _LT_TAGVAR(module_expsym_cmds, $1)=
6584 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6585 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6586 _LT_TAGVAR(no_undefined_flag, $1)=
6587 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6588 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6589
6590 # Source file extension for f77 test sources.
6591 ac_ext=f
6592
6593 # Object file extension for compiled f77 test sources.
6594 objext=o
6595 _LT_TAGVAR(objext, $1)=$objext
6596
6597 # No sense in running all these tests if we already determined that
6598 # the F77 compiler isn't working. Some variables (like enable_shared)
6599 # are currently assumed to apply to all compilers on this platform,
6600 # and will be corrupted by setting them based on a non-working compiler.
6601 if test "$_lt_disable_F77" != yes; then
6602 # Code to be used in simple compile tests
6603 lt_simple_compile_test_code="\
6604 subroutine t
6605 return
6606 end
6607 "
6608
6609 # Code to be used in simple link tests
6610 lt_simple_link_test_code="\
6611 program t
6612 end
6613 "
6614
6615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6616 _LT_TAG_COMPILER
6617
6618 # save warnings/boilerplate of simple test code
6619 _LT_COMPILER_BOILERPLATE
6620 _LT_LINKER_BOILERPLATE
6621
6622 # Allow CC to be a program name with arguments.
6623 lt_save_CC="$CC"
6624 lt_save_GCC=$GCC
6625 CC=${F77-"f77"}
6626 compiler=$CC
6627 _LT_TAGVAR(compiler, $1)=$CC
6628 _LT_CC_BASENAME([$compiler])
6629 GCC=$G77
6630 if test -n "$compiler"; then
6631 AC_MSG_CHECKING([if libtool supports shared libraries])
6632 AC_MSG_RESULT([$can_build_shared])
6633
6634 AC_MSG_CHECKING([whether to build shared libraries])
6635 test "$can_build_shared" = "no" && enable_shared=no
6636
6637 # On AIX, shared libraries and static libraries use the same namespace, and
6638 # are all built from PIC.
6639 case $host_os in
6640 aix3*)
6641 test "$enable_shared" = yes && enable_static=no
6642 if test -n "$RANLIB"; then
6643 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6644 postinstall_cmds='$RANLIB $lib'
6645 fi
6646 ;;
6647 aix[[4-9]]*)
6648 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6649 test "$enable_shared" = yes && enable_static=no
6650 fi
6651 ;;
6652 esac
6653 AC_MSG_RESULT([$enable_shared])
6654
6655 AC_MSG_CHECKING([whether to build static libraries])
6656 # Make sure either enable_shared or enable_static is yes.
6657 test "$enable_shared" = yes || enable_static=yes
6658 AC_MSG_RESULT([$enable_static])
6659
6660 _LT_TAGVAR(GCC, $1)="$G77"
6661 _LT_TAGVAR(LD, $1)="$LD"
6662
6663 ## CAVEAT EMPTOR:
6664 ## There is no encapsulation within the following macros, do not change
6665 ## the running order or otherwise move them around unless you know exactly
6666 ## what you are doing...
6667 _LT_COMPILER_PIC($1)
6668 _LT_COMPILER_C_O($1)
6669 _LT_COMPILER_FILE_LOCKS($1)
6670 _LT_LINKER_SHLIBS($1)
6671 _LT_SYS_DYNAMIC_LINKER($1)
6672 _LT_LINKER_HARDCODE_LIBPATH($1)
6673
6674 _LT_CONFIG($1)
6675 fi # test -n "$compiler"
6676
6677 GCC=$lt_save_GCC
6678 CC="$lt_save_CC"
6679 fi # test "$_lt_disable_F77" != yes
6680
6681 AC_LANG_POP
6682 ])# _LT_LANG_F77_CONFIG
6683
6684
6685 # _LT_PROG_FC
6686 # -----------
6687 # Since AC_PROG_FC is broken, in that it returns the empty string
6688 # if there is no fortran compiler, we have our own version here.
6689 m4_defun([_LT_PROG_FC],
6690 [
6691 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6692 AC_PROG_FC
6693 if test -z "$FC" || test "X$FC" = "Xno"; then
6694 _lt_disable_FC=yes
6695 fi
6696 popdef([AC_MSG_ERROR])
6697 ])# _LT_PROG_FC
6698
6699 dnl aclocal-1.4 backwards compatibility:
6700 dnl AC_DEFUN([_LT_PROG_FC], [])
6701
6702
6703 # _LT_LANG_FC_CONFIG([TAG])
6704 # -------------------------
6705 # Ensure that the configuration variables for a Fortran compiler are
6706 # suitably defined. These variables are subsequently used by _LT_CONFIG
6707 # to write the compiler configuration to `libtool'.
6708 m4_defun([_LT_LANG_FC_CONFIG],
6709 [AC_REQUIRE([_LT_PROG_FC])dnl
6710 AC_LANG_PUSH(Fortran)
6711
6712 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6713 _LT_TAGVAR(allow_undefined_flag, $1)=
6714 _LT_TAGVAR(always_export_symbols, $1)=no
6715 _LT_TAGVAR(archive_expsym_cmds, $1)=
6716 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6717 _LT_TAGVAR(hardcode_direct, $1)=no
6718 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6720 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6721 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6722 _LT_TAGVAR(hardcode_minus_L, $1)=no
6723 _LT_TAGVAR(hardcode_automatic, $1)=no
6724 _LT_TAGVAR(inherit_rpath, $1)=no
6725 _LT_TAGVAR(module_cmds, $1)=
6726 _LT_TAGVAR(module_expsym_cmds, $1)=
6727 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6728 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6729 _LT_TAGVAR(no_undefined_flag, $1)=
6730 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6731 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6732
6733 # Source file extension for fc test sources.
6734 ac_ext=${ac_fc_srcext-f}
6735
6736 # Object file extension for compiled fc test sources.
6737 objext=o
6738 _LT_TAGVAR(objext, $1)=$objext
6739
6740 # No sense in running all these tests if we already determined that
6741 # the FC compiler isn't working. Some variables (like enable_shared)
6742 # are currently assumed to apply to all compilers on this platform,
6743 # and will be corrupted by setting them based on a non-working compiler.
6744 if test "$_lt_disable_FC" != yes; then
6745 # Code to be used in simple compile tests
6746 lt_simple_compile_test_code="\
6747 subroutine t
6748 return
6749 end
6750 "
6751
6752 # Code to be used in simple link tests
6753 lt_simple_link_test_code="\
6754 program t
6755 end
6756 "
6757
6758 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6759 _LT_TAG_COMPILER
6760
6761 # save warnings/boilerplate of simple test code
6762 _LT_COMPILER_BOILERPLATE
6763 _LT_LINKER_BOILERPLATE
6764
6765 # Allow CC to be a program name with arguments.
6766 lt_save_CC="$CC"
6767 lt_save_GCC=$GCC
6768 CC=${FC-"f95"}
6769 compiler=$CC
6770 GCC=$ac_cv_fc_compiler_gnu
6771
6772 _LT_TAGVAR(compiler, $1)=$CC
6773 _LT_CC_BASENAME([$compiler])
6774
6775 if test -n "$compiler"; then
6776 AC_MSG_CHECKING([if libtool supports shared libraries])
6777 AC_MSG_RESULT([$can_build_shared])
6778
6779 AC_MSG_CHECKING([whether to build shared libraries])
6780 test "$can_build_shared" = "no" && enable_shared=no
6781
6782 # On AIX, shared libraries and static libraries use the same namespace, and
6783 # are all built from PIC.
6784 case $host_os in
6785 aix3*)
6786 test "$enable_shared" = yes && enable_static=no
6787 if test -n "$RANLIB"; then
6788 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6789 postinstall_cmds='$RANLIB $lib'
6790 fi
6791 ;;
6792 aix[[4-9]]*)
6793 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6794 test "$enable_shared" = yes && enable_static=no
6795 fi
6796 ;;
6797 esac
6798 AC_MSG_RESULT([$enable_shared])
6799
6800 AC_MSG_CHECKING([whether to build static libraries])
6801 # Make sure either enable_shared or enable_static is yes.
6802 test "$enable_shared" = yes || enable_static=yes
6803 AC_MSG_RESULT([$enable_static])
6804
6805 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6806 _LT_TAGVAR(LD, $1)="$LD"
6807
6808 ## CAVEAT EMPTOR:
6809 ## There is no encapsulation within the following macros, do not change
6810 ## the running order or otherwise move them around unless you know exactly
6811 ## what you are doing...
6812 _LT_SYS_HIDDEN_LIBDEPS($1)
6813 _LT_COMPILER_PIC($1)
6814 _LT_COMPILER_C_O($1)
6815 _LT_COMPILER_FILE_LOCKS($1)
6816 _LT_LINKER_SHLIBS($1)
6817 _LT_SYS_DYNAMIC_LINKER($1)
6818 _LT_LINKER_HARDCODE_LIBPATH($1)
6819
6820 _LT_CONFIG($1)
6821 fi # test -n "$compiler"
6822
6823 GCC=$lt_save_GCC
6824 CC="$lt_save_CC"
6825 fi # test "$_lt_disable_FC" != yes
6826
6827 AC_LANG_POP
6828 ])# _LT_LANG_FC_CONFIG
6829
6830
6831 # _LT_LANG_GCJ_CONFIG([TAG])
6832 # --------------------------
6833 # Ensure that the configuration variables for the GNU Java Compiler compiler
6834 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6835 # to write the compiler configuration to `libtool'.
6836 m4_defun([_LT_LANG_GCJ_CONFIG],
6837 [AC_REQUIRE([LT_PROG_GCJ])dnl
6838 AC_LANG_SAVE
6839
6840 # Source file extension for Java test sources.
6841 ac_ext=java
6842
6843 # Object file extension for compiled Java test sources.
6844 objext=o
6845 _LT_TAGVAR(objext, $1)=$objext
6846
6847 # Code to be used in simple compile tests
6848 lt_simple_compile_test_code="class foo {}"
6849
6850 # Code to be used in simple link tests
6851 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6852
6853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6854 _LT_TAG_COMPILER
6855
6856 # save warnings/boilerplate of simple test code
6857 _LT_COMPILER_BOILERPLATE
6858 _LT_LINKER_BOILERPLATE
6859
6860 # Allow CC to be a program name with arguments.
6861 lt_save_CC="$CC"
6862 lt_save_GCC=$GCC
6863 GCC=yes
6864 CC=${GCJ-"gcj"}
6865 compiler=$CC
6866 _LT_TAGVAR(compiler, $1)=$CC
6867 _LT_TAGVAR(LD, $1)="$LD"
6868 _LT_CC_BASENAME([$compiler])
6869
6870 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6871 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6872
6873 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6874
6875 if test -n "$compiler"; then
6876 _LT_COMPILER_NO_RTTI($1)
6877 _LT_COMPILER_PIC($1)
6878 _LT_COMPILER_C_O($1)
6879 _LT_COMPILER_FILE_LOCKS($1)
6880 _LT_LINKER_SHLIBS($1)
6881 _LT_LINKER_HARDCODE_LIBPATH($1)
6882
6883 _LT_CONFIG($1)
6884 fi
6885
6886 AC_LANG_RESTORE
6887
6888 GCC=$lt_save_GCC
6889 CC="$lt_save_CC"
6890 ])# _LT_LANG_GCJ_CONFIG
6891
6892
6893 # _LT_LANG_RC_CONFIG([TAG])
6894 # -------------------------
6895 # Ensure that the configuration variables for the Windows resource compiler
6896 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6897 # to write the compiler configuration to `libtool'.
6898 m4_defun([_LT_LANG_RC_CONFIG],
6899 [AC_REQUIRE([LT_PROG_RC])dnl
6900 AC_LANG_SAVE
6901
6902 # Source file extension for RC test sources.
6903 ac_ext=rc
6904
6905 # Object file extension for compiled RC test sources.
6906 objext=o
6907 _LT_TAGVAR(objext, $1)=$objext
6908
6909 # Code to be used in simple compile tests
6910 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6911
6912 # Code to be used in simple link tests
6913 lt_simple_link_test_code="$lt_simple_compile_test_code"
6914
6915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6916 _LT_TAG_COMPILER
6917
6918 # save warnings/boilerplate of simple test code
6919 _LT_COMPILER_BOILERPLATE
6920 _LT_LINKER_BOILERPLATE
6921
6922 # Allow CC to be a program name with arguments.
6923 lt_save_CC="$CC"
6924 lt_save_GCC=$GCC
6925 GCC=
6926 CC=${RC-"windres"}
6927 compiler=$CC
6928 _LT_TAGVAR(compiler, $1)=$CC
6929 _LT_CC_BASENAME([$compiler])
6930 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6931
6932 if test -n "$compiler"; then
6933 :
6934 _LT_CONFIG($1)
6935 fi
6936
6937 GCC=$lt_save_GCC
6938 AC_LANG_RESTORE
6939 CC="$lt_save_CC"
6940 ])# _LT_LANG_RC_CONFIG
6941
6942
6943 # LT_PROG_GCJ
6944 # -----------
6945 AC_DEFUN([LT_PROG_GCJ],
6946 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6947 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6948 [AC_CHECK_TOOL(GCJ, gcj,)
6949 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6950 AC_SUBST(GCJFLAGS)])])[]dnl
6951 ])
6952
6953 # Old name:
6954 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6955 dnl aclocal-1.4 backwards compatibility:
6956 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6957
6958
6959 # LT_PROG_RC
6960 # ----------
6961 AC_DEFUN([LT_PROG_RC],
6962 [AC_CHECK_TOOL(RC, windres,)
6963 ])
6964
6965 # Old name:
6966 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6967 dnl aclocal-1.4 backwards compatibility:
6968 dnl AC_DEFUN([LT_AC_PROG_RC], [])
6969
6970
6971 # _LT_DECL_EGREP
6972 # --------------
6973 # If we don't have a new enough Autoconf to choose the best grep
6974 # available, choose the one first in the user's PATH.
6975 m4_defun([_LT_DECL_EGREP],
6976 [AC_REQUIRE([AC_PROG_EGREP])dnl
6977 AC_REQUIRE([AC_PROG_FGREP])dnl
6978 test -z "$GREP" && GREP=grep
6979 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
6980 _LT_DECL([], [EGREP], [1], [An ERE matcher])
6981 _LT_DECL([], [FGREP], [1], [A literal string matcher])
6982 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
6983 AC_SUBST([GREP])
6984 ])
6985
6986
6987 # _LT_DECL_SED
6988 # ------------
6989 # Check for a fully-functional sed program, that truncates
6990 # as few characters as possible. Prefer GNU sed if found.
6991 m4_defun([_LT_DECL_SED],
6992 [AC_PROG_SED
6993 test -z "$SED" && SED=sed
6994 Xsed="$SED -e 1s/^X//"
6995 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
6996 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
6997 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
6998 ])# _LT_DECL_SED
6999
7000 m4_ifndef([AC_PROG_SED], [
7001 # NOTE: This macro has been submitted for inclusion into #
7002 # GNU Autoconf as AC_PROG_SED. When it is available in #
7003 # a released version of Autoconf we should remove this #
7004 # macro and use it instead. #
7005
7006 m4_defun([AC_PROG_SED],
7007 [AC_MSG_CHECKING([for a sed that does not truncate output])
7008 AC_CACHE_VAL(lt_cv_path_SED,
7009 [# Loop through the user's path and test for sed and gsed.
7010 # Then use that list of sed's as ones to test for truncation.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for lt_ac_prog in sed gsed; do
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7019 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7020 fi
7021 done
7022 done
7023 done
7024 IFS=$as_save_IFS
7025 lt_ac_max=0
7026 lt_ac_count=0
7027 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7028 # along with /bin/sed that truncates output.
7029 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7030 test ! -f $lt_ac_sed && continue
7031 cat /dev/null > conftest.in
7032 lt_ac_count=0
7033 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7034 # Check for GNU sed and select it if it is found.
7035 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7036 lt_cv_path_SED=$lt_ac_sed
7037 break
7038 fi
7039 while true; do
7040 cat conftest.in conftest.in >conftest.tmp
7041 mv conftest.tmp conftest.in
7042 cp conftest.in conftest.nl
7043 echo >>conftest.nl
7044 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7045 cmp -s conftest.out conftest.nl || break
7046 # 10000 chars as input seems more than enough
7047 test $lt_ac_count -gt 10 && break
7048 lt_ac_count=`expr $lt_ac_count + 1`
7049 if test $lt_ac_count -gt $lt_ac_max; then
7050 lt_ac_max=$lt_ac_count
7051 lt_cv_path_SED=$lt_ac_sed
7052 fi
7053 done
7054 done
7055 ])
7056 SED=$lt_cv_path_SED
7057 AC_SUBST([SED])
7058 AC_MSG_RESULT([$SED])
7059 ])#AC_PROG_SED
7060 ])#m4_ifndef
7061
7062 # Old name:
7063 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7064 dnl aclocal-1.4 backwards compatibility:
7065 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7066
7067
7068 # _LT_CHECK_SHELL_FEATURES
7069 # ------------------------
7070 # Find out whether the shell is Bourne or XSI compatible,
7071 # or has some other useful features.
7072 m4_defun([_LT_CHECK_SHELL_FEATURES],
7073 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7074 # Try some XSI features
7075 xsi_shell=no
7076 ( _lt_dummy="a/b/c"
7077 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7078 = c,a/b,, \
7079 && eval 'test $(( 1 + 1 )) -eq 2 \
7080 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7081 && xsi_shell=yes
7082 AC_MSG_RESULT([$xsi_shell])
7083 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7084
7085 AC_MSG_CHECKING([whether the shell understands "+="])
7086 lt_shell_append=no
7087 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7088 >/dev/null 2>&1 \
7089 && lt_shell_append=yes
7090 AC_MSG_RESULT([$lt_shell_append])
7091 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7092
7093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7094 lt_unset=unset
7095 else
7096 lt_unset=false
7097 fi
7098 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7099
7100 # test EBCDIC or ASCII
7101 case `echo X|tr X '\101'` in
7102 A) # ASCII based system
7103 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7104 lt_SP2NL='tr \040 \012'
7105 lt_NL2SP='tr \015\012 \040\040'
7106 ;;
7107 *) # EBCDIC based system
7108 lt_SP2NL='tr \100 \n'
7109 lt_NL2SP='tr \r\n \100\100'
7110 ;;
7111 esac
7112 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7113 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7114 ])# _LT_CHECK_SHELL_FEATURES
7115
7116
7117 # _LT_PROG_XSI_SHELLFNS
7118 # ---------------------
7119 # Bourne and XSI compatible variants of some useful shell functions.
7120 m4_defun([_LT_PROG_XSI_SHELLFNS],
7121 [case $xsi_shell in
7122 yes)
7123 cat << \_LT_EOF >> "$cfgfile"
7124
7125 # func_dirname file append nondir_replacement
7126 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7127 # otherwise set result to NONDIR_REPLACEMENT.
7128 func_dirname ()
7129 {
7130 case ${1} in
7131 */*) func_dirname_result="${1%/*}${2}" ;;
7132 * ) func_dirname_result="${3}" ;;
7133 esac
7134 }
7135
7136 # func_basename file
7137 func_basename ()
7138 {
7139 func_basename_result="${1##*/}"
7140 }
7141
7142 # func_dirname_and_basename file append nondir_replacement
7143 # perform func_basename and func_dirname in a single function
7144 # call:
7145 # dirname: Compute the dirname of FILE. If nonempty,
7146 # add APPEND to the result, otherwise set result
7147 # to NONDIR_REPLACEMENT.
7148 # value returned in "$func_dirname_result"
7149 # basename: Compute filename of FILE.
7150 # value retuned in "$func_basename_result"
7151 # Implementation must be kept synchronized with func_dirname
7152 # and func_basename. For efficiency, we do not delegate to
7153 # those functions but instead duplicate the functionality here.
7154 func_dirname_and_basename ()
7155 {
7156 case ${1} in
7157 */*) func_dirname_result="${1%/*}${2}" ;;
7158 * ) func_dirname_result="${3}" ;;
7159 esac
7160 func_basename_result="${1##*/}"
7161 }
7162
7163 # func_stripname prefix suffix name
7164 # strip PREFIX and SUFFIX off of NAME.
7165 # PREFIX and SUFFIX must not contain globbing or regex special
7166 # characters, hashes, percent signs, but SUFFIX may contain a leading
7167 # dot (in which case that matches only a dot).
7168 func_stripname ()
7169 {
7170 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7171 # positional parameters, so assign one to ordinary parameter first.
7172 func_stripname_result=${3}
7173 func_stripname_result=${func_stripname_result#"${1}"}
7174 func_stripname_result=${func_stripname_result%"${2}"}
7175 }
7176
7177 # func_opt_split
7178 func_opt_split ()
7179 {
7180 func_opt_split_opt=${1%%=*}
7181 func_opt_split_arg=${1#*=}
7182 }
7183
7184 # func_lo2o object
7185 func_lo2o ()
7186 {
7187 case ${1} in
7188 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7189 *) func_lo2o_result=${1} ;;
7190 esac
7191 }
7192
7193 # func_xform libobj-or-source
7194 func_xform ()
7195 {
7196 func_xform_result=${1%.*}.lo
7197 }
7198
7199 # func_arith arithmetic-term...
7200 func_arith ()
7201 {
7202 func_arith_result=$(( $[*] ))
7203 }
7204
7205 # func_len string
7206 # STRING may not start with a hyphen.
7207 func_len ()
7208 {
7209 func_len_result=${#1}
7210 }
7211
7212 _LT_EOF
7213 ;;
7214 *) # Bourne compatible functions.
7215 cat << \_LT_EOF >> "$cfgfile"
7216
7217 # func_dirname file append nondir_replacement
7218 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7219 # otherwise set result to NONDIR_REPLACEMENT.
7220 func_dirname ()
7221 {
7222 # Extract subdirectory from the argument.
7223 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7224 if test "X$func_dirname_result" = "X${1}"; then
7225 func_dirname_result="${3}"
7226 else
7227 func_dirname_result="$func_dirname_result${2}"
7228 fi
7229 }
7230
7231 # func_basename file
7232 func_basename ()
7233 {
7234 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7235 }
7236
7237 dnl func_dirname_and_basename
7238 dnl A portable version of this function is already defined in general.m4sh
7239 dnl so there is no need for it here.
7240
7241 # func_stripname prefix suffix name
7242 # strip PREFIX and SUFFIX off of NAME.
7243 # PREFIX and SUFFIX must not contain globbing or regex special
7244 # characters, hashes, percent signs, but SUFFIX may contain a leading
7245 # dot (in which case that matches only a dot).
7246 # func_strip_suffix prefix name
7247 func_stripname ()
7248 {
7249 case ${2} in
7250 .*) func_stripname_result=`$ECHO "X${3}" \
7251 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7252 *) func_stripname_result=`$ECHO "X${3}" \
7253 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7254 esac
7255 }
7256
7257 # sed scripts:
7258 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7259 my_sed_long_arg='1s/^-[[^=]]*=//'
7260
7261 # func_opt_split
7262 func_opt_split ()
7263 {
7264 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7265 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7266 }
7267
7268 # func_lo2o object
7269 func_lo2o ()
7270 {
7271 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7272 }
7273
7274 # func_xform libobj-or-source
7275 func_xform ()
7276 {
7277 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7278 }
7279
7280 # func_arith arithmetic-term...
7281 func_arith ()
7282 {
7283 func_arith_result=`expr "$[@]"`
7284 }
7285
7286 # func_len string
7287 # STRING may not start with a hyphen.
7288 func_len ()
7289 {
7290 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7291 }
7292
7293 _LT_EOF
7294 esac
7295
7296 case $lt_shell_append in
7297 yes)
7298 cat << \_LT_EOF >> "$cfgfile"
7299
7300 # func_append var value
7301 # Append VALUE to the end of shell variable VAR.
7302 func_append ()
7303 {
7304 eval "$[1]+=\$[2]"
7305 }
7306 _LT_EOF
7307 ;;
7308 *)
7309 cat << \_LT_EOF >> "$cfgfile"
7310
7311 # func_append var value
7312 # Append VALUE to the end of shell variable VAR.
7313 func_append ()
7314 {
7315 eval "$[1]=\$$[1]\$[2]"
7316 }
7317
7318 _LT_EOF
7319 ;;
7320 esac
7321 ])
7322
7323 # Helper functions for option handling. -*- Autoconf -*-
7324 #
7325 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7326 # Written by Gary V. Vaughan, 2004
7327 #
7328 # This file is free software; the Free Software Foundation gives
7329 # unlimited permission to copy and/or distribute it, with or without
7330 # modifications, as long as this notice is preserved.
7331
7332 # serial 6 ltoptions.m4
7333
7334 # This is to help aclocal find these macros, as it can't see m4_define.
7335 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7336
7337
7338 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7339 # ------------------------------------------
7340 m4_define([_LT_MANGLE_OPTION],
7341 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7342
7343
7344 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7345 # ---------------------------------------
7346 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7347 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
7348 # saved as a flag.
7349 m4_define([_LT_SET_OPTION],
7350 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7351 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7352 _LT_MANGLE_DEFUN([$1], [$2]),
7353 [m4_warning([Unknown $1 option `$2'])])[]dnl
7354 ])
7355
7356
7357 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7358 # ------------------------------------------------------------
7359 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7360 m4_define([_LT_IF_OPTION],
7361 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7362
7363
7364 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7365 # -------------------------------------------------------
7366 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7367 # are set.
7368 m4_define([_LT_UNLESS_OPTIONS],
7369 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7370 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7371 [m4_define([$0_found])])])[]dnl
7372 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7373 ])[]dnl
7374 ])
7375
7376
7377 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7378 # ----------------------------------------
7379 # OPTION-LIST is a space-separated list of Libtool options associated
7380 # with MACRO-NAME. If any OPTION has a matching handler declared with
7381 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7382 # the unknown option and exit.
7383 m4_defun([_LT_SET_OPTIONS],
7384 [# Set options
7385 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7386 [_LT_SET_OPTION([$1], _LT_Option)])
7387
7388 m4_if([$1],[LT_INIT],[
7389 dnl
7390 dnl Simply set some default values (i.e off) if boolean options were not
7391 dnl specified:
7392 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7393 ])
7394 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7395 ])
7396 dnl
7397 dnl If no reference was made to various pairs of opposing options, then
7398 dnl we run the default mode handler for the pair. For example, if neither
7399 dnl `shared' nor `disable-shared' was passed, we enable building of shared
7400 dnl archives by default:
7401 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7402 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7403 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7404 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7405 [_LT_ENABLE_FAST_INSTALL])
7406 ])
7407 ])# _LT_SET_OPTIONS
7408
7409
7410
7411 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7412 # -----------------------------------------
7413 m4_define([_LT_MANGLE_DEFUN],
7414 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7415
7416
7417 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7418 # -----------------------------------------------
7419 m4_define([LT_OPTION_DEFINE],
7420 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7421 ])# LT_OPTION_DEFINE
7422
7423
7424 # dlopen
7425 # ------
7426 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7427 ])
7428
7429 AU_DEFUN([AC_LIBTOOL_DLOPEN],
7430 [_LT_SET_OPTION([LT_INIT], [dlopen])
7431 AC_DIAGNOSE([obsolete],
7432 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7433 put the `dlopen' option into LT_INIT's first parameter.])
7434 ])
7435
7436 dnl aclocal-1.4 backwards compatibility:
7437 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7438
7439
7440 # win32-dll
7441 # ---------
7442 # Declare package support for building win32 dll's.
7443 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7444 [enable_win32_dll=yes
7445
7446 case $host in
7447 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7448 AC_CHECK_TOOL(AS, as, false)
7449 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7450 AC_CHECK_TOOL(OBJDUMP, objdump, false)
7451 ;;
7452 esac
7453
7454 test -z "$AS" && AS=as
7455 _LT_DECL([], [AS], [0], [Assembler program])dnl
7456
7457 test -z "$DLLTOOL" && DLLTOOL=dlltool
7458 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7459
7460 test -z "$OBJDUMP" && OBJDUMP=objdump
7461 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7462 ])# win32-dll
7463
7464 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7465 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7466 _LT_SET_OPTION([LT_INIT], [win32-dll])
7467 AC_DIAGNOSE([obsolete],
7468 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7469 put the `win32-dll' option into LT_INIT's first parameter.])
7470 ])
7471
7472 dnl aclocal-1.4 backwards compatibility:
7473 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7474
7475
7476 # _LT_ENABLE_SHARED([DEFAULT])
7477 # ----------------------------
7478 # implement the --enable-shared flag, and supports the `shared' and
7479 # `disable-shared' LT_INIT options.
7480 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7481 m4_define([_LT_ENABLE_SHARED],
7482 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7483 AC_ARG_ENABLE([shared],
7484 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7485 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7486 [p=${PACKAGE-default}
7487 case $enableval in
7488 yes) enable_shared=yes ;;
7489 no) enable_shared=no ;;
7490 *)
7491 enable_shared=no
7492 # Look at the argument we got. We use all the common list separators.
7493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7494 for pkg in $enableval; do
7495 IFS="$lt_save_ifs"
7496 if test "X$pkg" = "X$p"; then
7497 enable_shared=yes
7498 fi
7499 done
7500 IFS="$lt_save_ifs"
7501 ;;
7502 esac],
7503 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7504
7505 _LT_DECL([build_libtool_libs], [enable_shared], [0],
7506 [Whether or not to build shared libraries])
7507 ])# _LT_ENABLE_SHARED
7508
7509 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7510 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7511
7512 # Old names:
7513 AC_DEFUN([AC_ENABLE_SHARED],
7514 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7515 ])
7516
7517 AC_DEFUN([AC_DISABLE_SHARED],
7518 [_LT_SET_OPTION([LT_INIT], [disable-shared])
7519 ])
7520
7521 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7522 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7523
7524 dnl aclocal-1.4 backwards compatibility:
7525 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7526 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7527
7528
7529
7530 # _LT_ENABLE_STATIC([DEFAULT])
7531 # ----------------------------
7532 # implement the --enable-static flag, and support the `static' and
7533 # `disable-static' LT_INIT options.
7534 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7535 m4_define([_LT_ENABLE_STATIC],
7536 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7537 AC_ARG_ENABLE([static],
7538 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7539 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7540 [p=${PACKAGE-default}
7541 case $enableval in
7542 yes) enable_static=yes ;;
7543 no) enable_static=no ;;
7544 *)
7545 enable_static=no
7546 # Look at the argument we got. We use all the common list separators.
7547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7548 for pkg in $enableval; do
7549 IFS="$lt_save_ifs"
7550 if test "X$pkg" = "X$p"; then
7551 enable_static=yes
7552 fi
7553 done
7554 IFS="$lt_save_ifs"
7555 ;;
7556 esac],
7557 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7558
7559 _LT_DECL([build_old_libs], [enable_static], [0],
7560 [Whether or not to build static libraries])
7561 ])# _LT_ENABLE_STATIC
7562
7563 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7564 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7565
7566 # Old names:
7567 AC_DEFUN([AC_ENABLE_STATIC],
7568 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7569 ])
7570
7571 AC_DEFUN([AC_DISABLE_STATIC],
7572 [_LT_SET_OPTION([LT_INIT], [disable-static])
7573 ])
7574
7575 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7576 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7577
7578 dnl aclocal-1.4 backwards compatibility:
7579 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7580 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7581
7582
7583
7584 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
7585 # ----------------------------------
7586 # implement the --enable-fast-install flag, and support the `fast-install'
7587 # and `disable-fast-install' LT_INIT options.
7588 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7589 m4_define([_LT_ENABLE_FAST_INSTALL],
7590 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7591 AC_ARG_ENABLE([fast-install],
7592 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7593 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7594 [p=${PACKAGE-default}
7595 case $enableval in
7596 yes) enable_fast_install=yes ;;
7597 no) enable_fast_install=no ;;
7598 *)
7599 enable_fast_install=no
7600 # Look at the argument we got. We use all the common list separators.
7601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7602 for pkg in $enableval; do
7603 IFS="$lt_save_ifs"
7604 if test "X$pkg" = "X$p"; then
7605 enable_fast_install=yes
7606 fi
7607 done
7608 IFS="$lt_save_ifs"
7609 ;;
7610 esac],
7611 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7612
7613 _LT_DECL([fast_install], [enable_fast_install], [0],
7614 [Whether or not to optimize for fast installation])dnl
7615 ])# _LT_ENABLE_FAST_INSTALL
7616
7617 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7618 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7619
7620 # Old names:
7621 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7622 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7623 AC_DIAGNOSE([obsolete],
7624 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7625 the `fast-install' option into LT_INIT's first parameter.])
7626 ])
7627
7628 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7629 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7630 AC_DIAGNOSE([obsolete],
7631 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7632 the `disable-fast-install' option into LT_INIT's first parameter.])
7633 ])
7634
7635 dnl aclocal-1.4 backwards compatibility:
7636 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7637 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7638
7639
7640 # _LT_WITH_PIC([MODE])
7641 # --------------------
7642 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
7643 # LT_INIT options.
7644 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7645 m4_define([_LT_WITH_PIC],
7646 [AC_ARG_WITH([pic],
7647 [AS_HELP_STRING([--with-pic],
7648 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7649 [pic_mode="$withval"],
7650 [pic_mode=default])
7651
7652 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7653
7654 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7655 ])# _LT_WITH_PIC
7656
7657 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7658 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7659
7660 # Old name:
7661 AU_DEFUN([AC_LIBTOOL_PICMODE],
7662 [_LT_SET_OPTION([LT_INIT], [pic-only])
7663 AC_DIAGNOSE([obsolete],
7664 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7665 put the `pic-only' option into LT_INIT's first parameter.])
7666 ])
7667
7668 dnl aclocal-1.4 backwards compatibility:
7669 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7670
7671
7672 m4_define([_LTDL_MODE], [])
7673 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7674 [m4_define([_LTDL_MODE], [nonrecursive])])
7675 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7676 [m4_define([_LTDL_MODE], [recursive])])
7677 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7678 [m4_define([_LTDL_MODE], [subproject])])
7679
7680 m4_define([_LTDL_TYPE], [])
7681 LT_OPTION_DEFINE([LTDL_INIT], [installable],
7682 [m4_define([_LTDL_TYPE], [installable])])
7683 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7684 [m4_define([_LTDL_TYPE], [convenience])])
7685
7686 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7687 #
7688 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7689 # Written by Gary V. Vaughan, 2004
7690 #
7691 # This file is free software; the Free Software Foundation gives
7692 # unlimited permission to copy and/or distribute it, with or without
7693 # modifications, as long as this notice is preserved.
7694
7695 # serial 5 ltsugar.m4
7696
7697 # This is to help aclocal find these macros, as it can't see m4_define.
7698 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7699
7700
7701 # lt_join(SEP, ARG1, [ARG2...])
7702 # -----------------------------
7703 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7704 # associated separator.
7705 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7706 # versions in m4sugar had bugs.
7707 m4_define([lt_join],
7708 [m4_if([$#], [1], [],
7709 [$#], [2], [[$2]],
7710 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7711 m4_define([_lt_join],
7712 [m4_if([$#$2], [2], [],
7713 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7714
7715
7716 # lt_car(LIST)
7717 # lt_cdr(LIST)
7718 # ------------
7719 # Manipulate m4 lists.
7720 # These macros are necessary as long as will still need to support
7721 # Autoconf-2.59 which quotes differently.
7722 m4_define([lt_car], [[$1]])
7723 m4_define([lt_cdr],
7724 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7725 [$#], 1, [],
7726 [m4_dquote(m4_shift($@))])])
7727 m4_define([lt_unquote], $1)
7728
7729
7730 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
7731 # ------------------------------------------
7732 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7733 # Note that neither SEPARATOR nor STRING are expanded; they are appended
7734 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7735 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
7736 # than defined and empty).
7737 #
7738 # This macro is needed until we can rely on Autoconf 2.62, since earlier
7739 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7740 m4_define([lt_append],
7741 [m4_define([$1],
7742 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7743
7744
7745
7746 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7747 # ----------------------------------------------------------
7748 # Produce a SEP delimited list of all paired combinations of elements of
7749 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7750 # has the form PREFIXmINFIXSUFFIXn.
7751 m4_define([lt_combine],
7752 [m4_if([$2], [], [],
7753 [m4_if([$4], [], [],
7754 [lt_join(m4_quote(m4_default([$1], [[, ]])),
7755 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
7756 [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
7757 [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
7758 ])
7759
7760
7761 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7762 # -----------------------------------------------------------------------
7763 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7764 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7765 m4_define([lt_if_append_uniq],
7766 [m4_ifdef([$1],
7767 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7768 [lt_append([$1], [$2], [$3])$4],
7769 [$5])],
7770 [lt_append([$1], [$2], [$3])$4])])
7771
7772
7773 # lt_dict_add(DICT, KEY, VALUE)
7774 # -----------------------------
7775 m4_define([lt_dict_add],
7776 [m4_define([$1($2)], [$3])])
7777
7778
7779 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7780 # --------------------------------------------
7781 m4_define([lt_dict_add_subkey],
7782 [m4_define([$1($2:$3)], [$4])])
7783
7784
7785 # lt_dict_fetch(DICT, KEY, [SUBKEY])
7786 # ----------------------------------
7787 m4_define([lt_dict_fetch],
7788 [m4_ifval([$3],
7789 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7790 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7791
7792
7793 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7794 # -----------------------------------------------------------------
7795 m4_define([lt_if_dict_fetch],
7796 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7797 [$5],
7798 [$6])])
7799
7800
7801 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7802 # --------------------------------------------------------------
7803 m4_define([lt_dict_filter],
7804 [m4_if([$5], [], [],
7805 [lt_join(m4_quote(m4_default([$4], [[, ]])),
7806 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7807 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7808 ])
7809
7810 # ltversion.m4 -- version numbers -*- Autoconf -*-
7811 #
7812 # Copyright (C) 2004 Free Software Foundation, Inc.
7813 # Written by Scott James Remnant, 2004
7814 #
7815 # This file is free software; the Free Software Foundation gives
7816 # unlimited permission to copy and/or distribute it, with or without
7817 # modifications, as long as this notice is preserved.
7818
7819 # Generated from ltversion.in.
7820
7821 # serial 2976 ltversion.m4
7822 # This file is part of GNU Libtool
7823
7824 m4_define([LT_PACKAGE_VERSION], [2.2.4])
7825 m4_define([LT_PACKAGE_REVISION], [1.2976])
7826
7827 AC_DEFUN([LTVERSION_VERSION],
7828 [macro_version='2.2.4'
7829 macro_revision='1.2976'
7830 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7831 _LT_DECL(, macro_revision, 0)
7832 ])
7833
7834 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7835 #
7836 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7837 # Written by Scott James Remnant, 2004.
7838 #
7839 # This file is free software; the Free Software Foundation gives
7840 # unlimited permission to copy and/or distribute it, with or without
7841 # modifications, as long as this notice is preserved.
7842
7843 # serial 4 lt~obsolete.m4
7844
7845 # These exist entirely to fool aclocal when bootstrapping libtool.
7846 #
7847 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7848 # which have later been changed to m4_define as they aren't part of the
7849 # exported API, or moved to Autoconf or Automake where they belong.
7850 #
7851 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7852 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7853 # using a macro with the same name in our local m4/libtool.m4 it'll
7854 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7855 # and doesn't know about Autoconf macros at all.)
7856 #
7857 # So we provide this file, which has a silly filename so it's always
7858 # included after everything else. This provides aclocal with the
7859 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7860 # because those macros already exist, or will be overwritten later.
7861 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7862 #
7863 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7864 # Yes, that means every name once taken will need to remain here until
7865 # we give up compatibility with versions before 1.7, at which point
7866 # we need to keep only those names which we still refer to.
7867
7868 # This is to help aclocal find these macros, as it can't see m4_define.
7869 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7870
7871 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7872 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7873 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7874 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7875 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7876 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7877 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7878 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7879 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7880 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7881 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7882 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7883 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7884 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7885 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7886 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7887 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7888 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7889 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7890 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7891 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7892 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7893 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7894 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7895 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7896 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7897 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7898 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7899 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7900 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7901 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7902 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7903 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7904 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7905 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7906 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7907 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7908 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7909 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7910 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7911 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7912 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7913 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7914 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7915 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7916 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7917 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7918 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7919 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7920 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7921 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7922 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7923 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7924 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7925 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7926
7927 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7928 #
7929 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7930 #
7931 # This program is free software; you can redistribute it and/or modify
7932 # it under the terms of the GNU General Public License as published by
7933 # the Free Software Foundation; either version 2 of the License, or
7934 # (at your option) any later version.
7935 #
7936 # This program is distributed in the hope that it will be useful, but
7937 # WITHOUT ANY WARRANTY; without even the implied warranty of
7938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7939 # General Public License for more details.
7940 #
7941 # You should have received a copy of the GNU General Public License
7942 # along with this program; if not, write to the Free Software
7943 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7944 #
7945 # As a special exception to the GNU General Public License, if you
7946 # distribute this file as part of a program that contains a
7947 # configuration script generated by Autoconf, you may include it under
7948 # the same distribution terms that you use for the rest of that program.
7949
7950 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
7951 # ----------------------------------
7952 AC_DEFUN([PKG_PROG_PKG_CONFIG],
7953 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7954 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7955 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7956 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7957 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7958 fi
7959 if test -n "$PKG_CONFIG"; then
7960 _pkg_min_version=m4_default([$1], [0.9.0])
7961 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7962 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7963 AC_MSG_RESULT([yes])
7964 else
7965 AC_MSG_RESULT([no])
7966 PKG_CONFIG=""
7967 fi
7968
7969 fi[]dnl
7970 ])# PKG_PROG_PKG_CONFIG
7971
7972 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7973 #
7974 # Check to see whether a particular set of modules exists. Similar
7975 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
7976 #
7977 #
7978 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
7979 # this or PKG_CHECK_MODULES is called, or make sure to call
7980 # PKG_CHECK_EXISTS manually
7981 # --------------------------------------------------------------
7982 AC_DEFUN([PKG_CHECK_EXISTS],
7983 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7984 if test -n "$PKG_CONFIG" && \
7985 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7986 m4_ifval([$2], [$2], [:])
7987 m4_ifvaln([$3], [else
7988 $3])dnl
7989 fi])
7990
7991
7992 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7993 # ---------------------------------------------
7994 m4_define([_PKG_CONFIG],
7995 [if test -n "$PKG_CONFIG"; then
7996 if test -n "$$1"; then
7997 pkg_cv_[]$1="$$1"
7998 else
7999 PKG_CHECK_EXISTS([$3],
8000 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8001 [pkg_failed=yes])
8002 fi
8003 else
8004 pkg_failed=untried
8005 fi[]dnl
8006 ])# _PKG_CONFIG
8007
8008 # _PKG_SHORT_ERRORS_SUPPORTED
8009 # -----------------------------
8010 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8011 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8012 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8013 _pkg_short_errors_supported=yes
8014 else
8015 _pkg_short_errors_supported=no
8016 fi[]dnl
8017 ])# _PKG_SHORT_ERRORS_SUPPORTED
8018
8019
8020 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8021 # [ACTION-IF-NOT-FOUND])
8022 #
8023 #
8024 # Note that if there is a possibility the first call to
8025 # PKG_CHECK_MODULES might not happen, you should be sure to include an
8026 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8027 #
8028 #
8029 # --------------------------------------------------------------
8030 AC_DEFUN([PKG_CHECK_MODULES],
8031 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8032 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8033 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8034
8035 pkg_failed=no
8036 AC_MSG_CHECKING([for $1])
8037
8038 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8039 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
8040
8041 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8042 and $1[]_LIBS to avoid the need to call pkg-config.
8043 See the pkg-config man page for more details.])
8044
8045 if test $pkg_failed = yes; then
8046 _PKG_SHORT_ERRORS_SUPPORTED
8047 if test $_pkg_short_errors_supported = yes; then
8048 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
8049 else
8050 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
8051 fi
8052 # Put the nasty error message in config.log where it belongs
8053 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8054
8055 ifelse([$4], , [AC_MSG_ERROR(dnl
8056 [Package requirements ($2) were not met:
8057
8058 $$1_PKG_ERRORS
8059
8060 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8061 installed software in a non-standard prefix.
8062
8063 _PKG_TEXT
8064 ])],
8065 [AC_MSG_RESULT([no])
8066 $4])
8067 elif test $pkg_failed = untried; then
8068 ifelse([$4], , [AC_MSG_FAILURE(dnl
8069 [The pkg-config script could not be found or is too old. Make sure it
8070 is in your PATH or set the PKG_CONFIG environment variable to the full
8071 path to pkg-config.
8072
8073 _PKG_TEXT
8074
8075 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
8076 [$4])
8077 else
8078 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8079 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8080 AC_MSG_RESULT([yes])
8081 ifelse([$3], , :, [$3])
8082 fi[]dnl
8083 ])# PKG_CHECK_MODULES
8084
8085 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
8086 #
8087 # This file is free software; the Free Software Foundation
8088 # gives unlimited permission to copy and/or distribute it,
8089 # with or without modifications, as long as this notice is preserved.
8090
8091 # AM_AUTOMAKE_VERSION(VERSION)
8092 # ----------------------------
8093 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8094 # generated from the m4 files accompanying Automake X.Y.
8095 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
8096
8097 # AM_SET_CURRENT_AUTOMAKE_VERSION
8098 # -------------------------------
8099 # Call AM_AUTOMAKE_VERSION so it can be traced.
8100 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8101 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8102 [AM_AUTOMAKE_VERSION([1.9.6])])
8103
8104 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8105
8106 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8107 #
8108 # This file is free software; the Free Software Foundation
8109 # gives unlimited permission to copy and/or distribute it,
8110 # with or without modifications, as long as this notice is preserved.
8111
8112 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8113 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8114 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8115 #
8116 # Of course, Automake must honor this variable whenever it calls a
8117 # tool from the auxiliary directory. The problem is that $srcdir (and
8118 # therefore $ac_aux_dir as well) can be either absolute or relative,
8119 # depending on how configure is run. This is pretty annoying, since
8120 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8121 # source directory, any form will work fine, but in subdirectories a
8122 # relative path needs to be adjusted first.
8123 #
8124 # $ac_aux_dir/missing
8125 # fails when called from a subdirectory if $ac_aux_dir is relative
8126 # $top_srcdir/$ac_aux_dir/missing
8127 # fails if $ac_aux_dir is absolute,
8128 # fails when called from a subdirectory in a VPATH build with
8129 # a relative $ac_aux_dir
8130 #
8131 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8132 # are both prefixed by $srcdir. In an in-source build this is usually
8133 # harmless because $srcdir is `.', but things will broke when you
8134 # start a VPATH build or use an absolute $srcdir.
8135 #
8136 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8137 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8138 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8139 # and then we would define $MISSING as
8140 # MISSING="\${SHELL} $am_aux_dir/missing"
8141 # This will work as long as MISSING is not called from configure, because
8142 # unfortunately $(top_srcdir) has no meaning in configure.
8143 # However there are other variables, like CC, which are often used in
8144 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8145 #
8146 # Another solution, used here, is to always expand $ac_aux_dir to an
8147 # absolute PATH. The drawback is that using absolute paths prevent a
8148 # configured tree to be moved without reconfiguration.
8149
8150 AC_DEFUN([AM_AUX_DIR_EXPAND],
8151 [dnl Rely on autoconf to set up CDPATH properly.
8152 AC_PREREQ([2.50])dnl
8153 # expand $ac_aux_dir to an absolute path
8154 am_aux_dir=`cd $ac_aux_dir && pwd`
8155 ])
8156
8157 # AM_CONDITIONAL -*- Autoconf -*-
8158
8159 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
8160 # Free Software Foundation, Inc.
8161 #
8162 # This file is free software; the Free Software Foundation
8163 # gives unlimited permission to copy and/or distribute it,
8164 # with or without modifications, as long as this notice is preserved.
8165
8166 # serial 7
8167
8168 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8169 # -------------------------------------
8170 # Define a conditional.
8171 AC_DEFUN([AM_CONDITIONAL],
8172 [AC_PREREQ(2.52)dnl
8173 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8174 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8175 AC_SUBST([$1_TRUE])
8176 AC_SUBST([$1_FALSE])
8177 if $2; then
8178 $1_TRUE=
8179 $1_FALSE='#'
8180 else
8181 $1_TRUE='#'
8182 $1_FALSE=
8183 fi
8184 AC_CONFIG_COMMANDS_PRE(
8185 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8186 AC_MSG_ERROR([[conditional "$1" was never defined.
8187 Usually this means the macro was only invoked conditionally.]])
8188 fi])])
8189
8190
8191 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8192 # Free Software Foundation, Inc.
8193 #
8194 # This file is free software; the Free Software Foundation
8195 # gives unlimited permission to copy and/or distribute it,
8196 # with or without modifications, as long as this notice is preserved.
8197
8198 # serial 8
8199
8200 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8201 # written in clear, in which case automake, when reading aclocal.m4,
8202 # will think it sees a *use*, and therefore will trigger all it's
8203 # C support machinery. Also note that it means that autoscan, seeing
8204 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8205
8206
8207 # _AM_DEPENDENCIES(NAME)
8208 # ----------------------
8209 # See how the compiler implements dependency checking.
8210 # NAME is "CC", "CXX", "GCJ", or "OBJC".
8211 # We try a few techniques and use that to set a single cache variable.
8212 #
8213 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8214 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8215 # dependency, and given that the user is not expected to run this macro,
8216 # just rely on AC_PROG_CC.
8217 AC_DEFUN([_AM_DEPENDENCIES],
8218 [AC_REQUIRE([AM_SET_DEPDIR])dnl
8219 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8220 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8221 AC_REQUIRE([AM_DEP_TRACK])dnl
8222
8223 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8224 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8225 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8226 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8227 [depcc="$$1" am_compiler_list=])
8228
8229 AC_CACHE_CHECK([dependency style of $depcc],
8230 [am_cv_$1_dependencies_compiler_type],
8231 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8232 # We make a subdir and do the tests there. Otherwise we can end up
8233 # making bogus files that we don't know about and never remove. For
8234 # instance it was reported that on HP-UX the gcc test will end up
8235 # making a dummy file named `D' -- because `-MD' means `put the output
8236 # in D'.
8237 mkdir conftest.dir
8238 # Copy depcomp to subdir because otherwise we won't find it if we're
8239 # using a relative directory.
8240 cp "$am_depcomp" conftest.dir
8241 cd conftest.dir
8242 # We will build objects and dependencies in a subdirectory because
8243 # it helps to detect inapplicable dependency modes. For instance
8244 # both Tru64's cc and ICC support -MD to output dependencies as a
8245 # side effect of compilation, but ICC will put the dependencies in
8246 # the current directory while Tru64 will put them in the object
8247 # directory.
8248 mkdir sub
8249
8250 am_cv_$1_dependencies_compiler_type=none
8251 if test "$am_compiler_list" = ""; then
8252 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8253 fi
8254 for depmode in $am_compiler_list; do
8255 # Setup a source with many dependencies, because some compilers
8256 # like to wrap large dependency lists on column 80 (with \), and
8257 # we should not choose a depcomp mode which is confused by this.
8258 #
8259 # We need to recreate these files for each test, as the compiler may
8260 # overwrite some of them when testing with obscure command lines.
8261 # This happens at least with the AIX C compiler.
8262 : > sub/conftest.c
8263 for i in 1 2 3 4 5 6; do
8264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8266 # Solaris 8's {/usr,}/bin/sh.
8267 touch sub/conftst$i.h
8268 done
8269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8270
8271 case $depmode in
8272 nosideeffect)
8273 # after this tag, mechanisms are not by side-effect, so they'll
8274 # only be used when explicitly requested
8275 if test "x$enable_dependency_tracking" = xyes; then
8276 continue
8277 else
8278 break
8279 fi
8280 ;;
8281 none) break ;;
8282 esac
8283 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8284 # mode. It turns out that the SunPro C++ compiler does not properly
8285 # handle `-M -o', and we need to detect this.
8286 if depmode=$depmode \
8287 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8289 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8290 >/dev/null 2>conftest.err &&
8291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8292 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8294 # icc doesn't choke on unknown options, it will just issue warnings
8295 # or remarks (even with -Werror). So we grep stderr for any message
8296 # that says an option was ignored or not supported.
8297 # When given -MP, icc 7.0 and 7.1 complain thusly:
8298 # icc: Command line warning: ignoring option '-M'; no argument required
8299 # The diagnosis changed in icc 8.0:
8300 # icc: Command line remark: option '-MP' not supported
8301 if (grep 'ignoring option' conftest.err ||
8302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8303 am_cv_$1_dependencies_compiler_type=$depmode
8304 break
8305 fi
8306 fi
8307 done
8308
8309 cd ..
8310 rm -rf conftest.dir
8311 else
8312 am_cv_$1_dependencies_compiler_type=none
8313 fi
8314 ])
8315 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8316 AM_CONDITIONAL([am__fastdep$1], [
8317 test "x$enable_dependency_tracking" != xno \
8318 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8319 ])
8320
8321
8322 # AM_SET_DEPDIR
8323 # -------------
8324 # Choose a directory name for dependency files.
8325 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
8326 AC_DEFUN([AM_SET_DEPDIR],
8327 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8328 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8329 ])
8330
8331
8332 # AM_DEP_TRACK
8333 # ------------
8334 AC_DEFUN([AM_DEP_TRACK],
8335 [AC_ARG_ENABLE(dependency-tracking,
8336 [ --disable-dependency-tracking speeds up one-time build
8337 --enable-dependency-tracking do not reject slow dependency extractors])
8338 if test "x$enable_dependency_tracking" != xno; then
8339 am_depcomp="$ac_aux_dir/depcomp"
8340 AMDEPBACKSLASH='\'
8341 fi
8342 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8343 AC_SUBST([AMDEPBACKSLASH])
8344 ])
8345
8346 # Generate code to set up dependency tracking. -*- Autoconf -*-
8347
8348 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8349 # Free Software Foundation, Inc.
8350 #
8351 # This file is free software; the Free Software Foundation
8352 # gives unlimited permission to copy and/or distribute it,
8353 # with or without modifications, as long as this notice is preserved.
8354
8355 #serial 3
8356
8357 # _AM_OUTPUT_DEPENDENCY_COMMANDS
8358 # ------------------------------
8359 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8360 [for mf in $CONFIG_FILES; do
8361 # Strip MF so we end up with the name of the file.
8362 mf=`echo "$mf" | sed -e 's/:.*$//'`
8363 # Check whether this is an Automake generated Makefile or not.
8364 # We used to match only the files named `Makefile.in', but
8365 # some people rename them; so instead we look at the file content.
8366 # Grep'ing the first line is not enough: some people post-process
8367 # each Makefile.in and add a new line on top of each file to say so.
8368 # So let's grep whole file.
8369 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8370 dirpart=`AS_DIRNAME("$mf")`
8371 else
8372 continue
8373 fi
8374 # Extract the definition of DEPDIR, am__include, and am__quote
8375 # from the Makefile without running `make'.
8376 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8377 test -z "$DEPDIR" && continue
8378 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8379 test -z "am__include" && continue
8380 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8381 # When using ansi2knr, U may be empty or an underscore; expand it
8382 U=`sed -n 's/^U = //p' < "$mf"`
8383 # Find all dependency output files, they are included files with
8384 # $(DEPDIR) in their names. We invoke sed twice because it is the
8385 # simplest approach to changing $(DEPDIR) to its actual value in the
8386 # expansion.
8387 for file in `sed -n "
8388 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8389 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8390 # Make sure the directory exists.
8391 test -f "$dirpart/$file" && continue
8392 fdir=`AS_DIRNAME(["$file"])`
8393 AS_MKDIR_P([$dirpart/$fdir])
8394 # echo "creating $dirpart/$file"
8395 echo '# dummy' > "$dirpart/$file"
8396 done
8397 done
8398 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8399
8400
8401 # AM_OUTPUT_DEPENDENCY_COMMANDS
8402 # -----------------------------
8403 # This macro should only be invoked once -- use via AC_REQUIRE.
8404 #
8405 # This code is only required when automatic dependency tracking
8406 # is enabled. FIXME. This creates each `.P' file that we will
8407 # need in order to bootstrap the dependency handling code.
8408 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
8409 [AC_CONFIG_COMMANDS([depfiles],
8410 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
8411 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
8412 ])
8413
8414 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8415 # Free Software Foundation, Inc.
8416 #
8417 # This file is free software; the Free Software Foundation
8418 # gives unlimited permission to copy and/or distribute it,
8419 # with or without modifications, as long as this notice is preserved.
8420
8421 # serial 8
8422
8423 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
8424 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
8425
8426 # Do all the work for Automake. -*- Autoconf -*-
8427
8428 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8429 # Free Software Foundation, Inc.
8430 #
8431 # This file is free software; the Free Software Foundation
8432 # gives unlimited permission to copy and/or distribute it,
8433 # with or without modifications, as long as this notice is preserved.
8434
8435 # serial 12
8436
8437 # This macro actually does too much. Some checks are only needed if
8438 # your package does certain things. But this isn't really a big deal.
8439
8440 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
8441 # AM_INIT_AUTOMAKE([OPTIONS])
8442 # -----------------------------------------------
8443 # The call with PACKAGE and VERSION arguments is the old style
8444 # call (pre autoconf-2.50), which is being phased out. PACKAGE
8445 # and VERSION should now be passed to AC_INIT and removed from
8446 # the call to AM_INIT_AUTOMAKE.
8447 # We support both call styles for the transition. After
8448 # the next Automake release, Autoconf can make the AC_INIT
8449 # arguments mandatory, and then we can depend on a new Autoconf
8450 # release and drop the old call support.
8451 AC_DEFUN([AM_INIT_AUTOMAKE],
8452 [AC_PREREQ([2.58])dnl
8453 dnl Autoconf wants to disallow AM_ names. We explicitly allow
8454 dnl the ones we care about.
8455 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8456 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
8457 AC_REQUIRE([AC_PROG_INSTALL])dnl
8458 # test to see if srcdir already configured
8459 if test "`cd $srcdir && pwd`" != "`pwd`" &&
8460 test -f $srcdir/config.status; then
8461 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8462 fi
8463
8464 # test whether we have cygpath
8465 if test -z "$CYGPATH_W"; then
8466 if (cygpath --version) >/dev/null 2>/dev/null; then
8467 CYGPATH_W='cygpath -w'
8468 else
8469 CYGPATH_W=echo
8470 fi
8471 fi
8472 AC_SUBST([CYGPATH_W])
8473
8474 # Define the identity of the package.
8475 dnl Distinguish between old-style and new-style calls.
8476 m4_ifval([$2],
8477 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
8478 AC_SUBST([PACKAGE], [$1])dnl
8479 AC_SUBST([VERSION], [$2])],
8480 [_AM_SET_OPTIONS([$1])dnl
8481 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
8482 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
8483
8484 _AM_IF_OPTION([no-define],,
8485 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
8486 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
8487
8488 # Some tools Automake needs.
8489 AC_REQUIRE([AM_SANITY_CHECK])dnl
8490 AC_REQUIRE([AC_ARG_PROGRAM])dnl
8491 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
8492 AM_MISSING_PROG(AUTOCONF, autoconf)
8493 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
8494 AM_MISSING_PROG(AUTOHEADER, autoheader)
8495 AM_MISSING_PROG(MAKEINFO, makeinfo)
8496 AM_PROG_INSTALL_SH
8497 AM_PROG_INSTALL_STRIP
8498 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
8499 # We need awk for the "check" target. The system "awk" is bad on
8500 # some platforms.
8501 AC_REQUIRE([AC_PROG_AWK])dnl
8502 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
8503 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8504 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
8505 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
8506 [_AM_PROG_TAR([v7])])])
8507 _AM_IF_OPTION([no-dependencies],,
8508 [AC_PROVIDE_IFELSE([AC_PROG_CC],
8509 [_AM_DEPENDENCIES(CC)],
8510 [define([AC_PROG_CC],
8511 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
8512 AC_PROVIDE_IFELSE([AC_PROG_CXX],
8513 [_AM_DEPENDENCIES(CXX)],
8514 [define([AC_PROG_CXX],
8515 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8516 ])
8517 ])
8518
8519
8520 # When config.status generates a header, we must update the stamp-h file.
8521 # This file resides in the same directory as the config header
8522 # that is generated. The stamp files are numbered to have different names.
8523
8524 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
8525 # loop where config.status creates the headers, so we can generate
8526 # our stamp files there.
8527 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
8528 [# Compute $1's index in $config_headers.
8529 _am_stamp_count=1
8530 for _am_header in $config_headers :; do
8531 case $_am_header in
8532 $1 | $1:* )
8533 break ;;
8534 * )
8535 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8536 esac
8537 done
8538 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
8539
8540 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8541 #
8542 # This file is free software; the Free Software Foundation
8543 # gives unlimited permission to copy and/or distribute it,
8544 # with or without modifications, as long as this notice is preserved.
8545
8546 # AM_PROG_INSTALL_SH
8547 # ------------------
8548 # Define $install_sh.
8549 AC_DEFUN([AM_PROG_INSTALL_SH],
8550 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8551 install_sh=${install_sh-"$am_aux_dir/install-sh"}
8552 AC_SUBST(install_sh)])
8553
8554 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
8555 #
8556 # This file is free software; the Free Software Foundation
8557 # gives unlimited permission to copy and/or distribute it,
8558 # with or without modifications, as long as this notice is preserved.
8559
8560 # serial 2
8561
8562 # Check whether the underlying file-system supports filenames
8563 # with a leading dot. For instance MS-DOS doesn't.
8564 AC_DEFUN([AM_SET_LEADING_DOT],
8565 [rm -rf .tst 2>/dev/null
8566 mkdir .tst 2>/dev/null
8567 if test -d .tst; then
8568 am__leading_dot=.
8569 else
8570 am__leading_dot=_
8571 fi
8572 rmdir .tst 2>/dev/null
8573 AC_SUBST([am__leading_dot])])
8574
8575 # Check to see how 'make' treats includes. -*- Autoconf -*-
8576
8577 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8578 #
8579 # This file is free software; the Free Software Foundation
8580 # gives unlimited permission to copy and/or distribute it,
8581 # with or without modifications, as long as this notice is preserved.
8582
8583 # serial 3
8584
8585 # AM_MAKE_INCLUDE()
8586 # -----------------
8587 # Check to see how make treats includes.
8588 AC_DEFUN([AM_MAKE_INCLUDE],
8589 [am_make=${MAKE-make}
8590 cat > confinc << 'END'
8591 am__doit:
8592 @echo done
8593 .PHONY: am__doit
8594 END
8595 # If we don't find an include directive, just comment out the code.
8596 AC_MSG_CHECKING([for style of include used by $am_make])
8597 am__include="#"
8598 am__quote=
8599 _am_result=none
8600 # First try GNU make style include.
8601 echo "include confinc" > confmf
8602 # We grep out `Entering directory' and `Leaving directory'
8603 # messages which can occur if `w' ends up in MAKEFLAGS.
8604 # In particular we don't look at `^make:' because GNU make might
8605 # be invoked under some other name (usually "gmake"), in which
8606 # case it prints its new name instead of `make'.
8607 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8608 am__include=include
8609 am__quote=
8610 _am_result=GNU
8611 fi
8612 # Now try BSD make style include.
8613 if test "$am__include" = "#"; then
8614 echo '.include "confinc"' > confmf
8615 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8616 am__include=.include
8617 am__quote="\""
8618 _am_result=BSD
8619 fi
8620 fi
8621 AC_SUBST([am__include])
8622 AC_SUBST([am__quote])
8623 AC_MSG_RESULT([$_am_result])
8624 rm -f confinc confmf
8625 ])
8626
8627 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8628
8629 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
8630 # Free Software Foundation, Inc.
8631 #
8632 # This file is free software; the Free Software Foundation
8633 # gives unlimited permission to copy and/or distribute it,
8634 # with or without modifications, as long as this notice is preserved.
8635
8636 # serial 4
8637
8638 # AM_MISSING_PROG(NAME, PROGRAM)
8639 # ------------------------------
8640 AC_DEFUN([AM_MISSING_PROG],
8641 [AC_REQUIRE([AM_MISSING_HAS_RUN])
8642 $1=${$1-"${am_missing_run}$2"}
8643 AC_SUBST($1)])
8644
8645
8646 # AM_MISSING_HAS_RUN
8647 # ------------------
8648 # Define MISSING if not defined so far and test if it supports --run.
8649 # If it does, set am_missing_run to use it, otherwise, to nothing.
8650 AC_DEFUN([AM_MISSING_HAS_RUN],
8651 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8652 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8653 # Use eval to expand $SHELL
8654 if eval "$MISSING --run true"; then
8655 am_missing_run="$MISSING --run "
8656 else
8657 am_missing_run=
8658 AC_MSG_WARN([`missing' script is too old or missing])
8659 fi
8660 ])
8661
8662 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
8663 #
8664 # This file is free software; the Free Software Foundation
8665 # gives unlimited permission to copy and/or distribute it,
8666 # with or without modifications, as long as this notice is preserved.
8667
8668 # AM_PROG_MKDIR_P
8669 # ---------------
8670 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
8671 #
8672 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
8673 # created by `make install' are always world readable, even if the
8674 # installer happens to have an overly restrictive umask (e.g. 077).
8675 # This was a mistake. There are at least two reasons why we must not
8676 # use `-m 0755':
8677 # - it causes special bits like SGID to be ignored,
8678 # - it may be too restrictive (some setups expect 775 directories).
8679 #
8680 # Do not use -m 0755 and let people choose whatever they expect by
8681 # setting umask.
8682 #
8683 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
8684 # Some implementations (such as Solaris 8's) are not thread-safe: if a
8685 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
8686 # concurrently, both version can detect that a/ is missing, but only
8687 # one can create it and the other will error out. Consequently we
8688 # restrict ourselves to GNU make (using the --version option ensures
8689 # this.)
8690 AC_DEFUN([AM_PROG_MKDIR_P],
8691 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8692 # We used to keeping the `.' as first argument, in order to
8693 # allow $(mkdir_p) to be used without argument. As in
8694 # $(mkdir_p) $(somedir)
8695 # where $(somedir) is conditionally defined. However this is wrong
8696 # for two reasons:
8697 # 1. if the package is installed by a user who cannot write `.'
8698 # make install will fail,
8699 # 2. the above comment should most certainly read
8700 # $(mkdir_p) $(DESTDIR)$(somedir)
8701 # so it does not work when $(somedir) is undefined and
8702 # $(DESTDIR) is not.
8703 # To support the latter case, we have to write
8704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8705 # so the `.' trick is pointless.
8706 mkdir_p='mkdir -p --'
8707 else
8708 # On NextStep and OpenStep, the `mkdir' command does not
8709 # recognize any option. It will interpret all options as
8710 # directories to create, and then abort because `.' already
8711 # exists.
8712 for d in ./-p ./--version;
8713 do
8714 test -d $d && rmdir $d
8715 done
8716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8717 if test -f "$ac_aux_dir/mkinstalldirs"; then
8718 mkdir_p='$(mkinstalldirs)'
8719 else
8720 mkdir_p='$(install_sh) -d'
8721 fi
8722 fi
8723 AC_SUBST([mkdir_p])])
8724
8725 # Helper functions for option handling. -*- Autoconf -*-
8726
8727 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8728 #
8729 # This file is free software; the Free Software Foundation
8730 # gives unlimited permission to copy and/or distribute it,
8731 # with or without modifications, as long as this notice is preserved.
8732
8733 # serial 3
8734
8735 # _AM_MANGLE_OPTION(NAME)
8736 # -----------------------
8737 AC_DEFUN([_AM_MANGLE_OPTION],
8738 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8739
8740 # _AM_SET_OPTION(NAME)
8741 # ------------------------------
8742 # Set option NAME. Presently that only means defining a flag for this option.
8743 AC_DEFUN([_AM_SET_OPTION],
8744 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8745
8746 # _AM_SET_OPTIONS(OPTIONS)
8747 # ----------------------------------
8748 # OPTIONS is a space-separated list of Automake options.
8749 AC_DEFUN([_AM_SET_OPTIONS],
8750 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8751
8752 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8753 # -------------------------------------------
8754 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8755 AC_DEFUN([_AM_IF_OPTION],
8756 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8757
8758 # Check to make sure that the build environment is sane. -*- Autoconf -*-
8759
8760 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8761 # Free Software Foundation, Inc.
8762 #
8763 # This file is free software; the Free Software Foundation
8764 # gives unlimited permission to copy and/or distribute it,
8765 # with or without modifications, as long as this notice is preserved.
8766
8767 # serial 4
8768
8769 # AM_SANITY_CHECK
8770 # ---------------
8771 AC_DEFUN([AM_SANITY_CHECK],
8772 [AC_MSG_CHECKING([whether build environment is sane])
8773 # Just in case
8774 sleep 1
8775 echo timestamp > conftest.file
8776 # Do `set' in a subshell so we don't clobber the current shell's
8777 # arguments. Must try -L first in case configure is actually a
8778 # symlink; some systems play weird games with the mod time of symlinks
8779 # (eg FreeBSD returns the mod time of the symlink's containing
8780 # directory).
8781 if (
8782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8783 if test "$[*]" = "X"; then
8784 # -L didn't work.
8785 set X `ls -t $srcdir/configure conftest.file`
8786 fi
8787 rm -f conftest.file
8788 if test "$[*]" != "X $srcdir/configure conftest.file" \
8789 && test "$[*]" != "X conftest.file $srcdir/configure"; then
8790
8791 # If neither matched, then we have a broken ls. This can happen
8792 # if, for instance, CONFIG_SHELL is bash and it inherits a
8793 # broken ls alias from the environment. This has actually
8794 # happened. Such a system could not be considered "sane".
8795 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8796 alias in your environment])
8797 fi
8798
8799 test "$[2]" = conftest.file
8800 )
8801 then
8802 # Ok.
8803 :
8804 else
8805 AC_MSG_ERROR([newly created file is older than distributed files!
8806 Check your system clock])
8807 fi
8808 AC_MSG_RESULT(yes)])
8809
8810 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8811 #
8812 # This file is free software; the Free Software Foundation
8813 # gives unlimited permission to copy and/or distribute it,
8814 # with or without modifications, as long as this notice is preserved.
8815
8816 # AM_PROG_INSTALL_STRIP
8817 # ---------------------
8818 # One issue with vendor `install' (even GNU) is that you can't
8819 # specify the program used to strip binaries. This is especially
8820 # annoying in cross-compiling environments, where the build's strip
8821 # is unlikely to handle the host's binaries.
8822 # Fortunately install-sh will honor a STRIPPROG variable, so we
8823 # always use install-sh in `make install-strip', and initialize
8824 # STRIPPROG with the value of the STRIP variable (set by the user).
8825 AC_DEFUN([AM_PROG_INSTALL_STRIP],
8826 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8827 # Installed binaries are usually stripped using `strip' when the user
8828 # run `make install-strip'. However `strip' might not be the right
8829 # tool to use in cross-compilation environments, therefore Automake
8830 # will honor the `STRIP' environment variable to overrule this program.
8831 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8832 if test "$cross_compiling" != no; then
8833 AC_CHECK_TOOL([STRIP], [strip], :)
8834 fi
8835 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8836 AC_SUBST([INSTALL_STRIP_PROGRAM])])
8837
8838 # Check how to create a tarball. -*- Autoconf -*-
8839
8840 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8841 #
8842 # This file is free software; the Free Software Foundation
8843 # gives unlimited permission to copy and/or distribute it,
8844 # with or without modifications, as long as this notice is preserved.
8845
8846 # serial 2
8847
8848 # _AM_PROG_TAR(FORMAT)
8849 # --------------------
8850 # Check how to create a tarball in format FORMAT.
8851 # FORMAT should be one of `v7', `ustar', or `pax'.
8852 #
8853 # Substitute a variable $(am__tar) that is a command
8854 # writing to stdout a FORMAT-tarball containing the directory
8855 # $tardir.
8856 # tardir=directory && $(am__tar) > result.tar
8857 #
8858 # Substitute a variable $(am__untar) that extract such
8859 # a tarball read from stdin.
8860 # $(am__untar) < result.tar
8861 AC_DEFUN([_AM_PROG_TAR],
8862 [# Always define AMTAR for backward compatibility.
8863 AM_MISSING_PROG([AMTAR], [tar])
8864 m4_if([$1], [v7],
8865 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8866 [m4_case([$1], [ustar],, [pax],,
8867 [m4_fatal([Unknown tar format])])
8868 AC_MSG_CHECKING([how to create a $1 tar archive])
8869 # Loop over all known methods to create a tar archive until one works.
8870 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8871 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
8872 # Do not fold the above two line into one, because Tru64 sh and
8873 # Solaris sh will not grok spaces in the rhs of `-'.
8874 for _am_tool in $_am_tools
8875 do
8876 case $_am_tool in
8877 gnutar)
8878 for _am_tar in tar gnutar gtar;
8879 do
8880 AM_RUN_LOG([$_am_tar --version]) && break
8881 done
8882 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8883 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8884 am__untar="$_am_tar -xf -"
8885 ;;
8886 plaintar)
8887 # Must skip GNU tar: if it does not support --format= it doesn't create
8888 # ustar tarball either.
8889 (tar --version) >/dev/null 2>&1 && continue
8890 am__tar='tar chf - "$$tardir"'
8891 am__tar_='tar chf - "$tardir"'
8892 am__untar='tar xf -'
8893 ;;
8894 pax)
8895 am__tar='pax -L -x $1 -w "$$tardir"'
8896 am__tar_='pax -L -x $1 -w "$tardir"'
8897 am__untar='pax -r'
8898 ;;
8899 cpio)
8900 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8901 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8902 am__untar='cpio -i -H $1 -d'
8903 ;;
8904 none)
8905 am__tar=false
8906 am__tar_=false
8907 am__untar=false
8908 ;;
8909 esac
8910
8911 # If the value was cached, stop now. We just wanted to have am__tar
8912 # and am__untar set.
8913 test -n "${am_cv_prog_tar_$1}" && break
8914
8915 # tar/untar a dummy directory, and stop if the command works
8916 rm -rf conftest.dir
8917 mkdir conftest.dir
8918 echo GrepMe > conftest.dir/file
8919 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8920 rm -rf conftest.dir
8921 if test -s conftest.tar; then
8922 AM_RUN_LOG([$am__untar <conftest.tar])
8923 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8924 fi
8925 done
8926 rm -rf conftest.dir
8927
8928 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8929 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8930 AC_SUBST([am__tar])
8931 AC_SUBST([am__untar])
8932 ]) # _AM_PROG_TAR
8933
+0
-3
autogen.sh less more
0 #!/bin/sh
1 autoreconf -i
2 ./configure "$@"
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, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-01-23'
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,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 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.*:* | i86xen: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:*:[456])
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 IA64)
802 echo ia64-unknown-interix${UNAME_RELEASE}
803 exit ;;
804 esac ;;
805 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
806 echo i${UNAME_MACHINE}-pc-mks
807 exit ;;
808 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
809 # How do we know it's Interix rather than the generic POSIX subsystem?
810 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
811 # UNAME_MACHINE based on the output of uname instead of i386?
812 echo i586-pc-interix
813 exit ;;
814 i*:UWIN*:*)
815 echo ${UNAME_MACHINE}-pc-uwin
816 exit ;;
817 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
818 echo x86_64-unknown-cygwin
819 exit ;;
820 p*:CYGWIN*:*)
821 echo powerpcle-unknown-cygwin
822 exit ;;
823 prep*:SunOS:5.*:*)
824 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
825 exit ;;
826 *:GNU:*:*)
827 # the GNU system
828 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
829 exit ;;
830 *:GNU/*:*:*)
831 # other systems with GNU libc and userland
832 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
833 exit ;;
834 i*86:Minix:*:*)
835 echo ${UNAME_MACHINE}-pc-minix
836 exit ;;
837 arm*:Linux:*:*)
838 eval $set_cc_for_build
839 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
840 | grep -q __ARM_EABI__
841 then
842 echo ${UNAME_MACHINE}-unknown-linux-gnu
843 else
844 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
845 fi
846 exit ;;
847 avr32*:Linux:*:*)
848 echo ${UNAME_MACHINE}-unknown-linux-gnu
849 exit ;;
850 cris:Linux:*:*)
851 echo cris-axis-linux-gnu
852 exit ;;
853 crisv32:Linux:*:*)
854 echo crisv32-axis-linux-gnu
855 exit ;;
856 frv:Linux:*:*)
857 echo frv-unknown-linux-gnu
858 exit ;;
859 ia64:Linux:*:*)
860 echo ${UNAME_MACHINE}-unknown-linux-gnu
861 exit ;;
862 m32r*:Linux:*:*)
863 echo ${UNAME_MACHINE}-unknown-linux-gnu
864 exit ;;
865 m68*:Linux:*:*)
866 echo ${UNAME_MACHINE}-unknown-linux-gnu
867 exit ;;
868 mips:Linux:*:*)
869 eval $set_cc_for_build
870 sed 's/^ //' << EOF >$dummy.c
871 #undef CPU
872 #undef mips
873 #undef mipsel
874 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
875 CPU=mipsel
876 #else
877 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
878 CPU=mips
879 #else
880 CPU=
881 #endif
882 #endif
883 EOF
884 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
885 /^CPU/{
886 s: ::g
887 p
888 }'`"
889 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
890 ;;
891 mips64:Linux:*:*)
892 eval $set_cc_for_build
893 sed 's/^ //' << EOF >$dummy.c
894 #undef CPU
895 #undef mips64
896 #undef mips64el
897 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
898 CPU=mips64el
899 #else
900 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
901 CPU=mips64
902 #else
903 CPU=
904 #endif
905 #endif
906 EOF
907 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
908 /^CPU/{
909 s: ::g
910 p
911 }'`"
912 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
913 ;;
914 or32:Linux:*:*)
915 echo or32-unknown-linux-gnu
916 exit ;;
917 ppc:Linux:*:*)
918 echo powerpc-unknown-linux-gnu
919 exit ;;
920 ppc64:Linux:*:*)
921 echo powerpc64-unknown-linux-gnu
922 exit ;;
923 alpha:Linux:*:*)
924 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
925 EV5) UNAME_MACHINE=alphaev5 ;;
926 EV56) UNAME_MACHINE=alphaev56 ;;
927 PCA56) UNAME_MACHINE=alphapca56 ;;
928 PCA57) UNAME_MACHINE=alphapca56 ;;
929 EV6) UNAME_MACHINE=alphaev6 ;;
930 EV67) UNAME_MACHINE=alphaev67 ;;
931 EV68*) UNAME_MACHINE=alphaev68 ;;
932 esac
933 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
934 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
935 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
936 exit ;;
937 parisc:Linux:*:* | hppa:Linux:*:*)
938 # Look for CPU level
939 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
940 PA7*) echo hppa1.1-unknown-linux-gnu ;;
941 PA8*) echo hppa2.0-unknown-linux-gnu ;;
942 *) echo hppa-unknown-linux-gnu ;;
943 esac
944 exit ;;
945 parisc64:Linux:*:* | hppa64:Linux:*:*)
946 echo hppa64-unknown-linux-gnu
947 exit ;;
948 s390:Linux:*:* | s390x:Linux:*:*)
949 echo ${UNAME_MACHINE}-ibm-linux
950 exit ;;
951 sh64*:Linux:*:*)
952 echo ${UNAME_MACHINE}-unknown-linux-gnu
953 exit ;;
954 sh*:Linux:*:*)
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
956 exit ;;
957 sparc:Linux:*:* | sparc64:Linux:*:*)
958 echo ${UNAME_MACHINE}-unknown-linux-gnu
959 exit ;;
960 vax:Linux:*:*)
961 echo ${UNAME_MACHINE}-dec-linux-gnu
962 exit ;;
963 x86_64:Linux:*:*)
964 echo x86_64-unknown-linux-gnu
965 exit ;;
966 xtensa*:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 exit ;;
969 i*86:Linux:*:*)
970 # The BFD linker knows what the default object file format is, so
971 # first see if it will tell us. cd to the root directory to prevent
972 # problems with other programs or directories called `ld' in the path.
973 # Set LC_ALL=C to ensure ld outputs messages in English.
974 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
975 | sed -ne '/supported targets:/!d
976 s/[ ][ ]*/ /g
977 s/.*supported targets: *//
978 s/ .*//
979 p'`
980 case "$ld_supported_targets" in
981 elf32-i386)
982 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
983 ;;
984 a.out-i386-linux)
985 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
986 exit ;;
987 coff-i386)
988 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
989 exit ;;
990 "")
991 # Either a pre-BFD a.out linker (linux-gnuoldld) or
992 # one that does not give us useful --help.
993 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
994 exit ;;
995 esac
996 # Determine whether the default compiler is a.out or elf
997 eval $set_cc_for_build
998 sed 's/^ //' << EOF >$dummy.c
999 #include <features.h>
1000 #ifdef __ELF__
1001 # ifdef __GLIBC__
1002 # if __GLIBC__ >= 2
1003 LIBC=gnu
1004 # else
1005 LIBC=gnulibc1
1006 # endif
1007 # else
1008 LIBC=gnulibc1
1009 # endif
1010 #else
1011 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1012 LIBC=gnu
1013 #else
1014 LIBC=gnuaout
1015 #endif
1016 #endif
1017 #ifdef __dietlibc__
1018 LIBC=dietlibc
1019 #endif
1020 EOF
1021 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1022 /^LIBC/{
1023 s: ::g
1024 p
1025 }'`"
1026 test x"${LIBC}" != x && {
1027 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1028 exit
1029 }
1030 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1031 ;;
1032 i*86:DYNIX/ptx:4*:*)
1033 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1034 # earlier versions are messed up and put the nodename in both
1035 # sysname and nodename.
1036 echo i386-sequent-sysv4
1037 exit ;;
1038 i*86:UNIX_SV:4.2MP:2.*)
1039 # Unixware is an offshoot of SVR4, but it has its own version
1040 # number series starting with 2...
1041 # I am not positive that other SVR4 systems won't match this,
1042 # I just have to hope. -- rms.
1043 # Use sysv4.2uw... so that sysv4* matches it.
1044 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1045 exit ;;
1046 i*86:OS/2:*:*)
1047 # If we were able to find `uname', then EMX Unix compatibility
1048 # is probably installed.
1049 echo ${UNAME_MACHINE}-pc-os2-emx
1050 exit ;;
1051 i*86:XTS-300:*:STOP)
1052 echo ${UNAME_MACHINE}-unknown-stop
1053 exit ;;
1054 i*86:atheos:*:*)
1055 echo ${UNAME_MACHINE}-unknown-atheos
1056 exit ;;
1057 i*86:syllable:*:*)
1058 echo ${UNAME_MACHINE}-pc-syllable
1059 exit ;;
1060 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1061 echo i386-unknown-lynxos${UNAME_RELEASE}
1062 exit ;;
1063 i*86:*DOS:*:*)
1064 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1065 exit ;;
1066 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1067 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1068 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1069 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1070 else
1071 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1072 fi
1073 exit ;;
1074 i*86:*:5:[678]*)
1075 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1076 case `/bin/uname -X | grep "^Machine"` in
1077 *486*) UNAME_MACHINE=i486 ;;
1078 *Pentium) UNAME_MACHINE=i586 ;;
1079 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1080 esac
1081 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1082 exit ;;
1083 i*86:*:3.2:*)
1084 if test -f /usr/options/cb.name; then
1085 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1086 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1087 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1088 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1089 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1090 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1091 && UNAME_MACHINE=i586
1092 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1093 && UNAME_MACHINE=i686
1094 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1095 && UNAME_MACHINE=i686
1096 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1097 else
1098 echo ${UNAME_MACHINE}-pc-sysv32
1099 fi
1100 exit ;;
1101 pc:*:*:*)
1102 # Left here for compatibility:
1103 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1104 # the processor, so we play safe by assuming i386.
1105 echo i386-pc-msdosdjgpp
1106 exit ;;
1107 Intel:Mach:3*:*)
1108 echo i386-pc-mach3
1109 exit ;;
1110 paragon:*:*:*)
1111 echo i860-intel-osf1
1112 exit ;;
1113 i860:*:4.*:*) # i860-SVR4
1114 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1115 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1116 else # Add other i860-SVR4 vendors below as they are discovered.
1117 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1118 fi
1119 exit ;;
1120 mini*:CTIX:SYS*5:*)
1121 # "miniframe"
1122 echo m68010-convergent-sysv
1123 exit ;;
1124 mc68k:UNIX:SYSTEM5:3.51m)
1125 echo m68k-convergent-sysv
1126 exit ;;
1127 M680?0:D-NIX:5.3:*)
1128 echo m68k-diab-dnix
1129 exit ;;
1130 M68*:*:R3V[5678]*:*)
1131 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1132 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)
1133 OS_REL=''
1134 test -r /etc/.relid \
1135 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1136 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1137 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1138 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1139 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1140 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1141 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1142 && { echo i486-ncr-sysv4; exit; } ;;
1143 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1144 echo m68k-unknown-lynxos${UNAME_RELEASE}
1145 exit ;;
1146 mc68030:UNIX_System_V:4.*:*)
1147 echo m68k-atari-sysv4
1148 exit ;;
1149 TSUNAMI:LynxOS:2.*:*)
1150 echo sparc-unknown-lynxos${UNAME_RELEASE}
1151 exit ;;
1152 rs6000:LynxOS:2.*:*)
1153 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1154 exit ;;
1155 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1156 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1157 exit ;;
1158 SM[BE]S:UNIX_SV:*:*)
1159 echo mips-dde-sysv${UNAME_RELEASE}
1160 exit ;;
1161 RM*:ReliantUNIX-*:*:*)
1162 echo mips-sni-sysv4
1163 exit ;;
1164 RM*:SINIX-*:*:*)
1165 echo mips-sni-sysv4
1166 exit ;;
1167 *:SINIX-*:*:*)
1168 if uname -p 2>/dev/null >/dev/null ; then
1169 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1170 echo ${UNAME_MACHINE}-sni-sysv4
1171 else
1172 echo ns32k-sni-sysv
1173 fi
1174 exit ;;
1175 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1176 # says <Richard.M.Bartel@ccMail.Census.GOV>
1177 echo i586-unisys-sysv4
1178 exit ;;
1179 *:UNIX_System_V:4*:FTX*)
1180 # From Gerald Hewes <hewes@openmarket.com>.
1181 # How about differentiating between stratus architectures? -djm
1182 echo hppa1.1-stratus-sysv4
1183 exit ;;
1184 *:*:*:FTX*)
1185 # From seanf@swdc.stratus.com.
1186 echo i860-stratus-sysv4
1187 exit ;;
1188 i*86:VOS:*:*)
1189 # From Paul.Green@stratus.com.
1190 echo ${UNAME_MACHINE}-stratus-vos
1191 exit ;;
1192 *:VOS:*:*)
1193 # From Paul.Green@stratus.com.
1194 echo hppa1.1-stratus-vos
1195 exit ;;
1196 mc68*:A/UX:*:*)
1197 echo m68k-apple-aux${UNAME_RELEASE}
1198 exit ;;
1199 news*:NEWS-OS:6*:*)
1200 echo mips-sony-newsos6
1201 exit ;;
1202 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1203 if [ -d /usr/nec ]; then
1204 echo mips-nec-sysv${UNAME_RELEASE}
1205 else
1206 echo mips-unknown-sysv${UNAME_RELEASE}
1207 fi
1208 exit ;;
1209 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1210 echo powerpc-be-beos
1211 exit ;;
1212 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1213 echo powerpc-apple-beos
1214 exit ;;
1215 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1216 echo i586-pc-beos
1217 exit ;;
1218 SX-4:SUPER-UX:*:*)
1219 echo sx4-nec-superux${UNAME_RELEASE}
1220 exit ;;
1221 SX-5:SUPER-UX:*:*)
1222 echo sx5-nec-superux${UNAME_RELEASE}
1223 exit ;;
1224 SX-6:SUPER-UX:*:*)
1225 echo sx6-nec-superux${UNAME_RELEASE}
1226 exit ;;
1227 SX-7:SUPER-UX:*:*)
1228 echo sx7-nec-superux${UNAME_RELEASE}
1229 exit ;;
1230 SX-8:SUPER-UX:*:*)
1231 echo sx8-nec-superux${UNAME_RELEASE}
1232 exit ;;
1233 SX-8R:SUPER-UX:*:*)
1234 echo sx8r-nec-superux${UNAME_RELEASE}
1235 exit ;;
1236 Power*:Rhapsody:*:*)
1237 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1238 exit ;;
1239 *:Rhapsody:*:*)
1240 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1241 exit ;;
1242 *:Darwin:*:*)
1243 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1244 case $UNAME_PROCESSOR in
1245 unknown) UNAME_PROCESSOR=powerpc ;;
1246 esac
1247 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1248 exit ;;
1249 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1250 UNAME_PROCESSOR=`uname -p`
1251 if test "$UNAME_PROCESSOR" = "x86"; then
1252 UNAME_PROCESSOR=i386
1253 UNAME_MACHINE=pc
1254 fi
1255 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1256 exit ;;
1257 *:QNX:*:4*)
1258 echo i386-pc-qnx
1259 exit ;;
1260 NSE-?:NONSTOP_KERNEL:*:*)
1261 echo nse-tandem-nsk${UNAME_RELEASE}
1262 exit ;;
1263 NSR-?:NONSTOP_KERNEL:*:*)
1264 echo nsr-tandem-nsk${UNAME_RELEASE}
1265 exit ;;
1266 *:NonStop-UX:*:*)
1267 echo mips-compaq-nonstopux
1268 exit ;;
1269 BS2000:POSIX*:*:*)
1270 echo bs2000-siemens-sysv
1271 exit ;;
1272 DS/*:UNIX_System_V:*:*)
1273 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1274 exit ;;
1275 *:Plan9:*:*)
1276 # "uname -m" is not consistent, so use $cputype instead. 386
1277 # is converted to i386 for consistency with other x86
1278 # operating systems.
1279 if test "$cputype" = "386"; then
1280 UNAME_MACHINE=i386
1281 else
1282 UNAME_MACHINE="$cputype"
1283 fi
1284 echo ${UNAME_MACHINE}-unknown-plan9
1285 exit ;;
1286 *:TOPS-10:*:*)
1287 echo pdp10-unknown-tops10
1288 exit ;;
1289 *:TENEX:*:*)
1290 echo pdp10-unknown-tenex
1291 exit ;;
1292 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1293 echo pdp10-dec-tops20
1294 exit ;;
1295 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1296 echo pdp10-xkl-tops20
1297 exit ;;
1298 *:TOPS-20:*:*)
1299 echo pdp10-unknown-tops20
1300 exit ;;
1301 *:ITS:*:*)
1302 echo pdp10-unknown-its
1303 exit ;;
1304 SEI:*:*:SEIUX)
1305 echo mips-sei-seiux${UNAME_RELEASE}
1306 exit ;;
1307 *:DragonFly:*:*)
1308 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1309 exit ;;
1310 *:*VMS:*:*)
1311 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1312 case "${UNAME_MACHINE}" in
1313 A*) echo alpha-dec-vms ; exit ;;
1314 I*) echo ia64-dec-vms ; exit ;;
1315 V*) echo vax-dec-vms ; exit ;;
1316 esac ;;
1317 *:XENIX:*:SysV)
1318 echo i386-pc-xenix
1319 exit ;;
1320 i*86:skyos:*:*)
1321 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1322 exit ;;
1323 i*86:rdos:*:*)
1324 echo ${UNAME_MACHINE}-pc-rdos
1325 exit ;;
1326 esac
1327
1328 #echo '(No uname command or uname output not recognized.)' 1>&2
1329 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1330
1331 eval $set_cc_for_build
1332 cat >$dummy.c <<EOF
1333 #ifdef _SEQUENT_
1334 # include <sys/types.h>
1335 # include <sys/utsname.h>
1336 #endif
1337 main ()
1338 {
1339 #if defined (sony)
1340 #if defined (MIPSEB)
1341 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1342 I don't know.... */
1343 printf ("mips-sony-bsd\n"); exit (0);
1344 #else
1345 #include <sys/param.h>
1346 printf ("m68k-sony-newsos%s\n",
1347 #ifdef NEWSOS4
1348 "4"
1349 #else
1350 ""
1351 #endif
1352 ); exit (0);
1353 #endif
1354 #endif
1355
1356 #if defined (__arm) && defined (__acorn) && defined (__unix)
1357 printf ("arm-acorn-riscix\n"); exit (0);
1358 #endif
1359
1360 #if defined (hp300) && !defined (hpux)
1361 printf ("m68k-hp-bsd\n"); exit (0);
1362 #endif
1363
1364 #if defined (NeXT)
1365 #if !defined (__ARCHITECTURE__)
1366 #define __ARCHITECTURE__ "m68k"
1367 #endif
1368 int version;
1369 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1370 if (version < 4)
1371 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1372 else
1373 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1374 exit (0);
1375 #endif
1376
1377 #if defined (MULTIMAX) || defined (n16)
1378 #if defined (UMAXV)
1379 printf ("ns32k-encore-sysv\n"); exit (0);
1380 #else
1381 #if defined (CMU)
1382 printf ("ns32k-encore-mach\n"); exit (0);
1383 #else
1384 printf ("ns32k-encore-bsd\n"); exit (0);
1385 #endif
1386 #endif
1387 #endif
1388
1389 #if defined (__386BSD__)
1390 printf ("i386-pc-bsd\n"); exit (0);
1391 #endif
1392
1393 #if defined (sequent)
1394 #if defined (i386)
1395 printf ("i386-sequent-dynix\n"); exit (0);
1396 #endif
1397 #if defined (ns32000)
1398 printf ("ns32k-sequent-dynix\n"); exit (0);
1399 #endif
1400 #endif
1401
1402 #if defined (_SEQUENT_)
1403 struct utsname un;
1404
1405 uname(&un);
1406
1407 if (strncmp(un.version, "V2", 2) == 0) {
1408 printf ("i386-sequent-ptx2\n"); exit (0);
1409 }
1410 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1411 printf ("i386-sequent-ptx1\n"); exit (0);
1412 }
1413 printf ("i386-sequent-ptx\n"); exit (0);
1414
1415 #endif
1416
1417 #if defined (vax)
1418 # if !defined (ultrix)
1419 # include <sys/param.h>
1420 # if defined (BSD)
1421 # if BSD == 43
1422 printf ("vax-dec-bsd4.3\n"); exit (0);
1423 # else
1424 # if BSD == 199006
1425 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1426 # else
1427 printf ("vax-dec-bsd\n"); exit (0);
1428 # endif
1429 # endif
1430 # else
1431 printf ("vax-dec-bsd\n"); exit (0);
1432 # endif
1433 # else
1434 printf ("vax-dec-ultrix\n"); exit (0);
1435 # endif
1436 #endif
1437
1438 #if defined (alliant) && defined (i860)
1439 printf ("i860-alliant-bsd\n"); exit (0);
1440 #endif
1441
1442 exit (1);
1443 }
1444 EOF
1445
1446 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1447 { echo "$SYSTEM_NAME"; exit; }
1448
1449 # Apollos put the system type in the environment.
1450
1451 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1452
1453 # Convex versions that predate uname can use getsysinfo(1)
1454
1455 if [ -x /usr/convex/getsysinfo ]
1456 then
1457 case `getsysinfo -f cpu_type` in
1458 c1*)
1459 echo c1-convex-bsd
1460 exit ;;
1461 c2*)
1462 if getsysinfo -f scalar_acc
1463 then echo c32-convex-bsd
1464 else echo c2-convex-bsd
1465 fi
1466 exit ;;
1467 c34*)
1468 echo c34-convex-bsd
1469 exit ;;
1470 c38*)
1471 echo c38-convex-bsd
1472 exit ;;
1473 c4*)
1474 echo c4-convex-bsd
1475 exit ;;
1476 esac
1477 fi
1478
1479 cat >&2 <<EOF
1480 $0: unable to guess system type
1481
1482 This script, last modified $timestamp, has failed to recognize
1483 the operating system you are using. It is advised that you
1484 download the most up to date version of the config scripts from
1485
1486 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1487 and
1488 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1489
1490 If the version you run ($0) is already up to date, please
1491 send the following data and any information you think might be
1492 pertinent to <config-patches@gnu.org> in order to provide the needed
1493 information to handle your system.
1494
1495 config.guess timestamp = $timestamp
1496
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1504
1505 hostinfo = `(hostinfo) 2>/dev/null`
1506 /bin/universe = `(/bin/universe) 2>/dev/null`
1507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1508 /bin/arch = `(/bin/arch) 2>/dev/null`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1510 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1511
1512 UNAME_MACHINE = ${UNAME_MACHINE}
1513 UNAME_RELEASE = ${UNAME_RELEASE}
1514 UNAME_SYSTEM = ${UNAME_SYSTEM}
1515 UNAME_VERSION = ${UNAME_VERSION}
1516 EOF
1517
1518 exit 1
1519
1520 # Local variables:
1521 # eval: (add-hook 'write-file-hooks 'time-stamp)
1522 # time-stamp-start: "timestamp='"
1523 # time-stamp-format: "%:y-%02m-%02d"
1524 # time-stamp-end: "'"
1525 # 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 the sub-directory in which libtool stores uninstalled libraries.
33 */
34 #undef LT_OBJDIR
35
36 /* Name of package */
37 #undef PACKAGE
38
39 /* Define to the address where bug reports for this package should be sent. */
40 #undef PACKAGE_BUGREPORT
41
42 /* Define to the full name of this package. */
43 #undef PACKAGE_NAME
44
45 /* Define to the full name and version of this package. */
46 #undef PACKAGE_STRING
47
48 /* Define to the one symbol short name of this package. */
49 #undef PACKAGE_TARNAME
50
51 /* Define to the version of this package. */
52 #undef PACKAGE_VERSION
53
54 /* Define to 1 if you have the ANSI C header files. */
55 #undef STDC_HEADERS
56
57 /* Version number of package */
58 #undef VERSION
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, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-01-16'
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,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 basic CPU types without company name, with glob match.
376 xtensa*)
377 basic_machine=$basic_machine-unknown
378 ;;
379 # Recognize the various machine names and aliases which stand
380 # for a CPU type and a company and sometimes even an OS.
381 386bsd)
382 basic_machine=i386-unknown
383 os=-bsd
384 ;;
385 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
386 basic_machine=m68000-att
387 ;;
388 3b*)
389 basic_machine=we32k-att
390 ;;
391 a29khif)
392 basic_machine=a29k-amd
393 os=-udi
394 ;;
395 abacus)
396 basic_machine=abacus-unknown
397 ;;
398 adobe68k)
399 basic_machine=m68010-adobe
400 os=-scout
401 ;;
402 alliant | fx80)
403 basic_machine=fx80-alliant
404 ;;
405 altos | altos3068)
406 basic_machine=m68k-altos
407 ;;
408 am29k)
409 basic_machine=a29k-none
410 os=-bsd
411 ;;
412 amd64)
413 basic_machine=x86_64-pc
414 ;;
415 amd64-*)
416 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
417 ;;
418 amdahl)
419 basic_machine=580-amdahl
420 os=-sysv
421 ;;
422 amiga | amiga-*)
423 basic_machine=m68k-unknown
424 ;;
425 amigaos | amigados)
426 basic_machine=m68k-unknown
427 os=-amigaos
428 ;;
429 amigaunix | amix)
430 basic_machine=m68k-unknown
431 os=-sysv4
432 ;;
433 apollo68)
434 basic_machine=m68k-apollo
435 os=-sysv
436 ;;
437 apollo68bsd)
438 basic_machine=m68k-apollo
439 os=-bsd
440 ;;
441 aux)
442 basic_machine=m68k-apple
443 os=-aux
444 ;;
445 balance)
446 basic_machine=ns32k-sequent
447 os=-dynix
448 ;;
449 blackfin)
450 basic_machine=bfin-unknown
451 os=-linux
452 ;;
453 blackfin-*)
454 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
455 os=-linux
456 ;;
457 c90)
458 basic_machine=c90-cray
459 os=-unicos
460 ;;
461 convex-c1)
462 basic_machine=c1-convex
463 os=-bsd
464 ;;
465 convex-c2)
466 basic_machine=c2-convex
467 os=-bsd
468 ;;
469 convex-c32)
470 basic_machine=c32-convex
471 os=-bsd
472 ;;
473 convex-c34)
474 basic_machine=c34-convex
475 os=-bsd
476 ;;
477 convex-c38)
478 basic_machine=c38-convex
479 os=-bsd
480 ;;
481 cray | j90)
482 basic_machine=j90-cray
483 os=-unicos
484 ;;
485 craynv)
486 basic_machine=craynv-cray
487 os=-unicosmp
488 ;;
489 cr16)
490 basic_machine=cr16-unknown
491 os=-elf
492 ;;
493 crds | unos)
494 basic_machine=m68k-crds
495 ;;
496 crisv32 | crisv32-* | etraxfs*)
497 basic_machine=crisv32-axis
498 ;;
499 cris | cris-* | etrax*)
500 basic_machine=cris-axis
501 ;;
502 crx)
503 basic_machine=crx-unknown
504 os=-elf
505 ;;
506 da30 | da30-*)
507 basic_machine=m68k-da30
508 ;;
509 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
510 basic_machine=mips-dec
511 ;;
512 decsystem10* | dec10*)
513 basic_machine=pdp10-dec
514 os=-tops10
515 ;;
516 decsystem20* | dec20*)
517 basic_machine=pdp10-dec
518 os=-tops20
519 ;;
520 delta | 3300 | motorola-3300 | motorola-delta \
521 | 3300-motorola | delta-motorola)
522 basic_machine=m68k-motorola
523 ;;
524 delta88)
525 basic_machine=m88k-motorola
526 os=-sysv3
527 ;;
528 djgpp)
529 basic_machine=i586-pc
530 os=-msdosdjgpp
531 ;;
532 dpx20 | dpx20-*)
533 basic_machine=rs6000-bull
534 os=-bosx
535 ;;
536 dpx2* | dpx2*-bull)
537 basic_machine=m68k-bull
538 os=-sysv3
539 ;;
540 ebmon29k)
541 basic_machine=a29k-amd
542 os=-ebmon
543 ;;
544 elxsi)
545 basic_machine=elxsi-elxsi
546 os=-bsd
547 ;;
548 encore | umax | mmax)
549 basic_machine=ns32k-encore
550 ;;
551 es1800 | OSE68k | ose68k | ose | OSE)
552 basic_machine=m68k-ericsson
553 os=-ose
554 ;;
555 fx2800)
556 basic_machine=i860-alliant
557 ;;
558 genix)
559 basic_machine=ns32k-ns
560 ;;
561 gmicro)
562 basic_machine=tron-gmicro
563 os=-sysv
564 ;;
565 go32)
566 basic_machine=i386-pc
567 os=-go32
568 ;;
569 h3050r* | hiux*)
570 basic_machine=hppa1.1-hitachi
571 os=-hiuxwe2
572 ;;
573 h8300hms)
574 basic_machine=h8300-hitachi
575 os=-hms
576 ;;
577 h8300xray)
578 basic_machine=h8300-hitachi
579 os=-xray
580 ;;
581 h8500hms)
582 basic_machine=h8500-hitachi
583 os=-hms
584 ;;
585 harris)
586 basic_machine=m88k-harris
587 os=-sysv3
588 ;;
589 hp300-*)
590 basic_machine=m68k-hp
591 ;;
592 hp300bsd)
593 basic_machine=m68k-hp
594 os=-bsd
595 ;;
596 hp300hpux)
597 basic_machine=m68k-hp
598 os=-hpux
599 ;;
600 hp3k9[0-9][0-9] | hp9[0-9][0-9])
601 basic_machine=hppa1.0-hp
602 ;;
603 hp9k2[0-9][0-9] | hp9k31[0-9])
604 basic_machine=m68000-hp
605 ;;
606 hp9k3[2-9][0-9])
607 basic_machine=m68k-hp
608 ;;
609 hp9k6[0-9][0-9] | hp6[0-9][0-9])
610 basic_machine=hppa1.0-hp
611 ;;
612 hp9k7[0-79][0-9] | hp7[0-79][0-9])
613 basic_machine=hppa1.1-hp
614 ;;
615 hp9k78[0-9] | hp78[0-9])
616 # FIXME: really hppa2.0-hp
617 basic_machine=hppa1.1-hp
618 ;;
619 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
620 # FIXME: really hppa2.0-hp
621 basic_machine=hppa1.1-hp
622 ;;
623 hp9k8[0-9][13679] | hp8[0-9][13679])
624 basic_machine=hppa1.1-hp
625 ;;
626 hp9k8[0-9][0-9] | hp8[0-9][0-9])
627 basic_machine=hppa1.0-hp
628 ;;
629 hppa-next)
630 os=-nextstep3
631 ;;
632 hppaosf)
633 basic_machine=hppa1.1-hp
634 os=-osf
635 ;;
636 hppro)
637 basic_machine=hppa1.1-hp
638 os=-proelf
639 ;;
640 i370-ibm* | ibm*)
641 basic_machine=i370-ibm
642 ;;
643 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
644 i*86v32)
645 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
646 os=-sysv32
647 ;;
648 i*86v4*)
649 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
650 os=-sysv4
651 ;;
652 i*86v)
653 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
654 os=-sysv
655 ;;
656 i*86sol2)
657 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
658 os=-solaris2
659 ;;
660 i386mach)
661 basic_machine=i386-mach
662 os=-mach
663 ;;
664 i386-vsta | vsta)
665 basic_machine=i386-unknown
666 os=-vsta
667 ;;
668 iris | iris4d)
669 basic_machine=mips-sgi
670 case $os in
671 -irix*)
672 ;;
673 *)
674 os=-irix4
675 ;;
676 esac
677 ;;
678 isi68 | isi)
679 basic_machine=m68k-isi
680 os=-sysv
681 ;;
682 m68knommu)
683 basic_machine=m68k-unknown
684 os=-linux
685 ;;
686 m68knommu-*)
687 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
688 os=-linux
689 ;;
690 m88k-omron*)
691 basic_machine=m88k-omron
692 ;;
693 magnum | m3230)
694 basic_machine=mips-mips
695 os=-sysv
696 ;;
697 merlin)
698 basic_machine=ns32k-utek
699 os=-sysv
700 ;;
701 mingw32)
702 basic_machine=i386-pc
703 os=-mingw32
704 ;;
705 mingw32ce)
706 basic_machine=arm-unknown
707 os=-mingw32ce
708 ;;
709 miniframe)
710 basic_machine=m68000-convergent
711 ;;
712 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
713 basic_machine=m68k-atari
714 os=-mint
715 ;;
716 mips3*-*)
717 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
718 ;;
719 mips3*)
720 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
721 ;;
722 monitor)
723 basic_machine=m68k-rom68k
724 os=-coff
725 ;;
726 morphos)
727 basic_machine=powerpc-unknown
728 os=-morphos
729 ;;
730 msdos)
731 basic_machine=i386-pc
732 os=-msdos
733 ;;
734 ms1-*)
735 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
736 ;;
737 mvs)
738 basic_machine=i370-ibm
739 os=-mvs
740 ;;
741 ncr3000)
742 basic_machine=i486-ncr
743 os=-sysv4
744 ;;
745 netbsd386)
746 basic_machine=i386-unknown
747 os=-netbsd
748 ;;
749 netwinder)
750 basic_machine=armv4l-rebel
751 os=-linux
752 ;;
753 news | news700 | news800 | news900)
754 basic_machine=m68k-sony
755 os=-newsos
756 ;;
757 news1000)
758 basic_machine=m68030-sony
759 os=-newsos
760 ;;
761 news-3600 | risc-news)
762 basic_machine=mips-sony
763 os=-newsos
764 ;;
765 necv70)
766 basic_machine=v70-nec
767 os=-sysv
768 ;;
769 next | m*-next )
770 basic_machine=m68k-next
771 case $os in
772 -nextstep* )
773 ;;
774 -ns2*)
775 os=-nextstep2
776 ;;
777 *)
778 os=-nextstep3
779 ;;
780 esac
781 ;;
782 nh3000)
783 basic_machine=m68k-harris
784 os=-cxux
785 ;;
786 nh[45]000)
787 basic_machine=m88k-harris
788 os=-cxux
789 ;;
790 nindy960)
791 basic_machine=i960-intel
792 os=-nindy
793 ;;
794 mon960)
795 basic_machine=i960-intel
796 os=-mon960
797 ;;
798 nonstopux)
799 basic_machine=mips-compaq
800 os=-nonstopux
801 ;;
802 np1)
803 basic_machine=np1-gould
804 ;;
805 nsr-tandem)
806 basic_machine=nsr-tandem
807 ;;
808 op50n-* | op60c-*)
809 basic_machine=hppa1.1-oki
810 os=-proelf
811 ;;
812 openrisc | openrisc-*)
813 basic_machine=or32-unknown
814 ;;
815 os400)
816 basic_machine=powerpc-ibm
817 os=-os400
818 ;;
819 OSE68000 | ose68000)
820 basic_machine=m68000-ericsson
821 os=-ose
822 ;;
823 os68k)
824 basic_machine=m68k-none
825 os=-os68k
826 ;;
827 pa-hitachi)
828 basic_machine=hppa1.1-hitachi
829 os=-hiuxwe2
830 ;;
831 paragon)
832 basic_machine=i860-intel
833 os=-osf
834 ;;
835 parisc)
836 basic_machine=hppa-unknown
837 os=-linux
838 ;;
839 parisc-*)
840 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
841 os=-linux
842 ;;
843 pbd)
844 basic_machine=sparc-tti
845 ;;
846 pbb)
847 basic_machine=m68k-tti
848 ;;
849 pc532 | pc532-*)
850 basic_machine=ns32k-pc532
851 ;;
852 pc98)
853 basic_machine=i386-pc
854 ;;
855 pc98-*)
856 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
857 ;;
858 pentium | p5 | k5 | k6 | nexgen | viac3)
859 basic_machine=i586-pc
860 ;;
861 pentiumpro | p6 | 6x86 | athlon | athlon_*)
862 basic_machine=i686-pc
863 ;;
864 pentiumii | pentium2 | pentiumiii | pentium3)
865 basic_machine=i686-pc
866 ;;
867 pentium4)
868 basic_machine=i786-pc
869 ;;
870 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
871 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
872 ;;
873 pentiumpro-* | p6-* | 6x86-* | athlon-*)
874 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
875 ;;
876 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
877 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
878 ;;
879 pentium4-*)
880 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
881 ;;
882 pn)
883 basic_machine=pn-gould
884 ;;
885 power) basic_machine=power-ibm
886 ;;
887 ppc) basic_machine=powerpc-unknown
888 ;;
889 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
890 ;;
891 ppcle | powerpclittle | ppc-le | powerpc-little)
892 basic_machine=powerpcle-unknown
893 ;;
894 ppcle-* | powerpclittle-*)
895 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
896 ;;
897 ppc64) basic_machine=powerpc64-unknown
898 ;;
899 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
900 ;;
901 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
902 basic_machine=powerpc64le-unknown
903 ;;
904 ppc64le-* | powerpc64little-*)
905 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
906 ;;
907 ps2)
908 basic_machine=i386-ibm
909 ;;
910 pw32)
911 basic_machine=i586-unknown
912 os=-pw32
913 ;;
914 rdos)
915 basic_machine=i386-pc
916 os=-rdos
917 ;;
918 rom68k)
919 basic_machine=m68k-rom68k
920 os=-coff
921 ;;
922 rm[46]00)
923 basic_machine=mips-siemens
924 ;;
925 rtpc | rtpc-*)
926 basic_machine=romp-ibm
927 ;;
928 s390 | s390-*)
929 basic_machine=s390-ibm
930 ;;
931 s390x | s390x-*)
932 basic_machine=s390x-ibm
933 ;;
934 sa29200)
935 basic_machine=a29k-amd
936 os=-udi
937 ;;
938 sb1)
939 basic_machine=mipsisa64sb1-unknown
940 ;;
941 sb1el)
942 basic_machine=mipsisa64sb1el-unknown
943 ;;
944 sde)
945 basic_machine=mipsisa32-sde
946 os=-elf
947 ;;
948 sei)
949 basic_machine=mips-sei
950 os=-seiux
951 ;;
952 sequent)
953 basic_machine=i386-sequent
954 ;;
955 sh)
956 basic_machine=sh-hitachi
957 os=-hms
958 ;;
959 sh5el)
960 basic_machine=sh5le-unknown
961 ;;
962 sh64)
963 basic_machine=sh64-unknown
964 ;;
965 sparclite-wrs | simso-wrs)
966 basic_machine=sparclite-wrs
967 os=-vxworks
968 ;;
969 sps7)
970 basic_machine=m68k-bull
971 os=-sysv2
972 ;;
973 spur)
974 basic_machine=spur-unknown
975 ;;
976 st2000)
977 basic_machine=m68k-tandem
978 ;;
979 stratus)
980 basic_machine=i860-stratus
981 os=-sysv4
982 ;;
983 sun2)
984 basic_machine=m68000-sun
985 ;;
986 sun2os3)
987 basic_machine=m68000-sun
988 os=-sunos3
989 ;;
990 sun2os4)
991 basic_machine=m68000-sun
992 os=-sunos4
993 ;;
994 sun3os3)
995 basic_machine=m68k-sun
996 os=-sunos3
997 ;;
998 sun3os4)
999 basic_machine=m68k-sun
1000 os=-sunos4
1001 ;;
1002 sun4os3)
1003 basic_machine=sparc-sun
1004 os=-sunos3
1005 ;;
1006 sun4os4)
1007 basic_machine=sparc-sun
1008 os=-sunos4
1009 ;;
1010 sun4sol2)
1011 basic_machine=sparc-sun
1012 os=-solaris2
1013 ;;
1014 sun3 | sun3-*)
1015 basic_machine=m68k-sun
1016 ;;
1017 sun4)
1018 basic_machine=sparc-sun
1019 ;;
1020 sun386 | sun386i | roadrunner)
1021 basic_machine=i386-sun
1022 ;;
1023 sv1)
1024 basic_machine=sv1-cray
1025 os=-unicos
1026 ;;
1027 symmetry)
1028 basic_machine=i386-sequent
1029 os=-dynix
1030 ;;
1031 t3e)
1032 basic_machine=alphaev5-cray
1033 os=-unicos
1034 ;;
1035 t90)
1036 basic_machine=t90-cray
1037 os=-unicos
1038 ;;
1039 tic54x | c54x*)
1040 basic_machine=tic54x-unknown
1041 os=-coff
1042 ;;
1043 tic55x | c55x*)
1044 basic_machine=tic55x-unknown
1045 os=-coff
1046 ;;
1047 tic6x | c6x*)
1048 basic_machine=tic6x-unknown
1049 os=-coff
1050 ;;
1051 tile*)
1052 basic_machine=tile-unknown
1053 os=-linux-gnu
1054 ;;
1055 tx39)
1056 basic_machine=mipstx39-unknown
1057 ;;
1058 tx39el)
1059 basic_machine=mipstx39el-unknown
1060 ;;
1061 toad1)
1062 basic_machine=pdp10-xkl
1063 os=-tops20
1064 ;;
1065 tower | tower-32)
1066 basic_machine=m68k-ncr
1067 ;;
1068 tpf)
1069 basic_machine=s390x-ibm
1070 os=-tpf
1071 ;;
1072 udi29k)
1073 basic_machine=a29k-amd
1074 os=-udi
1075 ;;
1076 ultra3)
1077 basic_machine=a29k-nyu
1078 os=-sym1
1079 ;;
1080 v810 | necv810)
1081 basic_machine=v810-nec
1082 os=-none
1083 ;;
1084 vaxv)
1085 basic_machine=vax-dec
1086 os=-sysv
1087 ;;
1088 vms)
1089 basic_machine=vax-dec
1090 os=-vms
1091 ;;
1092 vpp*|vx|vx-*)
1093 basic_machine=f301-fujitsu
1094 ;;
1095 vxworks960)
1096 basic_machine=i960-wrs
1097 os=-vxworks
1098 ;;
1099 vxworks68)
1100 basic_machine=m68k-wrs
1101 os=-vxworks
1102 ;;
1103 vxworks29k)
1104 basic_machine=a29k-wrs
1105 os=-vxworks
1106 ;;
1107 w65*)
1108 basic_machine=w65-wdc
1109 os=-none
1110 ;;
1111 w89k-*)
1112 basic_machine=hppa1.1-winbond
1113 os=-proelf
1114 ;;
1115 xbox)
1116 basic_machine=i686-pc
1117 os=-mingw32
1118 ;;
1119 xps | xps100)
1120 basic_machine=xps100-honeywell
1121 ;;
1122 ymp)
1123 basic_machine=ymp-cray
1124 os=-unicos
1125 ;;
1126 z8k-*-coff)
1127 basic_machine=z8k-unknown
1128 os=-sim
1129 ;;
1130 none)
1131 basic_machine=none-none
1132 os=-none
1133 ;;
1134
1135 # Here we handle the default manufacturer of certain CPU types. It is in
1136 # some cases the only manufacturer, in others, it is the most popular.
1137 w89k)
1138 basic_machine=hppa1.1-winbond
1139 ;;
1140 op50n)
1141 basic_machine=hppa1.1-oki
1142 ;;
1143 op60c)
1144 basic_machine=hppa1.1-oki
1145 ;;
1146 romp)
1147 basic_machine=romp-ibm
1148 ;;
1149 mmix)
1150 basic_machine=mmix-knuth
1151 ;;
1152 rs6000)
1153 basic_machine=rs6000-ibm
1154 ;;
1155 vax)
1156 basic_machine=vax-dec
1157 ;;
1158 pdp10)
1159 # there are many clones, so DEC is not a safe bet
1160 basic_machine=pdp10-unknown
1161 ;;
1162 pdp11)
1163 basic_machine=pdp11-dec
1164 ;;
1165 we32k)
1166 basic_machine=we32k-att
1167 ;;
1168 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1169 basic_machine=sh-unknown
1170 ;;
1171 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1172 basic_machine=sparc-sun
1173 ;;
1174 cydra)
1175 basic_machine=cydra-cydrome
1176 ;;
1177 orion)
1178 basic_machine=orion-highlevel
1179 ;;
1180 orion105)
1181 basic_machine=clipper-highlevel
1182 ;;
1183 mac | mpw | mac-mpw)
1184 basic_machine=m68k-apple
1185 ;;
1186 pmac | pmac-mpw)
1187 basic_machine=powerpc-apple
1188 ;;
1189 *-unknown)
1190 # Make sure to match an already-canonicalized machine name.
1191 ;;
1192 *)
1193 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1194 exit 1
1195 ;;
1196 esac
1197
1198 # Here we canonicalize certain aliases for manufacturers.
1199 case $basic_machine in
1200 *-digital*)
1201 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1202 ;;
1203 *-commodore*)
1204 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1205 ;;
1206 *)
1207 ;;
1208 esac
1209
1210 # Decode manufacturer-specific aliases for certain operating systems.
1211
1212 if [ x"$os" != x"" ]
1213 then
1214 case $os in
1215 # First match some system type aliases
1216 # that might get confused with valid system types.
1217 # -solaris* is a basic system type, with this one exception.
1218 -solaris1 | -solaris1.*)
1219 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1220 ;;
1221 -solaris)
1222 os=-solaris2
1223 ;;
1224 -svr4*)
1225 os=-sysv4
1226 ;;
1227 -unixware*)
1228 os=-sysv4.2uw
1229 ;;
1230 -gnu/linux*)
1231 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1232 ;;
1233 # First accept the basic system types.
1234 # The portable systems comes first.
1235 # Each alternative MUST END IN A *, to match a version number.
1236 # -sysv* is not here because it comes later, after sysvr4.
1237 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1238 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1239 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1240 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1241 | -aos* \
1242 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1243 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1244 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1245 | -openbsd* | -solidbsd* \
1246 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1247 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1248 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1249 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1250 | -chorusos* | -chorusrdb* \
1251 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1252 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1253 | -uxpv* | -beos* | -mpeix* | -udk* \
1254 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1255 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1256 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1257 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1258 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1259 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1260 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1261 # Remember, each alternative MUST END IN *, to match a version number.
1262 ;;
1263 -qnx*)
1264 case $basic_machine in
1265 x86-* | i*86-*)
1266 ;;
1267 *)
1268 os=-nto$os
1269 ;;
1270 esac
1271 ;;
1272 -nto-qnx*)
1273 ;;
1274 -nto*)
1275 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1276 ;;
1277 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1278 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1279 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1280 ;;
1281 -mac*)
1282 os=`echo $os | sed -e 's|mac|macos|'`
1283 ;;
1284 -linux-dietlibc)
1285 os=-linux-dietlibc
1286 ;;
1287 -linux*)
1288 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1289 ;;
1290 -sunos5*)
1291 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1292 ;;
1293 -sunos6*)
1294 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1295 ;;
1296 -opened*)
1297 os=-openedition
1298 ;;
1299 -os400*)
1300 os=-os400
1301 ;;
1302 -wince*)
1303 os=-wince
1304 ;;
1305 -osfrose*)
1306 os=-osfrose
1307 ;;
1308 -osf*)
1309 os=-osf
1310 ;;
1311 -utek*)
1312 os=-bsd
1313 ;;
1314 -dynix*)
1315 os=-bsd
1316 ;;
1317 -acis*)
1318 os=-aos
1319 ;;
1320 -atheos*)
1321 os=-atheos
1322 ;;
1323 -syllable*)
1324 os=-syllable
1325 ;;
1326 -386bsd)
1327 os=-bsd
1328 ;;
1329 -ctix* | -uts*)
1330 os=-sysv
1331 ;;
1332 -nova*)
1333 os=-rtmk-nova
1334 ;;
1335 -ns2 )
1336 os=-nextstep2
1337 ;;
1338 -nsk*)
1339 os=-nsk
1340 ;;
1341 # Preserve the version number of sinix5.
1342 -sinix5.*)
1343 os=`echo $os | sed -e 's|sinix|sysv|'`
1344 ;;
1345 -sinix*)
1346 os=-sysv4
1347 ;;
1348 -tpf*)
1349 os=-tpf
1350 ;;
1351 -triton*)
1352 os=-sysv3
1353 ;;
1354 -oss*)
1355 os=-sysv3
1356 ;;
1357 -svr4)
1358 os=-sysv4
1359 ;;
1360 -svr3)
1361 os=-sysv3
1362 ;;
1363 -sysvr4)
1364 os=-sysv4
1365 ;;
1366 # This must come after -sysvr4.
1367 -sysv*)
1368 ;;
1369 -ose*)
1370 os=-ose
1371 ;;
1372 -es1800*)
1373 os=-ose
1374 ;;
1375 -xenix)
1376 os=-xenix
1377 ;;
1378 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1379 os=-mint
1380 ;;
1381 -aros*)
1382 os=-aros
1383 ;;
1384 -kaos*)
1385 os=-kaos
1386 ;;
1387 -zvmoe)
1388 os=-zvmoe
1389 ;;
1390 -none)
1391 ;;
1392 *)
1393 # Get rid of the `-' at the beginning of $os.
1394 os=`echo $os | sed 's/[^-]*-//'`
1395 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1396 exit 1
1397 ;;
1398 esac
1399 else
1400
1401 # Here we handle the default operating systems that come with various machines.
1402 # The value should be what the vendor currently ships out the door with their
1403 # machine or put another way, the most popular os provided with the machine.
1404
1405 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1406 # "-sun"), then you have to tell the case statement up towards the top
1407 # that MANUFACTURER isn't an operating system. Otherwise, code above
1408 # will signal an error saying that MANUFACTURER isn't an operating
1409 # system, and we'll never get to this point.
1410
1411 case $basic_machine in
1412 score-*)
1413 os=-elf
1414 ;;
1415 spu-*)
1416 os=-elf
1417 ;;
1418 *-acorn)
1419 os=-riscix1.2
1420 ;;
1421 arm*-rebel)
1422 os=-linux
1423 ;;
1424 arm*-semi)
1425 os=-aout
1426 ;;
1427 c4x-* | tic4x-*)
1428 os=-coff
1429 ;;
1430 # This must come before the *-dec entry.
1431 pdp10-*)
1432 os=-tops20
1433 ;;
1434 pdp11-*)
1435 os=-none
1436 ;;
1437 *-dec | vax-*)
1438 os=-ultrix4.2
1439 ;;
1440 m68*-apollo)
1441 os=-domain
1442 ;;
1443 i386-sun)
1444 os=-sunos4.0.2
1445 ;;
1446 m68000-sun)
1447 os=-sunos3
1448 # This also exists in the configure program, but was not the
1449 # default.
1450 # os=-sunos4
1451 ;;
1452 m68*-cisco)
1453 os=-aout
1454 ;;
1455 mep-*)
1456 os=-elf
1457 ;;
1458 mips*-cisco)
1459 os=-elf
1460 ;;
1461 mips*-*)
1462 os=-elf
1463 ;;
1464 or32-*)
1465 os=-coff
1466 ;;
1467 *-tti) # must be before sparc entry or we get the wrong os.
1468 os=-sysv3
1469 ;;
1470 sparc-* | *-sun)
1471 os=-sunos4.1.1
1472 ;;
1473 *-be)
1474 os=-beos
1475 ;;
1476 *-haiku)
1477 os=-haiku
1478 ;;
1479 *-ibm)
1480 os=-aix
1481 ;;
1482 *-knuth)
1483 os=-mmixware
1484 ;;
1485 *-wec)
1486 os=-proelf
1487 ;;
1488 *-winbond)
1489 os=-proelf
1490 ;;
1491 *-oki)
1492 os=-proelf
1493 ;;
1494 *-hp)
1495 os=-hpux
1496 ;;
1497 *-hitachi)
1498 os=-hiux
1499 ;;
1500 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1501 os=-sysv
1502 ;;
1503 *-cbm)
1504 os=-amigaos
1505 ;;
1506 *-dg)
1507 os=-dgux
1508 ;;
1509 *-dolphin)
1510 os=-sysv3
1511 ;;
1512 m68k-ccur)
1513 os=-rtu
1514 ;;
1515 m88k-omron*)
1516 os=-luna
1517 ;;
1518 *-next )
1519 os=-nextstep
1520 ;;
1521 *-sequent)
1522 os=-ptx
1523 ;;
1524 *-crds)
1525 os=-unos
1526 ;;
1527 *-ns)
1528 os=-genix
1529 ;;
1530 i370-*)
1531 os=-mvs
1532 ;;
1533 *-next)
1534 os=-nextstep3
1535 ;;
1536 *-gould)
1537 os=-sysv
1538 ;;
1539 *-highlevel)
1540 os=-bsd
1541 ;;
1542 *-encore)
1543 os=-bsd
1544 ;;
1545 *-sgi)
1546 os=-irix
1547 ;;
1548 *-siemens)
1549 os=-sysv4
1550 ;;
1551 *-masscomp)
1552 os=-rtu
1553 ;;
1554 f30[01]-fujitsu | f700-fujitsu)
1555 os=-uxpv
1556 ;;
1557 *-rom68k)
1558 os=-coff
1559 ;;
1560 *-*bug)
1561 os=-coff
1562 ;;
1563 *-apple)
1564 os=-macos
1565 ;;
1566 *-atari*)
1567 os=-mint
1568 ;;
1569 *)
1570 os=-none
1571 ;;
1572 esac
1573 fi
1574
1575 # Here we handle the case where we know the os, and the CPU type, but not the
1576 # manufacturer. We pick the logical manufacturer.
1577 vendor=unknown
1578 case $basic_machine in
1579 *-unknown)
1580 case $os in
1581 -riscix*)
1582 vendor=acorn
1583 ;;
1584 -sunos*)
1585 vendor=sun
1586 ;;
1587 -aix*)
1588 vendor=ibm
1589 ;;
1590 -beos*)
1591 vendor=be
1592 ;;
1593 -hpux*)
1594 vendor=hp
1595 ;;
1596 -mpeix*)
1597 vendor=hp
1598 ;;
1599 -hiux*)
1600 vendor=hitachi
1601 ;;
1602 -unos*)
1603 vendor=crds
1604 ;;
1605 -dgux*)
1606 vendor=dg
1607 ;;
1608 -luna*)
1609 vendor=omron
1610 ;;
1611 -genix*)
1612 vendor=ns
1613 ;;
1614 -mvs* | -opened*)
1615 vendor=ibm
1616 ;;
1617 -os400*)
1618 vendor=ibm
1619 ;;
1620 -ptx*)
1621 vendor=sequent
1622 ;;
1623 -tpf*)
1624 vendor=ibm
1625 ;;
1626 -vxsim* | -vxworks* | -windiss*)
1627 vendor=wrs
1628 ;;
1629 -aux*)
1630 vendor=apple
1631 ;;
1632 -hms*)
1633 vendor=hitachi
1634 ;;
1635 -mpw* | -macos*)
1636 vendor=apple
1637 ;;
1638 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1639 vendor=atari
1640 ;;
1641 -vos*)
1642 vendor=stratus
1643 ;;
1644 esac
1645 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1646 ;;
1647 esac
1648
1649 echo $basic_machine$os
1650 exit
1651
1652 # Local variables:
1653 # eval: (add-hook 'write-file-hooks 'time-stamp)
1654 # time-stamp-start: "timestamp='"
1655 # time-stamp-format: "%:y-%02m-%02d"
1656 # time-stamp-end: "'"
1657 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61 for sugar-artwork 0.84.1.
3 #
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
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
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50 fi
51
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
73 for as_dir in $PATH
74 do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
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
111 fi
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=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
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 (
327 as_lineno_1=$LINENO
328 as_lineno_2=$LINENO
329 test "x$as_lineno_1" != "x$as_lineno_2" &&
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" || {
426
427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428 # uniformly replaced by the line number. The first 'sed' inserts a
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.
434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
454 { (exit 1); exit 1; }; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464
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';;
480 esac
481
482 if expr a : '\(a\)' >/dev/null 2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 as_expr=expr
485 else
486 as_expr=false
487 fi
488
489 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
496 echo >conf$$.file
497 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
504 as_ln_s='cp -p'
505 elif ln conf$$.file conf$$ 2>/dev/null; then
506 as_ln_s=ln
507 else
508 as_ln_s='cp -p'
509 fi
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
512
513 if mkdir -p . 2>/dev/null; then
514 as_mkdir_p=:
515 else
516 test -d ./-p && rmdir ./-p
517 as_mkdir_p=false
518 fi
519
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
542
543 # Sed expression to map a string onto a valid CPP name.
544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546 # Sed expression to map a string onto a valid variable name.
547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549
550
551
552 # Check that we are running under the correct shell.
553 SHELL=${CONFIG_SHELL-/bin/sh}
554
555 case X$lt_ECHO in
556 X*--fallback-echo)
557 # Remove one level of quotation (which was required for Make).
558 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 ;;
560 esac
561
562 ECHO=${lt_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 <<_LT_EOF
581 $*
582 _LT_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 "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
597 then
598 break
599 fi
600 done
601 fi
602
603 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
604 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
605 test "X$echo_testing_string" = "X$echo_test_string"; then
606 :
607 else
608 # The Solaris, AIX, and Digital Unix default echo programs unquote
609 # backslashes. This makes it impossible to quote backslashes using
610 # echo "$something" | sed 's/\\/\\\\/g'
611 #
612 # So, first we look for a working echo in the user's PATH.
613
614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
615 for dir in $PATH /usr/ucb; do
616 IFS="$lt_save_ifs"
617 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
618 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 ECHO="$dir/echo"
622 break
623 fi
624 done
625 IFS="$lt_save_ifs"
626
627 if test "X$ECHO" = Xecho; then
628 # We didn't find a better echo, so look for alternatives.
629 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 # This shell has a builtin print -r that does the trick.
633 ECHO='print -r'
634 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
635 test "X$CONFIG_SHELL" != X/bin/ksh; then
636 # If we have ksh, try running configure again with it.
637 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
638 export ORIGINAL_CONFIG_SHELL
639 CONFIG_SHELL=/bin/ksh
640 export CONFIG_SHELL
641 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
642 else
643 # Try using printf.
644 ECHO='printf %s\n'
645 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 # Cool, printf works
649 :
650 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
655 export CONFIG_SHELL
656 SHELL="$CONFIG_SHELL"
657 export SHELL
658 ECHO="$CONFIG_SHELL $0 --fallback-echo"
659 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660 test "X$echo_testing_string" = 'X\t' &&
661 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662 test "X$echo_testing_string" = "X$echo_test_string"; then
663 ECHO="$CONFIG_SHELL $0 --fallback-echo"
664 else
665 # maybe with a smaller string...
666 prev=:
667
668 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
669 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
670 then
671 break
672 fi
673 prev="$cmd"
674 done
675
676 if test "$prev" != 'sed 50q "$0"'; then
677 echo_test_string=`eval $prev`
678 export echo_test_string
679 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
680 else
681 # Oops. We lost completely, so just stick with echo.
682 ECHO=echo
683 fi
684 fi
685 fi
686 fi
687 fi
688 fi
689
690 # Copy echo and quote the copy suitably for passing to libtool from
691 # the Makefile, instead of quoting the original, which is used later.
692 lt_ECHO=$ECHO
693 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
694 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
695 fi
696
697
698
699
700 exec 7<&0 </dev/null 6>&1
701
702 # Name of the host.
703 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
704 # so uname gets run too.
705 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706
707 #
708 # Initializations.
709 #
710 ac_default_prefix=/usr/local
711 ac_clean_files=
712 ac_config_libobj_dir=.
713 LIBOBJS=
714 cross_compiling=no
715 subdirs=
716 MFLAGS=
717 MAKEFLAGS=
718 SHELL=${CONFIG_SHELL-/bin/sh}
719
720 # Identity of this package.
721 PACKAGE_NAME='sugar-artwork'
722 PACKAGE_TARNAME='sugar-artwork'
723 PACKAGE_VERSION='0.84.1'
724 PACKAGE_STRING='sugar-artwork 0.84.1'
725 PACKAGE_BUGREPORT=''
726
727 # Factoring default headers for most tests.
728 ac_includes_default="\
729 #include <stdio.h>
730 #ifdef HAVE_SYS_TYPES_H
731 # include <sys/types.h>
732 #endif
733 #ifdef HAVE_SYS_STAT_H
734 # include <sys/stat.h>
735 #endif
736 #ifdef STDC_HEADERS
737 # include <stdlib.h>
738 # include <stddef.h>
739 #else
740 # ifdef HAVE_STDLIB_H
741 # include <stdlib.h>
742 # endif
743 #endif
744 #ifdef HAVE_STRING_H
745 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
746 # include <memory.h>
747 # endif
748 # include <string.h>
749 #endif
750 #ifdef HAVE_STRINGS_H
751 # include <strings.h>
752 #endif
753 #ifdef HAVE_INTTYPES_H
754 # include <inttypes.h>
755 #endif
756 #ifdef HAVE_STDINT_H
757 # include <stdint.h>
758 #endif
759 #ifdef HAVE_UNISTD_H
760 # include <unistd.h>
761 #endif"
762
763 ac_subst_vars='SHELL
764 PATH_SEPARATOR
765 PACKAGE_NAME
766 PACKAGE_TARNAME
767 PACKAGE_VERSION
768 PACKAGE_STRING
769 PACKAGE_BUGREPORT
770 exec_prefix
771 prefix
772 program_transform_name
773 bindir
774 sbindir
775 libexecdir
776 datarootdir
777 datadir
778 sysconfdir
779 sharedstatedir
780 localstatedir
781 includedir
782 oldincludedir
783 docdir
784 infodir
785 htmldir
786 dvidir
787 pdfdir
788 psdir
789 libdir
790 localedir
791 mandir
792 DEFS
793 ECHO_C
794 ECHO_N
795 ECHO_T
796 LIBS
797 build_alias
798 host_alias
799 target_alias
800 INSTALL_PROGRAM
801 INSTALL_SCRIPT
802 INSTALL_DATA
803 CYGPATH_W
804 PACKAGE
805 VERSION
806 ACLOCAL
807 AUTOCONF
808 AUTOMAKE
809 AUTOHEADER
810 MAKEINFO
811 install_sh
812 STRIP
813 INSTALL_STRIP_PROGRAM
814 mkdir_p
815 AWK
816 SET_MAKE
817 am__leading_dot
818 AMTAR
819 am__tar
820 am__untar
821 PKG_CONFIG
822 CC
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
826 ac_ct_CC
827 EXEEXT
828 OBJEXT
829 DEPDIR
830 am__include
831 am__quote
832 AMDEP_TRUE
833 AMDEP_FALSE
834 AMDEPBACKSLASH
835 CCDEPMODE
836 am__fastdepCC_TRUE
837 am__fastdepCC_FALSE
838 CPP
839 GREP
840 EGREP
841 LIBTOOL
842 build
843 build_cpu
844 build_vendor
845 build_os
846 host
847 host_cpu
848 host_vendor
849 host_os
850 SED
851 FGREP
852 LD
853 DUMPBIN
854 ac_ct_DUMPBIN
855 NM
856 LN_S
857 AR
858 RANLIB
859 lt_ECHO
860 DSYMUTIL
861 NMEDIT
862 LIPO
863 OTOOL
864 OTOOL64
865 ICON_SLICER
866 GTK2_CFLAGS
867 GTK2_LIBS
868 GDK_PIXBUF2_CFLAGS
869 GDK_PIXBUF2_LIBS
870 ENGINE_CFLAGS
871 ENGINE_LIBS
872 GTK_VERSION
873 ICONMAP
874 LIBOBJS
875 LTLIBOBJS'
876 ac_subst_files=''
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 PKG_CONFIG
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CPP
887 GTK2_CFLAGS
888 GTK2_LIBS
889 ENGINE_CFLAGS
890 ENGINE_LIBS'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
948 fi
949
950 case $ac_option in
951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *) ac_optarg=yes ;;
953 esac
954
955 # Accept the important Cygnus configure options, so we can diagnose typos.
956
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
965
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
980
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
985
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
993 -disable-* | --disable-*)
994 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000 eval enable_$ac_feature=no ;;
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1011
1012 -enable-* | --enable-*)
1013 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019 eval enable_$ac_feature=\$ac_optarg ;;
1020
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1029
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1032 with_gas=yes ;;
1033
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1040
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1045
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 ac_prev=htmldir ;;
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 | --ht=*)
1050 htmldir=$ac_optarg ;;
1051
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1058
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 ac_prev=infodir ;;
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1063
1064 -libdir | --libdir | --libdi | --libd)
1065 ac_prev=libdir ;;
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1068
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1075
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1080
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1087
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 ac_prev=mandir ;;
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1092
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1095 with_fp=no ;;
1096
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1099 no_create=yes ;;
1100
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 no_recursion=yes ;;
1104
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1113
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 ac_prev=prefix ;;
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1118
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1125
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1132
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1149
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 ac_prev=pdfdir ;;
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1154
1155 -psdir | --psdir | --psdi | --psd | --ps)
1156 ac_prev=psdir ;;
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 psdir=$ac_optarg ;;
1159
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 silent=yes ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1208
1209 -with-* | --with-*)
1210 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 { echo "$as_me: error: invalid package name: $ac_package" >&2
1214 { (exit 1); exit 1; }; }
1215 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216 eval with_$ac_package=\$ac_optarg ;;
1217
1218 -without-* | --without-*)
1219 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=no ;;
1226
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1230
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1237
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1244
1245 -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1248 ;;
1249
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265 ;;
1266
1267 esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1274 fi
1275
1276 # Be sure to have absolute directory names.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$0" : 'X\(//\)[^/]' \| \
1332 X"$0" : 'X\(//\)$' \| \
1333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 echo X"$0" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356 else
1357 ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures sugar-artwork 0.84.1 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/sugar-artwork]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of sugar-artwork 0.84.1:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-static[=PKGS] build static libraries [default=no]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484
1485 Some influential environment variables:
1486 PKG_CONFIG path to pkg-config utility
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1496 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1497 ENGINE_CFLAGS
1498 C compiler flags for ENGINE, overriding pkg-config
1499 ENGINE_LIBS linker flags for ENGINE, overriding pkg-config
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1512 ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 sugar-artwork configure 0.84.1
1565 generated by GNU Autoconf 2.61
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572 exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by sugar-artwork $as_me 0.84.1, which was
1579 generated by GNU Autoconf 2.61. Invocation command line was
1580
1581 $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1599
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642 for ac_arg
1643 do
1644 case $ac_arg in
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1648 continue ;;
1649 *\'*)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651 esac
1652 case $ac_pass in
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654 2)
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1658 else
1659 case $ac_arg in
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666 esac
1667 ;;
1668 -* ) ac_must_keep_next=true ;;
1669 esac
1670 fi
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 ;;
1673 esac
1674 done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1686 {
1687 echo
1688
1689 cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694 echo
1695 # The following way of writing the cache mishandles newlines in values,
1696 (
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1699 case $ac_val in #(
1700 *${as_nl}*)
1701 case $ac_var in #(
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704 esac
1705 case $ac_var in #(
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1708 esac ;;
1709 esac
1710 done
1711 (set) 2>&1 |
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1714 sed -n \
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 ;; #(
1718 *)
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720 ;;
1721 esac |
1722 sort
1723 )
1724 echo
1725
1726 cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731 echo
1732 for ac_var in $ac_subst_vars
1733 do
1734 eval ac_val=\$$ac_var
1735 case $ac_val in
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737 esac
1738 echo "$ac_var='\''$ac_val'\''"
1739 done | sort
1740 echo
1741
1742 if test -n "$ac_subst_files"; then
1743 cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748 echo
1749 for ac_var in $ac_subst_files
1750 do
1751 eval ac_val=\$$ac_var
1752 case $ac_val in
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 esac
1755 echo "$ac_var='\''$ac_val'\''"
1756 done | sort
1757 echo
1758 fi
1759
1760 if test -s confdefs.h; then
1761 cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766 echo
1767 cat confdefs.h
1768 echo
1769 fi
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1773 } >&5
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776 exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1830 . "$ac_site_file"
1831 fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840 case $cache_file in
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1843 esac
1844 fi
1845 else
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848 >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1860 set,)
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1864 ,set)
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,);;
1869 *)
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1878 fi;;
1879 esac
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1882 case $ac_new_val in
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1885 esac
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 esac
1890 fi
1891 done
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 ac_config_headers="$ac_config_headers config.h"
1933
1934
1935 am__api_version="1.9"
1936 ac_aux_dir=
1937 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1938 if test -f "$ac_dir/install-sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1941 break
1942 elif test -f "$ac_dir/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1950 fi
1951 done
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1955 { (exit 1); exit 1; }; }
1956 fi
1957
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965
1966
1967 # Find a good install program. We prefer a C program (faster),
1968 # so one script is as good as another. But avoid the broken or
1969 # incompatible versions:
1970 # SysV /etc/install, /usr/sbin/install
1971 # SunOS /usr/etc/install
1972 # IRIX /sbin/install
1973 # AIX /bin/install
1974 # AmigaOS /C/install, which installs bootblocks on floppy discs
1975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1978 # OS/2's system install, which has a completely different semantic
1979 # ./install, which can be erroneously created by make from ./install.sh.
1980 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1981 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1982 if test -z "$INSTALL"; then
1983 if test "${ac_cv_path_install+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 # Account for people who put trailing slashes in PATH elements.
1992 case $as_dir/ in
1993 ./ | .// | /cC/* | \
1994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1995 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1996 /usr/ucb/* ) ;;
1997 *)
1998 # OSF1 and SCO ODT 3.0 have their own names for install.
1999 # Don't use installbsd from OSF since it installs stuff as root
2000 # by default.
2001 for ac_prog in ginstall scoinst install; do
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2004 if test $ac_prog = install &&
2005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006 # AIX install. It has an incompatible calling convention.
2007 :
2008 elif test $ac_prog = install &&
2009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010 # program-specific install script used by HP pwplus--don't use.
2011 :
2012 else
2013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2014 break 3
2015 fi
2016 fi
2017 done
2018 done
2019 ;;
2020 esac
2021 done
2022 IFS=$as_save_IFS
2023
2024
2025 fi
2026 if test "${ac_cv_path_install+set}" = set; then
2027 INSTALL=$ac_cv_path_install
2028 else
2029 # As a last resort, use the slow shell script. Don't cache a
2030 # value for INSTALL within a source directory, because that will
2031 # break other packages using the cache if that directory is
2032 # removed, or if the value is a relative name.
2033 INSTALL=$ac_install_sh
2034 fi
2035 fi
2036 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2037 echo "${ECHO_T}$INSTALL" >&6; }
2038
2039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2040 # It thinks the first close brace ends the variable substitution.
2041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2042
2043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2044
2045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2046
2047 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2048 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2049 # Just in case
2050 sleep 1
2051 echo timestamp > conftest.file
2052 # Do `set' in a subshell so we don't clobber the current shell's
2053 # arguments. Must try -L first in case configure is actually a
2054 # symlink; some systems play weird games with the mod time of symlinks
2055 # (eg FreeBSD returns the mod time of the symlink's containing
2056 # directory).
2057 if (
2058 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2059 if test "$*" = "X"; then
2060 # -L didn't work.
2061 set X `ls -t $srcdir/configure conftest.file`
2062 fi
2063 rm -f conftest.file
2064 if test "$*" != "X $srcdir/configure conftest.file" \
2065 && test "$*" != "X conftest.file $srcdir/configure"; then
2066
2067 # If neither matched, then we have a broken ls. This can happen
2068 # if, for instance, CONFIG_SHELL is bash and it inherits a
2069 # broken ls alias from the environment. This has actually
2070 # happened. Such a system could not be considered "sane".
2071 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2072 alias in your environment" >&5
2073 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2074 alias in your environment" >&2;}
2075 { (exit 1); exit 1; }; }
2076 fi
2077
2078 test "$2" = conftest.file
2079 )
2080 then
2081 # Ok.
2082 :
2083 else
2084 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2085 Check your system clock" >&5
2086 echo "$as_me: error: newly created file is older than distributed files!
2087 Check your system clock" >&2;}
2088 { (exit 1); exit 1; }; }
2089 fi
2090 { echo "$as_me:$LINENO: result: yes" >&5
2091 echo "${ECHO_T}yes" >&6; }
2092 test "$program_prefix" != NONE &&
2093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2094 # Use a double $ so make ignores it.
2095 test "$program_suffix" != NONE &&
2096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2097 # Double any \ or $. echo might interpret backslashes.
2098 # By default was `s,x,x', remove it if useless.
2099 cat <<\_ACEOF >conftest.sed
2100 s/[\\$]/&&/g;s/;s,x,x,$//
2101 _ACEOF
2102 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2103 rm -f conftest.sed
2104
2105 # expand $ac_aux_dir to an absolute path
2106 am_aux_dir=`cd $ac_aux_dir && pwd`
2107
2108 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2109 # Use eval to expand $SHELL
2110 if eval "$MISSING --run true"; then
2111 am_missing_run="$MISSING --run "
2112 else
2113 am_missing_run=
2114 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2115 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2116 fi
2117
2118 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2119 # We used to keeping the `.' as first argument, in order to
2120 # allow $(mkdir_p) to be used without argument. As in
2121 # $(mkdir_p) $(somedir)
2122 # where $(somedir) is conditionally defined. However this is wrong
2123 # for two reasons:
2124 # 1. if the package is installed by a user who cannot write `.'
2125 # make install will fail,
2126 # 2. the above comment should most certainly read
2127 # $(mkdir_p) $(DESTDIR)$(somedir)
2128 # so it does not work when $(somedir) is undefined and
2129 # $(DESTDIR) is not.
2130 # To support the latter case, we have to write
2131 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2132 # so the `.' trick is pointless.
2133 mkdir_p='mkdir -p --'
2134 else
2135 # On NextStep and OpenStep, the `mkdir' command does not
2136 # recognize any option. It will interpret all options as
2137 # directories to create, and then abort because `.' already
2138 # exists.
2139 for d in ./-p ./--version;
2140 do
2141 test -d $d && rmdir $d
2142 done
2143 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2144 if test -f "$ac_aux_dir/mkinstalldirs"; then
2145 mkdir_p='$(mkinstalldirs)'
2146 else
2147 mkdir_p='$(install_sh) -d'
2148 fi
2149 fi
2150
2151 for ac_prog in gawk mawk nawk awk
2152 do
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_AWK+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$AWK"; then
2161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_AWK="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 fi
2179 fi
2180 AWK=$ac_cv_prog_AWK
2181 if test -n "$AWK"; then
2182 { echo "$as_me:$LINENO: result: $AWK" >&5
2183 echo "${ECHO_T}$AWK" >&6; }
2184 else
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187 fi
2188
2189
2190 test -n "$AWK" && break
2191 done
2192
2193 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2194 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2195 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2196 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 cat >conftest.make <<\_ACEOF
2200 SHELL = /bin/sh
2201 all:
2202 @echo '@@@%%%=$(MAKE)=@@@%%%'
2203 _ACEOF
2204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2205 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2206 *@@@%%%=?*=@@@%%%*)
2207 eval ac_cv_prog_make_${ac_make}_set=yes;;
2208 *)
2209 eval ac_cv_prog_make_${ac_make}_set=no;;
2210 esac
2211 rm -f conftest.make
2212 fi
2213 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2214 { echo "$as_me:$LINENO: result: yes" >&5
2215 echo "${ECHO_T}yes" >&6; }
2216 SET_MAKE=
2217 else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2220 SET_MAKE="MAKE=${MAKE-make}"
2221 fi
2222
2223 rm -rf .tst 2>/dev/null
2224 mkdir .tst 2>/dev/null
2225 if test -d .tst; then
2226 am__leading_dot=.
2227 else
2228 am__leading_dot=_
2229 fi
2230 rmdir .tst 2>/dev/null
2231
2232 # test to see if srcdir already configured
2233 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2234 test -f $srcdir/config.status; then
2235 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2236 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239
2240 # test whether we have cygpath
2241 if test -z "$CYGPATH_W"; then
2242 if (cygpath --version) >/dev/null 2>/dev/null; then
2243 CYGPATH_W='cygpath -w'
2244 else
2245 CYGPATH_W=echo
2246 fi
2247 fi
2248
2249
2250 # Define the identity of the package.
2251 PACKAGE='sugar-artwork'
2252 VERSION='0.84.1'
2253
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE "$PACKAGE"
2257 _ACEOF
2258
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define VERSION "$VERSION"
2262 _ACEOF
2263
2264 # Some tools Automake needs.
2265
2266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2267
2268
2269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2270
2271
2272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2273
2274
2275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2276
2277
2278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2279
2280 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2281
2282 # Installed binaries are usually stripped using `strip' when the user
2283 # run `make install-strip'. However `strip' might not be the right
2284 # tool to use in cross-compilation environments, therefore Automake
2285 # will honor the `STRIP' environment variable to overrule this program.
2286 if test "$cross_compiling" != no; then
2287 if test -n "$ac_tool_prefix"; then
2288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2289 set dummy ${ac_tool_prefix}strip; ac_word=$2
2290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2292 if test "${ac_cv_prog_STRIP+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 if test -n "$STRIP"; then
2296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2308 fi
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 fi
2314 fi
2315 STRIP=$ac_cv_prog_STRIP
2316 if test -n "$STRIP"; then
2317 { echo "$as_me:$LINENO: result: $STRIP" >&5
2318 echo "${ECHO_T}$STRIP" >&6; }
2319 else
2320 { echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6; }
2322 fi
2323
2324
2325 fi
2326 if test -z "$ac_cv_prog_STRIP"; then
2327 ac_ct_STRIP=$STRIP
2328 # Extract the first word of "strip", so it can be a program name with args.
2329 set dummy strip; ac_word=$2
2330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2332 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 if test -n "$ac_ct_STRIP"; then
2336 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345 ac_cv_prog_ac_ct_STRIP="strip"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 break 2
2348 fi
2349 done
2350 done
2351 IFS=$as_save_IFS
2352
2353 fi
2354 fi
2355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2356 if test -n "$ac_ct_STRIP"; then
2357 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2358 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2359 else
2360 { echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6; }
2362 fi
2363
2364 if test "x$ac_ct_STRIP" = x; then
2365 STRIP=":"
2366 else
2367 case $cross_compiling:$ac_tool_warned in
2368 yes:)
2369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2370 whose name does not start with the host triplet. If you think this
2371 configuration is useful to you, please write to autoconf@gnu.org." >&5
2372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2373 whose name does not start with the host triplet. If you think this
2374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2375 ac_tool_warned=yes ;;
2376 esac
2377 STRIP=$ac_ct_STRIP
2378 fi
2379 else
2380 STRIP="$ac_cv_prog_STRIP"
2381 fi
2382
2383 fi
2384 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2385
2386 # We need awk for the "check" target. The system "awk" is bad on
2387 # some platforms.
2388 # Always define AMTAR for backward compatibility.
2389
2390 AMTAR=${AMTAR-"${am_missing_run}tar"}
2391
2392 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2393
2394
2395
2396
2397
2398
2399 # Check whether --enable-static was given.
2400 if test "${enable_static+set}" = set; then
2401 enableval=$enable_static; p=${PACKAGE-default}
2402 case $enableval in
2403 yes) enable_static=yes ;;
2404 no) enable_static=no ;;
2405 *)
2406 enable_static=no
2407 # Look at the argument we got. We use all the common list separators.
2408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2409 for pkg in $enableval; do
2410 IFS="$lt_save_ifs"
2411 if test "X$pkg" = "X$p"; then
2412 enable_static=yes
2413 fi
2414 done
2415 IFS="$lt_save_ifs"
2416 ;;
2417 esac
2418 else
2419 enable_static=no
2420 fi
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 case $PKG_CONFIG in
2443 [\\/]* | ?:[\\/]*)
2444 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2445 ;;
2446 *)
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458 done
2459 done
2460 IFS=$as_save_IFS
2461
2462 ;;
2463 esac
2464 fi
2465 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2466 if test -n "$PKG_CONFIG"; then
2467 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2468 echo "${ECHO_T}$PKG_CONFIG" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_path_PKG_CONFIG"; then
2477 ac_pt_PKG_CONFIG=$PKG_CONFIG
2478 # Extract the first word of "pkg-config", so it can be a program name with args.
2479 set dummy pkg-config; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 case $ac_pt_PKG_CONFIG in
2486 [\\/]* | ?:[\\/]*)
2487 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2488 ;;
2489 *)
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 ;;
2506 esac
2507 fi
2508 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2509 if test -n "$ac_pt_PKG_CONFIG"; then
2510 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2511 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
2512 else
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2515 fi
2516
2517 if test "x$ac_pt_PKG_CONFIG" = x; then
2518 PKG_CONFIG=""
2519 else
2520 case $cross_compiling:$ac_tool_warned in
2521 yes:)
2522 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&5
2525 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet. If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530 PKG_CONFIG=$ac_pt_PKG_CONFIG
2531 fi
2532 else
2533 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2534 fi
2535
2536 fi
2537 if test -n "$PKG_CONFIG"; then
2538 _pkg_min_version=0.19
2539 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2540 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
2541 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2542 { echo "$as_me:$LINENO: result: yes" >&5
2543 echo "${ECHO_T}yes" >&6; }
2544 else
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 PKG_CONFIG=""
2548 fi
2549
2550 fi
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$ac_cv_prog_CC"; then
2597 ac_ct_CC=$CC
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 echo "${ECHO_T}$ac_ct_CC" >&6; }
2629 else
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2632 fi
2633
2634 if test "x$ac_ct_CC" = x; then
2635 CC=""
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet. If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet. If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647 CC=$ac_ct_CC
2648 fi
2649 else
2650 CC="$ac_cv_prog_CC"
2651 fi
2652
2653 if test -z "$CC"; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_CC="${ac_tool_prefix}cc"
2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 { echo "$as_me:$LINENO: result: $CC" >&5
2685 echo "${ECHO_T}$CC" >&6; }
2686 else
2687 { echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6; }
2689 fi
2690
2691
2692 fi
2693 fi
2694 if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696 set dummy cc; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 ac_prog_rejected=no
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2715 continue
2716 fi
2717 ac_cv_prog_CC="cc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2728 shift
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2733 shift
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735 fi
2736 fi
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6; }
2743 else
2744 { echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6; }
2746 fi
2747
2748
2749 fi
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 for ac_prog in cl.exe
2753 do
2754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6; }
2785 else
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2788 fi
2789
2790
2791 test -n "$CC" && break
2792 done
2793 fi
2794 if test -z "$CC"; then
2795 ac_ct_CC=$CC
2796 for ac_prog in cl.exe
2797 do
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="$ac_prog"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828 echo "${ECHO_T}$ac_ct_CC" >&6; }
2829 else
2830 { echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6; }
2832 fi
2833
2834
2835 test -n "$ac_ct_CC" && break
2836 done
2837
2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2844 whose name does not start with the host triplet. If you think this
2845 configuration is useful to you, please write to autoconf@gnu.org." >&5
2846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2847 whose name does not start with the host triplet. If you think this
2848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851 CC=$ac_ct_CC
2852 fi
2853 fi
2854
2855 fi
2856
2857
2858 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2863
2864 # Provide some information about the compiler.
2865 echo "$as_me:$LINENO: checking for C compiler version" >&5
2866 ac_compiler=`set X $ac_compile; echo $2`
2867 { (ac_try="$ac_compiler --version >&5"
2868 case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compiler --version >&5") 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compiler -v >&5") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 { (ac_try="$ac_compiler -V >&5"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler -V >&5") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897
2898 cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h. */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2904
2905 int
2906 main ()
2907 {
2908
2909 ;
2910 return 0;
2911 }
2912 _ACEOF
2913 ac_clean_files_save=$ac_clean_files
2914 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2915 # Try to create an executable without -o first, disregard a.out.
2916 # It will help us diagnose broken compilers, and finding out an intuition
2917 # of exeext.
2918 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2919 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2920 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2921 #
2922 # List of possible output files, starting from the most likely.
2923 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2924 # only as a last resort. b.out is created by i960 compilers.
2925 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2926 #
2927 # The IRIX 6 linker writes into existing files which may not be
2928 # executable, retaining their permissions. Remove them first so a
2929 # subsequent execution test works.
2930 ac_rmfiles=
2931 for ac_file in $ac_files
2932 do
2933 case $ac_file in
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2936 esac
2937 done
2938 rm -f $ac_rmfiles
2939
2940 if { (ac_try="$ac_link_default"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_link_default") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; then
2950 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2953 # so that the user can short-circuit this test for compilers unknown to
2954 # Autoconf.
2955 for ac_file in $ac_files ''
2956 do
2957 test -f "$ac_file" || continue
2958 case $ac_file in
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2960 ;;
2961 [ab].out )
2962 # We found the default executable, but exeext='' is most
2963 # certainly right.
2964 break;;
2965 *.* )
2966 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2967 then :; else
2968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969 fi
2970 # We set ac_cv_exeext here because the later test for it is not
2971 # safe: cross compilers may not add the suffix if given an `-o'
2972 # argument, so we may need to know it at that point already.
2973 # Even if this section looks crufty: it has the advantage of
2974 # actually working.
2975 break;;
2976 * )
2977 break;;
2978 esac
2979 done
2980 test "$ac_cv_exeext" = no && ac_cv_exeext=
2981
2982 else
2983 ac_file=''
2984 fi
2985
2986 { echo "$as_me:$LINENO: result: $ac_file" >&5
2987 echo "${ECHO_T}$ac_file" >&6; }
2988 if test -z "$ac_file"; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&2;}
2996 { (exit 77); exit 77; }; }
2997 fi
2998
2999 ac_exeext=$ac_cv_exeext
3000
3001 # Check that the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3005 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006 # If not cross compiling, check that we can run a simple program.
3007 if test "$cross_compiling" != yes; then
3008 if { ac_try='./$ac_file'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 cross_compiling=no
3019 else
3020 if test "$cross_compiling" = maybe; then
3021 cross_compiling=yes
3022 else
3023 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3024 If you meant to cross compile, use \`--host'.
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }
3030 fi
3031 fi
3032 fi
3033 { echo "$as_me:$LINENO: result: yes" >&5
3034 echo "${ECHO_T}yes" >&6; }
3035
3036 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3041 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3042 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3043 echo "${ECHO_T}$cross_compiling" >&6; }
3044
3045 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3046 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3047 if { (ac_try="$ac_link"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_link") 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3059 # work properly (i.e., refer to `conftest.exe'), while it won't with
3060 # `rm'.
3061 for ac_file in conftest.exe conftest conftest.*; do
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 break;;
3067 * ) break;;
3068 esac
3069 done
3070 else
3071 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details." >&5
3073 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3074 See \`config.log' for more details." >&2;}
3075 { (exit 1); exit 1; }; }
3076 fi
3077
3078 rm -f conftest$ac_cv_exeext
3079 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3080 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3081
3082 rm -f conftest.$ac_ext
3083 EXEEXT=$ac_cv_exeext
3084 ac_exeext=$EXEEXT
3085 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3086 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3087 if test "${ac_cv_objext+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h. */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096
3097 int
3098 main ()
3099 {
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.o conftest.obj
3106 if { (ac_try="$ac_compile"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compile") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; then
3116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 break;;
3122 esac
3123 done
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3133 fi
3134
3135 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3136 fi
3137 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3138 echo "${ECHO_T}$ac_cv_objext" >&6; }
3139 OBJEXT=$ac_cv_objext
3140 ac_objext=$OBJEXT
3141 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152
3153 int
3154 main ()
3155 {
3156 #ifndef __GNUC__
3157 choke me
3158 #endif
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_compiler_gnu=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186 ac_compiler_gnu=no
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3191
3192 fi
3193 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3195 GCC=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CFLAGS=${CFLAGS+set}
3197 ac_save_CFLAGS=$CFLAGS
3198 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 ac_save_c_werror_flag=$ac_c_werror_flag
3204 ac_c_werror_flag=yes
3205 ac_cv_prog_cc_g=no
3206 CFLAGS="-g"
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213
3214 int
3215 main ()
3216 {
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3239 ac_cv_prog_cc_g=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 CFLAGS=""
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && {
3274 test -z "$ac_c_werror_flag" ||
3275 test ! -s conftest.err
3276 } && test -s conftest.$ac_objext; then
3277 :
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3283 CFLAGS="-g"
3284 cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h. */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290
3291 int
3292 main ()
3293 {
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 ac_cv_prog_cc_g=yes
3317 else
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321
3322 fi
3323
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 fi
3326
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3332 fi
3333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3339 CFLAGS="-g -O2"
3340 else
3341 CFLAGS="-g"
3342 fi
3343 else
3344 if test "$GCC" = yes; then
3345 CFLAGS="-O2"
3346 else
3347 CFLAGS=
3348 fi
3349 fi
3350 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3351 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 ac_cv_prog_cc_c89=no
3356 ac_save_CC=$CC
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h. */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <stdarg.h>
3364 #include <stdio.h>
3365 #include <sys/types.h>
3366 #include <sys/stat.h>
3367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3368 struct buf { int x; };
3369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370 static char *e (p, i)
3371 char **p;
3372 int i;
3373 {
3374 return p[i];
3375 }
3376 static char *f (char * (*g) (char **, int), char **p, ...)
3377 {
3378 char *s;
3379 va_list v;
3380 va_start (v,p);
3381 s = g (p, va_arg (v,int));
3382 va_end (v);
3383 return s;
3384 }
3385
3386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3387 function prototypes and stuff, but not '\xHH' hex character constants.
3388 These don't provoke an error unfortunately, instead are silently treated
3389 as 'x'. The following induces an error, until -std is added to get
3390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3391 array size at least. It's necessary to write '\x00'==0 to get something
3392 that's true only with -std. */
3393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3394
3395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396 inside strings and character constants. */
3397 #define FOO(x) 'x'
3398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3399
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 int argc;
3405 char **argv;
3406 int
3407 main ()
3408 {
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3416 do
3417 CC="$ac_save_CC $ac_arg"
3418 rm -f conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } && {
3432 test -z "$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3434 } && test -s conftest.$ac_objext; then
3435 ac_cv_prog_cc_c89=$ac_arg
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440
3441 fi
3442
3443 rm -f core conftest.err conftest.$ac_objext
3444 test "x$ac_cv_prog_cc_c89" != "xno" && break
3445 done
3446 rm -f conftest.$ac_ext
3447 CC=$ac_save_CC
3448
3449 fi
3450 # AC_CACHE_VAL
3451 case "x$ac_cv_prog_cc_c89" in
3452 x)
3453 { echo "$as_me:$LINENO: result: none needed" >&5
3454 echo "${ECHO_T}none needed" >&6; } ;;
3455 xno)
3456 { echo "$as_me:$LINENO: result: unsupported" >&5
3457 echo "${ECHO_T}unsupported" >&6; } ;;
3458 *)
3459 CC="$CC $ac_cv_prog_cc_c89"
3460 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3461 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3462 esac
3463
3464
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 DEPDIR="${am__leading_dot}deps"
3471
3472 ac_config_commands="$ac_config_commands depfiles"
3473
3474
3475 am_make=${MAKE-make}
3476 cat > confinc << 'END'
3477 am__doit:
3478 @echo done
3479 .PHONY: am__doit
3480 END
3481 # If we don't find an include directive, just comment out the code.
3482 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3483 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3484 am__include="#"
3485 am__quote=
3486 _am_result=none
3487 # First try GNU make style include.
3488 echo "include confinc" > confmf
3489 # We grep out `Entering directory' and `Leaving directory'
3490 # messages which can occur if `w' ends up in MAKEFLAGS.
3491 # In particular we don't look at `^make:' because GNU make might
3492 # be invoked under some other name (usually "gmake"), in which
3493 # case it prints its new name instead of `make'.
3494 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3495 am__include=include
3496 am__quote=
3497 _am_result=GNU
3498 fi
3499 # Now try BSD make style include.
3500 if test "$am__include" = "#"; then
3501 echo '.include "confinc"' > confmf
3502 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3503 am__include=.include
3504 am__quote="\""
3505 _am_result=BSD
3506 fi
3507 fi
3508
3509
3510 { echo "$as_me:$LINENO: result: $_am_result" >&5
3511 echo "${ECHO_T}$_am_result" >&6; }
3512 rm -f confinc confmf
3513
3514 # Check whether --enable-dependency-tracking was given.
3515 if test "${enable_dependency_tracking+set}" = set; then
3516 enableval=$enable_dependency_tracking;
3517 fi
3518
3519 if test "x$enable_dependency_tracking" != xno; then
3520 am_depcomp="$ac_aux_dir/depcomp"
3521 AMDEPBACKSLASH='\'
3522 fi
3523
3524
3525 if test "x$enable_dependency_tracking" != xno; then
3526 AMDEP_TRUE=
3527 AMDEP_FALSE='#'
3528 else
3529 AMDEP_TRUE='#'
3530 AMDEP_FALSE=
3531 fi
3532
3533
3534
3535
3536 depcc="$CC" am_compiler_list=
3537
3538 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3539 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3540 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544 # We make a subdir and do the tests there. Otherwise we can end up
3545 # making bogus files that we don't know about and never remove. For
3546 # instance it was reported that on HP-UX the gcc test will end up
3547 # making a dummy file named `D' -- because `-MD' means `put the output
3548 # in D'.
3549 mkdir conftest.dir
3550 # Copy depcomp to subdir because otherwise we won't find it if we're
3551 # using a relative directory.
3552 cp "$am_depcomp" conftest.dir
3553 cd conftest.dir
3554 # We will build objects and dependencies in a subdirectory because
3555 # it helps to detect inapplicable dependency modes. For instance
3556 # both Tru64's cc and ICC support -MD to output dependencies as a
3557 # side effect of compilation, but ICC will put the dependencies in
3558 # the current directory while Tru64 will put them in the object
3559 # directory.
3560 mkdir sub
3561
3562 am_cv_CC_dependencies_compiler_type=none
3563 if test "$am_compiler_list" = ""; then
3564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565 fi
3566 for depmode in $am_compiler_list; do
3567 # Setup a source with many dependencies, because some compilers
3568 # like to wrap large dependency lists on column 80 (with \), and
3569 # we should not choose a depcomp mode which is confused by this.
3570 #
3571 # We need to recreate these files for each test, as the compiler may
3572 # overwrite some of them when testing with obscure command lines.
3573 # This happens at least with the AIX C compiler.
3574 : > sub/conftest.c
3575 for i in 1 2 3 4 5 6; do
3576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3578 # Solaris 8's {/usr,}/bin/sh.
3579 touch sub/conftst$i.h
3580 done
3581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582
3583 case $depmode in
3584 nosideeffect)
3585 # after this tag, mechanisms are not by side-effect, so they'll
3586 # only be used when explicitly requested
3587 if test "x$enable_dependency_tracking" = xyes; then
3588 continue
3589 else
3590 break
3591 fi
3592 ;;
3593 none) break ;;
3594 esac
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this.
3598 if depmode=$depmode \
3599 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602 >/dev/null 2>conftest.err &&
3603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3604 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3606 # icc doesn't choke on unknown options, it will just issue warnings
3607 # or remarks (even with -Werror). So we grep stderr for any message
3608 # that says an option was ignored or not supported.
3609 # When given -MP, icc 7.0 and 7.1 complain thusly:
3610 # icc: Command line warning: ignoring option '-M'; no argument required
3611 # The diagnosis changed in icc 8.0:
3612 # icc: Command line remark: option '-MP' not supported
3613 if (grep 'ignoring option' conftest.err ||
3614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3615 am_cv_CC_dependencies_compiler_type=$depmode
3616 break
3617 fi
3618 fi
3619 done
3620
3621 cd ..
3622 rm -rf conftest.dir
3623 else
3624 am_cv_CC_dependencies_compiler_type=none
3625 fi
3626
3627 fi
3628 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3629 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3631
3632
3633
3634 if
3635 test "x$enable_dependency_tracking" != xno \
3636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3637 am__fastdepCC_TRUE=
3638 am__fastdepCC_FALSE='#'
3639 else
3640 am__fastdepCC_TRUE='#'
3641 am__fastdepCC_FALSE=
3642 fi
3643
3644
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655 CPP=
3656 fi
3657 if test -z "$CPP"; then
3658 if test "${ac_cv_prog_CPP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 # Double quotes because CPP needs to be expanded
3662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3663 do
3664 ac_preproc_ok=false
3665 for ac_c_preproc_warn_flag in '' yes
3666 do
3667 # Use a header file that comes with gcc, so configuring glibc
3668 # with a fresh cross-compiler works.
3669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670 # <limits.h> exists even on freestanding compilers.
3671 # On the NeXT, cc -E runs the code through the compiler's parser,
3672 # not just through cpp. "Syntax error" is here to catch this case.
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #ifdef __STDC__
3680 # include <limits.h>
3681 #else
3682 # include <assert.h>
3683 #endif
3684 Syntax error
3685 _ACEOF
3686 if { (ac_try="$ac_cpp conftest.$ac_ext"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } >/dev/null && {
3699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3700 test ! -s conftest.err
3701 }; then
3702 :
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 # Broken: fails on valid input.
3708 continue
3709 fi
3710
3711 rm -f conftest.err conftest.$ac_ext
3712
3713 # OK, works on sane cases. Now check whether nonexistent headers
3714 # can be detected and how.
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <ac_nonexistent.h>
3722 _ACEOF
3723 if { (ac_try="$ac_cpp conftest.$ac_ext"
3724 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_cpp conftest.$ac_ext") 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } >/dev/null && {
3736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 }; then
3739 # Broken: success on invalid input.
3740 continue
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 # Passes both tests.
3746 ac_preproc_ok=:
3747 break
3748 fi
3749
3750 rm -f conftest.err conftest.$ac_ext
3751
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3756 break
3757 fi
3758
3759 done
3760 ac_cv_prog_CPP=$CPP
3761
3762 fi
3763 CPP=$ac_cv_prog_CPP
3764 else
3765 ac_cv_prog_CPP=$CPP
3766 fi
3767 { echo "$as_me:$LINENO: result: $CPP" >&5
3768 echo "${ECHO_T}$CPP" >&6; }
3769 ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3771 do
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error" is here to catch this case.
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #ifdef __STDC__
3785 # include <limits.h>
3786 #else
3787 # include <assert.h>
3788 #endif
3789 Syntax error
3790 _ACEOF
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } >/dev/null && {
3804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3805 test ! -s conftest.err
3806 }; then
3807 :
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 # Broken: fails on valid input.
3813 continue
3814 fi
3815
3816 rm -f conftest.err conftest.$ac_ext
3817
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <ac_nonexistent.h>
3827 _ACEOF
3828 if { (ac_try="$ac_cpp conftest.$ac_ext"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null && {
3841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 }; then
3844 # Broken: success on invalid input.
3845 continue
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850 # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3853 fi
3854
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 done
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3861 :
3862 else
3863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3864 See \`config.log' for more details." >&5
3865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3866 See \`config.log' for more details." >&2;}
3867 { (exit 1); exit 1; }; }
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876
3877 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 # Extract the first word of "grep ggrep" to use in msg output
3883 if test -z "$GREP"; then
3884 set dummy grep ggrep; ac_prog_name=$2
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in grep ggrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3899 # Check for GNU ac_path_GREP and select it if it is found.
3900 # Check for GNU $ac_path_GREP
3901 case `"$ac_path_GREP" --version 2>&1` in
3902 *GNU*)
3903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904 *)
3905 ac_count=0
3906 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907 while :
3908 do
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 echo 'GREP' >> "conftest.nl"
3913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 ac_count=`expr $ac_count + 1`
3916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_GREP="$ac_path_GREP"
3919 ac_path_GREP_max=$ac_count
3920 fi
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3923 done
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925 esac
3926
3927
3928 $ac_path_GREP_found && break 3
3929 done
3930 done
3931
3932 done
3933 IFS=$as_save_IFS
3934
3935
3936 fi
3937
3938 GREP="$ac_cv_path_GREP"
3939 if test -z "$GREP"; then
3940 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942 { (exit 1); exit 1; }; }
3943 fi
3944
3945 else
3946 ac_cv_path_GREP=$GREP
3947 fi
3948
3949
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953 GREP="$ac_cv_path_GREP"
3954
3955
3956 { echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962 then ac_cv_path_EGREP="$GREP -E"
3963 else
3964 # Extract the first word of "egrep" to use in msg output
3965 if test -z "$EGREP"; then
3966 set dummy egrep; ac_prog_name=$2
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in egrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3981 # Check for GNU ac_path_EGREP and select it if it is found.
3982 # Check for GNU $ac_path_EGREP
3983 case `"$ac_path_EGREP" --version 2>&1` in
3984 *GNU*)
3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986 *)
3987 ac_count=0
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 while :
3990 do
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'EGREP' >> "conftest.nl"
3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_EGREP="$ac_path_EGREP"
4001 ac_path_EGREP_max=$ac_count
4002 fi
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4008
4009
4010 $ac_path_EGREP_found && break 3
4011 done
4012 done
4013
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019
4020 EGREP="$ac_cv_path_EGREP"
4021 if test -z "$EGREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4025 fi
4026
4027 else
4028 ac_cv_path_EGREP=$EGREP
4029 fi
4030
4031
4032 fi
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036 EGREP="$ac_cv_path_EGREP"
4037
4038
4039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4041 if test "${ac_cv_header_stdc+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 #include <stdlib.h>
4051 #include <stdarg.h>
4052 #include <string.h>
4053 #include <float.h>
4054
4055 int
4056 main ()
4057 {
4058
4059 ;
4060 return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 ac_cv_header_stdc=yes
4081 else
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085 ac_cv_header_stdc=no
4086 fi
4087
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089
4090 if test $ac_cv_header_stdc = yes; then
4091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <string.h>
4099
4100 _ACEOF
4101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4102 $EGREP "memchr" >/dev/null 2>&1; then
4103 :
4104 else
4105 ac_cv_header_stdc=no
4106 fi
4107 rm -f conftest*
4108
4109 fi
4110
4111 if test $ac_cv_header_stdc = yes; then
4112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <stdlib.h>
4120
4121 _ACEOF
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123 $EGREP "free" >/dev/null 2>&1; then
4124 :
4125 else
4126 ac_cv_header_stdc=no
4127 fi
4128 rm -f conftest*
4129
4130 fi
4131
4132 if test $ac_cv_header_stdc = yes; then
4133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4134 if test "$cross_compiling" = yes; then
4135 :
4136 else
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <ctype.h>
4144 #include <stdlib.h>
4145 #if ((' ' & 0x0FF) == 0x020)
4146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4148 #else
4149 # define ISLOWER(c) \
4150 (('a' <= (c) && (c) <= 'i') \
4151 || ('j' <= (c) && (c) <= 'r') \
4152 || ('s' <= (c) && (c) <= 'z'))
4153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4154 #endif
4155
4156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4157 int
4158 main ()
4159 {
4160 int i;
4161 for (i = 0; i < 256; i++)
4162 if (XOR (islower (i), ISLOWER (i))
4163 || toupper (i) != TOUPPER (i))
4164 return 2;
4165 return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest$ac_exeext
4169 if { (ac_try="$ac_link"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_link") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 :
4189 else
4190 echo "$as_me: program exited with status $ac_status" >&5
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194 ( exit $ac_status )
4195 ac_cv_header_stdc=no
4196 fi
4197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4198 fi
4199
4200
4201 fi
4202 fi
4203 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4204 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4205 if test $ac_cv_header_stdc = yes; then
4206
4207 cat >>confdefs.h <<\_ACEOF
4208 #define STDC_HEADERS 1
4209 _ACEOF
4210
4211 fi
4212
4213 case `pwd` in
4214 *\ * | *\ *)
4215 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4216 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4217 esac
4218
4219
4220
4221 macro_version='2.2.4'
4222 macro_revision='1.2976'
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 ltmain="$ac_aux_dir/ltmain.sh"
4237
4238 # Make sure we can run config.sub.
4239 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4240 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4241 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4242 { (exit 1); exit 1; }; }
4243
4244 { echo "$as_me:$LINENO: checking build system type" >&5
4245 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4246 if test "${ac_cv_build+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 ac_build_alias=$build_alias
4250 test "x$ac_build_alias" = x &&
4251 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4252 test "x$ac_build_alias" = x &&
4253 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4254 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4255 { (exit 1); exit 1; }; }
4256 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4257 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4258 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4259 { (exit 1); exit 1; }; }
4260
4261 fi
4262 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4263 echo "${ECHO_T}$ac_cv_build" >&6; }
4264 case $ac_cv_build in
4265 *-*-*) ;;
4266 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4267 echo "$as_me: error: invalid value of canonical build" >&2;}
4268 { (exit 1); exit 1; }; };;
4269 esac
4270 build=$ac_cv_build
4271 ac_save_IFS=$IFS; IFS='-'
4272 set x $ac_cv_build
4273 shift
4274 build_cpu=$1
4275 build_vendor=$2
4276 shift; shift
4277 # Remember, the first character of IFS is used to create $*,
4278 # except with old shells:
4279 build_os=$*
4280 IFS=$ac_save_IFS
4281 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4282
4283
4284 { echo "$as_me:$LINENO: checking host system type" >&5
4285 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4286 if test "${ac_cv_host+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test "x$host_alias" = x; then
4290 ac_cv_host=$ac_cv_build
4291 else
4292 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4293 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4294 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4295 { (exit 1); exit 1; }; }
4296 fi
4297
4298 fi
4299 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4300 echo "${ECHO_T}$ac_cv_host" >&6; }
4301 case $ac_cv_host in
4302 *-*-*) ;;
4303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4304 echo "$as_me: error: invalid value of canonical host" >&2;}
4305 { (exit 1); exit 1; }; };;
4306 esac
4307 host=$ac_cv_host
4308 ac_save_IFS=$IFS; IFS='-'
4309 set x $ac_cv_host
4310 shift
4311 host_cpu=$1
4312 host_vendor=$2
4313 shift; shift
4314 # Remember, the first character of IFS is used to create $*,
4315 # except with old shells:
4316 host_os=$*
4317 IFS=$ac_save_IFS
4318 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4319
4320
4321 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4322 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4323 if test "${ac_cv_path_SED+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4327 for ac_i in 1 2 3 4 5 6 7; do
4328 ac_script="$ac_script$as_nl$ac_script"
4329 done
4330 echo "$ac_script" | sed 99q >conftest.sed
4331 $as_unset ac_script || ac_script=
4332 # Extract the first word of "sed gsed" to use in msg output
4333 if test -z "$SED"; then
4334 set dummy sed gsed; ac_prog_name=$2
4335 if test "${ac_cv_path_SED+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338 ac_path_SED_found=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_prog in sed gsed; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4348 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4349 # Check for GNU ac_path_SED and select it if it is found.
4350 # Check for GNU $ac_path_SED
4351 case `"$ac_path_SED" --version 2>&1` in
4352 *GNU*)
4353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4354 *)
4355 ac_count=0
4356 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4357 while :
4358 do
4359 cat "conftest.in" "conftest.in" >"conftest.tmp"
4360 mv "conftest.tmp" "conftest.in"
4361 cp "conftest.in" "conftest.nl"
4362 echo '' >> "conftest.nl"
4363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365 ac_count=`expr $ac_count + 1`
4366 if test $ac_count -gt ${ac_path_SED_max-0}; then
4367 # Best one so far, save it but keep looking for a better one
4368 ac_cv_path_SED="$ac_path_SED"
4369 ac_path_SED_max=$ac_count
4370 fi
4371 # 10*(2^10) chars as input seems more than enough
4372 test $ac_count -gt 10 && break
4373 done
4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375 esac
4376
4377
4378 $ac_path_SED_found && break 3
4379 done
4380 done
4381
4382 done
4383 IFS=$as_save_IFS
4384
4385
4386 fi
4387
4388 SED="$ac_cv_path_SED"
4389 if test -z "$SED"; then
4390 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4391 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4392 { (exit 1); exit 1; }; }
4393 fi
4394
4395 else
4396 ac_cv_path_SED=$SED
4397 fi
4398
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4401 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4402 SED="$ac_cv_path_SED"
4403 rm -f conftest.sed
4404
4405 test -z "$SED" && SED=sed
4406 Xsed="$SED -e 1s/^X//"
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418 { echo "$as_me:$LINENO: checking for fgrep" >&5
4419 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4420 if test "${ac_cv_path_FGREP+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4424 then ac_cv_path_FGREP="$GREP -F"
4425 else
4426 # Extract the first word of "fgrep" to use in msg output
4427 if test -z "$FGREP"; then
4428 set dummy fgrep; ac_prog_name=$2
4429 if test "${ac_cv_path_FGREP+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 ac_path_FGREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4436 do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in fgrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4442 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4443 # Check for GNU ac_path_FGREP and select it if it is found.
4444 # Check for GNU $ac_path_FGREP
4445 case `"$ac_path_FGREP" --version 2>&1` in
4446 *GNU*)
4447 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4448 *)
4449 ac_count=0
4450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4451 while :
4452 do
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 echo 'FGREP' >> "conftest.nl"
4457 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 ac_count=`expr $ac_count + 1`
4460 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_FGREP="$ac_path_FGREP"
4463 ac_path_FGREP_max=$ac_count
4464 fi
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4467 done
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469 esac
4470
4471
4472 $ac_path_FGREP_found && break 3
4473 done
4474 done
4475
4476 done
4477 IFS=$as_save_IFS
4478
4479
4480 fi
4481
4482 FGREP="$ac_cv_path_FGREP"
4483 if test -z "$FGREP"; then
4484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4486 { (exit 1); exit 1; }; }
4487 fi
4488
4489 else
4490 ac_cv_path_FGREP=$FGREP
4491 fi
4492
4493
4494 fi
4495 fi
4496 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4497 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4498 FGREP="$ac_cv_path_FGREP"
4499
4500
4501 test -z "$GREP" && GREP=grep
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521 # Check whether --with-gnu-ld was given.
4522 if test "${with_gnu_ld+set}" = set; then
4523 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4524 else
4525 with_gnu_ld=no
4526 fi
4527
4528 ac_prog=ld
4529 if test "$GCC" = yes; then
4530 # Check if gcc -print-prog-name=ld gives a path.
4531 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4532 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4533 case $host in
4534 *-*-mingw*)
4535 # gcc leaves a trailing carriage return which upsets mingw
4536 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4537 *)
4538 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4539 esac
4540 case $ac_prog in
4541 # Accept absolute paths.
4542 [\\/]* | ?:[\\/]*)
4543 re_direlt='/[^/][^/]*/\.\./'
4544 # Canonicalize the pathname of ld
4545 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4546 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4547 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4548 done
4549 test -z "$LD" && LD="$ac_prog"
4550 ;;
4551 "")
4552 # If it fails, then pretend we aren't using GCC.
4553 ac_prog=ld
4554 ;;
4555 *)
4556 # If it is relative, then search for the first ld in PATH.
4557 with_gnu_ld=unknown
4558 ;;
4559 esac
4560 elif test "$with_gnu_ld" = yes; then
4561 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4562 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4563 else
4564 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4565 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4566 fi
4567 if test "${lt_cv_path_LD+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570 if test -z "$LD"; then
4571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4572 for ac_dir in $PATH; do
4573 IFS="$lt_save_ifs"
4574 test -z "$ac_dir" && ac_dir=.
4575 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4576 lt_cv_path_LD="$ac_dir/$ac_prog"
4577 # Check to see if the program is GNU ld. I'd rather use --version,
4578 # but apparently some variants of GNU ld only accept -v.
4579 # Break only if it was the GNU/non-GNU ld that we prefer.
4580 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4581 *GNU* | *'with BFD'*)
4582 test "$with_gnu_ld" != no && break
4583 ;;
4584 *)
4585 test "$with_gnu_ld" != yes && break
4586 ;;
4587 esac
4588 fi
4589 done
4590 IFS="$lt_save_ifs"
4591 else
4592 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4593 fi
4594 fi
4595
4596 LD="$lt_cv_path_LD"
4597 if test -n "$LD"; then
4598 { echo "$as_me:$LINENO: result: $LD" >&5
4599 echo "${ECHO_T}$LD" >&6; }
4600 else
4601 { echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6; }
4603 fi
4604 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4605 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4606 { (exit 1); exit 1; }; }
4607 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4608 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4609 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4613 case `$LD -v 2>&1 </dev/null` in
4614 *GNU* | *'with BFD'*)
4615 lt_cv_prog_gnu_ld=yes
4616 ;;
4617 *)
4618 lt_cv_prog_gnu_ld=no
4619 ;;
4620 esac
4621 fi
4622 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4623 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4624 with_gnu_ld=$lt_cv_prog_gnu_ld
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4635 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4636 if test "${lt_cv_path_NM+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 if test -n "$NM"; then
4640 # Let the user override the test.
4641 lt_cv_path_NM="$NM"
4642 else
4643 lt_nm_to_check="${ac_tool_prefix}nm"
4644 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4645 lt_nm_to_check="$lt_nm_to_check nm"
4646 fi
4647 for lt_tmp_nm in $lt_nm_to_check; do
4648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4649 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4650 IFS="$lt_save_ifs"
4651 test -z "$ac_dir" && ac_dir=.
4652 tmp_nm="$ac_dir/$lt_tmp_nm"
4653 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4654 # Check to see if the nm accepts a BSD-compat flag.
4655 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4656 # nm: unknown option "B" ignored
4657 # Tru64's nm complains that /dev/null is an invalid object file
4658 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4659 */dev/null* | *'Invalid file or object type'*)
4660 lt_cv_path_NM="$tmp_nm -B"
4661 break
4662 ;;
4663 *)
4664 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4665 */dev/null*)
4666 lt_cv_path_NM="$tmp_nm -p"
4667 break
4668 ;;
4669 *)
4670 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4671 continue # so that we can try to find one that supports BSD flags
4672 ;;
4673 esac
4674 ;;
4675 esac
4676 fi
4677 done
4678 IFS="$lt_save_ifs"
4679 done
4680 : ${lt_cv_path_NM=no}
4681 fi
4682 fi
4683 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4684 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4685 if test "$lt_cv_path_NM" != "no"; then
4686 NM="$lt_cv_path_NM"
4687 else
4688 # Didn't find any BSD compatible name lister, look for dumpbin.
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4691 do
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 if test -n "$DUMPBIN"; then
4700 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 DUMPBIN=$ac_cv_prog_DUMPBIN
4720 if test -n "$DUMPBIN"; then
4721 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4722 echo "${ECHO_T}$DUMPBIN" >&6; }
4723 else
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4726 fi
4727
4728
4729 test -n "$DUMPBIN" && break
4730 done
4731 fi
4732 if test -z "$DUMPBIN"; then
4733 ac_ct_DUMPBIN=$DUMPBIN
4734 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4735 do
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$ac_ct_DUMPBIN"; then
4744 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4764 if test -n "$ac_ct_DUMPBIN"; then
4765 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4766 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 fi
4771
4772
4773 test -n "$ac_ct_DUMPBIN" && break
4774 done
4775
4776 if test "x$ac_ct_DUMPBIN" = x; then
4777 DUMPBIN=":"
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4782 whose name does not start with the host triplet. If you think this
4783 configuration is useful to you, please write to autoconf@gnu.org." >&5
4784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4787 ac_tool_warned=yes ;;
4788 esac
4789 DUMPBIN=$ac_ct_DUMPBIN
4790 fi
4791 fi
4792
4793
4794 if test "$DUMPBIN" != ":"; then
4795 NM="$DUMPBIN"
4796 fi
4797 fi
4798 test -z "$NM" && NM=nm
4799
4800
4801
4802
4803
4804
4805 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4806 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4807 if test "${lt_cv_nm_interface+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 lt_cv_nm_interface="BSD nm"
4811 echo "int some_variable = 0;" > conftest.$ac_ext
4812 (eval echo "\"\$as_me:4813: $ac_compile\"" >&5)
4813 (eval "$ac_compile" 2>conftest.err)
4814 cat conftest.err >&5
4815 (eval echo "\"\$as_me:4816: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4816 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4817 cat conftest.err >&5
4818 (eval echo "\"\$as_me:4819: output\"" >&5)
4819 cat conftest.out >&5
4820 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4821 lt_cv_nm_interface="MS dumpbin"
4822 fi
4823 rm -f conftest*
4824 fi
4825 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4826 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4827
4828 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4829 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4830 LN_S=$as_ln_s
4831 if test "$LN_S" = "ln -s"; then
4832 { echo "$as_me:$LINENO: result: yes" >&5
4833 echo "${ECHO_T}yes" >&6; }
4834 else
4835 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4836 echo "${ECHO_T}no, using $LN_S" >&6; }
4837 fi
4838
4839 # find the maximum length of command line arguments
4840 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4841 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4842 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 i=0
4846 teststring="ABCD"
4847
4848 case $build_os in
4849 msdosdjgpp*)
4850 # On DJGPP, this test can blow up pretty badly due to problems in libc
4851 # (any single argument exceeding 2000 bytes causes a buffer overrun
4852 # during glob expansion). Even if it were fixed, the result of this
4853 # check would be larger than it should be.
4854 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4855 ;;
4856
4857 gnu*)
4858 # Under GNU Hurd, this test is not required because there is
4859 # no limit to the length of command line arguments.
4860 # Libtool will interpret -1 as no limit whatsoever
4861 lt_cv_sys_max_cmd_len=-1;
4862 ;;
4863
4864 cygwin* | mingw*)
4865 # On Win9x/ME, this test blows up -- it succeeds, but takes
4866 # about 5 minutes as the teststring grows exponentially.
4867 # Worse, since 9x/ME are not pre-emptively multitasking,
4868 # you end up with a "frozen" computer, even though with patience
4869 # the test eventually succeeds (with a max line length of 256k).
4870 # Instead, let's just punt: use the minimum linelength reported by
4871 # all of the supported platforms: 8192 (on NT/2K/XP).
4872 lt_cv_sys_max_cmd_len=8192;
4873 ;;
4874
4875 amigaos*)
4876 # On AmigaOS with pdksh, this test takes hours, literally.
4877 # So we just punt and use a minimum line length of 8192.
4878 lt_cv_sys_max_cmd_len=8192;
4879 ;;
4880
4881 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4882 # This has been around since 386BSD, at least. Likely further.
4883 if test -x /sbin/sysctl; then
4884 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4885 elif test -x /usr/sbin/sysctl; then
4886 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4887 else
4888 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4889 fi
4890 # And add a safety zone
4891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4893 ;;
4894
4895 interix*)
4896 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4897 lt_cv_sys_max_cmd_len=196608
4898 ;;
4899
4900 osf*)
4901 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4902 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4903 # nice to cause kernel panics so lets avoid the loop below.
4904 # First set a reasonable default.
4905 lt_cv_sys_max_cmd_len=16384
4906 #
4907 if test -x /sbin/sysconfig; then
4908 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4909 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4910 esac
4911 fi
4912 ;;
4913 sco3.2v5*)
4914 lt_cv_sys_max_cmd_len=102400
4915 ;;
4916 sysv5* | sco5v6* | sysv4.2uw2*)
4917 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4918 if test -n "$kargmax"; then
4919 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4920 else
4921 lt_cv_sys_max_cmd_len=32768
4922 fi
4923 ;;
4924 *)
4925 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4926 if test -n "$lt_cv_sys_max_cmd_len"; then
4927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4929 else
4930 # Make teststring a little bigger before we do anything with it.
4931 # a 1K string should be a reasonable start.
4932 for i in 1 2 3 4 5 6 7 8 ; do
4933 teststring=$teststring$teststring
4934 done
4935 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4936 # If test is not a shell built-in, we'll probably end up computing a
4937 # maximum length that is only half of the actual maximum length, but
4938 # we can't tell.
4939 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4940 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4941 test $i != 17 # 1/2 MB should be enough
4942 do
4943 i=`expr $i + 1`
4944 teststring=$teststring$teststring
4945 done
4946 # Only check the string length outside the loop.
4947 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4948 teststring=
4949 # Add a significant safety factor because C++ compilers can tack on
4950 # massive amounts of additional arguments before passing them to the
4951 # linker. It appears as though 1/2 is a usable value.
4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4953 fi
4954 ;;
4955 esac
4956
4957 fi
4958
4959 if test -n $lt_cv_sys_max_cmd_len ; then
4960 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4961 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4962 else
4963 { echo "$as_me:$LINENO: result: none" >&5
4964 echo "${ECHO_T}none" >&6; }
4965 fi
4966 max_cmd_len=$lt_cv_sys_max_cmd_len
4967
4968
4969
4970
4971
4972
4973 : ${CP="cp -f"}
4974 : ${MV="mv -f"}
4975 : ${RM="rm -f"}
4976
4977 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4978 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4979 # Try some XSI features
4980 xsi_shell=no
4981 ( _lt_dummy="a/b/c"
4982 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4983 = c,a/b,, \
4984 && eval 'test $(( 1 + 1 )) -eq 2 \
4985 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4986 && xsi_shell=yes
4987 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4988 echo "${ECHO_T}$xsi_shell" >&6; }
4989
4990
4991 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4992 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4993 lt_shell_append=no
4994 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4995 >/dev/null 2>&1 \
4996 && lt_shell_append=yes
4997 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4998 echo "${ECHO_T}$lt_shell_append" >&6; }
4999
5000
5001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5002 lt_unset=unset
5003 else
5004 lt_unset=false
5005 fi
5006
5007
5008
5009
5010
5011 # test EBCDIC or ASCII
5012 case `echo X|tr X '\101'` in
5013 A) # ASCII based system
5014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5015 lt_SP2NL='tr \040 \012'
5016 lt_NL2SP='tr \015\012 \040\040'
5017 ;;
5018 *) # EBCDIC based system
5019 lt_SP2NL='tr \100 \n'
5020 lt_NL2SP='tr \r\n \100\100'
5021 ;;
5022 esac
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5033 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5034 if test "${lt_cv_ld_reload_flag+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 lt_cv_ld_reload_flag='-r'
5038 fi
5039 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5040 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5041 reload_flag=$lt_cv_ld_reload_flag
5042 case $reload_flag in
5043 "" | " "*) ;;
5044 *) reload_flag=" $reload_flag" ;;
5045 esac
5046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5047 case $host_os in
5048 darwin*)
5049 if test "$GCC" = yes; then
5050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5051 else
5052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5053 fi
5054 ;;
5055 esac
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5067 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5068 if test "${lt_cv_deplibs_check_method+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 lt_cv_file_magic_cmd='$MAGIC_CMD'
5072 lt_cv_file_magic_test_file=
5073 lt_cv_deplibs_check_method='unknown'
5074 # Need to set the preceding variable on all platforms that support
5075 # interlibrary dependencies.
5076 # 'none' -- dependencies not supported.
5077 # `unknown' -- same as none, but documents that we really don't know.
5078 # 'pass_all' -- all dependencies passed with no checks.
5079 # 'test_compile' -- check by making test program.
5080 # 'file_magic [[regex]]' -- check by looking for files in library path
5081 # which responds to the $file_magic_cmd with a given extended regex.
5082 # If you have `file' or equivalent on your system and you're not sure
5083 # whether `pass_all' will *always* work, you probably want this one.
5084
5085 case $host_os in
5086 aix[4-9]*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090 beos*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094 bsdi[45]*)
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5096 lt_cv_file_magic_cmd='/usr/bin/file -L'
5097 lt_cv_file_magic_test_file=/shlib/libc.so
5098 ;;
5099
5100 cygwin*)
5101 # func_win32_libid is a shell function defined in ltmain.sh
5102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5103 lt_cv_file_magic_cmd='func_win32_libid'
5104 ;;
5105
5106 mingw* | pw32*)
5107 # Base MSYS/MinGW do not provide the 'file' command needed by
5108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5109 # unless we find 'file', for example because we are cross-compiling.
5110 if ( file / ) >/dev/null 2>&1; then
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
5113 else
5114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5115 lt_cv_file_magic_cmd='$OBJDUMP -f'
5116 fi
5117 ;;
5118
5119 darwin* | rhapsody*)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
5122
5123 freebsd* | dragonfly*)
5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125 case $host_cpu in
5126 i*86 )
5127 # Not sure whether the presence of OpenBSD here was a mistake.
5128 # Let's accept both of them until this is cleared up.
5129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5130 lt_cv_file_magic_cmd=/usr/bin/file
5131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5132 ;;
5133 esac
5134 else
5135 lt_cv_deplibs_check_method=pass_all
5136 fi
5137 ;;
5138
5139 gnu*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142
5143 hpux10.20* | hpux11*)
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 case $host_cpu in
5146 ia64*)
5147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5149 ;;
5150 hppa*64*)
5151 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]'
5152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5153 ;;
5154 *)
5155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5157 ;;
5158 esac
5159 ;;
5160
5161 interix[3-9]*)
5162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5164 ;;
5165
5166 irix5* | irix6* | nonstopux*)
5167 case $LD in
5168 *-32|*"-32 ") libmagic=32-bit;;
5169 *-n32|*"-n32 ") libmagic=N32;;
5170 *-64|*"-64 ") libmagic=64-bit;;
5171 *) libmagic=never-match;;
5172 esac
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175
5176 # This must be Linux ELF.
5177 linux* | k*bsd*-gnu)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
5180
5181 netbsd* | netbsdelf*-gnu)
5182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5184 else
5185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5186 fi
5187 ;;
5188
5189 newos6*)
5190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5191 lt_cv_file_magic_cmd=/usr/bin/file
5192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5193 ;;
5194
5195 *nto* | *qnx*)
5196 lt_cv_deplibs_check_method=pass_all
5197 ;;
5198
5199 openbsd*)
5200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5202 else
5203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5204 fi
5205 ;;
5206
5207 osf3* | osf4* | osf5*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 rdos*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 solaris*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223 sysv4 | sysv4.3*)
5224 case $host_vendor in
5225 motorola)
5226 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]'
5227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5228 ;;
5229 ncr)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232 sequent)
5233 lt_cv_file_magic_cmd='/bin/file'
5234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5235 ;;
5236 sni)
5237 lt_cv_file_magic_cmd='/bin/file'
5238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5239 lt_cv_file_magic_test_file=/lib/libc.so
5240 ;;
5241 siemens)
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244 pc)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247 esac
5248 ;;
5249
5250 tpf*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253 esac
5254
5255 fi
5256 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5257 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5258 file_magic_cmd=$lt_cv_file_magic_cmd
5259 deplibs_check_method=$lt_cv_deplibs_check_method
5260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5275 set dummy ${ac_tool_prefix}ar; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AR+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 if test -n "$AR"; then
5282 ac_cv_prog_AR="$AR" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_AR="${ac_tool_prefix}ar"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 AR=$ac_cv_prog_AR
5302 if test -n "$AR"; then
5303 { echo "$as_me:$LINENO: result: $AR" >&5
5304 echo "${ECHO_T}$AR" >&6; }
5305 else
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5308 fi
5309
5310
5311 fi
5312 if test -z "$ac_cv_prog_AR"; then
5313 ac_ct_AR=$AR
5314 # Extract the first word of "ar", so it can be a program name with args.
5315 set dummy ar; ac_word=$2
5316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 if test -n "$ac_ct_AR"; then
5322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_ac_ct_AR="ar"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335 done
5336 done
5337 IFS=$as_save_IFS
5338
5339 fi
5340 fi
5341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5342 if test -n "$ac_ct_AR"; then
5343 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5344 echo "${ECHO_T}$ac_ct_AR" >&6; }
5345 else
5346 { echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6; }
5348 fi
5349
5350 if test "x$ac_ct_AR" = x; then
5351 AR="false"
5352 else
5353 case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5356 whose name does not start with the host triplet. If you think this
5357 configuration is useful to you, please write to autoconf@gnu.org." >&5
5358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5359 whose name does not start with the host triplet. If you think this
5360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 AR=$ac_ct_AR
5364 fi
5365 else
5366 AR="$ac_cv_prog_AR"
5367 fi
5368
5369 test -z "$AR" && AR=ar
5370 test -z "$AR_FLAGS" && AR_FLAGS=cru
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 if test -n "$ac_tool_prefix"; then
5383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5384 set dummy ${ac_tool_prefix}strip; ac_word=$2
5385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5387 if test "${ac_cv_prog_STRIP+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 if test -n "$STRIP"; then
5391 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404 done
5405 done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 STRIP=$ac_cv_prog_STRIP
5411 if test -n "$STRIP"; then
5412 { echo "$as_me:$LINENO: result: $STRIP" >&5
5413 echo "${ECHO_T}$STRIP" >&6; }
5414 else
5415 { echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6; }
5417 fi
5418
5419
5420 fi
5421 if test -z "$ac_cv_prog_STRIP"; then
5422 ac_ct_STRIP=$STRIP
5423 # Extract the first word of "strip", so it can be a program name with args.
5424 set dummy strip; ac_word=$2
5425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5427 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 if test -n "$ac_ct_STRIP"; then
5431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440 ac_cv_prog_ac_ct_STRIP="strip"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444 done
5445 done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5451 if test -n "$ac_ct_STRIP"; then
5452 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5453 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5454 else
5455 { echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6; }
5457 fi
5458
5459 if test "x$ac_ct_STRIP" = x; then
5460 STRIP=":"
5461 else
5462 case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5465 whose name does not start with the host triplet. If you think this
5466 configuration is useful to you, please write to autoconf@gnu.org." >&5
5467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5468 whose name does not start with the host triplet. If you think this
5469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5470 ac_tool_warned=yes ;;
5471 esac
5472 STRIP=$ac_ct_STRIP
5473 fi
5474 else
5475 STRIP="$ac_cv_prog_STRIP"
5476 fi
5477
5478 test -z "$STRIP" && STRIP=:
5479
5480
5481
5482
5483
5484
5485 if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5490 if test "${ac_cv_prog_RANLIB+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 if test -n "$RANLIB"; then
5494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 RANLIB=$ac_cv_prog_RANLIB
5514 if test -n "$RANLIB"; then
5515 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5516 echo "${ECHO_T}$RANLIB" >&6; }
5517 else
5518 { echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6; }
5520 fi
5521
5522
5523 fi
5524 if test -z "$ac_cv_prog_RANLIB"; then
5525 ac_ct_RANLIB=$RANLIB
5526 # Extract the first word of "ranlib", so it can be a program name with args.
5527 set dummy ranlib; ac_word=$2
5528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 if test -n "$ac_ct_RANLIB"; then
5534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_ac_ct_RANLIB="ranlib"
5544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547 done
5548 done
5549 IFS=$as_save_IFS
5550
5551 fi
5552 fi
5553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5554 if test -n "$ac_ct_RANLIB"; then
5555 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5556 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5557 else
5558 { echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6; }
5560 fi
5561
5562 if test "x$ac_ct_RANLIB" = x; then
5563 RANLIB=":"
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566 yes:)
5567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5568 whose name does not start with the host triplet. If you think this
5569 configuration is useful to you, please write to autoconf@gnu.org." >&5
5570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5571 whose name does not start with the host triplet. If you think this
5572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5573 ac_tool_warned=yes ;;
5574 esac
5575 RANLIB=$ac_ct_RANLIB
5576 fi
5577 else
5578 RANLIB="$ac_cv_prog_RANLIB"
5579 fi
5580
5581 test -z "$RANLIB" && RANLIB=:
5582
5583
5584
5585
5586
5587
5588 # Determine commands to create old-style static archives.
5589 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5590 old_postinstall_cmds='chmod 644 $oldlib'
5591 old_postuninstall_cmds=
5592
5593 if test -n "$RANLIB"; then
5594 case $host_os in
5595 openbsd*)
5596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5597 ;;
5598 *)
5599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5600 ;;
5601 esac
5602 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5603 fi
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638 # If no C compiler was specified, use CC.
5639 LTCC=${LTCC-"$CC"}
5640
5641 # If no C compiler flags were specified, use CFLAGS.
5642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5643
5644 # Allow CC to be a program name with arguments.
5645 compiler=$CC
5646
5647
5648 # Check for command to grab the raw symbol name followed by C symbol from nm.
5649 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5650 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5651 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654
5655 # These are sane defaults that work on at least a few old systems.
5656 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5657
5658 # Character class describing NM global symbol codes.
5659 symcode='[BCDEGRST]'
5660
5661 # Regexp to match symbols that can be accessed directly from C.
5662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5663
5664 # Define system-specific variables.
5665 case $host_os in
5666 aix*)
5667 symcode='[BCDT]'
5668 ;;
5669 cygwin* | mingw* | pw32*)
5670 symcode='[ABCDGISTW]'
5671 ;;
5672 hpux*)
5673 if test "$host_cpu" = ia64; then
5674 symcode='[ABCDEGRST]'
5675 fi
5676 ;;
5677 irix* | nonstopux*)
5678 symcode='[BCDEGRST]'
5679 ;;
5680 osf*)
5681 symcode='[BCDEGQRST]'
5682 ;;
5683 solaris*)
5684 symcode='[BDRT]'
5685 ;;
5686 sco3.2v5*)
5687 symcode='[DT]'
5688 ;;
5689 sysv4.2uw2*)
5690 symcode='[DT]'
5691 ;;
5692 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5693 symcode='[ABDT]'
5694 ;;
5695 sysv4)
5696 symcode='[DFNSTU]'
5697 ;;
5698 esac
5699
5700 # If we're using GNU nm, then use its standard symbol codes.
5701 case `$NM -V 2>&1` in
5702 *GNU* | *'with BFD'*)
5703 symcode='[ABCDGIRSTW]' ;;
5704 esac
5705
5706 # Transform an extracted symbol line into a proper C declaration.
5707 # Some systems (esp. on ia64) link data and code symbols differently,
5708 # so use this general approach.
5709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5710
5711 # Transform an extracted symbol line into symbol name and symbol address
5712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5714
5715 # Handle CRLF in mingw tool chain
5716 opt_cr=
5717 case $build_os in
5718 mingw*)
5719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5720 ;;
5721 esac
5722
5723 # Try without a prefix underscore, then with it.
5724 for ac_symprfx in "" "_"; do
5725
5726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5727 symxfrm="\\1 $ac_symprfx\\2 \\2"
5728
5729 # Write the raw and C identifiers.
5730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5731 # Fake it for dumpbin and say T for any non-static function
5732 # and D for any global variable.
5733 # Also find C++ and __fastcall symbols from MSVC++,
5734 # which start with @ or ?.
5735 lt_cv_sys_global_symbol_pipe="$AWK '"\
5736 " {last_section=section; section=\$ 3};"\
5737 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5738 " \$ 0!~/External *\|/{next};"\
5739 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5740 " {if(hide[section]) next};"\
5741 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5742 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5743 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5744 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5745 " ' prfx=^$ac_symprfx"
5746 else
5747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5748 fi
5749
5750 # Check to see that the pipe works correctly.
5751 pipe_works=no
5752
5753 rm -f conftest*
5754 cat > conftest.$ac_ext <<_LT_EOF
5755 #ifdef __cplusplus
5756 extern "C" {
5757 #endif
5758 char nm_test_var;
5759 void nm_test_func(void);
5760 void nm_test_func(void){}
5761 #ifdef __cplusplus
5762 }
5763 #endif
5764 int main(){nm_test_var='a';nm_test_func();return(0);}
5765 _LT_EOF
5766
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; then
5772 # Now try to grab the symbols.
5773 nlist=conftest.nm
5774 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5775 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && test -s "$nlist"; then
5779 # Try sorting and uniquifying the output.
5780 if sort "$nlist" | uniq > "$nlist"T; then
5781 mv -f "$nlist"T "$nlist"
5782 else
5783 rm -f "$nlist"T
5784 fi
5785
5786 # Make sure that we snagged all the symbols we need.
5787 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5788 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5789 cat <<_LT_EOF > conftest.$ac_ext
5790 #ifdef __cplusplus
5791 extern "C" {
5792 #endif
5793
5794 _LT_EOF
5795 # Now generate the symbol file.
5796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5797
5798 cat <<_LT_EOF >> conftest.$ac_ext
5799
5800 /* The mapping between symbol names and symbols. */
5801 const struct {
5802 const char *name;
5803 void *address;
5804 }
5805 lt__PROGRAM__LTX_preloaded_symbols[] =
5806 {
5807 { "@PROGRAM@", (void *) 0 },
5808 _LT_EOF
5809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5810 cat <<\_LT_EOF >> conftest.$ac_ext
5811 {0, (void *) 0}
5812 };
5813
5814 /* This works around a problem in FreeBSD linker */
5815 #ifdef FREEBSD_WORKAROUND
5816 static const void *lt_preloaded_setup() {
5817 return lt__PROGRAM__LTX_preloaded_symbols;
5818 }
5819 #endif
5820
5821 #ifdef __cplusplus
5822 }
5823 #endif
5824 _LT_EOF
5825 # Now try linking the two files.
5826 mv conftest.$ac_objext conftstm.$ac_objext
5827 lt_save_LIBS="$LIBS"
5828 lt_save_CFLAGS="$CFLAGS"
5829 LIBS="conftstm.$ac_objext"
5830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832 (eval $ac_link) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5836 pipe_works=yes
5837 fi
5838 LIBS="$lt_save_LIBS"
5839 CFLAGS="$lt_save_CFLAGS"
5840 else
5841 echo "cannot find nm_test_func in $nlist" >&5
5842 fi
5843 else
5844 echo "cannot find nm_test_var in $nlist" >&5
5845 fi
5846 else
5847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5848 fi
5849 else
5850 echo "$progname: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5852 fi
5853 rm -rf conftest* conftst*
5854
5855 # Do not use the global_symbol_pipe unless it works.
5856 if test "$pipe_works" = yes; then
5857 break
5858 else
5859 lt_cv_sys_global_symbol_pipe=
5860 fi
5861 done
5862
5863 fi
5864
5865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5866 lt_cv_sys_global_symbol_to_cdecl=
5867 fi
5868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5869 { echo "$as_me:$LINENO: result: failed" >&5
5870 echo "${ECHO_T}failed" >&6; }
5871 else
5872 { echo "$as_me:$LINENO: result: ok" >&5
5873 echo "${ECHO_T}ok" >&6; }
5874 fi
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 # Check whether --enable-libtool-lock was given.
5898 if test "${enable_libtool_lock+set}" = set; then
5899 enableval=$enable_libtool_lock;
5900 fi
5901
5902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5903
5904 # Some flags need to be propagated to the compiler or linker for good
5905 # libtool support.
5906 case $host in
5907 ia64-*-hpux*)
5908 # Find out which ABI we are using.
5909 echo 'int i;' > conftest.$ac_ext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; then
5915 case `/usr/bin/file conftest.$ac_objext` in
5916 *ELF-32*)
5917 HPUX_IA64_MODE="32"
5918 ;;
5919 *ELF-64*)
5920 HPUX_IA64_MODE="64"
5921 ;;
5922 esac
5923 fi
5924 rm -rf conftest*
5925 ;;
5926 *-*-irix6*)
5927 # Find out which ABI we are using.
5928 echo '#line 5929 "configure"' > conftest.$ac_ext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; then
5934 if test "$lt_cv_prog_gnu_ld" = yes; then
5935 case `/usr/bin/file conftest.$ac_objext` in
5936 *32-bit*)
5937 LD="${LD-ld} -melf32bsmip"
5938 ;;
5939 *N32*)
5940 LD="${LD-ld} -melf32bmipn32"
5941 ;;
5942 *64-bit*)
5943 LD="${LD-ld} -melf64bmip"
5944 ;;
5945 esac
5946 else
5947 case `/usr/bin/file conftest.$ac_objext` in
5948 *32-bit*)
5949 LD="${LD-ld} -32"
5950 ;;
5951 *N32*)
5952 LD="${LD-ld} -n32"
5953 ;;
5954 *64-bit*)
5955 LD="${LD-ld} -64"
5956 ;;
5957 esac
5958 fi
5959 fi
5960 rm -rf conftest*
5961 ;;
5962
5963 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5964 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5965 # Find out which ABI we are using.
5966 echo 'int i;' > conftest.$ac_ext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5968 (eval $ac_compile) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; then
5972 case `/usr/bin/file conftest.o` in
5973 *32-bit*)
5974 case $host in
5975 x86_64-*kfreebsd*-gnu)
5976 LD="${LD-ld} -m elf_i386_fbsd"
5977 ;;
5978 x86_64-*linux*)
5979 LD="${LD-ld} -m elf_i386"
5980 ;;
5981 ppc64-*linux*|powerpc64-*linux*)
5982 LD="${LD-ld} -m elf32ppclinux"
5983 ;;
5984 s390x-*linux*)
5985 LD="${LD-ld} -m elf_s390"
5986 ;;
5987 sparc64-*linux*)
5988 LD="${LD-ld} -m elf32_sparc"
5989 ;;
5990 esac
5991 ;;
5992 *64-bit*)
5993 case $host in
5994 x86_64-*kfreebsd*-gnu)
5995 LD="${LD-ld} -m elf_x86_64_fbsd"
5996 ;;
5997 x86_64-*linux*)
5998 LD="${LD-ld} -m elf_x86_64"
5999 ;;
6000 ppc*-*linux*|powerpc*-*linux*)
6001 LD="${LD-ld} -m elf64ppc"
6002 ;;
6003 s390*-*linux*|s390*-*tpf*)
6004 LD="${LD-ld} -m elf64_s390"
6005 ;;
6006 sparc*-*linux*)
6007 LD="${LD-ld} -m elf64_sparc"
6008 ;;
6009 esac
6010 ;;
6011 esac
6012 fi
6013 rm -rf conftest*
6014 ;;
6015
6016 *-*-sco3.2v5*)
6017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6018 SAVE_CFLAGS="$CFLAGS"
6019 CFLAGS="$CFLAGS -belf"
6020 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6021 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6022 if test "${lt_cv_cc_needs_belf+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 ac_ext=c
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037
6038 int
6039 main ()
6040 {
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 rm -f conftest.$ac_objext conftest$ac_exeext
6047 if { (ac_try="$ac_link"
6048 case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_link") 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest$ac_exeext &&
6063 $as_test_x conftest$ac_exeext; then
6064 lt_cv_cc_needs_belf=yes
6065 else
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 lt_cv_cc_needs_belf=no
6070 fi
6071
6072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6073 conftest$ac_exeext conftest.$ac_ext
6074 ac_ext=c
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
6080 fi
6081 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6082 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6083 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6084 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6085 CFLAGS="$SAVE_CFLAGS"
6086 fi
6087 ;;
6088 sparc*-*solaris*)
6089 # Find out which ABI we are using.
6090 echo 'int i;' > conftest.$ac_ext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; then
6096 case `/usr/bin/file conftest.o` in
6097 *64-bit*)
6098 case $lt_cv_prog_gnu_ld in
6099 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6100 *)
6101 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6102 LD="${LD-ld} -64"
6103 fi
6104 ;;
6105 esac
6106 ;;
6107 esac
6108 fi
6109 rm -rf conftest*
6110 ;;
6111 esac
6112
6113 need_locks="$enable_libtool_lock"
6114
6115
6116 case $host_os in
6117 rhapsody* | darwin*)
6118 if test -n "$ac_tool_prefix"; then
6119 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6120 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 if test -n "$DSYMUTIL"; then
6127 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140 done
6141 done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6147 if test -n "$DSYMUTIL"; then
6148 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6149 echo "${ECHO_T}$DSYMUTIL" >&6; }
6150 else
6151 { echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6; }
6153 fi
6154
6155
6156 fi
6157 if test -z "$ac_cv_prog_DSYMUTIL"; then
6158 ac_ct_DSYMUTIL=$DSYMUTIL
6159 # Extract the first word of "dsymutil", so it can be a program name with args.
6160 set dummy dsymutil; ac_word=$2
6161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6163 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 if test -n "$ac_ct_DSYMUTIL"; then
6167 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180 done
6181 done
6182 IFS=$as_save_IFS
6183
6184 fi
6185 fi
6186 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6187 if test -n "$ac_ct_DSYMUTIL"; then
6188 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6189 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6190 else
6191 { echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6; }
6193 fi
6194
6195 if test "x$ac_ct_DSYMUTIL" = x; then
6196 DSYMUTIL=":"
6197 else
6198 case $cross_compiling:$ac_tool_warned in
6199 yes:)
6200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6201 whose name does not start with the host triplet. If you think this
6202 configuration is useful to you, please write to autoconf@gnu.org." >&5
6203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6204 whose name does not start with the host triplet. If you think this
6205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6206 ac_tool_warned=yes ;;
6207 esac
6208 DSYMUTIL=$ac_ct_DSYMUTIL
6209 fi
6210 else
6211 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6212 fi
6213
6214 if test -n "$ac_tool_prefix"; then
6215 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6216 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6219 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 if test -n "$NMEDIT"; then
6223 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236 done
6237 done
6238 IFS=$as_save_IFS
6239
6240 fi
6241 fi
6242 NMEDIT=$ac_cv_prog_NMEDIT
6243 if test -n "$NMEDIT"; then
6244 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6245 echo "${ECHO_T}$NMEDIT" >&6; }
6246 else
6247 { echo "$as_me:$LINENO: result: no" >&5
6248 echo "${ECHO_T}no" >&6; }
6249 fi
6250
6251
6252 fi
6253 if test -z "$ac_cv_prog_NMEDIT"; then
6254 ac_ct_NMEDIT=$NMEDIT
6255 # Extract the first word of "nmedit", so it can be a program name with args.
6256 set dummy nmedit; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 if test -n "$ac_ct_NMEDIT"; then
6263 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6283 if test -n "$ac_ct_NMEDIT"; then
6284 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6285 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6286 else
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291 if test "x$ac_ct_NMEDIT" = x; then
6292 NMEDIT=":"
6293 else
6294 case $cross_compiling:$ac_tool_warned in
6295 yes:)
6296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6297 whose name does not start with the host triplet. If you think this
6298 configuration is useful to you, please write to autoconf@gnu.org." >&5
6299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6300 whose name does not start with the host triplet. If you think this
6301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6302 ac_tool_warned=yes ;;
6303 esac
6304 NMEDIT=$ac_ct_NMEDIT
6305 fi
6306 else
6307 NMEDIT="$ac_cv_prog_NMEDIT"
6308 fi
6309
6310 if test -n "$ac_tool_prefix"; then
6311 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6312 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_prog_LIPO+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 if test -n "$LIPO"; then
6319 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336 fi
6337 fi
6338 LIPO=$ac_cv_prog_LIPO
6339 if test -n "$LIPO"; then
6340 { echo "$as_me:$LINENO: result: $LIPO" >&5
6341 echo "${ECHO_T}$LIPO" >&6; }
6342 else
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345 fi
6346
6347
6348 fi
6349 if test -z "$ac_cv_prog_LIPO"; then
6350 ac_ct_LIPO=$LIPO
6351 # Extract the first word of "lipo", so it can be a program name with args.
6352 set dummy lipo; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 if test -n "$ac_ct_LIPO"; then
6359 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_ac_ct_LIPO="lipo"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6379 if test -n "$ac_ct_LIPO"; then
6380 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6381 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6382 else
6383 { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6385 fi
6386
6387 if test "x$ac_ct_LIPO" = x; then
6388 LIPO=":"
6389 else
6390 case $cross_compiling:$ac_tool_warned in
6391 yes:)
6392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6393 whose name does not start with the host triplet. If you think this
6394 configuration is useful to you, please write to autoconf@gnu.org." >&5
6395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6396 whose name does not start with the host triplet. If you think this
6397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400 LIPO=$ac_ct_LIPO
6401 fi
6402 else
6403 LIPO="$ac_cv_prog_LIPO"
6404 fi
6405
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}otool; ac_word=$2
6409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411 if test "${ac_cv_prog_OTOOL+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 if test -n "$OTOOL"; then
6415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 OTOOL=$ac_cv_prog_OTOOL
6435 if test -n "$OTOOL"; then
6436 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6437 echo "${ECHO_T}$OTOOL" >&6; }
6438 else
6439 { echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6; }
6441 fi
6442
6443
6444 fi
6445 if test -z "$ac_cv_prog_OTOOL"; then
6446 ac_ct_OTOOL=$OTOOL
6447 # Extract the first word of "otool", so it can be a program name with args.
6448 set dummy otool; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 if test -n "$ac_ct_OTOOL"; then
6455 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_ac_ct_OTOOL="otool"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6475 if test -n "$ac_ct_OTOOL"; then
6476 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6477 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6478 else
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483 if test "x$ac_ct_OTOOL" = x; then
6484 OTOOL=":"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6489 whose name does not start with the host triplet. If you think this
6490 configuration is useful to you, please write to autoconf@gnu.org." >&5
6491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6492 whose name does not start with the host triplet. If you think this
6493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6494 ac_tool_warned=yes ;;
6495 esac
6496 OTOOL=$ac_ct_OTOOL
6497 fi
6498 else
6499 OTOOL="$ac_cv_prog_OTOOL"
6500 fi
6501
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 if test -n "$OTOOL64"; then
6511 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 OTOOL64=$ac_cv_prog_OTOOL64
6531 if test -n "$OTOOL64"; then
6532 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6533 echo "${ECHO_T}$OTOOL64" >&6; }
6534 else
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6537 fi
6538
6539
6540 fi
6541 if test -z "$ac_cv_prog_OTOOL64"; then
6542 ac_ct_OTOOL64=$OTOOL64
6543 # Extract the first word of "otool64", so it can be a program name with args.
6544 set dummy otool64; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 if test -n "$ac_ct_OTOOL64"; then
6551 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_OTOOL64="otool64"
6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6571 if test -n "$ac_ct_OTOOL64"; then
6572 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6573 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6574 else
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6577 fi
6578
6579 if test "x$ac_ct_OTOOL64" = x; then
6580 OTOOL64=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6585 whose name does not start with the host triplet. If you think this
6586 configuration is useful to you, please write to autoconf@gnu.org." >&5
6587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6588 whose name does not start with the host triplet. If you think this
6589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6590 ac_tool_warned=yes ;;
6591 esac
6592 OTOOL64=$ac_ct_OTOOL64
6593 fi
6594 else
6595 OTOOL64="$ac_cv_prog_OTOOL64"
6596 fi
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6625 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6626 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 lt_cv_apple_cc_single_mod=no
6630 if test -z "${LT_MULTI_MODULE}"; then
6631 # By default we will add the -single_module flag. You can override
6632 # by either setting the environment variable LT_MULTI_MODULE
6633 # non-empty at configure time, or by adding -multi_module to the
6634 # link flags.
6635 rm -rf libconftest.dylib*
6636 echo "int foo(void){return 1;}" > conftest.c
6637 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6638 -dynamiclib -Wl,-single_module conftest.c" >&5
6639 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6640 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6641 _lt_result=$?
6642 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6643 lt_cv_apple_cc_single_mod=yes
6644 else
6645 cat conftest.err >&5
6646 fi
6647 rm -rf libconftest.dylib*
6648 rm -f conftest.*
6649 fi
6650 fi
6651 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6652 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6653 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6654 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6655 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658 lt_cv_ld_exported_symbols_list=no
6659 save_LDFLAGS=$LDFLAGS
6660 echo "_main" > conftest.sym
6661 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668
6669 int
6670 main ()
6671 {
6672
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (ac_try="$ac_link"
6679 case "(($ac_try" in
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6682 esac
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_link") 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest$ac_exeext &&
6694 $as_test_x conftest$ac_exeext; then
6695 lt_cv_ld_exported_symbols_list=yes
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700 lt_cv_ld_exported_symbols_list=no
6701 fi
6702
6703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6704 conftest$ac_exeext conftest.$ac_ext
6705 LDFLAGS="$save_LDFLAGS"
6706
6707 fi
6708 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6709 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6710 case $host_os in
6711 rhapsody* | darwin1.[012])
6712 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6713 darwin1.*)
6714 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6715 darwin*) # darwin 5.x on
6716 # if running on 10.5 or later, the deployment target defaults
6717 # to the OS version, if on x86, and 10.4, the deployment
6718 # target defaults to 10.4. Don't you love it?
6719 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6720 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6721 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6722 10.[012]*)
6723 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6724 10.*)
6725 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6726 esac
6727 ;;
6728 esac
6729 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6730 _lt_dar_single_mod='$single_module'
6731 fi
6732 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6733 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6734 else
6735 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6736 fi
6737 if test "$DSYMUTIL" != ":"; then
6738 _lt_dsymutil='~$DSYMUTIL $lib || :'
6739 else
6740 _lt_dsymutil=
6741 fi
6742 ;;
6743 esac
6744
6745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6756 inttypes.h stdint.h unistd.h
6757 do
6758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 $ac_includes_default
6771
6772 #include <$ac_header>
6773 _ACEOF
6774 rm -f conftest.$ac_objext
6775 if { (ac_try="$ac_compile"
6776 case "(($ac_try" in
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6779 esac
6780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781 (eval "$ac_compile") 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest.$ac_objext; then
6791 eval "$as_ac_Header=yes"
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 eval "$as_ac_Header=no"
6797 fi
6798
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 fi
6801 ac_res=`eval echo '${'$as_ac_Header'}'`
6802 { echo "$as_me:$LINENO: result: $ac_res" >&5
6803 echo "${ECHO_T}$ac_res" >&6; }
6804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6805 cat >>confdefs.h <<_ACEOF
6806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6807 _ACEOF
6808
6809 fi
6810
6811 done
6812
6813
6814
6815 for ac_header in dlfcn.h
6816 do
6817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6830
6831 #include <$ac_header>
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_compile") 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest.$ac_objext; then
6850 eval "$as_ac_Header=yes"
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855 eval "$as_ac_Header=no"
6856 fi
6857
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 fi
6860 ac_res=`eval echo '${'$as_ac_Header'}'`
6861 { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6864 cat >>confdefs.h <<_ACEOF
6865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 _ACEOF
6867
6868 fi
6869
6870 done
6871
6872
6873
6874 # Set options
6875
6876
6877
6878 enable_dlopen=no
6879
6880
6881 enable_win32_dll=no
6882
6883
6884 # Check whether --enable-shared was given.
6885 if test "${enable_shared+set}" = set; then
6886 enableval=$enable_shared; p=${PACKAGE-default}
6887 case $enableval in
6888 yes) enable_shared=yes ;;
6889 no) enable_shared=no ;;
6890 *)
6891 enable_shared=no
6892 # Look at the argument we got. We use all the common list separators.
6893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6894 for pkg in $enableval; do
6895 IFS="$lt_save_ifs"
6896 if test "X$pkg" = "X$p"; then
6897 enable_shared=yes
6898 fi
6899 done
6900 IFS="$lt_save_ifs"
6901 ;;
6902 esac
6903 else
6904 enable_shared=yes
6905 fi
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917 # Check whether --with-pic was given.
6918 if test "${with_pic+set}" = set; then
6919 withval=$with_pic; pic_mode="$withval"
6920 else
6921 pic_mode=default
6922 fi
6923
6924
6925 test -z "$pic_mode" && pic_mode=default
6926
6927
6928
6929
6930
6931
6932
6933 # Check whether --enable-fast-install was given.
6934 if test "${enable_fast_install+set}" = set; then
6935 enableval=$enable_fast_install; p=${PACKAGE-default}
6936 case $enableval in
6937 yes) enable_fast_install=yes ;;
6938 no) enable_fast_install=no ;;
6939 *)
6940 enable_fast_install=no
6941 # Look at the argument we got. We use all the common list separators.
6942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6943 for pkg in $enableval; do
6944 IFS="$lt_save_ifs"
6945 if test "X$pkg" = "X$p"; then
6946 enable_fast_install=yes
6947 fi
6948 done
6949 IFS="$lt_save_ifs"
6950 ;;
6951 esac
6952 else
6953 enable_fast_install=yes
6954 fi
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966 # This can be used to rebuild libtool when needed
6967 LIBTOOL_DEPS="$ltmain"
6968
6969 # Always use our own libtool.
6970 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996 test -z "$LN_S" && LN_S="ln -s"
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011 if test -n "${ZSH_VERSION+set}" ; then
7012 setopt NO_GLOB_SUBST
7013 fi
7014
7015 { echo "$as_me:$LINENO: checking for objdir" >&5
7016 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7017 if test "${lt_cv_objdir+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 rm -f .libs 2>/dev/null
7021 mkdir .libs 2>/dev/null
7022 if test -d .libs; then
7023 lt_cv_objdir=.libs
7024 else
7025 # MS-DOS does not allow filenames that begin with a dot.
7026 lt_cv_objdir=_libs
7027 fi
7028 rmdir .libs 2>/dev/null
7029 fi
7030 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7031 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7032 objdir=$lt_cv_objdir
7033
7034
7035
7036
7037
7038 cat >>confdefs.h <<_ACEOF
7039 #define LT_OBJDIR "$lt_cv_objdir/"
7040 _ACEOF
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 case $host_os in
7059 aix3*)
7060 # AIX sometimes has problems with the GCC collect2 program. For some
7061 # reason, if we set the COLLECT_NAMES environment variable, the problems
7062 # vanish in a puff of smoke.
7063 if test "X${COLLECT_NAMES+set}" != Xset; then
7064 COLLECT_NAMES=
7065 export COLLECT_NAMES
7066 fi
7067 ;;
7068 esac
7069
7070 # Sed substitution that helps us do robust quoting. It backslashifies
7071 # metacharacters that are still active within double-quoted strings.
7072 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7073
7074 # Same as above, but do not quote variable references.
7075 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7076
7077 # Sed substitution to delay expansion of an escaped shell variable in a
7078 # double_quote_subst'ed string.
7079 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7080
7081 # Sed substitution to delay expansion of an escaped single quote.
7082 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7083
7084 # Sed substitution to avoid accidental globbing in evaled expressions
7085 no_glob_subst='s/\*/\\\*/g'
7086
7087 # Global variables:
7088 ofile=libtool
7089 can_build_shared=yes
7090
7091 # All known linkers require a `.a' archive for static linking (except MSVC,
7092 # which needs '.lib').
7093 libext=a
7094
7095 with_gnu_ld="$lt_cv_prog_gnu_ld"
7096
7097 old_CC="$CC"
7098 old_CFLAGS="$CFLAGS"
7099
7100 # Set sane defaults for various variables
7101 test -z "$CC" && CC=cc
7102 test -z "$LTCC" && LTCC=$CC
7103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7104 test -z "$LD" && LD=ld
7105 test -z "$ac_objext" && ac_objext=o
7106
7107 for cc_temp in $compiler""; do
7108 case $cc_temp in
7109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7111 \-*) ;;
7112 *) break;;
7113 esac
7114 done
7115 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7116
7117
7118 # Only perform the check for file, if the check method requires it
7119 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7120 case $deplibs_check_method in
7121 file_magic*)
7122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7123 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 case $MAGIC_CMD in
7129 [\\/*] | ?:[\\/]*)
7130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7131 ;;
7132 *)
7133 lt_save_MAGIC_CMD="$MAGIC_CMD"
7134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136 for ac_dir in $ac_dummy; do
7137 IFS="$lt_save_ifs"
7138 test -z "$ac_dir" && ac_dir=.
7139 if test -f $ac_dir/${ac_tool_prefix}file; then
7140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141 if test -n "$file_magic_test_file"; then
7142 case $deplibs_check_method in
7143 "file_magic "*)
7144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147 $EGREP "$file_magic_regex" > /dev/null; then
7148 :
7149 else
7150 cat <<_LT_EOF 1>&2
7151
7152 *** Warning: the command libtool uses to detect shared libraries,
7153 *** $file_magic_cmd, produces output that libtool cannot recognize.
7154 *** The result is that libtool may fail to recognize shared libraries
7155 *** as such. This will affect the creation of libtool libraries that
7156 *** depend on shared libraries, but programs linked with such libtool
7157 *** libraries will work regardless of this problem. Nevertheless, you
7158 *** may want to report the problem to your system manager and/or to
7159 *** bug-libtool@gnu.org
7160
7161 _LT_EOF
7162 fi ;;
7163 esac
7164 fi
7165 break
7166 fi
7167 done
7168 IFS="$lt_save_ifs"
7169 MAGIC_CMD="$lt_save_MAGIC_CMD"
7170 ;;
7171 esac
7172 fi
7173
7174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175 if test -n "$MAGIC_CMD"; then
7176 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7178 else
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7181 fi
7182
7183
7184
7185
7186
7187 if test -z "$lt_cv_path_MAGIC_CMD"; then
7188 if test -n "$ac_tool_prefix"; then
7189 { echo "$as_me:$LINENO: checking for file" >&5
7190 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 case $MAGIC_CMD in
7195 [\\/*] | ?:[\\/]*)
7196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7197 ;;
7198 *)
7199 lt_save_MAGIC_CMD="$MAGIC_CMD"
7200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7202 for ac_dir in $ac_dummy; do
7203 IFS="$lt_save_ifs"
7204 test -z "$ac_dir" && ac_dir=.
7205 if test -f $ac_dir/file; then
7206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7207 if test -n "$file_magic_test_file"; then
7208 case $deplibs_check_method in
7209 "file_magic "*)
7210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7213 $EGREP "$file_magic_regex" > /dev/null; then
7214 :
7215 else
7216 cat <<_LT_EOF 1>&2
7217
7218 *** Warning: the command libtool uses to detect shared libraries,
7219 *** $file_magic_cmd, produces output that libtool cannot recognize.
7220 *** The result is that libtool may fail to recognize shared libraries
7221 *** as such. This will affect the creation of libtool libraries that
7222 *** depend on shared libraries, but programs linked with such libtool
7223 *** libraries will work regardless of this problem. Nevertheless, you
7224 *** may want to report the problem to your system manager and/or to
7225 *** bug-libtool@gnu.org
7226
7227 _LT_EOF
7228 fi ;;
7229 esac
7230 fi
7231 break
7232 fi
7233 done
7234 IFS="$lt_save_ifs"
7235 MAGIC_CMD="$lt_save_MAGIC_CMD"
7236 ;;
7237 esac
7238 fi
7239
7240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241 if test -n "$MAGIC_CMD"; then
7242 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7243 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7244 else
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249
7250 else
7251 MAGIC_CMD=:
7252 fi
7253 fi
7254
7255 fi
7256 ;;
7257 esac
7258
7259 # Use C for the default configuration in the libtool script
7260
7261 lt_save_CC="$CC"
7262 ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269 # Source file extension for C test sources.
7270 ac_ext=c
7271
7272 # Object file extension for compiled C test sources.
7273 objext=o
7274 objext=$objext
7275
7276 # Code to be used in simple compile tests
7277 lt_simple_compile_test_code="int some_variable = 0;"
7278
7279 # Code to be used in simple link tests
7280 lt_simple_link_test_code='int main(){return(0);}'
7281
7282
7283
7284
7285
7286
7287
7288 # If no C compiler was specified, use CC.
7289 LTCC=${LTCC-"$CC"}
7290
7291 # If no C compiler flags were specified, use CFLAGS.
7292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7293
7294 # Allow CC to be a program name with arguments.
7295 compiler=$CC
7296
7297 # Save the default compiler, since it gets overwritten when the other
7298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7299 compiler_DEFAULT=$CC
7300
7301 # save warnings/boilerplate of simple test code
7302 ac_outfile=conftest.$ac_objext
7303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7305 _lt_compiler_boilerplate=`cat conftest.err`
7306 $RM conftest*
7307
7308 ac_outfile=conftest.$ac_objext
7309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7311 _lt_linker_boilerplate=`cat conftest.err`
7312 $RM -r conftest*
7313
7314
7315 if test -n "$compiler"; then
7316
7317 lt_prog_compiler_no_builtin_flag=
7318
7319 if test "$GCC" = yes; then
7320 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7321
7322 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7323 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7324 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 lt_cv_prog_compiler_rtti_exceptions=no
7328 ac_outfile=conftest.$ac_objext
7329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7330 lt_compiler_flag="-fno-rtti -fno-exceptions"
7331 # Insert the option either (1) after the last *FLAGS variable, or
7332 # (2) before a word containing "conftest.", or (3) at the end.
7333 # Note that $ac_compile itself does not contain backslashes and begins
7334 # with a dollar sign (not a hyphen), so the echo should work correctly.
7335 # The option is referenced via a variable to avoid confusing sed.
7336 lt_compile=`echo "$ac_compile" | $SED \
7337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7339 -e 's:$: $lt_compiler_flag:'`
7340 (eval echo "\"\$as_me:7341: $lt_compile\"" >&5)
7341 (eval "$lt_compile" 2>conftest.err)
7342 ac_status=$?
7343 cat conftest.err >&5
7344 echo "$as_me:7345: \$? = $ac_status" >&5
7345 if (exit $ac_status) && test -s "$ac_outfile"; then
7346 # The compiler can only warn and ignore the option if not recognized
7347 # So say no if there are warnings other than the usual output.
7348 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7351 lt_cv_prog_compiler_rtti_exceptions=yes
7352 fi
7353 fi
7354 $RM conftest*
7355
7356 fi
7357 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7358 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7359
7360 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7361 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7362 else
7363 :
7364 fi
7365
7366 fi
7367
7368
7369
7370
7371
7372
7373 lt_prog_compiler_wl=
7374 lt_prog_compiler_pic=
7375 lt_prog_compiler_static=
7376
7377 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7378 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7379
7380 if test "$GCC" = yes; then
7381 lt_prog_compiler_wl='-Wl,'
7382 lt_prog_compiler_static='-static'
7383
7384 case $host_os in
7385 aix*)
7386 # All AIX code is PIC.
7387 if test "$host_cpu" = ia64; then
7388 # AIX 5 now supports IA64 processor
7389 lt_prog_compiler_static='-Bstatic'
7390 fi
7391 ;;
7392
7393 amigaos*)
7394 case $host_cpu in
7395 powerpc)
7396 # see comment about AmigaOS4 .so support
7397 lt_prog_compiler_pic='-fPIC'
7398 ;;
7399 m68k)
7400 # FIXME: we need at least 68020 code to build shared libraries, but
7401 # adding the `-m68020' flag to GCC prevents building anything better,
7402 # like `-m68040'.
7403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7404 ;;
7405 esac
7406 ;;
7407
7408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7409 # PIC is the default for these OSes.
7410 ;;
7411
7412 mingw* | cygwin* | pw32* | os2*)
7413 # This hack is so that the source file can tell whether it is being
7414 # built for inclusion in a dll (and should export symbols for example).
7415 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7416 # (--disable-auto-import) libraries
7417 lt_prog_compiler_pic='-DDLL_EXPORT'
7418 ;;
7419
7420 darwin* | rhapsody*)
7421 # PIC is the default on this platform
7422 # Common symbols not allowed in MH_DYLIB files
7423 lt_prog_compiler_pic='-fno-common'
7424 ;;
7425
7426 hpux*)
7427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7428 # not for PA HP-UX.
7429 case $host_cpu in
7430 hppa*64*|ia64*)
7431 # +Z the default
7432 ;;
7433 *)
7434 lt_prog_compiler_pic='-fPIC'
7435 ;;
7436 esac
7437 ;;
7438
7439 interix[3-9]*)
7440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7441 # Instead, we relocate shared libraries at runtime.
7442 ;;
7443
7444 msdosdjgpp*)
7445 # Just because we use GCC doesn't mean we suddenly get shared libraries
7446 # on systems that don't support them.
7447 lt_prog_compiler_can_build_shared=no
7448 enable_shared=no
7449 ;;
7450
7451 *nto* | *qnx*)
7452 # QNX uses GNU C++, but need to define -shared option too, otherwise
7453 # it will coredump.
7454 lt_prog_compiler_pic='-fPIC -shared'
7455 ;;
7456
7457 sysv4*MP*)
7458 if test -d /usr/nec; then
7459 lt_prog_compiler_pic=-Kconform_pic
7460 fi
7461 ;;
7462
7463 *)
7464 lt_prog_compiler_pic='-fPIC'
7465 ;;
7466 esac
7467 else
7468 # PORTME Check for flag to pass linker flags through the system compiler.
7469 case $host_os in
7470 aix*)
7471 lt_prog_compiler_wl='-Wl,'
7472 if test "$host_cpu" = ia64; then
7473 # AIX 5 now supports IA64 processor
7474 lt_prog_compiler_static='-Bstatic'
7475 else
7476 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7477 fi
7478 ;;
7479
7480 mingw* | cygwin* | pw32* | os2*)
7481 # This hack is so that the source file can tell whether it is being
7482 # built for inclusion in a dll (and should export symbols for example).
7483 lt_prog_compiler_pic='-DDLL_EXPORT'
7484 ;;
7485
7486 hpux9* | hpux10* | hpux11*)
7487 lt_prog_compiler_wl='-Wl,'
7488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7489 # not for PA HP-UX.
7490 case $host_cpu in
7491 hppa*64*|ia64*)
7492 # +Z the default
7493 ;;
7494 *)
7495 lt_prog_compiler_pic='+Z'
7496 ;;
7497 esac
7498 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7499 lt_prog_compiler_static='${wl}-a ${wl}archive'
7500 ;;
7501
7502 irix5* | irix6* | nonstopux*)
7503 lt_prog_compiler_wl='-Wl,'
7504 # PIC (with -KPIC) is the default.
7505 lt_prog_compiler_static='-non_shared'
7506 ;;
7507
7508 linux* | k*bsd*-gnu)
7509 case $cc_basename in
7510 icc* | ecc* | ifort*)
7511 lt_prog_compiler_wl='-Wl,'
7512 lt_prog_compiler_pic='-KPIC'
7513 lt_prog_compiler_static='-static'
7514 ;;
7515 pgcc* | pgf77* | pgf90* | pgf95*)
7516 # Portland Group compilers (*not* the Pentium gcc compiler,
7517 # which looks to be a dead project)
7518 lt_prog_compiler_wl='-Wl,'
7519 lt_prog_compiler_pic='-fpic'
7520 lt_prog_compiler_static='-Bstatic'
7521 ;;
7522 ccc*)
7523 lt_prog_compiler_wl='-Wl,'
7524 # All Alpha code is PIC.
7525 lt_prog_compiler_static='-non_shared'
7526 ;;
7527 xl*)
7528 # IBM XL C 8.0/Fortran 10.1 on PPC
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_pic='-qpic'
7531 lt_prog_compiler_static='-qstaticlink'
7532 ;;
7533 *)
7534 case `$CC -V 2>&1 | sed 5q` in
7535 *Sun\ C*)
7536 # Sun C 5.9
7537 lt_prog_compiler_pic='-KPIC'
7538 lt_prog_compiler_static='-Bstatic'
7539 lt_prog_compiler_wl='-Wl,'
7540 ;;
7541 *Sun\ F*)
7542 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7543 lt_prog_compiler_pic='-KPIC'
7544 lt_prog_compiler_static='-Bstatic'
7545 lt_prog_compiler_wl=''
7546 ;;
7547 esac
7548 ;;
7549 esac
7550 ;;
7551
7552 newsos6)
7553 lt_prog_compiler_pic='-KPIC'
7554 lt_prog_compiler_static='-Bstatic'
7555 ;;
7556
7557 *nto* | *qnx*)
7558 # QNX uses GNU C++, but need to define -shared option too, otherwise
7559 # it will coredump.
7560 lt_prog_compiler_pic='-fPIC -shared'
7561 ;;
7562
7563 osf3* | osf4* | osf5*)
7564 lt_prog_compiler_wl='-Wl,'
7565 # All OSF/1 code is PIC.
7566 lt_prog_compiler_static='-non_shared'
7567 ;;
7568
7569 rdos*)
7570 lt_prog_compiler_static='-non_shared'
7571 ;;
7572
7573 solaris*)
7574 lt_prog_compiler_pic='-KPIC'
7575 lt_prog_compiler_static='-Bstatic'
7576 case $cc_basename in
7577 f77* | f90* | f95*)
7578 lt_prog_compiler_wl='-Qoption ld ';;
7579 *)
7580 lt_prog_compiler_wl='-Wl,';;
7581 esac
7582 ;;
7583
7584 sunos4*)
7585 lt_prog_compiler_wl='-Qoption ld '
7586 lt_prog_compiler_pic='-PIC'
7587 lt_prog_compiler_static='-Bstatic'
7588 ;;
7589
7590 sysv4 | sysv4.2uw2* | sysv4.3*)
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_pic='-KPIC'
7593 lt_prog_compiler_static='-Bstatic'
7594 ;;
7595
7596 sysv4*MP*)
7597 if test -d /usr/nec ;then
7598 lt_prog_compiler_pic='-Kconform_pic'
7599 lt_prog_compiler_static='-Bstatic'
7600 fi
7601 ;;
7602
7603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_pic='-KPIC'
7606 lt_prog_compiler_static='-Bstatic'
7607 ;;
7608
7609 unicos*)
7610 lt_prog_compiler_wl='-Wl,'
7611 lt_prog_compiler_can_build_shared=no
7612 ;;
7613
7614 uts4*)
7615 lt_prog_compiler_pic='-pic'
7616 lt_prog_compiler_static='-Bstatic'
7617 ;;
7618
7619 *)
7620 lt_prog_compiler_can_build_shared=no
7621 ;;
7622 esac
7623 fi
7624
7625 case $host_os in
7626 # For platforms which do not support PIC, -DPIC is meaningless:
7627 *djgpp*)
7628 lt_prog_compiler_pic=
7629 ;;
7630 *)
7631 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7632 ;;
7633 esac
7634 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7635 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7636
7637
7638
7639
7640
7641
7642 #
7643 # Check to make sure the PIC flag actually works.
7644 #
7645 if test -n "$lt_prog_compiler_pic"; then
7646 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7647 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7648 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 lt_cv_prog_compiler_pic_works=no
7652 ac_outfile=conftest.$ac_objext
7653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7654 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7655 # Insert the option either (1) after the last *FLAGS variable, or
7656 # (2) before a word containing "conftest.", or (3) at the end.
7657 # Note that $ac_compile itself does not contain backslashes and begins
7658 # with a dollar sign (not a hyphen), so the echo should work correctly.
7659 # The option is referenced via a variable to avoid confusing sed.
7660 lt_compile=`echo "$ac_compile" | $SED \
7661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7663 -e 's:$: $lt_compiler_flag:'`
7664 (eval echo "\"\$as_me:7665: $lt_compile\"" >&5)
7665 (eval "$lt_compile" 2>conftest.err)
7666 ac_status=$?
7667 cat conftest.err >&5
7668 echo "$as_me:7669: \$? = $ac_status" >&5
7669 if (exit $ac_status) && test -s "$ac_outfile"; then
7670 # The compiler can only warn and ignore the option if not recognized
7671 # So say no if there are warnings other than the usual output.
7672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7675 lt_cv_prog_compiler_pic_works=yes
7676 fi
7677 fi
7678 $RM conftest*
7679
7680 fi
7681 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7682 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7683
7684 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7685 case $lt_prog_compiler_pic in
7686 "" | " "*) ;;
7687 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7688 esac
7689 else
7690 lt_prog_compiler_pic=
7691 lt_prog_compiler_can_build_shared=no
7692 fi
7693
7694 fi
7695
7696
7697
7698
7699
7700
7701 #
7702 # Check to make sure the static flag actually works.
7703 #
7704 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7705 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7706 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7707 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 lt_cv_prog_compiler_static_works=no
7711 save_LDFLAGS="$LDFLAGS"
7712 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7713 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7715 # The linker can only warn and ignore the option if not recognized
7716 # So say no if there are warnings
7717 if test -s conftest.err; then
7718 # Append any errors to the config.log.
7719 cat conftest.err 1>&5
7720 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722 if diff conftest.exp conftest.er2 >/dev/null; then
7723 lt_cv_prog_compiler_static_works=yes
7724 fi
7725 else
7726 lt_cv_prog_compiler_static_works=yes
7727 fi
7728 fi
7729 $RM -r conftest*
7730 LDFLAGS="$save_LDFLAGS"
7731
7732 fi
7733 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7734 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7735
7736 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7737 :
7738 else
7739 lt_prog_compiler_static=
7740 fi
7741
7742
7743
7744
7745
7746
7747
7748 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7749 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7750 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 lt_cv_prog_compiler_c_o=no
7754 $RM -r conftest 2>/dev/null
7755 mkdir conftest
7756 cd conftest
7757 mkdir out
7758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7759
7760 lt_compiler_flag="-o out/conftest2.$ac_objext"
7761 # Insert the option either (1) after the last *FLAGS variable, or
7762 # (2) before a word containing "conftest.", or (3) at the end.
7763 # Note that $ac_compile itself does not contain backslashes and begins
7764 # with a dollar sign (not a hyphen), so the echo should work correctly.
7765 lt_compile=`echo "$ac_compile" | $SED \
7766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7768 -e 's:$: $lt_compiler_flag:'`
7769 (eval echo "\"\$as_me:7770: $lt_compile\"" >&5)
7770 (eval "$lt_compile" 2>out/conftest.err)
7771 ac_status=$?
7772 cat out/conftest.err >&5
7773 echo "$as_me:7774: \$? = $ac_status" >&5
7774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7775 then
7776 # The compiler can only warn and ignore the option if not recognized
7777 # So say no if there are warnings
7778 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7781 lt_cv_prog_compiler_c_o=yes
7782 fi
7783 fi
7784 chmod u+w . 2>&5
7785 $RM conftest*
7786 # SGI C++ compiler will create directory out/ii_files/ for
7787 # template instantiation
7788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7789 $RM out/* && rmdir out
7790 cd ..
7791 $RM -r conftest
7792 $RM conftest*
7793
7794 fi
7795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7796 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7797
7798
7799
7800
7801
7802
7803 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 lt_cv_prog_compiler_c_o=no
7809 $RM -r conftest 2>/dev/null
7810 mkdir conftest
7811 cd conftest
7812 mkdir out
7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7814
7815 lt_compiler_flag="-o out/conftest2.$ac_objext"
7816 # Insert the option either (1) after the last *FLAGS variable, or
7817 # (2) before a word containing "conftest.", or (3) at the end.
7818 # Note that $ac_compile itself does not contain backslashes and begins
7819 # with a dollar sign (not a hyphen), so the echo should work correctly.
7820 lt_compile=`echo "$ac_compile" | $SED \
7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823 -e 's:$: $lt_compiler_flag:'`
7824 (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
7825 (eval "$lt_compile" 2>out/conftest.err)
7826 ac_status=$?
7827 cat out/conftest.err >&5
7828 echo "$as_me:7829: \$? = $ac_status" >&5
7829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7830 then
7831 # The compiler can only warn and ignore the option if not recognized
7832 # So say no if there are warnings
7833 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7836 lt_cv_prog_compiler_c_o=yes
7837 fi
7838 fi
7839 chmod u+w . 2>&5
7840 $RM conftest*
7841 # SGI C++ compiler will create directory out/ii_files/ for
7842 # template instantiation
7843 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7844 $RM out/* && rmdir out
7845 cd ..
7846 $RM -r conftest
7847 $RM conftest*
7848
7849 fi
7850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7852
7853
7854
7855
7856 hard_links="nottested"
7857 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7858 # do not overwrite the value of need_locks provided by the user
7859 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7860 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7861 hard_links=yes
7862 $RM conftest*
7863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7864 touch conftest.a
7865 ln conftest.a conftest.b 2>&5 || hard_links=no
7866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867 { echo "$as_me:$LINENO: result: $hard_links" >&5
7868 echo "${ECHO_T}$hard_links" >&6; }
7869 if test "$hard_links" = no; then
7870 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7871 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7872 need_locks=warn
7873 fi
7874 else
7875 need_locks=no
7876 fi
7877
7878
7879
7880
7881
7882
7883 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7884 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7885
7886 runpath_var=
7887 allow_undefined_flag=
7888 always_export_symbols=no
7889 archive_cmds=
7890 archive_expsym_cmds=
7891 compiler_needs_object=no
7892 enable_shared_with_static_runtimes=no
7893 export_dynamic_flag_spec=
7894 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7895 hardcode_automatic=no
7896 hardcode_direct=no
7897 hardcode_direct_absolute=no
7898 hardcode_libdir_flag_spec=
7899 hardcode_libdir_flag_spec_ld=
7900 hardcode_libdir_separator=
7901 hardcode_minus_L=no
7902 hardcode_shlibpath_var=unsupported
7903 inherit_rpath=no
7904 link_all_deplibs=unknown
7905 module_cmds=
7906 module_expsym_cmds=
7907 old_archive_from_new_cmds=
7908 old_archive_from_expsyms_cmds=
7909 thread_safe_flag_spec=
7910 whole_archive_flag_spec=
7911 # include_expsyms should be a list of space-separated symbols to be *always*
7912 # included in the symbol list
7913 include_expsyms=
7914 # exclude_expsyms can be an extended regexp of symbols to exclude
7915 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7916 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7917 # as well as any symbol that contains `d'.
7918 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7919 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7920 # platforms (ab)use it in PIC code, but their linkers get confused if
7921 # the symbol is explicitly referenced. Since portable code cannot
7922 # rely on this symbol name, it's probably fine to never include it in
7923 # preloaded symbol tables.
7924 # Exclude shared library initialization/finalization symbols.
7925 extract_expsyms_cmds=
7926
7927 case $host_os in
7928 cygwin* | mingw* | pw32*)
7929 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7930 # When not using gcc, we currently assume that we are using
7931 # Microsoft Visual C++.
7932 if test "$GCC" != yes; then
7933 with_gnu_ld=no
7934 fi
7935 ;;
7936 interix*)
7937 # we just hope/assume this is gcc and not c89 (= MSVC++)
7938 with_gnu_ld=yes
7939 ;;
7940 openbsd*)
7941 with_gnu_ld=no
7942 ;;
7943 esac
7944
7945 ld_shlibs=yes
7946 if test "$with_gnu_ld" = yes; then
7947 # If archive_cmds runs LD, not CC, wlarc should be empty
7948 wlarc='${wl}'
7949
7950 # Set some defaults for GNU ld with shared library support. These
7951 # are reset later if shared libraries are not supported. Putting them
7952 # here allows them to be overridden if necessary.
7953 runpath_var=LD_RUN_PATH
7954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7955 export_dynamic_flag_spec='${wl}--export-dynamic'
7956 # ancient GNU ld didn't support --whole-archive et. al.
7957 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7958 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7959 else
7960 whole_archive_flag_spec=
7961 fi
7962 supports_anon_versioning=no
7963 case `$LD -v 2>&1` in
7964 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7965 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7966 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7967 *\ 2.11.*) ;; # other 2.11 versions
7968 *) supports_anon_versioning=yes ;;
7969 esac
7970
7971 # See if GNU ld supports shared libraries.
7972 case $host_os in
7973 aix[3-9]*)
7974 # On AIX/PPC, the GNU linker is very broken
7975 if test "$host_cpu" != ia64; then
7976 ld_shlibs=no
7977 cat <<_LT_EOF 1>&2
7978
7979 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7980 *** to be unable to reliably create shared libraries on AIX.
7981 *** Therefore, libtool is disabling shared libraries support. If you
7982 *** really care for shared libraries, you may want to modify your PATH
7983 *** so that a non-GNU linker is found, and then restart.
7984
7985 _LT_EOF
7986 fi
7987 ;;
7988
7989 amigaos*)
7990 case $host_cpu in
7991 powerpc)
7992 # see comment about AmigaOS4 .so support
7993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994 archive_expsym_cmds=''
7995 ;;
7996 m68k)
7997 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)'
7998 hardcode_libdir_flag_spec='-L$libdir'
7999 hardcode_minus_L=yes
8000 ;;
8001 esac
8002 ;;
8003
8004 beos*)
8005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8006 allow_undefined_flag=unsupported
8007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8008 # support --undefined. This deserves some investigation. FIXME
8009 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010 else
8011 ld_shlibs=no
8012 fi
8013 ;;
8014
8015 cygwin* | mingw* | pw32*)
8016 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8017 # as there is no search path for DLLs.
8018 hardcode_libdir_flag_spec='-L$libdir'
8019 allow_undefined_flag=unsupported
8020 always_export_symbols=no
8021 enable_shared_with_static_runtimes=yes
8022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8023
8024 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8026 # If the export-symbols file already is a .def file (1st line
8027 # is EXPORTS), use it as is; otherwise, prepend...
8028 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8029 cp $export_symbols $output_objdir/$soname.def;
8030 else
8031 echo EXPORTS > $output_objdir/$soname.def;
8032 cat $export_symbols >> $output_objdir/$soname.def;
8033 fi~
8034 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8035 else
8036 ld_shlibs=no
8037 fi
8038 ;;
8039
8040 interix[3-9]*)
8041 hardcode_direct=no
8042 hardcode_shlibpath_var=no
8043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8044 export_dynamic_flag_spec='${wl}-E'
8045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8046 # Instead, shared libraries are loaded at an image base (0x10000000 by
8047 # default) and relocated if they conflict, which is a slow very memory
8048 # consuming and fragmenting process. To avoid this, we pick a random,
8049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8052 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'
8053 ;;
8054
8055 gnu* | linux* | tpf* | k*bsd*-gnu)
8056 tmp_diet=no
8057 if test "$host_os" = linux-dietlibc; then
8058 case $cc_basename in
8059 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8060 esac
8061 fi
8062 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8063 && test "$tmp_diet" = no
8064 then
8065 tmp_addflag=
8066 tmp_sharedflag='-shared'
8067 case $cc_basename,$host_cpu in
8068 pgcc*) # Portland Group C compiler
8069 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'
8070 tmp_addflag=' $pic_flag'
8071 ;;
8072 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8073 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'
8074 tmp_addflag=' $pic_flag -Mnomain' ;;
8075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8076 tmp_addflag=' -i_dynamic' ;;
8077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8078 tmp_addflag=' -i_dynamic -nofor_main' ;;
8079 ifc* | ifort*) # Intel Fortran compiler
8080 tmp_addflag=' -nofor_main' ;;
8081 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8082 tmp_sharedflag='-qmkshrobj'
8083 tmp_addflag= ;;
8084 esac
8085 case `$CC -V 2>&1 | sed 5q` in
8086 *Sun\ C*) # Sun C 5.9
8087 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'
8088 compiler_needs_object=yes
8089 tmp_sharedflag='-G' ;;
8090 *Sun\ F*) # Sun Fortran 8.3
8091 tmp_sharedflag='-G' ;;
8092 esac
8093 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094
8095 if test "x$supports_anon_versioning" = xyes; then
8096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8098 echo "local: *; };" >> $output_objdir/$libname.ver~
8099 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8100 fi
8101
8102 case $cc_basename in
8103 xlf*)
8104 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8105 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8106 hardcode_libdir_flag_spec=
8107 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8108 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8109 if test "x$supports_anon_versioning" = xyes; then
8110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8112 echo "local: *; };" >> $output_objdir/$libname.ver~
8113 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8114 fi
8115 ;;
8116 esac
8117 else
8118 ld_shlibs=no
8119 fi
8120 ;;
8121
8122 netbsd* | netbsdelf*-gnu)
8123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8124 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8125 wlarc=
8126 else
8127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8129 fi
8130 ;;
8131
8132 solaris*)
8133 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8134 ld_shlibs=no
8135 cat <<_LT_EOF 1>&2
8136
8137 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8138 *** create shared libraries on Solaris systems. Therefore, libtool
8139 *** is disabling shared libraries support. We urge you to upgrade GNU
8140 *** binutils to release 2.9.1 or newer. Another option is to modify
8141 *** your PATH or compiler configuration so that the native linker is
8142 *** used, and then restart.
8143
8144 _LT_EOF
8145 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8148 else
8149 ld_shlibs=no
8150 fi
8151 ;;
8152
8153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8154 case `$LD -v 2>&1` in
8155 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8156 ld_shlibs=no
8157 cat <<_LT_EOF 1>&2
8158
8159 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8160 *** reliably create shared libraries on SCO systems. Therefore, libtool
8161 *** is disabling shared libraries support. We urge you to upgrade GNU
8162 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8163 *** your PATH or compiler configuration so that the native linker is
8164 *** used, and then restart.
8165
8166 _LT_EOF
8167 ;;
8168 *)
8169 # For security reasons, it is highly recommended that you always
8170 # use absolute paths for naming shared libraries, and exclude the
8171 # DT_RUNPATH tag from executables and libraries. But doing so
8172 # requires that you compile everything twice, which is a pain.
8173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8177 else
8178 ld_shlibs=no
8179 fi
8180 ;;
8181 esac
8182 ;;
8183
8184 sunos4*)
8185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8186 wlarc=
8187 hardcode_direct=yes
8188 hardcode_shlibpath_var=no
8189 ;;
8190
8191 *)
8192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8195 else
8196 ld_shlibs=no
8197 fi
8198 ;;
8199 esac
8200
8201 if test "$ld_shlibs" = no; then
8202 runpath_var=
8203 hardcode_libdir_flag_spec=
8204 export_dynamic_flag_spec=
8205 whole_archive_flag_spec=
8206 fi
8207 else
8208 # PORTME fill in a description of your system's linker (not GNU ld)
8209 case $host_os in
8210 aix3*)
8211 allow_undefined_flag=unsupported
8212 always_export_symbols=yes
8213 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'
8214 # Note: this linker hardcodes the directories in LIBPATH if there
8215 # are no directories specified by -L.
8216 hardcode_minus_L=yes
8217 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8218 # Neither direct hardcoding nor static linking is supported with a
8219 # broken collect2.
8220 hardcode_direct=unsupported
8221 fi
8222 ;;
8223
8224 aix[4-9]*)
8225 if test "$host_cpu" = ia64; then
8226 # On IA64, the linker does run time linking by default, so we don't
8227 # have to do anything special.
8228 aix_use_runtimelinking=no
8229 exp_sym_flag='-Bexport'
8230 no_entry_flag=""
8231 else
8232 # If we're using GNU nm, then we don't want the "-C" option.
8233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8234 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8235 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'
8236 else
8237 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'
8238 fi
8239 aix_use_runtimelinking=no
8240
8241 # Test if we are trying to use run time linking or normal
8242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8243 # need to do runtime linking.
8244 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8245 for ld_flag in $LDFLAGS; do
8246 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8247 aix_use_runtimelinking=yes
8248 break
8249 fi
8250 done
8251 ;;
8252 esac
8253
8254 exp_sym_flag='-bexport'
8255 no_entry_flag='-bnoentry'
8256 fi
8257
8258 # When large executables or shared objects are built, AIX ld can
8259 # have problems creating the table of contents. If linking a library
8260 # or program results in "error TOC overflow" add -mminimal-toc to
8261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8263
8264 archive_cmds=''
8265 hardcode_direct=yes
8266 hardcode_direct_absolute=yes
8267 hardcode_libdir_separator=':'
8268 link_all_deplibs=yes
8269 file_list_spec='${wl}-f,'
8270
8271 if test "$GCC" = yes; then
8272 case $host_os in aix4.[012]|aix4.[012].*)
8273 # We only want to do this on AIX 4.2 and lower, the check
8274 # below for broken collect2 doesn't work under 4.3+
8275 collect2name=`${CC} -print-prog-name=collect2`
8276 if test -f "$collect2name" &&
8277 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8278 then
8279 # We have reworked collect2
8280 :
8281 else
8282 # We have old collect2
8283 hardcode_direct=unsupported
8284 # It fails to find uninstalled libraries when the uninstalled
8285 # path is not listed in the libpath. Setting hardcode_minus_L
8286 # to unsupported forces relinking
8287 hardcode_minus_L=yes
8288 hardcode_libdir_flag_spec='-L$libdir'
8289 hardcode_libdir_separator=
8290 fi
8291 ;;
8292 esac
8293 shared_flag='-shared'
8294 if test "$aix_use_runtimelinking" = yes; then
8295 shared_flag="$shared_flag "'${wl}-G'
8296 fi
8297 link_all_deplibs=no
8298 else
8299 # not using gcc
8300 if test "$host_cpu" = ia64; then
8301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8302 # chokes on -Wl,-G. The following line is correct:
8303 shared_flag='-G'
8304 else
8305 if test "$aix_use_runtimelinking" = yes; then
8306 shared_flag='${wl}-G'
8307 else
8308 shared_flag='${wl}-bM:SRE'
8309 fi
8310 fi
8311 fi
8312
8313 # It seems that -bexpall does not export symbols beginning with
8314 # underscore (_), so it is better to generate a list of symbols to export.
8315 always_export_symbols=yes
8316 if test "$aix_use_runtimelinking" = yes; then
8317 # Warning - without using the other runtime loading flags (-brtl),
8318 # -berok will link without error, but may produce a broken library.
8319 allow_undefined_flag='-berok'
8320 # Determine the default libpath from the value encoded in an
8321 # empty executable.
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h. */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328
8329 int
8330 main ()
8331 {
8332
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (ac_try="$ac_link"
8339 case "(($ac_try" in
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8342 esac
8343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344 (eval "$ac_link") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest$ac_exeext &&
8354 $as_test_x conftest$ac_exeext; then
8355
8356 lt_aix_libpath_sed='
8357 /Import File Strings/,/^$/ {
8358 /^0/ {
8359 s/^0 *\(.*\)$/\1/
8360 p
8361 }
8362 }'
8363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8364 # Check for a 64-bit object if we didn't find anything.
8365 if test -z "$aix_libpath"; then
8366 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8367 fi
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8376 conftest$ac_exeext conftest.$ac_ext
8377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8378
8379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8380 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8381 else
8382 if test "$host_cpu" = ia64; then
8383 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8384 allow_undefined_flag="-z nodefs"
8385 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"
8386 else
8387 # Determine the default libpath from the value encoded in an
8388 # empty executable.
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h. */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395
8396 int
8397 main ()
8398 {
8399
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (ac_try="$ac_link"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_link") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest$ac_exeext &&
8421 $as_test_x conftest$ac_exeext; then
8422
8423 lt_aix_libpath_sed='
8424 /Import File Strings/,/^$/ {
8425 /^0/ {
8426 s/^0 *\(.*\)$/\1/
8427 p
8428 }
8429 }'
8430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8431 # Check for a 64-bit object if we didn't find anything.
8432 if test -z "$aix_libpath"; then
8433 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8434 fi
8435 else
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439
8440 fi
8441
8442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8443 conftest$ac_exeext conftest.$ac_ext
8444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8445
8446 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8447 # Warning - without using the other run time loading flags,
8448 # -berok will link without error, but may produce a broken library.
8449 no_undefined_flag=' ${wl}-bernotok'
8450 allow_undefined_flag=' ${wl}-berok'
8451 # Exported symbols can be pulled into shared objects from archives
8452 whole_archive_flag_spec='$convenience'
8453 archive_cmds_need_lc=yes
8454 # This is similar to how AIX traditionally builds its shared libraries.
8455 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'
8456 fi
8457 fi
8458 ;;
8459
8460 amigaos*)
8461 case $host_cpu in
8462 powerpc)
8463 # see comment about AmigaOS4 .so support
8464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465 archive_expsym_cmds=''
8466 ;;
8467 m68k)
8468 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)'
8469 hardcode_libdir_flag_spec='-L$libdir'
8470 hardcode_minus_L=yes
8471 ;;
8472 esac
8473 ;;
8474
8475 bsdi[45]*)
8476 export_dynamic_flag_spec=-rdynamic
8477 ;;
8478
8479 cygwin* | mingw* | pw32*)
8480 # When not using gcc, we currently assume that we are using
8481 # Microsoft Visual C++.
8482 # hardcode_libdir_flag_spec is actually meaningless, as there is
8483 # no search path for DLLs.
8484 hardcode_libdir_flag_spec=' '
8485 allow_undefined_flag=unsupported
8486 # Tell ltmain to make .lib files, not .a files.
8487 libext=lib
8488 # Tell ltmain to make .dll files, not .so files.
8489 shrext_cmds=".dll"
8490 # FIXME: Setting linknames here is a bad hack.
8491 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8492 # The linker will automatically build a .lib file if we build a DLL.
8493 old_archive_from_new_cmds='true'
8494 # FIXME: Should let the user specify the lib program.
8495 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8496 fix_srcfile_path='`cygpath -w "$srcfile"`'
8497 enable_shared_with_static_runtimes=yes
8498 ;;
8499
8500 darwin* | rhapsody*)
8501
8502
8503 archive_cmds_need_lc=no
8504 hardcode_direct=no
8505 hardcode_automatic=yes
8506 hardcode_shlibpath_var=unsupported
8507 whole_archive_flag_spec=''
8508 link_all_deplibs=yes
8509 allow_undefined_flag="$_lt_dar_allow_undefined"
8510 if test "$GCC" = "yes"; then
8511 output_verbose_link_cmd=echo
8512 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8513 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8514 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8515 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8516
8517 else
8518 ld_shlibs=no
8519 fi
8520
8521 ;;
8522
8523 dgux*)
8524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_libdir_flag_spec='-L$libdir'
8526 hardcode_shlibpath_var=no
8527 ;;
8528
8529 freebsd1*)
8530 ld_shlibs=no
8531 ;;
8532
8533 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8534 # support. Future versions do this automatically, but an explicit c++rt0.o
8535 # does not break anything, and helps significantly (at the cost of a little
8536 # extra space).
8537 freebsd2.2*)
8538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8539 hardcode_libdir_flag_spec='-R$libdir'
8540 hardcode_direct=yes
8541 hardcode_shlibpath_var=no
8542 ;;
8543
8544 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8545 freebsd2*)
8546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8547 hardcode_direct=yes
8548 hardcode_minus_L=yes
8549 hardcode_shlibpath_var=no
8550 ;;
8551
8552 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8553 freebsd* | dragonfly*)
8554 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8555 hardcode_libdir_flag_spec='-R$libdir'
8556 hardcode_direct=yes
8557 hardcode_shlibpath_var=no
8558 ;;
8559
8560 hpux9*)
8561 if test "$GCC" = yes; then
8562 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'
8563 else
8564 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'
8565 fi
8566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567 hardcode_libdir_separator=:
8568 hardcode_direct=yes
8569
8570 # hardcode_minus_L: Not really in the search PATH,
8571 # but as the default location of the library.
8572 hardcode_minus_L=yes
8573 export_dynamic_flag_spec='${wl}-E'
8574 ;;
8575
8576 hpux10*)
8577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8579 else
8580 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8581 fi
8582 if test "$with_gnu_ld" = no; then
8583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584 hardcode_libdir_flag_spec_ld='+b $libdir'
8585 hardcode_libdir_separator=:
8586 hardcode_direct=yes
8587 hardcode_direct_absolute=yes
8588 export_dynamic_flag_spec='${wl}-E'
8589 # hardcode_minus_L: Not really in the search PATH,
8590 # but as the default location of the library.
8591 hardcode_minus_L=yes
8592 fi
8593 ;;
8594
8595 hpux11*)
8596 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8597 case $host_cpu in
8598 hppa*64*)
8599 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8600 ;;
8601 ia64*)
8602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8603 ;;
8604 *)
8605 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8606 ;;
8607 esac
8608 else
8609 case $host_cpu in
8610 hppa*64*)
8611 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8612 ;;
8613 ia64*)
8614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8615 ;;
8616 *)
8617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8618 ;;
8619 esac
8620 fi
8621 if test "$with_gnu_ld" = no; then
8622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8623 hardcode_libdir_separator=:
8624
8625 case $host_cpu in
8626 hppa*64*|ia64*)
8627 hardcode_direct=no
8628 hardcode_shlibpath_var=no
8629 ;;
8630 *)
8631 hardcode_direct=yes
8632 hardcode_direct_absolute=yes
8633 export_dynamic_flag_spec='${wl}-E'
8634
8635 # hardcode_minus_L: Not really in the search PATH,
8636 # but as the default location of the library.
8637 hardcode_minus_L=yes
8638 ;;
8639 esac
8640 fi
8641 ;;
8642
8643 irix5* | irix6* | nonstopux*)
8644 if test "$GCC" = yes; then
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8646 # Try to use the -exported_symbol ld option, if it does not
8647 # work, assume that -exports_file does not work either and
8648 # implicitly export all symbols.
8649 save_LDFLAGS="$LDFLAGS"
8650 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8651 cat >conftest.$ac_ext <<_ACEOF
8652 int foo(void) {}
8653 _ACEOF
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (ac_try="$ac_link"
8656 case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_link") 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && {
8668 test -z "$ac_c_werror_flag" ||
8669 test ! -s conftest.err
8670 } && test -s conftest$ac_exeext &&
8671 $as_test_x conftest$ac_exeext; then
8672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8673
8674 else
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678
8679 fi
8680
8681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LDFLAGS="$save_LDFLAGS"
8684 else
8685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8687 fi
8688 archive_cmds_need_lc='no'
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 hardcode_libdir_separator=:
8691 inherit_rpath=yes
8692 link_all_deplibs=yes
8693 ;;
8694
8695 netbsd* | netbsdelf*-gnu)
8696 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8698 else
8699 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8700 fi
8701 hardcode_libdir_flag_spec='-R$libdir'
8702 hardcode_direct=yes
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 newsos6)
8707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_direct=yes
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710 hardcode_libdir_separator=:
8711 hardcode_shlibpath_var=no
8712 ;;
8713
8714 *nto* | *qnx*)
8715 ;;
8716
8717 openbsd*)
8718 if test -f /usr/libexec/ld.so; then
8719 hardcode_direct=yes
8720 hardcode_shlibpath_var=no
8721 hardcode_direct_absolute=yes
8722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8726 export_dynamic_flag_spec='${wl}-E'
8727 else
8728 case $host_os in
8729 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731 hardcode_libdir_flag_spec='-R$libdir'
8732 ;;
8733 *)
8734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8736 ;;
8737 esac
8738 fi
8739 else
8740 ld_shlibs=no
8741 fi
8742 ;;
8743
8744 os2*)
8745 hardcode_libdir_flag_spec='-L$libdir'
8746 hardcode_minus_L=yes
8747 allow_undefined_flag=unsupported
8748 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'
8749 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8750 ;;
8751
8752 osf3*)
8753 if test "$GCC" = yes; then
8754 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8755 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8756 else
8757 allow_undefined_flag=' -expect_unresolved \*'
8758 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8759 fi
8760 archive_cmds_need_lc='no'
8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 hardcode_libdir_separator=:
8763 ;;
8764
8765 osf4* | osf5*) # as osf3* with the addition of -msym flag
8766 if test "$GCC" = yes; then
8767 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8768 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770 else
8771 allow_undefined_flag=' -expect_unresolved \*'
8772 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8773 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8774 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8775
8776 # Both c and cxx compiler support -rpath directly
8777 hardcode_libdir_flag_spec='-rpath $libdir'
8778 fi
8779 archive_cmds_need_lc='no'
8780 hardcode_libdir_separator=:
8781 ;;
8782
8783 solaris*)
8784 no_undefined_flag=' -z defs'
8785 if test "$GCC" = yes; then
8786 wlarc='${wl}'
8787 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8788 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8789 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8790 else
8791 case `$CC -V 2>&1` in
8792 *"Compilers 5.0"*)
8793 wlarc=''
8794 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8796 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8797 ;;
8798 *)
8799 wlarc='${wl}'
8800 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8802 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8803 ;;
8804 esac
8805 fi
8806 hardcode_libdir_flag_spec='-R$libdir'
8807 hardcode_shlibpath_var=no
8808 case $host_os in
8809 solaris2.[0-5] | solaris2.[0-5].*) ;;
8810 *)
8811 # The compiler driver will combine and reorder linker options,
8812 # but understands `-z linker_flag'. GCC discards it without `$wl',
8813 # but is careful enough not to reorder.
8814 # Supported since Solaris 2.6 (maybe 2.5.1?)
8815 if test "$GCC" = yes; then
8816 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8817 else
8818 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8819 fi
8820 ;;
8821 esac
8822 link_all_deplibs=yes
8823 ;;
8824
8825 sunos4*)
8826 if test "x$host_vendor" = xsequent; then
8827 # Use $CC to link under sequent, because it throws in some extra .o
8828 # files that make .init and .fini sections work.
8829 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8830 else
8831 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8832 fi
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_direct=yes
8835 hardcode_minus_L=yes
8836 hardcode_shlibpath_var=no
8837 ;;
8838
8839 sysv4)
8840 case $host_vendor in
8841 sni)
8842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8843 hardcode_direct=yes # is this really true???
8844 ;;
8845 siemens)
8846 ## LD is ld it makes a PLAMLIB
8847 ## CC just makes a GrossModule.
8848 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8849 reload_cmds='$CC -r -o $output$reload_objs'
8850 hardcode_direct=no
8851 ;;
8852 motorola)
8853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8854 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8855 ;;
8856 esac
8857 runpath_var='LD_RUN_PATH'
8858 hardcode_shlibpath_var=no
8859 ;;
8860
8861 sysv4.3*)
8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_shlibpath_var=no
8864 export_dynamic_flag_spec='-Bexport'
8865 ;;
8866
8867 sysv4*MP*)
8868 if test -d /usr/nec; then
8869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870 hardcode_shlibpath_var=no
8871 runpath_var=LD_RUN_PATH
8872 hardcode_runpath_var=yes
8873 ld_shlibs=yes
8874 fi
8875 ;;
8876
8877 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8878 no_undefined_flag='${wl}-z,text'
8879 archive_cmds_need_lc=no
8880 hardcode_shlibpath_var=no
8881 runpath_var='LD_RUN_PATH'
8882
8883 if test "$GCC" = yes; then
8884 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8886 else
8887 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8889 fi
8890 ;;
8891
8892 sysv5* | sco3.2v5* | sco5v6*)
8893 # Note: We can NOT use -z defs as we might desire, because we do not
8894 # link with -lc, and that would cause any symbols used from libc to
8895 # always be unresolved, which means just about no library would
8896 # ever link correctly. If we're not using GNU ld we use -z text
8897 # though, which does catch some bad symbols but isn't as heavy-handed
8898 # as -z defs.
8899 no_undefined_flag='${wl}-z,text'
8900 allow_undefined_flag='${wl}-z,nodefs'
8901 archive_cmds_need_lc=no
8902 hardcode_shlibpath_var=no
8903 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8904 hardcode_libdir_separator=':'
8905 link_all_deplibs=yes
8906 export_dynamic_flag_spec='${wl}-Bexport'
8907 runpath_var='LD_RUN_PATH'
8908
8909 if test "$GCC" = yes; then
8910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8912 else
8913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 fi
8916 ;;
8917
8918 uts4*)
8919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920 hardcode_libdir_flag_spec='-L$libdir'
8921 hardcode_shlibpath_var=no
8922 ;;
8923
8924 *)
8925 ld_shlibs=no
8926 ;;
8927 esac
8928
8929 if test x$host_vendor = xsni; then
8930 case $host in
8931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8932 export_dynamic_flag_spec='${wl}-Blargedynsym'
8933 ;;
8934 esac
8935 fi
8936 fi
8937
8938 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8939 echo "${ECHO_T}$ld_shlibs" >&6; }
8940 test "$ld_shlibs" = no && can_build_shared=no
8941
8942 with_gnu_ld=$with_gnu_ld
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 #
8959 # Do we need to explicitly link libc?
8960 #
8961 case "x$archive_cmds_need_lc" in
8962 x|xyes)
8963 # Assume -lc should be added
8964 archive_cmds_need_lc=yes
8965
8966 if test "$enable_shared" = yes && test "$GCC" = yes; then
8967 case $archive_cmds in
8968 *'~'*)
8969 # FIXME: we may have to deal with multi-command sequences.
8970 ;;
8971 '$CC '*)
8972 # Test whether the compiler implicitly links with -lc since on some
8973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8974 # to ld, don't add -lc before -lgcc.
8975 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8977 $RM conftest*
8978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8979
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } 2>conftest.err; then
8985 soname=conftest
8986 lib=conftest
8987 libobjs=conftest.$ac_objext
8988 deplibs=
8989 wl=$lt_prog_compiler_wl
8990 pic_flag=$lt_prog_compiler_pic
8991 compiler_flags=-v
8992 linker_flags=-v
8993 verstring=
8994 output_objdir=.
8995 libname=conftest
8996 lt_save_allow_undefined_flag=$allow_undefined_flag
8997 allow_undefined_flag=
8998 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8999 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }
9003 then
9004 archive_cmds_need_lc=no
9005 else
9006 archive_cmds_need_lc=yes
9007 fi
9008 allow_undefined_flag=$lt_save_allow_undefined_flag
9009 else
9010 cat conftest.err 1>&5
9011 fi
9012 $RM conftest*
9013 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9014 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9015 ;;
9016 esac
9017 fi
9018 ;;
9019 esac
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9179
9180 if test "$GCC" = yes; then
9181 case $host_os in
9182 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9183 *) lt_awk_arg="/^libraries:/" ;;
9184 esac
9185 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9187 # if the path contains ";" then we assume it to be the separator
9188 # otherwise default to the standard path separator (i.e. ":") - it is
9189 # assumed that no part of a normal pathname contains ";" but that should
9190 # okay in the real world where ";" in dirpaths is itself problematic.
9191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9192 else
9193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9194 fi
9195 # Ok, now we have the path, separated by spaces, we can step through it
9196 # and add multilib dir if necessary.
9197 lt_tmp_lt_search_path_spec=
9198 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9199 for lt_sys_path in $lt_search_path_spec; do
9200 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9202 else
9203 test -d "$lt_sys_path" && \
9204 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9205 fi
9206 done
9207 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9208 BEGIN {RS=" "; FS="/|\n";} {
9209 lt_foo="";
9210 lt_count=0;
9211 for (lt_i = NF; lt_i > 0; lt_i--) {
9212 if ($lt_i != "" && $lt_i != ".") {
9213 if ($lt_i == "..") {
9214 lt_count++;
9215 } else {
9216 if (lt_count == 0) {
9217 lt_foo="/" $lt_i lt_foo;
9218 } else {
9219 lt_count--;
9220 }
9221 }
9222 }
9223 }
9224 if (lt_foo != "") { lt_freq[lt_foo]++; }
9225 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9226 }'`
9227 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9228 else
9229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9230 fi
9231 library_names_spec=
9232 libname_spec='lib$name'
9233 soname_spec=
9234 shrext_cmds=".so"
9235 postinstall_cmds=
9236 postuninstall_cmds=
9237 finish_cmds=
9238 finish_eval=
9239 shlibpath_var=
9240 shlibpath_overrides_runpath=unknown
9241 version_type=none
9242 dynamic_linker="$host_os ld.so"
9243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9244 need_lib_prefix=unknown
9245 hardcode_into_libs=no
9246
9247 # when you set need_version to no, make sure it does not cause -set_version
9248 # flags to be left without arguments
9249 need_version=unknown
9250
9251 case $host_os in
9252 aix3*)
9253 version_type=linux
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9255 shlibpath_var=LIBPATH
9256
9257 # AIX 3 has no versioning support, so we append a major version to the name.
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 ;;
9260
9261 aix[4-9]*)
9262 version_type=linux
9263 need_lib_prefix=no
9264 need_version=no
9265 hardcode_into_libs=yes
9266 if test "$host_cpu" = ia64; then
9267 # AIX 5 supports IA64
9268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 else
9271 # With GCC up to 2.95.x, collect2 would create an import file
9272 # for dependence libraries. The import file would start with
9273 # the line `#! .'. This would cause the generated library to
9274 # depend on `.', always an invalid library. This was fixed in
9275 # development snapshots of GCC prior to 3.0.
9276 case $host_os in
9277 aix4 | aix4.[01] | aix4.[01].*)
9278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9279 echo ' yes '
9280 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9281 :
9282 else
9283 can_build_shared=no
9284 fi
9285 ;;
9286 esac
9287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9288 # soname into executable. Probably we can add versioning support to
9289 # collect2, so additional links can be useful in future.
9290 if test "$aix_use_runtimelinking" = yes; then
9291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9292 # instead of lib<name>.a to let people know that these are not
9293 # typical AIX shared libraries.
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 else
9296 # We preserve .a as extension for shared libraries through AIX4.2
9297 # and later when we are not doing run time linking.
9298 library_names_spec='${libname}${release}.a $libname.a'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 fi
9301 shlibpath_var=LIBPATH
9302 fi
9303 ;;
9304
9305 amigaos*)
9306 case $host_cpu in
9307 powerpc)
9308 # Since July 2007 AmigaOS4 officially supports .so libraries.
9309 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 ;;
9312 m68k)
9313 library_names_spec='$libname.ixlibrary $libname.a'
9314 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9315 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'
9316 ;;
9317 esac
9318 ;;
9319
9320 beos*)
9321 library_names_spec='${libname}${shared_ext}'
9322 dynamic_linker="$host_os ld.so"
9323 shlibpath_var=LIBRARY_PATH
9324 ;;
9325
9326 bsdi[45]*)
9327 version_type=linux
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9335 # the default ld.so.conf also contains /usr/contrib/lib and
9336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9337 # libtool to hard-code these into programs
9338 ;;
9339
9340 cygwin* | mingw* | pw32*)
9341 version_type=windows
9342 shrext_cmds=".dll"
9343 need_version=no
9344 need_lib_prefix=no
9345
9346 case $GCC,$host_os in
9347 yes,cygwin* | yes,mingw* | yes,pw32*)
9348 library_names_spec='$libname.dll.a'
9349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9350 postinstall_cmds='base_file=`basename \${file}`~
9351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9352 dldir=$destdir/`dirname \$dlpath`~
9353 test -d \$dldir || mkdir -p \$dldir~
9354 $install_prog $dir/$dlname \$dldir/$dlname~
9355 chmod a+x \$dldir/$dlname~
9356 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9357 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9358 fi'
9359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9360 dlpath=$dir/\$dldll~
9361 $RM \$dlpath'
9362 shlibpath_overrides_runpath=yes
9363
9364 case $host_os in
9365 cygwin*)
9366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9367 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9369 ;;
9370 mingw*)
9371 # MinGW DLLs use traditional 'lib' prefix
9372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9374 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9375 # It is most probably a Windows format PATH printed by
9376 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9377 # path with ; separators, and with drive letters. We can handle the
9378 # drive letters (cygwin fileutils understands them), so leave them,
9379 # especially as we might pass files found there to a mingw objdump,
9380 # which wouldn't understand a cygwinified path. Ahh.
9381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9382 else
9383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9384 fi
9385 ;;
9386 pw32*)
9387 # pw32 DLLs use 'pw' prefix rather than 'lib'
9388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9389 ;;
9390 esac
9391 ;;
9392
9393 *)
9394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9395 ;;
9396 esac
9397 dynamic_linker='Win32 ld.exe'
9398 # FIXME: first we should search . and the directory the executable is in
9399 shlibpath_var=PATH
9400 ;;
9401
9402 darwin* | rhapsody*)
9403 dynamic_linker="$host_os dyld"
9404 version_type=darwin
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9408 soname_spec='${libname}${release}${major}$shared_ext'
9409 shlibpath_overrides_runpath=yes
9410 shlibpath_var=DYLD_LIBRARY_PATH
9411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9412
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9415 ;;
9416
9417 dgux*)
9418 version_type=linux
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 ;;
9425
9426 freebsd1*)
9427 dynamic_linker=no
9428 ;;
9429
9430 freebsd* | dragonfly*)
9431 # DragonFly does not have aout. When/if they implement a new
9432 # versioning mechanism, adjust this.
9433 if test -x /usr/bin/objformat; then
9434 objformat=`/usr/bin/objformat`
9435 else
9436 case $host_os in
9437 freebsd[123]*) objformat=aout ;;
9438 *) objformat=elf ;;
9439 esac
9440 fi
9441 version_type=freebsd-$objformat
9442 case $version_type in
9443 freebsd-elf*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 need_version=no
9446 need_lib_prefix=no
9447 ;;
9448 freebsd-*)
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9450 need_version=yes
9451 ;;
9452 esac
9453 shlibpath_var=LD_LIBRARY_PATH
9454 case $host_os in
9455 freebsd2*)
9456 shlibpath_overrides_runpath=yes
9457 ;;
9458 freebsd3.[01]* | freebsdelf3.[01]*)
9459 shlibpath_overrides_runpath=yes
9460 hardcode_into_libs=yes
9461 ;;
9462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 ;;
9467 *) # from 4.6 on, and DragonFly
9468 shlibpath_overrides_runpath=yes
9469 hardcode_into_libs=yes
9470 ;;
9471 esac
9472 ;;
9473
9474 gnu*)
9475 version_type=linux
9476 need_lib_prefix=no
9477 need_version=no
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 hardcode_into_libs=yes
9482 ;;
9483
9484 hpux9* | hpux10* | hpux11*)
9485 # Give a soname corresponding to the major version so that dld.sl refuses to
9486 # link against other versions.
9487 version_type=sunos
9488 need_lib_prefix=no
9489 need_version=no
9490 case $host_cpu in
9491 ia64*)
9492 shrext_cmds='.so'
9493 hardcode_into_libs=yes
9494 dynamic_linker="$host_os dld.so"
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 if test "X$HPUX_IA64_MODE" = X32; then
9500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9501 else
9502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9503 fi
9504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9505 ;;
9506 hppa*64*)
9507 shrext_cmds='.sl'
9508 hardcode_into_libs=yes
9509 dynamic_linker="$host_os dld.sl"
9510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9516 ;;
9517 *)
9518 shrext_cmds='.sl'
9519 dynamic_linker="$host_os dld.sl"
9520 shlibpath_var=SHLIB_PATH
9521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 ;;
9525 esac
9526 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9527 postinstall_cmds='chmod 555 $lib'
9528 ;;
9529
9530 interix[3-9]*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=no
9539 hardcode_into_libs=yes
9540 ;;
9541
9542 irix5* | irix6* | nonstopux*)
9543 case $host_os in
9544 nonstopux*) version_type=nonstopux ;;
9545 *)
9546 if test "$lt_cv_prog_gnu_ld" = yes; then
9547 version_type=linux
9548 else
9549 version_type=irix
9550 fi ;;
9551 esac
9552 need_lib_prefix=no
9553 need_version=no
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9556 case $host_os in
9557 irix5* | nonstopux*)
9558 libsuff= shlibsuff=
9559 ;;
9560 *)
9561 case $LD in # libtool.m4 will add one of these switches to LD
9562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9563 libsuff= shlibsuff= libmagic=32-bit;;
9564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9565 libsuff=32 shlibsuff=N32 libmagic=N32;;
9566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9568 *) libsuff= shlibsuff= libmagic=never-match;;
9569 esac
9570 ;;
9571 esac
9572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9573 shlibpath_overrides_runpath=no
9574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9576 hardcode_into_libs=yes
9577 ;;
9578
9579 # No shared lib support for Linux oldld, aout, or coff.
9580 linux*oldld* | linux*aout* | linux*coff*)
9581 dynamic_linker=no
9582 ;;
9583
9584 # This must be Linux ELF.
9585 linux* | k*bsd*-gnu)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 shlibpath_overrides_runpath=no
9594 # Some binutils ld are patched to set DT_RUNPATH
9595 save_LDFLAGS=$LDFLAGS
9596 save_libdir=$libdir
9597 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9598 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605
9606 int
9607 main ()
9608 {
9609
9610 ;
9611 return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9616 case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest$ac_exeext &&
9631 $as_test_x conftest$ac_exeext; then
9632 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9633 shlibpath_overrides_runpath=yes
9634 fi
9635
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640
9641 fi
9642
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 conftest$ac_exeext conftest.$ac_ext
9645 LDFLAGS=$save_LDFLAGS
9646 libdir=$save_libdir
9647
9648 # This implies no fast_install, which is unacceptable.
9649 # Some rework will be needed to allow for fast_install
9650 # before this can be enabled.
9651 hardcode_into_libs=yes
9652
9653 # Append ld.so.conf contents to the search path
9654 if test -f /etc/ld.so.conf; then
9655 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' ' '`
9656 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9657 fi
9658
9659 # We used to test for /lib/ld.so.1 and disable shared libraries on
9660 # powerpc, because MkLinux only supported shared libraries with the
9661 # GNU dynamic linker. Since this was broken with cross compilers,
9662 # most powerpc-linux boxes support dynamic linking these days and
9663 # people can always --disable-shared, the test was removed, and we
9664 # assume the GNU/Linux dynamic linker is in use.
9665 dynamic_linker='GNU/Linux ld.so'
9666 ;;
9667
9668 netbsdelf*-gnu)
9669 version_type=linux
9670 need_lib_prefix=no
9671 need_version=no
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9673 soname_spec='${libname}${release}${shared_ext}$major'
9674 shlibpath_var=LD_LIBRARY_PATH
9675 shlibpath_overrides_runpath=no
9676 hardcode_into_libs=yes
9677 dynamic_linker='NetBSD ld.elf_so'
9678 ;;
9679
9680 netbsd*)
9681 version_type=sunos
9682 need_lib_prefix=no
9683 need_version=no
9684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9687 dynamic_linker='NetBSD (a.out) ld.so'
9688 else
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 dynamic_linker='NetBSD ld.elf_so'
9692 fi
9693 shlibpath_var=LD_LIBRARY_PATH
9694 shlibpath_overrides_runpath=yes
9695 hardcode_into_libs=yes
9696 ;;
9697
9698 newsos6)
9699 version_type=linux
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 shlibpath_overrides_runpath=yes
9703 ;;
9704
9705 *nto* | *qnx*)
9706 version_type=qnx
9707 need_lib_prefix=no
9708 need_version=no
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=no
9713 hardcode_into_libs=yes
9714 dynamic_linker='ldqnx.so'
9715 ;;
9716
9717 openbsd*)
9718 version_type=sunos
9719 sys_lib_dlsearch_path_spec="/usr/lib"
9720 need_lib_prefix=no
9721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9722 case $host_os in
9723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9724 *) need_version=no ;;
9725 esac
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9730 case $host_os in
9731 openbsd2.[89] | openbsd2.[89].*)
9732 shlibpath_overrides_runpath=no
9733 ;;
9734 *)
9735 shlibpath_overrides_runpath=yes
9736 ;;
9737 esac
9738 else
9739 shlibpath_overrides_runpath=yes
9740 fi
9741 ;;
9742
9743 os2*)
9744 libname_spec='$name'
9745 shrext_cmds=".dll"
9746 need_lib_prefix=no
9747 library_names_spec='$libname${shared_ext} $libname.a'
9748 dynamic_linker='OS/2 ld.exe'
9749 shlibpath_var=LIBPATH
9750 ;;
9751
9752 osf3* | osf4* | osf5*)
9753 version_type=osf
9754 need_lib_prefix=no
9755 need_version=no
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9761 ;;
9762
9763 rdos*)
9764 dynamic_linker=no
9765 ;;
9766
9767 solaris*)
9768 version_type=linux
9769 need_lib_prefix=no
9770 need_version=no
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 shlibpath_overrides_runpath=yes
9775 hardcode_into_libs=yes
9776 # ldd complains unless libraries are executable
9777 postinstall_cmds='chmod +x $lib'
9778 ;;
9779
9780 sunos4*)
9781 version_type=sunos
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 shlibpath_overrides_runpath=yes
9786 if test "$with_gnu_ld" = yes; then
9787 need_lib_prefix=no
9788 fi
9789 need_version=yes
9790 ;;
9791
9792 sysv4 | sysv4.3*)
9793 version_type=linux
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 case $host_vendor in
9798 sni)
9799 shlibpath_overrides_runpath=no
9800 need_lib_prefix=no
9801 runpath_var=LD_RUN_PATH
9802 ;;
9803 siemens)
9804 need_lib_prefix=no
9805 ;;
9806 motorola)
9807 need_lib_prefix=no
9808 need_version=no
9809 shlibpath_overrides_runpath=no
9810 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9811 ;;
9812 esac
9813 ;;
9814
9815 sysv4*MP*)
9816 if test -d /usr/nec ;then
9817 version_type=linux
9818 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9819 soname_spec='$libname${shared_ext}.$major'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 fi
9822 ;;
9823
9824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9825 version_type=freebsd-elf
9826 need_lib_prefix=no
9827 need_version=no
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 shlibpath_overrides_runpath=yes
9832 hardcode_into_libs=yes
9833 if test "$with_gnu_ld" = yes; then
9834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9835 else
9836 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9837 case $host_os in
9838 sco3.2v5*)
9839 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9840 ;;
9841 esac
9842 fi
9843 sys_lib_dlsearch_path_spec='/usr/lib'
9844 ;;
9845
9846 tpf*)
9847 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9848 version_type=linux
9849 need_lib_prefix=no
9850 need_version=no
9851 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 hardcode_into_libs=yes
9855 ;;
9856
9857 uts4*)
9858 version_type=linux
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 ;;
9863
9864 *)
9865 dynamic_linker=no
9866 ;;
9867 esac
9868 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9869 echo "${ECHO_T}$dynamic_linker" >&6; }
9870 test "$dynamic_linker" = no && can_build_shared=no
9871
9872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9873 if test "$GCC" = yes; then
9874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9875 fi
9876
9877 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9878 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9879 fi
9880 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9881 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9882 fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9971 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9972 hardcode_action=
9973 if test -n "$hardcode_libdir_flag_spec" ||
9974 test -n "$runpath_var" ||
9975 test "X$hardcode_automatic" = "Xyes" ; then
9976
9977 # We can hardcode non-existent directories.
9978 if test "$hardcode_direct" != no &&
9979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9980 # have to relink, otherwise we might link with an installed library
9981 # when we should be linking with a yet-to-be-installed one
9982 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9983 test "$hardcode_minus_L" != no; then
9984 # Linking always hardcodes the temporary library directory.
9985 hardcode_action=relink
9986 else
9987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9988 hardcode_action=immediate
9989 fi
9990 else
9991 # We cannot hardcode anything, or else we can only hardcode existing
9992 # directories.
9993 hardcode_action=unsupported
9994 fi
9995 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9996 echo "${ECHO_T}$hardcode_action" >&6; }
9997
9998 if test "$hardcode_action" = relink ||
9999 test "$inherit_rpath" = yes; then
10000 # Fast installation is not supported
10001 enable_fast_install=no
10002 elif test "$shlibpath_overrides_runpath" = yes ||
10003 test "$enable_shared" = no; then
10004 # Fast installation is not necessary
10005 enable_fast_install=needless
10006 fi
10007
10008
10009
10010
10011
10012
10013 if test "x$enable_dlopen" != xyes; then
10014 enable_dlopen=unknown
10015 enable_dlopen_self=unknown
10016 enable_dlopen_self_static=unknown
10017 else
10018 lt_cv_dlopen=no
10019 lt_cv_dlopen_libs=
10020
10021 case $host_os in
10022 beos*)
10023 lt_cv_dlopen="load_add_on"
10024 lt_cv_dlopen_libs=
10025 lt_cv_dlopen_self=yes
10026 ;;
10027
10028 mingw* | pw32*)
10029 lt_cv_dlopen="LoadLibrary"
10030 lt_cv_dlopen_libs=
10031 ;;
10032
10033 cygwin*)
10034 lt_cv_dlopen="dlopen"
10035 lt_cv_dlopen_libs=
10036 ;;
10037
10038 darwin*)
10039 # if libdl is installed we need to link against it
10040 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10041 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10042 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 ac_check_lib_save_LIBS=$LIBS
10046 LIBS="-ldl $LIBS"
10047 cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h. */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053
10054 /* Override any GCC internal prototype to avoid an error.
10055 Use char because int might match the return type of a GCC
10056 builtin and then its argument prototype would still apply. */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 char dlopen ();
10061 int
10062 main ()
10063 {
10064 return dlopen ();
10065 ;
10066 return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_link") 2>conftest.er1
10077 ac_status=$?
10078 grep -v '^ *+' conftest.er1 >conftest.err
10079 rm -f conftest.er1
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && {
10083 test -z "$ac_c_werror_flag" ||
10084 test ! -s conftest.err
10085 } && test -s conftest$ac_exeext &&
10086 $as_test_x conftest$ac_exeext; then
10087 ac_cv_lib_dl_dlopen=yes
10088 else
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_lib_dl_dlopen=no
10093 fi
10094
10095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10098 fi
10099 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10100 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10101 if test $ac_cv_lib_dl_dlopen = yes; then
10102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103 else
10104
10105 lt_cv_dlopen="dyld"
10106 lt_cv_dlopen_libs=
10107 lt_cv_dlopen_self=yes
10108
10109 fi
10110
10111 ;;
10112
10113 *)
10114 { echo "$as_me:$LINENO: checking for shl_load" >&5
10115 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10116 if test "${ac_cv_func_shl_load+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h. */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127 #define shl_load innocuous_shl_load
10128
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char shl_load (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10133
10134 #ifdef __STDC__
10135 # include <limits.h>
10136 #else
10137 # include <assert.h>
10138 #endif
10139
10140 #undef shl_load
10141
10142 /* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10145 #ifdef __cplusplus
10146 extern "C"
10147 #endif
10148 char shl_load ();
10149 /* The GNU C library defines this for functions which it implements
10150 to always fail with ENOSYS. Some functions are actually named
10151 something starting with __ and the normal name is an alias. */
10152 #if defined __stub_shl_load || defined __stub___shl_load
10153 choke me
10154 #endif
10155
10156 int
10157 main ()
10158 {
10159 return shl_load ();
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest$ac_exeext &&
10181 $as_test_x conftest$ac_exeext; then
10182 ac_cv_func_shl_load=yes
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 ac_cv_func_shl_load=no
10188 fi
10189
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10192 fi
10193 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10194 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10195 if test $ac_cv_func_shl_load = yes; then
10196 lt_cv_dlopen="shl_load"
10197 else
10198 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10199 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10200 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-ldld $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 char shl_load ();
10219 int
10220 main ()
10221 {
10222 return shl_load ();
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 ac_cv_lib_dld_shl_load=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_lib_dld_shl_load=no
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10258 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10259 if test $ac_cv_lib_dld_shl_load = yes; then
10260 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10261 else
10262 { echo "$as_me:$LINENO: checking for dlopen" >&5
10263 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10264 if test "${ac_cv_func_dlopen+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h. */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10275 #define dlopen innocuous_dlopen
10276
10277 /* System header to define __stub macros and hopefully few prototypes,
10278 which can conflict with char dlopen (); below.
10279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10280 <limits.h> exists even on freestanding compilers. */
10281
10282 #ifdef __STDC__
10283 # include <limits.h>
10284 #else
10285 # include <assert.h>
10286 #endif
10287
10288 #undef dlopen
10289
10290 /* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 char dlopen ();
10297 /* The GNU C library defines this for functions which it implements
10298 to always fail with ENOSYS. Some functions are actually named
10299 something starting with __ and the normal name is an alias. */
10300 #if defined __stub_dlopen || defined __stub___dlopen
10301 choke me
10302 #endif
10303
10304 int
10305 main ()
10306 {
10307 return dlopen ();
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && {
10326 test -z "$ac_c_werror_flag" ||
10327 test ! -s conftest.err
10328 } && test -s conftest$ac_exeext &&
10329 $as_test_x conftest$ac_exeext; then
10330 ac_cv_func_dlopen=yes
10331 else
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335 ac_cv_func_dlopen=no
10336 fi
10337
10338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10339 conftest$ac_exeext conftest.$ac_ext
10340 fi
10341 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10342 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10343 if test $ac_cv_func_dlopen = yes; then
10344 lt_cv_dlopen="dlopen"
10345 else
10346 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10347 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 ac_check_lib_save_LIBS=$LIBS
10352 LIBS="-ldl $LIBS"
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char dlopen ();
10367 int
10368 main ()
10369 {
10370 return dlopen ();
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10380 esac
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_link") 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && {
10389 test -z "$ac_c_werror_flag" ||
10390 test ! -s conftest.err
10391 } && test -s conftest$ac_exeext &&
10392 $as_test_x conftest$ac_exeext; then
10393 ac_cv_lib_dl_dlopen=yes
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398 ac_cv_lib_dl_dlopen=no
10399 fi
10400
10401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10402 conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10404 fi
10405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10407 if test $ac_cv_lib_dl_dlopen = yes; then
10408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10409 else
10410 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-lsvld $LIBS"
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char dlopen ();
10431 int
10432 main ()
10433 {
10434 return dlopen ();
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (ac_try="$ac_link"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_link") 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest$ac_exeext &&
10456 $as_test_x conftest$ac_exeext; then
10457 ac_cv_lib_svld_dlopen=yes
10458 else
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10461
10462 ac_cv_lib_svld_dlopen=no
10463 fi
10464
10465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_lib_save_LIBS
10468 fi
10469 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10470 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10471 if test $ac_cv_lib_svld_dlopen = yes; then
10472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10473 else
10474 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10475 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10476 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479 ac_check_lib_save_LIBS=$LIBS
10480 LIBS="-ldld $LIBS"
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char dld_link ();
10495 int
10496 main ()
10497 {
10498 return dld_link ();
10499 ;
10500 return 0;
10501 }
10502 _ACEOF
10503 rm -f conftest.$ac_objext conftest$ac_exeext
10504 if { (ac_try="$ac_link"
10505 case "(($ac_try" in
10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10508 esac
10509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10510 (eval "$ac_link") 2>conftest.er1
10511 ac_status=$?
10512 grep -v '^ *+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } && {
10517 test -z "$ac_c_werror_flag" ||
10518 test ! -s conftest.err
10519 } && test -s conftest$ac_exeext &&
10520 $as_test_x conftest$ac_exeext; then
10521 ac_cv_lib_dld_dld_link=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ac_cv_lib_dld_dld_link=no
10527 fi
10528
10529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10532 fi
10533 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10534 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10535 if test $ac_cv_lib_dld_dld_link = yes; then
10536 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10537 fi
10538
10539
10540 fi
10541
10542
10543 fi
10544
10545
10546 fi
10547
10548
10549 fi
10550
10551
10552 fi
10553
10554 ;;
10555 esac
10556
10557 if test "x$lt_cv_dlopen" != xno; then
10558 enable_dlopen=yes
10559 else
10560 enable_dlopen=no
10561 fi
10562
10563 case $lt_cv_dlopen in
10564 dlopen)
10565 save_CPPFLAGS="$CPPFLAGS"
10566 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10567
10568 save_LDFLAGS="$LDFLAGS"
10569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10570
10571 save_LIBS="$LIBS"
10572 LIBS="$lt_cv_dlopen_libs $LIBS"
10573
10574 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10575 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10576 if test "${lt_cv_dlopen_self+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 if test "$cross_compiling" = yes; then :
10580 lt_cv_dlopen_self=cross
10581 else
10582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10583 lt_status=$lt_dlunknown
10584 cat > conftest.$ac_ext <<_LT_EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587
10588 #if HAVE_DLFCN_H
10589 #include <dlfcn.h>
10590 #endif
10591
10592 #include <stdio.h>
10593
10594 #ifdef RTLD_GLOBAL
10595 # define LT_DLGLOBAL RTLD_GLOBAL
10596 #else
10597 # ifdef DL_GLOBAL
10598 # define LT_DLGLOBAL DL_GLOBAL
10599 # else
10600 # define LT_DLGLOBAL 0
10601 # endif
10602 #endif
10603
10604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10605 find out it does not work in some platform. */
10606 #ifndef LT_DLLAZY_OR_NOW
10607 # ifdef RTLD_LAZY
10608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10609 # else
10610 # ifdef DL_LAZY
10611 # define LT_DLLAZY_OR_NOW DL_LAZY
10612 # else
10613 # ifdef RTLD_NOW
10614 # define LT_DLLAZY_OR_NOW RTLD_NOW
10615 # else
10616 # ifdef DL_NOW
10617 # define LT_DLLAZY_OR_NOW DL_NOW
10618 # else
10619 # define LT_DLLAZY_OR_NOW 0
10620 # endif
10621 # endif
10622 # endif
10623 # endif
10624 #endif
10625
10626 #ifdef __cplusplus
10627 extern "C" void exit (int);
10628 #endif
10629
10630 void fnord() { int i=42;}
10631 int main ()
10632 {
10633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10634 int status = $lt_dlunknown;
10635
10636 if (self)
10637 {
10638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10640 /* dlclose (self); */
10641 }
10642 else
10643 puts (dlerror ());
10644
10645 exit (status);
10646 }
10647 _LT_EOF
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10653 (./conftest; exit; ) >&5 2>/dev/null
10654 lt_status=$?
10655 case x$lt_status in
10656 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10657 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10658 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10659 esac
10660 else :
10661 # compilation failed
10662 lt_cv_dlopen_self=no
10663 fi
10664 fi
10665 rm -fr conftest*
10666
10667
10668 fi
10669 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10670 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10671
10672 if test "x$lt_cv_dlopen_self" = xyes; then
10673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10674 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10675 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10676 if test "${lt_cv_dlopen_self_static+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 if test "$cross_compiling" = yes; then :
10680 lt_cv_dlopen_self_static=cross
10681 else
10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10683 lt_status=$lt_dlunknown
10684 cat > conftest.$ac_ext <<_LT_EOF
10685 #line 10686 "configure"
10686 #include "confdefs.h"
10687
10688 #if HAVE_DLFCN_H
10689 #include <dlfcn.h>
10690 #endif
10691
10692 #include <stdio.h>
10693
10694 #ifdef RTLD_GLOBAL
10695 # define LT_DLGLOBAL RTLD_GLOBAL
10696 #else
10697 # ifdef DL_GLOBAL
10698 # define LT_DLGLOBAL DL_GLOBAL
10699 # else
10700 # define LT_DLGLOBAL 0
10701 # endif
10702 #endif
10703
10704 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10705 find out it does not work in some platform. */
10706 #ifndef LT_DLLAZY_OR_NOW
10707 # ifdef RTLD_LAZY
10708 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10709 # else
10710 # ifdef DL_LAZY
10711 # define LT_DLLAZY_OR_NOW DL_LAZY
10712 # else
10713 # ifdef RTLD_NOW
10714 # define LT_DLLAZY_OR_NOW RTLD_NOW
10715 # else
10716 # ifdef DL_NOW
10717 # define LT_DLLAZY_OR_NOW DL_NOW
10718 # else
10719 # define LT_DLLAZY_OR_NOW 0
10720 # endif
10721 # endif
10722 # endif
10723 # endif
10724 #endif
10725
10726 #ifdef __cplusplus
10727 extern "C" void exit (int);
10728 #endif
10729
10730 void fnord() { int i=42;}
10731 int main ()
10732 {
10733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10734 int status = $lt_dlunknown;
10735
10736 if (self)
10737 {
10738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10740 /* dlclose (self); */
10741 }
10742 else
10743 puts (dlerror ());
10744
10745 exit (status);
10746 }
10747 _LT_EOF
10748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10749 (eval $ac_link) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10753 (./conftest; exit; ) >&5 2>/dev/null
10754 lt_status=$?
10755 case x$lt_status in
10756 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10757 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10758 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10759 esac
10760 else :
10761 # compilation failed
10762 lt_cv_dlopen_self_static=no
10763 fi
10764 fi
10765 rm -fr conftest*
10766
10767
10768 fi
10769 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10770 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10771 fi
10772
10773 CPPFLAGS="$save_CPPFLAGS"
10774 LDFLAGS="$save_LDFLAGS"
10775 LIBS="$save_LIBS"
10776 ;;
10777 esac
10778
10779 case $lt_cv_dlopen_self in
10780 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10781 *) enable_dlopen_self=unknown ;;
10782 esac
10783
10784 case $lt_cv_dlopen_self_static in
10785 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10786 *) enable_dlopen_self_static=unknown ;;
10787 esac
10788 fi
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806 striplib=
10807 old_striplib=
10808 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10809 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10810 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10811 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10812 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10813 { echo "$as_me:$LINENO: result: yes" >&5
10814 echo "${ECHO_T}yes" >&6; }
10815 else
10816 # FIXME - insert some real tests, host_os isn't really good enough
10817 case $host_os in
10818 darwin*)
10819 if test -n "$STRIP" ; then
10820 striplib="$STRIP -x"
10821 old_striplib="$STRIP -S"
10822 { echo "$as_me:$LINENO: result: yes" >&5
10823 echo "${ECHO_T}yes" >&6; }
10824 else
10825 { echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6; }
10827 fi
10828 ;;
10829 *)
10830 { echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6; }
10832 ;;
10833 esac
10834 fi
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847 # Report which library types will actually be built
10848 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10849 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10850 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10851 echo "${ECHO_T}$can_build_shared" >&6; }
10852
10853 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10854 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10855 test "$can_build_shared" = "no" && enable_shared=no
10856
10857 # On AIX, shared libraries and static libraries use the same namespace, and
10858 # are all built from PIC.
10859 case $host_os in
10860 aix3*)
10861 test "$enable_shared" = yes && enable_static=no
10862 if test -n "$RANLIB"; then
10863 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10864 postinstall_cmds='$RANLIB $lib'
10865 fi
10866 ;;
10867
10868 aix[4-9]*)
10869 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10870 test "$enable_shared" = yes && enable_static=no
10871 fi
10872 ;;
10873 esac
10874 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10875 echo "${ECHO_T}$enable_shared" >&6; }
10876
10877 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10878 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10879 # Make sure either enable_shared or enable_static is yes.
10880 test "$enable_shared" = yes || enable_static=yes
10881 { echo "$as_me:$LINENO: result: $enable_static" >&5
10882 echo "${ECHO_T}$enable_static" >&6; }
10883
10884
10885
10886
10887 fi
10888 ac_ext=c
10889 ac_cpp='$CPP $CPPFLAGS'
10890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10893
10894 CC="$lt_save_CC"
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908 ac_config_commands="$ac_config_commands libtool"
10909
10910
10911
10912
10913 # Only expand once:
10914
10915
10916
10917 # Extract the first word of "icon-slicer", so it can be a program name with args.
10918 set dummy icon-slicer; ac_word=$2
10919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10921 if test "${ac_cv_path_ICON_SLICER+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924 case $ICON_SLICER in
10925 [\\/]* | ?:[\\/]*)
10926 ac_cv_path_ICON_SLICER="$ICON_SLICER" # Let the user override the test with a path.
10927 ;;
10928 *)
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10931 do
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10936 ac_cv_path_ICON_SLICER="$as_dir/$ac_word$ac_exec_ext"
10937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10939 fi
10940 done
10941 done
10942 IFS=$as_save_IFS
10943
10944 ;;
10945 esac
10946 fi
10947 ICON_SLICER=$ac_cv_path_ICON_SLICER
10948 if test -n "$ICON_SLICER"; then
10949 { echo "$as_me:$LINENO: result: $ICON_SLICER" >&5
10950 echo "${ECHO_T}$ICON_SLICER" >&6; }
10951 else
10952 { echo "$as_me:$LINENO: result: no" >&5
10953 echo "${ECHO_T}no" >&6; }
10954 fi
10955
10956
10957 if test -z "$ICON_SLICER"; then
10958 { { echo "$as_me:$LINENO: error: icon-slicer is required" >&5
10959 echo "$as_me: error: icon-slicer is required" >&2;}
10960 { (exit 1); exit 1; }; }
10961 fi
10962
10963
10964 pkg_failed=no
10965 { echo "$as_me:$LINENO: checking for GTK2" >&5
10966 echo $ECHO_N "checking for GTK2... $ECHO_C" >&6; }
10967
10968 if test -n "$PKG_CONFIG"; then
10969 if test -n "$GTK2_CFLAGS"; then
10970 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
10971 else
10972 if test -n "$PKG_CONFIG" && \
10973 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5
10974 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; then
10978 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0" 2>/dev/null`
10979 else
10980 pkg_failed=yes
10981 fi
10982 fi
10983 else
10984 pkg_failed=untried
10985 fi
10986 if test -n "$PKG_CONFIG"; then
10987 if test -n "$GTK2_LIBS"; then
10988 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
10989 else
10990 if test -n "$PKG_CONFIG" && \
10991 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5
10992 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; then
10996 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0" 2>/dev/null`
10997 else
10998 pkg_failed=yes
10999 fi
11000 fi
11001 else
11002 pkg_failed=untried
11003 fi
11004
11005
11006
11007 if test $pkg_failed = yes; then
11008
11009 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11010 _pkg_short_errors_supported=yes
11011 else
11012 _pkg_short_errors_supported=no
11013 fi
11014 if test $_pkg_short_errors_supported = yes; then
11015 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
11016 else
11017 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
11018 fi
11019 # Put the nasty error message in config.log where it belongs
11020 echo "$GTK2_PKG_ERRORS" >&5
11021
11022 { echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6; }
11024 { { echo "$as_me:$LINENO: error: GTK+-2.0 is required to compile redhat-artwork" >&5
11025 echo "$as_me: error: GTK+-2.0 is required to compile redhat-artwork" >&2;}
11026 { (exit 1); exit 1; }; }
11027 elif test $pkg_failed = untried; then
11028 { { echo "$as_me:$LINENO: error: GTK+-2.0 is required to compile redhat-artwork" >&5
11029 echo "$as_me: error: GTK+-2.0 is required to compile redhat-artwork" >&2;}
11030 { (exit 1); exit 1; }; }
11031 else
11032 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
11033 GTK2_LIBS=$pkg_cv_GTK2_LIBS
11034 { echo "$as_me:$LINENO: result: yes" >&5
11035 echo "${ECHO_T}yes" >&6; }
11036 :
11037 fi
11038
11039 GDK_PIXBUF2_CFLAGS=`$PKG_CONFIG --cflags gdk-pixbuf-2.0`
11040 GDK_PIXBUF2_LIBS=`$PKG_CONFIG --libs gdk-pixbuf-2.0`
11041
11042
11043
11044
11045 pkg_failed=no
11046 { echo "$as_me:$LINENO: checking for ENGINE" >&5
11047 echo $ECHO_N "checking for ENGINE... $ECHO_C" >&6; }
11048
11049 if test -n "$PKG_CONFIG"; then
11050 if test -n "$ENGINE_CFLAGS"; then
11051 pkg_cv_ENGINE_CFLAGS="$ENGINE_CFLAGS"
11052 else
11053 if test -n "$PKG_CONFIG" && \
11054 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1\"") >&5
11055 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1") 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; then
11059 pkg_cv_ENGINE_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1" 2>/dev/null`
11060 else
11061 pkg_failed=yes
11062 fi
11063 fi
11064 else
11065 pkg_failed=untried
11066 fi
11067 if test -n "$PKG_CONFIG"; then
11068 if test -n "$ENGINE_LIBS"; then
11069 pkg_cv_ENGINE_LIBS="$ENGINE_LIBS"
11070 else
11071 if test -n "$PKG_CONFIG" && \
11072 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1\"") >&5
11073 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1") 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; then
11077 pkg_cv_ENGINE_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1" 2>/dev/null`
11078 else
11079 pkg_failed=yes
11080 fi
11081 fi
11082 else
11083 pkg_failed=untried
11084 fi
11085
11086
11087
11088 if test $pkg_failed = yes; then
11089
11090 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11091 _pkg_short_errors_supported=yes
11092 else
11093 _pkg_short_errors_supported=no
11094 fi
11095 if test $_pkg_short_errors_supported = yes; then
11096 ENGINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1"`
11097 else
11098 ENGINE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1"`
11099 fi
11100 # Put the nasty error message in config.log where it belongs
11101 echo "$ENGINE_PKG_ERRORS" >&5
11102
11103 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1) were not met:
11104
11105 $ENGINE_PKG_ERRORS
11106
11107 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11108 installed software in a non-standard prefix.
11109
11110 Alternatively, you may set the environment variables ENGINE_CFLAGS
11111 and ENGINE_LIBS to avoid the need to call pkg-config.
11112 See the pkg-config man page for more details.
11113 " >&5
11114 echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1) were not met:
11115
11116 $ENGINE_PKG_ERRORS
11117
11118 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11119 installed software in a non-standard prefix.
11120
11121 Alternatively, you may set the environment variables ENGINE_CFLAGS
11122 and ENGINE_LIBS to avoid the need to call pkg-config.
11123 See the pkg-config man page for more details.
11124 " >&2;}
11125 { (exit 1); exit 1; }; }
11126 elif test $pkg_failed = untried; then
11127 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11128 is in your PATH or set the PKG_CONFIG environment variable to the full
11129 path to pkg-config.
11130
11131 Alternatively, you may set the environment variables ENGINE_CFLAGS
11132 and ENGINE_LIBS to avoid the need to call pkg-config.
11133 See the pkg-config man page for more details.
11134
11135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11136 See \`config.log' for more details." >&5
11137 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11138 is in your PATH or set the PKG_CONFIG environment variable to the full
11139 path to pkg-config.
11140
11141 Alternatively, you may set the environment variables ENGINE_CFLAGS
11142 and ENGINE_LIBS to avoid the need to call pkg-config.
11143 See the pkg-config man page for more details.
11144
11145 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11146 See \`config.log' for more details." >&2;}
11147 { (exit 1); exit 1; }; }
11148 else
11149 ENGINE_CFLAGS=$pkg_cv_ENGINE_CFLAGS
11150 ENGINE_LIBS=$pkg_cv_ENGINE_LIBS
11151 { echo "$as_me:$LINENO: result: yes" >&5
11152 echo "${ECHO_T}yes" >&6; }
11153 :
11154 fi
11155
11156 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
11157
11158
11159 ICON_NAMING_UTILS_REQUIRED=0.8.2
11160
11161 { echo "$as_me:$LINENO: checking icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED" >&5
11162 echo $ECHO_N "checking icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED... $ECHO_C" >&6; }
11163 if test -n "$PKG_CONFIG" && \
11164 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"icon-naming-utils >= \$ICON_NAMING_UTILS_REQUIRED\"") >&5
11165 ($PKG_CONFIG --exists --print-errors "icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED") 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; then
11169 have_utils=yes
11170 else
11171 have_utils=no
11172 fi
11173 if test "x$have_utils" = "xyes"; then
11174 UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
11175 ICONMAP="$UTILS_PATH/icon-name-mapping"
11176
11177 { echo "$as_me:$LINENO: result: yes" >&5
11178 echo "${ECHO_T}yes" >&6; }
11179 else
11180 { echo "$as_me:$LINENO: result: no" >&5
11181 echo "${ECHO_T}no" >&6; }
11182 { { echo "$as_me:$LINENO: error: icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED is required to build
11183 and install the icon theme" >&5
11184 echo "$as_me: error: icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED is required to build
11185 and install the icon theme" >&2;}
11186 { (exit 1); exit 1; }; }
11187 fi
11188
11189 ac_config_files="$ac_config_files Makefile cursor/Makefile cursor/sugar/Makefile icons/Makefile icons/scalable/Makefile icons/scalable/actions/Makefile icons/scalable/apps/Makefile icons/scalable/categories/Makefile icons/scalable/control/Makefile icons/scalable/device/Makefile icons/scalable/emblems/Makefile icons/scalable/mimetypes/Makefile icons/scalable/status/Makefile gtk/Makefile gtk/engine/Makefile gtk/theme/Makefile matchbox/Makefile"
11190
11191 cat >confcache <<\_ACEOF
11192 # This file is a shell script that caches the results of configure
11193 # tests run on this system so they can be shared between configure
11194 # scripts and configure runs, see configure's option --config-cache.
11195 # It is not useful on other systems. If it contains results you don't
11196 # want to keep, you may remove or edit it.
11197 #
11198 # config.status only pays attention to the cache file if you give it
11199 # the --recheck option to rerun configure.
11200 #
11201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11203 # following values.
11204
11205 _ACEOF
11206
11207 # The following way of writing the cache mishandles newlines in values,
11208 # but we know of no workaround that is simple, portable, and efficient.
11209 # So, we kill variables containing newlines.
11210 # Ultrix sh set writes to stderr and can't be redirected directly,
11211 # and sets the high bit in the cache file unless we assign to the vars.
11212 (
11213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11214 eval ac_val=\$$ac_var
11215 case $ac_val in #(
11216 *${as_nl}*)
11217 case $ac_var in #(
11218 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11219 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11220 esac
11221 case $ac_var in #(
11222 _ | IFS | as_nl) ;; #(
11223 *) $as_unset $ac_var ;;
11224 esac ;;
11225 esac
11226 done
11227
11228 (set) 2>&1 |
11229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11230 *${as_nl}ac_space=\ *)
11231 # `set' does not quote correctly, so add quotes (double-quote
11232 # substitution turns \\\\ into \\, and sed turns \\ into \).
11233 sed -n \
11234 "s/'/'\\\\''/g;
11235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11236 ;; #(
11237 *)
11238 # `set' quotes correctly as required by POSIX, so do not add quotes.
11239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11240 ;;
11241 esac |
11242 sort
11243 ) |
11244 sed '
11245 /^ac_cv_env_/b end
11246 t clear
11247 :clear
11248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11249 t end
11250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11251 :end' >>confcache
11252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11253 if test -w "$cache_file"; then
11254 test "x$cache_file" != "x/dev/null" &&
11255 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11256 echo "$as_me: updating cache $cache_file" >&6;}
11257 cat confcache >$cache_file
11258 else
11259 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11260 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11261 fi
11262 fi
11263 rm -f confcache
11264
11265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11266 # Let make expand exec_prefix.
11267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11268
11269 DEFS=-DHAVE_CONFIG_H
11270
11271 ac_libobjs=
11272 ac_ltlibobjs=
11273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11274 # 1. Remove the extension, and $U if already installed.
11275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11276 ac_i=`echo "$ac_i" | sed "$ac_script"`
11277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11278 # will be set to the directory where LIBOBJS objects are built.
11279 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11280 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11281 done
11282 LIBOBJS=$ac_libobjs
11283
11284 LTLIBOBJS=$ac_ltlibobjs
11285
11286
11287 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11288 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11289 Usually this means the macro was only invoked conditionally." >&5
11290 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11291 Usually this means the macro was only invoked conditionally." >&2;}
11292 { (exit 1); exit 1; }; }
11293 fi
11294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11295 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11296 Usually this means the macro was only invoked conditionally." >&5
11297 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11298 Usually this means the macro was only invoked conditionally." >&2;}
11299 { (exit 1); exit 1; }; }
11300 fi
11301
11302 : ${CONFIG_STATUS=./config.status}
11303 ac_clean_files_save=$ac_clean_files
11304 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11305 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11306 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11307 cat >$CONFIG_STATUS <<_ACEOF
11308 #! $SHELL
11309 # Generated by $as_me.
11310 # Run this file to recreate the current configuration.
11311 # Compiler output produced by configure, useful for debugging
11312 # configure, is in config.log if it exists.
11313
11314 debug=false
11315 ac_cs_recheck=false
11316 ac_cs_silent=false
11317 SHELL=\${CONFIG_SHELL-$SHELL}
11318 _ACEOF
11319
11320 cat >>$CONFIG_STATUS <<\_ACEOF
11321 ## --------------------- ##
11322 ## M4sh Initialization. ##
11323 ## --------------------- ##
11324
11325 # Be more Bourne compatible
11326 DUALCASE=1; export DUALCASE # for MKS sh
11327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11328 emulate sh
11329 NULLCMD=:
11330 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11331 # is contrary to our usage. Disable this feature.
11332 alias -g '${1+"$@"}'='"$@"'
11333 setopt NO_GLOB_SUBST
11334 else
11335 case `(set -o) 2>/dev/null` in
11336 *posix*) set -o posix ;;
11337 esac
11338
11339 fi
11340
11341
11342
11343
11344 # PATH needs CR
11345 # Avoid depending upon Character Ranges.
11346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11349 as_cr_digits='0123456789'
11350 as_cr_alnum=$as_cr_Letters$as_cr_digits
11351
11352 # The user is always right.
11353 if test "${PATH_SEPARATOR+set}" != set; then
11354 echo "#! /bin/sh" >conf$$.sh
11355 echo "exit 0" >>conf$$.sh
11356 chmod +x conf$$.sh
11357 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11358 PATH_SEPARATOR=';'
11359 else
11360 PATH_SEPARATOR=:
11361 fi
11362 rm -f conf$$.sh
11363 fi
11364
11365 # Support unset when possible.
11366 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11367 as_unset=unset
11368 else
11369 as_unset=false
11370 fi
11371
11372
11373 # IFS
11374 # We need space, tab and new line, in precisely that order. Quoting is
11375 # there to prevent editors from complaining about space-tab.
11376 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11377 # splitting by setting IFS to empty value.)
11378 as_nl='
11379 '
11380 IFS=" "" $as_nl"
11381
11382 # Find who we are. Look in the path if we contain no directory separator.
11383 case $0 in
11384 *[\\/]* ) as_myself=$0 ;;
11385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11391 done
11392 IFS=$as_save_IFS
11393
11394 ;;
11395 esac
11396 # We did not find ourselves, most probably we were run as `sh COMMAND'
11397 # in which case we are not to be found in the path.
11398 if test "x$as_myself" = x; then
11399 as_myself=$0
11400 fi
11401 if test ! -f "$as_myself"; then
11402 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11403 { (exit 1); exit 1; }
11404 fi
11405
11406 # Work around bugs in pre-3.0 UWIN ksh.
11407 for as_var in ENV MAIL MAILPATH
11408 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11409 done
11410 PS1='$ '
11411 PS2='> '
11412 PS4='+ '
11413
11414 # NLS nuisances.
11415 for as_var in \
11416 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11417 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11418 LC_TELEPHONE LC_TIME
11419 do
11420 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11421 eval $as_var=C; export $as_var
11422 else
11423 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11424 fi
11425 done
11426
11427 # Required to use basename.
11428 if expr a : '\(a\)' >/dev/null 2>&1 &&
11429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11430 as_expr=expr
11431 else
11432 as_expr=false
11433 fi
11434
11435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11436 as_basename=basename
11437 else
11438 as_basename=false
11439 fi
11440
11441
11442 # Name of the executable.
11443 as_me=`$as_basename -- "$0" ||
11444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11445 X"$0" : 'X\(//\)$' \| \
11446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11447 echo X/"$0" |
11448 sed '/^.*\/\([^/][^/]*\)\/*$/{
11449 s//\1/
11450 q
11451 }
11452 /^X\/\(\/\/\)$/{
11453 s//\1/
11454 q
11455 }
11456 /^X\/\(\/\).*/{
11457 s//\1/
11458 q
11459 }
11460 s/.*/./; q'`
11461
11462 # CDPATH.
11463 $as_unset CDPATH
11464
11465
11466
11467 as_lineno_1=$LINENO
11468 as_lineno_2=$LINENO
11469 test "x$as_lineno_1" != "x$as_lineno_2" &&
11470 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11471
11472 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11473 # uniformly replaced by the line number. The first 'sed' inserts a
11474 # line-number line after each line using $LINENO; the second 'sed'
11475 # does the real work. The second script uses 'N' to pair each
11476 # line-number line with the line containing $LINENO, and appends
11477 # trailing '-' during substitution so that $LINENO is not a special
11478 # case at line end.
11479 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11480 # scripts with optimization help from Paolo Bonzini. Blame Lee
11481 # E. McMahon (1931-1989) for sed's syntax. :-)
11482 sed -n '
11483 p
11484 /[$]LINENO/=
11485 ' <$as_myself |
11486 sed '
11487 s/[$]LINENO.*/&-/
11488 t lineno
11489 b
11490 :lineno
11491 N
11492 :loop
11493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11494 t loop
11495 s/-\n.*//
11496 ' >$as_me.lineno &&
11497 chmod +x "$as_me.lineno" ||
11498 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11499 { (exit 1); exit 1; }; }
11500
11501 # Don't try to exec as it changes $[0], causing all sort of problems
11502 # (the dirname of $[0] is not the place where we might find the
11503 # original and so on. Autoconf is especially sensitive to this).
11504 . "./$as_me.lineno"
11505 # Exit status is that of the last command.
11506 exit
11507 }
11508
11509
11510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11511 as_dirname=dirname
11512 else
11513 as_dirname=false
11514 fi
11515
11516 ECHO_C= ECHO_N= ECHO_T=
11517 case `echo -n x` in
11518 -n*)
11519 case `echo 'x\c'` in
11520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11521 *) ECHO_C='\c';;
11522 esac;;
11523 *)
11524 ECHO_N='-n';;
11525 esac
11526
11527 if expr a : '\(a\)' >/dev/null 2>&1 &&
11528 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11529 as_expr=expr
11530 else
11531 as_expr=false
11532 fi
11533
11534 rm -f conf$$ conf$$.exe conf$$.file
11535 if test -d conf$$.dir; then
11536 rm -f conf$$.dir/conf$$.file
11537 else
11538 rm -f conf$$.dir
11539 mkdir conf$$.dir
11540 fi
11541 echo >conf$$.file
11542 if ln -s conf$$.file conf$$ 2>/dev/null; then
11543 as_ln_s='ln -s'
11544 # ... but there are two gotchas:
11545 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11546 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11547 # In both cases, we have to default to `cp -p'.
11548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11549 as_ln_s='cp -p'
11550 elif ln conf$$.file conf$$ 2>/dev/null; then
11551 as_ln_s=ln
11552 else
11553 as_ln_s='cp -p'
11554 fi
11555 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11556 rmdir conf$$.dir 2>/dev/null
11557
11558 if mkdir -p . 2>/dev/null; then
11559 as_mkdir_p=:
11560 else
11561 test -d ./-p && rmdir ./-p
11562 as_mkdir_p=false
11563 fi
11564
11565 if test -x / >/dev/null 2>&1; then
11566 as_test_x='test -x'
11567 else
11568 if ls -dL / >/dev/null 2>&1; then
11569 as_ls_L_option=L
11570 else
11571 as_ls_L_option=
11572 fi
11573 as_test_x='
11574 eval sh -c '\''
11575 if test -d "$1"; then
11576 test -d "$1/.";
11577 else
11578 case $1 in
11579 -*)set "./$1";;
11580 esac;
11581 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11582 ???[sx]*):;;*)false;;esac;fi
11583 '\'' sh
11584 '
11585 fi
11586 as_executable_p=$as_test_x
11587
11588 # Sed expression to map a string onto a valid CPP name.
11589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11590
11591 # Sed expression to map a string onto a valid variable name.
11592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11593
11594
11595 exec 6>&1
11596
11597 # Save the log message, to keep $[0] and so on meaningful, and to
11598 # report actual input values of CONFIG_FILES etc. instead of their
11599 # values after options handling.
11600 ac_log="
11601 This file was extended by sugar-artwork $as_me 0.84.1, which was
11602 generated by GNU Autoconf 2.61. Invocation command line was
11603
11604 CONFIG_FILES = $CONFIG_FILES
11605 CONFIG_HEADERS = $CONFIG_HEADERS
11606 CONFIG_LINKS = $CONFIG_LINKS
11607 CONFIG_COMMANDS = $CONFIG_COMMANDS
11608 $ $0 $@
11609
11610 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11611 "
11612
11613 _ACEOF
11614
11615 cat >>$CONFIG_STATUS <<_ACEOF
11616 # Files that config.status was made for.
11617 config_files="$ac_config_files"
11618 config_headers="$ac_config_headers"
11619 config_commands="$ac_config_commands"
11620
11621 _ACEOF
11622
11623 cat >>$CONFIG_STATUS <<\_ACEOF
11624 ac_cs_usage="\
11625 \`$as_me' instantiates files from templates according to the
11626 current configuration.
11627
11628 Usage: $0 [OPTIONS] [FILE]...
11629
11630 -h, --help print this help, then exit
11631 -V, --version print version number and configuration settings, then exit
11632 -q, --quiet do not print progress messages
11633 -d, --debug don't remove temporary files
11634 --recheck update $as_me by reconfiguring in the same conditions
11635 --file=FILE[:TEMPLATE]
11636 instantiate the configuration file FILE
11637 --header=FILE[:TEMPLATE]
11638 instantiate the configuration header FILE
11639
11640 Configuration files:
11641 $config_files
11642
11643 Configuration headers:
11644 $config_headers
11645
11646 Configuration commands:
11647 $config_commands
11648
11649 Report bugs to <bug-autoconf@gnu.org>."
11650
11651 _ACEOF
11652 cat >>$CONFIG_STATUS <<_ACEOF
11653 ac_cs_version="\\
11654 sugar-artwork config.status 0.84.1
11655 configured by $0, generated by GNU Autoconf 2.61,
11656 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11657
11658 Copyright (C) 2006 Free Software Foundation, Inc.
11659 This config.status script is free software; the Free Software Foundation
11660 gives unlimited permission to copy, distribute and modify it."
11661
11662 ac_pwd='$ac_pwd'
11663 srcdir='$srcdir'
11664 INSTALL='$INSTALL'
11665 _ACEOF
11666
11667 cat >>$CONFIG_STATUS <<\_ACEOF
11668 # If no file are specified by the user, then we need to provide default
11669 # value. By we need to know if files were specified by the user.
11670 ac_need_defaults=:
11671 while test $# != 0
11672 do
11673 case $1 in
11674 --*=*)
11675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11677 ac_shift=:
11678 ;;
11679 *)
11680 ac_option=$1
11681 ac_optarg=$2
11682 ac_shift=shift
11683 ;;
11684 esac
11685
11686 case $ac_option in
11687 # Handling of the options.
11688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11689 ac_cs_recheck=: ;;
11690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11691 echo "$ac_cs_version"; exit ;;
11692 --debug | --debu | --deb | --de | --d | -d )
11693 debug=: ;;
11694 --file | --fil | --fi | --f )
11695 $ac_shift
11696 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11697 ac_need_defaults=false;;
11698 --header | --heade | --head | --hea )
11699 $ac_shift
11700 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11701 ac_need_defaults=false;;
11702 --he | --h)
11703 # Conflict between --help and --header
11704 { echo "$as_me: error: ambiguous option: $1
11705 Try \`$0 --help' for more information." >&2
11706 { (exit 1); exit 1; }; };;
11707 --help | --hel | -h )
11708 echo "$ac_cs_usage"; exit ;;
11709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11711 ac_cs_silent=: ;;
11712
11713 # This is an error.
11714 -*) { echo "$as_me: error: unrecognized option: $1
11715 Try \`$0 --help' for more information." >&2
11716 { (exit 1); exit 1; }; } ;;
11717
11718 *) ac_config_targets="$ac_config_targets $1"
11719 ac_need_defaults=false ;;
11720
11721 esac
11722 shift
11723 done
11724
11725 ac_configure_extra_args=
11726
11727 if $ac_cs_silent; then
11728 exec 6>/dev/null
11729 ac_configure_extra_args="$ac_configure_extra_args --silent"
11730 fi
11731
11732 _ACEOF
11733 cat >>$CONFIG_STATUS <<_ACEOF
11734 if \$ac_cs_recheck; then
11735 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11736 CONFIG_SHELL=$SHELL
11737 export CONFIG_SHELL
11738 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11739 fi
11740
11741 _ACEOF
11742 cat >>$CONFIG_STATUS <<\_ACEOF
11743 exec 5>>config.log
11744 {
11745 echo
11746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11747 ## Running $as_me. ##
11748 _ASBOX
11749 echo "$ac_log"
11750 } >&5
11751
11752 _ACEOF
11753 cat >>$CONFIG_STATUS <<_ACEOF
11754 #
11755 # INIT-COMMANDS
11756 #
11757 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11758
11759
11760 # The HP-UX ksh and POSIX shell print the target directory to stdout
11761 # if CDPATH is set.
11762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11763
11764 sed_quote_subst='$sed_quote_subst'
11765 double_quote_subst='$double_quote_subst'
11766 delay_variable_subst='$delay_variable_subst'
11767 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11768 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11769 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11770 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11771 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11772 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11773 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11774 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11775 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11776 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11777 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11778 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11779 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11780 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11781 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11782 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11783 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11784 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11785 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11786 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11787 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11788 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11789 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11790 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11791 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11792 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11793 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11794 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11795 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11796 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11797 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11798 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11799 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11800 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11801 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11802 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11803 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11804 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11805 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11806 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11807 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11808 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11809 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11810 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11811 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11812 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11813 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11814 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11815 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11816 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11817 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11818 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11819 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11820 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11821 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11822 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11823 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11824 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11825 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11826 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11827 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11828 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11829 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11830 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11831 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11832 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11833 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11834 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11835 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11836 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11837 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11838 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11839 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11840 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11841 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11842 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11843 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11844 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11845 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11846 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11847 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11848 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11849 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11850 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11851 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11852 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11853 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11854 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11855 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11856 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11857 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11858 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11859 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11860 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11861 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11862 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11863 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11864 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11865 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11866 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11867 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11868 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11869 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11870 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11871 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11872 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11873 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11874 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11875 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11876 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11877 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11878 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11879 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11880 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11881 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11882 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11883 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11884
11885 LTCC='$LTCC'
11886 LTCFLAGS='$LTCFLAGS'
11887 compiler='$compiler_DEFAULT'
11888
11889 # Quote evaled strings.
11890 for var in SED \
11891 GREP \
11892 EGREP \
11893 FGREP \
11894 LD \
11895 NM \
11896 LN_S \
11897 lt_SP2NL \
11898 lt_NL2SP \
11899 reload_flag \
11900 deplibs_check_method \
11901 file_magic_cmd \
11902 AR \
11903 AR_FLAGS \
11904 STRIP \
11905 RANLIB \
11906 CC \
11907 CFLAGS \
11908 compiler \
11909 lt_cv_sys_global_symbol_pipe \
11910 lt_cv_sys_global_symbol_to_cdecl \
11911 lt_cv_sys_global_symbol_to_c_name_address \
11912 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11913 SHELL \
11914 ECHO \
11915 lt_prog_compiler_no_builtin_flag \
11916 lt_prog_compiler_wl \
11917 lt_prog_compiler_pic \
11918 lt_prog_compiler_static \
11919 lt_cv_prog_compiler_c_o \
11920 need_locks \
11921 DSYMUTIL \
11922 NMEDIT \
11923 LIPO \
11924 OTOOL \
11925 OTOOL64 \
11926 shrext_cmds \
11927 export_dynamic_flag_spec \
11928 whole_archive_flag_spec \
11929 compiler_needs_object \
11930 with_gnu_ld \
11931 allow_undefined_flag \
11932 no_undefined_flag \
11933 hardcode_libdir_flag_spec \
11934 hardcode_libdir_flag_spec_ld \
11935 hardcode_libdir_separator \
11936 fix_srcfile_path \
11937 exclude_expsyms \
11938 include_expsyms \
11939 file_list_spec \
11940 variables_saved_for_relink \
11941 libname_spec \
11942 library_names_spec \
11943 soname_spec \
11944 finish_eval \
11945 old_striplib \
11946 striplib; do
11947 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11948 *[\\\\\\\`\\"\\\$]*)
11949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11950 ;;
11951 *)
11952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11953 ;;
11954 esac
11955 done
11956
11957 # Double-quote double-evaled strings.
11958 for var in reload_cmds \
11959 old_postinstall_cmds \
11960 old_postuninstall_cmds \
11961 old_archive_cmds \
11962 extract_expsyms_cmds \
11963 old_archive_from_new_cmds \
11964 old_archive_from_expsyms_cmds \
11965 archive_cmds \
11966 archive_expsym_cmds \
11967 module_cmds \
11968 module_expsym_cmds \
11969 export_symbols_cmds \
11970 prelink_cmds \
11971 postinstall_cmds \
11972 postuninstall_cmds \
11973 finish_cmds \
11974 sys_lib_search_path_spec \
11975 sys_lib_dlsearch_path_spec; do
11976 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11977 *[\\\\\\\`\\"\\\$]*)
11978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11979 ;;
11980 *)
11981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11982 ;;
11983 esac
11984 done
11985
11986 # Fix-up fallback echo if it was mangled by the above quoting rules.
11987 case \$lt_ECHO in
11988 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11989 ;;
11990 esac
11991
11992 ac_aux_dir='$ac_aux_dir'
11993 xsi_shell='$xsi_shell'
11994 lt_shell_append='$lt_shell_append'
11995
11996 # See if we are running on zsh, and set the options which allow our
11997 # commands through without removal of \ escapes INIT.
11998 if test -n "\${ZSH_VERSION+set}" ; then
11999 setopt NO_GLOB_SUBST
12000 fi
12001
12002
12003 PACKAGE='$PACKAGE'
12004 VERSION='$VERSION'
12005 TIMESTAMP='$TIMESTAMP'
12006 RM='$RM'
12007 ofile='$ofile'
12008
12009
12010
12011
12012 _ACEOF
12013
12014 cat >>$CONFIG_STATUS <<\_ACEOF
12015
12016 # Handling of arguments.
12017 for ac_config_target in $ac_config_targets
12018 do
12019 case $ac_config_target in
12020 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12021 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12022 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12023 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12024 "cursor/Makefile") CONFIG_FILES="$CONFIG_FILES cursor/Makefile" ;;
12025 "cursor/sugar/Makefile") CONFIG_FILES="$CONFIG_FILES cursor/sugar/Makefile" ;;
12026 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
12027 "icons/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/Makefile" ;;
12028 "icons/scalable/actions/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/actions/Makefile" ;;
12029 "icons/scalable/apps/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/apps/Makefile" ;;
12030 "icons/scalable/categories/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/categories/Makefile" ;;
12031 "icons/scalable/control/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/control/Makefile" ;;
12032 "icons/scalable/device/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/device/Makefile" ;;
12033 "icons/scalable/emblems/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/emblems/Makefile" ;;
12034 "icons/scalable/mimetypes/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/mimetypes/Makefile" ;;
12035 "icons/scalable/status/Makefile") CONFIG_FILES="$CONFIG_FILES icons/scalable/status/Makefile" ;;
12036 "gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
12037 "gtk/engine/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/engine/Makefile" ;;
12038 "gtk/theme/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/theme/Makefile" ;;
12039 "matchbox/Makefile") CONFIG_FILES="$CONFIG_FILES matchbox/Makefile" ;;
12040
12041 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12042 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12043 { (exit 1); exit 1; }; };;
12044 esac
12045 done
12046
12047
12048 # If the user did not use the arguments to specify the items to instantiate,
12049 # then the envvar interface is used. Set only those that are not.
12050 # We use the long form for the default assignment because of an extremely
12051 # bizarre bug on SunOS 4.1.3.
12052 if $ac_need_defaults; then
12053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12056 fi
12057
12058 # Have a temporary directory for convenience. Make it in the build tree
12059 # simply because there is no reason against having it here, and in addition,
12060 # creating and moving files from /tmp can sometimes cause problems.
12061 # Hook for its removal unless debugging.
12062 # Note that there is a small window in which the directory will not be cleaned:
12063 # after its creation but before its name has been assigned to `$tmp'.
12064 $debug ||
12065 {
12066 tmp=
12067 trap 'exit_status=$?
12068 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12069 ' 0
12070 trap '{ (exit 1); exit 1; }' 1 2 13 15
12071 }
12072 # Create a (secure) tmp directory for tmp files.
12073
12074 {
12075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12076 test -n "$tmp" && test -d "$tmp"
12077 } ||
12078 {
12079 tmp=./conf$$-$RANDOM
12080 (umask 077 && mkdir "$tmp")
12081 } ||
12082 {
12083 echo "$me: cannot create a temporary directory in ." >&2
12084 { (exit 1); exit 1; }
12085 }
12086
12087 #
12088 # Set up the sed scripts for CONFIG_FILES section.
12089 #
12090
12091 # No need to generate the scripts if there are no CONFIG_FILES.
12092 # This happens for instance when ./config.status config.h
12093 if test -n "$CONFIG_FILES"; then
12094
12095 _ACEOF
12096
12097
12098
12099 ac_delim='%!_!# '
12100 for ac_last_try in false false false false false :; do
12101 cat >conf$$subs.sed <<_ACEOF
12102 SHELL!$SHELL$ac_delim
12103 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12104 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12105 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12106 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12107 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12108 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12109 exec_prefix!$exec_prefix$ac_delim
12110 prefix!$prefix$ac_delim
12111 program_transform_name!$program_transform_name$ac_delim
12112 bindir!$bindir$ac_delim
12113 sbindir!$sbindir$ac_delim
12114 libexecdir!$libexecdir$ac_delim
12115 datarootdir!$datarootdir$ac_delim
12116 datadir!$datadir$ac_delim
12117 sysconfdir!$sysconfdir$ac_delim
12118 sharedstatedir!$sharedstatedir$ac_delim
12119 localstatedir!$localstatedir$ac_delim
12120 includedir!$includedir$ac_delim
12121 oldincludedir!$oldincludedir$ac_delim
12122 docdir!$docdir$ac_delim
12123 infodir!$infodir$ac_delim
12124 htmldir!$htmldir$ac_delim
12125 dvidir!$dvidir$ac_delim
12126 pdfdir!$pdfdir$ac_delim
12127 psdir!$psdir$ac_delim
12128 libdir!$libdir$ac_delim
12129 localedir!$localedir$ac_delim
12130 mandir!$mandir$ac_delim
12131 DEFS!$DEFS$ac_delim
12132 ECHO_C!$ECHO_C$ac_delim
12133 ECHO_N!$ECHO_N$ac_delim
12134 ECHO_T!$ECHO_T$ac_delim
12135 LIBS!$LIBS$ac_delim
12136 build_alias!$build_alias$ac_delim
12137 host_alias!$host_alias$ac_delim
12138 target_alias!$target_alias$ac_delim
12139 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12140 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12141 INSTALL_DATA!$INSTALL_DATA$ac_delim
12142 CYGPATH_W!$CYGPATH_W$ac_delim
12143 PACKAGE!$PACKAGE$ac_delim
12144 VERSION!$VERSION$ac_delim
12145 ACLOCAL!$ACLOCAL$ac_delim
12146 AUTOCONF!$AUTOCONF$ac_delim
12147 AUTOMAKE!$AUTOMAKE$ac_delim
12148 AUTOHEADER!$AUTOHEADER$ac_delim
12149 MAKEINFO!$MAKEINFO$ac_delim
12150 install_sh!$install_sh$ac_delim
12151 STRIP!$STRIP$ac_delim
12152 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12153 mkdir_p!$mkdir_p$ac_delim
12154 AWK!$AWK$ac_delim
12155 SET_MAKE!$SET_MAKE$ac_delim
12156 am__leading_dot!$am__leading_dot$ac_delim
12157 AMTAR!$AMTAR$ac_delim
12158 am__tar!$am__tar$ac_delim
12159 am__untar!$am__untar$ac_delim
12160 PKG_CONFIG!$PKG_CONFIG$ac_delim
12161 CC!$CC$ac_delim
12162 CFLAGS!$CFLAGS$ac_delim
12163 LDFLAGS!$LDFLAGS$ac_delim
12164 CPPFLAGS!$CPPFLAGS$ac_delim
12165 ac_ct_CC!$ac_ct_CC$ac_delim
12166 EXEEXT!$EXEEXT$ac_delim
12167 OBJEXT!$OBJEXT$ac_delim
12168 DEPDIR!$DEPDIR$ac_delim
12169 am__include!$am__include$ac_delim
12170 am__quote!$am__quote$ac_delim
12171 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12172 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12173 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12174 CCDEPMODE!$CCDEPMODE$ac_delim
12175 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12176 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12177 CPP!$CPP$ac_delim
12178 GREP!$GREP$ac_delim
12179 EGREP!$EGREP$ac_delim
12180 LIBTOOL!$LIBTOOL$ac_delim
12181 build!$build$ac_delim
12182 build_cpu!$build_cpu$ac_delim
12183 build_vendor!$build_vendor$ac_delim
12184 build_os!$build_os$ac_delim
12185 host!$host$ac_delim
12186 host_cpu!$host_cpu$ac_delim
12187 host_vendor!$host_vendor$ac_delim
12188 host_os!$host_os$ac_delim
12189 SED!$SED$ac_delim
12190 FGREP!$FGREP$ac_delim
12191 LD!$LD$ac_delim
12192 DUMPBIN!$DUMPBIN$ac_delim
12193 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12194 NM!$NM$ac_delim
12195 LN_S!$LN_S$ac_delim
12196 AR!$AR$ac_delim
12197 RANLIB!$RANLIB$ac_delim
12198 lt_ECHO!$lt_ECHO$ac_delim
12199 _ACEOF
12200
12201 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12202 break
12203 elif $ac_last_try; then
12204 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12205 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12206 { (exit 1); exit 1; }; }
12207 else
12208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12209 fi
12210 done
12211
12212 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12213 if test -n "$ac_eof"; then
12214 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12215 ac_eof=`expr $ac_eof + 1`
12216 fi
12217
12218 cat >>$CONFIG_STATUS <<_ACEOF
12219 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12221 _ACEOF
12222 sed '
12223 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12224 s/^/s,@/; s/!/@,|#_!!_#|/
12225 :n
12226 t n
12227 s/'"$ac_delim"'$/,g/; t
12228 s/$/\\/; p
12229 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12230 ' >>$CONFIG_STATUS <conf$$subs.sed
12231 rm -f conf$$subs.sed
12232 cat >>$CONFIG_STATUS <<_ACEOF
12233 CEOF$ac_eof
12234 _ACEOF
12235
12236
12237 ac_delim='%!_!# '
12238 for ac_last_try in false false false false false :; do
12239 cat >conf$$subs.sed <<_ACEOF
12240 DSYMUTIL!$DSYMUTIL$ac_delim
12241 NMEDIT!$NMEDIT$ac_delim
12242 LIPO!$LIPO$ac_delim
12243 OTOOL!$OTOOL$ac_delim
12244 OTOOL64!$OTOOL64$ac_delim
12245 ICON_SLICER!$ICON_SLICER$ac_delim
12246 GTK2_CFLAGS!$GTK2_CFLAGS$ac_delim
12247 GTK2_LIBS!$GTK2_LIBS$ac_delim
12248 GDK_PIXBUF2_CFLAGS!$GDK_PIXBUF2_CFLAGS$ac_delim
12249 GDK_PIXBUF2_LIBS!$GDK_PIXBUF2_LIBS$ac_delim
12250 ENGINE_CFLAGS!$ENGINE_CFLAGS$ac_delim
12251 ENGINE_LIBS!$ENGINE_LIBS$ac_delim
12252 GTK_VERSION!$GTK_VERSION$ac_delim
12253 ICONMAP!$ICONMAP$ac_delim
12254 LIBOBJS!$LIBOBJS$ac_delim
12255 LTLIBOBJS!$LTLIBOBJS$ac_delim
12256 _ACEOF
12257
12258 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
12259 break
12260 elif $ac_last_try; then
12261 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12262 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12263 { (exit 1); exit 1; }; }
12264 else
12265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12266 fi
12267 done
12268
12269 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12270 if test -n "$ac_eof"; then
12271 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12272 ac_eof=`expr $ac_eof + 1`
12273 fi
12274
12275 cat >>$CONFIG_STATUS <<_ACEOF
12276 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12278 _ACEOF
12279 sed '
12280 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12281 s/^/s,@/; s/!/@,|#_!!_#|/
12282 :n
12283 t n
12284 s/'"$ac_delim"'$/,g/; t
12285 s/$/\\/; p
12286 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12287 ' >>$CONFIG_STATUS <conf$$subs.sed
12288 rm -f conf$$subs.sed
12289 cat >>$CONFIG_STATUS <<_ACEOF
12290 :end
12291 s/|#_!!_#|//g
12292 CEOF$ac_eof
12293 _ACEOF
12294
12295
12296 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12297 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12298 # trailing colons and then remove the whole line if VPATH becomes empty
12299 # (actually we leave an empty line to preserve line numbers).
12300 if test "x$srcdir" = x.; then
12301 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12302 s/:*\$(srcdir):*/:/
12303 s/:*\${srcdir}:*/:/
12304 s/:*@srcdir@:*/:/
12305 s/^\([^=]*=[ ]*\):*/\1/
12306 s/:*$//
12307 s/^[^=]*=[ ]*$//
12308 }'
12309 fi
12310
12311 cat >>$CONFIG_STATUS <<\_ACEOF
12312 fi # test -n "$CONFIG_FILES"
12313
12314
12315 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12316 do
12317 case $ac_tag in
12318 :[FHLC]) ac_mode=$ac_tag; continue;;
12319 esac
12320 case $ac_mode$ac_tag in
12321 :[FHL]*:*);;
12322 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12323 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12324 { (exit 1); exit 1; }; };;
12325 :[FH]-) ac_tag=-:-;;
12326 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12327 esac
12328 ac_save_IFS=$IFS
12329 IFS=:
12330 set x $ac_tag
12331 IFS=$ac_save_IFS
12332 shift
12333 ac_file=$1
12334 shift
12335
12336 case $ac_mode in
12337 :L) ac_source=$1;;
12338 :[FH])
12339 ac_file_inputs=
12340 for ac_f
12341 do
12342 case $ac_f in
12343 -) ac_f="$tmp/stdin";;
12344 *) # Look for the file first in the build tree, then in the source tree
12345 # (if the path is not absolute). The absolute path cannot be DOS-style,
12346 # because $ac_f cannot contain `:'.
12347 test -f "$ac_f" ||
12348 case $ac_f in
12349 [\\/$]*) false;;
12350 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12351 esac ||
12352 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12353 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12354 { (exit 1); exit 1; }; };;
12355 esac
12356 ac_file_inputs="$ac_file_inputs $ac_f"
12357 done
12358
12359 # Let's still pretend it is `configure' which instantiates (i.e., don't
12360 # use $as_me), people would be surprised to read:
12361 # /* config.h. Generated by config.status. */
12362 configure_input="Generated from "`IFS=:
12363 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12364 if test x"$ac_file" != x-; then
12365 configure_input="$ac_file. $configure_input"
12366 { echo "$as_me:$LINENO: creating $ac_file" >&5
12367 echo "$as_me: creating $ac_file" >&6;}
12368 fi
12369
12370 case $ac_tag in
12371 *:-:* | *:-) cat >"$tmp/stdin";;
12372 esac
12373 ;;
12374 esac
12375
12376 ac_dir=`$as_dirname -- "$ac_file" ||
12377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12378 X"$ac_file" : 'X\(//\)[^/]' \| \
12379 X"$ac_file" : 'X\(//\)$' \| \
12380 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12381 echo X"$ac_file" |
12382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12383 s//\1/
12384 q
12385 }
12386 /^X\(\/\/\)[^/].*/{
12387 s//\1/
12388 q
12389 }
12390 /^X\(\/\/\)$/{
12391 s//\1/
12392 q
12393 }
12394 /^X\(\/\).*/{
12395 s//\1/
12396 q
12397 }
12398 s/.*/./; q'`
12399 { as_dir="$ac_dir"
12400 case $as_dir in #(
12401 -*) as_dir=./$as_dir;;
12402 esac
12403 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12404 as_dirs=
12405 while :; do
12406 case $as_dir in #(
12407 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12408 *) as_qdir=$as_dir;;
12409 esac
12410 as_dirs="'$as_qdir' $as_dirs"
12411 as_dir=`$as_dirname -- "$as_dir" ||
12412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12413 X"$as_dir" : 'X\(//\)[^/]' \| \
12414 X"$as_dir" : 'X\(//\)$' \| \
12415 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12416 echo X"$as_dir" |
12417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12418 s//\1/
12419 q
12420 }
12421 /^X\(\/\/\)[^/].*/{
12422 s//\1/
12423 q
12424 }
12425 /^X\(\/\/\)$/{
12426 s//\1/
12427 q
12428 }
12429 /^X\(\/\).*/{
12430 s//\1/
12431 q
12432 }
12433 s/.*/./; q'`
12434 test -d "$as_dir" && break
12435 done
12436 test -z "$as_dirs" || eval "mkdir $as_dirs"
12437 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12438 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12439 { (exit 1); exit 1; }; }; }
12440 ac_builddir=.
12441
12442 case "$ac_dir" in
12443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12444 *)
12445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12446 # A ".." for each directory in $ac_dir_suffix.
12447 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12448 case $ac_top_builddir_sub in
12449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12451 esac ;;
12452 esac
12453 ac_abs_top_builddir=$ac_pwd
12454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12455 # for backward compatibility:
12456 ac_top_builddir=$ac_top_build_prefix
12457
12458 case $srcdir in
12459 .) # We are building in place.
12460 ac_srcdir=.
12461 ac_top_srcdir=$ac_top_builddir_sub
12462 ac_abs_top_srcdir=$ac_pwd ;;
12463 [\\/]* | ?:[\\/]* ) # Absolute name.
12464 ac_srcdir=$srcdir$ac_dir_suffix;
12465 ac_top_srcdir=$srcdir
12466 ac_abs_top_srcdir=$srcdir ;;
12467 *) # Relative name.
12468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12469 ac_top_srcdir=$ac_top_build_prefix$srcdir
12470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12471 esac
12472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12473
12474
12475 case $ac_mode in
12476 :F)
12477 #
12478 # CONFIG_FILE
12479 #
12480
12481 case $INSTALL in
12482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12483 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12484 esac
12485 _ACEOF
12486
12487 cat >>$CONFIG_STATUS <<\_ACEOF
12488 # If the template does not know about datarootdir, expand it.
12489 # FIXME: This hack should be removed a few years after 2.60.
12490 ac_datarootdir_hack=; ac_datarootdir_seen=
12491
12492 case `sed -n '/datarootdir/ {
12493 p
12494 q
12495 }
12496 /@datadir@/p
12497 /@docdir@/p
12498 /@infodir@/p
12499 /@localedir@/p
12500 /@mandir@/p
12501 ' $ac_file_inputs` in
12502 *datarootdir*) ac_datarootdir_seen=yes;;
12503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12504 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12505 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12506 _ACEOF
12507 cat >>$CONFIG_STATUS <<_ACEOF
12508 ac_datarootdir_hack='
12509 s&@datadir@&$datadir&g
12510 s&@docdir@&$docdir&g
12511 s&@infodir@&$infodir&g
12512 s&@localedir@&$localedir&g
12513 s&@mandir@&$mandir&g
12514 s&\\\${datarootdir}&$datarootdir&g' ;;
12515 esac
12516 _ACEOF
12517
12518 # Neutralize VPATH when `$srcdir' = `.'.
12519 # Shell code in configure.ac might set extrasub.
12520 # FIXME: do we really want to maintain this feature?
12521 cat >>$CONFIG_STATUS <<_ACEOF
12522 sed "$ac_vpsub
12523 $extrasub
12524 _ACEOF
12525 cat >>$CONFIG_STATUS <<\_ACEOF
12526 :t
12527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12528 s&@configure_input@&$configure_input&;t t
12529 s&@top_builddir@&$ac_top_builddir_sub&;t t
12530 s&@srcdir@&$ac_srcdir&;t t
12531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12532 s&@top_srcdir@&$ac_top_srcdir&;t t
12533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12534 s&@builddir@&$ac_builddir&;t t
12535 s&@abs_builddir@&$ac_abs_builddir&;t t
12536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12537 s&@INSTALL@&$ac_INSTALL&;t t
12538 $ac_datarootdir_hack
12539 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12540
12541 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12542 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12543 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12544 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12545 which seems to be undefined. Please make sure it is defined." >&5
12546 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12547 which seems to be undefined. Please make sure it is defined." >&2;}
12548
12549 rm -f "$tmp/stdin"
12550 case $ac_file in
12551 -) cat "$tmp/out"; rm -f "$tmp/out";;
12552 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12553 esac
12554 ;;
12555 :H)
12556 #
12557 # CONFIG_HEADER
12558 #
12559 _ACEOF
12560
12561 # Transform confdefs.h into a sed script `conftest.defines', that
12562 # substitutes the proper values into config.h.in to produce config.h.
12563 rm -f conftest.defines conftest.tail
12564 # First, append a space to every undef/define line, to ease matching.
12565 echo 's/$/ /' >conftest.defines
12566 # Then, protect against being on the right side of a sed subst, or in
12567 # an unquoted here document, in config.status. If some macros were
12568 # called several times there might be several #defines for the same
12569 # symbol, which is useless. But do not sort them, since the last
12570 # AC_DEFINE must be honored.
12571 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12572 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12573 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12574 # PARAMS is the parameter list in the macro definition--in most cases, it's
12575 # just an empty string.
12576 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12577 ac_dB='\\)[ (].*,\\1define\\2'
12578 ac_dC=' '
12579 ac_dD=' ,'
12580
12581 uniq confdefs.h |
12582 sed -n '
12583 t rset
12584 :rset
12585 s/^[ ]*#[ ]*define[ ][ ]*//
12586 t ok
12587 d
12588 :ok
12589 s/[\\&,]/\\&/g
12590 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12591 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12592 ' >>conftest.defines
12593
12594 # Remove the space that was appended to ease matching.
12595 # Then replace #undef with comments. This is necessary, for
12596 # example, in the case of _POSIX_SOURCE, which is predefined and required
12597 # on some systems where configure will not decide to define it.
12598 # (The regexp can be short, since the line contains either #define or #undef.)
12599 echo 's/ $//
12600 s,^[ #]*u.*,/* & */,' >>conftest.defines
12601
12602 # Break up conftest.defines:
12603 ac_max_sed_lines=50
12604
12605 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12606 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12607 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12608 # et cetera.
12609 ac_in='$ac_file_inputs'
12610 ac_out='"$tmp/out1"'
12611 ac_nxt='"$tmp/out2"'
12612
12613 while :
12614 do
12615 # Write a here document:
12616 cat >>$CONFIG_STATUS <<_ACEOF
12617 # First, check the format of the line:
12618 cat >"\$tmp/defines.sed" <<\\CEOF
12619 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12620 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12621 b
12622 :def
12623 _ACEOF
12624 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12625 echo 'CEOF
12626 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12627 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12628 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12629 grep . conftest.tail >/dev/null || break
12630 rm -f conftest.defines
12631 mv conftest.tail conftest.defines
12632 done
12633 rm -f conftest.defines conftest.tail
12634
12635 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12636 cat >>$CONFIG_STATUS <<\_ACEOF
12637 if test x"$ac_file" != x-; then
12638 echo "/* $configure_input */" >"$tmp/config.h"
12639 cat "$ac_result" >>"$tmp/config.h"
12640 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12641 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12642 echo "$as_me: $ac_file is unchanged" >&6;}
12643 else
12644 rm -f $ac_file
12645 mv "$tmp/config.h" $ac_file
12646 fi
12647 else
12648 echo "/* $configure_input */"
12649 cat "$ac_result"
12650 fi
12651 rm -f "$tmp/out12"
12652 # Compute $ac_file's index in $config_headers.
12653 _am_stamp_count=1
12654 for _am_header in $config_headers :; do
12655 case $_am_header in
12656 $ac_file | $ac_file:* )
12657 break ;;
12658 * )
12659 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12660 esac
12661 done
12662 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12663 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12664 X$ac_file : 'X\(//\)[^/]' \| \
12665 X$ac_file : 'X\(//\)$' \| \
12666 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12667 echo X$ac_file |
12668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12669 s//\1/
12670 q
12671 }
12672 /^X\(\/\/\)[^/].*/{
12673 s//\1/
12674 q
12675 }
12676 /^X\(\/\/\)$/{
12677 s//\1/
12678 q
12679 }
12680 /^X\(\/\).*/{
12681 s//\1/
12682 q
12683 }
12684 s/.*/./; q'`/stamp-h$_am_stamp_count
12685 ;;
12686
12687 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12688 echo "$as_me: executing $ac_file commands" >&6;}
12689 ;;
12690 esac
12691
12692
12693 case $ac_file$ac_mode in
12694 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12695 # Strip MF so we end up with the name of the file.
12696 mf=`echo "$mf" | sed -e 's/:.*$//'`
12697 # Check whether this is an Automake generated Makefile or not.
12698 # We used to match only the files named `Makefile.in', but
12699 # some people rename them; so instead we look at the file content.
12700 # Grep'ing the first line is not enough: some people post-process
12701 # each Makefile.in and add a new line on top of each file to say so.
12702 # So let's grep whole file.
12703 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12704 dirpart=`$as_dirname -- "$mf" ||
12705 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12706 X"$mf" : 'X\(//\)[^/]' \| \
12707 X"$mf" : 'X\(//\)$' \| \
12708 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12709 echo X"$mf" |
12710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12711 s//\1/
12712 q
12713 }
12714 /^X\(\/\/\)[^/].*/{
12715 s//\1/
12716 q
12717 }
12718 /^X\(\/\/\)$/{
12719 s//\1/
12720 q
12721 }
12722 /^X\(\/\).*/{
12723 s//\1/
12724 q
12725 }
12726 s/.*/./; q'`
12727 else
12728 continue
12729 fi
12730 # Extract the definition of DEPDIR, am__include, and am__quote
12731 # from the Makefile without running `make'.
12732 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12733 test -z "$DEPDIR" && continue
12734 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12735 test -z "am__include" && continue
12736 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12737 # When using ansi2knr, U may be empty or an underscore; expand it
12738 U=`sed -n 's/^U = //p' < "$mf"`
12739 # Find all dependency output files, they are included files with
12740 # $(DEPDIR) in their names. We invoke sed twice because it is the
12741 # simplest approach to changing $(DEPDIR) to its actual value in the
12742 # expansion.
12743 for file in `sed -n "
12744 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12745 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12746 # Make sure the directory exists.
12747 test -f "$dirpart/$file" && continue
12748 fdir=`$as_dirname -- "$file" ||
12749 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12750 X"$file" : 'X\(//\)[^/]' \| \
12751 X"$file" : 'X\(//\)$' \| \
12752 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12753 echo X"$file" |
12754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12755 s//\1/
12756 q
12757 }
12758 /^X\(\/\/\)[^/].*/{
12759 s//\1/
12760 q
12761 }
12762 /^X\(\/\/\)$/{
12763 s//\1/
12764 q
12765 }
12766 /^X\(\/\).*/{
12767 s//\1/
12768 q
12769 }
12770 s/.*/./; q'`
12771 { as_dir=$dirpart/$fdir
12772 case $as_dir in #(
12773 -*) as_dir=./$as_dir;;
12774 esac
12775 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12776 as_dirs=
12777 while :; do
12778 case $as_dir in #(
12779 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12780 *) as_qdir=$as_dir;;
12781 esac
12782 as_dirs="'$as_qdir' $as_dirs"
12783 as_dir=`$as_dirname -- "$as_dir" ||
12784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12785 X"$as_dir" : 'X\(//\)[^/]' \| \
12786 X"$as_dir" : 'X\(//\)$' \| \
12787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12788 echo X"$as_dir" |
12789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12790 s//\1/
12791 q
12792 }
12793 /^X\(\/\/\)[^/].*/{
12794 s//\1/
12795 q
12796 }
12797 /^X\(\/\/\)$/{
12798 s//\1/
12799 q
12800 }
12801 /^X\(\/\).*/{
12802 s//\1/
12803 q
12804 }
12805 s/.*/./; q'`
12806 test -d "$as_dir" && break
12807 done
12808 test -z "$as_dirs" || eval "mkdir $as_dirs"
12809 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12810 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12811 { (exit 1); exit 1; }; }; }
12812 # echo "creating $dirpart/$file"
12813 echo '# dummy' > "$dirpart/$file"
12814 done
12815 done
12816 ;;
12817 "libtool":C)
12818
12819 # See if we are running on zsh, and set the options which allow our
12820 # commands through without removal of \ escapes.
12821 if test -n "${ZSH_VERSION+set}" ; then
12822 setopt NO_GLOB_SUBST
12823 fi
12824
12825 cfgfile="${ofile}T"
12826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12827 $RM "$cfgfile"
12828
12829 cat <<_LT_EOF >> "$cfgfile"
12830 #! $SHELL
12831
12832 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12833 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12835 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12836 #
12837 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12838 # 2006, 2007, 2008 Free Software Foundation, Inc.
12839 # Written by Gordon Matzigkeit, 1996
12840 #
12841 # This file is part of GNU Libtool.
12842 #
12843 # GNU Libtool is free software; you can redistribute it and/or
12844 # modify it under the terms of the GNU General Public License as
12845 # published by the Free Software Foundation; either version 2 of
12846 # the License, or (at your option) any later version.
12847 #
12848 # As a special exception to the GNU General Public License,
12849 # if you distribute this file as part of a program or library that
12850 # is built using GNU Libtool, you may include this file under the
12851 # same distribution terms that you use for the rest of that program.
12852 #
12853 # GNU Libtool is distributed in the hope that it will be useful,
12854 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12856 # GNU General Public License for more details.
12857 #
12858 # You should have received a copy of the GNU General Public License
12859 # along with GNU Libtool; see the file COPYING. If not, a copy
12860 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12861 # obtained by writing to the Free Software Foundation, Inc.,
12862 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12863
12864
12865 # The names of the tagged configurations supported by this script.
12866 available_tags=""
12867
12868 # ### BEGIN LIBTOOL CONFIG
12869
12870 # Whether or not to build static libraries.
12871 build_old_libs=$enable_static
12872
12873 # Which release of libtool.m4 was used?
12874 macro_version=$macro_version
12875 macro_revision=$macro_revision
12876
12877 # Whether or not to build shared libraries.
12878 build_libtool_libs=$enable_shared
12879
12880 # What type of objects to build.
12881 pic_mode=$pic_mode
12882
12883 # Whether or not to optimize for fast installation.
12884 fast_install=$enable_fast_install
12885
12886 # The host system.
12887 host_alias=$host_alias
12888 host=$host
12889 host_os=$host_os
12890
12891 # The build system.
12892 build_alias=$build_alias
12893 build=$build
12894 build_os=$build_os
12895
12896 # A sed program that does not truncate output.
12897 SED=$lt_SED
12898
12899 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12900 Xsed="\$SED -e 1s/^X//"
12901
12902 # A grep program that handles long lines.
12903 GREP=$lt_GREP
12904
12905 # An ERE matcher.
12906 EGREP=$lt_EGREP
12907
12908 # A literal string matcher.
12909 FGREP=$lt_FGREP
12910
12911 # A BSD- or MS-compatible name lister.
12912 NM=$lt_NM
12913
12914 # Whether we need soft or hard links.
12915 LN_S=$lt_LN_S
12916
12917 # What is the maximum length of a command?
12918 max_cmd_len=$max_cmd_len
12919
12920 # Object file suffix (normally "o").
12921 objext=$ac_objext
12922
12923 # Executable file suffix (normally "").
12924 exeext=$exeext
12925
12926 # whether the shell understands "unset".
12927 lt_unset=$lt_unset
12928
12929 # turn spaces into newlines.
12930 SP2NL=$lt_lt_SP2NL
12931
12932 # turn newlines into spaces.
12933 NL2SP=$lt_lt_NL2SP
12934
12935 # How to create reloadable object files.
12936 reload_flag=$lt_reload_flag
12937 reload_cmds=$lt_reload_cmds
12938
12939 # Method to check whether dependent libraries are shared objects.
12940 deplibs_check_method=$lt_deplibs_check_method
12941
12942 # Command to use when deplibs_check_method == "file_magic".
12943 file_magic_cmd=$lt_file_magic_cmd
12944
12945 # The archiver.
12946 AR=$lt_AR
12947 AR_FLAGS=$lt_AR_FLAGS
12948
12949 # A symbol stripping program.
12950 STRIP=$lt_STRIP
12951
12952 # Commands used to install an old-style archive.
12953 RANLIB=$lt_RANLIB
12954 old_postinstall_cmds=$lt_old_postinstall_cmds
12955 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12956
12957 # A C compiler.
12958 LTCC=$lt_CC
12959
12960 # LTCC compiler flags.
12961 LTCFLAGS=$lt_CFLAGS
12962
12963 # Take the output of nm and produce a listing of raw symbols and C names.
12964 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12965
12966 # Transform the output of nm in a proper C declaration.
12967 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12968
12969 # Transform the output of nm in a C name address pair.
12970 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12971
12972 # Transform the output of nm in a C name address pair when lib prefix is needed.
12973 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12974
12975 # The name of the directory that contains temporary libtool files.
12976 objdir=$objdir
12977
12978 # Shell to use when invoking shell scripts.
12979 SHELL=$lt_SHELL
12980
12981 # An echo program that does not interpret backslashes.
12982 ECHO=$lt_ECHO
12983
12984 # Used to examine libraries when file_magic_cmd begins with "file".
12985 MAGIC_CMD=$MAGIC_CMD
12986
12987 # Must we lock files when doing compilation?
12988 need_locks=$lt_need_locks
12989
12990 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12991 DSYMUTIL=$lt_DSYMUTIL
12992
12993 # Tool to change global to local symbols on Mac OS X.
12994 NMEDIT=$lt_NMEDIT
12995
12996 # Tool to manipulate fat objects and archives on Mac OS X.
12997 LIPO=$lt_LIPO
12998
12999 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13000 OTOOL=$lt_OTOOL
13001
13002 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13003 OTOOL64=$lt_OTOOL64
13004
13005 # Old archive suffix (normally "a").
13006 libext=$libext
13007
13008 # Shared library suffix (normally ".so").
13009 shrext_cmds=$lt_shrext_cmds
13010
13011 # The commands to extract the exported symbol list from a shared archive.
13012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13013
13014 # Variables whose values should be saved in libtool wrapper scripts and
13015 # restored at link time.
13016 variables_saved_for_relink=$lt_variables_saved_for_relink
13017
13018 # Do we need the "lib" prefix for modules?
13019 need_lib_prefix=$need_lib_prefix
13020
13021 # Do we need a version for libraries?
13022 need_version=$need_version
13023
13024 # Library versioning type.
13025 version_type=$version_type
13026
13027 # Shared library runtime path variable.
13028 runpath_var=$runpath_var
13029
13030 # Shared library path variable.
13031 shlibpath_var=$shlibpath_var
13032
13033 # Is shlibpath searched before the hard-coded library search path?
13034 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13035
13036 # Format of library name prefix.
13037 libname_spec=$lt_libname_spec
13038
13039 # List of archive names. First name is the real one, the rest are links.
13040 # The last name is the one that the linker finds with -lNAME
13041 library_names_spec=$lt_library_names_spec
13042
13043 # The coded name of the library, if different from the real name.
13044 soname_spec=$lt_soname_spec
13045
13046 # Command to use after installation of a shared archive.
13047 postinstall_cmds=$lt_postinstall_cmds
13048
13049 # Command to use after uninstallation of a shared archive.
13050 postuninstall_cmds=$lt_postuninstall_cmds
13051
13052 # Commands used to finish a libtool library installation in a directory.
13053 finish_cmds=$lt_finish_cmds
13054
13055 # As "finish_cmds", except a single script fragment to be evaled but
13056 # not shown.
13057 finish_eval=$lt_finish_eval
13058
13059 # Whether we should hardcode library paths into libraries.
13060 hardcode_into_libs=$hardcode_into_libs
13061
13062 # Compile-time system search path for libraries.
13063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13064
13065 # Run-time system search path for libraries.
13066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13067
13068 # Whether dlopen is supported.
13069 dlopen_support=$enable_dlopen
13070
13071 # Whether dlopen of programs is supported.
13072 dlopen_self=$enable_dlopen_self
13073
13074 # Whether dlopen of statically linked programs is supported.
13075 dlopen_self_static=$enable_dlopen_self_static
13076
13077 # Commands to strip libraries.
13078 old_striplib=$lt_old_striplib
13079 striplib=$lt_striplib
13080
13081
13082 # The linker used to build libraries.
13083 LD=$lt_LD
13084
13085 # Commands used to build an old-style archive.
13086 old_archive_cmds=$lt_old_archive_cmds
13087
13088 # A language specific compiler.
13089 CC=$lt_compiler
13090
13091 # Is the compiler the GNU compiler?
13092 with_gcc=$GCC
13093
13094 # Compiler flag to turn off builtin functions.
13095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13096
13097 # How to pass a linker flag through the compiler.
13098 wl=$lt_lt_prog_compiler_wl
13099
13100 # Additional compiler flags for building library objects.
13101 pic_flag=$lt_lt_prog_compiler_pic
13102
13103 # Compiler flag to prevent dynamic linking.
13104 link_static_flag=$lt_lt_prog_compiler_static
13105
13106 # Does compiler simultaneously support -c and -o options?
13107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13108
13109 # Whether or not to add -lc for building shared libraries.
13110 build_libtool_need_lc=$archive_cmds_need_lc
13111
13112 # Whether or not to disallow shared libs when runtime libs are static.
13113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13114
13115 # Compiler flag to allow reflexive dlopens.
13116 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13117
13118 # Compiler flag to generate shared objects directly from archives.
13119 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13120
13121 # Whether the compiler copes with passing no objects directly.
13122 compiler_needs_object=$lt_compiler_needs_object
13123
13124 # Create an old-style archive from a shared archive.
13125 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13126
13127 # Create a temporary old-style archive to link instead of a shared archive.
13128 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13129
13130 # Commands used to build a shared archive.
13131 archive_cmds=$lt_archive_cmds
13132 archive_expsym_cmds=$lt_archive_expsym_cmds
13133
13134 # Commands used to build a loadable module if different from building
13135 # a shared archive.
13136 module_cmds=$lt_module_cmds
13137 module_expsym_cmds=$lt_module_expsym_cmds
13138
13139 # Whether we are building with GNU ld or not.
13140 with_gnu_ld=$lt_with_gnu_ld
13141
13142 # Flag that allows shared libraries with undefined symbols to be built.
13143 allow_undefined_flag=$lt_allow_undefined_flag
13144
13145 # Flag that enforces no undefined symbols.
13146 no_undefined_flag=$lt_no_undefined_flag
13147
13148 # Flag to hardcode \$libdir into a binary during linking.
13149 # This must work even if \$libdir does not exist
13150 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13151
13152 # If ld is used when linking, flag to hardcode \$libdir into a binary
13153 # during linking. This must work even if \$libdir does not exist.
13154 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13155
13156 # Whether we need a single "-rpath" flag with a separated argument.
13157 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13158
13159 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13160 # DIR into the resulting binary.
13161 hardcode_direct=$hardcode_direct
13162
13163 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13164 # DIR into the resulting binary and the resulting library dependency is
13165 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13166 # library is relocated.
13167 hardcode_direct_absolute=$hardcode_direct_absolute
13168
13169 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13170 # into the resulting binary.
13171 hardcode_minus_L=$hardcode_minus_L
13172
13173 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13174 # into the resulting binary.
13175 hardcode_shlibpath_var=$hardcode_shlibpath_var
13176
13177 # Set to "yes" if building a shared library automatically hardcodes DIR
13178 # into the library and all subsequent libraries and executables linked
13179 # against it.
13180 hardcode_automatic=$hardcode_automatic
13181
13182 # Set to yes if linker adds runtime paths of dependent libraries
13183 # to runtime path list.
13184 inherit_rpath=$inherit_rpath
13185
13186 # Whether libtool must link a program against all its dependency libraries.
13187 link_all_deplibs=$link_all_deplibs
13188
13189 # Fix the shell variable \$srcfile for the compiler.
13190 fix_srcfile_path=$lt_fix_srcfile_path
13191
13192 # Set to "yes" if exported symbols are required.
13193 always_export_symbols=$always_export_symbols
13194
13195 # The commands to list exported symbols.
13196 export_symbols_cmds=$lt_export_symbols_cmds
13197
13198 # Symbols that should not be listed in the preloaded symbols.
13199 exclude_expsyms=$lt_exclude_expsyms
13200
13201 # Symbols that must always be exported.
13202 include_expsyms=$lt_include_expsyms
13203
13204 # Commands necessary for linking programs (against libraries) with templates.
13205 prelink_cmds=$lt_prelink_cmds
13206
13207 # Specify filename containing input files.
13208 file_list_spec=$lt_file_list_spec
13209
13210 # How to hardcode a shared library path into an executable.
13211 hardcode_action=$hardcode_action
13212
13213 # ### END LIBTOOL CONFIG
13214
13215 _LT_EOF
13216
13217 case $host_os in
13218 aix3*)
13219 cat <<\_LT_EOF >> "$cfgfile"
13220 # AIX sometimes has problems with the GCC collect2 program. For some
13221 # reason, if we set the COLLECT_NAMES environment variable, the problems
13222 # vanish in a puff of smoke.
13223 if test "X${COLLECT_NAMES+set}" != Xset; then
13224 COLLECT_NAMES=
13225 export COLLECT_NAMES
13226 fi
13227 _LT_EOF
13228 ;;
13229 esac
13230
13231
13232 ltmain="$ac_aux_dir/ltmain.sh"
13233
13234
13235 # We use sed instead of cat because bash on DJGPP gets confused if
13236 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13237 # text mode, it properly converts lines to CR/LF. This bash problem
13238 # is reportedly fixed, but why not run on old versions too?
13239 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13240 || (rm -f "$cfgfile"; exit 1)
13241
13242 case $xsi_shell in
13243 yes)
13244 cat << \_LT_EOF >> "$cfgfile"
13245
13246 # func_dirname file append nondir_replacement
13247 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13248 # otherwise set result to NONDIR_REPLACEMENT.
13249 func_dirname ()
13250 {
13251 case ${1} in
13252 */*) func_dirname_result="${1%/*}${2}" ;;
13253 * ) func_dirname_result="${3}" ;;
13254 esac
13255 }
13256
13257 # func_basename file
13258 func_basename ()
13259 {
13260 func_basename_result="${1##*/}"
13261 }
13262
13263 # func_dirname_and_basename file append nondir_replacement
13264 # perform func_basename and func_dirname in a single function
13265 # call:
13266 # dirname: Compute the dirname of FILE. If nonempty,
13267 # add APPEND to the result, otherwise set result
13268 # to NONDIR_REPLACEMENT.
13269 # value returned in "$func_dirname_result"
13270 # basename: Compute filename of FILE.
13271 # value retuned in "$func_basename_result"
13272 # Implementation must be kept synchronized with func_dirname
13273 # and func_basename. For efficiency, we do not delegate to
13274 # those functions but instead duplicate the functionality here.
13275 func_dirname_and_basename ()
13276 {
13277 case ${1} in
13278 */*) func_dirname_result="${1%/*}${2}" ;;
13279 * ) func_dirname_result="${3}" ;;
13280 esac
13281 func_basename_result="${1##*/}"
13282 }
13283
13284 # func_stripname prefix suffix name
13285 # strip PREFIX and SUFFIX off of NAME.
13286 # PREFIX and SUFFIX must not contain globbing or regex special
13287 # characters, hashes, percent signs, but SUFFIX may contain a leading
13288 # dot (in which case that matches only a dot).
13289 func_stripname ()
13290 {
13291 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13292 # positional parameters, so assign one to ordinary parameter first.
13293 func_stripname_result=${3}
13294 func_stripname_result=${func_stripname_result#"${1}"}
13295 func_stripname_result=${func_stripname_result%"${2}"}
13296 }
13297
13298 # func_opt_split
13299 func_opt_split ()
13300 {
13301 func_opt_split_opt=${1%%=*}
13302 func_opt_split_arg=${1#*=}
13303 }
13304
13305 # func_lo2o object
13306 func_lo2o ()
13307 {
13308 case ${1} in
13309 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13310 *) func_lo2o_result=${1} ;;
13311 esac
13312 }
13313
13314 # func_xform libobj-or-source
13315 func_xform ()
13316 {
13317 func_xform_result=${1%.*}.lo
13318 }
13319
13320 # func_arith arithmetic-term...
13321 func_arith ()
13322 {
13323 func_arith_result=$(( $* ))
13324 }
13325
13326 # func_len string
13327 # STRING may not start with a hyphen.
13328 func_len ()
13329 {
13330 func_len_result=${#1}
13331 }
13332
13333 _LT_EOF
13334 ;;
13335 *) # Bourne compatible functions.
13336 cat << \_LT_EOF >> "$cfgfile"
13337
13338 # func_dirname file append nondir_replacement
13339 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13340 # otherwise set result to NONDIR_REPLACEMENT.
13341 func_dirname ()
13342 {
13343 # Extract subdirectory from the argument.
13344 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13345 if test "X$func_dirname_result" = "X${1}"; then
13346 func_dirname_result="${3}"
13347 else
13348 func_dirname_result="$func_dirname_result${2}"
13349 fi
13350 }
13351
13352 # func_basename file
13353 func_basename ()
13354 {
13355 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13356 }
13357
13358
13359 # func_stripname prefix suffix name
13360 # strip PREFIX and SUFFIX off of NAME.
13361 # PREFIX and SUFFIX must not contain globbing or regex special
13362 # characters, hashes, percent signs, but SUFFIX may contain a leading
13363 # dot (in which case that matches only a dot).
13364 # func_strip_suffix prefix name
13365 func_stripname ()
13366 {
13367 case ${2} in
13368 .*) func_stripname_result=`$ECHO "X${3}" \
13369 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13370 *) func_stripname_result=`$ECHO "X${3}" \
13371 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13372 esac
13373 }
13374
13375 # sed scripts:
13376 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13377 my_sed_long_arg='1s/^-[^=]*=//'
13378
13379 # func_opt_split
13380 func_opt_split ()
13381 {
13382 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13383 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13384 }
13385
13386 # func_lo2o object
13387 func_lo2o ()
13388 {
13389 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13390 }
13391
13392 # func_xform libobj-or-source
13393 func_xform ()
13394 {
13395 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13396 }
13397
13398 # func_arith arithmetic-term...
13399 func_arith ()
13400 {
13401 func_arith_result=`expr "$@"`
13402 }
13403
13404 # func_len string
13405 # STRING may not start with a hyphen.
13406 func_len ()
13407 {
13408 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13409 }
13410
13411 _LT_EOF
13412 esac
13413
13414 case $lt_shell_append in
13415 yes)
13416 cat << \_LT_EOF >> "$cfgfile"
13417
13418 # func_append var value
13419 # Append VALUE to the end of shell variable VAR.
13420 func_append ()
13421 {
13422 eval "$1+=\$2"
13423 }
13424 _LT_EOF
13425 ;;
13426 *)
13427 cat << \_LT_EOF >> "$cfgfile"
13428
13429 # func_append var value
13430 # Append VALUE to the end of shell variable VAR.
13431 func_append ()
13432 {
13433 eval "$1=\$$1\$2"
13434 }
13435
13436 _LT_EOF
13437 ;;
13438 esac
13439
13440
13441 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13442 || (rm -f "$cfgfile"; exit 1)
13443
13444 mv -f "$cfgfile" "$ofile" ||
13445 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13446 chmod +x "$ofile"
13447
13448 ;;
13449
13450 esac
13451 done # for ac_tag
13452
13453
13454 { (exit 0); exit 0; }
13455 _ACEOF
13456 chmod +x $CONFIG_STATUS
13457 ac_clean_files=$ac_clean_files_save
13458
13459
13460 # configure is writing to config.log, and then calls config.status.
13461 # config.status does its own redirection, appending to config.log.
13462 # Unfortunately, on DOS this fails, as config.log is still kept open
13463 # by configure, so config.status won't be able to write to it; its
13464 # output is simply discarded. So we exec the FD to /dev/null,
13465 # effectively closing config.log, so it can be properly (re)opened and
13466 # appended to by config.status. When coming back to configure, we
13467 # need to make the FD available again.
13468 if test "$no_create" != yes; then
13469 ac_cs_success=:
13470 ac_config_status_args=
13471 test "$silent" = yes &&
13472 ac_config_status_args="$ac_config_status_args --quiet"
13473 exec 5>/dev/null
13474 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13475 exec 5>>config.log
13476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13477 # would make configure fail if this is the last instruction.
13478 $ac_cs_success || { (exit 1); exit 1; }
13479 fi
13480
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = cursor
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 SOURCES =
47 DIST_SOURCES =
48 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
49 html-recursive info-recursive install-data-recursive \
50 install-exec-recursive install-info-recursive \
51 install-recursive installcheck-recursive installdirs-recursive \
52 pdf-recursive ps-recursive uninstall-info-recursive \
53 uninstall-recursive
54 ETAGS = etags
55 CTAGS = ctags
56 DIST_SUBDIRS = $(SUBDIRS)
57 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
58 ACLOCAL = @ACLOCAL@
59 AMDEP_FALSE = @AMDEP_FALSE@
60 AMDEP_TRUE = @AMDEP_TRUE@
61 AMTAR = @AMTAR@
62 AR = @AR@
63 AUTOCONF = @AUTOCONF@
64 AUTOHEADER = @AUTOHEADER@
65 AUTOMAKE = @AUTOMAKE@
66 AWK = @AWK@
67 CC = @CC@
68 CCDEPMODE = @CCDEPMODE@
69 CFLAGS = @CFLAGS@
70 CPP = @CPP@
71 CPPFLAGS = @CPPFLAGS@
72 CYGPATH_W = @CYGPATH_W@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 DSYMUTIL = @DSYMUTIL@
76 DUMPBIN = @DUMPBIN@
77 ECHO_C = @ECHO_C@
78 ECHO_N = @ECHO_N@
79 ECHO_T = @ECHO_T@
80 EGREP = @EGREP@
81 ENGINE_CFLAGS = @ENGINE_CFLAGS@
82 ENGINE_LIBS = @ENGINE_LIBS@
83 EXEEXT = @EXEEXT@
84 FGREP = @FGREP@
85 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
86 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
87 GREP = @GREP@
88 GTK2_CFLAGS = @GTK2_CFLAGS@
89 GTK2_LIBS = @GTK2_LIBS@
90 GTK_VERSION = @GTK_VERSION@
91 ICONMAP = @ICONMAP@
92 ICON_SLICER = @ICON_SLICER@
93 INSTALL_DATA = @INSTALL_DATA@
94 INSTALL_PROGRAM = @INSTALL_PROGRAM@
95 INSTALL_SCRIPT = @INSTALL_SCRIPT@
96 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
97 LD = @LD@
98 LDFLAGS = @LDFLAGS@
99 LIBOBJS = @LIBOBJS@
100 LIBS = @LIBS@
101 LIBTOOL = @LIBTOOL@
102 LIPO = @LIPO@
103 LN_S = @LN_S@
104 LTLIBOBJS = @LTLIBOBJS@
105 MAKEINFO = @MAKEINFO@
106 NM = @NM@
107 NMEDIT = @NMEDIT@
108 OBJEXT = @OBJEXT@
109 OTOOL = @OTOOL@
110 OTOOL64 = @OTOOL64@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PKG_CONFIG = @PKG_CONFIG@
119 RANLIB = @RANLIB@
120 SED = @SED@
121 SET_MAKE = @SET_MAKE@
122 SHELL = @SHELL@
123 STRIP = @STRIP@
124 VERSION = @VERSION@
125 ac_ct_CC = @ac_ct_CC@
126 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
127 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
128 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
129 am__include = @am__include@
130 am__leading_dot = @am__leading_dot@
131 am__quote = @am__quote@
132 am__tar = @am__tar@
133 am__untar = @am__untar@
134 bindir = @bindir@
135 build = @build@
136 build_alias = @build_alias@
137 build_cpu = @build_cpu@
138 build_os = @build_os@
139 build_vendor = @build_vendor@
140 datadir = @datadir@
141 datarootdir = @datarootdir@
142 docdir = @docdir@
143 dvidir = @dvidir@
144 exec_prefix = @exec_prefix@
145 host = @host@
146 host_alias = @host_alias@
147 host_cpu = @host_cpu@
148 host_os = @host_os@
149 host_vendor = @host_vendor@
150 htmldir = @htmldir@
151 includedir = @includedir@
152 infodir = @infodir@
153 install_sh = @install_sh@
154 libdir = @libdir@
155 libexecdir = @libexecdir@
156 localedir = @localedir@
157 localstatedir = @localstatedir@
158 lt_ECHO = @lt_ECHO@
159 mandir = @mandir@
160 mkdir_p = @mkdir_p@
161 oldincludedir = @oldincludedir@
162 pdfdir = @pdfdir@
163 prefix = @prefix@
164 program_transform_name = @program_transform_name@
165 psdir = @psdir@
166 sbindir = @sbindir@
167 sharedstatedir = @sharedstatedir@
168 sysconfdir = @sysconfdir@
169 target_alias = @target_alias@
170 SUBDIRS = sugar
171 all: all-recursive
172
173 .SUFFIXES:
174 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
175 @for dep in $?; do \
176 case '$(am__configure_deps)' in \
177 *$$dep*) \
178 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
179 && exit 0; \
180 exit 1;; \
181 esac; \
182 done; \
183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign cursor/Makefile'; \
184 cd $(top_srcdir) && \
185 $(AUTOMAKE) --foreign cursor/Makefile
186 .PRECIOUS: Makefile
187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
188 @case '$?' in \
189 *config.status*) \
190 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
191 *) \
192 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
193 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
194 esac;
195
196 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
197 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
198
199 $(top_srcdir)/configure: $(am__configure_deps)
200 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
201 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
202 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
203
204 mostlyclean-libtool:
205 -rm -f *.lo
206
207 clean-libtool:
208 -rm -rf .libs _libs
209
210 distclean-libtool:
211 -rm -f libtool
212 uninstall-info-am:
213
214 # This directory's subdirectories are mostly independent; you can cd
215 # into them and run `make' without going through this Makefile.
216 # To change the values of `make' variables: instead of editing Makefiles,
217 # (1) if the variable is set in `config.status', edit `config.status'
218 # (which will cause the Makefiles to be regenerated when you run `make');
219 # (2) otherwise, pass the desired values on the `make' command line.
220 $(RECURSIVE_TARGETS):
221 @failcom='exit 1'; \
222 for f in x $$MAKEFLAGS; do \
223 case $$f in \
224 *=* | --[!k]*);; \
225 *k*) failcom='fail=yes';; \
226 esac; \
227 done; \
228 dot_seen=no; \
229 target=`echo $@ | sed s/-recursive//`; \
230 list='$(SUBDIRS)'; for subdir in $$list; do \
231 echo "Making $$target in $$subdir"; \
232 if test "$$subdir" = "."; then \
233 dot_seen=yes; \
234 local_target="$$target-am"; \
235 else \
236 local_target="$$target"; \
237 fi; \
238 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
239 || eval $$failcom; \
240 done; \
241 if test "$$dot_seen" = "no"; then \
242 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
243 fi; test -z "$$fail"
244
245 mostlyclean-recursive clean-recursive distclean-recursive \
246 maintainer-clean-recursive:
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 case "$@" in \
256 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
257 *) list='$(SUBDIRS)' ;; \
258 esac; \
259 rev=''; for subdir in $$list; do \
260 if test "$$subdir" = "."; then :; else \
261 rev="$$subdir $$rev"; \
262 fi; \
263 done; \
264 rev="$$rev ."; \
265 target=`echo $@ | sed s/-recursive//`; \
266 for subdir in $$rev; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 local_target="$$target-am"; \
270 else \
271 local_target="$$target"; \
272 fi; \
273 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
274 || eval $$failcom; \
275 done && test -z "$$fail"
276 tags-recursive:
277 list='$(SUBDIRS)'; for subdir in $$list; do \
278 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
279 done
280 ctags-recursive:
281 list='$(SUBDIRS)'; for subdir in $$list; do \
282 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
283 done
284
285 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
286 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
287 unique=`for i in $$list; do \
288 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
289 done | \
290 $(AWK) ' { files[$$0] = 1; } \
291 END { for (i in files) print i; }'`; \
292 mkid -fID $$unique
293 tags: TAGS
294
295 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
296 $(TAGS_FILES) $(LISP)
297 tags=; \
298 here=`pwd`; \
299 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
300 include_option=--etags-include; \
301 empty_fix=.; \
302 else \
303 include_option=--include; \
304 empty_fix=; \
305 fi; \
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 if test "$$subdir" = .; then :; else \
308 test ! -f $$subdir/TAGS || \
309 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
310 fi; \
311 done; \
312 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
313 unique=`for i in $$list; do \
314 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
315 done | \
316 $(AWK) ' { files[$$0] = 1; } \
317 END { for (i in files) print i; }'`; \
318 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
319 test -n "$$unique" || unique=$$empty_fix; \
320 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
321 $$tags $$unique; \
322 fi
323 ctags: CTAGS
324 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
325 $(TAGS_FILES) $(LISP)
326 tags=; \
327 here=`pwd`; \
328 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
329 unique=`for i in $$list; do \
330 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
331 done | \
332 $(AWK) ' { files[$$0] = 1; } \
333 END { for (i in files) print i; }'`; \
334 test -z "$(CTAGS_ARGS)$$tags$$unique" \
335 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
336 $$tags $$unique
337
338 GTAGS:
339 here=`$(am__cd) $(top_builddir) && pwd` \
340 && cd $(top_srcdir) \
341 && gtags -i $(GTAGS_ARGS) $$here
342
343 distclean-tags:
344 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
345
346 distdir: $(DISTFILES)
347 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
348 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
349 list='$(DISTFILES)'; for file in $$list; do \
350 case $$file in \
351 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
352 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
353 esac; \
354 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
355 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
356 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
357 dir="/$$dir"; \
358 $(mkdir_p) "$(distdir)$$dir"; \
359 else \
360 dir=''; \
361 fi; \
362 if test -d $$d/$$file; then \
363 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
364 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
365 fi; \
366 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
367 else \
368 test -f $(distdir)/$$file \
369 || cp -p $$d/$$file $(distdir)/$$file \
370 || exit 1; \
371 fi; \
372 done
373 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
374 if test "$$subdir" = .; then :; else \
375 test -d "$(distdir)/$$subdir" \
376 || $(mkdir_p) "$(distdir)/$$subdir" \
377 || exit 1; \
378 distdir=`$(am__cd) $(distdir) && pwd`; \
379 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
380 (cd $$subdir && \
381 $(MAKE) $(AM_MAKEFLAGS) \
382 top_distdir="$$top_distdir" \
383 distdir="$$distdir/$$subdir" \
384 distdir) \
385 || exit 1; \
386 fi; \
387 done
388 check-am: all-am
389 check: check-recursive
390 all-am: Makefile
391 installdirs: installdirs-recursive
392 installdirs-am:
393 install: install-recursive
394 install-exec: install-exec-recursive
395 install-data: install-data-recursive
396 uninstall: uninstall-recursive
397
398 install-am: all-am
399 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
400
401 installcheck: installcheck-recursive
402 install-strip:
403 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
404 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
405 `test -z '$(STRIP)' || \
406 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
407 mostlyclean-generic:
408
409 clean-generic:
410
411 distclean-generic:
412 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
413
414 maintainer-clean-generic:
415 @echo "This command is intended for maintainers to use"
416 @echo "it deletes files that may require special tools to rebuild."
417 clean: clean-recursive
418
419 clean-am: clean-generic clean-libtool mostlyclean-am
420
421 distclean: distclean-recursive
422 -rm -f Makefile
423 distclean-am: clean-am distclean-generic distclean-libtool \
424 distclean-tags
425
426 dvi: dvi-recursive
427
428 dvi-am:
429
430 html: html-recursive
431
432 info: info-recursive
433
434 info-am:
435
436 install-data-am:
437
438 install-exec-am:
439
440 install-info: install-info-recursive
441
442 install-man:
443
444 installcheck-am:
445
446 maintainer-clean: maintainer-clean-recursive
447 -rm -f Makefile
448 maintainer-clean-am: distclean-am maintainer-clean-generic
449
450 mostlyclean: mostlyclean-recursive
451
452 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
453
454 pdf: pdf-recursive
455
456 pdf-am:
457
458 ps: ps-recursive
459
460 ps-am:
461
462 uninstall-am: uninstall-info-am
463
464 uninstall-info: uninstall-info-recursive
465
466 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
467 clean clean-generic clean-libtool clean-recursive ctags \
468 ctags-recursive distclean distclean-generic distclean-libtool \
469 distclean-recursive distclean-tags distdir dvi dvi-am html \
470 html-am info info-am install install-am install-data \
471 install-data-am install-exec install-exec-am install-info \
472 install-info-am install-man install-strip installcheck \
473 installcheck-am installdirs installdirs-am maintainer-clean \
474 maintainer-clean-generic maintainer-clean-recursive \
475 mostlyclean mostlyclean-generic mostlyclean-libtool \
476 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
477 uninstall uninstall-am uninstall-info-am
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
+0
-1
cursor/sugar/.gitignore less more
0 cursors
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = cursor/sugar
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 SOURCES =
47 DIST_SOURCES =
48 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
49 ACLOCAL = @ACLOCAL@
50 AMDEP_FALSE = @AMDEP_FALSE@
51 AMDEP_TRUE = @AMDEP_TRUE@
52 AMTAR = @AMTAR@
53 AR = @AR@
54 AUTOCONF = @AUTOCONF@
55 AUTOHEADER = @AUTOHEADER@
56 AUTOMAKE = @AUTOMAKE@
57 AWK = @AWK@
58 CC = @CC@
59 CCDEPMODE = @CCDEPMODE@
60 CFLAGS = @CFLAGS@
61 CPP = @CPP@
62 CPPFLAGS = @CPPFLAGS@
63 CYGPATH_W = @CYGPATH_W@
64 DEFS = @DEFS@
65 DEPDIR = @DEPDIR@
66 DSYMUTIL = @DSYMUTIL@
67 DUMPBIN = @DUMPBIN@
68 ECHO_C = @ECHO_C@
69 ECHO_N = @ECHO_N@
70 ECHO_T = @ECHO_T@
71 EGREP = @EGREP@
72 ENGINE_CFLAGS = @ENGINE_CFLAGS@
73 ENGINE_LIBS = @ENGINE_LIBS@
74 EXEEXT = @EXEEXT@
75 FGREP = @FGREP@
76 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
77 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
78 GREP = @GREP@
79 GTK2_CFLAGS = @GTK2_CFLAGS@
80 GTK2_LIBS = @GTK2_LIBS@
81 GTK_VERSION = @GTK_VERSION@
82 ICONMAP = @ICONMAP@
83 ICON_SLICER = @ICON_SLICER@
84 INSTALL_DATA = @INSTALL_DATA@
85 INSTALL_PROGRAM = @INSTALL_PROGRAM@
86 INSTALL_SCRIPT = @INSTALL_SCRIPT@
87 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
88 LD = @LD@
89 LDFLAGS = @LDFLAGS@
90 LIBOBJS = @LIBOBJS@
91 LIBS = @LIBS@
92 LIBTOOL = @LIBTOOL@
93 LIPO = @LIPO@
94 LN_S = @LN_S@
95 LTLIBOBJS = @LTLIBOBJS@
96 MAKEINFO = @MAKEINFO@
97 NM = @NM@
98 NMEDIT = @NMEDIT@
99 OBJEXT = @OBJEXT@
100 OTOOL = @OTOOL@
101 OTOOL64 = @OTOOL64@
102 PACKAGE = @PACKAGE@
103 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
104 PACKAGE_NAME = @PACKAGE_NAME@
105 PACKAGE_STRING = @PACKAGE_STRING@
106 PACKAGE_TARNAME = @PACKAGE_TARNAME@
107 PACKAGE_VERSION = @PACKAGE_VERSION@
108 PATH_SEPARATOR = @PATH_SEPARATOR@
109 PKG_CONFIG = @PKG_CONFIG@
110 RANLIB = @RANLIB@
111 SED = @SED@
112 SET_MAKE = @SET_MAKE@
113 SHELL = @SHELL@
114 STRIP = @STRIP@
115 VERSION = @VERSION@
116 ac_ct_CC = @ac_ct_CC@
117 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
118 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
119 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
120 am__include = @am__include@
121 am__leading_dot = @am__leading_dot@
122 am__quote = @am__quote@
123 am__tar = @am__tar@
124 am__untar = @am__untar@
125 bindir = @bindir@
126 build = @build@
127 build_alias = @build_alias@
128 build_cpu = @build_cpu@
129 build_os = @build_os@
130 build_vendor = @build_vendor@
131 datadir = @datadir@
132 datarootdir = @datarootdir@
133 docdir = @docdir@
134 dvidir = @dvidir@
135 exec_prefix = @exec_prefix@
136 host = @host@
137 host_alias = @host_alias@
138 host_cpu = @host_cpu@
139 host_os = @host_os@
140 host_vendor = @host_vendor@
141 htmldir = @htmldir@
142 includedir = @includedir@
143 infodir = @infodir@
144 install_sh = @install_sh@
145 libdir = @libdir@
146 libexecdir = @libexecdir@
147 localedir = @localedir@
148 localstatedir = @localstatedir@
149 lt_ECHO = @lt_ECHO@
150 mandir = @mandir@
151 mkdir_p = @mkdir_p@
152 oldincludedir = @oldincludedir@
153 pdfdir = @pdfdir@
154 prefix = @prefix@
155 program_transform_name = @program_transform_name@
156 psdir = @psdir@
157 sbindir = @sbindir@
158 sharedstatedir = @sharedstatedir@
159 sysconfdir = @sysconfdir@
160 target_alias = @target_alias@
161 sugar_images = \
162 sugar-00.png \
163 sugar-01.png \
164 sugar-02.png \
165 sugar-03.png \
166 sugar-04.png \
167 sugar-05.png \
168 sugar-06.png \
169 sugar-07.png \
170 sugar-08.png \
171 sugar-09.png \
172 sugar-10.png \
173 sugar-11.png \
174 sugar-hotspots.png
175
176 IMAGE_DIR = $(top_srcdir)/cursor/sugar
177 OUTPUT_DIR = $(top_builddir)/cursor/sugar
178 CURSORS_DIR = $(OUTPUT_DIR)/cursors
179 EXTRA_DIST = $(sugar_images) sugar.cursortheme
180 all: all-am
181
182 .SUFFIXES:
183 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
184 @for dep in $?; do \
185 case '$(am__configure_deps)' in \
186 *$$dep*) \
187 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
188 && exit 0; \
189 exit 1;; \
190 esac; \
191 done; \
192 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign cursor/sugar/Makefile'; \
193 cd $(top_srcdir) && \
194 $(AUTOMAKE) --foreign cursor/sugar/Makefile
195 .PRECIOUS: Makefile
196 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
197 @case '$?' in \
198 *config.status*) \
199 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
200 *) \
201 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
202 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
203 esac;
204
205 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
206 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
207
208 $(top_srcdir)/configure: $(am__configure_deps)
209 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
210 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
211 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
212
213 mostlyclean-libtool:
214 -rm -f *.lo
215
216 clean-libtool:
217 -rm -rf .libs _libs
218
219 distclean-libtool:
220 -rm -f libtool
221 uninstall-info-am:
222 tags: TAGS
223 TAGS:
224
225 ctags: CTAGS
226 CTAGS:
227
228
229 distdir: $(DISTFILES)
230 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
231 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
232 list='$(DISTFILES)'; for file in $$list; do \
233 case $$file in \
234 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
235 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
236 esac; \
237 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
238 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
239 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
240 dir="/$$dir"; \
241 $(mkdir_p) "$(distdir)$$dir"; \
242 else \
243 dir=''; \
244 fi; \
245 if test -d $$d/$$file; then \
246 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
247 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
248 fi; \
249 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
250 else \
251 test -f $(distdir)/$$file \
252 || cp -p $$d/$$file $(distdir)/$$file \
253 || exit 1; \
254 fi; \
255 done
256 check-am: all-am
257 check: check-am
258 all-am: Makefile all-local
259 installdirs:
260 install: install-am
261 install-exec: install-exec-am
262 install-data: install-data-am
263 uninstall: uninstall-am
264
265 install-am: all-am
266 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
267
268 installcheck: installcheck-am
269 install-strip:
270 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
271 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
272 `test -z '$(STRIP)' || \
273 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
274 mostlyclean-generic:
275
276 clean-generic:
277
278 distclean-generic:
279 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
280
281 maintainer-clean-generic:
282 @echo "This command is intended for maintainers to use"
283 @echo "it deletes files that may require special tools to rebuild."
284 clean: clean-am
285
286 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
287
288 distclean: distclean-am
289 -rm -f Makefile
290 distclean-am: clean-am distclean-generic distclean-libtool
291
292 dvi: dvi-am
293
294 dvi-am:
295
296 html: html-am
297
298 info: info-am
299
300 info-am:
301
302 install-data-am: install-data-local
303
304 install-exec-am:
305
306 install-info: install-info-am
307
308 install-man:
309
310 installcheck-am:
311
312 maintainer-clean: maintainer-clean-am
313 -rm -f Makefile
314 maintainer-clean-am: distclean-am maintainer-clean-generic
315
316 mostlyclean: mostlyclean-am
317
318 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
319
320 pdf: pdf-am
321
322 pdf-am:
323
324 ps: ps-am
325
326 ps-am:
327
328 uninstall-am: uninstall-info-am uninstall-local
329
330 .PHONY: all all-am all-local check check-am clean clean-generic \
331 clean-libtool clean-local distclean distclean-generic \
332 distclean-libtool distdir dvi dvi-am html html-am info info-am \
333 install install-am install-data install-data-am \
334 install-data-local install-exec install-exec-am install-info \
335 install-info-am install-man install-strip installcheck \
336 installcheck-am installdirs maintainer-clean \
337 maintainer-clean-generic mostlyclean mostlyclean-generic \
338 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
339 uninstall-info-am uninstall-local
340
341 all-local: sugar.stamp
342
343 sugar.stamp: $(sugar_images) $(THEMEGEN) sugar.cursortheme
344 $(ICON_SLICER) --image-dir=$(IMAGE_DIR) --output-dir=$(OUTPUT_DIR) $(IMAGE_DIR)/sugar.cursortheme
345 touch sugar.stamp
346
347 clean-local:
348 rm -rf cursors
349 rm sugar.stamp
350
351 install-data-local:
352 $(mkinstalldirs) $(DESTDIR)$(datadir)/icons/sugar/cursors/
353 for i in `cd $(CURSORS_DIR) && echo *` ; do \
354 $(INSTALL) -m u=rw,go=r $(CURSORS_DIR)/$$i $(DESTDIR)$(datadir)/icons/sugar/cursors/$$i ; \
355 done
356
357 uninstall-local:
358 rm -rf $(DESTDIR)$(datadir)/icons/sugar/cursors
359 # Tell versions [3.59,3.63) of GNU make to not export all variables.
360 # Otherwise a system limit (for SysV at least) may be exceeded.
361 .NOEXPORT:
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
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, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU 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
20 # 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
28
29 case $1 in
30 '')
31 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
32 exit 1;
33 ;;
34 -h | --h*)
35 cat <<\EOF
36 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
37
38 Run PROGRAMS ARGS to compile a file, generating dependencies
39 as side-effects.
40
41 Environment variables:
42 depmode Dependency tracking mode.
43 source Source file read by `PROGRAMS ARGS'.
44 object Object file output by `PROGRAMS ARGS'.
45 DEPDIR directory where to store dependencies.
46 depfile Dependency file to output.
47 tmpdepfile Temporary file to use when outputing dependencies.
48 libtool Whether libtool is used (yes/no).
49
50 Report bugs to <bug-automake@gnu.org>.
51 EOF
52 exit $?
53 ;;
54 -v | --v*)
55 echo "depcomp $scriptversion"
56 exit $?
57 ;;
58 esac
59
60 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
61 echo "depcomp: Variables source, object and depmode must be set" 1>&2
62 exit 1
63 fi
64
65 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
66 depfile=${depfile-`echo "$object" |
67 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
68 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
69
70 rm -f "$tmpdepfile"
71
72 # Some modes work just like other modes, but use different flags. We
73 # parameterize here, but still list the modes in the big case below,
74 # to make depend.m4 easier to write. Note that we *cannot* use a case
75 # here, because this file can only contain one case statement.
76 if test "$depmode" = hp; then
77 # HP compiler uses -M and no extra arg.
78 gccflag=-M
79 depmode=gcc
80 fi
81
82 if test "$depmode" = dashXmstdout; then
83 # This is just like dashmstdout with a different argument.
84 dashmflag=-xM
85 depmode=dashmstdout
86 fi
87
88 case "$depmode" in
89 gcc3)
90 ## gcc 3 implements dependency tracking that does exactly what
91 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
92 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 stat=$?
95 if test $stat -eq 0; then :
96 else
97 rm -f "$tmpdepfile"
98 exit $stat
99 fi
100 mv "$tmpdepfile" "$depfile"
101 ;;
102
103 gcc)
104 ## There are various ways to get dependency output from gcc. Here's
105 ## why we pick this rather obscure method:
106 ## - Don't want to use -MD because we'd like the dependencies to end
107 ## up in a subdir. Having to rename by hand is ugly.
108 ## (We might end up doing this anyway to support other compilers.)
109 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
110 ## -MM, not -M (despite what the docs say).
111 ## - Using -M directly means running the compiler twice (even worse
112 ## than renaming).
113 if test -z "$gccflag"; then
114 gccflag=-MD,
115 fi
116 "$@" -Wp,"$gccflag$tmpdepfile"
117 stat=$?
118 if test $stat -eq 0; then :
119 else
120 rm -f "$tmpdepfile"
121 exit $stat
122 fi
123 rm -f "$depfile"
124 echo "$object : \\" > "$depfile"
125 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
126 ## The second -e expression handles DOS-style file names with drive letters.
127 sed -e 's/^[^:]*: / /' \
128 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
129 ## This next piece of magic avoids the `deleted header file' problem.
130 ## The problem is that when a header file which appears in a .P file
131 ## is deleted, the dependency causes make to die (because there is
132 ## typically no way to rebuild the header). We avoid this by adding
133 ## dummy dependencies for each header file. Too bad gcc doesn't do
134 ## this for us directly.
135 tr ' ' '
136 ' < "$tmpdepfile" |
137 ## Some versions of gcc put a space before the `:'. On the theory
138 ## that the space means something, we add a space to the output as
139 ## well.
140 ## Some versions of the HPUX 10.20 sed can't process this invocation
141 ## correctly. Breaking it into two sed invocations is a workaround.
142 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
143 rm -f "$tmpdepfile"
144 ;;
145
146 hp)
147 # This case exists only to let depend.m4 do its work. It works by
148 # looking at the text of this script. This case will never be run,
149 # since it is checked for above.
150 exit 1
151 ;;
152
153 sgi)
154 if test "$libtool" = yes; then
155 "$@" "-Wp,-MDupdate,$tmpdepfile"
156 else
157 "$@" -MDupdate "$tmpdepfile"
158 fi
159 stat=$?
160 if test $stat -eq 0; then :
161 else
162 rm -f "$tmpdepfile"
163 exit $stat
164 fi
165 rm -f "$depfile"
166
167 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
168 echo "$object : \\" > "$depfile"
169
170 # Clip off the initial element (the dependent). Don't try to be
171 # clever and replace this with sed code, as IRIX sed won't handle
172 # lines with more than a fixed number of characters (4096 in
173 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
174 # the IRIX cc adds comments like `#:fec' to the end of the
175 # dependency line.
176 tr ' ' '
177 ' < "$tmpdepfile" \
178 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
179 tr '
180 ' ' ' >> $depfile
181 echo >> $depfile
182
183 # The second pass generates a dummy entry for each header file.
184 tr ' ' '
185 ' < "$tmpdepfile" \
186 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
187 >> $depfile
188 else
189 # The sourcefile does not contain any dependencies, so just
190 # store a dummy comment line, to avoid errors with the Makefile
191 # "include basename.Plo" scheme.
192 echo "#dummy" > "$depfile"
193 fi
194 rm -f "$tmpdepfile"
195 ;;
196
197 aix)
198 # The C for AIX Compiler uses -M and outputs the dependencies
199 # in a .u file. In older versions, this file always lives in the
200 # current directory. Also, the AIX compiler puts `$object:' at the
201 # start of each line; $object doesn't have directory information.
202 # Version 6 uses the directory in both cases.
203 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
204 tmpdepfile="$stripped.u"
205 if test "$libtool" = yes; then
206 "$@" -Wc,-M
207 else
208 "$@" -M
209 fi
210 stat=$?
211
212 if test -f "$tmpdepfile"; then :
213 else
214 stripped=`echo "$stripped" | sed 's,^.*/,,'`
215 tmpdepfile="$stripped.u"
216 fi
217
218 if test $stat -eq 0; then :
219 else
220 rm -f "$tmpdepfile"
221 exit $stat
222 fi
223
224 if test -f "$tmpdepfile"; then
225 outname="$stripped.o"
226 # Each line is of the form `foo.o: dependent.h'.
227 # Do two passes, one to just change these to
228 # `$object: dependent.h' and one to simply `dependent.h:'.
229 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
230 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
231 else
232 # The sourcefile does not contain any dependencies, so just
233 # store a dummy comment line, to avoid errors with the Makefile
234 # "include basename.Plo" scheme.
235 echo "#dummy" > "$depfile"
236 fi
237 rm -f "$tmpdepfile"
238 ;;
239
240 icc)
241 # Intel's C compiler understands `-MD -MF file'. However on
242 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
243 # ICC 7.0 will fill foo.d with something like
244 # foo.o: sub/foo.c
245 # foo.o: sub/foo.h
246 # which is wrong. We want:
247 # sub/foo.o: sub/foo.c
248 # sub/foo.o: sub/foo.h
249 # sub/foo.c:
250 # sub/foo.h:
251 # ICC 7.1 will output
252 # foo.o: sub/foo.c sub/foo.h
253 # and will wrap long lines using \ :
254 # foo.o: sub/foo.c ... \
255 # sub/foo.h ... \
256 # ...
257
258 "$@" -MD -MF "$tmpdepfile"
259 stat=$?
260 if test $stat -eq 0; then :
261 else
262 rm -f "$tmpdepfile"
263 exit $stat
264 fi
265 rm -f "$depfile"
266 # Each line is of the form `foo.o: dependent.h',
267 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
268 # Do two passes, one to just change these to
269 # `$object: dependent.h' and one to simply `dependent.h:'.
270 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
271 # Some versions of the HPUX 10.20 sed can't process this invocation
272 # correctly. Breaking it into two sed invocations is a workaround.
273 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
274 sed -e 's/$/ :/' >> "$depfile"
275 rm -f "$tmpdepfile"
276 ;;
277
278 tru64)
279 # The Tru64 compiler uses -MD to generate dependencies as a side
280 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
281 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
282 # dependencies in `foo.d' instead, so we check for that too.
283 # Subdirectories are respected.
284 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
285 test "x$dir" = "x$object" && dir=
286 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
287
288 if test "$libtool" = yes; then
289 # 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
291 # handle both shared and static libraries in a single compilation.
292 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293 #
294 # With libtool 1.5 this exception was removed, and libtool now
295 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
297 # in $dir$base.o.d. We have to check for both files, because
298 # one of the two compilations can be disabled. We should prefer
299 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
300 # automatically cleaned when .libs/ is deleted, while ignoring
301 # the former would cause a distcleancheck panic.
302 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
303 tmpdepfile2=$dir$base.o.d # libtool 1.5
304 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
305 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
306 "$@" -Wc,-MD
307 else
308 tmpdepfile1=$dir$base.o.d
309 tmpdepfile2=$dir$base.d
310 tmpdepfile3=$dir$base.d
311 tmpdepfile4=$dir$base.d
312 "$@" -MD
313 fi
314
315 stat=$?
316 if test $stat -eq 0; then :
317 else
318 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
319 exit $stat
320 fi
321
322 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
323 do
324 test -f "$tmpdepfile" && break
325 done
326 if test -f "$tmpdepfile"; then
327 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
328 # That's a tab and a space in the [].
329 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
330 else
331 echo "#dummy" > "$depfile"
332 fi
333 rm -f "$tmpdepfile"
334 ;;
335
336 #nosideeffect)
337 # This comment above is used by automake to tell side-effect
338 # dependency tracking mechanisms from slower ones.
339
340 dashmstdout)
341 # Important note: in order to support this mode, a compiler *must*
342 # always write the preprocessed file to stdout, regardless of -o.
343 "$@" || exit $?
344
345 # Remove the call to Libtool.
346 if test "$libtool" = yes; then
347 while test $1 != '--mode=compile'; do
348 shift
349 done
350 shift
351 fi
352
353 # Remove `-o $object'.
354 IFS=" "
355 for arg
356 do
357 case $arg in
358 -o)
359 shift
360 ;;
361 $object)
362 shift
363 ;;
364 *)
365 set fnord "$@" "$arg"
366 shift # fnord
367 shift # $arg
368 ;;
369 esac
370 done
371
372 test -z "$dashmflag" && dashmflag=-M
373 # Require at least two characters before searching for `:'
374 # in the target name. This is to cope with DOS-style filenames:
375 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
376 "$@" $dashmflag |
377 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
378 rm -f "$depfile"
379 cat < "$tmpdepfile" > "$depfile"
380 tr ' ' '
381 ' < "$tmpdepfile" | \
382 ## Some versions of the HPUX 10.20 sed can't process this invocation
383 ## correctly. Breaking it into two sed invocations is a workaround.
384 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
385 rm -f "$tmpdepfile"
386 ;;
387
388 dashXmstdout)
389 # This case only exists to satisfy depend.m4. It is never actually
390 # run, as this mode is specially recognized in the preamble.
391 exit 1
392 ;;
393
394 makedepend)
395 "$@" || exit $?
396 # Remove any Libtool call
397 if test "$libtool" = yes; then
398 while test $1 != '--mode=compile'; do
399 shift
400 done
401 shift
402 fi
403 # X makedepend
404 shift
405 cleared=no
406 for arg in "$@"; do
407 case $cleared in
408 no)
409 set ""; shift
410 cleared=yes ;;
411 esac
412 case "$arg" in
413 -D*|-I*)
414 set fnord "$@" "$arg"; shift ;;
415 # Strip any option that makedepend may not understand. Remove
416 # the object too, otherwise makedepend will parse it as a source file.
417 -*|$object)
418 ;;
419 *)
420 set fnord "$@" "$arg"; shift ;;
421 esac
422 done
423 obj_suffix="`echo $object | sed 's/^.*\././'`"
424 touch "$tmpdepfile"
425 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
426 rm -f "$depfile"
427 cat < "$tmpdepfile" > "$depfile"
428 sed '1,2d' "$tmpdepfile" | tr ' ' '
429 ' | \
430 ## Some versions of the HPUX 10.20 sed can't process this invocation
431 ## correctly. Breaking it into two sed invocations is a workaround.
432 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
433 rm -f "$tmpdepfile" "$tmpdepfile".bak
434 ;;
435
436 cpp)
437 # Important note: in order to support this mode, a compiler *must*
438 # always write the preprocessed file to stdout.
439 "$@" || exit $?
440
441 # Remove the call to Libtool.
442 if test "$libtool" = yes; then
443 while test $1 != '--mode=compile'; do
444 shift
445 done
446 shift
447 fi
448
449 # Remove `-o $object'.
450 IFS=" "
451 for arg
452 do
453 case $arg in
454 -o)
455 shift
456 ;;
457 $object)
458 shift
459 ;;
460 *)
461 set fnord "$@" "$arg"
462 shift # fnord
463 shift # $arg
464 ;;
465 esac
466 done
467
468 "$@" -E |
469 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
470 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
471 sed '$ s: \\$::' > "$tmpdepfile"
472 rm -f "$depfile"
473 echo "$object : \\" > "$depfile"
474 cat < "$tmpdepfile" >> "$depfile"
475 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
476 rm -f "$tmpdepfile"
477 ;;
478
479 msvisualcpp)
480 # Important note: in order to support this mode, a compiler *must*
481 # always write the preprocessed file to stdout, regardless of -o,
482 # because we must use -o when running libtool.
483 "$@" || exit $?
484 IFS=" "
485 for arg
486 do
487 case "$arg" in
488 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
489 set fnord "$@"
490 shift
491 shift
492 ;;
493 *)
494 set fnord "$@" "$arg"
495 shift
496 shift
497 ;;
498 esac
499 done
500 "$@" -E |
501 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
502 rm -f "$depfile"
503 echo "$object : \\" > "$depfile"
504 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
505 echo " " >> "$depfile"
506 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
507 rm -f "$tmpdepfile"
508 ;;
509
510 none)
511 exec "$@"
512 ;;
513
514 *)
515 echo "Unknown depmode $depmode" 1>&2
516 exit 1
517 ;;
518 esac
519
520 exit 0
521
522 # Local Variables:
523 # mode: shell-script
524 # sh-indentation: 2
525 # eval: (add-hook 'write-file-hooks 'time-stamp)
526 # time-stamp-start: "scriptversion="
527 # time-stamp-format: "%:y-%02m-%02d.%02H"
528 # time-stamp-end: "$"
529 # End:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = gtk
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 SOURCES =
47 DIST_SOURCES =
48 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
49 html-recursive info-recursive install-data-recursive \
50 install-exec-recursive install-info-recursive \
51 install-recursive installcheck-recursive installdirs-recursive \
52 pdf-recursive ps-recursive uninstall-info-recursive \
53 uninstall-recursive
54 ETAGS = etags
55 CTAGS = ctags
56 DIST_SUBDIRS = $(SUBDIRS)
57 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
58 ACLOCAL = @ACLOCAL@
59 AMDEP_FALSE = @AMDEP_FALSE@
60 AMDEP_TRUE = @AMDEP_TRUE@
61 AMTAR = @AMTAR@
62 AR = @AR@
63 AUTOCONF = @AUTOCONF@
64 AUTOHEADER = @AUTOHEADER@
65 AUTOMAKE = @AUTOMAKE@
66 AWK = @AWK@
67 CC = @CC@
68 CCDEPMODE = @CCDEPMODE@
69 CFLAGS = @CFLAGS@
70 CPP = @CPP@
71 CPPFLAGS = @CPPFLAGS@
72 CYGPATH_W = @CYGPATH_W@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 DSYMUTIL = @DSYMUTIL@
76 DUMPBIN = @DUMPBIN@
77 ECHO_C = @ECHO_C@
78 ECHO_N = @ECHO_N@
79 ECHO_T = @ECHO_T@
80 EGREP = @EGREP@
81 ENGINE_CFLAGS = @ENGINE_CFLAGS@
82 ENGINE_LIBS = @ENGINE_LIBS@
83 EXEEXT = @EXEEXT@
84 FGREP = @FGREP@
85 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
86 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
87 GREP = @GREP@
88 GTK2_CFLAGS = @GTK2_CFLAGS@
89 GTK2_LIBS = @GTK2_LIBS@
90 GTK_VERSION = @GTK_VERSION@
91 ICONMAP = @ICONMAP@
92 ICON_SLICER = @ICON_SLICER@
93 INSTALL_DATA = @INSTALL_DATA@
94 INSTALL_PROGRAM = @INSTALL_PROGRAM@
95 INSTALL_SCRIPT = @INSTALL_SCRIPT@
96 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
97 LD = @LD@
98 LDFLAGS = @LDFLAGS@
99 LIBOBJS = @LIBOBJS@
100 LIBS = @LIBS@
101 LIBTOOL = @LIBTOOL@
102 LIPO = @LIPO@
103 LN_S = @LN_S@
104 LTLIBOBJS = @LTLIBOBJS@
105 MAKEINFO = @MAKEINFO@
106 NM = @NM@
107 NMEDIT = @NMEDIT@
108 OBJEXT = @OBJEXT@
109 OTOOL = @OTOOL@
110 OTOOL64 = @OTOOL64@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PKG_CONFIG = @PKG_CONFIG@
119 RANLIB = @RANLIB@
120 SED = @SED@
121 SET_MAKE = @SET_MAKE@
122 SHELL = @SHELL@
123 STRIP = @STRIP@
124 VERSION = @VERSION@
125 ac_ct_CC = @ac_ct_CC@
126 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
127 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
128 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
129 am__include = @am__include@
130 am__leading_dot = @am__leading_dot@
131 am__quote = @am__quote@
132 am__tar = @am__tar@
133 am__untar = @am__untar@
134 bindir = @bindir@
135 build = @build@
136 build_alias = @build_alias@
137 build_cpu = @build_cpu@
138 build_os = @build_os@
139 build_vendor = @build_vendor@
140 datadir = @datadir@
141 datarootdir = @datarootdir@
142 docdir = @docdir@
143 dvidir = @dvidir@
144 exec_prefix = @exec_prefix@
145 host = @host@
146 host_alias = @host_alias@
147 host_cpu = @host_cpu@
148 host_os = @host_os@
149 host_vendor = @host_vendor@
150 htmldir = @htmldir@
151 includedir = @includedir@
152 infodir = @infodir@
153 install_sh = @install_sh@
154 libdir = @libdir@
155 libexecdir = @libexecdir@
156 localedir = @localedir@
157 localstatedir = @localstatedir@
158 lt_ECHO = @lt_ECHO@
159 mandir = @mandir@
160 mkdir_p = @mkdir_p@
161 oldincludedir = @oldincludedir@
162 pdfdir = @pdfdir@
163 prefix = @prefix@
164 program_transform_name = @program_transform_name@
165 psdir = @psdir@
166 sbindir = @sbindir@
167 sharedstatedir = @sharedstatedir@
168 sysconfdir = @sysconfdir@
169 target_alias = @target_alias@
170 SUBDIRS = engine theme
171 all: all-recursive
172
173 .SUFFIXES:
174 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
175 @for dep in $?; do \
176 case '$(am__configure_deps)' in \
177 *$$dep*) \
178 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
179 && exit 0; \
180 exit 1;; \
181 esac; \
182 done; \
183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gtk/Makefile'; \
184 cd $(top_srcdir) && \
185 $(AUTOMAKE) --foreign gtk/Makefile
186 .PRECIOUS: Makefile
187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
188 @case '$?' in \
189 *config.status*) \
190 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
191 *) \
192 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
193 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
194 esac;
195
196 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
197 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
198
199 $(top_srcdir)/configure: $(am__configure_deps)
200 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
201 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
202 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
203
204 mostlyclean-libtool:
205 -rm -f *.lo
206
207 clean-libtool:
208 -rm -rf .libs _libs
209
210 distclean-libtool:
211 -rm -f libtool
212 uninstall-info-am:
213
214 # This directory's subdirectories are mostly independent; you can cd
215 # into them and run `make' without going through this Makefile.
216 # To change the values of `make' variables: instead of editing Makefiles,
217 # (1) if the variable is set in `config.status', edit `config.status'
218 # (which will cause the Makefiles to be regenerated when you run `make');
219 # (2) otherwise, pass the desired values on the `make' command line.
220 $(RECURSIVE_TARGETS):
221 @failcom='exit 1'; \
222 for f in x $$MAKEFLAGS; do \
223 case $$f in \
224 *=* | --[!k]*);; \
225 *k*) failcom='fail=yes';; \
226 esac; \
227 done; \
228 dot_seen=no; \
229 target=`echo $@ | sed s/-recursive//`; \
230 list='$(SUBDIRS)'; for subdir in $$list; do \
231 echo "Making $$target in $$subdir"; \
232 if test "$$subdir" = "."; then \
233 dot_seen=yes; \
234 local_target="$$target-am"; \
235 else \
236 local_target="$$target"; \
237 fi; \
238 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
239 || eval $$failcom; \
240 done; \
241 if test "$$dot_seen" = "no"; then \
242 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
243 fi; test -z "$$fail"
244
245 mostlyclean-recursive clean-recursive distclean-recursive \
246 maintainer-clean-recursive:
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 case "$@" in \
256 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
257 *) list='$(SUBDIRS)' ;; \
258 esac; \
259 rev=''; for subdir in $$list; do \
260 if test "$$subdir" = "."; then :; else \
261 rev="$$subdir $$rev"; \
262 fi; \
263 done; \
264 rev="$$rev ."; \
265 target=`echo $@ | sed s/-recursive//`; \
266 for subdir in $$rev; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 local_target="$$target-am"; \
270 else \
271 local_target="$$target"; \
272 fi; \
273 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
274 || eval $$failcom; \
275 done && test -z "$$fail"
276 tags-recursive:
277 list='$(SUBDIRS)'; for subdir in $$list; do \
278 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
279 done
280 ctags-recursive:
281 list='$(SUBDIRS)'; for subdir in $$list; do \
282 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
283 done
284
285 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
286 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
287 unique=`for i in $$list; do \
288 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
289 done | \
290 $(AWK) ' { files[$$0] = 1; } \
291 END { for (i in files) print i; }'`; \
292 mkid -fID $$unique
293 tags: TAGS
294
295 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
296 $(TAGS_FILES) $(LISP)
297 tags=; \
298 here=`pwd`; \
299 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
300 include_option=--etags-include; \
301 empty_fix=.; \
302 else \
303 include_option=--include; \
304 empty_fix=; \
305 fi; \
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 if test "$$subdir" = .; then :; else \
308 test ! -f $$subdir/TAGS || \
309 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
310 fi; \
311 done; \
312 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
313 unique=`for i in $$list; do \
314 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
315 done | \
316 $(AWK) ' { files[$$0] = 1; } \
317 END { for (i in files) print i; }'`; \
318 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
319 test -n "$$unique" || unique=$$empty_fix; \
320 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
321 $$tags $$unique; \
322 fi
323 ctags: CTAGS
324 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
325 $(TAGS_FILES) $(LISP)
326 tags=; \
327 here=`pwd`; \
328 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
329 unique=`for i in $$list; do \
330 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
331 done | \
332 $(AWK) ' { files[$$0] = 1; } \
333 END { for (i in files) print i; }'`; \
334 test -z "$(CTAGS_ARGS)$$tags$$unique" \
335 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
336 $$tags $$unique
337
338 GTAGS:
339 here=`$(am__cd) $(top_builddir) && pwd` \
340 && cd $(top_srcdir) \
341 && gtags -i $(GTAGS_ARGS) $$here
342
343 distclean-tags:
344 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
345
346 distdir: $(DISTFILES)
347 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
348 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
349 list='$(DISTFILES)'; for file in $$list; do \
350 case $$file in \
351 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
352 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
353 esac; \
354 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
355 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
356 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
357 dir="/$$dir"; \
358 $(mkdir_p) "$(distdir)$$dir"; \
359 else \
360 dir=''; \
361 fi; \
362 if test -d $$d/$$file; then \
363 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
364 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
365 fi; \
366 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
367 else \
368 test -f $(distdir)/$$file \
369 || cp -p $$d/$$file $(distdir)/$$file \
370 || exit 1; \
371 fi; \
372 done
373 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
374 if test "$$subdir" = .; then :; else \
375 test -d "$(distdir)/$$subdir" \
376 || $(mkdir_p) "$(distdir)/$$subdir" \
377 || exit 1; \
378 distdir=`$(am__cd) $(distdir) && pwd`; \
379 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
380 (cd $$subdir && \
381 $(MAKE) $(AM_MAKEFLAGS) \
382 top_distdir="$$top_distdir" \
383 distdir="$$distdir/$$subdir" \
384 distdir) \
385 || exit 1; \
386 fi; \
387 done
388 check-am: all-am
389 check: check-recursive
390 all-am: Makefile
391 installdirs: installdirs-recursive
392 installdirs-am:
393 install: install-recursive
394 install-exec: install-exec-recursive
395 install-data: install-data-recursive
396 uninstall: uninstall-recursive
397
398 install-am: all-am
399 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
400
401 installcheck: installcheck-recursive
402 install-strip:
403 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
404 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
405 `test -z '$(STRIP)' || \
406 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
407 mostlyclean-generic:
408
409 clean-generic:
410
411 distclean-generic:
412 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
413
414 maintainer-clean-generic:
415 @echo "This command is intended for maintainers to use"
416 @echo "it deletes files that may require special tools to rebuild."
417 clean: clean-recursive
418
419 clean-am: clean-generic clean-libtool mostlyclean-am
420
421 distclean: distclean-recursive
422 -rm -f Makefile
423 distclean-am: clean-am distclean-generic distclean-libtool \
424 distclean-tags
425
426 dvi: dvi-recursive
427
428 dvi-am:
429
430 html: html-recursive
431
432 info: info-recursive
433
434 info-am:
435
436 install-data-am:
437
438 install-exec-am:
439
440 install-info: install-info-recursive
441
442 install-man:
443
444 installcheck-am:
445
446 maintainer-clean: maintainer-clean-recursive
447 -rm -f Makefile
448 maintainer-clean-am: distclean-am maintainer-clean-generic
449
450 mostlyclean: mostlyclean-recursive
451
452 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
453
454 pdf: pdf-recursive
455
456 pdf-am:
457
458 ps: ps-recursive
459
460 ps-am:
461
462 uninstall-am: uninstall-info-am
463
464 uninstall-info: uninstall-info-recursive
465
466 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
467 clean clean-generic clean-libtool clean-recursive ctags \
468 ctags-recursive distclean distclean-generic distclean-libtool \
469 distclean-recursive distclean-tags distdir dvi dvi-am html \
470 html-am info info-am install install-am install-data \
471 install-data-am install-exec install-exec-am install-info \
472 install-info-am install-man install-strip installcheck \
473 installcheck-am installdirs installdirs-am maintainer-clean \
474 maintainer-clean-generic maintainer-clean-recursive \
475 mostlyclean mostlyclean-generic mostlyclean-libtool \
476 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
477 uninstall uninstall-am uninstall-info-am
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = gtk/engine
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
48 am__vpath_adj = case $$p in \
49 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
50 *) f=$$p;; \
51 esac;
52 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
53 am__installdirs = "$(DESTDIR)$(enginedir)"
54 engineLTLIBRARIES_INSTALL = $(INSTALL)
55 LTLIBRARIES = $(engine_LTLIBRARIES)
56 libsugar_la_LIBADD =
57 am_libsugar_la_OBJECTS = sugar.lo sugar-rc-style.lo sugar-style.lo \
58 sugar-info.lo sugar-utils.lo sugar-drawing.lo
59 libsugar_la_OBJECTS = $(am_libsugar_la_OBJECTS)
60 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
61 depcomp = $(SHELL) $(top_srcdir)/depcomp
62 am__depfiles_maybe = depfiles
63 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
66 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
67 $(AM_CFLAGS) $(CFLAGS)
68 CCLD = $(CC)
69 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
70 $(AM_LDFLAGS) $(LDFLAGS) -o $@
71 SOURCES = $(libsugar_la_SOURCES)
72 DIST_SOURCES = $(libsugar_la_SOURCES)
73 ETAGS = etags
74 CTAGS = ctags
75 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76 ACLOCAL = @ACLOCAL@
77 AMDEP_FALSE = @AMDEP_FALSE@
78 AMDEP_TRUE = @AMDEP_TRUE@
79 AMTAR = @AMTAR@
80 AR = @AR@
81 AUTOCONF = @AUTOCONF@
82 AUTOHEADER = @AUTOHEADER@
83 AUTOMAKE = @AUTOMAKE@
84 AWK = @AWK@
85 CC = @CC@
86 CCDEPMODE = @CCDEPMODE@
87 CFLAGS = @CFLAGS@
88 CPP = @CPP@
89 CPPFLAGS = @CPPFLAGS@
90 CYGPATH_W = @CYGPATH_W@
91 DEFS = @DEFS@
92 DEPDIR = @DEPDIR@
93 DSYMUTIL = @DSYMUTIL@
94 DUMPBIN = @DUMPBIN@
95 ECHO_C = @ECHO_C@
96 ECHO_N = @ECHO_N@
97 ECHO_T = @ECHO_T@
98 EGREP = @EGREP@
99 ENGINE_CFLAGS = @ENGINE_CFLAGS@
100 ENGINE_LIBS = @ENGINE_LIBS@
101 EXEEXT = @EXEEXT@
102 FGREP = @FGREP@
103 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
104 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
105 GREP = @GREP@
106 GTK2_CFLAGS = @GTK2_CFLAGS@
107 GTK2_LIBS = @GTK2_LIBS@
108 GTK_VERSION = @GTK_VERSION@
109 ICONMAP = @ICONMAP@
110 ICON_SLICER = @ICON_SLICER@
111 INSTALL_DATA = @INSTALL_DATA@
112 INSTALL_PROGRAM = @INSTALL_PROGRAM@
113 INSTALL_SCRIPT = @INSTALL_SCRIPT@
114 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
115 LD = @LD@
116 LDFLAGS = @LDFLAGS@
117 LIBOBJS = @LIBOBJS@
118 LIBS = @LIBS@
119 LIBTOOL = @LIBTOOL@
120 LIPO = @LIPO@
121 LN_S = @LN_S@
122 LTLIBOBJS = @LTLIBOBJS@
123 MAKEINFO = @MAKEINFO@
124 NM = @NM@
125 NMEDIT = @NMEDIT@
126 OBJEXT = @OBJEXT@
127 OTOOL = @OTOOL@
128 OTOOL64 = @OTOOL64@
129 PACKAGE = @PACKAGE@
130 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
131 PACKAGE_NAME = @PACKAGE_NAME@
132 PACKAGE_STRING = @PACKAGE_STRING@
133 PACKAGE_TARNAME = @PACKAGE_TARNAME@
134 PACKAGE_VERSION = @PACKAGE_VERSION@
135 PATH_SEPARATOR = @PATH_SEPARATOR@
136 PKG_CONFIG = @PKG_CONFIG@
137 RANLIB = @RANLIB@
138 SED = @SED@
139 SET_MAKE = @SET_MAKE@
140 SHELL = @SHELL@
141 STRIP = @STRIP@
142 VERSION = @VERSION@
143 ac_ct_CC = @ac_ct_CC@
144 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
145 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
146 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
147 am__include = @am__include@
148 am__leading_dot = @am__leading_dot@
149 am__quote = @am__quote@
150 am__tar = @am__tar@
151 am__untar = @am__untar@
152 bindir = @bindir@
153 build = @build@
154 build_alias = @build_alias@
155 build_cpu = @build_cpu@
156 build_os = @build_os@
157 build_vendor = @build_vendor@
158 datadir = @datadir@
159 datarootdir = @datarootdir@
160 docdir = @docdir@
161 dvidir = @dvidir@
162 exec_prefix = @exec_prefix@
163 host = @host@
164 host_alias = @host_alias@
165 host_cpu = @host_cpu@
166 host_os = @host_os@
167 host_vendor = @host_vendor@
168 htmldir = @htmldir@
169 includedir = @includedir@
170 infodir = @infodir@
171 install_sh = @install_sh@
172 libdir = @libdir@
173 libexecdir = @libexecdir@
174 localedir = @localedir@
175 localstatedir = @localstatedir@
176 lt_ECHO = @lt_ECHO@
177 mandir = @mandir@
178 mkdir_p = @mkdir_p@
179 oldincludedir = @oldincludedir@
180 pdfdir = @pdfdir@
181 prefix = @prefix@
182 program_transform_name = @program_transform_name@
183 psdir = @psdir@
184 sbindir = @sbindir@
185 sharedstatedir = @sharedstatedir@
186 sysconfdir = @sysconfdir@
187 target_alias = @target_alias@
188 INCLUDES = \
189 -DGTK_DISABLE_DEPRECATED \
190 -DGDK_DISABLE_DEPRECATED \
191 -DG_DISABLE_DEPRECATED \
192 $(ENGINE_CFLAGS) $(WARN_CFLAGS)
193
194 enginedir = $(libdir)/gtk-2.0/$(GTK_VERSION)/engines
195 engine_LTLIBRARIES = libsugar.la
196 libsugar_la_SOURCES = \
197 sugar.c \
198 sugar-rc-style.c \
199 sugar-rc-style.h \
200 sugar-style.h \
201 sugar-style.c \
202 sugar-info.h \
203 sugar-info.c \
204 sugar-utils.h \
205 sugar-utils.c \
206 sugar-drawing.h \
207 sugar-drawing.c
208
209 libsugar_la_LDFLAGS = \
210 -avoid-version -no-undefined -module \
211 $(ENGINE_LIBS)
212
213 all: all-am
214
215 .SUFFIXES:
216 .SUFFIXES: .c .lo .o .obj
217 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
218 @for dep in $?; do \
219 case '$(am__configure_deps)' in \
220 *$$dep*) \
221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
222 && exit 0; \
223 exit 1;; \
224 esac; \
225 done; \
226 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gtk/engine/Makefile'; \
227 cd $(top_srcdir) && \
228 $(AUTOMAKE) --foreign gtk/engine/Makefile
229 .PRECIOUS: Makefile
230 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
231 @case '$?' in \
232 *config.status*) \
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
234 *) \
235 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
236 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
237 esac;
238
239 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
241
242 $(top_srcdir)/configure: $(am__configure_deps)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
246 install-engineLTLIBRARIES: $(engine_LTLIBRARIES)
247 @$(NORMAL_INSTALL)
248 test -z "$(enginedir)" || $(mkdir_p) "$(DESTDIR)$(enginedir)"
249 @list='$(engine_LTLIBRARIES)'; for p in $$list; do \
250 if test -f $$p; then \
251 f=$(am__strip_dir) \
252 echo " $(LIBTOOL) --mode=install $(engineLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(enginedir)/$$f'"; \
253 $(LIBTOOL) --mode=install $(engineLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(enginedir)/$$f"; \
254 else :; fi; \
255 done
256
257 uninstall-engineLTLIBRARIES:
258 @$(NORMAL_UNINSTALL)
259 @set -x; list='$(engine_LTLIBRARIES)'; for p in $$list; do \
260 p=$(am__strip_dir) \
261 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(enginedir)/$$p'"; \
262 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(enginedir)/$$p"; \
263 done
264
265 clean-engineLTLIBRARIES:
266 -test -z "$(engine_LTLIBRARIES)" || rm -f $(engine_LTLIBRARIES)
267 @list='$(engine_LTLIBRARIES)'; for p in $$list; do \
268 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
269 test "$$dir" != "$$p" || dir=.; \
270 echo "rm -f \"$${dir}/so_locations\""; \
271 rm -f "$${dir}/so_locations"; \
272 done
273 libsugar.la: $(libsugar_la_OBJECTS) $(libsugar_la_DEPENDENCIES)
274 $(LINK) -rpath $(enginedir) $(libsugar_la_LDFLAGS) $(libsugar_la_OBJECTS) $(libsugar_la_LIBADD) $(LIBS)
275
276 mostlyclean-compile:
277 -rm -f *.$(OBJEXT)
278
279 distclean-compile:
280 -rm -f *.tab.c
281
282 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sugar-drawing.Plo@am__quote@
283 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sugar-info.Plo@am__quote@
284 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sugar-rc-style.Plo@am__quote@
285 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sugar-style.Plo@am__quote@
286 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sugar-utils.Plo@am__quote@
287 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sugar.Plo@am__quote@
288
289 .c.o:
290 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
291 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
292 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
293 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
294 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
295
296 .c.obj:
297 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
298 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
299 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
300 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
301 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
302
303 .c.lo:
304 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
305 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
307 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
308 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
309
310 mostlyclean-libtool:
311 -rm -f *.lo
312
313 clean-libtool:
314 -rm -rf .libs _libs
315
316 distclean-libtool:
317 -rm -f libtool
318 uninstall-info-am:
319
320 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
321 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
322 unique=`for i in $$list; do \
323 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
324 done | \
325 $(AWK) ' { files[$$0] = 1; } \
326 END { for (i in files) print i; }'`; \
327 mkid -fID $$unique
328 tags: TAGS
329
330 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
331 $(TAGS_FILES) $(LISP)
332 tags=; \
333 here=`pwd`; \
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) ' { files[$$0] = 1; } \
339 END { for (i in files) print i; }'`; \
340 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
341 test -n "$$unique" || unique=$$empty_fix; \
342 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
343 $$tags $$unique; \
344 fi
345 ctags: CTAGS
346 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) ' { files[$$0] = 1; } \
355 END { for (i in files) print i; }'`; \
356 test -z "$(CTAGS_ARGS)$$tags$$unique" \
357 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
358 $$tags $$unique
359
360 GTAGS:
361 here=`$(am__cd) $(top_builddir) && pwd` \
362 && cd $(top_srcdir) \
363 && gtags -i $(GTAGS_ARGS) $$here
364
365 distclean-tags:
366 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
367
368 distdir: $(DISTFILES)
369 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
370 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
371 list='$(DISTFILES)'; for file in $$list; do \
372 case $$file in \
373 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
374 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
375 esac; \
376 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
377 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
378 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
379 dir="/$$dir"; \
380 $(mkdir_p) "$(distdir)$$dir"; \
381 else \
382 dir=''; \
383 fi; \
384 if test -d $$d/$$file; then \
385 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
386 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
387 fi; \
388 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
389 else \
390 test -f $(distdir)/$$file \
391 || cp -p $$d/$$file $(distdir)/$$file \
392 || exit 1; \
393 fi; \
394 done
395 check-am: all-am
396 check: check-am
397 all-am: Makefile $(LTLIBRARIES)
398 installdirs:
399 for dir in "$(DESTDIR)$(enginedir)"; do \
400 test -z "$$dir" || $(mkdir_p) "$$dir"; \
401 done
402 install: install-am
403 install-exec: install-exec-am
404 install-data: install-data-am
405 uninstall: uninstall-am
406
407 install-am: all-am
408 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
409
410 installcheck: installcheck-am
411 install-strip:
412 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
413 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
414 `test -z '$(STRIP)' || \
415 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
416 mostlyclean-generic:
417
418 clean-generic:
419
420 distclean-generic:
421 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
422
423 maintainer-clean-generic:
424 @echo "This command is intended for maintainers to use"
425 @echo "it deletes files that may require special tools to rebuild."
426 clean: clean-am
427
428 clean-am: clean-engineLTLIBRARIES clean-generic clean-libtool \
429 mostlyclean-am
430
431 distclean: distclean-am
432 -rm -rf ./$(DEPDIR)
433 -rm -f Makefile
434 distclean-am: clean-am distclean-compile distclean-generic \
435 distclean-libtool distclean-tags
436
437 dvi: dvi-am
438
439 dvi-am:
440
441 html: html-am
442
443 info: info-am
444
445 info-am:
446
447 install-data-am: install-engineLTLIBRARIES
448
449 install-exec-am:
450
451 install-info: install-info-am
452
453 install-man:
454
455 installcheck-am:
456
457 maintainer-clean: maintainer-clean-am
458 -rm -rf ./$(DEPDIR)
459 -rm -f Makefile
460 maintainer-clean-am: distclean-am maintainer-clean-generic
461
462 mostlyclean: mostlyclean-am
463
464 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
465 mostlyclean-libtool
466
467 pdf: pdf-am
468
469 pdf-am:
470
471 ps: ps-am
472
473 ps-am:
474
475 uninstall-am: uninstall-engineLTLIBRARIES uninstall-info-am
476
477 .PHONY: CTAGS GTAGS all all-am check check-am clean \
478 clean-engineLTLIBRARIES clean-generic clean-libtool ctags \
479 distclean distclean-compile distclean-generic \
480 distclean-libtool distclean-tags distdir dvi dvi-am html \
481 html-am info info-am install install-am install-data \
482 install-data-am install-engineLTLIBRARIES install-exec \
483 install-exec-am install-info install-info-am install-man \
484 install-strip installcheck installcheck-am installdirs \
485 maintainer-clean maintainer-clean-generic mostlyclean \
486 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
487 pdf pdf-am ps ps-am tags uninstall uninstall-am \
488 uninstall-engineLTLIBRARIES uninstall-info-am
489
490 # Tell versions [3.59,3.63) of GNU make to not export all variables.
491 # Otherwise a system limit (for SysV at least) may be exceeded.
492 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = gtk/theme
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 SOURCES =
47 DIST_SOURCES =
48 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
49 ACLOCAL = @ACLOCAL@
50 AMDEP_FALSE = @AMDEP_FALSE@
51 AMDEP_TRUE = @AMDEP_TRUE@
52 AMTAR = @AMTAR@
53 AR = @AR@
54 AUTOCONF = @AUTOCONF@
55 AUTOHEADER = @AUTOHEADER@
56 AUTOMAKE = @AUTOMAKE@
57 AWK = @AWK@
58 CC = @CC@
59 CCDEPMODE = @CCDEPMODE@
60 CFLAGS = @CFLAGS@
61 CPP = @CPP@
62 CPPFLAGS = @CPPFLAGS@
63 CYGPATH_W = @CYGPATH_W@
64 DEFS = @DEFS@
65 DEPDIR = @DEPDIR@
66 DSYMUTIL = @DSYMUTIL@
67 DUMPBIN = @DUMPBIN@
68 ECHO_C = @ECHO_C@
69 ECHO_N = @ECHO_N@
70 ECHO_T = @ECHO_T@
71 EGREP = @EGREP@
72 ENGINE_CFLAGS = @ENGINE_CFLAGS@
73 ENGINE_LIBS = @ENGINE_LIBS@
74 EXEEXT = @EXEEXT@
75 FGREP = @FGREP@
76 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
77 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
78 GREP = @GREP@
79 GTK2_CFLAGS = @GTK2_CFLAGS@
80 GTK2_LIBS = @GTK2_LIBS@
81 GTK_VERSION = @GTK_VERSION@
82 ICONMAP = @ICONMAP@
83 ICON_SLICER = @ICON_SLICER@
84 INSTALL_DATA = @INSTALL_DATA@
85 INSTALL_PROGRAM = @INSTALL_PROGRAM@
86 INSTALL_SCRIPT = @INSTALL_SCRIPT@
87 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
88 LD = @LD@
89 LDFLAGS = @LDFLAGS@
90 LIBOBJS = @LIBOBJS@
91 LIBS = @LIBS@
92 LIBTOOL = @LIBTOOL@
93 LIPO = @LIPO@
94 LN_S = @LN_S@
95 LTLIBOBJS = @LTLIBOBJS@
96 MAKEINFO = @MAKEINFO@
97 NM = @NM@
98 NMEDIT = @NMEDIT@
99 OBJEXT = @OBJEXT@
100 OTOOL = @OTOOL@
101 OTOOL64 = @OTOOL64@
102 PACKAGE = @PACKAGE@
103 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
104 PACKAGE_NAME = @PACKAGE_NAME@
105 PACKAGE_STRING = @PACKAGE_STRING@
106 PACKAGE_TARNAME = @PACKAGE_TARNAME@
107 PACKAGE_VERSION = @PACKAGE_VERSION@
108 PATH_SEPARATOR = @PATH_SEPARATOR@
109 PKG_CONFIG = @PKG_CONFIG@
110 RANLIB = @RANLIB@
111 SED = @SED@
112 SET_MAKE = @SET_MAKE@
113 SHELL = @SHELL@
114 STRIP = @STRIP@
115 VERSION = @VERSION@
116 ac_ct_CC = @ac_ct_CC@
117 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
118 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
119 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
120 am__include = @am__include@
121 am__leading_dot = @am__leading_dot@
122 am__quote = @am__quote@
123 am__tar = @am__tar@
124 am__untar = @am__untar@
125 bindir = @bindir@
126 build = @build@
127 build_alias = @build_alias@
128 build_cpu = @build_cpu@
129 build_os = @build_os@
130 build_vendor = @build_vendor@
131 datadir = @datadir@
132 datarootdir = @datarootdir@
133 docdir = @docdir@
134 dvidir = @dvidir@
135 exec_prefix = @exec_prefix@
136 host = @host@
137 host_alias = @host_alias@
138 host_cpu = @host_cpu@
139 host_os = @host_os@
140 host_vendor = @host_vendor@
141 htmldir = @htmldir@
142 includedir = @includedir@
143 infodir = @infodir@
144 install_sh = @install_sh@
145 libdir = @libdir@
146 libexecdir = @libexecdir@
147 localedir = @localedir@
148 localstatedir = @localstatedir@
149 lt_ECHO = @lt_ECHO@
150 mandir = @mandir@
151 mkdir_p = @mkdir_p@
152 oldincludedir = @oldincludedir@
153 pdfdir = @pdfdir@
154 prefix = @prefix@
155 program_transform_name = @program_transform_name@
156 psdir = @psdir@
157 sbindir = @sbindir@
158 sharedstatedir = @sharedstatedir@
159 sysconfdir = @sysconfdir@
160 target_alias = @target_alias@
161 GTKRC_FILES = \
162 sugar-72.gtkrc \
163 sugar-100.gtkrc
164
165 EXTRA_DIST = em.py gtkrc.em
166 CLEANFILES = $(GTKRC_FILES)
167 all: all-am
168
169 .SUFFIXES:
170 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
171 @for dep in $?; do \
172 case '$(am__configure_deps)' in \
173 *$$dep*) \
174 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
175 && exit 0; \
176 exit 1;; \
177 esac; \
178 done; \
179 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gtk/theme/Makefile'; \
180 cd $(top_srcdir) && \
181 $(AUTOMAKE) --foreign gtk/theme/Makefile
182 .PRECIOUS: Makefile
183 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
184 @case '$?' in \
185 *config.status*) \
186 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
187 *) \
188 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
189 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
190 esac;
191
192 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
193 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
194
195 $(top_srcdir)/configure: $(am__configure_deps)
196 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
197 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
198 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
199
200 mostlyclean-libtool:
201 -rm -f *.lo
202
203 clean-libtool:
204 -rm -rf .libs _libs
205
206 distclean-libtool:
207 -rm -f libtool
208 uninstall-info-am:
209 tags: TAGS
210 TAGS:
211
212 ctags: CTAGS
213 CTAGS:
214
215
216 distdir: $(DISTFILES)
217 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
218 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
219 list='$(DISTFILES)'; for file in $$list; do \
220 case $$file in \
221 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
222 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
223 esac; \
224 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
225 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
226 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
227 dir="/$$dir"; \
228 $(mkdir_p) "$(distdir)$$dir"; \
229 else \
230 dir=''; \
231 fi; \
232 if test -d $$d/$$file; then \
233 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
234 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
235 fi; \
236 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
237 else \
238 test -f $(distdir)/$$file \
239 || cp -p $$d/$$file $(distdir)/$$file \
240 || exit 1; \
241 fi; \
242 done
243 check-am: all-am
244 check: check-am
245 all-am: Makefile
246 installdirs:
247 install: install-am
248 install-exec: install-exec-am
249 install-data: install-data-am
250 uninstall: uninstall-am
251
252 install-am: all-am
253 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
254
255 installcheck: installcheck-am
256 install-strip:
257 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
258 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
259 `test -z '$(STRIP)' || \
260 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
261 mostlyclean-generic:
262
263 clean-generic:
264 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
265
266 distclean-generic:
267 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
268
269 maintainer-clean-generic:
270 @echo "This command is intended for maintainers to use"
271 @echo "it deletes files that may require special tools to rebuild."
272 clean-am: clean-generic clean-libtool mostlyclean-am
273
274 distclean: distclean-am
275 -rm -f Makefile
276 distclean-am: clean-am distclean-generic distclean-libtool
277
278 dvi: dvi-am
279
280 dvi-am:
281
282 html: html-am
283
284 info: info-am
285
286 info-am:
287
288 install-data-am: install-data-local
289
290 install-exec-am:
291
292 install-info: install-info-am
293
294 install-man:
295
296 installcheck-am:
297
298 maintainer-clean: maintainer-clean-am
299 -rm -f Makefile
300 maintainer-clean-am: distclean-am maintainer-clean-generic
301
302 mostlyclean: mostlyclean-am
303
304 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
305
306 pdf: pdf-am
307
308 pdf-am:
309
310 ps: ps-am
311
312 ps-am:
313
314 uninstall-am: uninstall-info-am uninstall-local
315
316 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
317 distclean distclean-generic distclean-libtool distdir dvi \
318 dvi-am html html-am info info-am install install-am \
319 install-data install-data-am install-data-local install-exec \
320 install-exec-am install-info install-info-am install-man \
321 install-strip installcheck installcheck-am installdirs \
322 maintainer-clean maintainer-clean-generic mostlyclean \
323 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
324 uninstall uninstall-am uninstall-info-am uninstall-local
325
326 sugar-72.gtkrc: gtkrc.em
327 $(srcdir)/em.py -p $$ -D scaling=\'72\' $(srcdir)/gtkrc.em > \
328 $(top_builddir)/gtk/theme/sugar-72.gtkrc
329
330 sugar-100.gtkrc: gtkrc.em
331 $(srcdir)/em.py -p $$ -D scaling=\'100\' $(srcdir)/gtkrc.em > \
332 $(top_builddir)/gtk/theme/sugar-100.gtkrc
333
334 clean:
335 $(RM) sugar-72.gtkrc
336 $(RM) sugar-100.gtkrc
337
338 install-data-local: $(GTKRC_FILES)
339 $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/sugar-72/gtk-2.0
340 $(INSTALL_DATA) $(top_builddir)/gtk/theme/sugar-72.gtkrc \
341 $(DESTDIR)$(datadir)/themes/sugar-72/gtk-2.0/gtkrc
342 $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/sugar-100/gtk-2.0
343 $(INSTALL_DATA) $(top_builddir)/gtk/theme/sugar-100.gtkrc \
344 $(DESTDIR)$(datadir)/themes/sugar-100/gtk-2.0/gtkrc
345
346 uninstall-local:
347 rm -rf $(DESTDIR)$(datadir)/themes/sugar-72/gtk-2.0
348 rm -rf $(DESTDIR)$(datadir)/themes/sugar-100/gtk-2.0
349 # Tell versions [3.59,3.63) of GNU make to not export all variables.
350 # Otherwise a system limit (for SysV at least) may be exceeded.
351 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-exec-recursive install-info-recursive \
52 install-recursive installcheck-recursive installdirs-recursive \
53 pdf-recursive ps-recursive uninstall-info-recursive \
54 uninstall-recursive
55 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
56 am__vpath_adj = case $$p in \
57 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
58 *) f=$$p;; \
59 esac;
60 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
61 am__installdirs = "$(DESTDIR)$(themedir)"
62 themeDATA_INSTALL = $(INSTALL_DATA)
63 DATA = $(theme_DATA)
64 ETAGS = etags
65 CTAGS = ctags
66 DIST_SUBDIRS = $(SUBDIRS)
67 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
68 ACLOCAL = @ACLOCAL@
69 AMDEP_FALSE = @AMDEP_FALSE@
70 AMDEP_TRUE = @AMDEP_TRUE@
71 AMTAR = @AMTAR@
72 AR = @AR@
73 AUTOCONF = @AUTOCONF@
74 AUTOHEADER = @AUTOHEADER@
75 AUTOMAKE = @AUTOMAKE@
76 AWK = @AWK@
77 CC = @CC@
78 CCDEPMODE = @CCDEPMODE@
79 CFLAGS = @CFLAGS@
80 CPP = @CPP@
81 CPPFLAGS = @CPPFLAGS@
82 CYGPATH_W = @CYGPATH_W@
83 DEFS = @DEFS@
84 DEPDIR = @DEPDIR@
85 DSYMUTIL = @DSYMUTIL@
86 DUMPBIN = @DUMPBIN@
87 ECHO_C = @ECHO_C@
88 ECHO_N = @ECHO_N@
89 ECHO_T = @ECHO_T@
90 EGREP = @EGREP@
91 ENGINE_CFLAGS = @ENGINE_CFLAGS@
92 ENGINE_LIBS = @ENGINE_LIBS@
93 EXEEXT = @EXEEXT@
94 FGREP = @FGREP@
95 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
96 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
97 GREP = @GREP@
98 GTK2_CFLAGS = @GTK2_CFLAGS@
99 GTK2_LIBS = @GTK2_LIBS@
100 GTK_VERSION = @GTK_VERSION@
101 ICONMAP = @ICONMAP@
102 ICON_SLICER = @ICON_SLICER@
103 INSTALL_DATA = @INSTALL_DATA@
104 INSTALL_PROGRAM = @INSTALL_PROGRAM@
105 INSTALL_SCRIPT = @INSTALL_SCRIPT@
106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
107 LD = @LD@
108 LDFLAGS = @LDFLAGS@
109 LIBOBJS = @LIBOBJS@
110 LIBS = @LIBS@
111 LIBTOOL = @LIBTOOL@
112 LIPO = @LIPO@
113 LN_S = @LN_S@
114 LTLIBOBJS = @LTLIBOBJS@
115 MAKEINFO = @MAKEINFO@
116 NM = @NM@
117 NMEDIT = @NMEDIT@
118 OBJEXT = @OBJEXT@
119 OTOOL = @OTOOL@
120 OTOOL64 = @OTOOL64@
121 PACKAGE = @PACKAGE@
122 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
123 PACKAGE_NAME = @PACKAGE_NAME@
124 PACKAGE_STRING = @PACKAGE_STRING@
125 PACKAGE_TARNAME = @PACKAGE_TARNAME@
126 PACKAGE_VERSION = @PACKAGE_VERSION@
127 PATH_SEPARATOR = @PATH_SEPARATOR@
128 PKG_CONFIG = @PKG_CONFIG@
129 RANLIB = @RANLIB@
130 SED = @SED@
131 SET_MAKE = @SET_MAKE@
132 SHELL = @SHELL@
133 STRIP = @STRIP@
134 VERSION = @VERSION@
135 ac_ct_CC = @ac_ct_CC@
136 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
137 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
138 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
139 am__include = @am__include@
140 am__leading_dot = @am__leading_dot@
141 am__quote = @am__quote@
142 am__tar = @am__tar@
143 am__untar = @am__untar@
144 bindir = @bindir@
145 build = @build@
146 build_alias = @build_alias@
147 build_cpu = @build_cpu@
148 build_os = @build_os@
149 build_vendor = @build_vendor@
150 datadir = @datadir@
151 datarootdir = @datarootdir@
152 docdir = @docdir@
153 dvidir = @dvidir@
154 exec_prefix = @exec_prefix@
155 host = @host@
156 host_alias = @host_alias@
157 host_cpu = @host_cpu@
158 host_os = @host_os@
159 host_vendor = @host_vendor@
160 htmldir = @htmldir@
161 includedir = @includedir@
162 infodir = @infodir@
163 install_sh = @install_sh@
164 libdir = @libdir@
165 libexecdir = @libexecdir@
166 localedir = @localedir@
167 localstatedir = @localstatedir@
168 lt_ECHO = @lt_ECHO@
169 mandir = @mandir@
170 mkdir_p = @mkdir_p@
171 oldincludedir = @oldincludedir@
172 pdfdir = @pdfdir@
173 prefix = @prefix@
174 program_transform_name = @program_transform_name@
175 psdir = @psdir@
176 sbindir = @sbindir@
177 sharedstatedir = @sharedstatedir@
178 sysconfdir = @sysconfdir@
179 target_alias = @target_alias@
180 SUBDIRS = scalable
181 themedir = ${datadir}/icons/sugar
182 theme_DATA = index.theme
183 EXTRA_DIST = $(theme_DATA)
184 all: all-recursive
185
186 .SUFFIXES:
187 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
188 @for dep in $?; do \
189 case '$(am__configure_deps)' in \
190 *$$dep*) \
191 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
192 && exit 0; \
193 exit 1;; \
194 esac; \
195 done; \
196 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/Makefile'; \
197 cd $(top_srcdir) && \
198 $(AUTOMAKE) --foreign icons/Makefile
199 .PRECIOUS: Makefile
200 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
201 @case '$?' in \
202 *config.status*) \
203 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
204 *) \
205 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
206 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
207 esac;
208
209 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
210 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
211
212 $(top_srcdir)/configure: $(am__configure_deps)
213 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
214 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
215 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
216
217 mostlyclean-libtool:
218 -rm -f *.lo
219
220 clean-libtool:
221 -rm -rf .libs _libs
222
223 distclean-libtool:
224 -rm -f libtool
225 uninstall-info-am:
226 install-themeDATA: $(theme_DATA)
227 @$(NORMAL_INSTALL)
228 test -z "$(themedir)" || $(mkdir_p) "$(DESTDIR)$(themedir)"
229 @list='$(theme_DATA)'; for p in $$list; do \
230 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
231 f=$(am__strip_dir) \
232 echo " $(themeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(themedir)/$$f'"; \
233 $(themeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(themedir)/$$f"; \
234 done
235
236 uninstall-themeDATA:
237 @$(NORMAL_UNINSTALL)
238 @list='$(theme_DATA)'; for p in $$list; do \
239 f=$(am__strip_dir) \
240 echo " rm -f '$(DESTDIR)$(themedir)/$$f'"; \
241 rm -f "$(DESTDIR)$(themedir)/$$f"; \
242 done
243
244 # This directory's subdirectories are mostly independent; you can cd
245 # into them and run `make' without going through this Makefile.
246 # To change the values of `make' variables: instead of editing Makefiles,
247 # (1) if the variable is set in `config.status', edit `config.status'
248 # (which will cause the Makefiles to be regenerated when you run `make');
249 # (2) otherwise, pass the desired values on the `make' command line.
250 $(RECURSIVE_TARGETS):
251 @failcom='exit 1'; \
252 for f in x $$MAKEFLAGS; do \
253 case $$f in \
254 *=* | --[!k]*);; \
255 *k*) failcom='fail=yes';; \
256 esac; \
257 done; \
258 dot_seen=no; \
259 target=`echo $@ | sed s/-recursive//`; \
260 list='$(SUBDIRS)'; for subdir in $$list; do \
261 echo "Making $$target in $$subdir"; \
262 if test "$$subdir" = "."; then \
263 dot_seen=yes; \
264 local_target="$$target-am"; \
265 else \
266 local_target="$$target"; \
267 fi; \
268 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
269 || eval $$failcom; \
270 done; \
271 if test "$$dot_seen" = "no"; then \
272 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
273 fi; test -z "$$fail"
274
275 mostlyclean-recursive clean-recursive distclean-recursive \
276 maintainer-clean-recursive:
277 @failcom='exit 1'; \
278 for f in x $$MAKEFLAGS; do \
279 case $$f in \
280 *=* | --[!k]*);; \
281 *k*) failcom='fail=yes';; \
282 esac; \
283 done; \
284 dot_seen=no; \
285 case "$@" in \
286 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
287 *) list='$(SUBDIRS)' ;; \
288 esac; \
289 rev=''; for subdir in $$list; do \
290 if test "$$subdir" = "."; then :; else \
291 rev="$$subdir $$rev"; \
292 fi; \
293 done; \
294 rev="$$rev ."; \
295 target=`echo $@ | sed s/-recursive//`; \
296 for subdir in $$rev; do \
297 echo "Making $$target in $$subdir"; \
298 if test "$$subdir" = "."; then \
299 local_target="$$target-am"; \
300 else \
301 local_target="$$target"; \
302 fi; \
303 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
304 || eval $$failcom; \
305 done && test -z "$$fail"
306 tags-recursive:
307 list='$(SUBDIRS)'; for subdir in $$list; do \
308 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
309 done
310 ctags-recursive:
311 list='$(SUBDIRS)'; for subdir in $$list; do \
312 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
313 done
314
315 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
316 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
317 unique=`for i in $$list; do \
318 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
319 done | \
320 $(AWK) ' { files[$$0] = 1; } \
321 END { for (i in files) print i; }'`; \
322 mkid -fID $$unique
323 tags: TAGS
324
325 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
326 $(TAGS_FILES) $(LISP)
327 tags=; \
328 here=`pwd`; \
329 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
330 include_option=--etags-include; \
331 empty_fix=.; \
332 else \
333 include_option=--include; \
334 empty_fix=; \
335 fi; \
336 list='$(SUBDIRS)'; for subdir in $$list; do \
337 if test "$$subdir" = .; then :; else \
338 test ! -f $$subdir/TAGS || \
339 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
340 fi; \
341 done; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) ' { files[$$0] = 1; } \
347 END { for (i in files) print i; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353 ctags: CTAGS
354 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 here=`pwd`; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) ' { files[$$0] = 1; } \
363 END { for (i in files) print i; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368 GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373 distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376 distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
379 list='$(DISTFILES)'; for file in $$list; do \
380 case $$file in \
381 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
382 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
383 esac; \
384 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
385 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
386 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
387 dir="/$$dir"; \
388 $(mkdir_p) "$(distdir)$$dir"; \
389 else \
390 dir=''; \
391 fi; \
392 if test -d $$d/$$file; then \
393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395 fi; \
396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397 else \
398 test -f $(distdir)/$$file \
399 || cp -p $$d/$$file $(distdir)/$$file \
400 || exit 1; \
401 fi; \
402 done
403 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
404 if test "$$subdir" = .; then :; else \
405 test -d "$(distdir)/$$subdir" \
406 || $(mkdir_p) "$(distdir)/$$subdir" \
407 || exit 1; \
408 distdir=`$(am__cd) $(distdir) && pwd`; \
409 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
410 (cd $$subdir && \
411 $(MAKE) $(AM_MAKEFLAGS) \
412 top_distdir="$$top_distdir" \
413 distdir="$$distdir/$$subdir" \
414 distdir) \
415 || exit 1; \
416 fi; \
417 done
418 check-am: all-am
419 check: check-recursive
420 all-am: Makefile $(DATA)
421 installdirs: installdirs-recursive
422 installdirs-am:
423 for dir in "$(DESTDIR)$(themedir)"; do \
424 test -z "$$dir" || $(mkdir_p) "$$dir"; \
425 done
426 install: install-recursive
427 install-exec: install-exec-recursive
428 install-data: install-data-recursive
429 uninstall: uninstall-recursive
430
431 install-am: all-am
432 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
433
434 installcheck: installcheck-recursive
435 install-strip:
436 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
437 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
438 `test -z '$(STRIP)' || \
439 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
440 mostlyclean-generic:
441
442 clean-generic:
443
444 distclean-generic:
445 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
446
447 maintainer-clean-generic:
448 @echo "This command is intended for maintainers to use"
449 @echo "it deletes files that may require special tools to rebuild."
450 clean: clean-recursive
451
452 clean-am: clean-generic clean-libtool mostlyclean-am
453
454 distclean: distclean-recursive
455 -rm -f Makefile
456 distclean-am: clean-am distclean-generic distclean-libtool \
457 distclean-tags
458
459 dvi: dvi-recursive
460
461 dvi-am:
462
463 html: html-recursive
464
465 info: info-recursive
466
467 info-am:
468
469 install-data-am: install-themeDATA
470
471 install-exec-am:
472
473 install-info: install-info-recursive
474
475 install-man:
476
477 installcheck-am:
478
479 maintainer-clean: maintainer-clean-recursive
480 -rm -f Makefile
481 maintainer-clean-am: distclean-am maintainer-clean-generic
482
483 mostlyclean: mostlyclean-recursive
484
485 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
486
487 pdf: pdf-recursive
488
489 pdf-am:
490
491 ps: ps-recursive
492
493 ps-am:
494
495 uninstall-am: uninstall-info-am uninstall-themeDATA
496
497 uninstall-info: uninstall-info-recursive
498
499 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
500 clean clean-generic clean-libtool clean-recursive ctags \
501 ctags-recursive distclean distclean-generic distclean-libtool \
502 distclean-recursive distclean-tags distdir dvi dvi-am html \
503 html-am info info-am install install-am install-data \
504 install-data-am install-exec install-exec-am install-info \
505 install-info-am install-man install-strip install-themeDATA \
506 installcheck installcheck-am installdirs installdirs-am \
507 maintainer-clean maintainer-clean-generic \
508 maintainer-clean-recursive mostlyclean mostlyclean-generic \
509 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
510 tags tags-recursive uninstall uninstall-am uninstall-info-am \
511 uninstall-themeDATA
512
513 # Tell versions [3.59,3.63) of GNU make to not export all variables.
514 # Otherwise a system limit (for SysV at least) may be exceeded.
515 .NOEXPORT:
+0
-56
icons/import-icon less more
0 #!/usr/bin/env python
1
2 # Copyright (C) 2006, Red Hat, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18 import os
19 import sys
20 import re
21
22 source = os.path.abspath(sys.argv[1])
23
24 f = open(source, 'r')
25 data = f.read()
26 f.close()
27
28 stroke = None
29 fill = None
30
31 match = re.search('stroke=\"\#(\w+)\"', data)
32 if match:
33 stroke = match.group(1)
34
35 for match in re.findall('[fill|stroke]=\"\#(\w+)\"', data):
36 if match != stroke:
37 fill = match
38
39 if fill:
40 data = re.sub('\#' + fill, '&fill_color;', data)
41 if stroke:
42 data = re.sub('\#' + stroke, '&stroke_color;', data)
43
44 entities = ''
45 if stroke:
46 entities += '\t<!ENTITY stroke_color "#' + stroke + '">\n'
47 if fill:
48 entities += '\t<!ENTITY fill_color "#' + fill + '">\n'
49 entities += ']>'
50
51 data = re.sub('\]\>', entities, data)
52
53 f = open(source, 'w')
54 f.write(data)
55 f.close()
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = icons/scalable
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 SOURCES =
47 DIST_SOURCES =
48 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
49 html-recursive info-recursive install-data-recursive \
50 install-exec-recursive install-info-recursive \
51 install-recursive installcheck-recursive installdirs-recursive \
52 pdf-recursive ps-recursive uninstall-info-recursive \
53 uninstall-recursive
54 ETAGS = etags
55 CTAGS = ctags
56 DIST_SUBDIRS = $(SUBDIRS)
57 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
58 ACLOCAL = @ACLOCAL@
59 AMDEP_FALSE = @AMDEP_FALSE@
60 AMDEP_TRUE = @AMDEP_TRUE@
61 AMTAR = @AMTAR@
62 AR = @AR@
63 AUTOCONF = @AUTOCONF@
64 AUTOHEADER = @AUTOHEADER@
65 AUTOMAKE = @AUTOMAKE@
66 AWK = @AWK@
67 CC = @CC@
68 CCDEPMODE = @CCDEPMODE@
69 CFLAGS = @CFLAGS@
70 CPP = @CPP@
71 CPPFLAGS = @CPPFLAGS@
72 CYGPATH_W = @CYGPATH_W@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 DSYMUTIL = @DSYMUTIL@
76 DUMPBIN = @DUMPBIN@
77 ECHO_C = @ECHO_C@
78 ECHO_N = @ECHO_N@
79 ECHO_T = @ECHO_T@
80 EGREP = @EGREP@
81 ENGINE_CFLAGS = @ENGINE_CFLAGS@
82 ENGINE_LIBS = @ENGINE_LIBS@
83 EXEEXT = @EXEEXT@
84 FGREP = @FGREP@
85 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
86 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
87 GREP = @GREP@
88 GTK2_CFLAGS = @GTK2_CFLAGS@
89 GTK2_LIBS = @GTK2_LIBS@
90 GTK_VERSION = @GTK_VERSION@
91 ICONMAP = @ICONMAP@
92 ICON_SLICER = @ICON_SLICER@
93 INSTALL_DATA = @INSTALL_DATA@
94 INSTALL_PROGRAM = @INSTALL_PROGRAM@
95 INSTALL_SCRIPT = @INSTALL_SCRIPT@
96 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
97 LD = @LD@
98 LDFLAGS = @LDFLAGS@
99 LIBOBJS = @LIBOBJS@
100 LIBS = @LIBS@
101 LIBTOOL = @LIBTOOL@
102 LIPO = @LIPO@
103 LN_S = @LN_S@
104 LTLIBOBJS = @LTLIBOBJS@
105 MAKEINFO = @MAKEINFO@
106 NM = @NM@
107 NMEDIT = @NMEDIT@
108 OBJEXT = @OBJEXT@
109 OTOOL = @OTOOL@
110 OTOOL64 = @OTOOL64@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PKG_CONFIG = @PKG_CONFIG@
119 RANLIB = @RANLIB@
120 SED = @SED@
121 SET_MAKE = @SET_MAKE@
122 SHELL = @SHELL@
123 STRIP = @STRIP@
124 VERSION = @VERSION@
125 ac_ct_CC = @ac_ct_CC@
126 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
127 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
128 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
129 am__include = @am__include@
130 am__leading_dot = @am__leading_dot@
131 am__quote = @am__quote@
132 am__tar = @am__tar@
133 am__untar = @am__untar@
134 bindir = @bindir@
135 build = @build@
136 build_alias = @build_alias@
137 build_cpu = @build_cpu@
138 build_os = @build_os@
139 build_vendor = @build_vendor@
140 datadir = @datadir@
141 datarootdir = @datarootdir@
142 docdir = @docdir@
143 dvidir = @dvidir@
144 exec_prefix = @exec_prefix@
145 host = @host@
146 host_alias = @host_alias@
147 host_cpu = @host_cpu@
148 host_os = @host_os@
149 host_vendor = @host_vendor@
150 htmldir = @htmldir@
151 includedir = @includedir@
152 infodir = @infodir@
153 install_sh = @install_sh@
154 libdir = @libdir@
155 libexecdir = @libexecdir@
156 localedir = @localedir@
157 localstatedir = @localstatedir@
158 lt_ECHO = @lt_ECHO@
159 mandir = @mandir@
160 mkdir_p = @mkdir_p@
161 oldincludedir = @oldincludedir@
162 pdfdir = @pdfdir@
163 prefix = @prefix@
164 program_transform_name = @program_transform_name@
165 psdir = @psdir@
166 sbindir = @sbindir@
167 sharedstatedir = @sharedstatedir@
168 sysconfdir = @sysconfdir@
169 target_alias = @target_alias@
170 SUBDIRS = actions apps control device mimetypes status emblems categories
171 all: all-recursive
172
173 .SUFFIXES:
174 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
175 @for dep in $?; do \
176 case '$(am__configure_deps)' in \
177 *$$dep*) \
178 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
179 && exit 0; \
180 exit 1;; \
181 esac; \
182 done; \
183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/Makefile'; \
184 cd $(top_srcdir) && \
185 $(AUTOMAKE) --foreign icons/scalable/Makefile
186 .PRECIOUS: Makefile
187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
188 @case '$?' in \
189 *config.status*) \
190 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
191 *) \
192 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
193 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
194 esac;
195
196 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
197 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
198
199 $(top_srcdir)/configure: $(am__configure_deps)
200 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
201 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
202 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
203
204 mostlyclean-libtool:
205 -rm -f *.lo
206
207 clean-libtool:
208 -rm -rf .libs _libs
209
210 distclean-libtool:
211 -rm -f libtool
212 uninstall-info-am:
213
214 # This directory's subdirectories are mostly independent; you can cd
215 # into them and run `make' without going through this Makefile.
216 # To change the values of `make' variables: instead of editing Makefiles,
217 # (1) if the variable is set in `config.status', edit `config.status'
218 # (which will cause the Makefiles to be regenerated when you run `make');
219 # (2) otherwise, pass the desired values on the `make' command line.
220 $(RECURSIVE_TARGETS):
221 @failcom='exit 1'; \
222 for f in x $$MAKEFLAGS; do \
223 case $$f in \
224 *=* | --[!k]*);; \
225 *k*) failcom='fail=yes';; \
226 esac; \
227 done; \
228 dot_seen=no; \
229 target=`echo $@ | sed s/-recursive//`; \
230 list='$(SUBDIRS)'; for subdir in $$list; do \
231 echo "Making $$target in $$subdir"; \
232 if test "$$subdir" = "."; then \
233 dot_seen=yes; \
234 local_target="$$target-am"; \
235 else \
236 local_target="$$target"; \
237 fi; \
238 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
239 || eval $$failcom; \
240 done; \
241 if test "$$dot_seen" = "no"; then \
242 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
243 fi; test -z "$$fail"
244
245 mostlyclean-recursive clean-recursive distclean-recursive \
246 maintainer-clean-recursive:
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 case "$@" in \
256 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
257 *) list='$(SUBDIRS)' ;; \
258 esac; \
259 rev=''; for subdir in $$list; do \
260 if test "$$subdir" = "."; then :; else \
261 rev="$$subdir $$rev"; \
262 fi; \
263 done; \
264 rev="$$rev ."; \
265 target=`echo $@ | sed s/-recursive//`; \
266 for subdir in $$rev; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 local_target="$$target-am"; \
270 else \
271 local_target="$$target"; \
272 fi; \
273 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
274 || eval $$failcom; \
275 done && test -z "$$fail"
276 tags-recursive:
277 list='$(SUBDIRS)'; for subdir in $$list; do \
278 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
279 done
280 ctags-recursive:
281 list='$(SUBDIRS)'; for subdir in $$list; do \
282 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
283 done
284
285 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
286 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
287 unique=`for i in $$list; do \
288 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
289 done | \
290 $(AWK) ' { files[$$0] = 1; } \
291 END { for (i in files) print i; }'`; \
292 mkid -fID $$unique
293 tags: TAGS
294
295 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
296 $(TAGS_FILES) $(LISP)
297 tags=; \
298 here=`pwd`; \
299 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
300 include_option=--etags-include; \
301 empty_fix=.; \
302 else \
303 include_option=--include; \
304 empty_fix=; \
305 fi; \
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 if test "$$subdir" = .; then :; else \
308 test ! -f $$subdir/TAGS || \
309 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
310 fi; \
311 done; \
312 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
313 unique=`for i in $$list; do \
314 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
315 done | \
316 $(AWK) ' { files[$$0] = 1; } \
317 END { for (i in files) print i; }'`; \
318 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
319 test -n "$$unique" || unique=$$empty_fix; \
320 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
321 $$tags $$unique; \
322 fi
323 ctags: CTAGS
324 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
325 $(TAGS_FILES) $(LISP)
326 tags=; \
327 here=`pwd`; \
328 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
329 unique=`for i in $$list; do \
330 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
331 done | \
332 $(AWK) ' { files[$$0] = 1; } \
333 END { for (i in files) print i; }'`; \
334 test -z "$(CTAGS_ARGS)$$tags$$unique" \
335 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
336 $$tags $$unique
337
338 GTAGS:
339 here=`$(am__cd) $(top_builddir) && pwd` \
340 && cd $(top_srcdir) \
341 && gtags -i $(GTAGS_ARGS) $$here
342
343 distclean-tags:
344 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
345
346 distdir: $(DISTFILES)
347 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
348 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
349 list='$(DISTFILES)'; for file in $$list; do \
350 case $$file in \
351 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
352 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
353 esac; \
354 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
355 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
356 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
357 dir="/$$dir"; \
358 $(mkdir_p) "$(distdir)$$dir"; \
359 else \
360 dir=''; \
361 fi; \
362 if test -d $$d/$$file; then \
363 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
364 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
365 fi; \
366 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
367 else \
368 test -f $(distdir)/$$file \
369 || cp -p $$d/$$file $(distdir)/$$file \
370 || exit 1; \
371 fi; \
372 done
373 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
374 if test "$$subdir" = .; then :; else \
375 test -d "$(distdir)/$$subdir" \
376 || $(mkdir_p) "$(distdir)/$$subdir" \
377 || exit 1; \
378 distdir=`$(am__cd) $(distdir) && pwd`; \
379 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
380 (cd $$subdir && \
381 $(MAKE) $(AM_MAKEFLAGS) \
382 top_distdir="$$top_distdir" \
383 distdir="$$distdir/$$subdir" \
384 distdir) \
385 || exit 1; \
386 fi; \
387 done
388 check-am: all-am
389 check: check-recursive
390 all-am: Makefile
391 installdirs: installdirs-recursive
392 installdirs-am:
393 install: install-recursive
394 install-exec: install-exec-recursive
395 install-data: install-data-recursive
396 uninstall: uninstall-recursive
397
398 install-am: all-am
399 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
400
401 installcheck: installcheck-recursive
402 install-strip:
403 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
404 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
405 `test -z '$(STRIP)' || \
406 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
407 mostlyclean-generic:
408
409 clean-generic:
410
411 distclean-generic:
412 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
413
414 maintainer-clean-generic:
415 @echo "This command is intended for maintainers to use"
416 @echo "it deletes files that may require special tools to rebuild."
417 clean: clean-recursive
418
419 clean-am: clean-generic clean-libtool mostlyclean-am
420
421 distclean: distclean-recursive
422 -rm -f Makefile
423 distclean-am: clean-am distclean-generic distclean-libtool \
424 distclean-tags
425
426 dvi: dvi-recursive
427
428 dvi-am:
429
430 html: html-recursive
431
432 info: info-recursive
433
434 info-am:
435
436 install-data-am:
437
438 install-exec-am:
439
440 install-info: install-info-recursive
441
442 install-man:
443
444 installcheck-am:
445
446 maintainer-clean: maintainer-clean-recursive
447 -rm -f Makefile
448 maintainer-clean-am: distclean-am maintainer-clean-generic
449
450 mostlyclean: mostlyclean-recursive
451
452 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
453
454 pdf: pdf-recursive
455
456 pdf-am:
457
458 ps: ps-recursive
459
460 ps-am:
461
462 uninstall-am: uninstall-info-am
463
464 uninstall-info: uninstall-info-recursive
465
466 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
467 clean clean-generic clean-libtool clean-recursive ctags \
468 ctags-recursive distclean distclean-generic distclean-libtool \
469 distclean-recursive distclean-tags distdir dvi dvi-am html \
470 html-am info info-am install install-am install-data \
471 install-data-am install-exec install-exec-am install-info \
472 install-info-am install-man install-strip installcheck \
473 installcheck-am installdirs installdirs-am maintainer-clean \
474 maintainer-clean-generic maintainer-clean-recursive \
475 mostlyclean mostlyclean-generic mostlyclean-libtool \
476 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
477 uninstall uninstall-am uninstall-info-am
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/actions
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = actions
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 activity-start.svg \
176 activity-stop.svg \
177 cell-format.svg \
178 cell-height.svg \
179 cell-size.svg \
180 cell-width.svg \
181 column-insert.svg \
182 column-remove.svg \
183 dialog-cancel.svg \
184 dialog-ok.svg \
185 document-save.svg \
186 document-send.svg \
187 edit-copy.svg \
188 edit-delete.svg \
189 edit-paste.svg \
190 edit-redo.svg \
191 edit-undo.svg \
192 format-columns-double.svg \
193 format-columns-single.svg \
194 format-columns-triple.svg \
195 format-justify-center.svg \
196 format-justify-fill.svg \
197 format-justify-left.svg \
198 format-justify-right.svg \
199 format-text-bold.svg \
200 format-text-italic.svg \
201 format-text-leading.svg \
202 format-text-size.svg \
203 format-text-underline.svg \
204 go-down.svg \
205 go-home.svg \
206 go-left.svg \
207 go-next-paired.svg \
208 go-next.svg \
209 go-previous-paired.svg \
210 go-previous.svg \
211 go-right.svg \
212 go-up.svg \
213 insert-image.svg \
214 insert-table.svg \
215 invite.svg \
216 list-add.svg \
217 list-remove.svg \
218 media-eject-insensitive.svg \
219 media-eject.svg \
220 media-playback-pause-insensitive.svg \
221 media-playback-pause.svg \
222 media-playback-start-insensitive.svg \
223 media-playback-start.svg \
224 media-playback-stop-insensitive.svg \
225 media-playback-stop.svg \
226 media-playlist-repeat-insensitive.svg \
227 media-playlist-repeat.svg \
228 media-playlist-shuffle-insensitive.svg \
229 media-playlist-shuffle.svg \
230 media-record-insensitive.svg \
231 media-record.svg \
232 media-seek-backward-insensitive.svg \
233 media-seek-backward.svg \
234 media-seek-forward-insensitive.svg \
235 media-seek-forward.svg \
236 row-insert.svg \
237 row-remove.svg \
238 system-logout.svg \
239 system-restart.svg \
240 system-search.svg \
241 system-shutdown.svg \
242 tray-hide.svg \
243 tray-show.svg \
244 transfer-from-application-octet-stream.svg \
245 transfer-from-audio-x-generic.svg \
246 transfer-from-image-x-generic.svg \
247 transfer-from.svg \
248 transfer-from-text-uri-list.svg \
249 transfer-from-text-x-generic.svg \
250 transfer-from-video-x-generic.svg \
251 transfer-to-application-octet-stream.svg \
252 transfer-to-audio-x-generic.svg \
253 transfer-to-image-x-generic.svg \
254 transfer-to.svg \
255 transfer-to-text-uri-list.svg \
256 transfer-to-text-x-generic.svg \
257 transfer-to-video-x-generic.svg \
258 view-box.svg \
259 view-details.svg \
260 view-freeform.svg \
261 view-fullscreen.svg \
262 view-list.svg \
263 view-radial.svg \
264 view-refresh.svg \
265 view-return.svg \
266 view-spiral.svg \
267 view-source.svg \
268 view-triangle.svg \
269 zoom-activity.svg \
270 zoom-best-fit.svg \
271 zoom-groups.svg \
272 zoom-home.svg \
273 zoom-in.svg \
274 zoom-neighborhood.svg \
275 zoom-original.svg \
276 zoom-out.svg
277
278 EXTRA_DIST = $(icon_DATA)
279 all: all-am
280
281 .SUFFIXES:
282 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
283 @for dep in $?; do \
284 case '$(am__configure_deps)' in \
285 *$$dep*) \
286 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
287 && exit 0; \
288 exit 1;; \
289 esac; \
290 done; \
291 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/actions/Makefile'; \
292 cd $(top_srcdir) && \
293 $(AUTOMAKE) --foreign icons/scalable/actions/Makefile
294 .PRECIOUS: Makefile
295 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
296 @case '$?' in \
297 *config.status*) \
298 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
299 *) \
300 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
301 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
302 esac;
303
304 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
305 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
306
307 $(top_srcdir)/configure: $(am__configure_deps)
308 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
309 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
310 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
311
312 mostlyclean-libtool:
313 -rm -f *.lo
314
315 clean-libtool:
316 -rm -rf .libs _libs
317
318 distclean-libtool:
319 -rm -f libtool
320 uninstall-info-am:
321 install-iconDATA: $(icon_DATA)
322 @$(NORMAL_INSTALL)
323 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
324 @list='$(icon_DATA)'; for p in $$list; do \
325 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
326 f=$(am__strip_dir) \
327 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
328 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
329 done
330
331 uninstall-iconDATA:
332 @$(NORMAL_UNINSTALL)
333 @list='$(icon_DATA)'; for p in $$list; do \
334 f=$(am__strip_dir) \
335 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
336 rm -f "$(DESTDIR)$(icondir)/$$f"; \
337 done
338 tags: TAGS
339 TAGS:
340
341 ctags: CTAGS
342 CTAGS:
343
344
345 distdir: $(DISTFILES)
346 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
347 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
348 list='$(DISTFILES)'; for file in $$list; do \
349 case $$file in \
350 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
351 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
352 esac; \
353 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
354 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
355 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
356 dir="/$$dir"; \
357 $(mkdir_p) "$(distdir)$$dir"; \
358 else \
359 dir=''; \
360 fi; \
361 if test -d $$d/$$file; then \
362 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
363 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
364 fi; \
365 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
366 else \
367 test -f $(distdir)/$$file \
368 || cp -p $$d/$$file $(distdir)/$$file \
369 || exit 1; \
370 fi; \
371 done
372 check-am: all-am
373 check: check-am
374 all-am: Makefile $(DATA)
375 installdirs:
376 for dir in "$(DESTDIR)$(icondir)"; do \
377 test -z "$$dir" || $(mkdir_p) "$$dir"; \
378 done
379 install: install-am
380 install-exec: install-exec-am
381 install-data: install-data-am
382 uninstall: uninstall-am
383
384 install-am: all-am
385 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
386
387 installcheck: installcheck-am
388 install-strip:
389 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
390 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
391 `test -z '$(STRIP)' || \
392 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
393 mostlyclean-generic:
394
395 clean-generic:
396
397 distclean-generic:
398 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
399
400 maintainer-clean-generic:
401 @echo "This command is intended for maintainers to use"
402 @echo "it deletes files that may require special tools to rebuild."
403 clean: clean-am
404
405 clean-am: clean-generic clean-libtool mostlyclean-am
406
407 distclean: distclean-am
408 -rm -f Makefile
409 distclean-am: clean-am distclean-generic distclean-libtool
410
411 dvi: dvi-am
412
413 dvi-am:
414
415 html: html-am
416
417 info: info-am
418
419 info-am:
420
421 install-data-am: install-data-local install-iconDATA
422
423 install-exec-am:
424
425 install-info: install-info-am
426
427 install-man:
428
429 installcheck-am:
430
431 maintainer-clean: maintainer-clean-am
432 -rm -f Makefile
433 maintainer-clean-am: distclean-am maintainer-clean-generic
434
435 mostlyclean: mostlyclean-am
436
437 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
438
439 pdf: pdf-am
440
441 pdf-am:
442
443 ps: ps-am
444
445 ps-am:
446
447 uninstall-am: uninstall-iconDATA uninstall-info-am
448
449 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
450 distclean distclean-generic distclean-libtool distdir dvi \
451 dvi-am html html-am info info-am install install-am \
452 install-data install-data-am install-data-local install-exec \
453 install-exec-am install-iconDATA install-info install-info-am \
454 install-man install-strip installcheck installcheck-am \
455 installdirs maintainer-clean maintainer-clean-generic \
456 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
457 ps ps-am uninstall uninstall-am uninstall-iconDATA \
458 uninstall-info-am
459
460
461 # install aliases for icons, and the use the icon-naming-utils to install
462 # further aliases for compatibility with gtk stock icon names.
463 install-data-local: install-iconDATA
464 ln -sf activity-start.svg $(DESTDIR)$(icondir)/document-open.svg
465 ln -sf activity-stop.svg $(DESTDIR)$(icondir)/application-exit.svg
466 ln -sf dialog-ok.svg $(DESTDIR)$(icondir)/dialog-apply.svg
467 ln -sf media-playback-stop.svg $(DESTDIR)$(icondir)/process-stop.svg
468 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
469 # Tell versions [3.59,3.63) of GNU make to not export all variables.
470 # Otherwise a system limit (for SysV at least) may be exceeded.
471 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/apps
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = apps
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 activity-journal.svg
176
177 EXTRA_DIST = $(icon_DATA)
178 all: all-am
179
180 .SUFFIXES:
181 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
182 @for dep in $?; do \
183 case '$(am__configure_deps)' in \
184 *$$dep*) \
185 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
186 && exit 0; \
187 exit 1;; \
188 esac; \
189 done; \
190 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/apps/Makefile'; \
191 cd $(top_srcdir) && \
192 $(AUTOMAKE) --foreign icons/scalable/apps/Makefile
193 .PRECIOUS: Makefile
194 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
195 @case '$?' in \
196 *config.status*) \
197 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
198 *) \
199 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
200 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
201 esac;
202
203 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
204 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
205
206 $(top_srcdir)/configure: $(am__configure_deps)
207 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
208 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
209 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
210
211 mostlyclean-libtool:
212 -rm -f *.lo
213
214 clean-libtool:
215 -rm -rf .libs _libs
216
217 distclean-libtool:
218 -rm -f libtool
219 uninstall-info-am:
220 install-iconDATA: $(icon_DATA)
221 @$(NORMAL_INSTALL)
222 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
223 @list='$(icon_DATA)'; for p in $$list; do \
224 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
225 f=$(am__strip_dir) \
226 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
227 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
228 done
229
230 uninstall-iconDATA:
231 @$(NORMAL_UNINSTALL)
232 @list='$(icon_DATA)'; for p in $$list; do \
233 f=$(am__strip_dir) \
234 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
235 rm -f "$(DESTDIR)$(icondir)/$$f"; \
236 done
237 tags: TAGS
238 TAGS:
239
240 ctags: CTAGS
241 CTAGS:
242
243
244 distdir: $(DISTFILES)
245 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
246 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
247 list='$(DISTFILES)'; for file in $$list; do \
248 case $$file in \
249 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
250 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
251 esac; \
252 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
253 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
254 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
255 dir="/$$dir"; \
256 $(mkdir_p) "$(distdir)$$dir"; \
257 else \
258 dir=''; \
259 fi; \
260 if test -d $$d/$$file; then \
261 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
262 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
263 fi; \
264 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
265 else \
266 test -f $(distdir)/$$file \
267 || cp -p $$d/$$file $(distdir)/$$file \
268 || exit 1; \
269 fi; \
270 done
271 check-am: all-am
272 check: check-am
273 all-am: Makefile $(DATA)
274 installdirs:
275 for dir in "$(DESTDIR)$(icondir)"; do \
276 test -z "$$dir" || $(mkdir_p) "$$dir"; \
277 done
278 install: install-am
279 install-exec: install-exec-am
280 install-data: install-data-am
281 uninstall: uninstall-am
282
283 install-am: all-am
284 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
285
286 installcheck: installcheck-am
287 install-strip:
288 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
289 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
290 `test -z '$(STRIP)' || \
291 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
292 mostlyclean-generic:
293
294 clean-generic:
295
296 distclean-generic:
297 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
298
299 maintainer-clean-generic:
300 @echo "This command is intended for maintainers to use"
301 @echo "it deletes files that may require special tools to rebuild."
302 clean: clean-am
303
304 clean-am: clean-generic clean-libtool mostlyclean-am
305
306 distclean: distclean-am
307 -rm -f Makefile
308 distclean-am: clean-am distclean-generic distclean-libtool
309
310 dvi: dvi-am
311
312 dvi-am:
313
314 html: html-am
315
316 info: info-am
317
318 info-am:
319
320 install-data-am: install-data-local install-iconDATA
321
322 install-exec-am:
323
324 install-info: install-info-am
325
326 install-man:
327
328 installcheck-am:
329
330 maintainer-clean: maintainer-clean-am
331 -rm -f Makefile
332 maintainer-clean-am: distclean-am maintainer-clean-generic
333
334 mostlyclean: mostlyclean-am
335
336 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
337
338 pdf: pdf-am
339
340 pdf-am:
341
342 ps: ps-am
343
344 ps-am:
345
346 uninstall-am: uninstall-iconDATA uninstall-info-am
347
348 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
349 distclean distclean-generic distclean-libtool distdir dvi \
350 dvi-am html html-am info info-am install install-am \
351 install-data install-data-am install-data-local install-exec \
352 install-exec-am install-iconDATA install-info install-info-am \
353 install-man install-strip installcheck installcheck-am \
354 installdirs maintainer-clean maintainer-clean-generic \
355 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
356 ps ps-am uninstall uninstall-am uninstall-iconDATA \
357 uninstall-info-am
358
359
360 install-data-local: install-iconDATA
361 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
362 # Tell versions [3.59,3.63) of GNU make to not export all variables.
363 # Otherwise a system limit (for SysV at least) may be exceeded.
364 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/categories
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = categories
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 preferences-system.svg
176
177 EXTRA_DIST = $(icon_DATA)
178 all: all-am
179
180 .SUFFIXES:
181 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
182 @for dep in $?; do \
183 case '$(am__configure_deps)' in \
184 *$$dep*) \
185 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
186 && exit 0; \
187 exit 1;; \
188 esac; \
189 done; \
190 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/categories/Makefile'; \
191 cd $(top_srcdir) && \
192 $(AUTOMAKE) --foreign icons/scalable/categories/Makefile
193 .PRECIOUS: Makefile
194 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
195 @case '$?' in \
196 *config.status*) \
197 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
198 *) \
199 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
200 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
201 esac;
202
203 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
204 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
205
206 $(top_srcdir)/configure: $(am__configure_deps)
207 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
208 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
209 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
210
211 mostlyclean-libtool:
212 -rm -f *.lo
213
214 clean-libtool:
215 -rm -rf .libs _libs
216
217 distclean-libtool:
218 -rm -f libtool
219 uninstall-info-am:
220 install-iconDATA: $(icon_DATA)
221 @$(NORMAL_INSTALL)
222 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
223 @list='$(icon_DATA)'; for p in $$list; do \
224 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
225 f=$(am__strip_dir) \
226 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
227 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
228 done
229
230 uninstall-iconDATA:
231 @$(NORMAL_UNINSTALL)
232 @list='$(icon_DATA)'; for p in $$list; do \
233 f=$(am__strip_dir) \
234 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
235 rm -f "$(DESTDIR)$(icondir)/$$f"; \
236 done
237 tags: TAGS
238 TAGS:
239
240 ctags: CTAGS
241 CTAGS:
242
243
244 distdir: $(DISTFILES)
245 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
246 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
247 list='$(DISTFILES)'; for file in $$list; do \
248 case $$file in \
249 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
250 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
251 esac; \
252 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
253 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
254 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
255 dir="/$$dir"; \
256 $(mkdir_p) "$(distdir)$$dir"; \
257 else \
258 dir=''; \
259 fi; \
260 if test -d $$d/$$file; then \
261 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
262 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
263 fi; \
264 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
265 else \
266 test -f $(distdir)/$$file \
267 || cp -p $$d/$$file $(distdir)/$$file \
268 || exit 1; \
269 fi; \
270 done
271 check-am: all-am
272 check: check-am
273 all-am: Makefile $(DATA)
274 installdirs:
275 for dir in "$(DESTDIR)$(icondir)"; do \
276 test -z "$$dir" || $(mkdir_p) "$$dir"; \
277 done
278 install: install-am
279 install-exec: install-exec-am
280 install-data: install-data-am
281 uninstall: uninstall-am
282
283 install-am: all-am
284 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
285
286 installcheck: installcheck-am
287 install-strip:
288 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
289 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
290 `test -z '$(STRIP)' || \
291 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
292 mostlyclean-generic:
293
294 clean-generic:
295
296 distclean-generic:
297 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
298
299 maintainer-clean-generic:
300 @echo "This command is intended for maintainers to use"
301 @echo "it deletes files that may require special tools to rebuild."
302 clean: clean-am
303
304 clean-am: clean-generic clean-libtool mostlyclean-am
305
306 distclean: distclean-am
307 -rm -f Makefile
308 distclean-am: clean-am distclean-generic distclean-libtool
309
310 dvi: dvi-am
311
312 dvi-am:
313
314 html: html-am
315
316 info: info-am
317
318 info-am:
319
320 install-data-am: install-data-local install-iconDATA
321
322 install-exec-am:
323
324 install-info: install-info-am
325
326 install-man:
327
328 installcheck-am:
329
330 maintainer-clean: maintainer-clean-am
331 -rm -f Makefile
332 maintainer-clean-am: distclean-am maintainer-clean-generic
333
334 mostlyclean: mostlyclean-am
335
336 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
337
338 pdf: pdf-am
339
340 pdf-am:
341
342 ps: ps-am
343
344 ps-am:
345
346 uninstall-am: uninstall-iconDATA uninstall-info-am
347
348 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
349 distclean distclean-generic distclean-libtool distdir dvi \
350 dvi-am html html-am info info-am install install-am \
351 install-data install-data-am install-data-local install-exec \
352 install-exec-am install-iconDATA install-info install-info-am \
353 install-man install-strip installcheck installcheck-am \
354 installdirs maintainer-clean maintainer-clean-generic \
355 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
356 ps ps-am uninstall uninstall-am uninstall-iconDATA \
357 uninstall-info-am
358
359
360 install-data-local: install-iconDATA
361 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
362 # Tell versions [3.59,3.63) of GNU make to not export all variables.
363 # Otherwise a system limit (for SysV at least) may be exceeded.
364 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/control
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = control
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 control-popup-arrow.svg \
176 color-preview.svg
177
178 EXTRA_DIST = $(icon_DATA)
179 all: all-am
180
181 .SUFFIXES:
182 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
183 @for dep in $?; do \
184 case '$(am__configure_deps)' in \
185 *$$dep*) \
186 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
187 && exit 0; \
188 exit 1;; \
189 esac; \
190 done; \
191 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/control/Makefile'; \
192 cd $(top_srcdir) && \
193 $(AUTOMAKE) --foreign icons/scalable/control/Makefile
194 .PRECIOUS: Makefile
195 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
196 @case '$?' in \
197 *config.status*) \
198 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
199 *) \
200 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
201 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
202 esac;
203
204 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
205 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
206
207 $(top_srcdir)/configure: $(am__configure_deps)
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
209 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
210 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
211
212 mostlyclean-libtool:
213 -rm -f *.lo
214
215 clean-libtool:
216 -rm -rf .libs _libs
217
218 distclean-libtool:
219 -rm -f libtool
220 uninstall-info-am:
221 install-iconDATA: $(icon_DATA)
222 @$(NORMAL_INSTALL)
223 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
224 @list='$(icon_DATA)'; for p in $$list; do \
225 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
226 f=$(am__strip_dir) \
227 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
228 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
229 done
230
231 uninstall-iconDATA:
232 @$(NORMAL_UNINSTALL)
233 @list='$(icon_DATA)'; for p in $$list; do \
234 f=$(am__strip_dir) \
235 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
236 rm -f "$(DESTDIR)$(icondir)/$$f"; \
237 done
238 tags: TAGS
239 TAGS:
240
241 ctags: CTAGS
242 CTAGS:
243
244
245 distdir: $(DISTFILES)
246 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
247 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
248 list='$(DISTFILES)'; for file in $$list; do \
249 case $$file in \
250 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
251 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
252 esac; \
253 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
254 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
255 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
256 dir="/$$dir"; \
257 $(mkdir_p) "$(distdir)$$dir"; \
258 else \
259 dir=''; \
260 fi; \
261 if test -d $$d/$$file; then \
262 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
263 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
264 fi; \
265 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
266 else \
267 test -f $(distdir)/$$file \
268 || cp -p $$d/$$file $(distdir)/$$file \
269 || exit 1; \
270 fi; \
271 done
272 check-am: all-am
273 check: check-am
274 all-am: Makefile $(DATA)
275 installdirs:
276 for dir in "$(DESTDIR)$(icondir)"; do \
277 test -z "$$dir" || $(mkdir_p) "$$dir"; \
278 done
279 install: install-am
280 install-exec: install-exec-am
281 install-data: install-data-am
282 uninstall: uninstall-am
283
284 install-am: all-am
285 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
286
287 installcheck: installcheck-am
288 install-strip:
289 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
290 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
291 `test -z '$(STRIP)' || \
292 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
293 mostlyclean-generic:
294
295 clean-generic:
296
297 distclean-generic:
298 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
299
300 maintainer-clean-generic:
301 @echo "This command is intended for maintainers to use"
302 @echo "it deletes files that may require special tools to rebuild."
303 clean: clean-am
304
305 clean-am: clean-generic clean-libtool mostlyclean-am
306
307 distclean: distclean-am
308 -rm -f Makefile
309 distclean-am: clean-am distclean-generic distclean-libtool
310
311 dvi: dvi-am
312
313 dvi-am:
314
315 html: html-am
316
317 info: info-am
318
319 info-am:
320
321 install-data-am: install-data-local install-iconDATA
322
323 install-exec-am:
324
325 install-info: install-info-am
326
327 install-man:
328
329 installcheck-am:
330
331 maintainer-clean: maintainer-clean-am
332 -rm -f Makefile
333 maintainer-clean-am: distclean-am maintainer-clean-generic
334
335 mostlyclean: mostlyclean-am
336
337 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
338
339 pdf: pdf-am
340
341 pdf-am:
342
343 ps: ps-am
344
345 ps-am:
346
347 uninstall-am: uninstall-iconDATA uninstall-info-am
348
349 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
350 distclean distclean-generic distclean-libtool distdir dvi \
351 dvi-am html html-am info info-am install install-am \
352 install-data install-data-am install-data-local install-exec \
353 install-exec-am install-iconDATA install-info install-info-am \
354 install-man install-strip installcheck installcheck-am \
355 installdirs maintainer-clean maintainer-clean-generic \
356 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
357 ps ps-am uninstall uninstall-am uninstall-iconDATA \
358 uninstall-info-am
359
360
361 install-data-local: install-iconDATA
362 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
363 # Tell versions [3.59,3.63) of GNU make to not export all variables.
364 # Otherwise a system limit (for SysV at least) may be exceeded.
365 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/device
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = device
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 battery-000.icon \
176 battery-000.svg \
177 battery-010.icon \
178 battery-010.svg \
179 battery-020.icon \
180 battery-020.svg \
181 battery-030.icon \
182 battery-030.svg \
183 battery-040.icon \
184 battery-040.svg \
185 battery-050.icon \
186 battery-050.svg \
187 battery-060.icon \
188 battery-060.svg \
189 battery-070.icon \
190 battery-070.svg \
191 battery-080.icon \
192 battery-080.svg \
193 battery-090.icon \
194 battery-090.svg \
195 battery-100.icon \
196 battery-100.svg \
197 battery-charging-100.svg \
198 battery-charging-000.svg \
199 battery-charging-010.svg \
200 battery-charging-020.svg \
201 battery-charging-030.svg \
202 battery-charging-040.svg \
203 battery-charging-050.svg \
204 battery-charging-060.svg \
205 battery-charging-070.svg \
206 battery-charging-080.svg \
207 battery-charging-090.svg \
208 battery-charging-100.svg \
209 camera-external.svg \
210 camera.svg \
211 computer.svg \
212 computer-xo.svg \
213 drive.svg \
214 drive-harddisk.svg \
215 drive-harddisk-usb.svg \
216 media-disk.svg \
217 media-flash-sd.svg \
218 microphone.svg \
219 network-mesh.svg \
220 network-mesh.icon \
221 network-wired.svg \
222 network-wireless-000.svg \
223 network-wireless-000.icon \
224 network-wireless-020.svg \
225 network-wireless-020.icon \
226 network-wireless-040.svg \
227 network-wireless-040.icon \
228 network-wireless-060.svg \
229 network-wireless-060.icon \
230 network-wireless-080.svg \
231 network-wireless-080.icon \
232 network-wireless-100.svg \
233 network-wireless-100.icon \
234 network-wireless-connected-000.svg \
235 network-wireless-connected-000.icon \
236 network-wireless-connected-020.svg \
237 network-wireless-connected-020.icon \
238 network-wireless-connected-040.svg \
239 network-wireless-connected-040.icon \
240 network-wireless-connected-060.svg \
241 network-wireless-connected-060.icon \
242 network-wireless-connected-080.svg \
243 network-wireless-connected-080.icon \
244 network-wireless-connected-100.svg \
245 network-wireless-connected-100.icon \
246 printer.svg \
247 speaker-000.svg \
248 speaker-033.svg \
249 speaker-066.svg \
250 speaker-100.svg \
251 speaker-muted-000.svg \
252 speaker-muted-033.svg \
253 speaker-muted-066.svg \
254 speaker-muted-100.svg
255
256 EXTRA_DIST = $(icon_DATA)
257 all: all-am
258
259 .SUFFIXES:
260 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
261 @for dep in $?; do \
262 case '$(am__configure_deps)' in \
263 *$$dep*) \
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
265 && exit 0; \
266 exit 1;; \
267 esac; \
268 done; \
269 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/device/Makefile'; \
270 cd $(top_srcdir) && \
271 $(AUTOMAKE) --foreign icons/scalable/device/Makefile
272 .PRECIOUS: Makefile
273 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
274 @case '$?' in \
275 *config.status*) \
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
277 *) \
278 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
279 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
280 esac;
281
282 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
283 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
284
285 $(top_srcdir)/configure: $(am__configure_deps)
286 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
287 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
288 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
289
290 mostlyclean-libtool:
291 -rm -f *.lo
292
293 clean-libtool:
294 -rm -rf .libs _libs
295
296 distclean-libtool:
297 -rm -f libtool
298 uninstall-info-am:
299 install-iconDATA: $(icon_DATA)
300 @$(NORMAL_INSTALL)
301 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
302 @list='$(icon_DATA)'; for p in $$list; do \
303 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
304 f=$(am__strip_dir) \
305 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
306 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
307 done
308
309 uninstall-iconDATA:
310 @$(NORMAL_UNINSTALL)
311 @list='$(icon_DATA)'; for p in $$list; do \
312 f=$(am__strip_dir) \
313 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
314 rm -f "$(DESTDIR)$(icondir)/$$f"; \
315 done
316 tags: TAGS
317 TAGS:
318
319 ctags: CTAGS
320 CTAGS:
321
322
323 distdir: $(DISTFILES)
324 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
325 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
326 list='$(DISTFILES)'; for file in $$list; do \
327 case $$file in \
328 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
329 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
330 esac; \
331 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
332 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
333 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
334 dir="/$$dir"; \
335 $(mkdir_p) "$(distdir)$$dir"; \
336 else \
337 dir=''; \
338 fi; \
339 if test -d $$d/$$file; then \
340 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
341 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
342 fi; \
343 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
344 else \
345 test -f $(distdir)/$$file \
346 || cp -p $$d/$$file $(distdir)/$$file \
347 || exit 1; \
348 fi; \
349 done
350 check-am: all-am
351 check: check-am
352 all-am: Makefile $(DATA)
353 installdirs:
354 for dir in "$(DESTDIR)$(icondir)"; do \
355 test -z "$$dir" || $(mkdir_p) "$$dir"; \
356 done
357 install: install-am
358 install-exec: install-exec-am
359 install-data: install-data-am
360 uninstall: uninstall-am
361
362 install-am: all-am
363 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
364
365 installcheck: installcheck-am
366 install-strip:
367 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
368 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
369 `test -z '$(STRIP)' || \
370 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
371 mostlyclean-generic:
372
373 clean-generic:
374
375 distclean-generic:
376 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
377
378 maintainer-clean-generic:
379 @echo "This command is intended for maintainers to use"
380 @echo "it deletes files that may require special tools to rebuild."
381 clean: clean-am
382
383 clean-am: clean-generic clean-libtool mostlyclean-am
384
385 distclean: distclean-am
386 -rm -f Makefile
387 distclean-am: clean-am distclean-generic distclean-libtool
388
389 dvi: dvi-am
390
391 dvi-am:
392
393 html: html-am
394
395 info: info-am
396
397 info-am:
398
399 install-data-am: install-data-local install-iconDATA
400
401 install-exec-am:
402
403 install-info: install-info-am
404
405 install-man:
406
407 installcheck-am:
408
409 maintainer-clean: maintainer-clean-am
410 -rm -f Makefile
411 maintainer-clean-am: distclean-am maintainer-clean-generic
412
413 mostlyclean: mostlyclean-am
414
415 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
416
417 pdf: pdf-am
418
419 pdf-am:
420
421 ps: ps-am
422
423 ps-am:
424
425 uninstall-am: uninstall-iconDATA uninstall-info-am
426
427 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
428 distclean distclean-generic distclean-libtool distdir dvi \
429 dvi-am html html-am info info-am install install-am \
430 install-data install-data-am install-data-local install-exec \
431 install-exec-am install-iconDATA install-info install-info-am \
432 install-man install-strip installcheck installcheck-am \
433 installdirs maintainer-clean maintainer-clean-generic \
434 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
435 ps ps-am uninstall uninstall-am uninstall-iconDATA \
436 uninstall-info-am
437
438
439 install-data-local: install-iconDATA
440 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
441 # Tell versions [3.59,3.63) of GNU make to not export all variables.
442 # Otherwise a system limit (for SysV at least) may be exceeded.
443 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/emblems
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = emblems
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 emblem-busy.svg \
176 emblem-charging.svg \
177 emblem-downloads.svg \
178 emblem-favorite.svg \
179 emblem-locked.svg \
180 emblem-notification.svg \
181 emblem-outofrange.svg \
182 emblem-question.svg \
183 emblem-warning.svg
184
185 EXTRA_DIST = $(icon_DATA)
186 all: all-am
187
188 .SUFFIXES:
189 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
190 @for dep in $?; do \
191 case '$(am__configure_deps)' in \
192 *$$dep*) \
193 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
194 && exit 0; \
195 exit 1;; \
196 esac; \
197 done; \
198 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/emblems/Makefile'; \
199 cd $(top_srcdir) && \
200 $(AUTOMAKE) --foreign icons/scalable/emblems/Makefile
201 .PRECIOUS: Makefile
202 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
203 @case '$?' in \
204 *config.status*) \
205 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
206 *) \
207 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
208 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
209 esac;
210
211 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
212 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
213
214 $(top_srcdir)/configure: $(am__configure_deps)
215 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
216 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
218
219 mostlyclean-libtool:
220 -rm -f *.lo
221
222 clean-libtool:
223 -rm -rf .libs _libs
224
225 distclean-libtool:
226 -rm -f libtool
227 uninstall-info-am:
228 install-iconDATA: $(icon_DATA)
229 @$(NORMAL_INSTALL)
230 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
231 @list='$(icon_DATA)'; for p in $$list; do \
232 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
233 f=$(am__strip_dir) \
234 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
235 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
236 done
237
238 uninstall-iconDATA:
239 @$(NORMAL_UNINSTALL)
240 @list='$(icon_DATA)'; for p in $$list; do \
241 f=$(am__strip_dir) \
242 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
243 rm -f "$(DESTDIR)$(icondir)/$$f"; \
244 done
245 tags: TAGS
246 TAGS:
247
248 ctags: CTAGS
249 CTAGS:
250
251
252 distdir: $(DISTFILES)
253 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
254 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
255 list='$(DISTFILES)'; for file in $$list; do \
256 case $$file in \
257 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
258 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
259 esac; \
260 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
261 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
262 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
263 dir="/$$dir"; \
264 $(mkdir_p) "$(distdir)$$dir"; \
265 else \
266 dir=''; \
267 fi; \
268 if test -d $$d/$$file; then \
269 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
270 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
271 fi; \
272 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
273 else \
274 test -f $(distdir)/$$file \
275 || cp -p $$d/$$file $(distdir)/$$file \
276 || exit 1; \
277 fi; \
278 done
279 check-am: all-am
280 check: check-am
281 all-am: Makefile $(DATA)
282 installdirs:
283 for dir in "$(DESTDIR)$(icondir)"; do \
284 test -z "$$dir" || $(mkdir_p) "$$dir"; \
285 done
286 install: install-am
287 install-exec: install-exec-am
288 install-data: install-data-am
289 uninstall: uninstall-am
290
291 install-am: all-am
292 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
293
294 installcheck: installcheck-am
295 install-strip:
296 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
297 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
298 `test -z '$(STRIP)' || \
299 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
300 mostlyclean-generic:
301
302 clean-generic:
303
304 distclean-generic:
305 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
306
307 maintainer-clean-generic:
308 @echo "This command is intended for maintainers to use"
309 @echo "it deletes files that may require special tools to rebuild."
310 clean: clean-am
311
312 clean-am: clean-generic clean-libtool mostlyclean-am
313
314 distclean: distclean-am
315 -rm -f Makefile
316 distclean-am: clean-am distclean-generic distclean-libtool
317
318 dvi: dvi-am
319
320 dvi-am:
321
322 html: html-am
323
324 info: info-am
325
326 info-am:
327
328 install-data-am: install-data-local install-iconDATA
329
330 install-exec-am:
331
332 install-info: install-info-am
333
334 install-man:
335
336 installcheck-am:
337
338 maintainer-clean: maintainer-clean-am
339 -rm -f Makefile
340 maintainer-clean-am: distclean-am maintainer-clean-generic
341
342 mostlyclean: mostlyclean-am
343
344 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
345
346 pdf: pdf-am
347
348 pdf-am:
349
350 ps: ps-am
351
352 ps-am:
353
354 uninstall-am: uninstall-iconDATA uninstall-info-am
355
356 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
357 distclean distclean-generic distclean-libtool distdir dvi \
358 dvi-am html html-am info info-am install install-am \
359 install-data install-data-am install-data-local install-exec \
360 install-exec-am install-iconDATA install-info install-info-am \
361 install-man install-strip installcheck installcheck-am \
362 installdirs maintainer-clean maintainer-clean-generic \
363 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
364 ps ps-am uninstall uninstall-am uninstall-iconDATA \
365 uninstall-info-am
366
367
368 install-data-local: install-iconDATA
369 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
370 # Tell versions [3.59,3.63) of GNU make to not export all variables.
371 # Otherwise a system limit (for SysV at least) may be exceeded.
372 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/mimetypes
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = mimetypes
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 application-octet-stream.svg \
176 application-x-generic.svg \
177 application-x-squeak-project.svg \
178 audio-x-generic.svg \
179 document-generic.svg \
180 image-x-generic.svg \
181 text-uri-list.svg \
182 text-x-generic.svg \
183 video-x-generic.svg
184
185 EXTRA_DIST = $(icon_DATA)
186 all: all-am
187
188 .SUFFIXES:
189 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
190 @for dep in $?; do \
191 case '$(am__configure_deps)' in \
192 *$$dep*) \
193 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
194 && exit 0; \
195 exit 1;; \
196 esac; \
197 done; \
198 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/mimetypes/Makefile'; \
199 cd $(top_srcdir) && \
200 $(AUTOMAKE) --foreign icons/scalable/mimetypes/Makefile
201 .PRECIOUS: Makefile
202 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
203 @case '$?' in \
204 *config.status*) \
205 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
206 *) \
207 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
208 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
209 esac;
210
211 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
212 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
213
214 $(top_srcdir)/configure: $(am__configure_deps)
215 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
216 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
218
219 mostlyclean-libtool:
220 -rm -f *.lo
221
222 clean-libtool:
223 -rm -rf .libs _libs
224
225 distclean-libtool:
226 -rm -f libtool
227 uninstall-info-am:
228 install-iconDATA: $(icon_DATA)
229 @$(NORMAL_INSTALL)
230 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
231 @list='$(icon_DATA)'; for p in $$list; do \
232 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
233 f=$(am__strip_dir) \
234 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
235 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
236 done
237
238 uninstall-iconDATA:
239 @$(NORMAL_UNINSTALL)
240 @list='$(icon_DATA)'; for p in $$list; do \
241 f=$(am__strip_dir) \
242 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
243 rm -f "$(DESTDIR)$(icondir)/$$f"; \
244 done
245 tags: TAGS
246 TAGS:
247
248 ctags: CTAGS
249 CTAGS:
250
251
252 distdir: $(DISTFILES)
253 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
254 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
255 list='$(DISTFILES)'; for file in $$list; do \
256 case $$file in \
257 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
258 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
259 esac; \
260 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
261 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
262 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
263 dir="/$$dir"; \
264 $(mkdir_p) "$(distdir)$$dir"; \
265 else \
266 dir=''; \
267 fi; \
268 if test -d $$d/$$file; then \
269 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
270 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
271 fi; \
272 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
273 else \
274 test -f $(distdir)/$$file \
275 || cp -p $$d/$$file $(distdir)/$$file \
276 || exit 1; \
277 fi; \
278 done
279 check-am: all-am
280 check: check-am
281 all-am: Makefile $(DATA)
282 installdirs:
283 for dir in "$(DESTDIR)$(icondir)"; do \
284 test -z "$$dir" || $(mkdir_p) "$$dir"; \
285 done
286 install: install-am
287 install-exec: install-exec-am
288 install-data: install-data-am
289 uninstall: uninstall-am
290
291 install-am: all-am
292 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
293
294 installcheck: installcheck-am
295 install-strip:
296 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
297 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
298 `test -z '$(STRIP)' || \
299 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
300 mostlyclean-generic:
301
302 clean-generic:
303
304 distclean-generic:
305 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
306
307 maintainer-clean-generic:
308 @echo "This command is intended for maintainers to use"
309 @echo "it deletes files that may require special tools to rebuild."
310 clean: clean-am
311
312 clean-am: clean-generic clean-libtool mostlyclean-am
313
314 distclean: distclean-am
315 -rm -f Makefile
316 distclean-am: clean-am distclean-generic distclean-libtool
317
318 dvi: dvi-am
319
320 dvi-am:
321
322 html: html-am
323
324 info: info-am
325
326 info-am:
327
328 install-data-am: install-data-local install-iconDATA
329
330 install-exec-am:
331
332 install-info: install-info-am
333
334 install-man:
335
336 installcheck-am:
337
338 maintainer-clean: maintainer-clean-am
339 -rm -f Makefile
340 maintainer-clean-am: distclean-am maintainer-clean-generic
341
342 mostlyclean: mostlyclean-am
343
344 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
345
346 pdf: pdf-am
347
348 pdf-am:
349
350 ps: ps-am
351
352 ps-am:
353
354 uninstall-am: uninstall-iconDATA uninstall-info-am
355
356 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
357 distclean distclean-generic distclean-libtool distdir dvi \
358 dvi-am html html-am info info-am install install-am \
359 install-data install-data-am install-data-local install-exec \
360 install-exec-am install-iconDATA install-info install-info-am \
361 install-man install-strip installcheck installcheck-am \
362 installdirs maintainer-clean maintainer-clean-generic \
363 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
364 ps ps-am uninstall uninstall-am uninstall-iconDATA \
365 uninstall-info-am
366
367
368 install-data-local: install-iconDATA
369 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
370 # Tell versions [3.59,3.63) of GNU make to not export all variables.
371 # Otherwise a system limit (for SysV at least) may be exceeded.
372 .NOEXPORT:
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = icons/scalable/status
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(icondir)"
56 iconDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(icon_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 iconsize = scalable
172 category = status
173 icondir = $(datadir)/icons/sugar/$(iconsize)/$(category)
174 icon_DATA = \
175 audio-volume-high.svg \
176 audio-volume-low.svg \
177 audio-volume-medium.svg \
178 audio-volume-muted.svg \
179 image-missing.svg
180
181 EXTRA_DIST = $(icon_DATA)
182 all: all-am
183
184 .SUFFIXES:
185 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
186 @for dep in $?; do \
187 case '$(am__configure_deps)' in \
188 *$$dep*) \
189 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
190 && exit 0; \
191 exit 1;; \
192 esac; \
193 done; \
194 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/scalable/status/Makefile'; \
195 cd $(top_srcdir) && \
196 $(AUTOMAKE) --foreign icons/scalable/status/Makefile
197 .PRECIOUS: Makefile
198 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
199 @case '$?' in \
200 *config.status*) \
201 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
202 *) \
203 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
204 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
205 esac;
206
207 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
209
210 $(top_srcdir)/configure: $(am__configure_deps)
211 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
212 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
213 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
214
215 mostlyclean-libtool:
216 -rm -f *.lo
217
218 clean-libtool:
219 -rm -rf .libs _libs
220
221 distclean-libtool:
222 -rm -f libtool
223 uninstall-info-am:
224 install-iconDATA: $(icon_DATA)
225 @$(NORMAL_INSTALL)
226 test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
227 @list='$(icon_DATA)'; for p in $$list; do \
228 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
229 f=$(am__strip_dir) \
230 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
231 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
232 done
233
234 uninstall-iconDATA:
235 @$(NORMAL_UNINSTALL)
236 @list='$(icon_DATA)'; for p in $$list; do \
237 f=$(am__strip_dir) \
238 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
239 rm -f "$(DESTDIR)$(icondir)/$$f"; \
240 done
241 tags: TAGS
242 TAGS:
243
244 ctags: CTAGS
245 CTAGS:
246
247
248 distdir: $(DISTFILES)
249 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
250 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
251 list='$(DISTFILES)'; for file in $$list; do \
252 case $$file in \
253 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
254 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
255 esac; \
256 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
257 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
258 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
259 dir="/$$dir"; \
260 $(mkdir_p) "$(distdir)$$dir"; \
261 else \
262 dir=''; \
263 fi; \
264 if test -d $$d/$$file; then \
265 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
266 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
267 fi; \
268 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
269 else \
270 test -f $(distdir)/$$file \
271 || cp -p $$d/$$file $(distdir)/$$file \
272 || exit 1; \
273 fi; \
274 done
275 check-am: all-am
276 check: check-am
277 all-am: Makefile $(DATA)
278 installdirs:
279 for dir in "$(DESTDIR)$(icondir)"; do \
280 test -z "$$dir" || $(mkdir_p) "$$dir"; \
281 done
282 install: install-am
283 install-exec: install-exec-am
284 install-data: install-data-am
285 uninstall: uninstall-am
286
287 install-am: all-am
288 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
289
290 installcheck: installcheck-am
291 install-strip:
292 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
293 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
294 `test -z '$(STRIP)' || \
295 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
296 mostlyclean-generic:
297
298 clean-generic:
299
300 distclean-generic:
301 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
302
303 maintainer-clean-generic:
304 @echo "This command is intended for maintainers to use"
305 @echo "it deletes files that may require special tools to rebuild."
306 clean: clean-am
307
308 clean-am: clean-generic clean-libtool mostlyclean-am
309
310 distclean: distclean-am
311 -rm -f Makefile
312 distclean-am: clean-am distclean-generic distclean-libtool
313
314 dvi: dvi-am
315
316 dvi-am:
317
318 html: html-am
319
320 info: info-am
321
322 info-am:
323
324 install-data-am: install-data-local install-iconDATA
325
326 install-exec-am:
327
328 install-info: install-info-am
329
330 install-man:
331
332 installcheck-am:
333
334 maintainer-clean: maintainer-clean-am
335 -rm -f Makefile
336 maintainer-clean-am: distclean-am maintainer-clean-generic
337
338 mostlyclean: mostlyclean-am
339
340 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
341
342 pdf: pdf-am
343
344 pdf-am:
345
346 ps: ps-am
347
348 ps-am:
349
350 uninstall-am: uninstall-iconDATA uninstall-info-am
351
352 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
353 distclean distclean-generic distclean-libtool distdir dvi \
354 dvi-am html html-am info info-am install install-am \
355 install-data install-data-am install-data-local install-exec \
356 install-exec-am install-iconDATA install-info install-info-am \
357 install-man install-strip installcheck installcheck-am \
358 installdirs maintainer-clean maintainer-clean-generic \
359 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
360 ps ps-am uninstall uninstall-am uninstall-iconDATA \
361 uninstall-info-am
362
363
364 install-data-local: install-iconDATA
365 (cd $(DESTDIR)$(icondir)/.. && $(ICONMAP) -c $(category))
366 # Tell versions [3.59,3.63) of GNU make to not export all variables.
367 # Otherwise a system limit (for SysV at least) may be exceeded.
368 .NOEXPORT:
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2006-12-25.00
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit=${DOITPROG-}
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.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
161
162 --version) echo "$0 $scriptversion"; exit $?;;
163
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
171 esac
172 shift
173 done
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 done
189 fi
190
191 if test $# -eq 0; then
192 if test -z "$dir_arg"; then
193 echo "$0: no input file specified." >&2
194 exit 1
195 fi
196 # It's OK to call `install-sh -d' without argument.
197 # This can happen when creating conditional directories.
198 exit 0
199 fi
200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
228 for src
229 do
230 # Protect names starting with `-'.
231 case $src in
232 -*) src=./$src;;
233 esac
234
235 if test -n "$dir_arg"; then
236 dst=$src
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
240 else
241
242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
243 # might cause directories to be created, which would be especially bad
244 # if $src (and thus $dsttmp) contains '*'.
245 if test ! -f "$src" && test ! -d "$src"; then
246 echo "$0: $src does not exist." >&2
247 exit 1
248 fi
249
250 if test -z "$dst_arg"; then
251 echo "$0: no destination specified." >&2
252 exit 1
253 fi
254
255 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260
261 # If destination is a directory, append the input filename; won't work
262 # if double slashes aren't ignored.
263 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
267 fi
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
301 fi
302 fi
303
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 then
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
365 else
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
368 fi
369 trap '' 0;;
370 esac;;
371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
397 shift
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
433 fi
434 fi
435 fi
436
437 if test -n "$dir_arg"; then
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
442 else
443
444 # Make a couple of temp file names in the proper directory.
445 dsttmp=$dstdir/_inst.$$_
446 rmtmp=$dstdir/_rm.$$_
447
448 # Trap to clean up those temp files at exit.
449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
450
451 # Copy the file name to the temp name.
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453
454 # and set any options; do chmod last to preserve setuid bits.
455 #
456 # If any of these fail, we abort the whole thing. If we want to
457 # ignore errors from any of these, just make sure not to ignore
458 # errors from the above "$doit $cpprog $src $dsttmp" command.
459 #
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
511 done
512
513 # Local variables:
514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515 # time-stamp-start: "scriptversion="
516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-end: "$"
518 # End:
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.4
3 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 # General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
45 #
46 # MODE must be one of the following:
47 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
55 #
56 # MODE-ARGS vary depending on the MODE.
57 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
58 #
59 # When reporting a bug, please describe a test case to reproduce it and
60 # include the following information:
61 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.4 Debian-2.2.4-0ubuntu4
68 # automake: $automake_version
69 # autoconf: $autoconf_version
70 #
71 # Report bugs to <bug-libtool@gnu.org>.
72
73 PROGRAM=ltmain.sh
74 PACKAGE=libtool
75 VERSION="2.2.4 Debian-2.2.4-0ubuntu4"
76 TIMESTAMP=""
77 package_revision=1.2976
78
79 # Be Bourne compatible
80 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
81 emulate sh
82 NULLCMD=:
83 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
84 # is contrary to our usage. Disable this feature.
85 alias -g '${1+"$@"}'='"$@"'
86 setopt NO_GLOB_SUBST
87 else
88 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
89 fi
90 BIN_SH=xpg4; export BIN_SH # for Tru64
91 DUALCASE=1; export DUALCASE # for MKS sh
92
93 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97 lt_user_locale=
98 lt_safe_locale=
99 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
100 do
101 eval "if test \"\${$lt_var+set}\" = set; then
102 save_$lt_var=\$$lt_var
103 $lt_var=C
104 export $lt_var
105 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107 fi"
108 done
109
110 $lt_unset CDPATH
111
112
113
114
115
116 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
122 : ${MAKE="make"}
123 : ${MKDIR="mkdir"}
124 : ${MV="mv -f"}
125 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128 : ${Xsed="$SED -e 1s/^X//"}
129
130 # Global variables:
131 EXIT_SUCCESS=0
132 EXIT_FAILURE=1
133 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
134 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
135
136 exit_status=$EXIT_SUCCESS
137
138 # Make sure IFS has a sensible default
139 lt_nl='
140 '
141 IFS=" $lt_nl"
142
143 dirname="s,/[^/]*$,,"
144 basename="s,^.*/,,"
145
146 # func_dirname_and_basename file append nondir_replacement
147 # perform func_basename and func_dirname in a single function
148 # call:
149 # dirname: Compute the dirname of FILE. If nonempty,
150 # add APPEND to the result, otherwise set result
151 # to NONDIR_REPLACEMENT.
152 # value returned in "$func_dirname_result"
153 # basename: Compute filename of FILE.
154 # value retuned in "$func_basename_result"
155 # Implementation must be kept synchronized with func_dirname
156 # and func_basename. For efficiency, we do not delegate to
157 # those functions but instead duplicate the functionality here.
158 func_dirname_and_basename ()
159 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
166 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
178
179 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182 func_dirname_and_basename "$progpath"
183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187
188 # Make sure we have an absolute path for reexecution:
189 case $progpath in
190 [\\/]*|[A-Za-z]:\\*) ;;
191 *[\\/]*)
192 progdir=$func_dirname_result
193 progdir=`cd "$progdir" && pwd`
194 progpath="$progdir/$progname"
195 ;;
196 *)
197 save_IFS="$IFS"
198 IFS=:
199 for progdir in $PATH; do
200 IFS="$save_IFS"
201 test -x "$progdir/$progname" && break
202 done
203 IFS="$save_IFS"
204 test -n "$progdir" || progdir=`pwd`
205 progpath="$progdir/$progname"
206 ;;
207 esac
208
209 # Sed substitution that helps us do robust quoting. It backslashifies
210 # metacharacters that are still active within double-quoted strings.
211 Xsed="${SED}"' -e 1s/^X//'
212 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
213
214 # Same as above, but do not quote variable references.
215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
216
217 # Re-`\' parameter expansions in output of double_quote_subst that were
218 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
219 # in input to double_quote_subst, that '$' was protected from expansion.
220 # Since each input `\' is now two `\'s, look for any number of runs of
221 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
222 bs='\\'
223 bs2='\\\\'
224 bs4='\\\\\\\\'
225 dollar='\$'
226 sed_double_backslash="\
227 s/$bs4/&\\
228 /g
229 s/^$bs2$dollar/$bs&/
230 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
231 s/\n//g"
232
233 # Standard options:
234 opt_dry_run=false
235 opt_help=false
236 opt_quiet=false
237 opt_verbose=false
238 opt_warning=:
239
240 # func_echo arg...
241 # Echo program name prefixed message, along with the current mode
242 # name if it has been set yet.
243 func_echo ()
244 {
245 $ECHO "$progname${mode+: }$mode: $*"
246 }
247
248 # func_verbose arg...
249 # Echo program name prefixed message in verbose mode only.
250 func_verbose ()
251 {
252 $opt_verbose && func_echo ${1+"$@"}
253
254 # A bug in bash halts the script if the last line of a function
255 # fails when set -e is in force, so we need another command to
256 # work around that:
257 :
258 }
259
260 # func_error arg...
261 # Echo program name prefixed message to standard error.
262 func_error ()
263 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
265 }
266
267 # func_warning arg...
268 # Echo program name prefixed warning message to standard error.
269 func_warning ()
270 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
272
273 # bash bug again:
274 :
275 }
276
277 # func_fatal_error arg...
278 # Echo program name prefixed message to standard error, and exit.
279 func_fatal_error ()
280 {
281 func_error ${1+"$@"}
282 exit $EXIT_FAILURE
283 }
284
285 # func_fatal_help arg...
286 # Echo program name prefixed message to standard error, followed by
287 # a help hint, and exit.
288 func_fatal_help ()
289 {
290 func_error ${1+"$@"}
291 func_fatal_error "$help"
292 }
293 help="Try \`$progname --help' for more information." ## default
294
295
296 # func_grep expression filename
297 # Check whether EXPRESSION matches any line of FILENAME, without output.
298 func_grep ()
299 {
300 $GREP "$1" "$2" >/dev/null 2>&1
301 }
302
303
304 # func_mkdir_p directory-path
305 # Make sure the entire path to DIRECTORY-PATH is available.
306 func_mkdir_p ()
307 {
308 my_directory_path="$1"
309 my_dir_list=
310
311 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
312
313 # Protect directory names starting with `-'
314 case $my_directory_path in
315 -*) my_directory_path="./$my_directory_path" ;;
316 esac
317
318 # While some portion of DIR does not yet exist...
319 while test ! -d "$my_directory_path"; do
320 # ...make a list in topmost first order. Use a colon delimited
321 # list incase some portion of path contains whitespace.
322 my_dir_list="$my_directory_path:$my_dir_list"
323
324 # If the last portion added has no slash in it, the list is done
325 case $my_directory_path in */*) ;; *) break ;; esac
326
327 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
329 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
331
332 save_mkdir_p_IFS="$IFS"; IFS=':'
333 for my_dir in $my_dir_list; do
334 IFS="$save_mkdir_p_IFS"
335 # mkdir can fail with a `File exist' error if two processes
336 # try to create one of the directories concurrently. Don't
337 # stop in that case!
338 $MKDIR "$my_dir" 2>/dev/null || :
339 done
340 IFS="$save_mkdir_p_IFS"
341
342 # Bail out if we (or some other process) failed to create a directory.
343 test -d "$my_directory_path" || \
344 func_fatal_error "Failed to create \`$1'"
345 fi
346 }
347
348
349 # func_mktempdir [string]
350 # Make a temporary directory that won't clash with other running
351 # libtool processes, and avoids race conditions if possible. If
352 # given, STRING is the basename for that directory.
353 func_mktempdir ()
354 {
355 my_template="${TMPDIR-/tmp}/${1-$progname}"
356
357 if test "$opt_dry_run" = ":"; then
358 # Return a directory name, but don't create it in dry-run mode
359 my_tmpdir="${my_template}-$$"
360 else
361
362 # If mktemp works, use that first and foremost
363 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
364
365 if test ! -d "$my_tmpdir"; then
366 # Failing that, at least try and use $RANDOM to avoid a race
367 my_tmpdir="${my_template}-${RANDOM-0}$$"
368
369 save_mktempdir_umask=`umask`
370 umask 0077
371 $MKDIR "$my_tmpdir"
372 umask $save_mktempdir_umask
373 fi
374
375 # If we're not in dry-run mode, bomb out on failure
376 test -d "$my_tmpdir" || \
377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378 fi
379
380 $ECHO "X$my_tmpdir" | $Xsed
381 }
382
383
384 # func_quote_for_eval arg
385 # Aesthetically quote ARG to be evaled later.
386 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
387 # is double-quoted, suitable for a subsequent eval, whereas
388 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
389 # which are still active within double quotes backslashified.
390 func_quote_for_eval ()
391 {
392 case $1 in
393 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
395 *)
396 func_quote_for_eval_unquoted_result="$1" ;;
397 esac
398
399 case $func_quote_for_eval_unquoted_result in
400 # Double-quote args containing shell metacharacters to delay
401 # word splitting, command substitution and and variable
402 # expansion for a subsequent eval.
403 # Many Bourne shells cannot handle close brackets correctly
404 # in scan sets, so we specify it separately.
405 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
406 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
407 ;;
408 *)
409 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
410 esac
411 }
412
413
414 # func_quote_for_expand arg
415 # Aesthetically quote ARG to be evaled later; same as above,
416 # but do not quote variable references.
417 func_quote_for_expand ()
418 {
419 case $1 in
420 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423 *)
424 my_arg="$1" ;;
425 esac
426
427 case $my_arg in
428 # Double-quote args containing shell metacharacters to delay
429 # word splitting and command substitution for a subsequent eval.
430 # Many Bourne shells cannot handle close brackets correctly
431 # in scan sets, so we specify it separately.
432 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
433 my_arg="\"$my_arg\""
434 ;;
435 esac
436
437 func_quote_for_expand_result="$my_arg"
438 }
439
440
441 # func_show_eval cmd [fail_exp]
442 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
443 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
444 # is given, then evaluate it.
445 func_show_eval ()
446 {
447 my_cmd="$1"
448 my_fail_exp="${2-:}"
449
450 ${opt_silent-false} || {
451 func_quote_for_expand "$my_cmd"
452 eval "func_echo $func_quote_for_expand_result"
453 }
454
455 if ${opt_dry_run-false}; then :; else
456 eval "$my_cmd"
457 my_status=$?
458 if test "$my_status" -eq 0; then :; else
459 eval "(exit $my_status); $my_fail_exp"
460 fi
461 fi
462 }
463
464
465 # func_show_eval_locale cmd [fail_exp]
466 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
467 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
468 # is given, then evaluate it. Use the saved locale for evaluation.
469 func_show_eval_locale ()
470 {
471 my_cmd="$1"
472 my_fail_exp="${2-:}"
473
474 ${opt_silent-false} || {
475 func_quote_for_expand "$my_cmd"
476 eval "func_echo $func_quote_for_expand_result"
477 }
478
479 if ${opt_dry_run-false}; then :; else
480 eval "$lt_user_locale
481 $my_cmd"
482 my_status=$?
483 eval "$lt_safe_locale"
484 if test "$my_status" -eq 0; then :; else
485 eval "(exit $my_status); $my_fail_exp"
486 fi
487 fi
488 }
489
490
491
492
493
494 # func_version
495 # Echo version message to standard output and exit.
496 func_version ()
497 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
499 s/^# //
500 s/^# *$//
501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
502 p
503 }' < "$progpath"
504 exit $?
505 }
506
507 # func_usage
508 # Echo short help message to standard output and exit.
509 func_usage ()
510 {
511 $SED -n '/^# Usage:/,/# -h/ {
512 s/^# //
513 s/^# *$//
514 s/\$progname/'$progname'/
515 p
516 }' < "$progpath"
517 $ECHO
518 $ECHO "run \`$progname --help | more' for full usage"
519 exit $?
520 }
521
522 # func_help
523 # Echo long help message to standard output and exit.
524 func_help ()
525 {
526 $SED -n '/^# Usage:/,/# Report bugs to/ {
527 s/^# //
528 s/^# *$//
529 s*\$progname*'$progname'*
530 s*\$host*'"$host"'*
531 s*\$SHELL*'"$SHELL"'*
532 s*\$LTCC*'"$LTCC"'*
533 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534 s*\$LD*'"$LD"'*
535 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
538 p
539 }' < "$progpath"
540 exit $?
541 }
542
543 # func_missing_arg argname
544 # Echo program name prefixed message to standard error and set global
545 # exit_cmd.
546 func_missing_arg ()
547 {
548 func_error "missing argument for $1"
549 exit_cmd=exit
550 }
551
552 exit_cmd=:
553
554
555
556
557
558 # Check that we have a working $ECHO.
559 if test "X$1" = X--no-reexec; then
560 # Discard the --no-reexec flag, and continue.
561 shift
562 elif test "X$1" = X--fallback-echo; then
563 # Avoid inline document here, it may be left over
564 :
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
567 :
568 else
569 # Restart under the correct shell, and then maybe $ECHO will work.
570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
571 fi
572
573 if test "X$1" = X--fallback-echo; then
574 # used as fallback echo
575 shift
576 cat <<EOF
577 $*
578 EOF
579 exit $EXIT_SUCCESS
580 fi
581
582 magic="%%%MAGIC variable%%%"
583 magic_exe="%%%MAGIC EXE variable%%%"
584
585 # Global variables.
586 # $mode is unset
587 nonopt=
588 execute_dlfiles=
589 preserve_args=
590 lo2o="s/\\.lo\$/.${objext}/"
591 o2lo="s/\\.${objext}\$/.lo/"
592 extracted_archives=
593 extracted_serial=0
594
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600 # If this variable is set in any of the actions, the command in it
601 # will be execed at the end. This prevents here-documents from being
602 # left over by shells.
603 exec_cmd=
604
605 # func_fatal_configuration arg...
606 # Echo program name prefixed message to standard error, followed by
607 # a configuration failure hint, and exit.
608 func_fatal_configuration ()
609 {
610 func_error ${1+"$@"}
611 func_error "See the $PACKAGE documentation for more information."
612 func_fatal_error "Fatal configuration error."
613 }
614
615
616 # func_config
617 # Display the configuration for all the tags in this script.
618 func_config ()
619 {
620 re_begincf='^# ### BEGIN LIBTOOL'
621 re_endcf='^# ### END LIBTOOL'
622
623 # Default configuration.
624 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
625
626 # Now print the configurations for the tags.
627 for tagname in $taglist; do
628 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
629 done
630
631 exit $?
632 }
633
634 # func_features
635 # Display the features supported by this script.
636 func_features ()
637 {
638 $ECHO "host: $host"
639 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
641 else
642 $ECHO "disable shared libraries"
643 fi
644 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
646 else
647 $ECHO "disable static libraries"
648 fi
649
650 exit $?
651 }
652
653 # func_enable_tag tagname
654 # Verify that TAGNAME is valid, and either flag an error and exit, or
655 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
656 # variable here.
657 func_enable_tag ()
658 {
659 # Global variable:
660 tagname="$1"
661
662 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
663 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
664 sed_extractcf="/$re_begincf/,/$re_endcf/p"
665
666 # Validate tagname.
667 case $tagname in
668 *[!-_A-Za-z0-9,/]*)
669 func_fatal_error "invalid tag name: $tagname"
670 ;;
671 esac
672
673 # Don't test for the "default" C tag, as we know it's
674 # there but not specially marked.
675 case $tagname in
676 CC) ;;
677 *)
678 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
679 taglist="$taglist $tagname"
680
681 # Evaluate the configuration. Be careful to quote the path
682 # and the sed script, to avoid splitting on whitespace, but
683 # also don't use non-portable quotes within backquotes within
684 # quotes we have to do it in 2 steps:
685 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
686 eval "$extractedcf"
687 else
688 func_error "ignoring unknown tag $tagname"
689 fi
690 ;;
691 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819 }
820
821 # func_check_version_match
822 # Ensure that we are using m4 macros, and libtool script from the same
823 # release of libtool.
824 func_check_version_match ()
825 {
826 if test "$package_revision" != "$macro_revision"; then
827 if test "$VERSION" != "$macro_version"; then
828 if test -z "$macro_version"; then
829 cat >&2 <<_LT_EOF
830 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
831 $progname: definition of this LT_INIT comes from an older release.
832 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
833 $progname: and run autoconf again.
834 _LT_EOF
835 else
836 cat >&2 <<_LT_EOF
837 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
838 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
839 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
840 $progname: and run autoconf again.
841 _LT_EOF
842 fi
843 else
844 cat >&2 <<_LT_EOF
845 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
846 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
847 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
848 $progname: of $PACKAGE $VERSION and run autoconf again.
849 _LT_EOF
850 fi
851
852 exit $EXIT_MISMATCH
853 fi
854 }
855
856
857 ## ----------- ##
858 ## Main. ##
859 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
888
889 # func_lalib_p file
890 # True iff FILE is a libtool `.la' library or `.lo' object file.
891 # This function is only a basic sanity check; it will hardly flush out
892 # determined imposters.
893 func_lalib_p ()
894 {
895 $SED -e 4q "$1" 2>/dev/null \
896 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
897 }
898
899 # func_lalib_unsafe_p file
900 # True iff FILE is a libtool `.la' library or `.lo' object file.
901 # This function implements the same check as func_lalib_p without
902 # resorting to external programs. To this end, it redirects stdin and
903 # closes it afterwards, without saving the original file descriptor.
904 # As a safety measure, use it only where a negative result would be
905 # fatal anyway. Works if `file' does not exist.
906 func_lalib_unsafe_p ()
907 {
908 lalib_p=no
909 if test -r "$1" && exec 5<&0 <"$1"; then
910 for lalib_p_l in 1 2 3 4
911 do
912 read lalib_p_line
913 case "$lalib_p_line" in
914 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
915 esac
916 done
917 exec 0<&5 5<&-
918 fi
919 test "$lalib_p" = yes
920 }
921
922 # func_ltwrapper_script_p file
923 # True iff FILE is a libtool wrapper script
924 # This function is only a basic sanity check; it will hardly flush out
925 # determined imposters.
926 func_ltwrapper_script_p ()
927 {
928 func_lalib_p "$1"
929 }
930
931 # func_ltwrapper_executable_p file
932 # True iff FILE is a libtool wrapper executable
933 # This function is only a basic sanity check; it will hardly flush out
934 # determined imposters.
935 func_ltwrapper_executable_p ()
936 {
937 func_ltwrapper_exec_suffix=
938 case $1 in
939 *.exe) ;;
940 *) func_ltwrapper_exec_suffix=.exe ;;
941 esac
942 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
943 }
944
945 # func_ltwrapper_scriptname file
946 # Assumes file is an ltwrapper_executable
947 # uses $file to determine the appropriate filename for a
948 # temporary ltwrapper_script.
949 func_ltwrapper_scriptname ()
950 {
951 func_ltwrapper_scriptname_result=""
952 if func_ltwrapper_executable_p "$1"; then
953 func_dirname_and_basename "$1" "" "."
954 func_stripname '' '.exe' "$func_basename_result"
955 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
956 fi
957 }
958
959 # func_ltwrapper_p file
960 # True iff FILE is a libtool wrapper script or wrapper executable
961 # This function is only a basic sanity check; it will hardly flush out
962 # determined imposters.
963 func_ltwrapper_p ()
964 {
965 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
966 }
967
968
969 # func_execute_cmds commands fail_cmd
970 # Execute tilde-delimited COMMANDS.
971 # If FAIL_CMD is given, eval that upon failure.
972 # FAIL_CMD may read-access the current command in variable CMD!
973 func_execute_cmds ()
974 {
975 $opt_debug
976 save_ifs=$IFS; IFS='~'
977 for cmd in $1; do
978 IFS=$save_ifs
979 eval cmd=\"$cmd\"
980 func_show_eval "$cmd" "${2-:}"
981 done
982 IFS=$save_ifs
983 }
984
985
986 # func_source file
987 # Source FILE, adding directory component if necessary.
988 # Note that it is not necessary on cygwin/mingw to append a dot to
989 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
990 # behavior happens only for exec(3), not for open(2)! Also, sourcing
991 # `FILE.' does not work on cygwin managed mounts.
992 func_source ()
993 {
994 $opt_debug
995 case $1 in
996 */* | *\\*) . "$1" ;;
997 *) . "./$1" ;;
998 esac
999 }
1000
1001
1002 # func_infer_tag arg
1003 # Infer tagged configuration to use if any are available and
1004 # if one wasn't chosen via the "--tag" command line option.
1005 # Only attempt this if the compiler in the base compile
1006 # command doesn't match the default compiler.
1007 # arg is usually of the form 'gcc ...'
1008 func_infer_tag ()
1009 {
1010 $opt_debug
1011 if test -n "$available_tags" && test -z "$tagname"; then
1012 CC_quoted=
1013 for arg in $CC; do
1014 func_quote_for_eval "$arg"
1015 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1016 done
1017 case $@ in
1018 # Blanks in the command may have been stripped by the calling shell,
1019 # but not from the CC environment variable when configure was run.
1020 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1021 # Blanks at the start of $base_compile will cause this to fail
1022 # if we don't check for them as well.
1023 *)
1024 for z in $available_tags; do
1025 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1026 # Evaluate the configuration.
1027 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1028 CC_quoted=
1029 for arg in $CC; do
1030 # Double-quote args containing other shell metacharacters.
1031 func_quote_for_eval "$arg"
1032 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1033 done
1034 case "$@ " in
1035 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1036 # The compiler in the base compile command matches
1037 # the one in the tagged configuration.
1038 # Assume this is the tagged configuration we want.
1039 tagname=$z
1040 break
1041 ;;
1042 esac
1043 fi
1044 done
1045 # If $tagname still isn't set, then no tagged configuration
1046 # was found and let the user know that the "--tag" command
1047 # line option must be used.
1048 if test -z "$tagname"; then
1049 func_echo "unable to infer tagged configuration"
1050 func_fatal_error "specify a tag with \`--tag'"
1051 # else
1052 # func_verbose "using $tagname tagged configuration"
1053 fi
1054 ;;
1055 esac
1056 fi
1057 }
1058
1059
1060
1061 # func_write_libtool_object output_name pic_name nonpic_name
1062 # Create a libtool object file (analogous to a ".la" file),
1063 # but don't create it if we're doing a dry run.
1064 func_write_libtool_object ()
1065 {
1066 write_libobj=${1}
1067 if test "$build_libtool_libs" = yes; then
1068 write_lobj=\'${2}\'
1069 else
1070 write_lobj=none
1071 fi
1072
1073 if test "$build_old_libs" = yes; then
1074 write_oldobj=\'${3}\'
1075 else
1076 write_oldobj=none
1077 fi
1078
1079 $opt_dry_run || {
1080 cat >${write_libobj}T <<EOF
1081 # $write_libobj - a libtool object file
1082 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1083 #
1084 # Please DO NOT delete this file!
1085 # It is necessary for linking the library.
1086
1087 # Name of the PIC object.
1088 pic_object=$write_lobj
1089
1090 # Name of the non-PIC object
1091 non_pic_object=$write_oldobj
1092
1093 EOF
1094 $MV "${write_libobj}T" "${write_libobj}"
1095 }
1096 }
1097
1098 # func_mode_compile arg...
1099 func_mode_compile ()
1100 {
1101 $opt_debug
1102 # Get the compilation command and the source file.
1103 base_compile=
1104 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1105 suppress_opt=yes
1106 suppress_output=
1107 arg_mode=normal
1108 libobj=
1109 later=
1110 pie_flag=
1111
1112 for arg
1113 do
1114 case $arg_mode in
1115 arg )
1116 # do not "continue". Instead, add this to base_compile
1117 lastarg="$arg"
1118 arg_mode=normal
1119 ;;
1120
1121 target )
1122 libobj="$arg"
1123 arg_mode=normal
1124 continue
1125 ;;
1126
1127 normal )
1128 # Accept any command-line options.
1129 case $arg in
1130 -o)
1131 test -n "$libobj" && \
1132 func_fatal_error "you cannot specify \`-o' more than once"
1133 arg_mode=target
1134 continue
1135 ;;
1136
1137 -pie | -fpie | -fPIE)
1138 pie_flag="$pie_flag $arg"
1139 continue
1140 ;;
1141
1142 -shared | -static | -prefer-pic | -prefer-non-pic)
1143 later="$later $arg"
1144 continue
1145 ;;
1146
1147 -no-suppress)
1148 suppress_opt=no
1149 continue
1150 ;;
1151
1152 -Xcompiler)
1153 arg_mode=arg # the next one goes into the "base_compile" arg list
1154 continue # The current "srcfile" will either be retained or
1155 ;; # replaced later. I would guess that would be a bug.
1156
1157 -Wc,*)
1158 func_stripname '-Wc,' '' "$arg"
1159 args=$func_stripname_result
1160 lastarg=
1161 save_ifs="$IFS"; IFS=','
1162 for arg in $args; do
1163 IFS="$save_ifs"
1164 func_quote_for_eval "$arg"
1165 lastarg="$lastarg $func_quote_for_eval_result"
1166 done
1167 IFS="$save_ifs"
1168 func_stripname ' ' '' "$lastarg"
1169 lastarg=$func_stripname_result
1170
1171 # Add the arguments to base_compile.
1172 base_compile="$base_compile $lastarg"
1173 continue
1174 ;;
1175
1176 *)
1177 # Accept the current argument as the source file.
1178 # The previous "srcfile" becomes the current argument.
1179 #
1180 lastarg="$srcfile"
1181 srcfile="$arg"
1182 ;;
1183 esac # case $arg
1184 ;;
1185 esac # case $arg_mode
1186
1187 # Aesthetically quote the previous argument.
1188 func_quote_for_eval "$lastarg"
1189 base_compile="$base_compile $func_quote_for_eval_result"
1190 done # for arg
1191
1192 case $arg_mode in
1193 arg)
1194 func_fatal_error "you must specify an argument for -Xcompile"
1195 ;;
1196 target)
1197 func_fatal_error "you must specify a target with \`-o'"
1198 ;;
1199 *)
1200 # Get the name of the library object.
1201 test -z "$libobj" && {
1202 func_basename "$srcfile"
1203 libobj="$func_basename_result"
1204 }
1205 ;;
1206 esac
1207
1208 # Recognize several different file suffixes.
1209 # If the user specifies -o file.o, it is replaced with file.lo
1210 case $libobj in
1211 *.[cCFSifmso] | \
1212 *.ada | *.adb | *.ads | *.asm | \
1213 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1214 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
1215 func_xform "$libobj"
1216 libobj=$func_xform_result
1217 ;;
1218 esac
1219
1220 case $libobj in
1221 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
1222 *)
1223 func_fatal_error "cannot determine name of library object from \`$libobj'"
1224 ;;
1225 esac
1226
1227 func_infer_tag $base_compile
1228
1229 for arg in $later; do
1230 case $arg in
1231 -shared)
1232 test "$build_libtool_libs" != yes && \
1233 func_fatal_configuration "can not build a shared library"
1234 build_old_libs=no
1235 continue
1236 ;;
1237
1238 -static)
1239 build_libtool_libs=no
1240 build_old_libs=yes
1241 continue
1242 ;;
1243
1244 -prefer-pic)
1245 pic_mode=yes
1246 continue
1247 ;;
1248
1249 -prefer-non-pic)
1250 pic_mode=no
1251 continue
1252 ;;
1253 esac
1254 done
1255
1256 func_quote_for_eval "$libobj"
1257 test "X$libobj" != "X$func_quote_for_eval_result" \
1258 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
1259 && func_warning "libobj name \`$libobj' may not contain shell special characters."
1260 func_dirname_and_basename "$obj" "/" ""
1261 objname="$func_basename_result"
1262 xdir="$func_dirname_result"
1263 lobj=${xdir}$objdir/$objname
1264
1265 test -z "$base_compile" && \
1266 func_fatal_help "you must specify a compilation command"
1267
1268 # Delete any leftover library objects.
1269 if test "$build_old_libs" = yes; then
1270 removelist="$obj $lobj $libobj ${libobj}T"
1271 else
1272 removelist="$lobj $libobj ${libobj}T"
1273 fi
1274
1275 # On Cygwin there's no "real" PIC flag so we must build both object types
1276 case $host_os in
1277 cygwin* | mingw* | pw32* | os2*)
1278 pic_mode=default
1279 ;;
1280 esac
1281 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
1282 # non-PIC code in shared libraries is not supported
1283 pic_mode=default
1284 fi
1285
1286 # Calculate the filename of the output object if compiler does
1287 # not support -o with -c
1288 if test "$compiler_c_o" = no; then
1289 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
1290 lockfile="$output_obj.lock"
1291 else
1292 output_obj=
1293 need_locks=no
1294 lockfile=
1295 fi
1296
1297 # Lock this critical section if it is needed
1298 # We use this script file to make the link, it avoids creating a new file
1299 if test "$need_locks" = yes; then
1300 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
1301 func_echo "Waiting for $lockfile to be removed"
1302 sleep 2
1303 done
1304 elif test "$need_locks" = warn; then
1305 if test -f "$lockfile"; then
1306 $ECHO "\
1307 *** ERROR, $lockfile exists and contains:
1308 `cat $lockfile 2>/dev/null`
1309
1310 This indicates that another process is trying to use the same
1311 temporary object file, and libtool could not work around it because
1312 your compiler does not support \`-c' and \`-o' together. If you
1313 repeat this compilation, it may succeed, by chance, but you had better
1314 avoid parallel builds (make -j) in this platform, or get a better
1315 compiler."
1316
1317 $opt_dry_run || $RM $removelist
1318 exit $EXIT_FAILURE
1319 fi
1320 removelist="$removelist $output_obj"
1321 $ECHO "$srcfile" > "$lockfile"
1322 fi
1323
1324 $opt_dry_run || $RM $removelist
1325 removelist="$removelist $lockfile"
1326 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
1327
1328 if test -n "$fix_srcfile_path"; then
1329 eval srcfile=\"$fix_srcfile_path\"
1330 fi
1331 func_quote_for_eval "$srcfile"
1332 qsrcfile=$func_quote_for_eval_result
1333
1334 # Only build a PIC object if we are building libtool libraries.
1335 if test "$build_libtool_libs" = yes; then
1336 # Without this assignment, base_compile gets emptied.
1337 fbsd_hideous_sh_bug=$base_compile
1338
1339 if test "$pic_mode" != no; then
1340 command="$base_compile $qsrcfile $pic_flag"
1341 else
1342 # Don't build PIC code
1343 command="$base_compile $qsrcfile"
1344 fi
1345
1346 func_mkdir_p "$xdir$objdir"
1347
1348 if test -z "$output_obj"; then
1349 # Place PIC objects in $objdir
1350 command="$command -o $lobj"
1351 fi
1352
1353 func_show_eval_locale "$command" \
1354 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
1355
1356 if test "$need_locks" = warn &&
1357 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1358 $ECHO "\
1359 *** ERROR, $lockfile contains:
1360 `cat $lockfile 2>/dev/null`
1361
1362 but it should contain:
1363 $srcfile
1364
1365 This indicates that another process is trying to use the same
1366 temporary object file, and libtool could not work around it because
1367 your compiler does not support \`-c' and \`-o' together. If you
1368 repeat this compilation, it may succeed, by chance, but you had better
1369 avoid parallel builds (make -j) in this platform, or get a better
1370 compiler."
1371
1372 $opt_dry_run || $RM $removelist
1373 exit $EXIT_FAILURE
1374 fi
1375
1376 # Just move the object if needed, then go on to compile the next one
1377 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
1378 func_show_eval '$MV "$output_obj" "$lobj"' \
1379 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1380 fi
1381
1382 # Allow error messages only from the first compilation.
1383 if test "$suppress_opt" = yes; then
1384 suppress_output=' >/dev/null 2>&1'
1385 fi
1386 fi
1387
1388 # Only build a position-dependent object if we build old libraries.
1389 if test "$build_old_libs" = yes; then
1390 if test "$pic_mode" != yes; then
1391 # Don't build PIC code
1392 command="$base_compile $qsrcfile$pie_flag"
1393 else
1394 command="$base_compile $qsrcfile $pic_flag"
1395 fi
1396 if test "$compiler_c_o" = yes; then
1397 command="$command -o $obj"
1398 fi
1399
1400 # Suppress compiler output if we already did a PIC compilation.
1401 command="$command$suppress_output"
1402 func_show_eval_locale "$command" \
1403 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
1404
1405 if test "$need_locks" = warn &&
1406 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1407 $ECHO "\
1408 *** ERROR, $lockfile contains:
1409 `cat $lockfile 2>/dev/null`
1410
1411 but it should contain:
1412 $srcfile
1413
1414 This indicates that another process is trying to use the same
1415 temporary object file, and libtool could not work around it because
1416 your compiler does not support \`-c' and \`-o' together. If you
1417 repeat this compilation, it may succeed, by chance, but you had better
1418 avoid parallel builds (make -j) in this platform, or get a better
1419 compiler."
1420
1421 $opt_dry_run || $RM $removelist
1422 exit $EXIT_FAILURE
1423 fi
1424
1425 # Just move the object if needed
1426 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1427 func_show_eval '$MV "$output_obj" "$obj"' \
1428 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1429 fi
1430 fi
1431
1432 $opt_dry_run || {
1433 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
1434
1435 # Unlock the critical section if it was locked
1436 if test "$need_locks" != no; then
1437 removelist=$lockfile
1438 $RM "$lockfile"
1439 fi
1440 }
1441
1442 exit $EXIT_SUCCESS
1443 }
1444
1445 $opt_help || {
1446 test "$mode" = compile && func_mode_compile ${1+"$@"}
1447 }
1448
1449 func_mode_help ()
1450 {
1451 # We need to display help for each of the modes.
1452 case $mode in
1453 "")
1454 # Generic help is extracted from the usage comments
1455 # at the start of this file.
1456 func_help
1457 ;;
1458
1459 clean)
1460 $ECHO \
1461 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
1462
1463 Remove files from the build directory.
1464
1465 RM is the name of the program to use to delete files associated with each FILE
1466 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1467 to RM.
1468
1469 If FILE is a libtool library, object or program, all the files associated
1470 with it are deleted. Otherwise, only FILE itself is deleted using RM."
1471 ;;
1472
1473 compile)
1474 $ECHO \
1475 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
1476
1477 Compile a source file into a libtool library object.
1478
1479 This mode accepts the following additional options:
1480
1481 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
1482 -no-suppress do not suppress compiler output for multiple passes
1483 -prefer-pic try to building PIC objects only
1484 -prefer-non-pic try to building non-PIC objects only
1485 -shared do not build a \`.o' file suitable for static linking
1486 -static only build a \`.o' file suitable for static linking
1487
1488 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1489 from the given SOURCEFILE.
1490
1491 The output file name is determined by removing the directory component from
1492 SOURCEFILE, then substituting the C source code suffix \`.c' with the
1493 library object suffix, \`.lo'."
1494 ;;
1495
1496 execute)
1497 $ECHO \
1498 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
1499
1500 Automatically set library path, then run a program.
1501
1502 This mode accepts the following additional options:
1503
1504 -dlopen FILE add the directory containing FILE to the library path
1505
1506 This mode sets the library path environment variable according to \`-dlopen'
1507 flags.
1508
1509 If any of the ARGS are libtool executable wrappers, then they are translated
1510 into their corresponding uninstalled binary, and any of their required library
1511 directories are added to the library path.
1512
1513 Then, COMMAND is executed, with ARGS as arguments."
1514 ;;
1515
1516 finish)
1517 $ECHO \
1518 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
1519
1520 Complete the installation of libtool libraries.
1521
1522 Each LIBDIR is a directory that contains libtool libraries.
1523
1524 The commands that this mode executes may require superuser privileges. Use
1525 the \`--dry-run' option if you just want to see what would be executed."
1526 ;;
1527
1528 install)
1529 $ECHO \
1530 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
1531
1532 Install executables or libraries.
1533
1534 INSTALL-COMMAND is the installation command. The first component should be
1535 either the \`install' or \`cp' program.
1536
1537 The following components of INSTALL-COMMAND are treated specially:
1538
1539 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1540
1541 The rest of the components are interpreted as arguments to that command (only
1542 BSD-compatible install options are recognized)."
1543 ;;
1544
1545 link)
1546 $ECHO \
1547 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
1548
1549 Link object files or libraries together to form another library, or to
1550 create an executable program.
1551
1552 LINK-COMMAND is a command using the C compiler that you would use to create
1553 a program from several object files.
1554
1555 The following components of LINK-COMMAND are treated specially:
1556
1557 -all-static do not do any dynamic linking at all
1558 -avoid-version do not add a version suffix if possible
1559 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
1560 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
1561 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
1562 -export-symbols SYMFILE
1563 try to export only the symbols listed in SYMFILE
1564 -export-symbols-regex REGEX
1565 try to export only the symbols matching REGEX
1566 -LLIBDIR search LIBDIR for required installed libraries
1567 -lNAME OUTPUT-FILE requires the installed library libNAME
1568 -module build a library that can dlopened
1569 -no-fast-install disable the fast-install mode
1570 -no-install link a not-installable executable
1571 -no-undefined declare that a library does not refer to external symbols
1572 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
1573 -objectlist FILE Use a list of object files found in FILE to specify objects
1574 -precious-files-regex REGEX
1575 don't remove output files matching REGEX
1576 -release RELEASE specify package release information
1577 -rpath LIBDIR the created library will eventually be installed in LIBDIR
1578 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
1579 -shared only do dynamic linking of libtool libraries
1580 -shrext SUFFIX override the standard shared library file extension
1581 -static do not do any dynamic linking of uninstalled libtool libraries
1582 -static-libtool-libs
1583 do not do any dynamic linking of libtool libraries
1584 -version-info CURRENT[:REVISION[:AGE]]
1585 specify library version info [each variable defaults to 0]
1586 -weak LIBNAME declare that the target provides the LIBNAME interface
1587
1588 All other options (arguments beginning with \`-') are ignored.
1589
1590 Every other argument is treated as a filename. Files ending in \`.la' are
1591 treated as uninstalled libtool libraries, other files are standard or library
1592 object files.
1593
1594 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
1595 only library objects (\`.lo' files) may be specified, and \`-rpath' is
1596 required, except when creating a convenience library.
1597
1598 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
1599 using \`ar' and \`ranlib', or on Windows using \`lib'.
1600
1601 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
1602 is created, otherwise an executable program is created."
1603 ;;
1604
1605 uninstall)
1606 $ECHO \
1607 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
1608
1609 Remove libraries from an installation directory.
1610
1611 RM is the name of the program to use to delete files associated with each FILE
1612 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1613 to RM.
1614
1615 If FILE is a libtool library, all the files associated with it are deleted.
1616 Otherwise, only FILE itself is deleted using RM."
1617 ;;
1618
1619 *)
1620 func_fatal_help "invalid operation mode \`$mode'"
1621 ;;
1622 esac
1623
1624 $ECHO
1625 $ECHO "Try \`$progname --help' for more information about other modes."
1626
1627 exit $?
1628 }
1629
1630 # Now that we've collected a possible --mode arg, show help if necessary
1631 $opt_help && func_mode_help
1632
1633
1634 # func_mode_execute arg...
1635 func_mode_execute ()
1636 {
1637 $opt_debug
1638 # The first argument is the command name.
1639 cmd="$nonopt"
1640 test -z "$cmd" && \
1641 func_fatal_help "you must specify a COMMAND"
1642
1643 # Handle -dlopen flags immediately.
1644 for file in $execute_dlfiles; do
1645 test -f "$file" \
1646 || func_fatal_help "\`$file' is not a file"
1647
1648 dir=
1649 case $file in
1650 *.la)
1651 # Check to see that this really is a libtool archive.
1652 func_lalib_unsafe_p "$file" \
1653 || func_fatal_help "\`$lib' is not a valid libtool archive"
1654
1655 # Read the libtool library.
1656 dlname=
1657 library_names=
1658 func_source "$file"
1659
1660 # Skip this library if it cannot be dlopened.
1661 if test -z "$dlname"; then
1662 # Warn if it was a shared library.
1663 test -n "$library_names" && \
1664 func_warning "\`$file' was not linked with \`-export-dynamic'"
1665 continue
1666 fi
1667
1668 func_dirname "$file" "" "."
1669 dir="$func_dirname_result"
1670
1671 if test -f "$dir/$objdir/$dlname"; then
1672 dir="$dir/$objdir"
1673 else
1674 if test ! -f "$dir/$dlname"; then
1675 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
1676 fi
1677 fi
1678 ;;
1679
1680 *.lo)
1681 # Just add the directory containing the .lo file.
1682 func_dirname "$file" "" "."
1683 dir="$func_dirname_result"
1684 ;;
1685
1686 *)
1687 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
1688 continue
1689 ;;
1690 esac
1691
1692 # Get the absolute pathname.
1693 absdir=`cd "$dir" && pwd`
1694 test -n "$absdir" && dir="$absdir"
1695
1696 # Now add the directory to shlibpath_var.
1697 if eval "test -z \"\$$shlibpath_var\""; then
1698 eval "$shlibpath_var=\"\$dir\""
1699 else
1700 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
1701 fi
1702 done
1703
1704 # This variable tells wrapper scripts just to set shlibpath_var
1705 # rather than running their programs.
1706 libtool_execute_magic="$magic"
1707
1708 # Check if any of the arguments is a wrapper script.
1709 args=
1710 for file
1711 do
1712 case $file in
1713 -*) ;;
1714 *)
1715 # Do a test to see if this is really a libtool program.
1716 if func_ltwrapper_script_p "$file"; then
1717 func_source "$file"
1718 # Transform arg to wrapped name.
1719 file="$progdir/$program"
1720 elif func_ltwrapper_executable_p "$file"; then
1721 func_ltwrapper_scriptname "$file"
1722 func_source "$func_ltwrapper_scriptname_result"
1723 # Transform arg to wrapped name.
1724 file="$progdir/$program"
1725 fi
1726 ;;
1727 esac
1728 # Quote arguments (to preserve shell metacharacters).
1729 func_quote_for_eval "$file"
1730 args="$args $func_quote_for_eval_result"
1731 done
1732
1733 if test "X$opt_dry_run" = Xfalse; then
1734 if test -n "$shlibpath_var"; then
1735 # Export the shlibpath_var.
1736 eval "export $shlibpath_var"
1737 fi
1738
1739 # Restore saved environment variables
1740 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1741 do
1742 eval "if test \"\${save_$lt_var+set}\" = set; then
1743 $lt_var=\$save_$lt_var; export $lt_var
1744 else
1745 $lt_unset $lt_var
1746 fi"
1747 done
1748
1749 # Now prepare to actually exec the command.
1750 exec_cmd="\$cmd$args"
1751 else
1752 # Display what would be done.
1753 if test -n "$shlibpath_var"; then
1754 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1755 $ECHO "export $shlibpath_var"
1756 fi
1757 $ECHO "$cmd$args"
1758 exit $EXIT_SUCCESS
1759 fi
1760 }
1761
1762 test "$mode" = execute && func_mode_execute ${1+"$@"}
1763
1764
1765 # func_mode_finish arg...
1766 func_mode_finish ()
1767 {
1768 $opt_debug
1769 libdirs="$nonopt"
1770 admincmds=
1771
1772 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1773 for dir
1774 do
1775 libdirs="$libdirs $dir"
1776 done
1777
1778 for libdir in $libdirs; do
1779 if test -n "$finish_cmds"; then
1780 # Do each command in the finish commands.
1781 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
1782 '"$cmd"'"'
1783 fi
1784 if test -n "$finish_eval"; then
1785 # Do the single finish_eval.
1786 eval cmds=\"$finish_eval\"
1787 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
1788 $cmds"
1789 fi
1790 done
1791 fi
1792
1793 # Exit here if they wanted silent mode.
1794 $opt_silent && exit $EXIT_SUCCESS
1795
1796 $ECHO "X----------------------------------------------------------------------" | $Xsed
1797 $ECHO "Libraries have been installed in:"
1798 for libdir in $libdirs; do
1799 $ECHO " $libdir"
1800 done
1801 $ECHO
1802 $ECHO "If you ever happen to want to link against installed libraries"
1803 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1804 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1805 $ECHO "flag during linking and do at least one of the following:"
1806 if test -n "$shlibpath_var"; then
1807 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1808 $ECHO " during execution"
1809 fi
1810 if test -n "$runpath_var"; then
1811 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1812 $ECHO " during linking"
1813 fi
1814 if test -n "$hardcode_libdir_flag_spec"; then
1815 libdir=LIBDIR
1816 eval flag=\"$hardcode_libdir_flag_spec\"
1817
1818 $ECHO " - use the \`$flag' linker flag"
1819 fi
1820 if test -n "$admincmds"; then
1821 $ECHO " - have your system administrator run these commands:$admincmds"
1822 fi
1823 if test -f /etc/ld.so.conf; then
1824 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1825 fi
1826 $ECHO
1827
1828 $ECHO "See any operating system documentation about shared libraries for"
1829 case $host in
1830 solaris2.[6789]|solaris2.1[0-9])
1831 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1832 $ECHO "pages."
1833 ;;
1834 *)
1835 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1836 ;;
1837 esac
1838 $ECHO "X----------------------------------------------------------------------" | $Xsed
1839 exit $EXIT_SUCCESS
1840 }
1841
1842 test "$mode" = finish && func_mode_finish ${1+"$@"}
1843
1844
1845 # func_mode_install arg...
1846 func_mode_install ()
1847 {
1848 $opt_debug
1849 # There may be an optional sh(1) argument at the beginning of
1850 # install_prog (especially on Windows NT).
1851 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
1852 # Allow the use of GNU shtool's install command.
1853 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
1854 # Aesthetically quote it.
1855 func_quote_for_eval "$nonopt"
1856 install_prog="$func_quote_for_eval_result "
1857 arg=$1
1858 shift
1859 else
1860 install_prog=
1861 arg=$nonopt
1862 fi
1863
1864 # The real first argument should be the name of the installation program.
1865 # Aesthetically quote it.
1866 func_quote_for_eval "$arg"
1867 install_prog="$install_prog$func_quote_for_eval_result"
1868
1869 # We need to accept at least all the BSD install flags.
1870 dest=
1871 files=
1872 opts=
1873 prev=
1874 install_type=
1875 isdir=no
1876 stripme=
1877 for arg
1878 do
1879 if test -n "$dest"; then
1880 files="$files $dest"
1881 dest=$arg
1882 continue
1883 fi
1884
1885 case $arg in
1886 -d) isdir=yes ;;
1887 -f)
1888 case " $install_prog " in
1889 *[\\\ /]cp\ *) ;;
1890 *) prev=$arg ;;
1891 esac
1892 ;;
1893 -g | -m | -o)
1894 prev=$arg
1895 ;;
1896 -s)
1897 stripme=" -s"
1898 continue
1899 ;;
1900 -*)
1901 ;;
1902 *)
1903 # If the previous option needed an argument, then skip it.
1904 if test -n "$prev"; then
1905 prev=
1906 else
1907 dest=$arg
1908 continue
1909 fi
1910 ;;
1911 esac
1912
1913 # Aesthetically quote the argument.
1914 func_quote_for_eval "$arg"
1915 install_prog="$install_prog $func_quote_for_eval_result"
1916 done
1917
1918 test -z "$install_prog" && \
1919 func_fatal_help "you must specify an install program"
1920
1921 test -n "$prev" && \
1922 func_fatal_help "the \`$prev' option requires an argument"
1923
1924 if test -z "$files"; then
1925 if test -z "$dest"; then
1926 func_fatal_help "no file or destination specified"
1927 else
1928 func_fatal_help "you must specify a destination"
1929 fi
1930 fi
1931
1932 # Strip any trailing slash from the destination.
1933 func_stripname '' '/' "$dest"
1934 dest=$func_stripname_result
1935
1936 # Check to see that the destination is a directory.
1937 test -d "$dest" && isdir=yes
1938 if test "$isdir" = yes; then
1939 destdir="$dest"
1940 destname=
1941 else
1942 func_dirname_and_basename "$dest" "" "."
1943 destdir="$func_dirname_result"
1944 destname="$func_basename_result"
1945
1946 # Not a directory, so check to see that there is only one file specified.
1947 set dummy $files; shift
1948 test "$#" -gt 1 && \
1949 func_fatal_help "\`$dest' is not a directory"
1950 fi
1951 case $destdir in
1952 [\\/]* | [A-Za-z]:[\\/]*) ;;
1953 *)
1954 for file in $files; do
1955 case $file in
1956 *.lo) ;;
1957 *)
1958 func_fatal_help "\`$destdir' must be an absolute directory name"
1959 ;;
1960 esac
1961 done
1962 ;;
1963 esac
1964
1965 # This variable tells wrapper scripts just to set variables rather
1966 # than running their programs.
1967 libtool_install_magic="$magic"
1968
1969 staticlibs=
1970 future_libdirs=
1971 current_libdirs=
1972 for file in $files; do
1973
1974 # Do each installation.
1975 case $file in
1976 *.$libext)
1977 # Do the static libraries later.
1978 staticlibs="$staticlibs $file"
1979 ;;
1980
1981 *.la)
1982 # Check to see that this really is a libtool archive.
1983 func_lalib_unsafe_p "$file" \
1984 || func_fatal_help "\`$file' is not a valid libtool archive"
1985
1986 library_names=
1987 old_library=
1988 relink_command=
1989 func_source "$file"
1990
1991 # Add the libdir to current_libdirs if it is the destination.
1992 if test "X$destdir" = "X$libdir"; then
1993 case "$current_libdirs " in
1994 *" $libdir "*) ;;
1995 *) current_libdirs="$current_libdirs $libdir" ;;
1996 esac
1997 else
1998 # Note the libdir as a future libdir.
1999 case "$future_libdirs " in
2000 *" $libdir "*) ;;
2001 *) future_libdirs="$future_libdirs $libdir" ;;
2002 esac
2003 fi
2004
2005 func_dirname "$file" "/" ""
2006 dir="$func_dirname_result"
2007 dir="$dir$objdir"
2008
2009 if test -n "$relink_command"; then
2010 # Determine the prefix the user has applied to our future dir.
2011 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2012
2013 # Don't allow the user to place us outside of our expected
2014 # location b/c this prevents finding dependent libraries that
2015 # are installed to the same prefix.
2016 # At present, this check doesn't affect windows .dll's that
2017 # are installed into $libdir/../bin (currently, that works fine)
2018 # but it's something to keep an eye on.
2019 test "$inst_prefix_dir" = "$destdir" && \
2020 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2021
2022 if test -n "$inst_prefix_dir"; then
2023 # Stick the inst_prefix_dir data into the link command.
2024 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2025 else
2026 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2027 fi
2028
2029 func_warning "relinking \`$file'"
2030 func_show_eval "$relink_command" \
2031 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2032 fi
2033
2034 # See the names of the shared library.
2035 set dummy $library_names; shift
2036 if test -n "$1"; then
2037 realname="$1"
2038 shift
2039
2040 srcname="$realname"
2041 test -n "$relink_command" && srcname="$realname"T
2042
2043 # Install the shared library and build the symlinks.
2044 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2045 'exit $?'
2046 tstripme="$stripme"
2047 case $host_os in
2048 cygwin* | mingw* | pw32*)
2049 case $realname in
2050 *.dll.a)
2051 tstripme=""
2052 ;;
2053 esac
2054 ;;
2055 esac
2056 if test -n "$tstripme" && test -n "$striplib"; then
2057 func_show_eval "$striplib $destdir/$realname" 'exit $?'
2058 fi
2059
2060 if test "$#" -gt 0; then
2061 # Delete the old symlinks, and create new ones.
2062 # Try `ln -sf' first, because the `ln' binary might depend on
2063 # the symlink we replace! Solaris /bin/ln does not understand -f,
2064 # so we also need to try rm && ln -s.
2065 for linkname
2066 do
2067 test "$linkname" != "$realname" \
2068 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
2069 done
2070 fi
2071
2072 # Do each command in the postinstall commands.
2073 lib="$destdir/$realname"
2074 func_execute_cmds "$postinstall_cmds" 'exit $?'
2075 fi
2076
2077 # Install the pseudo-library for information purposes.
2078 func_basename "$file"
2079 name="$func_basename_result"
2080 instname="$dir/$name"i
2081 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
2082
2083 # Maybe install the static library, too.
2084 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
2085 ;;
2086
2087 *.lo)
2088 # Install (i.e. copy) a libtool object.
2089
2090 # Figure out destination file name, if it wasn't already specified.
2091 if test -n "$destname"; then
2092 destfile="$destdir/$destname"
2093 else
2094 func_basename "$file"
2095 destfile="$func_basename_result"
2096 destfile="$destdir/$destfile"
2097 fi
2098
2099 # Deduce the name of the destination old-style object file.
2100 case $destfile in
2101 *.lo)
2102 func_lo2o "$destfile"
2103 staticdest=$func_lo2o_result
2104 ;;
2105 *.$objext)
2106 staticdest="$destfile"
2107 destfile=
2108 ;;
2109 *)
2110 func_fatal_help "cannot copy a libtool object to \`$destfile'"
2111 ;;
2112 esac
2113
2114 # Install the libtool object if requested.
2115 test -n "$destfile" && \
2116 func_show_eval "$install_prog $file $destfile" 'exit $?'
2117
2118 # Install the old object if enabled.
2119 if test "$build_old_libs" = yes; then
2120 # Deduce the name of the old-style object file.
2121 func_lo2o "$file"
2122 staticobj=$func_lo2o_result
2123 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
2124 fi
2125 exit $EXIT_SUCCESS
2126 ;;
2127
2128 *)
2129 # Figure out destination file name, if it wasn't already specified.
2130 if test -n "$destname"; then
2131 destfile="$destdir/$destname"
2132 else
2133 func_basename "$file"
2134 destfile="$func_basename_result"
2135 destfile="$destdir/$destfile"
2136 fi
2137
2138 # If the file is missing, and there is a .exe on the end, strip it
2139 # because it is most likely a libtool script we actually want to
2140 # install
2141 stripped_ext=""
2142 case $file in
2143 *.exe)
2144 if test ! -f "$file"; then
2145 func_stripname '' '.exe' "$file"
2146 file=$func_stripname_result
2147 stripped_ext=".exe"
2148 fi
2149 ;;
2150 esac
2151
2152 # Do a test to see if this is really a libtool program.
2153 case $host in
2154 *cygwin*|*mingw*)
2155 if func_ltwrapper_executable_p "$file"; then
2156 func_ltwrapper_scriptname "$file"
2157 wrapper=$func_ltwrapper_scriptname_result
2158 else
2159 func_stripname '' '.exe' "$file"
2160 wrapper=$func_stripname_result
2161 fi
2162 ;;
2163 *)
2164 wrapper=$file
2165 ;;
2166 esac
2167 if func_ltwrapper_script_p "$wrapper"; then
2168 notinst_deplibs=
2169 relink_command=
2170
2171 func_source "$wrapper"
2172
2173 # Check the variables that should have been set.
2174 test -z "$generated_by_libtool_version" && \
2175 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
2176
2177 finalize=yes
2178 for lib in $notinst_deplibs; do
2179 # Check to see that each library is installed.
2180 libdir=
2181 if test -f "$lib"; then
2182 func_source "$lib"
2183 fi
2184 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
2185 if test -n "$libdir" && test ! -f "$libfile"; then
2186 func_warning "\`$lib' has not been installed in \`$libdir'"
2187 finalize=no
2188 fi
2189 done
2190
2191 relink_command=
2192 func_source "$wrapper"
2193
2194 outputname=
2195 if test "$fast_install" = no && test -n "$relink_command"; then
2196 $opt_dry_run || {
2197 if test "$finalize" = yes; then
2198 tmpdir=`func_mktempdir`
2199 func_basename "$file$stripped_ext"
2200 file="$func_basename_result"
2201 outputname="$tmpdir/$file"
2202 # Replace the output file specification.
2203 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
2204
2205 $opt_silent || {
2206 func_quote_for_expand "$relink_command"
2207 eval "func_echo $func_quote_for_expand_result"
2208 }
2209 if eval "$relink_command"; then :
2210 else
2211 func_error "error: relink \`$file' with the above command before installing it"
2212 $opt_dry_run || ${RM}r "$tmpdir"
2213 continue
2214 fi
2215 file="$outputname"
2216 else
2217 func_warning "cannot relink \`$file'"
2218 fi
2219 }
2220 else
2221 # Install the binary that we compiled earlier.
2222 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
2223 fi
2224 fi
2225
2226 # remove .exe since cygwin /usr/bin/install will append another
2227 # one anyway
2228 case $install_prog,$host in
2229 */usr/bin/install*,*cygwin*)
2230 case $file:$destfile in
2231 *.exe:*.exe)
2232 # this is ok
2233 ;;
2234 *.exe:*)
2235 destfile=$destfile.exe
2236 ;;
2237 *:*.exe)
2238 func_stripname '' '.exe' "$destfile"
2239 destfile=$func_stripname_result
2240 ;;
2241 esac
2242 ;;
2243 esac
2244 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
2245 $opt_dry_run || if test -n "$outputname"; then
2246 ${RM}r "$tmpdir"
2247 fi
2248 ;;
2249 esac
2250 done
2251
2252 for file in $staticlibs; do
2253 func_basename "$file"
2254 name="$func_basename_result"
2255
2256 # Set up the ranlib parameters.
2257 oldlib="$destdir/$name"
2258
2259 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
2260
2261 if test -n "$stripme" && test -n "$old_striplib"; then
2262 func_show_eval "$old_striplib $oldlib" 'exit $?'
2263 fi
2264
2265 # Do each command in the postinstall commands.
2266 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
2267 done
2268
2269 test -n "$future_libdirs" && \
2270 func_warning "remember to run \`$progname --finish$future_libdirs'"
2271
2272 if test -n "$current_libdirs"; then
2273 # Maybe just do a dry run.
2274 $opt_dry_run && current_libdirs=" -n$current_libdirs"
2275 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
2276 else
2277 exit $EXIT_SUCCESS
2278 fi
2279 }
2280
2281 test "$mode" = install && func_mode_install ${1+"$@"}
2282
2283
2284 # func_generate_dlsyms outputname originator pic_p
2285 # Extract symbols from dlprefiles and create ${outputname}S.o with
2286 # a dlpreopen symbol table.
2287 func_generate_dlsyms ()
2288 {
2289 $opt_debug
2290 my_outputname="$1"
2291 my_originator="$2"
2292 my_pic_p="${3-no}"
2293 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
2294 my_dlsyms=
2295
2296 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2297 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2298 my_dlsyms="${my_outputname}S.c"
2299 else
2300 func_error "not configured to extract global symbols from dlpreopened files"
2301 fi
2302 fi
2303
2304 if test -n "$my_dlsyms"; then
2305 case $my_dlsyms in
2306 "") ;;
2307 *.c)
2308 # Discover the nlist of each of the dlfiles.
2309 nlist="$output_objdir/${my_outputname}.nm"
2310
2311 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
2312
2313 # Parse the name list into a source file.
2314 func_verbose "creating $output_objdir/$my_dlsyms"
2315
2316 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
2317 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
2318 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
2319
2320 #ifdef __cplusplus
2321 extern \"C\" {
2322 #endif
2323
2324 /* External symbol declarations for the compiler. */\
2325 "
2326
2327 if test "$dlself" = yes; then
2328 func_verbose "generating symbol list for \`$output'"
2329
2330 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
2331
2332 # Add our own program objects to the symbol list.
2333 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2334 for progfile in $progfiles; do
2335 func_verbose "extracting global C symbols from \`$progfile'"
2336 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
2337 done
2338
2339 if test -n "$exclude_expsyms"; then
2340 $opt_dry_run || {
2341 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2342 eval '$MV "$nlist"T "$nlist"'
2343 }
2344 fi
2345
2346 if test -n "$export_symbols_regex"; then
2347 $opt_dry_run || {
2348 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2349 eval '$MV "$nlist"T "$nlist"'
2350 }
2351 fi
2352
2353 # Prepare the list of exported symbols
2354 if test -z "$export_symbols"; then
2355 export_symbols="$output_objdir/$outputname.exp"
2356 $opt_dry_run || {
2357 $RM $export_symbols
2358 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2359 case $host in
2360 *cygwin* | *mingw* )
2361 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2362 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
2363 ;;
2364 esac
2365 }
2366 else
2367 $opt_dry_run || {
2368 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
2369 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
2370 eval '$MV "$nlist"T "$nlist"'
2371 case $host in
2372 *cygwin | *mingw* )
2373 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2374 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
2375 ;;
2376 esac
2377 }
2378 fi
2379 fi
2380
2381 for dlprefile in $dlprefiles; do
2382 func_verbose "extracting global C symbols from \`$dlprefile'"
2383 func_basename "$dlprefile"
2384 name="$func_basename_result"
2385 $opt_dry_run || {
2386 eval '$ECHO ": $name " >> "$nlist"'
2387 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2388 }
2389 done
2390
2391 $opt_dry_run || {
2392 # Make sure we have at least an empty file.
2393 test -f "$nlist" || : > "$nlist"
2394
2395 if test -n "$exclude_expsyms"; then
2396 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2397 $MV "$nlist"T "$nlist"
2398 fi
2399
2400 # Try sorting and uniquifying the output.
2401 if $GREP -v "^: " < "$nlist" |
2402 if sort -k 3 </dev/null >/dev/null 2>&1; then
2403 sort -k 3
2404 else
2405 sort +2
2406 fi |
2407 uniq > "$nlist"S; then
2408 :
2409 else
2410 $GREP -v "^: " < "$nlist" > "$nlist"S
2411 fi
2412
2413 if test -f "$nlist"S; then
2414 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
2415 else
2416 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
2417 fi
2418
2419 $ECHO >> "$output_objdir/$my_dlsyms" "\
2420
2421 /* The mapping between symbol names and symbols. */
2422 typedef struct {
2423 const char *name;
2424 void *address;
2425 } lt_dlsymlist;
2426 "
2427 case $host in
2428 *cygwin* | *mingw* )
2429 $ECHO >> "$output_objdir/$my_dlsyms" "\
2430 /* DATA imports from DLLs on WIN32 con't be const, because
2431 runtime relocations are performed -- see ld's documentation
2432 on pseudo-relocs. */"
2433 lt_dlsym_const= ;;
2434 *osf5*)
2435 echo >> "$output_objdir/$my_dlsyms" "\
2436 /* This system does not cope well with relocations in const data */"
2437 lt_dlsym_const= ;;
2438 *)
2439 lt_dlsym_const=const ;;
2440 esac
2441
2442 $ECHO >> "$output_objdir/$my_dlsyms" "\
2443 extern $lt_dlsym_const lt_dlsymlist
2444 lt_${my_prefix}_LTX_preloaded_symbols[];
2445 $lt_dlsym_const lt_dlsymlist
2446 lt_${my_prefix}_LTX_preloaded_symbols[] =
2447 {\
2448 { \"$my_originator\", (void *) 0 },"
2449
2450 case $need_lib_prefix in
2451 no)
2452 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
2453 ;;
2454 *)
2455 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
2456 ;;
2457 esac
2458 $ECHO >> "$output_objdir/$my_dlsyms" "\
2459 {0, (void *) 0}
2460 };
2461
2462 /* This works around a problem in FreeBSD linker */
2463 #ifdef FREEBSD_WORKAROUND
2464 static const void *lt_preloaded_setup() {
2465 return lt_${my_prefix}_LTX_preloaded_symbols;
2466 }
2467 #endif
2468
2469 #ifdef __cplusplus
2470 }
2471 #endif\
2472 "
2473 } # !$opt_dry_run
2474
2475 pic_flag_for_symtable=
2476 case "$compile_command " in
2477 *" -static "*) ;;
2478 *)
2479 case $host in
2480 # compiling the symbol table file with pic_flag works around
2481 # a FreeBSD bug that causes programs to crash when -lm is
2482 # linked before any other PIC object. But we must not use
2483 # pic_flag when linking with -static. The problem exists in
2484 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2485 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
2486 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
2487 *-*-hpux*)
2488 pic_flag_for_symtable=" $pic_flag" ;;
2489 *)
2490 if test "X$my_pic_p" != Xno; then
2491 pic_flag_for_symtable=" $pic_flag"
2492 fi
2493 ;;
2494 esac
2495 ;;
2496 esac
2497 symtab_cflags=
2498 for arg in $LTCFLAGS; do
2499 case $arg in
2500 -pie | -fpie | -fPIE) ;;
2501 *) symtab_cflags="$symtab_cflags $arg" ;;
2502 esac
2503 done
2504
2505 # Now compile the dynamic symbol file.
2506 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
2507
2508 # Clean up the generated files.
2509 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
2510
2511 # Transform the symbol file into the correct name.
2512 symfileobj="$output_objdir/${my_outputname}S.$objext"
2513 case $host in
2514 *cygwin* | *mingw* )
2515 if test -f "$output_objdir/$my_outputname.def"; then
2516 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2517 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 else
2519 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2520 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 fi
2522 ;;
2523 *)
2524 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2525 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 ;;
2527 esac
2528 ;;
2529 *)
2530 func_fatal_error "unknown suffix for \`$my_dlsyms'"
2531 ;;
2532 esac
2533 else
2534 # We keep going just in case the user didn't refer to
2535 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2536 # really was required.
2537
2538 # Nullify the symbol file.
2539 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2540 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 fi
2542 }
2543
2544 # func_win32_libid arg
2545 # return the library type of file 'arg'
2546 #
2547 # Need a lot of goo to handle *both* DLLs and import libs
2548 # Has to be a shell function in order to 'eat' the argument
2549 # that is supplied when $file_magic_command is called.
2550 func_win32_libid ()
2551 {
2552 $opt_debug
2553 win32_libid_type="unknown"
2554 win32_fileres=`file -L $1 2>/dev/null`
2555 case $win32_fileres in
2556 *ar\ archive\ import\ library*) # definitely import
2557 win32_libid_type="x86 archive import"
2558 ;;
2559 *ar\ archive*) # could be an import, or static
2560 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2561 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2562 win32_nmres=`eval $NM -f posix -A $1 |
2563 $SED -n -e '
2564 1,100{
2565 / I /{
2566 s,.*,import,
2567 p
2568 q
2569 }
2570 }'`
2571 case $win32_nmres in
2572 import*) win32_libid_type="x86 archive import";;
2573 *) win32_libid_type="x86 archive static";;
2574 esac
2575 fi
2576 ;;
2577 *DLL*)
2578 win32_libid_type="x86 DLL"
2579 ;;
2580 *executable*) # but shell scripts are "executable" too...
2581 case $win32_fileres in
2582 *MS\ Windows\ PE\ Intel*)
2583 win32_libid_type="x86 DLL"
2584 ;;
2585 esac
2586 ;;
2587 esac
2588 $ECHO "$win32_libid_type"
2589 }
2590
2591
2592
2593 # func_extract_an_archive dir oldlib
2594 func_extract_an_archive ()
2595 {
2596 $opt_debug
2597 f_ex_an_ar_dir="$1"; shift
2598 f_ex_an_ar_oldlib="$1"
2599 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
2600 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
2601 :
2602 else
2603 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
2604 fi
2605 }
2606
2607
2608 # func_extract_archives gentop oldlib ...
2609 func_extract_archives ()
2610 {
2611 $opt_debug
2612 my_gentop="$1"; shift
2613 my_oldlibs=${1+"$@"}
2614 my_oldobjs=""
2615 my_xlib=""
2616 my_xabs=""
2617 my_xdir=""
2618
2619 for my_xlib in $my_oldlibs; do
2620 # Extract the objects.
2621 case $my_xlib in
2622 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
2623 *) my_xabs=`pwd`"/$my_xlib" ;;
2624 esac
2625 func_basename "$my_xlib"
2626 my_xlib="$func_basename_result"
2627 my_xlib_u=$my_xlib
2628 while :; do
2629 case " $extracted_archives " in
2630 *" $my_xlib_u "*)
2631 func_arith $extracted_serial + 1
2632 extracted_serial=$func_arith_result
2633 my_xlib_u=lt$extracted_serial-$my_xlib ;;
2634 *) break ;;
2635 esac
2636 done
2637 extracted_archives="$extracted_archives $my_xlib_u"
2638 my_xdir="$my_gentop/$my_xlib_u"
2639
2640 func_mkdir_p "$my_xdir"
2641
2642 case $host in
2643 *-darwin*)
2644 func_verbose "Extracting $my_xabs"
2645 # Do not bother doing anything if just a dry run
2646 $opt_dry_run || {
2647 darwin_orig_dir=`pwd`
2648 cd $my_xdir || exit $?
2649 darwin_archive=$my_xabs
2650 darwin_curdir=`pwd`
2651 darwin_base_archive=`basename "$darwin_archive"`
2652 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
2653 if test -n "$darwin_arches"; then
2654 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
2655 darwin_arch=
2656 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
2657 for darwin_arch in $darwin_arches ; do
2658 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2659 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
2660 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2661 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
2662 cd "$darwin_curdir"
2663 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
2664 done # $darwin_arches
2665 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
2666 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
2667 darwin_file=
2668 darwin_files=
2669 for darwin_file in $darwin_filelist; do
2670 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
2671 $LIPO -create -output "$darwin_file" $darwin_files
2672 done # $darwin_filelist
2673 $RM -rf unfat-$$
2674 cd "$darwin_orig_dir"
2675 else
2676 cd $darwin_orig_dir
2677 func_extract_an_archive "$my_xdir" "$my_xabs"
2678 fi # $darwin_arches
2679 } # !$opt_dry_run
2680 ;;
2681 *)
2682 func_extract_an_archive "$my_xdir" "$my_xabs"
2683 ;;
2684 esac
2685 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
2686 done
2687
2688 func_extract_archives_result="$my_oldobjs"
2689 }
2690
2691
2692
2693 # func_emit_wrapper arg
2694 #
2695 # emit a libtool wrapper script on stdout
2696 # don't directly open a file because we may want to
2697 # incorporate the script contents within a cygwin/mingw
2698 # wrapper executable. Must ONLY be called from within
2699 # func_mode_link because it depends on a number of variable
2700 # set therein.
2701 #
2702 # arg is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
2703 # variable will take. If 'yes', then the emitted script
2704 # will assume that the directory in which it is stored is
2705 # the '.lib' directory. This is a cygwin/mingw-specific
2706 # behavior.
2707 func_emit_wrapper ()
2708 {
2709 func_emit_wrapper_arg1=no
2710 if test -n "$1" ; then
2711 func_emit_wrapper_arg1=$1
2712 fi
2713
2714 $ECHO "\
2715 #! $SHELL
2716
2717 # $output - temporary wrapper script for $objdir/$outputname
2718 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2719 #
2720 # The $output program cannot be directly executed until all the libtool
2721 # libraries that it depends on are installed.
2722 #
2723 # This wrapper script should never be moved out of the build directory.
2724 # If it is, it will not operate correctly.
2725
2726 # Sed substitution that helps us do robust quoting. It backslashifies
2727 # metacharacters that are still active within double-quoted strings.
2728 Xsed='${SED} -e 1s/^X//'
2729 sed_quote_subst='$sed_quote_subst'
2730
2731 # Be Bourne compatible
2732 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2733 emulate sh
2734 NULLCMD=:
2735 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2736 # is contrary to our usage. Disable this feature.
2737 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2738 setopt NO_GLOB_SUBST
2739 else
2740 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2741 fi
2742 BIN_SH=xpg4; export BIN_SH # for Tru64
2743 DUALCASE=1; export DUALCASE # for MKS sh
2744
2745 # The HP-UX ksh and POSIX shell print the target directory to stdout
2746 # if CDPATH is set.
2747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2748
2749 relink_command=\"$relink_command\"
2750
2751 # This environment variable determines our operation mode.
2752 if test \"\$libtool_install_magic\" = \"$magic\"; then
2753 # install mode needs the following variables:
2754 generated_by_libtool_version='$macro_version'
2755 notinst_deplibs='$notinst_deplibs'
2756 else
2757 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2758 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2759 ECHO=\"$qecho\"
2760 file=\"\$0\"
2761 # Make sure echo works.
2762 if test \"X\$1\" = X--no-reexec; then
2763 # Discard the --no-reexec flag, and continue.
2764 shift
2765 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2766 # Yippee, \$ECHO works!
2767 :
2768 else
2769 # Restart under the correct shell, and then maybe \$ECHO will work.
2770 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2771 fi
2772 fi\
2773 "
2774 $ECHO "\
2775
2776 # Find the directory that this script lives in.
2777 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2778 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2779
2780 # Follow symbolic links until we get to the real thisdir.
2781 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2782 while test -n \"\$file\"; do
2783 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2784
2785 # If there was a directory component, then change thisdir.
2786 if test \"x\$destdir\" != \"x\$file\"; then
2787 case \"\$destdir\" in
2788 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2789 *) thisdir=\"\$thisdir/\$destdir\" ;;
2790 esac
2791 fi
2792
2793 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2794 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2795 done
2796
2797 # Usually 'no', except on cygwin/mingw when embedded into
2798 # the cwrapper.
2799 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
2800 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2801 # special case for '.'
2802 if test \"\$thisdir\" = \".\"; then
2803 thisdir=\`pwd\`
2804 fi
2805 # remove .libs from thisdir
2806 case \"\$thisdir\" in
2807 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2808 $objdir ) thisdir=. ;;
2809 esac
2810 fi
2811
2812 # Try to get the absolute directory name.
2813 absdir=\`cd \"\$thisdir\" && pwd\`
2814 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2815 "
2816
2817 if test "$fast_install" = yes; then
2818 $ECHO "\
2819 program=lt-'$outputname'$exeext
2820 progdir=\"\$thisdir/$objdir\"
2821
2822 if test ! -f \"\$progdir/\$program\" ||
2823 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2824 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2825
2826 file=\"\$\$-\$program\"
2827
2828 if test ! -d \"\$progdir\"; then
2829 $MKDIR \"\$progdir\"
2830 else
2831 $RM \"\$progdir/\$file\"
2832 fi"
2833
2834 $ECHO "\
2835
2836 # relink executable if necessary
2837 if test -n \"\$relink_command\"; then
2838 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2839 else
2840 $ECHO \"\$relink_command_output\" >&2
2841 $RM \"\$progdir/\$file\"
2842 exit 1
2843 fi
2844 fi
2845
2846 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2847 { $RM \"\$progdir/\$program\";
2848 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2849 $RM \"\$progdir/\$file\"
2850 fi"
2851 else
2852 $ECHO "\
2853 program='$outputname'
2854 progdir=\"\$thisdir/$objdir\"
2855 "
2856 fi
2857
2858 $ECHO "\
2859
2860 if test -f \"\$progdir/\$program\"; then"
2861
2862 # Export our shlibpath_var if we have one.
2863 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2864 $ECHO "\
2865 # Add our own library path to $shlibpath_var
2866 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2867
2868 # Some systems cannot cope with colon-terminated $shlibpath_var
2869 # The second colon is a workaround for a bug in BeOS R4 sed
2870 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2871
2872 export $shlibpath_var
2873 "
2874 fi
2875
2876 # fixup the dll searchpath if we need to.
2877 if test -n "$dllsearchpath"; then
2878 $ECHO "\
2879 # Add the dll search path components to the executable PATH
2880 PATH=$dllsearchpath:\$PATH
2881 "
2882 fi
2883
2884 $ECHO "\
2885 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2886 # Run the actual program with our arguments.
2887 "
2888 case $host in
2889 # Backslashes separate directories on plain windows
2890 *-*-mingw | *-*-os2*)
2891 $ECHO "\
2892 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2893 "
2894 ;;
2895
2896 *)
2897 $ECHO "\
2898 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2899 "
2900 ;;
2901 esac
2902 $ECHO "\
2903 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2904 exit 1
2905 fi
2906 else
2907 # The program doesn't exist.
2908 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2909 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2910 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2911 exit 1
2912 fi
2913 fi\
2914 "
2915 }
2916 # end: func_emit_wrapper
2917
2918 # func_emit_cwrapperexe_src
2919 # emit the source code for a wrapper executable on stdout
2920 # Must ONLY be called from within func_mode_link because
2921 # it depends on a number of variable set therein.
2922 func_emit_cwrapperexe_src ()
2923 {
2924 cat <<EOF
2925
2926 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
2927 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2928
2929 The $output program cannot be directly executed until all the libtool
2930 libraries that it depends on are installed.
2931
2932 This wrapper executable should never be moved out of the build directory.
2933 If it is, it will not operate correctly.
2934
2935 Currently, it simply execs the wrapper *script* "$SHELL $output",
2936 but could eventually absorb all of the scripts functionality and
2937 exec $objdir/$outputname directly.
2938 */
2939 EOF
2940 cat <<"EOF"
2941 #include <stdio.h>
2942 #include <stdlib.h>
2943 #ifdef _MSC_VER
2944 # include <direct.h>
2945 # include <process.h>
2946 # include <io.h>
2947 # define setmode _setmode
2948 #else
2949 # include <unistd.h>
2950 # include <stdint.h>
2951 # ifdef __CYGWIN__
2952 # include <io.h>
2953 # endif
2954 #endif
2955 #include <malloc.h>
2956 #include <stdarg.h>
2957 #include <assert.h>
2958 #include <string.h>
2959 #include <ctype.h>
2960 #include <errno.h>
2961 #include <fcntl.h>
2962 #include <sys/stat.h>
2963
2964 #if defined(PATH_MAX)
2965 # define LT_PATHMAX PATH_MAX
2966 #elif defined(MAXPATHLEN)
2967 # define LT_PATHMAX MAXPATHLEN
2968 #else
2969 # define LT_PATHMAX 1024
2970 #endif
2971
2972 #ifndef S_IXOTH
2973 # define S_IXOTH 0
2974 #endif
2975 #ifndef S_IXGRP
2976 # define S_IXGRP 0
2977 #endif
2978
2979 #ifdef _MSC_VER
2980 # define S_IXUSR _S_IEXEC
2981 # define stat _stat
2982 # ifndef _INTPTR_T_DEFINED
2983 # define intptr_t int
2984 # endif
2985 #endif
2986
2987 #ifndef DIR_SEPARATOR
2988 # define DIR_SEPARATOR '/'
2989 # define PATH_SEPARATOR ':'
2990 #endif
2991
2992 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
2993 defined (__OS2__)
2994 # define HAVE_DOS_BASED_FILE_SYSTEM
2995 # define FOPEN_WB "wb"
2996 # ifndef DIR_SEPARATOR_2
2997 # define DIR_SEPARATOR_2 '\\'
2998 # endif
2999 # ifndef PATH_SEPARATOR_2
3000 # define PATH_SEPARATOR_2 ';'
3001 # endif
3002 #endif
3003
3004 #ifndef DIR_SEPARATOR_2
3005 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
3006 #else /* DIR_SEPARATOR_2 */
3007 # define IS_DIR_SEPARATOR(ch) \
3008 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
3009 #endif /* DIR_SEPARATOR_2 */
3010
3011 #ifndef PATH_SEPARATOR_2
3012 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
3013 #else /* PATH_SEPARATOR_2 */
3014 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
3015 #endif /* PATH_SEPARATOR_2 */
3016
3017 #ifdef __CYGWIN__
3018 # define FOPEN_WB "wb"
3019 #endif
3020
3021 #ifndef FOPEN_WB
3022 # define FOPEN_WB "w"
3023 #endif
3024 #ifndef _O_BINARY
3025 # define _O_BINARY 0
3026 #endif
3027
3028 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
3029 #define XFREE(stale) do { \
3030 if (stale) { free ((void *) stale); stale = 0; } \
3031 } while (0)
3032
3033 #undef LTWRAPPER_DEBUGPRINTF
3034 #if defined DEBUGWRAPPER
3035 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3036 static void
3037 ltwrapper_debugprintf (const char *fmt, ...)
3038 {
3039 va_list args;
3040 va_start (args, fmt);
3041 (void) vfprintf (stderr, fmt, args);
3042 va_end (args);
3043 }
3044 #else
3045 # define LTWRAPPER_DEBUGPRINTF(args)
3046 #endif
3047
3048 const char *program_name = NULL;
3049
3050 void *xmalloc (size_t num);
3051 char *xstrdup (const char *string);
3052 const char *base_name (const char *name);
3053 char *find_executable (const char *wrapper);
3054 char *chase_symlinks (const char *pathspec);
3055 int make_executable (const char *path);
3056 int check_executable (const char *path);
3057 char *strendzap (char *str, const char *pat);
3058 void lt_fatal (const char *message, ...);
3059
3060 static const char *script_text =
3061 EOF
3062
3063 func_emit_wrapper yes |
3064 $SED -e 's/\([\\"]\)/\\\1/g' \
3065 -e 's/^/ "/' -e 's/$/\\n"/'
3066 echo ";"
3067
3068 cat <<EOF
3069 const char * MAGIC_EXE = "$magic_exe";
3070
3071 int
3072 main (int argc, char *argv[])
3073 {
3074 char **newargz;
3075 char *tmp_pathspec;
3076 char *actual_cwrapper_path;
3077 char *shwrapper_name;
3078 intptr_t rval = 127;
3079 FILE *shwrapper;
3080
3081 const char *dumpscript_opt = "--lt-dump-script";
3082 int i;
3083
3084 program_name = (char *) xstrdup (base_name (argv[0]));
3085 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3086 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3087
3088 /* very simple arg parsing; don't want to rely on getopt */
3089 for (i = 1; i < argc; i++)
3090 {
3091 if (strcmp (argv[i], dumpscript_opt) == 0)
3092 {
3093 EOF
3094 case "$host" in
3095 *mingw* | *cygwin* )
3096 # make stdout use "unix" line endings
3097 echo " setmode(1,_O_BINARY);"
3098 ;;
3099 esac
3100
3101 cat <<EOF
3102 printf ("%s", script_text);
3103 return 0;
3104 }
3105 }
3106
3107 newargz = XMALLOC (char *, argc + 2);
3108 EOF
3109
3110 if test -n "$TARGETSHELL" ; then
3111 # no path translation at all
3112 lt_newargv0=$TARGETSHELL
3113 else
3114 case "$host" in
3115 *mingw* )
3116 # awkward: cmd appends spaces to result
3117 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3118 lt_newargv0=`( cmd //c echo $SHELL | $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo $SHELL`
3119 case $lt_newargv0 in
3120 *.exe | *.EXE) ;;
3121 *) lt_newargv0=$lt_newargv0.exe ;;
3122 esac
3123 ;;
3124 * ) lt_newargv0=$SHELL ;;
3125 esac
3126 fi
3127
3128 cat <<EOF
3129 newargz[0] = (char *) xstrdup ("$lt_newargv0");
3130 EOF
3131
3132 cat <<"EOF"
3133 tmp_pathspec = find_executable (argv[0]);
3134 if (tmp_pathspec == NULL)
3135 lt_fatal ("Couldn't find %s", argv[0]);
3136 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3137 tmp_pathspec));
3138
3139 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3140 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3141 actual_cwrapper_path));
3142 XFREE (tmp_pathspec);
3143
3144 shwrapper_name = (char *) xstrdup (base_name (actual_cwrapper_path));
3145 strendzap (actual_cwrapper_path, shwrapper_name);
3146
3147 /* shwrapper_name transforms */
3148 strendzap (shwrapper_name, ".exe");
3149 tmp_pathspec = XMALLOC (char, (strlen (shwrapper_name) +
3150 strlen ("_ltshwrapperTMP") + 1));
3151 strcpy (tmp_pathspec, shwrapper_name);
3152 strcat (tmp_pathspec, "_ltshwrapperTMP");
3153 XFREE (shwrapper_name);
3154 shwrapper_name = tmp_pathspec;
3155 tmp_pathspec = 0;
3156 LTWRAPPER_DEBUGPRINTF (("(main) libtool shell wrapper name: %s\n",
3157 shwrapper_name));
3158 EOF
3159
3160 cat <<EOF
3161 newargz[1] =
3162 XMALLOC (char, (strlen (actual_cwrapper_path) +
3163 strlen ("$objdir") + 1 + strlen (shwrapper_name) + 1));
3164 strcpy (newargz[1], actual_cwrapper_path);
3165 strcat (newargz[1], "$objdir");
3166 strcat (newargz[1], "/");
3167 strcat (newargz[1], shwrapper_name);
3168 EOF
3169
3170
3171 case $host_os in
3172 mingw*)
3173 cat <<"EOF"
3174 {
3175 char* p;
3176 while ((p = strchr (newargz[1], '\\')) != NULL)
3177 {
3178 *p = '/';
3179 }
3180 }
3181 EOF
3182 ;;
3183 esac
3184
3185 cat <<"EOF"
3186 XFREE (shwrapper_name);
3187 XFREE (actual_cwrapper_path);
3188
3189 /* always write in binary mode */
3190 if ((shwrapper = fopen (newargz[1], FOPEN_WB)) == 0)
3191 {
3192 lt_fatal ("Could not open %s for writing", newargz[1]);
3193 }
3194 fprintf (shwrapper, "%s", script_text);
3195 fclose (shwrapper);
3196
3197 make_executable (newargz[1]);
3198
3199 for (i = 1; i < argc; i++)
3200 newargz[i + 1] = xstrdup (argv[i]);
3201 newargz[argc + 1] = NULL;
3202
3203 for (i = 0; i < argc + 1; i++)
3204 {
3205 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, newargz[i]));
3206 }
3207
3208 EOF
3209
3210 case $host_os in
3211 mingw*)
3212 cat <<EOF
3213 /* execv doesn't actually work on mingw as expected on unix */
3214 rval = _spawnv (_P_WAIT, "$lt_newargv0", (const char * const *) newargz);
3215 if (rval == -1)
3216 {
3217 /* failed to start process */
3218 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"$lt_newargv0\": errno = %d\n", errno));
3219 return 127;
3220 }
3221 return rval;
3222 }
3223 EOF
3224 ;;
3225 *)
3226 cat <<EOF
3227 execv ("$lt_newargv0", newargz);
3228 return rval; /* =127, but avoids unused variable warning */
3229 }
3230 EOF
3231 ;;
3232 esac
3233
3234 cat <<"EOF"
3235
3236 void *
3237 xmalloc (size_t num)
3238 {
3239 void *p = (void *) malloc (num);
3240 if (!p)
3241 lt_fatal ("Memory exhausted");
3242
3243 return p;
3244 }
3245
3246 char *
3247 xstrdup (const char *string)
3248 {
3249 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
3250 string) : NULL;
3251 }
3252
3253 const char *
3254 base_name (const char *name)
3255 {
3256 const char *base;
3257
3258 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3259 /* Skip over the disk name in MSDOS pathnames. */
3260 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
3261 name += 2;
3262 #endif
3263
3264 for (base = name; *name; name++)
3265 if (IS_DIR_SEPARATOR (*name))
3266 base = name + 1;
3267 return base;
3268 }
3269
3270 int
3271 check_executable (const char *path)
3272 {
3273 struct stat st;
3274
3275 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3276 path ? (*path ? path : "EMPTY!") : "NULL!"));
3277 if ((!path) || (!*path))
3278 return 0;
3279
3280 if ((stat (path, &st) >= 0)
3281 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
3282 return 1;
3283 else
3284 return 0;
3285 }
3286
3287 int
3288 make_executable (const char *path)
3289 {
3290 int rval = 0;
3291 struct stat st;
3292
3293 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3294 path ? (*path ? path : "EMPTY!") : "NULL!"));
3295 if ((!path) || (!*path))
3296 return 0;
3297
3298 if (stat (path, &st) >= 0)
3299 {
3300 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
3301 }
3302 return rval;
3303 }
3304
3305 /* Searches for the full path of the wrapper. Returns
3306 newly allocated full path name if found, NULL otherwise
3307 Does not chase symlinks, even on platforms that support them.
3308 */
3309 char *
3310 find_executable (const char *wrapper)
3311 {
3312 int has_slash = 0;
3313 const char *p;
3314 const char *p_next;
3315 /* static buffer for getcwd */
3316 char tmp[LT_PATHMAX + 1];
3317 int tmp_len;
3318 char *concat_name;
3319
3320 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3321 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
3322
3323 if ((wrapper == NULL) || (*wrapper == '\0'))
3324 return NULL;
3325
3326 /* Absolute path? */
3327 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3328 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
3329 {
3330 concat_name = xstrdup (wrapper);
3331 if (check_executable (concat_name))
3332 return concat_name;
3333 XFREE (concat_name);
3334 }
3335 else
3336 {
3337 #endif
3338 if (IS_DIR_SEPARATOR (wrapper[0]))
3339 {
3340 concat_name = xstrdup (wrapper);
3341 if (check_executable (concat_name))
3342 return concat_name;
3343 XFREE (concat_name);
3344 }
3345 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3346 }
3347 #endif
3348
3349 for (p = wrapper; *p; p++)
3350 if (*p == '/')
3351 {
3352 has_slash = 1;
3353 break;
3354 }
3355 if (!has_slash)
3356 {
3357 /* no slashes; search PATH */
3358 const char *path = getenv ("PATH");
3359 if (path != NULL)
3360 {
3361 for (p = path; *p; p = p_next)
3362 {
3363 const char *q;
3364 size_t p_len;
3365 for (q = p; *q; q++)
3366 if (IS_PATH_SEPARATOR (*q))
3367 break;
3368 p_len = q - p;
3369 p_next = (*q == '\0' ? q : q + 1);
3370 if (p_len == 0)
3371 {
3372 /* empty path: current directory */
3373 if (getcwd (tmp, LT_PATHMAX) == NULL)
3374 lt_fatal ("getcwd failed");
3375 tmp_len = strlen (tmp);
3376 concat_name =
3377 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3378 memcpy (concat_name, tmp, tmp_len);
3379 concat_name[tmp_len] = '/';
3380 strcpy (concat_name + tmp_len + 1, wrapper);
3381 }
3382 else
3383 {
3384 concat_name =
3385 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
3386 memcpy (concat_name, p, p_len);
3387 concat_name[p_len] = '/';
3388 strcpy (concat_name + p_len + 1, wrapper);
3389 }
3390 if (check_executable (concat_name))
3391 return concat_name;
3392 XFREE (concat_name);
3393 }
3394 }
3395 /* not found in PATH; assume curdir */
3396 }
3397 /* Relative path | not found in path: prepend cwd */
3398 if (getcwd (tmp, LT_PATHMAX) == NULL)
3399 lt_fatal ("getcwd failed");
3400 tmp_len = strlen (tmp);
3401 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3402 memcpy (concat_name, tmp, tmp_len);
3403 concat_name[tmp_len] = '/';
3404 strcpy (concat_name + tmp_len + 1, wrapper);
3405
3406 if (check_executable (concat_name))
3407 return concat_name;
3408 XFREE (concat_name);
3409 return NULL;
3410 }
3411
3412 char *
3413 chase_symlinks (const char *pathspec)
3414 {
3415 #ifndef S_ISLNK
3416 return xstrdup (pathspec);
3417 #else
3418 char buf[LT_PATHMAX];
3419 struct stat s;
3420 char *tmp_pathspec = xstrdup (pathspec);
3421 char *p;
3422 int has_symlinks = 0;
3423 while (strlen (tmp_pathspec) && !has_symlinks)
3424 {
3425 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3426 tmp_pathspec));
3427 if (lstat (tmp_pathspec, &s) == 0)
3428 {
3429 if (S_ISLNK (s.st_mode) != 0)
3430 {
3431 has_symlinks = 1;
3432 break;
3433 }
3434
3435 /* search backwards for last DIR_SEPARATOR */
3436 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
3437 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3438 p--;
3439 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3440 {
3441 /* no more DIR_SEPARATORS left */
3442 break;
3443 }
3444 *p = '\0';
3445 }
3446 else
3447 {
3448 char *errstr = strerror (errno);
3449 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
3450 }
3451 }
3452 XFREE (tmp_pathspec);
3453
3454 if (!has_symlinks)
3455 {
3456 return xstrdup (pathspec);
3457 }
3458
3459 tmp_pathspec = realpath (pathspec, buf);
3460 if (tmp_pathspec == 0)
3461 {
3462 lt_fatal ("Could not follow symlinks for %s", pathspec);
3463 }
3464 return xstrdup (tmp_pathspec);
3465 #endif
3466 }
3467
3468 char *
3469 strendzap (char *str, const char *pat)
3470 {
3471 size_t len, patlen;
3472
3473 assert (str != NULL);
3474 assert (pat != NULL);
3475
3476 len = strlen (str);
3477 patlen = strlen (pat);
3478
3479 if (patlen <= len)
3480 {
3481 str += len - patlen;
3482 if (strcmp (str, pat) == 0)
3483 *str = '\0';
3484 }
3485 return str;
3486 }
3487
3488 static void
3489 lt_error_core (int exit_status, const char *mode,
3490 const char *message, va_list ap)
3491 {
3492 fprintf (stderr, "%s: %s: ", program_name, mode);
3493 vfprintf (stderr, message, ap);
3494 fprintf (stderr, ".\n");
3495
3496 if (exit_status >= 0)
3497 exit (exit_status);
3498 }
3499
3500 void
3501 lt_fatal (const char *message, ...)
3502 {
3503 va_list ap;
3504 va_start (ap, message);
3505 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
3506 va_end (ap);
3507 }
3508 EOF
3509 }
3510 # end: func_emit_cwrapperexe_src
3511
3512 # func_mode_link arg...
3513 func_mode_link ()
3514 {
3515 $opt_debug
3516 case $host in
3517 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
3518 # It is impossible to link a dll without this setting, and
3519 # we shouldn't force the makefile maintainer to figure out
3520 # which system we are compiling for in order to pass an extra
3521 # flag for every libtool invocation.
3522 # allow_undefined=no
3523
3524 # FIXME: Unfortunately, there are problems with the above when trying
3525 # to make a dll which has undefined symbols, in which case not
3526 # even a static library is built. For now, we need to specify
3527 # -no-undefined on the libtool link line when we can be certain
3528 # that all symbols are satisfied, otherwise we get a static library.
3529 allow_undefined=yes
3530 ;;
3531 *)
3532 allow_undefined=yes
3533 ;;
3534 esac
3535 libtool_args=$nonopt
3536 base_compile="$nonopt $@"
3537 compile_command=$nonopt
3538 finalize_command=$nonopt
3539
3540 compile_rpath=
3541 finalize_rpath=
3542 compile_shlibpath=
3543 finalize_shlibpath=
3544 convenience=
3545 old_convenience=
3546 deplibs=
3547 old_deplibs=
3548 compiler_flags=
3549 linker_flags=
3550 dllsearchpath=
3551 lib_search_path=`pwd`
3552 inst_prefix_dir=
3553 new_inherited_linker_flags=
3554
3555 avoid_version=no
3556 dlfiles=
3557 dlprefiles=
3558 dlself=no
3559 export_dynamic=no
3560 export_symbols=
3561 export_symbols_regex=
3562 generated=
3563 libobjs=
3564 ltlibs=
3565 module=no
3566 no_install=no
3567 objs=
3568 non_pic_objects=
3569 precious_files_regex=
3570 prefer_static_libs=no
3571 preload=no
3572 prev=
3573 prevarg=
3574 release=
3575 rpath=
3576 xrpath=
3577 perm_rpath=
3578 temp_rpath=
3579 thread_safe=no
3580 vinfo=
3581 vinfo_number=no
3582 weak_libs=
3583 single_module="${wl}-single_module"
3584 func_infer_tag $base_compile
3585
3586 # We need to know -static, to get the right output filenames.
3587 for arg
3588 do
3589 case $arg in
3590 -shared)
3591 test "$build_libtool_libs" != yes && \
3592 func_fatal_configuration "can not build a shared library"
3593 build_old_libs=no
3594 break
3595 ;;
3596 -all-static | -static | -static-libtool-libs)
3597 case $arg in
3598 -all-static)
3599 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
3600 func_warning "complete static linking is impossible in this configuration"
3601 fi
3602 if test -n "$link_static_flag"; then
3603 dlopen_self=$dlopen_self_static
3604 fi
3605 prefer_static_libs=yes
3606 ;;
3607 -static)
3608 if test -z "$pic_flag" && test -n "$link_static_flag"; then
3609 dlopen_self=$dlopen_self_static
3610 fi
3611 prefer_static_libs=built
3612 ;;
3613 -static-libtool-libs)
3614 if test -z "$pic_flag" && test -n "$link_static_flag"; then
3615 dlopen_self=$dlopen_self_static
3616 fi
3617 prefer_static_libs=yes
3618 ;;
3619 esac
3620 build_libtool_libs=no
3621 build_old_libs=yes
3622 break
3623 ;;
3624 esac
3625 done
3626
3627 # See if our shared archives depend on static archives.
3628 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
3629
3630 # Go through the arguments, transforming them on the way.
3631 while test "$#" -gt 0; do
3632 arg="$1"
3633 shift
3634 func_quote_for_eval "$arg"
3635 qarg=$func_quote_for_eval_unquoted_result
3636 func_append libtool_args " $func_quote_for_eval_result"
3637
3638 # If the previous option needs an argument, assign it.
3639 if test -n "$prev"; then
3640 case $prev in
3641 output)
3642 func_append compile_command " @OUTPUT@"
3643 func_append finalize_command " @OUTPUT@"
3644 ;;
3645 esac
3646
3647 case $prev in
3648 dlfiles|dlprefiles)
3649 if test "$preload" = no; then
3650 # Add the symbol object into the linking commands.
3651 func_append compile_command " @SYMFILE@"
3652 func_append finalize_command " @SYMFILE@"
3653 preload=yes
3654 fi
3655 case $arg in
3656 *.la | *.lo) ;; # We handle these cases below.
3657 force)
3658 if test "$dlself" = no; then
3659 dlself=needless
3660 export_dynamic=yes
3661 fi
3662 prev=
3663 continue
3664 ;;
3665 self)
3666 if test "$prev" = dlprefiles; then
3667 dlself=yes
3668 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
3669 dlself=yes
3670 else
3671 dlself=needless
3672 export_dynamic=yes
3673 fi
3674 prev=
3675 continue
3676 ;;
3677 *)
3678 if test "$prev" = dlfiles; then
3679 dlfiles="$dlfiles $arg"
3680 else
3681 dlprefiles="$dlprefiles $arg"
3682 fi
3683 prev=
3684 continue
3685 ;;
3686 esac
3687 ;;
3688 expsyms)
3689 export_symbols="$arg"
3690 test -f "$arg" \
3691 || func_fatal_error "symbol file \`$arg' does not exist"
3692 prev=
3693 continue
3694 ;;
3695 expsyms_regex)
3696 export_symbols_regex="$arg"
3697 prev=
3698 continue
3699 ;;
3700 framework)
3701 case $host in
3702 *-*-darwin*)
3703 case "$deplibs " in
3704 *" $qarg.ltframework "*) ;;
3705 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
3706 ;;
3707 esac
3708 ;;
3709 esac
3710 prev=
3711 continue
3712 ;;
3713 inst_prefix)
3714 inst_prefix_dir="$arg"
3715 prev=
3716 continue
3717 ;;
3718 objectlist)
3719 if test -f "$arg"; then
3720 save_arg=$arg
3721 moreargs=
3722 for fil in `cat "$save_arg"`
3723 do
3724 # moreargs="$moreargs $fil"
3725 arg=$fil
3726 # A libtool-controlled object.
3727
3728 # Check to see that this really is a libtool object.
3729 if func_lalib_unsafe_p "$arg"; then
3730 pic_object=
3731 non_pic_object=
3732
3733 # Read the .lo file
3734 func_source "$arg"
3735
3736 if test -z "$pic_object" ||
3737 test -z "$non_pic_object" ||
3738 test "$pic_object" = none &&
3739 test "$non_pic_object" = none; then
3740 func_fatal_error "cannot find name of object for \`$arg'"
3741 fi
3742
3743 # Extract subdirectory from the argument.
3744 func_dirname "$arg" "/" ""
3745 xdir="$func_dirname_result"
3746
3747 if test "$pic_object" != none; then
3748 # Prepend the subdirectory the object is found in.
3749 pic_object="$xdir$pic_object"
3750
3751 if test "$prev" = dlfiles; then
3752 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
3753 dlfiles="$dlfiles $pic_object"
3754 prev=
3755 continue
3756 else
3757 # If libtool objects are unsupported, then we need to preload.
3758 prev=dlprefiles
3759 fi
3760 fi
3761
3762 # CHECK ME: I think I busted this. -Ossama
3763 if test "$prev" = dlprefiles; then
3764 # Preload the old-style object.
3765 dlprefiles="$dlprefiles $pic_object"
3766 prev=
3767 fi
3768
3769 # A PIC object.
3770 func_append libobjs " $pic_object"
3771 arg="$pic_object"
3772 fi
3773
3774 # Non-PIC object.
3775 if test "$non_pic_object" != none; then
3776 # Prepend the subdirectory the object is found in.
3777 non_pic_object="$xdir$non_pic_object"
3778
3779 # A standard non-PIC object
3780 func_append non_pic_objects " $non_pic_object"
3781 if test -z "$pic_object" || test "$pic_object" = none ; then
3782 arg="$non_pic_object"
3783 fi
3784 else
3785 # If the PIC object exists, use it instead.
3786 # $xdir was prepended to $pic_object above.
3787 non_pic_object="$pic_object"
3788 func_append non_pic_objects " $non_pic_object"
3789 fi
3790 else
3791 # Only an error if not doing a dry-run.
3792 if $opt_dry_run; then
3793 # Extract subdirectory from the argument.
3794 func_dirname "$arg" "/" ""
3795 xdir="$func_dirname_result"
3796
3797 func_lo2o "$arg"
3798 pic_object=$xdir$objdir/$func_lo2o_result
3799 non_pic_object=$xdir$func_lo2o_result
3800 func_append libobjs " $pic_object"
3801 func_append non_pic_objects " $non_pic_object"
3802 else
3803 func_fatal_error "\`$arg' is not a valid libtool object"
3804 fi
3805 fi
3806 done
3807 else
3808 func_fatal_error "link input file \`$arg' does not exist"
3809 fi
3810 arg=$save_arg
3811 prev=
3812 continue
3813 ;;
3814 precious_regex)
3815 precious_files_regex="$arg"
3816 prev=
3817 continue
3818 ;;
3819 release)
3820 release="-$arg"
3821 prev=
3822 continue
3823 ;;
3824 rpath | xrpath)
3825 # We need an absolute path.
3826 case $arg in
3827 [\\/]* | [A-Za-z]:[\\/]*) ;;
3828 *)
3829 func_fatal_error "only absolute run-paths are allowed"
3830 ;;
3831 esac
3832 if test "$prev" = rpath; then
3833 case "$rpath " in
3834 *" $arg "*) ;;
3835 *) rpath="$rpath $arg" ;;
3836 esac
3837 else
3838 case "$xrpath " in
3839 *" $arg "*) ;;
3840 *) xrpath="$xrpath $arg" ;;
3841 esac
3842 fi
3843 prev=
3844 continue
3845 ;;
3846 shrext)
3847 shrext_cmds="$arg"
3848 prev=
3849 continue
3850 ;;
3851 weak)
3852 weak_libs="$weak_libs $arg"
3853 prev=
3854 continue
3855 ;;
3856 xcclinker)
3857 linker_flags="$linker_flags $qarg"
3858 compiler_flags="$compiler_flags $qarg"
3859 prev=
3860 func_append compile_command " $qarg"
3861 func_append finalize_command " $qarg"
3862 continue
3863 ;;
3864 xcompiler)
3865 compiler_flags="$compiler_flags $qarg"
3866 prev=
3867 func_append compile_command " $qarg"
3868 func_append finalize_command " $qarg"
3869 continue
3870 ;;
3871 xlinker)
3872 linker_flags="$linker_flags $qarg"
3873 compiler_flags="$compiler_flags $wl$qarg"
3874 prev=
3875 func_append compile_command " $wl$qarg"
3876 func_append finalize_command " $wl$qarg"
3877 continue
3878 ;;
3879 *)
3880 eval "$prev=\"\$arg\""
3881 prev=
3882 continue
3883 ;;
3884 esac
3885 fi # test -n "$prev"
3886
3887 prevarg="$arg"
3888
3889 case $arg in
3890 -all-static)
3891 if test -n "$link_static_flag"; then
3892 # See comment for -static flag below, for more details.
3893 func_append compile_command " $link_static_flag"
3894 func_append finalize_command " $link_static_flag"
3895 fi
3896 continue
3897 ;;
3898
3899 -allow-undefined)
3900 # FIXME: remove this flag sometime in the future.
3901 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
3902 ;;
3903
3904 -avoid-version)
3905 avoid_version=yes
3906 continue
3907 ;;
3908
3909 -dlopen)
3910 prev=dlfiles
3911 continue
3912 ;;
3913
3914 -dlpreopen)
3915 prev=dlprefiles
3916 continue
3917 ;;
3918
3919 -export-dynamic)
3920 export_dynamic=yes
3921 continue
3922 ;;
3923
3924 -export-symbols | -export-symbols-regex)
3925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3926 func_fatal_error "more than one -exported-symbols argument is not allowed"
3927 fi
3928 if test "X$arg" = "X-export-symbols"; then
3929 prev=expsyms
3930 else
3931 prev=expsyms_regex
3932 fi
3933 continue
3934 ;;
3935
3936 -framework)
3937 prev=framework
3938 continue
3939 ;;
3940
3941 -inst-prefix-dir)
3942 prev=inst_prefix
3943 continue
3944 ;;
3945
3946 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
3947 # so, if we see these flags be careful not to treat them like -L
3948 -L[A-Z][A-Z]*:*)
3949 case $with_gcc/$host in
3950 no/*-*-irix* | /*-*-irix*)
3951 func_append compile_command " $arg"
3952 func_append finalize_command " $arg"
3953 ;;
3954 esac
3955 continue
3956 ;;
3957
3958 -L*)
3959 func_stripname '-L' '' "$arg"
3960 dir=$func_stripname_result
3961 # We need an absolute path.
3962 case $dir in
3963 [\\/]* | [A-Za-z]:[\\/]*) ;;
3964 *)
3965 absdir=`cd "$dir" && pwd`
3966 test -z "$absdir" && \
3967 func_fatal_error "cannot determine absolute directory name of \`$dir'"
3968 dir="$absdir"
3969 ;;
3970 esac
3971 case "$deplibs " in
3972 *" -L$dir "*) ;;
3973 *)
3974 deplibs="$deplibs -L$dir"
3975 lib_search_path="$lib_search_path $dir"
3976 ;;
3977 esac
3978 case $host in
3979 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
3980 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
3981 case :$dllsearchpath: in
3982 *":$dir:"*) ;;
3983 *) dllsearchpath="$dllsearchpath:$dir";;
3984 esac
3985 case :$dllsearchpath: in
3986 *":$testbindir:"*) ;;
3987 *) dllsearchpath="$dllsearchpath:$testbindir";;
3988 esac
3989 ;;
3990 esac
3991 continue
3992 ;;
3993
3994 -l*)
3995 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
3996 case $host in
3997 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
3998 # These systems don't actually have a C or math library (as such)
3999 continue
4000 ;;
4001 *-*-os2*)
4002 # These systems don't actually have a C library (as such)
4003 test "X$arg" = "X-lc" && continue
4004 ;;
4005 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
4006 # Do not include libc due to us having libc/libc_r.
4007 test "X$arg" = "X-lc" && continue
4008 ;;
4009 *-*-rhapsody* | *-*-darwin1.[012])
4010 # Rhapsody C and math libraries are in the System framework
4011 deplibs="$deplibs System.ltframework"
4012 continue
4013 ;;
4014 *-*-sco3.2v5* | *-*-sco5v6*)
4015 # Causes problems with __ctype
4016 test "X$arg" = "X-lc" && continue
4017 ;;
4018 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
4019 # Compiler inserts libc in the correct place for threads to work
4020 test "X$arg" = "X-lc" && continue
4021 ;;
4022 esac
4023 elif test "X$arg" = "X-lc_r"; then
4024 case $host in
4025 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
4026 # Do not include libc_r directly, use -pthread flag.
4027 continue
4028 ;;
4029 esac
4030 fi
4031 deplibs="$deplibs $arg"
4032 continue
4033 ;;
4034
4035 -module)
4036 module=yes
4037 continue
4038 ;;
4039
4040 # Tru64 UNIX uses -model [arg] to determine the layout of C++
4041 # classes, name mangling, and exception handling.
4042 # Darwin uses the -arch flag to determine output architecture.
4043 -model|-arch|-isysroot)
4044 compiler_flags="$compiler_flags $arg"
4045 func_append compile_command " $arg"
4046 func_append finalize_command " $arg"
4047 prev=xcompiler
4048 continue
4049 ;;
4050
4051 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4052 compiler_flags="$compiler_flags $arg"
4053 func_append compile_command " $arg"
4054 func_append finalize_command " $arg"
4055 case "$new_inherited_linker_flags " in
4056 *" $arg "*) ;;
4057 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
4058 esac
4059 continue
4060 ;;
4061
4062 -multi_module)
4063 single_module="${wl}-multi_module"
4064 continue
4065 ;;
4066
4067 -no-fast-install)
4068 fast_install=no
4069 continue
4070 ;;
4071
4072 -no-install)
4073 case $host in
4074 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
4075 # The PATH hackery in wrapper scripts is required on Windows
4076 # and Darwin in order for the loader to find any dlls it needs.
4077 func_warning "\`-no-install' is ignored for $host"
4078 func_warning "assuming \`-no-fast-install' instead"
4079 fast_install=no
4080 ;;
4081 *) no_install=yes ;;
4082 esac
4083 continue
4084 ;;
4085
4086 -no-undefined)
4087 allow_undefined=no
4088 continue
4089 ;;
4090
4091 -objectlist)
4092 prev=objectlist
4093 continue
4094 ;;
4095
4096 -o) prev=output ;;
4097
4098 -precious-files-regex)
4099 prev=precious_regex
4100 continue
4101 ;;
4102
4103 -release)
4104 prev=release
4105 continue
4106 ;;
4107
4108 -rpath)
4109 prev=rpath
4110 continue
4111 ;;
4112
4113 -R)
4114 prev=xrpath
4115 continue
4116 ;;
4117
4118 -R*)
4119 func_stripname '-R' '' "$arg"
4120 dir=$func_stripname_result
4121 # We need an absolute path.
4122 case $dir in
4123 [\\/]* | [A-Za-z]:[\\/]*) ;;
4124 *)
4125 func_fatal_error "only absolute run-paths are allowed"
4126 ;;
4127 esac
4128 case "$xrpath " in
4129 *" $dir "*) ;;
4130 *) xrpath="$xrpath $dir" ;;
4131 esac
4132 continue
4133 ;;
4134
4135 -shared)
4136 # The effects of -shared are defined in a previous loop.
4137 continue
4138 ;;
4139
4140 -shrext)
4141 prev=shrext
4142 continue
4143 ;;
4144
4145 -static | -static-libtool-libs)
4146 # The effects of -static are defined in a previous loop.
4147 # We used to do the same as -all-static on platforms that
4148 # didn't have a PIC flag, but the assumption that the effects
4149 # would be equivalent was wrong. It would break on at least
4150 # Digital Unix and AIX.
4151 continue
4152 ;;
4153
4154 -thread-safe)
4155 thread_safe=yes
4156 continue
4157 ;;
4158
4159 -version-info)
4160 prev=vinfo
4161 continue
4162 ;;
4163
4164 -version-number)
4165 prev=vinfo
4166 vinfo_number=yes
4167 continue
4168 ;;
4169
4170 -weak)
4171 prev=weak
4172 continue
4173 ;;
4174
4175 -Wc,*)
4176 func_stripname '-Wc,' '' "$arg"
4177 args=$func_stripname_result
4178 arg=
4179 save_ifs="$IFS"; IFS=','
4180 for flag in $args; do
4181 IFS="$save_ifs"
4182 func_quote_for_eval "$flag"
4183 arg="$arg $wl$func_quote_for_eval_result"
4184 compiler_flags="$compiler_flags $func_quote_for_eval_result"
4185 done
4186 IFS="$save_ifs"
4187 func_stripname ' ' '' "$arg"
4188 arg=$func_stripname_result
4189 ;;
4190
4191 -Wl,*)
4192 func_stripname '-Wl,' '' "$arg"
4193 args=$func_stripname_result
4194 arg=
4195 save_ifs="$IFS"; IFS=','
4196 for flag in $args; do
4197 IFS="$save_ifs"
4198 func_quote_for_eval "$flag"
4199 arg="$arg $wl$func_quote_for_eval_result"
4200 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4201 linker_flags="$linker_flags $func_quote_for_eval_result"
4202 done
4203 IFS="$save_ifs"
4204 func_stripname ' ' '' "$arg"
4205 arg=$func_stripname_result
4206 ;;
4207
4208 -Xcompiler)
4209 prev=xcompiler
4210 continue
4211 ;;
4212
4213 -Xlinker)
4214 prev=xlinker
4215 continue
4216 ;;
4217
4218 -XCClinker)
4219 prev=xcclinker
4220 continue
4221 ;;
4222
4223 # -msg_* for osf cc
4224 -msg_*)
4225 func_quote_for_eval "$arg"
4226 arg="$func_quote_for_eval_result"
4227 ;;
4228
4229 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4230 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4231 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4232 # +DA*, +DD* enable 64-bit mode on the HP compiler
4233 # -q* pass through compiler args for the IBM compiler
4234 # -m*, -t[45]*, -txscale* pass through architecture-specific
4235 # compiler args for GCC
4236 # -F/path gives path to uninstalled frameworks, gcc on darwin
4237 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4238 # @file GCC response files
4239 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4240 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
4241 func_quote_for_eval "$arg"
4242 arg="$func_quote_for_eval_result"
4243 func_append compile_command " $arg"
4244 func_append finalize_command " $arg"
4245 compiler_flags="$compiler_flags $arg"
4246 continue
4247 ;;
4248
4249 # Some other compiler flag.
4250 -* | +*)
4251 func_quote_for_eval "$arg"
4252 arg="$func_quote_for_eval_result"
4253 ;;
4254
4255 *.$objext)
4256 # A standard object.
4257 objs="$objs $arg"
4258 ;;
4259
4260 *.lo)
4261 # A libtool-controlled object.
4262
4263 # Check to see that this really is a libtool object.
4264 if func_lalib_unsafe_p "$arg"; then
4265 pic_object=
4266 non_pic_object=
4267
4268 # Read the .lo file
4269 func_source "$arg"
4270
4271 if test -z "$pic_object" ||
4272 test -z "$non_pic_object" ||
4273 test "$pic_object" = none &&
4274 test "$non_pic_object" = none; then
4275 func_fatal_error "cannot find name of object for \`$arg'"
4276 fi
4277
4278 # Extract subdirectory from the argument.
4279 func_dirname "$arg" "/" ""
4280 xdir="$func_dirname_result"
4281
4282 if test "$pic_object" != none; then
4283 # Prepend the subdirectory the object is found in.
4284 pic_object="$xdir$pic_object"
4285
4286 if test "$prev" = dlfiles; then
4287 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4288 dlfiles="$dlfiles $pic_object"
4289 prev=
4290 continue
4291 else
4292 # If libtool objects are unsupported, then we need to preload.
4293 prev=dlprefiles
4294 fi
4295 fi
4296
4297 # CHECK ME: I think I busted this. -Ossama
4298 if test "$prev" = dlprefiles; then
4299 # Preload the old-style object.
4300 dlprefiles="$dlprefiles $pic_object"
4301 prev=
4302 fi
4303
4304 # A PIC object.
4305 func_append libobjs " $pic_object"
4306 arg="$pic_object"
4307 fi
4308
4309 # Non-PIC object.
4310 if test "$non_pic_object" != none; then
4311 # Prepend the subdirectory the object is found in.
4312 non_pic_object="$xdir$non_pic_object"
4313
4314 # A standard non-PIC object
4315 func_append non_pic_objects " $non_pic_object"
4316 if test -z "$pic_object" || test "$pic_object" = none ; then
4317 arg="$non_pic_object"
4318 fi
4319 else
4320 # If the PIC object exists, use it instead.
4321 # $xdir was prepended to $pic_object above.
4322 non_pic_object="$pic_object"
4323 func_append non_pic_objects " $non_pic_object"
4324 fi
4325 else
4326 # Only an error if not doing a dry-run.
4327 if $opt_dry_run; then
4328 # Extract subdirectory from the argument.
4329 func_dirname "$arg" "/" ""
4330 xdir="$func_dirname_result"
4331
4332 func_lo2o "$arg"
4333 pic_object=$xdir$objdir/$func_lo2o_result
4334 non_pic_object=$xdir$func_lo2o_result
4335 func_append libobjs " $pic_object"
4336 func_append non_pic_objects " $non_pic_object"
4337 else
4338 func_fatal_error "\`$arg' is not a valid libtool object"
4339 fi
4340 fi
4341 ;;
4342
4343 *.$libext)
4344 # An archive.
4345 deplibs="$deplibs $arg"
4346 old_deplibs="$old_deplibs $arg"
4347 continue
4348 ;;
4349
4350 *.la)
4351 # A libtool-controlled library.
4352
4353 if test "$prev" = dlfiles; then
4354 # This library was specified with -dlopen.
4355 dlfiles="$dlfiles $arg"
4356 prev=
4357 elif test "$prev" = dlprefiles; then
4358 # The library was specified with -dlpreopen.
4359 dlprefiles="$dlprefiles $arg"
4360 prev=
4361 else
4362 deplibs="$deplibs $arg"
4363 fi
4364 continue
4365 ;;
4366
4367 # Some other compiler argument.
4368 *)
4369 # Unknown arguments in both finalize_command and compile_command need
4370 # to be aesthetically quoted because they are evaled later.
4371 func_quote_for_eval "$arg"
4372 arg="$func_quote_for_eval_result"
4373 ;;
4374 esac # arg
4375
4376 # Now actually substitute the argument into the commands.
4377 if test -n "$arg"; then
4378 func_append compile_command " $arg"
4379 func_append finalize_command " $arg"
4380 fi
4381 done # argument parsing loop
4382
4383 test -n "$prev" && \
4384 func_fatal_help "the \`$prevarg' option requires an argument"
4385
4386 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
4387 eval arg=\"$export_dynamic_flag_spec\"
4388 func_append compile_command " $arg"
4389 func_append finalize_command " $arg"
4390 fi
4391
4392 oldlibs=
4393 # calculate the name of the file, without its directory
4394 func_basename "$output"
4395 outputname="$func_basename_result"
4396 libobjs_save="$libobjs"
4397
4398 if test -n "$shlibpath_var"; then
4399 # get the directories listed in $shlibpath_var
4400 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
4401 else
4402 shlib_search_path=
4403 fi
4404 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
4405 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
4406
4407 func_dirname "$output" "/" ""
4408 output_objdir="$func_dirname_result$objdir"
4409 # Create the object directory.
4410 func_mkdir_p "$output_objdir"
4411
4412 # Determine the type of output
4413 case $output in
4414 "")
4415 func_fatal_help "you must specify an output file"
4416 ;;
4417 *.$libext) linkmode=oldlib ;;
4418 *.lo | *.$objext) linkmode=obj ;;
4419 *.la) linkmode=lib ;;
4420 *) linkmode=prog ;; # Anything else should be a program.
4421 esac
4422
4423 specialdeplibs=
4424
4425 libs=
4426 # Find all interdependent deplibs by searching for libraries
4427 # that are linked more than once (e.g. -la -lb -la)
4428 for deplib in $deplibs; do
4429 if $opt_duplicate_deps ; then
4430 case "$libs " in
4431 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
4432 esac
4433 fi
4434 libs="$libs $deplib"
4435 done
4436
4437 if test "$linkmode" = lib; then
4438 libs="$predeps $libs $compiler_lib_search_path $postdeps"
4439
4440 # Compute libraries that are listed more than once in $predeps
4441 # $postdeps and mark them as special (i.e., whose duplicates are
4442 # not to be eliminated).
4443 pre_post_deps=
4444 if $opt_duplicate_compiler_generated_deps; then
4445 for pre_post_dep in $predeps $postdeps; do
4446 case "$pre_post_deps " in
4447 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
4448 esac
4449 pre_post_deps="$pre_post_deps $pre_post_dep"
4450 done
4451 fi
4452 pre_post_deps=
4453 fi
4454
4455 deplibs=
4456 newdependency_libs=
4457 newlib_search_path=
4458 need_relink=no # whether we're linking any uninstalled libtool libraries
4459 notinst_deplibs= # not-installed libtool libraries
4460 notinst_path= # paths that contain not-installed libtool libraries
4461
4462 case $linkmode in
4463 lib)
4464 passes="conv dlpreopen link"
4465 for file in $dlfiles $dlprefiles; do
4466 case $file in
4467 *.la) ;;
4468 *)
4469 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
4470 ;;
4471 esac
4472 done
4473 ;;
4474 prog)
4475 compile_deplibs=
4476 finalize_deplibs=
4477 alldeplibs=no
4478 newdlfiles=
4479 newdlprefiles=
4480 passes="conv scan dlopen dlpreopen link"
4481 ;;
4482 *) passes="conv"
4483 ;;
4484 esac
4485
4486 for pass in $passes; do
4487 # The preopen pass in lib mode reverses $deplibs; put it back here
4488 # so that -L comes before libs that need it for instance...
4489 if test "$linkmode,$pass" = "lib,link"; then
4490 ## FIXME: Find the place where the list is rebuilt in the wrong
4491 ## order, and fix it there properly
4492 tmp_deplibs=
4493 for deplib in $deplibs; do
4494 tmp_deplibs="$deplib $tmp_deplibs"
4495 done
4496 deplibs="$tmp_deplibs"
4497 fi
4498
4499 if test "$linkmode,$pass" = "lib,link" ||
4500 test "$linkmode,$pass" = "prog,scan"; then
4501 libs="$deplibs"
4502 deplibs=
4503 fi
4504 if test "$linkmode" = prog; then
4505 case $pass in
4506 dlopen) libs="$dlfiles" ;;
4507 dlpreopen) libs="$dlprefiles" ;;
4508 link)
4509 libs="$deplibs %DEPLIBS%"
4510 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
4511 ;;
4512 esac
4513 fi
4514 if test "$linkmode,$pass" = "lib,dlpreopen"; then
4515 # Collect and forward deplibs of preopened libtool libs
4516 for lib in $dlprefiles; do
4517 # Ignore non-libtool-libs
4518 dependency_libs=
4519 case $lib in
4520 *.la) func_source "$lib" ;;
4521 esac
4522
4523 # Collect preopened libtool deplibs, except any this library
4524 # has declared as weak libs
4525 for deplib in $dependency_libs; do
4526 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
4527 case " $weak_libs " in
4528 *" $deplib_base "*) ;;
4529 *) deplibs="$deplibs $deplib" ;;
4530 esac
4531 done
4532 done
4533 libs="$dlprefiles"
4534 fi
4535 if test "$pass" = dlopen; then
4536 # Collect dlpreopened libraries
4537 save_deplibs="$deplibs"
4538 deplibs=
4539 fi
4540
4541 for deplib in $libs; do
4542 lib=
4543 found=no
4544 case $deplib in
4545 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4546 if test "$linkmode,$pass" = "prog,link"; then
4547 compile_deplibs="$deplib $compile_deplibs"
4548 finalize_deplibs="$deplib $finalize_deplibs"
4549 else
4550 compiler_flags="$compiler_flags $deplib"
4551 if test "$linkmode" = lib ; then
4552 case "$new_inherited_linker_flags " in
4553 *" $deplib "*) ;;
4554 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
4555 esac
4556 fi
4557 fi
4558 continue
4559 ;;
4560 -l*)
4561 if test "$linkmode" != lib && test "$linkmode" != prog; then
4562 func_warning "\`-l' is ignored for archives/objects"
4563 continue
4564 fi
4565 func_stripname '-l' '' "$deplib"
4566 name=$func_stripname_result
4567 if test "$linkmode" = lib; then
4568 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
4569 else
4570 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
4571 fi
4572 for searchdir in $searchdirs; do
4573 for search_ext in .la $std_shrext .so .a; do
4574 # Search the libtool library
4575 lib="$searchdir/lib${name}${search_ext}"
4576 if test -f "$lib"; then
4577 if test "$search_ext" = ".la"; then
4578 found=yes
4579 else
4580 found=no
4581 fi
4582 break 2
4583 fi
4584 done
4585 done
4586 if test "$found" != yes; then
4587 # deplib doesn't seem to be a libtool library
4588 if test "$linkmode,$pass" = "prog,link"; then
4589 compile_deplibs="$deplib $compile_deplibs"
4590 finalize_deplibs="$deplib $finalize_deplibs"
4591 else
4592 deplibs="$deplib $deplibs"
4593 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
4594 fi
4595 continue
4596 else # deplib is a libtool library
4597 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
4598 # We need to do some special things here, and not later.
4599 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4600 case " $predeps $postdeps " in
4601 *" $deplib "*)
4602 if func_lalib_p "$lib"; then
4603 library_names=
4604 old_library=
4605 func_source "$lib"
4606 for l in $old_library $library_names; do
4607 ll="$l"
4608 done
4609 if test "X$ll" = "X$old_library" ; then # only static version available
4610 found=no
4611 func_dirname "$lib" "" "."
4612 ladir="$func_dirname_result"
4613 lib=$ladir/$old_library
4614 if test "$linkmode,$pass" = "prog,link"; then
4615 compile_deplibs="$deplib $compile_deplibs"
4616 finalize_deplibs="$deplib $finalize_deplibs"
4617 else
4618 deplibs="$deplib $deplibs"
4619 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
4620 fi
4621 continue
4622 fi
4623 fi
4624 ;;
4625 *) ;;
4626 esac
4627 fi
4628 fi
4629 ;; # -l
4630 *.ltframework)
4631 if test "$linkmode,$pass" = "prog,link"; then
4632 compile_deplibs="$deplib $compile_deplibs"
4633 finalize_deplibs="$deplib $finalize_deplibs"
4634 else
4635 deplibs="$deplib $deplibs"
4636 if test "$linkmode" = lib ; then
4637 case "$new_inherited_linker_flags " in
4638 *" $deplib "*) ;;
4639 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
4640 esac
4641 fi
4642 fi
4643 continue
4644 ;;
4645 -L*)
4646 case $linkmode in
4647 lib)
4648 deplibs="$deplib $deplibs"
4649 test "$pass" = conv && continue
4650 newdependency_libs="$deplib $newdependency_libs"
4651 func_stripname '-L' '' "$deplib"
4652 newlib_search_path="$newlib_search_path $func_stripname_result"
4653 ;;
4654 prog)
4655 if test "$pass" = conv; then
4656 deplibs="$deplib $deplibs"
4657 continue
4658 fi
4659 if test "$pass" = scan; then
4660 deplibs="$deplib $deplibs"
4661 else
4662 compile_deplibs="$deplib $compile_deplibs"
4663 finalize_deplibs="$deplib $finalize_deplibs"
4664 fi
4665 func_stripname '-L' '' "$deplib"
4666 newlib_search_path="$newlib_search_path $func_stripname_result"
4667 ;;
4668 *)
4669 func_warning "\`-L' is ignored for archives/objects"
4670 ;;
4671 esac # linkmode
4672 continue
4673 ;; # -L
4674 -R*)
4675 if test "$pass" = link; then
4676 func_stripname '-R' '' "$deplib"
4677 dir=$func_stripname_result
4678 # Make sure the xrpath contains only unique directories.
4679 case "$xrpath " in
4680 *" $dir "*) ;;
4681 *) xrpath="$xrpath $dir" ;;
4682 esac
4683 fi
4684 deplibs="$deplib $deplibs"
4685 continue
4686 ;;
4687 *.la) lib="$deplib" ;;
4688 *.$libext)
4689 if test "$pass" = conv; then
4690 deplibs="$deplib $deplibs"
4691 continue
4692 fi
4693 case $linkmode in
4694 lib)
4695 # Linking convenience modules into shared libraries is allowed,
4696 # but linking other static libraries is non-portable.
4697 case " $dlpreconveniencelibs " in
4698 *" $deplib "*) ;;
4699 *)
4700 valid_a_lib=no
4701 case $deplibs_check_method in
4702 match_pattern*)
4703 set dummy $deplibs_check_method; shift
4704 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
4705 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
4706 | $EGREP "$match_pattern_regex" > /dev/null; then
4707 valid_a_lib=yes
4708 fi
4709 ;;
4710 pass_all)
4711 valid_a_lib=yes
4712 ;;
4713 esac
4714 if test "$valid_a_lib" != yes; then
4715 $ECHO
4716 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
4717 $ECHO "*** I have the capability to make that library automatically link in when"
4718 $ECHO "*** you link to this library. But I can only do this if you have a"
4719 $ECHO "*** shared version of the library, which you do not appear to have"
4720 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
4721 $ECHO "*** that it is just a static archive that I should not use here."
4722 else
4723 $ECHO
4724 $ECHO "*** Warning: Linking the shared library $output against the"
4725 $ECHO "*** static library $deplib is not portable!"
4726 deplibs="$deplib $deplibs"
4727 fi
4728 ;;
4729 esac
4730 continue
4731 ;;
4732 prog)
4733 if test "$pass" != link; then
4734 deplibs="$deplib $deplibs"
4735 else
4736 compile_deplibs="$deplib $compile_deplibs"
4737 finalize_deplibs="$deplib $finalize_deplibs"
4738 fi
4739 continue
4740 ;;
4741 esac # linkmode
4742 ;; # *.$libext
4743 *.lo | *.$objext)
4744 if test "$pass" = conv; then
4745 deplibs="$deplib $deplibs"
4746 elif test "$linkmode" = prog; then
4747 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
4748 # If there is no dlopen support or we're linking statically,
4749 # we need to preload.
4750 newdlprefiles="$newdlprefiles $deplib"
4751 compile_deplibs="$deplib $compile_deplibs"
4752 finalize_deplibs="$deplib $finalize_deplibs"
4753 else
4754 newdlfiles="$newdlfiles $deplib"
4755 fi
4756 fi
4757 continue
4758 ;;
4759 %DEPLIBS%)
4760 alldeplibs=yes
4761 continue
4762 ;;
4763 esac # case $deplib
4764
4765 if test "$found" = yes || test -f "$lib"; then :
4766 else
4767 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
4768 fi
4769
4770 # Check to see that this really is a libtool archive.
4771 func_lalib_unsafe_p "$lib" \
4772 || func_fatal_error "\`$lib' is not a valid libtool archive"
4773
4774 func_dirname "$lib" "" "."
4775 ladir="$func_dirname_result"
4776
4777 dlname=
4778 dlopen=
4779 dlpreopen=
4780 libdir=
4781 library_names=
4782 old_library=
4783 inherited_linker_flags=
4784 # If the library was installed with an old release of libtool,
4785 # it will not redefine variables installed, or shouldnotlink
4786 installed=yes
4787 shouldnotlink=no
4788 avoidtemprpath=
4789
4790
4791 # Read the .la file
4792 func_source "$lib"
4793
4794 # Convert "-framework foo" to "foo.ltframework"
4795 if test -n "$inherited_linker_flags"; then
4796 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
4797 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
4798 case " $new_inherited_linker_flags " in
4799 *" $tmp_inherited_linker_flag "*) ;;
4800 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
4801 esac
4802 done
4803 fi
4804 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
4805 if test "$linkmode,$pass" = "lib,link" ||
4806 test "$linkmode,$pass" = "prog,scan" ||
4807 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
4808 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
4809 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
4810 fi
4811
4812 if test "$pass" = conv; then
4813 # Only check for convenience libraries
4814 deplibs="$lib $deplibs"
4815 if test -z "$libdir"; then
4816 if test -z "$old_library"; then
4817 func_fatal_error "cannot find name of link library for \`$lib'"
4818 fi
4819 # It is a libtool convenience library, so add in its objects.
4820 convenience="$convenience $ladir/$objdir/$old_library"
4821 old_convenience="$old_convenience $ladir/$objdir/$old_library"
4822 elif test "$linkmode" != prog && test "$linkmode" != lib; then
4823 func_fatal_error "\`$lib' is not a convenience library"
4824 fi
4825 tmp_libs=
4826 for deplib in $dependency_libs; do
4827 deplibs="$deplib $deplibs"
4828 if $opt_duplicate_deps ; then
4829 case "$tmp_libs " in
4830 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
4831 esac
4832 fi
4833 tmp_libs="$tmp_libs $deplib"
4834 done
4835 continue
4836 fi # $pass = conv
4837
4838
4839 # Get the name of the library we link against.
4840 linklib=
4841 for l in $old_library $library_names; do
4842 linklib="$l"
4843 done
4844 if test -z "$linklib"; then
4845 func_fatal_error "cannot find name of link library for \`$lib'"
4846 fi
4847
4848 # This library was specified with -dlopen.
4849 if test "$pass" = dlopen; then
4850 if test -z "$libdir"; then
4851 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
4852 fi
4853 if test -z "$dlname" ||
4854 test "$dlopen_support" != yes ||
4855 test "$build_libtool_libs" = no; then
4856 # If there is no dlname, no dlopen support or we're linking
4857 # statically, we need to preload. We also need to preload any
4858 # dependent libraries so libltdl's deplib preloader doesn't
4859 # bomb out in the load deplibs phase.
4860 dlprefiles="$dlprefiles $lib $dependency_libs"
4861 else
4862 newdlfiles="$newdlfiles $lib"
4863 fi
4864 continue
4865 fi # $pass = dlopen
4866
4867 # We need an absolute path.
4868 case $ladir in
4869 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
4870 *)
4871 abs_ladir=`cd "$ladir" && pwd`
4872 if test -z "$abs_ladir"; then
4873 func_warning "cannot determine absolute directory name of \`$ladir'"
4874 func_warning "passing it literally to the linker, although it might fail"
4875 abs_ladir="$ladir"
4876 fi
4877 ;;
4878 esac
4879 func_basename "$lib"
4880 laname="$func_basename_result"
4881
4882 # Find the relevant object directory and library name.
4883 if test "X$installed" = Xyes; then
4884 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
4885 func_warning "library \`$lib' was moved."
4886 dir="$ladir"
4887 absdir="$abs_ladir"
4888 libdir="$abs_ladir"
4889 else
4890 dir="$libdir"
4891 absdir="$libdir"
4892 fi
4893 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
4894 else
4895 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
4896 dir="$ladir"
4897 absdir="$abs_ladir"
4898 # Remove this search path later
4899 notinst_path="$notinst_path $abs_ladir"
4900 else
4901 dir="$ladir/$objdir"
4902 absdir="$abs_ladir/$objdir"
4903 # Remove this search path later
4904 notinst_path="$notinst_path $abs_ladir"
4905 fi
4906 fi # $installed = yes
4907 func_stripname 'lib' '.la' "$laname"
4908 name=$func_stripname_result
4909
4910 # This library was specified with -dlpreopen.
4911 if test "$pass" = dlpreopen; then
4912 if test -z "$libdir" && test "$linkmode" = prog; then
4913 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
4914 fi
4915 # Prefer using a static library (so that no silly _DYNAMIC symbols
4916 # are required to link).
4917 if test -n "$old_library"; then
4918 newdlprefiles="$newdlprefiles $dir/$old_library"
4919 # Keep a list of preopened convenience libraries to check
4920 # that they are being used correctly in the link pass.
4921 test -z "$libdir" && \
4922 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
4923 # Otherwise, use the dlname, so that lt_dlopen finds it.
4924 elif test -n "$dlname"; then
4925 newdlprefiles="$newdlprefiles $dir/$dlname"
4926 else
4927 newdlprefiles="$newdlprefiles $dir/$linklib"
4928 fi
4929 fi # $pass = dlpreopen
4930
4931 if test -z "$libdir"; then
4932 # Link the convenience library
4933 if test "$linkmode" = lib; then
4934 deplibs="$dir/$old_library $deplibs"
4935 elif test "$linkmode,$pass" = "prog,link"; then
4936 compile_deplibs="$dir/$old_library $compile_deplibs"
4937 finalize_deplibs="$dir/$old_library $finalize_deplibs"
4938 else
4939 deplibs="$lib $deplibs" # used for prog,scan pass
4940 fi
4941 continue
4942 fi
4943
4944
4945 if test "$linkmode" = prog && test "$pass" != link; then
4946 newlib_search_path="$newlib_search_path $ladir"
4947 deplibs="$lib $deplibs"
4948
4949 linkalldeplibs=no
4950 if test "$link_all_deplibs" != no || test -z "$library_names" ||
4951 test "$build_libtool_libs" = no; then
4952 linkalldeplibs=yes
4953 fi
4954
4955 tmp_libs=
4956 for deplib in $dependency_libs; do
4957 case $deplib in
4958 -L*) func_stripname '-L' '' "$deplib"
4959 newlib_search_path="$newlib_search_path $func_stripname_result"
4960 ;;
4961 esac
4962 # Need to link against all dependency_libs?
4963 if test "$linkalldeplibs" = yes; then
4964 deplibs="$deplib $deplibs"
4965 else
4966 # Need to hardcode shared library paths
4967 # or/and link against static libraries
4968 newdependency_libs="$deplib $newdependency_libs"
4969 fi
4970 if $opt_duplicate_deps ; then
4971 case "$tmp_libs " in
4972 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
4973 esac
4974 fi
4975 tmp_libs="$tmp_libs $deplib"
4976 done # for deplib
4977 continue
4978 fi # $linkmode = prog...
4979
4980 if test "$linkmode,$pass" = "prog,link"; then
4981 if test -n "$library_names" &&
4982 { { test "$prefer_static_libs" = no ||
4983 test "$prefer_static_libs,$installed" = "built,yes"; } ||
4984 test -z "$old_library"; }; then
4985 # We need to hardcode the library path
4986 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
4987 # Make sure the rpath contains only unique directories.
4988 case "$temp_rpath:" in
4989 *"$absdir:"*) ;;
4990 *) temp_rpath="$temp_rpath$absdir:" ;;
4991 esac
4992 fi
4993
4994 # Hardcode the library path.
4995 # Skip directories that are in the system default run-time
4996 # search path.
4997 case " $sys_lib_dlsearch_path " in
4998 *" $absdir "*) ;;
4999 *)
5000 case "$compile_rpath " in
5001 *" $absdir "*) ;;
5002 *) compile_rpath="$compile_rpath $absdir"
5003 esac
5004 ;;
5005 esac
5006 case " $sys_lib_dlsearch_path " in
5007 *" $libdir "*) ;;
5008 *)
5009 case "$finalize_rpath " in
5010 *" $libdir "*) ;;
5011 *) finalize_rpath="$finalize_rpath $libdir"
5012 esac
5013 ;;
5014 esac
5015 fi # $linkmode,$pass = prog,link...
5016
5017 if test "$alldeplibs" = yes &&
5018 { test "$deplibs_check_method" = pass_all ||
5019 { test "$build_libtool_libs" = yes &&
5020 test -n "$library_names"; }; }; then
5021 # We only need to search for static libraries
5022 continue
5023 fi
5024 fi
5025
5026 link_static=no # Whether the deplib will be linked statically
5027 use_static_libs=$prefer_static_libs
5028 if test "$use_static_libs" = built && test "$installed" = yes; then
5029 use_static_libs=no
5030 fi
5031 if test -n "$library_names" &&
5032 { test "$use_static_libs" = no || test -z "$old_library"; }; then
5033 case $host in
5034 *cygwin* | *mingw*)
5035 # No point in relinking DLLs because paths are not encoded
5036 notinst_deplibs="$notinst_deplibs $lib"
5037 need_relink=no
5038 ;;
5039 *)
5040 if test "$installed" = no; then
5041 notinst_deplibs="$notinst_deplibs $lib"
5042 need_relink=yes
5043 fi
5044 ;;
5045 esac
5046 # This is a shared library
5047
5048 # Warn about portability, can't link against -module's on some
5049 # systems (darwin). Don't bleat about dlopened modules though!
5050 dlopenmodule=""
5051 for dlpremoduletest in $dlprefiles; do
5052 if test "X$dlpremoduletest" = "X$lib"; then
5053 dlopenmodule="$dlpremoduletest"
5054 break
5055 fi
5056 done
5057 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5058 $ECHO
5059 if test "$linkmode" = prog; then
5060 $ECHO "*** Warning: Linking the executable $output against the loadable module"
5061 else
5062 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
5063 fi
5064 $ECHO "*** $linklib is not portable!"
5065 fi
5066 if test "$linkmode" = lib &&
5067 test "$hardcode_into_libs" = yes; then
5068 # Hardcode the library path.
5069 # Skip directories that are in the system default run-time
5070 # search path.
5071 case " $sys_lib_dlsearch_path " in
5072 *" $absdir "*) ;;
5073 *)
5074 case "$compile_rpath " in
5075 *" $absdir "*) ;;
5076 *) compile_rpath="$compile_rpath $absdir"
5077 esac
5078 ;;
5079 esac
5080 case " $sys_lib_dlsearch_path " in
5081 *" $libdir "*) ;;
5082 *)
5083 case "$finalize_rpath " in
5084 *" $libdir "*) ;;
5085 *) finalize_rpath="$finalize_rpath $libdir"
5086 esac
5087 ;;
5088 esac
5089 fi
5090
5091 if test -n "$old_archive_from_expsyms_cmds"; then
5092 # figure out the soname
5093 set dummy $library_names
5094 shift
5095 realname="$1"
5096 shift
5097 libname=`eval "\\$ECHO \"$libname_spec\""`
5098 # use dlname if we got it. it's perfectly good, no?
5099 if test -n "$dlname"; then
5100 soname="$dlname"
5101 elif test -n "$soname_spec"; then
5102 # bleh windows
5103 case $host in
5104 *cygwin* | mingw*)
5105 func_arith $current - $age
5106 major=$func_arith_result
5107 versuffix="-$major"
5108 ;;
5109 esac
5110 eval soname=\"$soname_spec\"
5111 else
5112 soname="$realname"
5113 fi
5114
5115 # Make a new name for the extract_expsyms_cmds to use
5116 soroot="$soname"
5117 func_basename "$soroot"
5118 soname="$func_basename_result"
5119 func_stripname 'lib' '.dll' "$soname"
5120 newlib=libimp-$func_stripname_result.a
5121
5122 # If the library has no export list, then create one now
5123 if test -f "$output_objdir/$soname-def"; then :
5124 else
5125 func_verbose "extracting exported symbol list from \`$soname'"
5126 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
5127 fi
5128
5129 # Create $newlib
5130 if test -f "$output_objdir/$newlib"; then :; else
5131 func_verbose "generating import library for \`$soname'"
5132 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
5133 fi
5134 # make sure the library variables are pointing to the new library
5135 dir=$output_objdir
5136 linklib=$newlib
5137 fi # test -n "$old_archive_from_expsyms_cmds"
5138
5139 if test "$linkmode" = prog || test "$mode" != relink; then
5140 add_shlibpath=
5141 add_dir=
5142 add=
5143 lib_linked=yes
5144 case $hardcode_action in
5145 immediate | unsupported)
5146 if test "$hardcode_direct" = no; then
5147 add="$dir/$linklib"
5148 case $host in
5149 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
5150 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
5151 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
5152 *-*-unixware7*) add_dir="-L$dir" ;;
5153 *-*-darwin* )
5154 # if the lib is a (non-dlopened) module then we can not
5155 # link against it, someone is ignoring the earlier warnings
5156 if /usr/bin/file -L $add 2> /dev/null |
5157 $GREP ": [^:]* bundle" >/dev/null ; then
5158 if test "X$dlopenmodule" != "X$lib"; then
5159 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
5160 if test -z "$old_library" ; then
5161 $ECHO
5162 $ECHO "*** And there doesn't seem to be a static archive available"
5163 $ECHO "*** The link will probably fail, sorry"
5164 else
5165 add="$dir/$old_library"
5166 fi
5167 elif test -n "$old_library"; then
5168 add="$dir/$old_library"
5169 fi
5170 fi
5171 esac
5172 elif test "$hardcode_minus_L" = no; then
5173 case $host in
5174 *-*-sunos*) add_shlibpath="$dir" ;;
5175 esac
5176 add_dir="-L$dir"
5177 add="-l$name"
5178 elif test "$hardcode_shlibpath_var" = no; then
5179 add_shlibpath="$dir"
5180 add="-l$name"
5181 else
5182 lib_linked=no
5183 fi
5184 ;;
5185 relink)
5186 if test "$hardcode_direct" = yes &&
5187 test "$hardcode_direct_absolute" = no; then
5188 add="$dir/$linklib"
5189 elif test "$hardcode_minus_L" = yes; then
5190 add_dir="-L$dir"
5191 # Try looking first in the location we're being installed to.
5192 if test -n "$inst_prefix_dir"; then
5193 case $libdir in
5194 [\\/]*)
5195 add_dir="$add_dir -L$inst_prefix_dir$libdir"
5196 ;;
5197 esac
5198 fi
5199 add="-l$name"
5200 elif test "$hardcode_shlibpath_var" = yes; then
5201 add_shlibpath="$dir"
5202 add="-l$name"
5203 else
5204 lib_linked=no
5205 fi
5206 ;;
5207 *) lib_linked=no ;;
5208 esac
5209
5210 if test "$lib_linked" != yes; then
5211 func_fatal_configuration "unsupported hardcode properties"
5212 fi
5213
5214 if test -n "$add_shlibpath"; then
5215 case :$compile_shlibpath: in
5216 *":$add_shlibpath:"*) ;;
5217 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
5218 esac
5219 fi
5220 if test "$linkmode" = prog; then
5221 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
5222 test -n "$add" && compile_deplibs="$add $compile_deplibs"
5223 else
5224 test -n "$add_dir" && deplibs="$add_dir $deplibs"
5225 test -n "$add" && deplibs="$add $deplibs"
5226 if test "$hardcode_direct" != yes &&
5227 test "$hardcode_minus_L" != yes &&
5228 test "$hardcode_shlibpath_var" = yes; then
5229 case :$finalize_shlibpath: in
5230 *":$libdir:"*) ;;
5231 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
5232 esac
5233 fi
5234 fi
5235 fi
5236
5237 if test "$linkmode" = prog || test "$mode" = relink; then
5238 add_shlibpath=
5239 add_dir=
5240 add=
5241 # Finalize command for both is simple: just hardcode it.
5242 if test "$hardcode_direct" = yes &&
5243 test "$hardcode_direct_absolute" = no; then
5244 add="$libdir/$linklib"
5245 elif test "$hardcode_minus_L" = yes; then
5246 add_dir="-L$libdir"
5247 add="-l$name"
5248 elif test "$hardcode_shlibpath_var" = yes; then
5249 case :$finalize_shlibpath: in
5250 *":$libdir:"*) ;;
5251 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
5252 esac
5253 add="-l$name"
5254 elif test "$hardcode_automatic" = yes; then
5255 if test -n "$inst_prefix_dir" &&
5256 test -f "$inst_prefix_dir$libdir/$linklib" ; then
5257 add="$inst_prefix_dir$libdir/$linklib"
5258 else
5259 add="$libdir/$linklib"
5260 fi
5261 else
5262 # We cannot seem to hardcode it, guess we'll fake it.
5263 add_dir="-L$libdir"
5264 # Try looking first in the location we're being installed to.
5265 if test -n "$inst_prefix_dir"; then
5266 case $libdir in
5267 [\\/]*)
5268 add_dir="$add_dir -L$inst_prefix_dir$libdir"
5269 ;;
5270 esac
5271 fi
5272 add="-l$name"
5273 fi
5274
5275 if test "$linkmode" = prog; then
5276 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
5277 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
5278 else
5279 test -n "$add_dir" && deplibs="$add_dir $deplibs"
5280 test -n "$add" && deplibs="$add $deplibs"
5281 fi
5282 fi
5283 elif test "$linkmode" = prog; then
5284 # Here we assume that one of hardcode_direct or hardcode_minus_L
5285 # is not unsupported. This is valid on all known static and
5286 # shared platforms.
5287 if test "$hardcode_direct" != unsupported; then
5288 test -n "$old_library" && linklib="$old_library"
5289 compile_deplibs="$dir/$linklib $compile_deplibs"
5290 finalize_deplibs="$dir/$linklib $finalize_deplibs"
5291 else
5292 compile_deplibs="-l$name -L$dir $compile_deplibs"
5293 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
5294 fi
5295 elif test "$build_libtool_libs" = yes; then
5296 # Not a shared library
5297 if test "$deplibs_check_method" != pass_all; then
5298 # We're trying link a shared library against a static one
5299 # but the system doesn't support it.
5300
5301 # Just print a warning and add the library to dependency_libs so
5302 # that the program can be linked against the static library.
5303 $ECHO
5304 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5305 $ECHO "*** I have the capability to make that library automatically link in when"
5306 $ECHO "*** you link to this library. But I can only do this if you have a"
5307 $ECHO "*** shared version of the library, which you do not appear to have."
5308 if test "$module" = yes; then
5309 $ECHO "*** But as you try to build a module library, libtool will still create "
5310 $ECHO "*** a static module, that should work as long as the dlopening application"
5311 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
5312 if test -z "$global_symbol_pipe"; then
5313 $ECHO
5314 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5315 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5316 $ECHO "*** not find such a program. So, this module is probably useless."
5317 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
5318 fi
5319 if test "$build_old_libs" = no; then
5320 build_libtool_libs=module
5321 build_old_libs=yes
5322 else
5323 build_libtool_libs=no
5324 fi
5325 fi
5326 else
5327 deplibs="$dir/$old_library $deplibs"
5328 link_static=yes
5329 fi
5330 fi # link shared/static library?
5331
5332 if test "$linkmode" = lib; then
5333 if test -n "$dependency_libs" &&
5334 { test "$hardcode_into_libs" != yes ||
5335 test "$build_old_libs" = yes ||
5336 test "$link_static" = yes; }; then
5337 # Extract -R from dependency_libs
5338 temp_deplibs=
5339 for libdir in $dependency_libs; do
5340 case $libdir in
5341 -R*) func_stripname '-R' '' "$libdir"
5342 temp_xrpath=$func_stripname_result
5343 case " $xrpath " in
5344 *" $temp_xrpath "*) ;;
5345 *) xrpath="$xrpath $temp_xrpath";;
5346 esac;;
5347 *) temp_deplibs="$temp_deplibs $libdir";;
5348 esac
5349 done
5350 dependency_libs="$temp_deplibs"
5351 fi
5352
5353 newlib_search_path="$newlib_search_path $absdir"
5354 # Link against this library
5355 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
5356 # ... and its dependency_libs
5357 tmp_libs=
5358 for deplib in $dependency_libs; do
5359 newdependency_libs="$deplib $newdependency_libs"
5360 if $opt_duplicate_deps ; then
5361 case "$tmp_libs " in
5362 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5363 esac
5364 fi
5365 tmp_libs="$tmp_libs $deplib"
5366 done
5367
5368 if test "$link_all_deplibs" != no; then
5369 # Add the search paths of all dependency libraries
5370 for deplib in $dependency_libs; do
5371 case $deplib in
5372 -L*) path="$deplib" ;;
5373 *.la)
5374 func_dirname "$deplib" "" "."
5375 dir="$func_dirname_result"
5376 # We need an absolute path.
5377 case $dir in
5378 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
5379 *)
5380 absdir=`cd "$dir" && pwd`
5381 if test -z "$absdir"; then
5382 func_warning "cannot determine absolute directory name of \`$dir'"
5383 absdir="$dir"
5384 fi
5385 ;;
5386 esac
5387 if $GREP "^installed=no" $deplib > /dev/null; then
5388 case $host in
5389 *-*-darwin*)
5390 depdepl=
5391 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
5392 if test -n "$deplibrary_names" ; then
5393 for tmp in $deplibrary_names ; do
5394 depdepl=$tmp
5395 done
5396 if test -f "$absdir/$objdir/$depdepl" ; then
5397 depdepl="$absdir/$objdir/$depdepl"
5398 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5399 if test -z "$darwin_install_name"; then
5400 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5401 fi
5402 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5403 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
5404 path=
5405 fi
5406 fi
5407 ;;
5408 *)
5409 path="-L$absdir/$objdir"
5410 ;;
5411 esac
5412 else
5413 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5414 test -z "$libdir" && \
5415 func_fatal_error "\`$deplib' is not a valid libtool archive"
5416 test "$absdir" != "$libdir" && \
5417 func_warning "\`$deplib' seems to be moved"
5418
5419 path="-L$absdir"
5420 fi
5421 ;;
5422 esac
5423 case " $deplibs " in
5424 *" $path "*) ;;
5425 *) deplibs="$path $deplibs" ;;
5426 esac
5427 done
5428 fi # link_all_deplibs != no
5429 fi # linkmode = lib
5430 done # for deplib in $libs
5431 if test "$pass" = link; then
5432 if test "$linkmode" = "prog"; then
5433 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
5434 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
5435 else
5436 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
5437 fi
5438 fi
5439 dependency_libs="$newdependency_libs"
5440 if test "$pass" = dlpreopen; then
5441 # Link the dlpreopened libraries before other libraries
5442 for deplib in $save_deplibs; do
5443 deplibs="$deplib $deplibs"
5444 done
5445 fi
5446 if test "$pass" != dlopen; then
5447 if test "$pass" != conv; then
5448 # Make sure lib_search_path contains only unique directories.
5449 lib_search_path=
5450 for dir in $newlib_search_path; do
5451 case "$lib_search_path " in
5452 *" $dir "*) ;;
5453 *) lib_search_path="$lib_search_path $dir" ;;
5454 esac
5455 done
5456 newlib_search_path=
5457 fi
5458
5459 if test "$linkmode,$pass" != "prog,link"; then
5460 vars="deplibs"
5461 else
5462 vars="compile_deplibs finalize_deplibs"
5463 fi
5464 for var in $vars dependency_libs; do
5465 # Add libraries to $var in reverse order
5466 eval tmp_libs=\"\$$var\"
5467 new_libs=
5468 for deplib in $tmp_libs; do
5469 # FIXME: Pedantically, this is the right thing to do, so
5470 # that some nasty dependency loop isn't accidentally
5471 # broken:
5472 #new_libs="$deplib $new_libs"
5473 # Pragmatically, this seems to cause very few problems in
5474 # practice:
5475 case $deplib in
5476 -L*) new_libs="$deplib $new_libs" ;;
5477 -R*) ;;
5478 *)
5479 # And here is the reason: when a library appears more
5480 # than once as an explicit dependence of a library, or
5481 # is implicitly linked in more than once by the
5482 # compiler, it is considered special, and multiple
5483 # occurrences thereof are not removed. Compare this
5484 # with having the same library being listed as a
5485 # dependency of multiple other libraries: in this case,
5486 # we know (pedantically, we assume) the library does not
5487 # need to be listed more than once, so we keep only the
5488 # last copy. This is not always right, but it is rare
5489 # enough that we require users that really mean to play
5490 # such unportable linking tricks to link the library
5491 # using -Wl,-lname, so that libtool does not consider it
5492 # for duplicate removal.
5493 case " $specialdeplibs " in
5494 *" $deplib "*) new_libs="$deplib $new_libs" ;;
5495 *)
5496 case " $new_libs " in
5497 *" $deplib "*) ;;
5498 *) new_libs="$deplib $new_libs" ;;
5499 esac
5500 ;;
5501 esac
5502 ;;
5503 esac
5504 done
5505 tmp_libs=
5506 for deplib in $new_libs; do
5507 case $deplib in
5508 -L*)
5509 case " $tmp_libs " in
5510 *" $deplib "*) ;;
5511 *) tmp_libs="$tmp_libs $deplib" ;;
5512 esac
5513 ;;
5514 *) tmp_libs="$tmp_libs $deplib" ;;
5515 esac
5516 done
5517 eval $var=\"$tmp_libs\"
5518 done # for var
5519 fi
5520 # Last step: remove runtime libs from dependency_libs
5521 # (they stay in deplibs)
5522 tmp_libs=
5523 for i in $dependency_libs ; do
5524 case " $predeps $postdeps $compiler_lib_search_path " in
5525 *" $i "*)
5526 i=""
5527 ;;
5528 esac
5529 if test -n "$i" ; then
5530 tmp_libs="$tmp_libs $i"
5531 fi
5532 done
5533 dependency_libs=$tmp_libs
5534 done # for pass
5535 if test "$linkmode" = prog; then
5536 dlfiles="$newdlfiles"
5537 fi
5538 if test "$linkmode" = prog || test "$linkmode" = lib; then
5539 dlprefiles="$newdlprefiles"
5540 fi
5541
5542 case $linkmode in
5543 oldlib)
5544 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
5545 func_warning "\`-dlopen' is ignored for archives"
5546 fi
5547
5548 case " $deplibs" in
5549 *\ -l* | *\ -L*)
5550 func_warning "\`-l' and \`-L' are ignored for archives" ;;
5551 esac
5552
5553 test -n "$rpath" && \
5554 func_warning "\`-rpath' is ignored for archives"
5555
5556 test -n "$xrpath" && \
5557 func_warning "\`-R' is ignored for archives"
5558
5559 test -n "$vinfo" && \
5560 func_warning "\`-version-info/-version-number' is ignored for archives"
5561
5562 test -n "$release" && \
5563 func_warning "\`-release' is ignored for archives"
5564
5565 test -n "$export_symbols$export_symbols_regex" && \
5566 func_warning "\`-export-symbols' is ignored for archives"
5567
5568 # Now set the variables for building old libraries.
5569 build_libtool_libs=no
5570 oldlibs="$output"
5571 objs="$objs$old_deplibs"
5572 ;;
5573
5574 lib)
5575 # Make sure we only generate libraries of the form `libNAME.la'.
5576 case $outputname in
5577 lib*)
5578 func_stripname 'lib' '.la' "$outputname"
5579 name=$func_stripname_result
5580 eval shared_ext=\"$shrext_cmds\"
5581 eval libname=\"$libname_spec\"
5582 ;;
5583 *)
5584 test "$module" = no && \
5585 func_fatal_help "libtool library \`$output' must begin with \`lib'"
5586
5587 if test "$need_lib_prefix" != no; then
5588 # Add the "lib" prefix for modules if required
5589 func_stripname '' '.la' "$outputname"
5590 name=$func_stripname_result
5591 eval shared_ext=\"$shrext_cmds\"
5592 eval libname=\"$libname_spec\"
5593 else
5594 func_stripname '' '.la' "$outputname"
5595 libname=$func_stripname_result
5596 fi
5597 ;;
5598 esac
5599
5600 if test -n "$objs"; then
5601 if test "$deplibs_check_method" != pass_all; then
5602 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
5603 else
5604 $ECHO
5605 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
5606 $ECHO "*** objects $objs is not portable!"
5607 libobjs="$libobjs $objs"
5608 fi
5609 fi
5610
5611 test "$dlself" != no && \
5612 func_warning "\`-dlopen self' is ignored for libtool libraries"
5613
5614 set dummy $rpath
5615 shift
5616 test "$#" -gt 1 && \
5617 func_warning "ignoring multiple \`-rpath's for a libtool library"
5618
5619 install_libdir="$1"
5620
5621 oldlibs=
5622 if test -z "$rpath"; then
5623 if test "$build_libtool_libs" = yes; then
5624 # Building a libtool convenience library.
5625 # Some compilers have problems with a `.al' extension so
5626 # convenience libraries should have the same extension an
5627 # archive normally would.
5628 oldlibs="$output_objdir/$libname.$libext $oldlibs"
5629 build_libtool_libs=convenience
5630 build_old_libs=yes
5631 fi
5632
5633 test -n "$vinfo" && \
5634 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
5635
5636 test -n "$release" && \
5637 func_warning "\`-release' is ignored for convenience libraries"
5638 else
5639
5640 # Parse the version information argument.
5641 save_ifs="$IFS"; IFS=':'
5642 set dummy $vinfo 0 0 0
5643 shift
5644 IFS="$save_ifs"
5645
5646 test -n "$7" && \
5647 func_fatal_help "too many parameters to \`-version-info'"
5648
5649 # convert absolute version numbers to libtool ages
5650 # this retains compatibility with .la files and attempts
5651 # to make the code below a bit more comprehensible
5652
5653 case $vinfo_number in
5654 yes)
5655 number_major="$1"
5656 number_minor="$2"
5657 number_revision="$3"
5658 #
5659 # There are really only two kinds -- those that
5660 # use the current revision as the major version
5661 # and those that subtract age and use age as
5662 # a minor version. But, then there is irix
5663 # which has an extra 1 added just for fun
5664 #
5665 case $version_type in
5666 darwin|linux|osf|windows|none)
5667 func_arith $number_major + $number_minor
5668 current=$func_arith_result
5669 age="$number_minor"
5670 revision="$number_revision"
5671 ;;
5672 freebsd-aout|freebsd-elf|sunos)
5673 current="$number_major"
5674 revision="$number_minor"
5675 age="0"
5676 ;;
5677 irix|nonstopux)
5678 func_arith $number_major + $number_minor
5679 current=$func_arith_result
5680 age="$number_minor"
5681 revision="$number_minor"
5682 lt_irix_increment=no
5683 ;;
5684 *)
5685 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
5686 ;;
5687 esac
5688 ;;
5689 no)
5690 current="$1"
5691 revision="$2"
5692 age="$3"
5693 ;;
5694 esac
5695
5696 # Check that each of the things are valid numbers.
5697 case $current in
5698 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]) ;;
5699 *)
5700 func_error "CURRENT \`$current' must be a nonnegative integer"
5701 func_fatal_error "\`$vinfo' is not valid version information"
5702 ;;
5703 esac
5704
5705 case $revision in
5706 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]) ;;
5707 *)
5708 func_error "REVISION \`$revision' must be a nonnegative integer"
5709 func_fatal_error "\`$vinfo' is not valid version information"
5710 ;;
5711 esac
5712
5713 case $age in
5714 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]) ;;
5715 *)
5716 func_error "AGE \`$age' must be a nonnegative integer"
5717 func_fatal_error "\`$vinfo' is not valid version information"
5718 ;;
5719 esac
5720
5721 if test "$age" -gt "$current"; then
5722 func_error "AGE \`$age' is greater than the current interface number \`$current'"
5723 func_fatal_error "\`$vinfo' is not valid version information"
5724 fi
5725
5726 # Calculate the version variables.
5727 major=
5728 versuffix=
5729 verstring=
5730 case $version_type in
5731 none) ;;
5732
5733 darwin)
5734 # Like Linux, but with the current version available in
5735 # verstring for coding it into the library header
5736 func_arith $current - $age
5737 major=.$func_arith_result
5738 versuffix="$major.$age.$revision"
5739 # Darwin ld doesn't like 0 for these options...
5740 func_arith $current + 1
5741 minor_current=$func_arith_result
5742 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
5743 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
5744 ;;
5745
5746 freebsd-aout)
5747 major=".$current"
5748 versuffix=".$current.$revision";
5749 ;;
5750
5751 freebsd-elf)
5752 major=".$current"
5753 versuffix=".$current"
5754 ;;
5755
5756 irix | nonstopux)
5757 if test "X$lt_irix_increment" = "Xno"; then
5758 func_arith $current - $age
5759 else
5760 func_arith $current - $age + 1
5761 fi
5762 major=$func_arith_result
5763
5764 case $version_type in
5765 nonstopux) verstring_prefix=nonstopux ;;
5766 *) verstring_prefix=sgi ;;
5767 esac
5768 verstring="$verstring_prefix$major.$revision"
5769
5770 # Add in all the interfaces that we are compatible with.
5771 loop=$revision
5772 while test "$loop" -ne 0; do
5773 func_arith $revision - $loop
5774 iface=$func_arith_result
5775 func_arith $loop - 1
5776 loop=$func_arith_result
5777 verstring="$verstring_prefix$major.$iface:$verstring"
5778 done
5779
5780 # Before this point, $major must not contain `.'.
5781 major=.$major
5782 versuffix="$major.$revision"
5783 ;;
5784
5785 linux)
5786 func_arith $current - $age
5787 major=.$func_arith_result
5788 versuffix="$major.$age.$revision"
5789 ;;
5790
5791 osf)
5792 func_arith $current - $age
5793 major=.$func_arith_result
5794 versuffix=".$current.$age.$revision"
5795 verstring="$current.$age.$revision"
5796
5797 # Add in all the interfaces that we are compatible with.
5798 loop=$age
5799 while test "$loop" -ne 0; do
5800 func_arith $current - $loop
5801 iface=$func_arith_result
5802 func_arith $loop - 1
5803 loop=$func_arith_result
5804 verstring="$verstring:${iface}.0"
5805 done
5806
5807 # Make executables depend on our current version.
5808 verstring="$verstring:${current}.0"
5809 ;;
5810
5811 qnx)
5812 major=".$current"
5813 versuffix=".$current"
5814 ;;
5815
5816 sunos)
5817 major=".$current"
5818 versuffix=".$current.$revision"
5819 ;;
5820
5821 windows)
5822 # Use '-' rather than '.', since we only want one
5823 # extension on DOS 8.3 filesystems.
5824 func_arith $current - $age
5825 major=$func_arith_result
5826 versuffix="-$major"
5827 ;;
5828
5829 *)
5830 func_fatal_configuration "unknown library version type \`$version_type'"
5831 ;;
5832 esac
5833
5834 # Clear the version info if we defaulted, and they specified a release.
5835 if test -z "$vinfo" && test -n "$release"; then
5836 major=
5837 case $version_type in
5838 darwin)
5839 # we can't check for "0.0" in archive_cmds due to quoting
5840 # problems, so we reset it completely
5841 verstring=
5842 ;;
5843 *)
5844 verstring="0.0"
5845 ;;
5846 esac
5847 if test "$need_version" = no; then
5848 versuffix=
5849 else
5850 versuffix=".0.0"
5851 fi
5852 fi
5853
5854 # Remove version info from name if versioning should be avoided
5855 if test "$avoid_version" = yes && test "$need_version" = no; then
5856 major=
5857 versuffix=
5858 verstring=""
5859 fi
5860
5861 # Check to see if the archive will have undefined symbols.
5862 if test "$allow_undefined" = yes; then
5863 if test "$allow_undefined_flag" = unsupported; then
5864 func_warning "undefined symbols not allowed in $host shared libraries"
5865 build_libtool_libs=no
5866 build_old_libs=yes
5867 fi
5868 else
5869 # Don't allow undefined symbols.
5870 allow_undefined_flag="$no_undefined_flag"
5871 fi
5872
5873 fi
5874
5875 func_generate_dlsyms "$libname" "$libname" "yes"
5876 libobjs="$libobjs $symfileobj"
5877 test "X$libobjs" = "X " && libobjs=
5878
5879 if test "$mode" != relink; then
5880 # Remove our outputs, but don't remove object files since they
5881 # may have been created when compiling PIC objects.
5882 removelist=
5883 tempremovelist=`$ECHO "$output_objdir/*"`
5884 for p in $tempremovelist; do
5885 case $p in
5886 *.$objext)
5887 ;;
5888 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
5889 if test "X$precious_files_regex" != "X"; then
5890 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
5891 then
5892 continue
5893 fi
5894 fi
5895 removelist="$removelist $p"
5896 ;;
5897 *) ;;
5898 esac
5899 done
5900 test -n "$removelist" && \
5901 func_show_eval "${RM}r \$removelist"
5902 fi
5903
5904 # Now set the variables for building old libraries.
5905 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
5906 oldlibs="$oldlibs $output_objdir/$libname.$libext"
5907
5908 # Transform .lo files to .o files.
5909 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
5910 fi
5911
5912 # Eliminate all temporary directories.
5913 #for path in $notinst_path; do
5914 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
5915 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
5916 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
5917 #done
5918
5919 if test -n "$xrpath"; then
5920 # If the user specified any rpath flags, then add them.
5921 temp_xrpath=
5922 for libdir in $xrpath; do
5923 temp_xrpath="$temp_xrpath -R$libdir"
5924 case "$finalize_rpath " in
5925 *" $libdir "*) ;;
5926 *) finalize_rpath="$finalize_rpath $libdir" ;;
5927 esac
5928 done
5929 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
5930 dependency_libs="$temp_xrpath $dependency_libs"
5931 fi
5932 fi
5933
5934 # Make sure dlfiles contains only unique files that won't be dlpreopened
5935 old_dlfiles="$dlfiles"
5936 dlfiles=
5937 for lib in $old_dlfiles; do
5938 case " $dlprefiles $dlfiles " in
5939 *" $lib "*) ;;
5940 *) dlfiles="$dlfiles $lib" ;;
5941 esac
5942 done
5943
5944 # Make sure dlprefiles contains only unique files
5945 old_dlprefiles="$dlprefiles"
5946 dlprefiles=
5947 for lib in $old_dlprefiles; do
5948 case "$dlprefiles " in
5949 *" $lib "*) ;;
5950 *) dlprefiles="$dlprefiles $lib" ;;
5951 esac
5952 done
5953
5954 if test "$build_libtool_libs" = yes; then
5955 if test -n "$rpath"; then
5956 case $host in
5957 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
5958 # these systems don't actually have a c library (as such)!
5959 ;;
5960 *-*-rhapsody* | *-*-darwin1.[012])
5961 # Rhapsody C library is in the System framework
5962 deplibs="$deplibs System.ltframework"
5963 ;;
5964 *-*-netbsd*)
5965 # Don't link with libc until the a.out ld.so is fixed.
5966 ;;
5967 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5968 # Do not include libc due to us having libc/libc_r.
5969 ;;
5970 *-*-sco3.2v5* | *-*-sco5v6*)
5971 # Causes problems with __ctype
5972 ;;
5973 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5974 # Compiler inserts libc in the correct place for threads to work
5975 ;;
5976 *)
5977 # Add libc to deplibs on all other systems if necessary.
5978 if test "$build_libtool_need_lc" = "yes"; then
5979 deplibs="$deplibs -lc"
5980 fi
5981 ;;
5982 esac
5983 fi
5984
5985 # Transform deplibs into only deplibs that can be linked in shared.
5986 name_save=$name
5987 libname_save=$libname
5988 release_save=$release
5989 versuffix_save=$versuffix
5990 major_save=$major
5991 # I'm not sure if I'm treating the release correctly. I think
5992 # release should show up in the -l (ie -lgmp5) so we don't want to
5993 # add it in twice. Is that correct?
5994 release=""
5995 versuffix=""
5996 major=""
5997 newdeplibs=
5998 droppeddeps=no
5999 case $deplibs_check_method in
6000 pass_all)
6001 # Don't check for shared/static. Everything works.
6002 # This might be a little naive. We might want to check
6003 # whether the library exists or not. But this is on
6004 # osf3 & osf4 and I'm not really sure... Just
6005 # implementing what was already the behavior.
6006 newdeplibs=$deplibs
6007 ;;
6008 test_compile)
6009 # This code stresses the "libraries are programs" paradigm to its
6010 # limits. Maybe even breaks it. We compile a program, linking it
6011 # against the deplibs as a proxy for the library. Then we can check
6012 # whether they linked in statically or dynamically with ldd.
6013 $opt_dry_run || $RM conftest.c
6014 cat > conftest.c <<EOF
6015 int main() { return 0; }
6016 EOF
6017 $opt_dry_run || $RM conftest
6018 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
6019 ldd_output=`ldd conftest`
6020 for i in $deplibs; do
6021 case $i in
6022 -l*)
6023 func_stripname -l '' "$i"
6024 name=$func_stripname_result
6025 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6026 case " $predeps $postdeps " in
6027 *" $i "*)
6028 newdeplibs="$newdeplibs $i"
6029 i=""
6030 ;;
6031 esac
6032 fi
6033 if test -n "$i" ; then
6034 libname=`eval "\\$ECHO \"$libname_spec\""`
6035 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6036 set dummy $deplib_matches; shift
6037 deplib_match=$1
6038 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6039 newdeplibs="$newdeplibs $i"
6040 else
6041 droppeddeps=yes
6042 $ECHO
6043 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6044 $ECHO "*** I have the capability to make that library automatically link in when"
6045 $ECHO "*** you link to this library. But I can only do this if you have a"
6046 $ECHO "*** shared version of the library, which I believe you do not have"
6047 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6048 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
6049 fi
6050 fi
6051 ;;
6052 *)
6053 newdeplibs="$newdeplibs $i"
6054 ;;
6055 esac
6056 done
6057 else
6058 # Error occurred in the first compile. Let's try to salvage
6059 # the situation: Compile a separate program for each library.
6060 for i in $deplibs; do
6061 case $i in
6062 -l*)
6063 func_stripname -l '' "$i"
6064 name=$func_stripname_result
6065 $opt_dry_run || $RM conftest
6066 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
6067 ldd_output=`ldd conftest`
6068 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6069 case " $predeps $postdeps " in
6070 *" $i "*)
6071 newdeplibs="$newdeplibs $i"
6072 i=""
6073 ;;
6074 esac
6075 fi
6076 if test -n "$i" ; then
6077 libname=`eval "\\$ECHO \"$libname_spec\""`
6078 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6079 set dummy $deplib_matches; shift
6080 deplib_match=$1
6081 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6082 newdeplibs="$newdeplibs $i"
6083 else
6084 droppeddeps=yes
6085 $ECHO
6086 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6087 $ECHO "*** I have the capability to make that library automatically link in when"
6088 $ECHO "*** you link to this library. But I can only do this if you have a"
6089 $ECHO "*** shared version of the library, which you do not appear to have"
6090 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6091 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
6092 fi
6093 fi
6094 else
6095 droppeddeps=yes
6096 $ECHO
6097 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6098 $ECHO "*** make it link in! You will probably need to install it or some"
6099 $ECHO "*** library that it depends on before this library will be fully"
6100 $ECHO "*** functional. Installing it before continuing would be even better."
6101 fi
6102 ;;
6103 *)
6104 newdeplibs="$newdeplibs $i"
6105 ;;
6106 esac
6107 done
6108 fi
6109 ;;
6110 file_magic*)
6111 set dummy $deplibs_check_method; shift
6112 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6113 for a_deplib in $deplibs; do
6114 case $a_deplib in
6115 -l*)
6116 func_stripname -l '' "$a_deplib"
6117 name=$func_stripname_result
6118 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6119 case " $predeps $postdeps " in
6120 *" $a_deplib "*)
6121 newdeplibs="$newdeplibs $a_deplib"
6122 a_deplib=""
6123 ;;
6124 esac
6125 fi
6126 if test -n "$a_deplib" ; then
6127 libname=`eval "\\$ECHO \"$libname_spec\""`
6128 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6129 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
6130 for potent_lib in $potential_libs; do
6131 # Follow soft links.
6132 if ls -lLd "$potent_lib" 2>/dev/null |
6133 $GREP " -> " >/dev/null; then
6134 continue
6135 fi
6136 # The statement above tries to avoid entering an
6137 # endless loop below, in case of cyclic links.
6138 # We might still enter an endless loop, since a link
6139 # loop can be closed while we follow links,
6140 # but so what?
6141 potlib="$potent_lib"
6142 while test -h "$potlib" 2>/dev/null; do
6143 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
6144 case $potliblink in
6145 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6146 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
6147 esac
6148 done
6149 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
6150 $SED -e 10q |
6151 $EGREP "$file_magic_regex" > /dev/null; then
6152 newdeplibs="$newdeplibs $a_deplib"
6153 a_deplib=""
6154 break 2
6155 fi
6156 done
6157 done
6158 fi
6159 if test -n "$a_deplib" ; then
6160 droppeddeps=yes
6161 $ECHO
6162 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6163 $ECHO "*** I have the capability to make that library automatically link in when"
6164 $ECHO "*** you link to this library. But I can only do this if you have a"
6165 $ECHO "*** shared version of the library, which you do not appear to have"
6166 $ECHO "*** because I did check the linker path looking for a file starting"
6167 if test -z "$potlib" ; then
6168 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
6169 else
6170 $ECHO "*** with $libname and none of the candidates passed a file format test"
6171 $ECHO "*** using a file magic. Last file checked: $potlib"
6172 fi
6173 fi
6174 ;;
6175 *)
6176 # Add a -L argument.
6177 newdeplibs="$newdeplibs $a_deplib"
6178 ;;
6179 esac
6180 done # Gone through all deplibs.
6181 ;;
6182 match_pattern*)
6183 set dummy $deplibs_check_method; shift
6184 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6185 for a_deplib in $deplibs; do
6186 case $a_deplib in
6187 -l*)
6188 func_stripname -l '' "$a_deplib"
6189 name=$func_stripname_result
6190 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6191 case " $predeps $postdeps " in
6192 *" $a_deplib "*)
6193 newdeplibs="$newdeplibs $a_deplib"
6194 a_deplib=""
6195 ;;
6196 esac
6197 fi
6198 if test -n "$a_deplib" ; then
6199 libname=`eval "\\$ECHO \"$libname_spec\""`
6200 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6201 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
6202 for potent_lib in $potential_libs; do
6203 potlib="$potent_lib" # see symlink-check above in file_magic test
6204 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
6205 $EGREP "$match_pattern_regex" > /dev/null; then
6206 newdeplibs="$newdeplibs $a_deplib"
6207 a_deplib=""
6208 break 2
6209 fi
6210 done
6211 done
6212 fi
6213 if test -n "$a_deplib" ; then
6214 droppeddeps=yes
6215 $ECHO
6216 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6217 $ECHO "*** I have the capability to make that library automatically link in when"
6218 $ECHO "*** you link to this library. But I can only do this if you have a"
6219 $ECHO "*** shared version of the library, which you do not appear to have"
6220 $ECHO "*** because I did check the linker path looking for a file starting"
6221 if test -z "$potlib" ; then
6222 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
6223 else
6224 $ECHO "*** with $libname and none of the candidates passed a file format test"
6225 $ECHO "*** using a regex pattern. Last file checked: $potlib"
6226 fi
6227 fi
6228 ;;
6229 *)
6230 # Add a -L argument.
6231 newdeplibs="$newdeplibs $a_deplib"
6232 ;;
6233 esac
6234 done # Gone through all deplibs.
6235 ;;
6236 none | unknown | *)
6237 newdeplibs=""
6238 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6239 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
6240 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6241 for i in $predeps $postdeps ; do
6242 # can't use Xsed below, because $i might contain '/'
6243 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
6244 done
6245 fi
6246 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6247 $GREP . >/dev/null; then
6248 $ECHO
6249 if test "X$deplibs_check_method" = "Xnone"; then
6250 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
6251 else
6252 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
6253 fi
6254 $ECHO "*** All declared inter-library dependencies are being dropped."
6255 droppeddeps=yes
6256 fi
6257 ;;
6258 esac
6259 versuffix=$versuffix_save
6260 major=$major_save
6261 release=$release_save
6262 libname=$libname_save
6263 name=$name_save
6264
6265 case $host in
6266 *-*-rhapsody* | *-*-darwin1.[012])
6267 # On Rhapsody replace the C library with the System framework
6268 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
6269 ;;
6270 esac
6271
6272 if test "$droppeddeps" = yes; then
6273 if test "$module" = yes; then
6274 $ECHO
6275 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
6276 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6277 $ECHO "*** a static module, that should work as long as the dlopening"
6278 $ECHO "*** application is linked with the -dlopen flag."
6279 if test -z "$global_symbol_pipe"; then
6280 $ECHO
6281 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6282 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6283 $ECHO "*** not find such a program. So, this module is probably useless."
6284 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
6285 fi
6286 if test "$build_old_libs" = no; then
6287 oldlibs="$output_objdir/$libname.$libext"
6288 build_libtool_libs=module
6289 build_old_libs=yes
6290 else
6291 build_libtool_libs=no
6292 fi
6293 else
6294 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6295 $ECHO "*** automatically added whenever a program is linked with this library"
6296 $ECHO "*** or is declared to -dlopen it."
6297
6298 if test "$allow_undefined" = no; then
6299 $ECHO
6300 $ECHO "*** Since this library must not contain undefined symbols,"
6301 $ECHO "*** because either the platform does not support them or"
6302 $ECHO "*** it was explicitly requested with -no-undefined,"
6303 $ECHO "*** libtool will only create a static version of it."
6304 if test "$build_old_libs" = no; then
6305 oldlibs="$output_objdir/$libname.$libext"
6306 build_libtool_libs=module
6307 build_old_libs=yes
6308 else
6309 build_libtool_libs=no
6310 fi
6311 fi
6312 fi
6313 fi
6314 # Done checking deplibs!
6315 deplibs=$newdeplibs
6316 fi
6317 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
6318 case $host in
6319 *-*-darwin*)
6320 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6321 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6322 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6323 ;;
6324 esac
6325
6326 # move library search paths that coincide with paths to not yet
6327 # installed libraries to the beginning of the library search list
6328 new_libs=
6329 for path in $notinst_path; do
6330 case " $new_libs " in
6331 *" -L$path/$objdir "*) ;;
6332 *)
6333 case " $deplibs " in
6334 *" -L$path/$objdir "*)
6335 new_libs="$new_libs -L$path/$objdir" ;;
6336 esac
6337 ;;
6338 esac
6339 done
6340 for deplib in $deplibs; do
6341 case $deplib in
6342 -L*)
6343 case " $new_libs " in
6344 *" $deplib "*) ;;
6345 *) new_libs="$new_libs $deplib" ;;
6346 esac
6347 ;;
6348 *) new_libs="$new_libs $deplib" ;;
6349 esac
6350 done
6351 deplibs="$new_libs"
6352
6353 # All the library-specific variables (install_libdir is set above).
6354 library_names=
6355 old_library=
6356 dlname=
6357
6358 # Test again, we may have decided not to build it any more
6359 if test "$build_libtool_libs" = yes; then
6360 if test "$hardcode_into_libs" = yes; then
6361 # Hardcode the library paths
6362 hardcode_libdirs=
6363 dep_rpath=
6364 rpath="$finalize_rpath"
6365 test "$mode" != relink && rpath="$compile_rpath$rpath"
6366 for libdir in $rpath; do
6367 if test -n "$hardcode_libdir_flag_spec"; then
6368 if test -n "$hardcode_libdir_separator"; then
6369 if test -z "$hardcode_libdirs"; then
6370 hardcode_libdirs="$libdir"
6371 else
6372 # Just accumulate the unique libdirs.
6373 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
6374 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
6375 ;;
6376 *)
6377 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
6378 ;;
6379 esac
6380 fi
6381 else
6382 eval flag=\"$hardcode_libdir_flag_spec\"
6383 dep_rpath="$dep_rpath $flag"
6384 fi
6385 elif test -n "$runpath_var"; then
6386 case "$perm_rpath " in
6387 *" $libdir "*) ;;
6388 *) perm_rpath="$perm_rpath $libdir" ;;
6389 esac
6390 fi
6391 done
6392 # Substitute the hardcoded libdirs into the rpath.
6393 if test -n "$hardcode_libdir_separator" &&
6394 test -n "$hardcode_libdirs"; then
6395 libdir="$hardcode_libdirs"
6396 if test -n "$hardcode_libdir_flag_spec_ld"; then
6397 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6398 else
6399 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6400 fi
6401 fi
6402 if test -n "$runpath_var" && test -n "$perm_rpath"; then
6403 # We should set the runpath_var.
6404 rpath=
6405 for dir in $perm_rpath; do
6406 rpath="$rpath$dir:"
6407 done
6408 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
6409 fi
6410 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
6411 fi
6412
6413 shlibpath="$finalize_shlibpath"
6414 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
6415 if test -n "$shlibpath"; then
6416 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
6417 fi
6418
6419 # Get the real and link names of the library.
6420 eval shared_ext=\"$shrext_cmds\"
6421 eval library_names=\"$library_names_spec\"
6422 set dummy $library_names
6423 shift
6424 realname="$1"
6425 shift
6426
6427 if test -n "$soname_spec"; then
6428 eval soname=\"$soname_spec\"
6429 else
6430 soname="$realname"
6431 fi
6432 if test -z "$dlname"; then
6433 dlname=$soname
6434 fi
6435
6436 lib="$output_objdir/$realname"
6437 linknames=
6438 for link
6439 do
6440 linknames="$linknames $link"
6441 done
6442
6443 # Use standard objects if they are pic
6444 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6445 test "X$libobjs" = "X " && libobjs=
6446
6447 delfiles=
6448 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6449 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
6450 export_symbols="$output_objdir/$libname.uexp"
6451 delfiles="$delfiles $export_symbols"
6452 fi
6453
6454 orig_export_symbols=
6455 case $host_os in
6456 cygwin* | mingw*)
6457 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
6458 # exporting using user supplied symfile
6459 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
6460 # and it's NOT already a .def file. Must figure out
6461 # which of the given symbols are data symbols and tag
6462 # them as such. So, trigger use of export_symbols_cmds.
6463 # export_symbols gets reassigned inside the "prepare
6464 # the list of exported symbols" if statement, so the
6465 # include_expsyms logic still works.
6466 orig_export_symbols="$export_symbols"
6467 export_symbols=
6468 always_export_symbols=yes
6469 fi
6470 fi
6471 ;;
6472 esac
6473
6474 # Prepare the list of exported symbols
6475 if test -z "$export_symbols"; then
6476 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
6477 func_verbose "generating symbol list for \`$libname.la'"
6478 export_symbols="$output_objdir/$libname.exp"
6479 $opt_dry_run || $RM $export_symbols
6480 cmds=$export_symbols_cmds
6481 save_ifs="$IFS"; IFS='~'
6482 for cmd in $cmds; do
6483 IFS="$save_ifs"
6484 eval cmd=\"$cmd\"
6485 func_len " $cmd"
6486 len=$func_len_result
6487 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
6488 func_show_eval "$cmd" 'exit $?'
6489 skipped_export=false
6490 else
6491 # The command line is too long to execute in one step.
6492 func_verbose "using reloadable object file for export list..."
6493 skipped_export=:
6494 # Break out early, otherwise skipped_export may be
6495 # set to false by a later but shorter cmd.
6496 break
6497 fi
6498 done
6499 IFS="$save_ifs"
6500 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
6501 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
6502 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
6503 fi
6504 fi
6505 fi
6506
6507 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6508 tmp_export_symbols="$export_symbols"
6509 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
6510 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
6511 fi
6512
6513 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
6514 # The given exports_symbols file has to be filtered, so filter it.
6515 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
6516 # FIXME: $output_objdir/$libname.filter potentially contains lots of
6517 # 's' commands which not all seds can handle. GNU sed should be fine
6518 # though. Also, the filter scales superlinearly with the number of
6519 # global variables. join(1) would be nice here, but unfortunately
6520 # isn't a blessed tool.
6521 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
6522 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
6523 export_symbols=$output_objdir/$libname.def
6524 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
6525 fi
6526
6527 tmp_deplibs=
6528 for test_deplib in $deplibs; do
6529 case " $convenience " in
6530 *" $test_deplib "*) ;;
6531 *)
6532 tmp_deplibs="$tmp_deplibs $test_deplib"
6533 ;;
6534 esac
6535 done
6536 deplibs="$tmp_deplibs"
6537
6538 if test -n "$convenience"; then
6539 if test -n "$whole_archive_flag_spec" &&
6540 test "$compiler_needs_object" = yes &&
6541 test -z "$libobjs"; then
6542 # extract the archives, so we have objects to list.
6543 # TODO: could optimize this to just extract one archive.
6544 whole_archive_flag_spec=
6545 fi
6546 if test -n "$whole_archive_flag_spec"; then
6547 save_libobjs=$libobjs
6548 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
6549 test "X$libobjs" = "X " && libobjs=
6550 else
6551 gentop="$output_objdir/${outputname}x"
6552 generated="$generated $gentop"
6553
6554 func_extract_archives $gentop $convenience
6555 libobjs="$libobjs $func_extract_archives_result"
6556 test "X$libobjs" = "X " && libobjs=
6557 fi
6558 fi
6559
6560 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
6561 eval flag=\"$thread_safe_flag_spec\"
6562 linker_flags="$linker_flags $flag"
6563 fi
6564
6565 # Make a backup of the uninstalled library when relinking
6566 if test "$mode" = relink; then
6567 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
6568 fi
6569
6570 # Do each of the archive commands.
6571 if test "$module" = yes && test -n "$module_cmds" ; then
6572 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
6573 eval test_cmds=\"$module_expsym_cmds\"
6574 cmds=$module_expsym_cmds
6575 else
6576 eval test_cmds=\"$module_cmds\"
6577 cmds=$module_cmds
6578 fi
6579 else
6580 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
6581 eval test_cmds=\"$archive_expsym_cmds\"
6582 cmds=$archive_expsym_cmds
6583 else
6584 eval test_cmds=\"$archive_cmds\"
6585 cmds=$archive_cmds
6586 fi
6587 fi
6588
6589 if test "X$skipped_export" != "X:" &&
6590 func_len " $test_cmds" &&
6591 len=$func_len_result &&
6592 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
6593 :
6594 else
6595 # The command line is too long to link in one step, link piecewise
6596 # or, if using GNU ld and skipped_export is not :, use a linker
6597 # script.
6598
6599 # Save the value of $output and $libobjs because we want to
6600 # use them later. If we have whole_archive_flag_spec, we
6601 # want to use save_libobjs as it was before
6602 # whole_archive_flag_spec was expanded, because we can't
6603 # assume the linker understands whole_archive_flag_spec.
6604 # This may have to be revisited, in case too many
6605 # convenience libraries get linked in and end up exceeding
6606 # the spec.
6607 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
6608 save_libobjs=$libobjs
6609 fi
6610 save_output=$output
6611 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
6612
6613 # Clear the reloadable object creation command queue and
6614 # initialize k to one.
6615 test_cmds=
6616 concat_cmds=
6617 objlist=
6618 last_robj=
6619 k=1
6620
6621 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
6622 output=${output_objdir}/${output_la}.lnkscript
6623 func_verbose "creating GNU ld script: $output"
6624 $ECHO 'INPUT (' > $output
6625 for obj in $save_libobjs
6626 do
6627 $ECHO "$obj" >> $output
6628 done
6629 $ECHO ')' >> $output
6630 delfiles="$delfiles $output"
6631 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
6632 output=${output_objdir}/${output_la}.lnk
6633 func_verbose "creating linker input file list: $output"
6634 : > $output
6635 set x $save_libobjs
6636 shift
6637 firstobj=
6638 if test "$compiler_needs_object" = yes; then
6639 firstobj="$1 "
6640 shift
6641 fi
6642 for obj
6643 do
6644 $ECHO "$obj" >> $output
6645 done
6646 delfiles="$delfiles $output"
6647 output=$firstobj\"$file_list_spec$output\"
6648 else
6649 if test -n "$save_libobjs"; then
6650 func_verbose "creating reloadable object files..."
6651 output=$output_objdir/$output_la-${k}.$objext
6652 eval test_cmds=\"$reload_cmds\"
6653 func_len " $test_cmds"
6654 len0=$func_len_result
6655 len=$len0
6656
6657 # Loop over the list of objects to be linked.
6658 for obj in $save_libobjs
6659 do
6660 func_len " $obj"
6661 func_arith $len + $func_len_result
6662 len=$func_arith_result
6663 if test "X$objlist" = X ||
6664 test "$len" -lt "$max_cmd_len"; then
6665 func_append objlist " $obj"
6666 else
6667 # The command $test_cmds is almost too long, add a
6668 # command to the queue.
6669 if test "$k" -eq 1 ; then
6670 # The first file doesn't have a previous command to add.
6671 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
6672 else
6673 # All subsequent reloadable object files will link in
6674 # the last one created.
6675 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
6676 fi
6677 last_robj=$output_objdir/$output_la-${k}.$objext
6678 func_arith $k + 1
6679 k=$func_arith_result
6680 output=$output_objdir/$output_la-${k}.$objext
6681 objlist=$obj
6682 func_len " $last_robj"
6683 func_arith $len0 + $func_len_result
6684 len=$func_arith_result
6685 fi
6686 done
6687 # Handle the remaining objects by creating one last
6688 # reloadable object file. All subsequent reloadable object
6689 # files will link in the last one created.
6690 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
6691 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
6692 if test -n "$last_robj"; then
6693 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
6694 fi
6695 delfiles="$delfiles $output"
6696
6697 else
6698 output=
6699 fi
6700
6701 if ${skipped_export-false}; then
6702 func_verbose "generating symbol list for \`$libname.la'"
6703 export_symbols="$output_objdir/$libname.exp"
6704 $opt_dry_run || $RM $export_symbols
6705 libobjs=$output
6706 # Append the command to create the export file.
6707 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
6708 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
6709 if test -n "$last_robj"; then
6710 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
6711 fi
6712 fi
6713
6714 test -n "$save_libobjs" &&
6715 func_verbose "creating a temporary reloadable object file: $output"
6716
6717 # Loop through the commands generated above and execute them.
6718 save_ifs="$IFS"; IFS='~'
6719 for cmd in $concat_cmds; do
6720 IFS="$save_ifs"
6721 $opt_silent || {
6722 func_quote_for_expand "$cmd"
6723 eval "func_echo $func_quote_for_expand_result"
6724 }
6725 $opt_dry_run || eval "$cmd" || {
6726 lt_exit=$?
6727
6728 # Restore the uninstalled library and exit
6729 if test "$mode" = relink; then
6730 ( cd "$output_objdir" && \
6731 $RM "${realname}T" && \
6732 $MV "${realname}U" "$realname" )
6733 fi
6734
6735 exit $lt_exit
6736 }
6737 done
6738 IFS="$save_ifs"
6739
6740 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
6741 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
6742 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
6743 fi
6744 fi
6745
6746 if ${skipped_export-false}; then
6747 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6748 tmp_export_symbols="$export_symbols"
6749 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
6750 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
6751 fi
6752
6753 if test -n "$orig_export_symbols"; then
6754 # The given exports_symbols file has to be filtered, so filter it.
6755 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
6756 # FIXME: $output_objdir/$libname.filter potentially contains lots of
6757 # 's' commands which not all seds can handle. GNU sed should be fine
6758 # though. Also, the filter scales superlinearly with the number of
6759 # global variables. join(1) would be nice here, but unfortunately
6760 # isn't a blessed tool.
6761 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
6762 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
6763 export_symbols=$output_objdir/$libname.def
6764 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
6765 fi
6766 fi
6767
6768 libobjs=$output
6769 # Restore the value of output.
6770 output=$save_output
6771
6772 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
6773 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
6774 test "X$libobjs" = "X " && libobjs=
6775 fi
6776 # Expand the library linking commands again to reset the
6777 # value of $libobjs for piecewise linking.
6778
6779 # Do each of the archive commands.
6780 if test "$module" = yes && test -n "$module_cmds" ; then
6781 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
6782 cmds=$module_expsym_cmds
6783 else
6784 cmds=$module_cmds
6785 fi
6786 else
6787 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
6788 cmds=$archive_expsym_cmds
6789 else
6790 cmds=$archive_cmds
6791 fi
6792 fi
6793 fi
6794
6795 if test -n "$delfiles"; then
6796 # Append the command to remove temporary files to $cmds.
6797 eval cmds=\"\$cmds~\$RM $delfiles\"
6798 fi
6799
6800 # Add any objects from preloaded convenience libraries
6801 if test -n "$dlprefiles"; then
6802 gentop="$output_objdir/${outputname}x"
6803 generated="$generated $gentop"
6804
6805 func_extract_archives $gentop $dlprefiles
6806 libobjs="$libobjs $func_extract_archives_result"
6807 test "X$libobjs" = "X " && libobjs=
6808 fi
6809
6810 save_ifs="$IFS"; IFS='~'
6811 for cmd in $cmds; do
6812 IFS="$save_ifs"
6813 eval cmd=\"$cmd\"
6814 $opt_silent || {
6815 func_quote_for_expand "$cmd"
6816 eval "func_echo $func_quote_for_expand_result"
6817 }
6818 $opt_dry_run || eval "$cmd" || {
6819 lt_exit=$?
6820
6821 # Restore the uninstalled library and exit
6822 if test "$mode" = relink; then
6823 ( cd "$output_objdir" && \
6824 $RM "${realname}T" && \
6825 $MV "${realname}U" "$realname" )
6826 fi
6827
6828 exit $lt_exit
6829 }
6830 done
6831 IFS="$save_ifs"
6832
6833 # Restore the uninstalled library and exit
6834 if test "$mode" = relink; then
6835 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
6836
6837 if test -n "$convenience"; then
6838 if test -z "$whole_archive_flag_spec"; then
6839 func_show_eval '${RM}r "$gentop"'
6840 fi
6841 fi
6842
6843 exit $EXIT_SUCCESS
6844 fi
6845
6846 # Create links to the real library.
6847 for linkname in $linknames; do
6848 if test "$realname" != "$linkname"; then
6849 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
6850 fi
6851 done
6852
6853 # If -module or -export-dynamic was specified, set the dlname.
6854 if test "$module" = yes || test "$export_dynamic" = yes; then
6855 # On all known operating systems, these are identical.
6856 dlname="$soname"
6857 fi
6858 fi
6859 ;;
6860
6861 obj)
6862 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
6863 func_warning "\`-dlopen' is ignored for objects"
6864 fi
6865
6866 case " $deplibs" in
6867 *\ -l* | *\ -L*)
6868 func_warning "\`-l' and \`-L' are ignored for objects" ;;
6869 esac
6870
6871 test -n "$rpath" && \
6872 func_warning "\`-rpath' is ignored for objects"
6873
6874 test -n "$xrpath" && \
6875 func_warning "\`-R' is ignored for objects"
6876
6877 test -n "$vinfo" && \
6878 func_warning "\`-version-info' is ignored for objects"
6879
6880 test -n "$release" && \
6881 func_warning "\`-release' is ignored for objects"
6882
6883 case $output in
6884 *.lo)
6885 test -n "$objs$old_deplibs" && \
6886 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
6887
6888 libobj=$output
6889 func_lo2o "$libobj"
6890 obj=$func_lo2o_result
6891 ;;
6892 *)
6893 libobj=
6894 obj="$output"
6895 ;;
6896 esac
6897
6898 # Delete the old objects.
6899 $opt_dry_run || $RM $obj $libobj
6900
6901 # Objects from convenience libraries. This assumes
6902 # single-version convenience libraries. Whenever we create
6903 # different ones for PIC/non-PIC, this we'll have to duplicate
6904 # the extraction.
6905 reload_conv_objs=
6906 gentop=
6907 # reload_cmds runs $LD directly, so let us get rid of
6908 # -Wl from whole_archive_flag_spec and hope we can get by with
6909 # turning comma into space..
6910 wl=
6911
6912 if test -n "$convenience"; then
6913 if test -n "$whole_archive_flag_spec"; then
6914 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
6915 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
6916 else
6917 gentop="$output_objdir/${obj}x"
6918 generated="$generated $gentop"
6919
6920 func_extract_archives $gentop $convenience
6921 reload_conv_objs="$reload_objs $func_extract_archives_result"
6922 fi
6923 fi
6924
6925 # Create the old-style object.
6926 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
6927
6928 output="$obj"
6929 func_execute_cmds "$reload_cmds" 'exit $?'
6930
6931 # Exit if we aren't doing a library object file.
6932 if test -z "$libobj"; then
6933 if test -n "$gentop"; then
6934 func_show_eval '${RM}r "$gentop"'
6935 fi
6936
6937 exit $EXIT_SUCCESS
6938 fi
6939
6940 if test "$build_libtool_libs" != yes; then
6941 if test -n "$gentop"; then
6942 func_show_eval '${RM}r "$gentop"'
6943 fi
6944
6945 # Create an invalid libtool object if no PIC, so that we don't
6946 # accidentally link it into a program.
6947 # $show "echo timestamp > $libobj"
6948 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
6949 exit $EXIT_SUCCESS
6950 fi
6951
6952 if test -n "$pic_flag" || test "$pic_mode" != default; then
6953 # Only do commands if we really have different PIC objects.
6954 reload_objs="$libobjs $reload_conv_objs"
6955 output="$libobj"
6956 func_execute_cmds "$reload_cmds" 'exit $?'
6957 fi
6958
6959 if test -n "$gentop"; then
6960 func_show_eval '${RM}r "$gentop"'
6961 fi
6962
6963 exit $EXIT_SUCCESS
6964 ;;
6965
6966 prog)
6967 case $host in
6968 *cygwin*) func_stripname '' '.exe' "$output"
6969 output=$func_stripname_result.exe;;
6970 esac
6971 test -n "$vinfo" && \
6972 func_warning "\`-version-info' is ignored for programs"
6973
6974 test -n "$release" && \
6975 func_warning "\`-release' is ignored for programs"
6976
6977 test "$preload" = yes \
6978 && test "$dlopen_support" = unknown \
6979 && test "$dlopen_self" = unknown \
6980 && test "$dlopen_self_static" = unknown && \
6981 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
6982
6983 case $host in
6984 *-*-rhapsody* | *-*-darwin1.[012])
6985 # On Rhapsody replace the C library is the System framework
6986 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
6987 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
6988 ;;
6989 esac
6990
6991 case $host in
6992 *-*-darwin*)
6993 # Don't allow lazy linking, it breaks C++ global constructors
6994 # But is supposedly fixed on 10.4 or later (yay!).
6995 if test "$tagname" = CXX ; then
6996 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
6997 10.[0123])
6998 compile_command="$compile_command ${wl}-bind_at_load"
6999 finalize_command="$finalize_command ${wl}-bind_at_load"
7000 ;;
7001 esac
7002 fi
7003 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7004 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7005 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7006 ;;
7007 esac
7008
7009
7010 # move library search paths that coincide with paths to not yet
7011 # installed libraries to the beginning of the library search list
7012 new_libs=
7013 for path in $notinst_path; do
7014 case " $new_libs " in
7015 *" -L$path/$objdir "*) ;;
7016 *)
7017 case " $compile_deplibs " in
7018 *" -L$path/$objdir "*)
7019 new_libs="$new_libs -L$path/$objdir" ;;
7020 esac
7021 ;;
7022 esac
7023 done
7024 for deplib in $compile_deplibs; do
7025 case $deplib in
7026 -L*)
7027 case " $new_libs " in
7028 *" $deplib "*) ;;
7029 *) new_libs="$new_libs $deplib" ;;
7030 esac
7031 ;;
7032 *) new_libs="$new_libs $deplib" ;;
7033 esac
7034 done
7035 compile_deplibs="$new_libs"
7036
7037
7038 compile_command="$compile_command $compile_deplibs"
7039 finalize_command="$finalize_command $finalize_deplibs"
7040
7041 if test -n "$rpath$xrpath"; then
7042 # If the user specified any rpath flags, then add them.
7043 for libdir in $rpath $xrpath; do
7044 # This is the magic to use -rpath.
7045 case "$finalize_rpath " in
7046 *" $libdir "*) ;;
7047 *) finalize_rpath="$finalize_rpath $libdir" ;;
7048 esac
7049 done
7050 fi
7051
7052 # Now hardcode the library paths
7053 rpath=
7054 hardcode_libdirs=
7055 for libdir in $compile_rpath $finalize_rpath; do
7056 if test -n "$hardcode_libdir_flag_spec"; then
7057 if test -n "$hardcode_libdir_separator"; then
7058 if test -z "$hardcode_libdirs"; then
7059 hardcode_libdirs="$libdir"
7060 else
7061 # Just accumulate the unique libdirs.
7062 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
7063 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
7064 ;;
7065 *)
7066 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
7067 ;;
7068 esac
7069 fi
7070 else
7071 eval flag=\"$hardcode_libdir_flag_spec\"
7072 rpath="$rpath $flag"
7073 fi
7074 elif test -n "$runpath_var"; then
7075 case "$perm_rpath " in
7076 *" $libdir "*) ;;
7077 *) perm_rpath="$perm_rpath $libdir" ;;
7078 esac
7079 fi
7080 case $host in
7081 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7082 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
7083 case :$dllsearchpath: in
7084 *":$libdir:"*) ;;
7085 *) dllsearchpath="$dllsearchpath:$libdir";;
7086 esac
7087 case :$dllsearchpath: in
7088 *":$testbindir:"*) ;;
7089 *) dllsearchpath="$dllsearchpath:$testbindir";;
7090 esac
7091 ;;
7092 esac
7093 done
7094 # Substitute the hardcoded libdirs into the rpath.
7095 if test -n "$hardcode_libdir_separator" &&
7096 test -n "$hardcode_libdirs"; then
7097 libdir="$hardcode_libdirs"
7098 eval rpath=\" $hardcode_libdir_flag_spec\"
7099 fi
7100 compile_rpath="$rpath"
7101
7102 rpath=
7103 hardcode_libdirs=
7104 for libdir in $finalize_rpath; do
7105 if test -n "$hardcode_libdir_flag_spec"; then
7106 if test -n "$hardcode_libdir_separator"; then
7107 if test -z "$hardcode_libdirs"; then
7108 hardcode_libdirs="$libdir"
7109 else
7110 # Just accumulate the unique libdirs.
7111 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
7112 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
7113 ;;
7114 *)
7115 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
7116 ;;
7117 esac
7118 fi
7119 else
7120 eval flag=\"$hardcode_libdir_flag_spec\"
7121 rpath="$rpath $flag"
7122 fi
7123 elif test -n "$runpath_var"; then
7124 case "$finalize_perm_rpath " in
7125 *" $libdir "*) ;;
7126 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
7127 esac
7128 fi
7129 done
7130 # Substitute the hardcoded libdirs into the rpath.
7131 if test -n "$hardcode_libdir_separator" &&
7132 test -n "$hardcode_libdirs"; then
7133 libdir="$hardcode_libdirs"
7134 eval rpath=\" $hardcode_libdir_flag_spec\"
7135 fi
7136 finalize_rpath="$rpath"
7137
7138 if test -n "$libobjs" && test "$build_old_libs" = yes; then
7139 # Transform all the library objects into standard objects.
7140 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7141 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7142 fi
7143
7144 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
7145
7146 # template prelinking step
7147 if test -n "$prelink_cmds"; then
7148 func_execute_cmds "$prelink_cmds" 'exit $?'
7149 fi
7150
7151 wrappers_required=yes
7152 case $host in
7153 *cygwin* | *mingw* )
7154 if test "$build_libtool_libs" != yes; then
7155 wrappers_required=no
7156 fi
7157 ;;
7158 *)
7159 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
7160 wrappers_required=no
7161 fi
7162 ;;
7163 esac
7164 if test "$wrappers_required" = no; then
7165 # Replace the output file specification.
7166 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7167 link_command="$compile_command$compile_rpath"
7168
7169 # We have no uninstalled library dependencies, so finalize right now.
7170 exit_status=0
7171 func_show_eval "$link_command" 'exit_status=$?'
7172
7173 # Delete the generated files.
7174 if test -f "$output_objdir/${outputname}S.${objext}"; then
7175 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
7176 fi
7177
7178 exit $exit_status
7179 fi
7180
7181 if test -n "$compile_shlibpath$finalize_shlibpath"; then
7182 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
7183 fi
7184 if test -n "$finalize_shlibpath"; then
7185 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
7186 fi
7187
7188 compile_var=
7189 finalize_var=
7190 if test -n "$runpath_var"; then
7191 if test -n "$perm_rpath"; then
7192 # We should set the runpath_var.
7193 rpath=
7194 for dir in $perm_rpath; do
7195 rpath="$rpath$dir:"
7196 done
7197 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
7198 fi
7199 if test -n "$finalize_perm_rpath"; then
7200 # We should set the runpath_var.
7201 rpath=
7202 for dir in $finalize_perm_rpath; do
7203 rpath="$rpath$dir:"
7204 done
7205 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
7206 fi
7207 fi
7208
7209 if test "$no_install" = yes; then
7210 # We don't need to create a wrapper script.
7211 link_command="$compile_var$compile_command$compile_rpath"
7212 # Replace the output file specification.
7213 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7214 # Delete the old output file.
7215 $opt_dry_run || $RM $output
7216 # Link the executable and exit
7217 func_show_eval "$link_command" 'exit $?'
7218 exit $EXIT_SUCCESS
7219 fi
7220
7221 if test "$hardcode_action" = relink; then
7222 # Fast installation is not supported
7223 link_command="$compile_var$compile_command$compile_rpath"
7224 relink_command="$finalize_var$finalize_command$finalize_rpath"
7225
7226 func_warning "this platform does not like uninstalled shared libraries"
7227 func_warning "\`$output' will be relinked during installation"
7228 else
7229 if test "$fast_install" != no; then
7230 link_command="$finalize_var$compile_command$finalize_rpath"
7231 if test "$fast_install" = yes; then
7232 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
7233 else
7234 # fast_install is set to needless
7235 relink_command=
7236 fi
7237 else
7238 link_command="$compile_var$compile_command$compile_rpath"
7239 relink_command="$finalize_var$finalize_command$finalize_rpath"
7240 fi
7241 fi
7242
7243 # Replace the output file specification.
7244 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7245
7246 # Delete the old output files.
7247 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
7248
7249 func_show_eval "$link_command" 'exit $?'
7250
7251 # Now create the wrapper script.
7252 func_verbose "creating $output"
7253
7254 # Quote the relink command for shipping.
7255 if test -n "$relink_command"; then
7256 # Preserve any variables that may affect compiler behavior
7257 for var in $variables_saved_for_relink; do
7258 if eval test -z \"\${$var+set}\"; then
7259 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
7260 elif eval var_value=\$$var; test -z "$var_value"; then
7261 relink_command="$var=; export $var; $relink_command"
7262 else
7263 func_quote_for_eval "$var_value"
7264 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
7265 fi
7266 done
7267 relink_command="(cd `pwd`; $relink_command)"
7268 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7269 fi
7270
7271 # Quote $ECHO for shipping.
7272 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7273 case $progpath in
7274 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7275 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7276 esac
7277 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7278 else
7279 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
7280 fi
7281
7282 # Only actually do things if not in dry run mode.
7283 $opt_dry_run || {
7284 # win32 will think the script is a binary if it has
7285 # a .exe suffix, so we strip it off here.
7286 case $output in
7287 *.exe) func_stripname '' '.exe' "$output"
7288 output=$func_stripname_result ;;
7289 esac
7290 # test for cygwin because mv fails w/o .exe extensions
7291 case $host in
7292 *cygwin*)
7293 exeext=.exe
7294 func_stripname '' '.exe' "$outputname"
7295 outputname=$func_stripname_result ;;
7296 *) exeext= ;;
7297 esac
7298 case $host in
7299 *cygwin* | *mingw* )
7300 func_dirname_and_basename "$output" "" "."
7301 output_name=$func_basename_result
7302 output_path=$func_dirname_result
7303 cwrappersource="$output_path/$objdir/lt-$output_name.c"
7304 cwrapper="$output_path/$output_name.exe"
7305 $RM $cwrappersource $cwrapper
7306 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
7307
7308 func_emit_cwrapperexe_src > $cwrappersource
7309
7310 # we should really use a build-platform specific compiler
7311 # here, but OTOH, the wrappers (shell script and this C one)
7312 # are only useful if you want to execute the "real" binary.
7313 # Since the "real" binary is built for $host, then this
7314 # wrapper might as well be built for $host, too.
7315 $opt_dry_run || {
7316 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
7317 $STRIP $cwrapper
7318 }
7319
7320 # Now, create the wrapper script for func_source use:
7321 func_ltwrapper_scriptname $cwrapper
7322 $RM $func_ltwrapper_scriptname_result
7323 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
7324 $opt_dry_run || {
7325 # note: this script will not be executed, so do not chmod.
7326 if test "x$build" = "x$host" ; then
7327 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
7328 else
7329 func_emit_wrapper no > $func_ltwrapper_scriptname_result
7330 fi
7331 }
7332 ;;
7333 * )
7334 $RM $output
7335 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
7336
7337 func_emit_wrapper no > $output
7338 chmod +x $output
7339 ;;
7340 esac
7341 }
7342 exit $EXIT_SUCCESS
7343 ;;
7344 esac
7345
7346 # See if we need to build an old-fashioned archive.
7347 for oldlib in $oldlibs; do
7348
7349 if test "$build_libtool_libs" = convenience; then
7350 oldobjs="$libobjs_save $symfileobj"
7351 addlibs="$convenience"
7352 build_libtool_libs=no
7353 else
7354 if test "$build_libtool_libs" = module; then
7355 oldobjs="$libobjs_save"
7356 build_libtool_libs=no
7357 else
7358 oldobjs="$old_deplibs $non_pic_objects"
7359 if test "$preload" = yes && test -f "$symfileobj"; then
7360 oldobjs="$oldobjs $symfileobj"
7361 fi
7362 fi
7363 addlibs="$old_convenience"
7364 fi
7365
7366 if test -n "$addlibs"; then
7367 gentop="$output_objdir/${outputname}x"
7368 generated="$generated $gentop"
7369
7370 func_extract_archives $gentop $addlibs
7371 oldobjs="$oldobjs $func_extract_archives_result"
7372 fi
7373
7374 # Do each command in the archive commands.
7375 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
7376 cmds=$old_archive_from_new_cmds
7377 else
7378
7379 # Add any objects from preloaded convenience libraries
7380 if test -n "$dlprefiles"; then
7381 gentop="$output_objdir/${outputname}x"
7382 generated="$generated $gentop"
7383
7384 func_extract_archives $gentop $dlprefiles
7385 oldobjs="$oldobjs $func_extract_archives_result"
7386 fi
7387
7388 # POSIX demands no paths to be encoded in archives. We have
7389 # to avoid creating archives with duplicate basenames if we
7390 # might have to extract them afterwards, e.g., when creating a
7391 # static archive out of a convenience library, or when linking
7392 # the entirety of a libtool archive into another (currently
7393 # not supported by libtool).
7394 if (for obj in $oldobjs
7395 do
7396 func_basename "$obj"
7397 $ECHO "$func_basename_result"
7398 done | sort | sort -uc >/dev/null 2>&1); then
7399 :
7400 else
7401 $ECHO "copying selected object files to avoid basename conflicts..."
7402 gentop="$output_objdir/${outputname}x"
7403 generated="$generated $gentop"
7404 func_mkdir_p "$gentop"
7405 save_oldobjs=$oldobjs
7406 oldobjs=
7407 counter=1
7408 for obj in $save_oldobjs
7409 do
7410 func_basename "$obj"
7411 objbase="$func_basename_result"
7412 case " $oldobjs " in
7413 " ") oldobjs=$obj ;;
7414 *[\ /]"$objbase "*)
7415 while :; do
7416 # Make sure we don't pick an alternate name that also
7417 # overlaps.
7418 newobj=lt$counter-$objbase
7419 func_arith $counter + 1
7420 counter=$func_arith_result
7421 case " $oldobjs " in
7422 *[\ /]"$newobj "*) ;;
7423 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
7424 esac
7425 done
7426 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7427 oldobjs="$oldobjs $gentop/$newobj"
7428 ;;
7429 *) oldobjs="$oldobjs $obj" ;;
7430 esac
7431 done
7432 fi
7433 eval cmds=\"$old_archive_cmds\"
7434
7435 func_len " $cmds"
7436 len=$func_len_result
7437 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7438 cmds=$old_archive_cmds
7439 else
7440 # the command line is too long to link in one step, link in parts
7441 func_verbose "using piecewise archive linking..."
7442 save_RANLIB=$RANLIB
7443 RANLIB=:
7444 objlist=
7445 concat_cmds=
7446 save_oldobjs=$oldobjs
7447 oldobjs=
7448 # Is there a better way of finding the last object in the list?
7449 for obj in $save_oldobjs
7450 do
7451 last_oldobj=$obj
7452 done
7453 eval test_cmds=\"$old_archive_cmds\"
7454 func_len " $test_cmds"
7455 len0=$func_len_result
7456 len=$len0
7457 for obj in $save_oldobjs
7458 do
7459 func_len " $obj"
7460 func_arith $len + $func_len_result
7461 len=$func_arith_result
7462 func_append objlist " $obj"
7463 if test "$len" -lt "$max_cmd_len"; then
7464 :
7465 else
7466 # the above command should be used before it gets too long
7467 oldobjs=$objlist
7468 if test "$obj" = "$last_oldobj" ; then
7469 RANLIB=$save_RANLIB
7470 fi
7471 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7472 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
7473 objlist=
7474 len=$len0
7475 fi
7476 done
7477 RANLIB=$save_RANLIB
7478 oldobjs=$objlist
7479 if test "X$oldobjs" = "X" ; then
7480 eval cmds=\"\$concat_cmds\"
7481 else
7482 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
7483 fi
7484 fi
7485 fi
7486 func_execute_cmds "$cmds" 'exit $?'
7487 done
7488
7489 test -n "$generated" && \
7490 func_show_eval "${RM}r$generated"
7491
7492 # Now create the libtool archive.
7493 case $output in
7494 *.la)
7495 old_library=
7496 test "$build_old_libs" = yes && old_library="$libname.$libext"
7497 func_verbose "creating $output"
7498
7499 # Preserve any variables that may affect compiler behavior
7500 for var in $variables_saved_for_relink; do
7501 if eval test -z \"\${$var+set}\"; then
7502 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
7503 elif eval var_value=\$$var; test -z "$var_value"; then
7504 relink_command="$var=; export $var; $relink_command"
7505 else
7506 func_quote_for_eval "$var_value"
7507 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
7508 fi
7509 done
7510 # Quote the link command for shipping.
7511 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
7512 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7513 if test "$hardcode_automatic" = yes ; then
7514 relink_command=
7515 fi
7516
7517 # Only create the output if not a dry run.
7518 $opt_dry_run || {
7519 for installed in no yes; do
7520 if test "$installed" = yes; then
7521 if test -z "$install_libdir"; then
7522 break
7523 fi
7524 output="$output_objdir/$outputname"i
7525 # Replace all uninstalled libtool libraries with the installed ones
7526 newdependency_libs=
7527 for deplib in $dependency_libs; do
7528 case $deplib in
7529 *.la)
7530 func_basename "$deplib"
7531 name="$func_basename_result"
7532 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7533 test -z "$libdir" && \
7534 func_fatal_error "\`$deplib' is not a valid libtool archive"
7535 newdependency_libs="$newdependency_libs $libdir/$name"
7536 ;;
7537 *) newdependency_libs="$newdependency_libs $deplib" ;;
7538 esac
7539 done
7540 dependency_libs="$newdependency_libs"
7541 newdlfiles=
7542
7543 for lib in $dlfiles; do
7544 case $lib in
7545 *.la)
7546 func_basename "$lib"
7547 name="$func_basename_result"
7548 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
7549 test -z "$libdir" && \
7550 func_fatal_error "\`$lib' is not a valid libtool archive"
7551 newdlfiles="$newdlfiles $libdir/$name"
7552 ;;
7553 *) newdlfiles="$newdlfiles $lib" ;;
7554 esac
7555 done
7556 dlfiles="$newdlfiles"
7557 newdlprefiles=
7558 for lib in $dlprefiles; do
7559 case $lib in
7560 *.la)
7561 # Only pass preopened files to the pseudo-archive (for
7562 # eventual linking with the app. that links it) if we
7563 # didn't already link the preopened objects directly into
7564 # the library:
7565 func_basename "$lib"
7566 name="$func_basename_result"
7567 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
7568 test -z "$libdir" && \
7569 func_fatal_error "\`$lib' is not a valid libtool archive"
7570 newdlprefiles="$newdlprefiles $libdir/$name"
7571 ;;
7572 esac
7573 done
7574 dlprefiles="$newdlprefiles"
7575 else
7576 newdlfiles=
7577 for lib in $dlfiles; do
7578 case $lib in
7579 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
7580 *) abs=`pwd`"/$lib" ;;
7581 esac
7582 newdlfiles="$newdlfiles $abs"
7583 done
7584 dlfiles="$newdlfiles"
7585 newdlprefiles=
7586 for lib in $dlprefiles; do
7587 case $lib in
7588 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
7589 *) abs=`pwd`"/$lib" ;;
7590 esac
7591 newdlprefiles="$newdlprefiles $abs"
7592 done
7593 dlprefiles="$newdlprefiles"
7594 fi
7595 $RM $output
7596 # place dlname in correct position for cygwin
7597 tdlname=$dlname
7598 case $host,$output,$installed,$module,$dlname in
7599 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
7600 esac
7601 $ECHO > $output "\
7602 # $outputname - a libtool library file
7603 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
7604 #
7605 # Please DO NOT delete this file!
7606 # It is necessary for linking the library.
7607
7608 # The name that we can dlopen(3).
7609 dlname='$tdlname'
7610
7611 # Names of this library.
7612 library_names='$library_names'
7613
7614 # The name of the static archive.
7615 old_library='$old_library'
7616
7617 # Linker flags that can not go in dependency_libs.
7618 inherited_linker_flags='$new_inherited_linker_flags'
7619
7620 # Libraries that this one depends upon.
7621 dependency_libs='$dependency_libs'
7622
7623 # Names of additional weak libraries provided by this library
7624 weak_library_names='$weak_libs'
7625
7626 # Version information for $libname.
7627 current=$current
7628 age=$age
7629 revision=$revision
7630
7631 # Is this an already installed library?
7632 installed=$installed
7633
7634 # Should we warn about portability when linking against -modules?
7635 shouldnotlink=$module
7636
7637 # Files to dlopen/dlpreopen
7638 dlopen='$dlfiles'
7639 dlpreopen='$dlprefiles'
7640
7641 # Directory that this library needs to be installed in:
7642 libdir='$install_libdir'"
7643 if test "$installed" = no && test "$need_relink" = yes; then
7644 $ECHO >> $output "\
7645 relink_command=\"$relink_command\""
7646 fi
7647 done
7648 }
7649
7650 # Do a symbolic link so that the libtool archive can be found in
7651 # LD_LIBRARY_PATH before the program is installed.
7652 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
7653 ;;
7654 esac
7655 exit $EXIT_SUCCESS
7656 }
7657
7658 { test "$mode" = link || test "$mode" = relink; } &&
7659 func_mode_link ${1+"$@"}
7660
7661
7662 # func_mode_uninstall arg...
7663 func_mode_uninstall ()
7664 {
7665 $opt_debug
7666 RM="$nonopt"
7667 files=
7668 rmforce=
7669 exit_status=0
7670
7671 # This variable tells wrapper scripts just to set variables rather
7672 # than running their programs.
7673 libtool_install_magic="$magic"
7674
7675 for arg
7676 do
7677 case $arg in
7678 -f) RM="$RM $arg"; rmforce=yes ;;
7679 -*) RM="$RM $arg" ;;
7680 *) files="$files $arg" ;;
7681 esac
7682 done
7683
7684 test -z "$RM" && \
7685 func_fatal_help "you must specify an RM program"
7686
7687 rmdirs=
7688
7689 origobjdir="$objdir"
7690 for file in $files; do
7691 func_dirname "$file" "" "."
7692 dir="$func_dirname_result"
7693 if test "X$dir" = X.; then
7694 objdir="$origobjdir"
7695 else
7696 objdir="$dir/$origobjdir"
7697 fi
7698 func_basename "$file"
7699 name="$func_basename_result"
7700 test "$mode" = uninstall && objdir="$dir"
7701
7702 # Remember objdir for removal later, being careful to avoid duplicates
7703 if test "$mode" = clean; then
7704 case " $rmdirs " in
7705 *" $objdir "*) ;;
7706 *) rmdirs="$rmdirs $objdir" ;;
7707 esac
7708 fi
7709
7710 # Don't error if the file doesn't exist and rm -f was used.
7711 if { test -L "$file"; } >/dev/null 2>&1 ||
7712 { test -h "$file"; } >/dev/null 2>&1 ||
7713 test -f "$file"; then
7714 :
7715 elif test -d "$file"; then
7716 exit_status=1
7717 continue
7718 elif test "$rmforce" = yes; then
7719 continue
7720 fi
7721
7722 rmfiles="$file"
7723
7724 case $name in
7725 *.la)
7726 # Possibly a libtool archive, so verify it.
7727 if func_lalib_p "$file"; then
7728 func_source $dir/$name
7729
7730 # Delete the libtool libraries and symlinks.
7731 for n in $library_names; do
7732 rmfiles="$rmfiles $objdir/$n"
7733 done
7734 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
7735
7736 case "$mode" in
7737 clean)
7738 case " $library_names " in
7739 # " " in the beginning catches empty $dlname
7740 *" $dlname "*) ;;
7741 *) rmfiles="$rmfiles $objdir/$dlname" ;;
7742 esac
7743 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
7744 ;;
7745 uninstall)
7746 if test -n "$library_names"; then
7747 # Do each command in the postuninstall commands.
7748 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
7749 fi
7750
7751 if test -n "$old_library"; then
7752 # Do each command in the old_postuninstall commands.
7753 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
7754 fi
7755 # FIXME: should reinstall the best remaining shared library.
7756 ;;
7757 esac
7758 fi
7759 ;;
7760
7761 *.lo)
7762 # Possibly a libtool object, so verify it.
7763 if func_lalib_p "$file"; then
7764
7765 # Read the .lo file
7766 func_source $dir/$name
7767
7768 # Add PIC object to the list of files to remove.
7769 if test -n "$pic_object" &&
7770 test "$pic_object" != none; then
7771 rmfiles="$rmfiles $dir/$pic_object"
7772 fi
7773
7774 # Add non-PIC object to the list of files to remove.
7775 if test -n "$non_pic_object" &&
7776 test "$non_pic_object" != none; then
7777 rmfiles="$rmfiles $dir/$non_pic_object"
7778 fi
7779 fi
7780 ;;
7781
7782 *)
7783 if test "$mode" = clean ; then
7784 noexename=$name
7785 case $file in
7786 *.exe)
7787 func_stripname '' '.exe' "$file"
7788 file=$func_stripname_result
7789 func_stripname '' '.exe' "$name"
7790 noexename=$func_stripname_result
7791 # $file with .exe has already been added to rmfiles,
7792 # add $file without .exe
7793 rmfiles="$rmfiles $file"
7794 ;;
7795 esac
7796 # Do a test to see if this is a libtool program.
7797 if func_ltwrapper_p "$file"; then
7798 if func_ltwrapper_executable_p "$file"; then
7799 func_ltwrapper_scriptname "$file"
7800 relink_command=
7801 func_source $func_ltwrapper_scriptname_result
7802 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
7803 else
7804 relink_command=
7805 func_source $dir/$noexename
7806 fi
7807
7808 # note $name still contains .exe if it was in $file originally
7809 # as does the version of $file that was added into $rmfiles
7810 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
7811 if test "$fast_install" = yes && test -n "$relink_command"; then
7812 rmfiles="$rmfiles $objdir/lt-$name"
7813 fi
7814 if test "X$noexename" != "X$name" ; then
7815 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
7816 fi
7817 fi
7818 fi
7819 ;;
7820 esac
7821 func_show_eval "$RM $rmfiles" 'exit_status=1'
7822 done
7823 objdir="$origobjdir"
7824
7825 # Try to remove the ${objdir}s in the directories where we deleted files
7826 for dir in $rmdirs; do
7827 if test -d "$dir"; then
7828 func_show_eval "rmdir $dir >/dev/null 2>&1"
7829 fi
7830 done
7831
7832 exit $exit_status
7833 }
7834
7835 { test "$mode" = uninstall || test "$mode" = clean; } &&
7836 func_mode_uninstall ${1+"$@"}
7837
7838 test -z "$mode" && {
7839 help="$generic_help"
7840 func_fatal_help "you must specify a MODE"
7841 }
7842
7843 test -z "$exec_cmd" && \
7844 func_fatal_help "invalid operation mode \`$mode'"
7845
7846 if test -n "$exec_cmd"; then
7847 eval exec "$exec_cmd"
7848 exit $EXIT_FAILURE
7849 fi
7850
7851 exit $exit_status
7852
7853
7854 # The TAGs below are defined such that we never get into a situation
7855 # in which we disable both kinds of libraries. Given conflicting
7856 # choices, we go for a static library, that is the most portable,
7857 # since we can't tell whether shared libraries were disabled because
7858 # the user asked for that or because the platform doesn't support
7859 # them. This is particularly important on AIX, because we don't
7860 # support having both static and shared libraries enabled at the same
7861 # time on that platform, so we default to a shared-only configuration.
7862 # If a disable-shared tag is given, we'll fallback to a static-only
7863 # configuration. But we'll never go from static-only to shared-only.
7864
7865 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
7866 build_libtool_libs=no
7867 build_old_libs=yes
7868 # ### END LIBTOOL TAG CONFIG: disable-shared
7869
7870 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
7871 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
7872 # ### END LIBTOOL TAG CONFIG: disable-static
7873
7874 # Local Variables:
7875 # mode:shell-script
7876 # sh-indentation:2
7877 # End:
7878 # vi:sw=2
7879
+0
-227
maint-helper.py less more
0 #!/usr/bin/env python
1
2 # Copyright (C) 2007, Red Hat, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18 # Latest source available at git://dev.laptop.org/sugar
19
20 import os
21 import sys
22 import re
23 import datetime
24 import subprocess
25
26 source_exts = [ '.py', '.c', '.h', '.cpp' ]
27
28 def is_source(path):
29 for ext in source_exts:
30 if path.endswith(ext):
31 return True
32
33 def get_name_and_version():
34 f = open('configure.ac', 'r')
35 config = f.read()
36 f.close()
37
38 exp = 'AC_INIT\(\[[^\]]+\],\[([^\]]+)\],\[\],\[([^\]]+)\]'
39 match = re.search(exp, config)
40 if not match:
41 print 'Cannot find the package name and version.'
42 sys.exit(0)
43
44 return [ match.group(2), match.group(1) ]
45
46 def cmd_help():
47 print 'Usage: \n\
48 maint-helper.py build-snapshot - build a source snapshot \n\
49 maint-helper.py fix-copyright [path] - fix the copyright year \n\
50 maint-helper.py check-licenses - check licenses in the source'
51
52 def cmd_build_snapshot():
53 [ name, version ] = get_name_and_version()
54
55 print 'Update git...'
56
57 retcode = subprocess.call(['git', 'pull'])
58 if retcode:
59 print 'ERROR - cannot pull from git'
60
61 cmd = 'git-show-ref --hash=10 refs/heads/master'
62 alphatag = os.popen(cmd).readline().strip()
63
64 tarball = '%s-%s-git%s.tar.bz2' % (name, version, alphatag)
65
66 print 'Build %s...' % tarball
67
68 retcode = subprocess.call(['make', 'distcheck'])
69 if retcode:
70 sys.exit(0)
71
72 if 'JOYBUILD_PATH' in os.environ:
73 tarball = os.path.join(os.environ['JOYBUILD_PATH'], 'source', tarball)
74 os.rename('%s-%s.tar.bz2' % (name, version), tarball)
75
76 print 'Update NEWS.sugar...'
77
78 if os.environ.has_key('SUGAR_NEWS'):
79 sugar_news_path = os.environ['SUGAR_NEWS']
80 if os.path.isfile(sugar_news_path):
81 f = open(sugar_news_path, 'r')
82 sugar_news = f.read()
83 f.close()
84 else:
85 sugar_news = ''
86
87 [ name, version ] = get_name_and_version()
88 sugar_news += '%s - %s - %s\n\n' % (name, version, alphatag)
89
90 f = open('NEWS', 'r')
91 for line in f.readlines():
92 if len(line.strip()) > 0:
93 sugar_news += line
94 else:
95 break
96 f.close()
97
98 f = open(sugar_news_path, 'w')
99 f.write(sugar_news)
100 f.close()
101
102 print 'Update NEWS...'
103
104 f = open('NEWS', 'r')
105 news = f.read()
106 f.close()
107
108 news = 'Snapshot %s\n\n' % alphatag + news
109
110 f = open('NEWS', 'w')
111 f.write(news)
112 f.close()
113
114 print 'Committing to git...'
115
116 changelog = 'Snapshot %s.' % alphatag
117 retcode = subprocess.call(['git', 'commit', '-a', '-m % s' % changelog])
118 if retcode:
119 print 'ERROR - cannot commit to git'
120
121 retcode = subprocess.call(['git', 'push'])
122 if retcode:
123 print 'ERROR - cannot push to git'
124
125 print 'Done.'
126
127 def check_licenses(path, license, missing):
128 matchers = { 'LGPL' : 'GNU Lesser General Public',
129 'GPL' : 'GNU General Public License' }
130
131 license_file = os.path.join(path, '.license')
132 if os.path.isfile(license_file):
133 f = open(license_file, 'r')
134 license = f.readline().strip()
135 f.close()
136
137 for item in os.listdir(path):
138 full_path = os.path.join(path, item)
139
140 if os.path.isdir(full_path):
141 check_licenses(full_path, license, missing)
142 else:
143 check_source = is_source(item)
144
145 # Special cases.
146 if item.find('marshal') > 0 or \
147 item.startswith('egg') > 0:
148 check_source = False
149
150 if check_source:
151 f = open(full_path, 'r')
152 source = f.read()
153 f.close()
154
155 miss_license = True
156 if source.find(matchers[license]) > 0:
157 miss_license = False
158
159 # Special cases.
160 if source.find('THIS FILE IS GENERATED') > 0:
161 miss_license = False
162
163 if miss_license:
164 if not missing.has_key(license):
165 missing[license] = []
166 missing[license].append(full_path)
167
168 def cmd_check_licenses():
169 missing = {}
170 check_licenses(os.getcwd(), 'LGPL', missing)
171
172 for item in missing.keys():
173 print '%s:\n' % item
174 for path in missing[item]:
175 print path
176 print '\n'
177
178 COPYRIGHT = 'Copyright (C) '
179
180 def fix_copyright(path):
181 for item in os.listdir(path):
182 full_path = os.path.join(path, item)
183
184 if os.path.isdir(full_path):
185 fix_copyright(full_path)
186 elif is_source(item):
187 f = open(full_path, 'r')
188 source = f.read()
189 f.close()
190
191 year_start = -1
192 year_end = -1
193
194 i1 = source.find(COPYRIGHT)
195 if i1 != -1:
196 i1 += len(COPYRIGHT)
197 i2 = i1 + source[i1:].find(' ')
198 if i1 > 0:
199 try:
200 year_start = int(source[i1:i1 + 4])
201 year_end = int(source[i1 + 6: i1 + 10])
202 except ValueError:
203 pass
204
205 if year_start > 0 and year_end < 0:
206 year_end = year_start
207
208 year = datetime.date.today().year
209 if year_end < year:
210 result = '%s%d-%d%s' % (source[:i1], year_start,
211 year, source[i2:])
212 f = open(full_path, 'w')
213 f.write(result)
214 f.close()
215
216 def cmd_fix_copyright(path):
217 fix_copyright(path)
218
219 if len(sys.argv) < 2:
220 cmd_help()
221 elif sys.argv[1] == 'build-snapshot':
222 cmd_build_snapshot()
223 elif sys.argv[1] == 'check-licenses':
224 cmd_check_licenses()
225 elif sys.argv[1] == 'fix-copyright' and len(sys.argv) > 2:
226 cmd_fix_copyright(sys.argv[2])
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = matchbox
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(themesdir)"
56 themesDATA_INSTALL = $(INSTALL_DATA)
57 DATA = $(themes_DATA)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CYGPATH_W = @CYGPATH_W@
74 DEFS = @DEFS@
75 DEPDIR = @DEPDIR@
76 DSYMUTIL = @DSYMUTIL@
77 DUMPBIN = @DUMPBIN@
78 ECHO_C = @ECHO_C@
79 ECHO_N = @ECHO_N@
80 ECHO_T = @ECHO_T@
81 EGREP = @EGREP@
82 ENGINE_CFLAGS = @ENGINE_CFLAGS@
83 ENGINE_LIBS = @ENGINE_LIBS@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GDK_PIXBUF2_CFLAGS = @GDK_PIXBUF2_CFLAGS@
87 GDK_PIXBUF2_LIBS = @GDK_PIXBUF2_LIBS@
88 GREP = @GREP@
89 GTK2_CFLAGS = @GTK2_CFLAGS@
90 GTK2_LIBS = @GTK2_LIBS@
91 GTK_VERSION = @GTK_VERSION@
92 ICONMAP = @ICONMAP@
93 ICON_SLICER = @ICON_SLICER@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LD = @LD@
99 LDFLAGS = @LDFLAGS@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LIPO = @LIPO@
104 LN_S = @LN_S@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 NM = @NM@
108 NMEDIT = @NMEDIT@
109 OBJEXT = @OBJEXT@
110 OTOOL = @OTOOL@
111 OTOOL64 = @OTOOL64@
112 PACKAGE = @PACKAGE@
113 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114 PACKAGE_NAME = @PACKAGE_NAME@
115 PACKAGE_STRING = @PACKAGE_STRING@
116 PACKAGE_TARNAME = @PACKAGE_TARNAME@
117 PACKAGE_VERSION = @PACKAGE_VERSION@
118 PATH_SEPARATOR = @PATH_SEPARATOR@
119 PKG_CONFIG = @PKG_CONFIG@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_CC = @ac_ct_CC@
127 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
128 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
129 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
130 am__include = @am__include@
131 am__leading_dot = @am__leading_dot@
132 am__quote = @am__quote@
133 am__tar = @am__tar@
134 am__untar = @am__untar@
135 bindir = @bindir@
136 build = @build@
137 build_alias = @build_alias@
138 build_cpu = @build_cpu@
139 build_os = @build_os@
140 build_vendor = @build_vendor@
141 datadir = @datadir@
142 datarootdir = @datarootdir@
143 docdir = @docdir@
144 dvidir = @dvidir@
145 exec_prefix = @exec_prefix@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 lt_ECHO = @lt_ECHO@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 pngs = closebutton.xpm
172 themesdir = $(datadir)/themes/sugar/matchbox
173 themes_DATA = theme.xml $(pngs)
174 EXTRA_DIST = theme.xml $(pngs)
175 all: all-am
176
177 .SUFFIXES:
178 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
179 @for dep in $?; do \
180 case '$(am__configure_deps)' in \
181 *$$dep*) \
182 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
183 && exit 0; \
184 exit 1;; \
185 esac; \
186 done; \
187 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign matchbox/Makefile'; \
188 cd $(top_srcdir) && \
189 $(AUTOMAKE) --foreign matchbox/Makefile
190 .PRECIOUS: Makefile
191 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
192 @case '$?' in \
193 *config.status*) \
194 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
195 *) \
196 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
197 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
198 esac;
199
200 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
201 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
202
203 $(top_srcdir)/configure: $(am__configure_deps)
204 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
205 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
206 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
207
208 mostlyclean-libtool:
209 -rm -f *.lo
210
211 clean-libtool:
212 -rm -rf .libs _libs
213
214 distclean-libtool:
215 -rm -f libtool
216 uninstall-info-am:
217 install-themesDATA: $(themes_DATA)
218 @$(NORMAL_INSTALL)
219 test -z "$(themesdir)" || $(mkdir_p) "$(DESTDIR)$(themesdir)"
220 @list='$(themes_DATA)'; for p in $$list; do \
221 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
222 f=$(am__strip_dir) \
223 echo " $(themesDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(themesdir)/$$f'"; \
224 $(themesDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(themesdir)/$$f"; \
225 done
226
227 uninstall-themesDATA:
228 @$(NORMAL_UNINSTALL)
229 @list='$(themes_DATA)'; for p in $$list; do \
230 f=$(am__strip_dir) \
231 echo " rm -f '$(DESTDIR)$(themesdir)/$$f'"; \
232 rm -f "$(DESTDIR)$(themesdir)/$$f"; \
233 done
234 tags: TAGS
235 TAGS:
236
237 ctags: CTAGS
238 CTAGS:
239
240
241 distdir: $(DISTFILES)
242 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
243 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
244 list='$(DISTFILES)'; for file in $$list; do \
245 case $$file in \
246 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
247 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
248 esac; \
249 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
250 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
251 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
252 dir="/$$dir"; \
253 $(mkdir_p) "$(distdir)$$dir"; \
254 else \
255 dir=''; \
256 fi; \
257 if test -d $$d/$$file; then \
258 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
259 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
260 fi; \
261 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
262 else \
263 test -f $(distdir)/$$file \
264 || cp -p $$d/$$file $(distdir)/$$file \
265 || exit 1; \
266 fi; \
267 done
268 check-am: all-am
269 check: check-am
270 all-am: Makefile $(DATA)
271 installdirs:
272 for dir in "$(DESTDIR)$(themesdir)"; do \
273 test -z "$$dir" || $(mkdir_p) "$$dir"; \
274 done
275 install: install-am
276 install-exec: install-exec-am
277 install-data: install-data-am
278 uninstall: uninstall-am
279
280 install-am: all-am
281 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
282
283 installcheck: installcheck-am
284 install-strip:
285 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
286 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
287 `test -z '$(STRIP)' || \
288 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
289 mostlyclean-generic:
290
291 clean-generic:
292
293 distclean-generic:
294 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
295
296 maintainer-clean-generic:
297 @echo "This command is intended for maintainers to use"
298 @echo "it deletes files that may require special tools to rebuild."
299 clean: clean-am
300
301 clean-am: clean-generic clean-libtool mostlyclean-am
302
303 distclean: distclean-am
304 -rm -f Makefile
305 distclean-am: clean-am distclean-generic distclean-libtool
306
307 dvi: dvi-am
308
309 dvi-am:
310
311 html: html-am
312
313 info: info-am
314
315 info-am:
316
317 install-data-am: install-themesDATA
318
319 install-exec-am:
320
321 install-info: install-info-am
322
323 install-man:
324
325 installcheck-am:
326
327 maintainer-clean: maintainer-clean-am
328 -rm -f Makefile
329 maintainer-clean-am: distclean-am maintainer-clean-generic
330
331 mostlyclean: mostlyclean-am
332
333 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
334
335 pdf: pdf-am
336
337 pdf-am:
338
339 ps: ps-am
340
341 ps-am:
342
343 uninstall-am: uninstall-info-am uninstall-themesDATA
344
345 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
346 distclean distclean-generic distclean-libtool distdir dvi \
347 dvi-am html html-am info info-am install install-am \
348 install-data install-data-am install-exec install-exec-am \
349 install-info install-info-am install-man install-strip \
350 install-themesDATA installcheck installcheck-am installdirs \
351 maintainer-clean maintainer-clean-generic mostlyclean \
352 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
353 uninstall uninstall-am uninstall-info-am uninstall-themesDATA
354
355 # Tell versions [3.59,3.63) of GNU make to not export all variables.
356 # Otherwise a system limit (for SysV at least) may be exceeded.
357 .NOEXPORT:
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
6 # Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program.
28
29 if test $# -eq 0; then
30 echo 1>&2 "Try \`$0 --help' for more information"
31 exit 1
32 fi
33
34 run=:
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
46 case "$1" in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
62
63 -h|--h|--he|--hel|--help)
64 echo "\
65 $0 [OPTION]... PROGRAM [ARGUMENT]...
66
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
69
70 Options:
71 -h, --help display this help and exit
72 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
74
75 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 automake touch all \`Makefile.in' files
80 bison create \`y.tab.[ch]', if possible, from existing .[ch]
81 flex create \`lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create \`lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 tar try tar, gnutar, gtar, then tar without non-portable flags
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Send bug reports to <bug-automake@gnu.org>."
89 exit $?
90 ;;
91
92 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
93 echo "missing $scriptversion (GNU Automake)"
94 exit $?
95 ;;
96
97 -*)
98 echo 1>&2 "$0: Unknown \`$1' option"
99 echo 1>&2 "Try \`$0 --help' for more information"
100 exit 1
101 ;;
102
103 esac
104
105 # Now exit if we have it, but it failed. Also exit now if we
106 # don't have it and --version was passed (most likely to detect
107 # the program).
108 case "$1" in
109 lex|yacc)
110 # Not GNU programs, they don't have --version.
111 ;;
112
113 tar)
114 if test -n "$run"; then
115 echo 1>&2 "ERROR: \`tar' requires --run"
116 exit 1
117 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
118 exit 1
119 fi
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running `$TOOL --version' or `$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case "$1" in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: \`$1' is $msg. You should only need it if
141 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
142 to install the \`Automake' and \`Perl' packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf)
148 echo 1>&2 "\
149 WARNING: \`$1' is $msg. You should only need it if
150 you modified \`${configure_ac}'. You might want to install the
151 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader)
157 echo 1>&2 "\
158 WARNING: \`$1' is $msg. You should only need it if
159 you modified \`acconfig.h' or \`${configure_ac}'. You might want
160 to install the \`Autoconf' and \`GNU m4' packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case "$f" in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: \`$1' is $msg. You should only need it if
178 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
179 You might want to install the \`Automake' and \`Perl' packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te)
187 echo 1>&2 "\
188 WARNING: \`$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get \`$1' as part of \`Autoconf' from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison|yacc)
210 echo 1>&2 "\
211 WARNING: \`$1' $msg. You should only need it if
212 you modified a \`.y' file. You may need the \`Bison' package
213 in order for those modifications to take effect. You can get
214 \`Bison' from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
217 eval LASTARG="\${$#}"
218 case "$LASTARG" in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if [ ! -f y.tab.h ]; then
232 echo >y.tab.h
233 fi
234 if [ ! -f y.tab.c ]; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex|flex)
240 echo 1>&2 "\
241 WARNING: \`$1' is $msg. You should only need it if
242 you modified a \`.l' file. You may need the \`Flex' package
243 in order for those modifications to take effect. You can get
244 \`Flex' from any GNU archive site."
245 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
247 eval LASTARG="\${$#}"
248 case "$LASTARG" in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if [ ! -f lex.yy.c ]; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man)
263 echo 1>&2 "\
264 WARNING: \`$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 \`Help2man' package in order for those modifications to take
267 effect. You can get \`Help2man' from any GNU archive site."
268
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
274 touch $file
275 else
276 test -z "$file" || exec >$file
277 echo ".ab help2man is required to generate this page"
278 exit 1
279 fi
280 ;;
281
282 makeinfo)
283 echo 1>&2 "\
284 WARNING: \`$1' is $msg. You should only need it if
285 you modified a \`.texi' or \`.texinfo' file, or any other file
286 indirectly affecting the aspect of the manual. The spurious
287 call might also be the consequence of using a buggy \`make' (AIX,
288 DU, IRIX). You might want to install the \`Texinfo' package or
289 the \`GNU make' package. Grab either from any GNU archive site."
290 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
296 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298 fi
299 # If the file does not exist, the user really needs makeinfo;
300 # let's fail without touching anything.
301 test -f $file || exit 1
302 touch $file
303 ;;
304
305 tar)
306 shift
307
308 # We have already tried tar in the generic part.
309 # Look for gnutar/gtar before invocation to avoid ugly error
310 # messages.
311 if (gnutar --version > /dev/null 2>&1); then
312 gnutar "$@" && exit 0
313 fi
314 if (gtar --version > /dev/null 2>&1); then
315 gtar "$@" && exit 0
316 fi
317 firstarg="$1"
318 if shift; then
319 case "$firstarg" in
320 *o*)
321 firstarg=`echo "$firstarg" | sed s/o//`
322 tar "$firstarg" "$@" && exit 0
323 ;;
324 esac
325 case "$firstarg" in
326 *h*)
327 firstarg=`echo "$firstarg" | sed s/h//`
328 tar "$firstarg" "$@" && exit 0
329 ;;
330 esac
331 fi
332
333 echo 1>&2 "\
334 WARNING: I can't seem to be able to run \`tar' with the given arguments.
335 You may want to install GNU tar or Free paxutils, or check the
336 command line arguments."
337 exit 1
338 ;;
339
340 *)
341 echo 1>&2 "\
342 WARNING: \`$1' is needed, and is $msg.
343 You might have modified some files without having the
344 proper tools for further handling them. Check the \`README' file,
345 it often tells you about the needed prerequisites for installing
346 this package. You may also peek at any GNU archive site, in case
347 some other package would contain this missing \`$1' program."
348 exit 1
349 ;;
350 esac
351
352 exit 0
353
354 # Local variables:
355 # eval: (add-hook 'write-file-hooks 'time-stamp)
356 # time-stamp-start: "scriptversion="
357 # time-stamp-format: "%:y-%02m-%02d.%02H"
358 # time-stamp-end: "$"
359 # End:
+0
-112
test/Makefile.am less more
0 # This Makefile and everything is based on code from gtk-engines.
1
2 # We just have sugar in here ...
3 BUILD_ENGINES = sugar
4
5 # Initilize TESTS and XFAIL_TESTS
6 TESTS =
7 XFAIL_TESTS =
8
9 GTKRCS = \
10 gtkrcs/buildin \
11 gtkrcs/sugar
12
13 EXTRA_DIST = exported torture valgrind-suppressions $(GTKRCS)
14
15
16 EXTRA_PROGRAMS = torturetest
17 torturetest_CFLAGS = $(GTK2_CFLAGS)
18 torturetest_LDFLAGS = $(GTK2_LIBS)
19
20
21
22 # Setup enviroment variables for GTK+
23 # ie. add $(top_builddir)/tests to the module searchpath, so that GTK+ finds
24 # the engines in tests/engines
25 TESTS_ENVIRONMENT=GTK_PATH="."
26
27 VALGRIND_COMMAND=valgrind --leak-resolution=high --leak-check=full --suppressions=$(srcdir)/valgrind-suppressions --num-callers=20 --log-file-exactly=valgrind-logs/THEME
28 # set some flags to make glib more valgrind friendly
29 VALGRIND_ENV=G_SLICE=always-malloc G_DEBUG=gc-friendly,resident-modules
30
31 #################################################################
32 #################################################################
33
34 #############################################################
35 # Exported Symbols Test - Tests all engines unconditionally
36 #############################################################
37 # Prefix with exported_
38 EXPORTED_SYMBOLS_TESTS = $(patsubst %,exported_%,$(BUILD_ENGINES))
39
40 # The whole lua crap gets exported ... so right now it has to fail
41 XFAIL_TESTS += exported_lua
42
43 TESTS += $(EXPORTED_SYMBOLS_TESTS)
44
45
46 #############################################################
47 # Torture Test
48 #############################################################
49 SUPPORTED_TORTURE_TEST_ENGINES = \
50 sugar
51
52 # Filter engines that are not build from the set of engines
53 TORTURE_TEST_ENGINES = $(filter $(SUPPORTED_TORTURE_TEST_ENGINES),$(BUILD_ENGINES))
54 # Prefix with torture_
55 TORTURE_TEST_TESTS = torture_buildin $(patsubst %,torture_%,$(TORTURE_TEST_ENGINES))
56
57 # Add TORTURE_TEST_ENGINES to list of tests
58 TESTS += $(TORTURE_TEST_TESTS)
59
60 # Possible other tests:
61 # - An extensive theme switch tests that loads/unloads the engine
62 # multiple times. A requirement here is that multiple rc styles need
63 # to be merged. (ie. the test should find the recently fixed smooth
64 # memory corruption)
65 # - RC style merging? Don't think there is a way to do that.
66 # - Maybe a visual test that looks for visible changes? That way one can
67 # check that a modification does not break anything. (eg. when doing
68 # code cleanups)
69 # - I would love to have some coverage statistics for the torture test
70 # anyone knows how to do that?
71
72 #################################################################
73 #################################################################
74
75 engines:
76 -rm -rf engines
77 mkdir engines
78 cd engines; \
79 ln -s ../$(top_builddir)/gtk/engine/.libs/libsugar.so libsugar.so
80
81 CLEANFILES = \
82 torture_buildin-failed \
83 $(EXTRA_PROGRAMS)
84
85 clean-local:
86 -$(RM) torture_*
87 -$(RM) exported_*
88 -$(RM) -r engines
89 -$(RM) -r valgrind-logs
90 -$(RM) -r symbols
91
92 valgrind-logs:
93 -$(RM) -r valgrind-logs
94 mkdir valgrind-logs
95
96 symbols:
97 mkdir symbols
98
99 torture_%: torture torturetest engines
100 cp $(srcdir)/torture $@
101
102 exported_%: exported engines symbols
103 cp $(srcdir)/exported $@
104
105 check-valgrind: valgrind-logs
106 $(MAKE) $(AM_MAKEFLAGS) check TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) $(VALGRIND_ENV) EXEC_WRAPPER=\"$(VALGRIND_COMMAND)\""
107
108 test:
109 @$(MAKE) $(AM_MAKEFLAGS) check
110
111 .PHONY: engines valgrind-logs
+0
-25
test/exported less more
0 #! /bin/sh
1
2 ALLOWED_SYMBOLS="\(g_module_check_init\|theme_create_rc_style\|theme_exit\|theme_init\)"
3
4 # exit with status 77 if nm does not exist
5 which nm >/dev/null || exit 77
6
7 ENGINE="`basename $0 | cut -d '_' -f 2`"
8 ENGINE_FILE="engines/lib$ENGINE.so"
9
10 nm -gD --defined-only $ENGINE_FILE | cut -d ' ' -f 2,3 | cut -d ' ' -f 2 | grep -v '^_' | grep -v "$ALLOWED_SYMBOLS" >symbols/$ENGINE
11
12 if [ -s symbols/$ENGINE ]; then
13 exit 1;
14 else
15 if [ -f symbols/$ENGINE ]; then
16 # No point in keeping an empty file around
17 rm symbols/$ENGINE
18 else
19 # Something wen't wrong, there is no file?!?
20 # This should never happen ...
21 exit 1
22 fi
23 fi
24
+0
-7
test/gtkrcs/buildin less more
0
1 style "default"
2 {
3 engine "" {}
4 }
5
6 class "GtkWidget" style "default"
+0
-50
test/gtkrcs/sugar less more
0
1 style "default"
2 {
3 GtkWidget::interior-focus = 0
4 engine "sugar" { }
5 }
6
7
8 style "comboboxentry"
9 {
10 engine "sugar" {
11 hint = "comboboxentry"
12 }
13 }
14
15 style "vscale"
16 {
17 engine "sugar" {
18 hint = "vscale"
19 }
20 }
21
22 style "hscale"
23 {
24 engine "sugar" {
25 hint = "hscale"
26 }
27 }
28
29 style "scrollbar"
30 {
31 engine "sugar" {
32 hint = "scrollbar"
33 }
34 }
35
36 style "spinbutton"
37 {
38 engine "sugar" {
39 hint = "spinbutton"
40 }
41 }
42
43
44 class "GtkWidget" style "default"
45 class "GtkScrollBar" style "scrollbar"
46 class "GtkHScale" style "hscale"
47 class "GtkVScale" style "vscale"
48 class "GtkSpinButton" style "spinbutton"
49 widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
+0
-61
test/torture less more
0 #! /bin/sh
1
2 ENGINE="`basename $0 | cut -d '_' -f 2`"
3
4 # Do the test for every file starting with the prefix
5
6 FAILED="0"
7
8 for RC_FILE in $srcdir/gtkrcs/$ENGINE*; do
9 test -f $RC_FILE || continue
10 something_tested="1"
11
12 export GTK2_RC_FILES=$RC_FILE
13 RC_FILE_BASENAME="`basename $RC_FILE`"
14 MY_EXEC_WRAPPER="`echo "$EXEC_WRAPPER" | sed s/THEME/$RC_FILE_BASENAME/`"
15
16 $MY_EXEC_WRAPPER ./torturetest 2>/dev/null
17
18 if [ "$?" != "0" ]; then
19 FAILED=1;
20 fi
21 done
22
23 if [ "x$something_tested" = "x" ]; then
24 echo "Failed to run test for \"$ENGINE\" because no gtkrc files were found"
25 exit 77;
26 fi
27
28 if [ "$FAILED" != "0" ]; then
29 # This is pretty stupid, but I don't know of a better way to handle it
30 # We need to make sure that if buildin failes, all other failures don't
31 # cause an overall test failure (ie. exit 77). I know this is stupid ...
32 # Otherwise "make check" will _always_ fail with a broken GTK+.
33 if [ "$ENGINE" = "buildin" ]; then
34 echo "WARNING: The GTK+ buildin theme failed the torture test!"
35 echo "WARNING: "
36 echo "WARNING: As the other engines may fall back to the buildin theme, other tests"
37 echo "WARNING: may fail in the buildin theme that we don't control."
38 echo "WARNING: The other tests will be run, but in case of failure SKIP instead of FAIL."
39 echo "WARNING: This way 'make check' will not fail even with a broken GTK+."
40 echo "WARNING:"
41 echo "WARNING: It may also mean that there is just no X server to run the test on."
42 echo
43 touch torture_buildin-failed
44 exit 77
45 else
46 # If buildin-failed, then exit with status 77
47 if [ -f torture_buildin-failed ]; then
48 exit 77
49 else
50 exit 1
51 fi
52 fi
53 else
54 # Remove the torture_buildin-failed file on success
55 if [ "$ENGINE" = "buildin" ]; then
56 test -f torture_buildin-failed && rm -f torture_buildin-failed
57 fi
58
59 exit 0
60 fi
+0
-621
test/torturetest.c less more
0 /* Copyright Benjamin Berg 2007
1 *
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) any later version.
6 *
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the
14 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
15 * Boston, MA 02111-1307, USA.
16 */
17
18 #include <gtk/gtk.h>
19 #include <string.h>
20 #include <stdlib.h>
21
22 typedef enum {
23 STYLE_NORMAL,
24 STYLE_VSCALE,
25 STYLE_HSCALE,
26 STYLE_SCROLLBAR,
27 STYLE_COMBOBOXENTRY
28 } StyleType;
29 #define STYLE_COUNT (STYLE_COMBOBOXENTRY+1)
30
31 typedef enum {
32 WIDGET_NULL,
33 WIDGET_VSCALE,
34 WIDGET_HSCALE,
35 WIDGET_VSCROLLBAR,
36 WIDGET_TOGGLE_BUTTON
37 } WidgetType;
38
39 #define WIDGET_COUNT (WIDGET_TOGGLE_BUTTON+1)
40 #define WIDGET_ALL (-1)
41
42
43 GType
44 widget_type_get_type (void)
45 {
46 static GType type = 0;
47 if (type == 0) {
48 static const GEnumValue values[] = {
49 { WIDGET_NULL, "WIDGET_NULL", "NULL" },
50 { WIDGET_VSCALE, "WIDGET_VSCALE", "GtkVScale" },
51 { WIDGET_HSCALE, "WIDGET_HSCALE", "GtkHScale" },
52 { WIDGET_VSCROLLBAR, "WIDGET_VSCROLLBAR", "GtkVScrollBar" },
53 { WIDGET_TOGGLE_BUTTON, "WIDGET_TOGGLE_BUTTON", "GtkToggleButton" },
54 { 0, NULL, NULL }
55 };
56 type = g_enum_register_static ("WidgeType", values);
57 }
58 return type;
59 }
60
61 GType
62 bool_get_type (void)
63 {
64 static GType type = 0;
65 if (type == 0) {
66 static const GEnumValue values[] = {
67 { 0, "BOOL_FALSE", "False" },
68 { 1, "BOOL_TRUE", "True" },
69 { 0, NULL, NULL }
70 };
71 type = g_enum_register_static ("GtkBoolDummyType", values);
72 }
73 return type;
74 }
75
76
77 #define WIDGET_TYPE (widget_type_get_type ())
78 #define BOOL_TYPE (bool_get_type ())
79
80
81 typedef enum {
82 FUNCTION_ARROW = 1 << 0,
83 FUNCTION_BOX = 1 << 1,
84 FUNCTION_SHADOW = 1 << 2,
85 FUNCTION_BOX_GAP = 1 << 3,
86 FUNCTION_SHADOW_GAP = 1 << 4,
87 FUNCTION_CHECK = 1 << 5,
88 FUNCTION_EXPANDER = 1 << 6,
89 FUNCTION_EXTENSION = 1 << 7,
90 FUNCTION_FLAT_BOX = 1 << 8,
91 FUNCTION_FOCUS = 1 << 9,
92 FUNCTION_HANDLE = 1 << 10,
93 FUNCTION_HLINE = 1 << 11,
94 FUNCTION_VLINE = 1 << 12,
95 FUNCTION_OPTION = 1 << 13,
96 FUNCTION_RESIZE_GRIP = 1 << 14,
97 FUNCTION_SLIDER = 1 << 15,
98 FUNCTION_TAB = 1 << 16,
99
100 FUNCTION_ALL = -1
101 } FunctionType;
102 #define FUNCTION_LAST FUNCTION_BOX
103
104 GtkWidget *window;
105 GtkWidget *box;
106 GtkWidget *widgets[WIDGET_COUNT];
107 GtkStyle *styles[STYLE_COUNT];
108
109 typedef struct {
110 FunctionType function;
111 WidgetType widget;
112 StyleType style;
113 gchar *detail;
114 GtkStateType state;
115 GtkShadowType shadow;
116 GtkArrowType arrow_type;
117 gboolean fill;
118 GtkPositionType gap_side;
119 GtkOrientation orientation;
120 GtkExpanderStyle expander_style;
121 GdkWindowEdge edge;
122 } Test;
123
124 #define ARROW_ALL (-1)
125 #define STATE_ALL (-1)
126 #define SHADOW_ALL (-1)
127 #define FILL_ALL (-1)
128 #define EXPANDER_ALL (-1)
129 #define EDGE_ALL (-1)
130 #define GAP_SIDE_ALL (-1)
131 #define ORIENTATION_ALL (-1)
132
133 #define CELL_DETAILS_SIDE(detail) detail ":" detail "_start" ":" detail "_middle" ":" detail "_end"
134 #define CELL_DETAILS_SORTED(detail) CELL_DETAILS_SIDE(detail) ":" CELL_DETAILS_SIDE(detail "_sorted")
135 #define CELL_DETAILS_RULED(detail) CELL_DETAILS_SORTED(detail) ":" CELL_DETAILS_SORTED(detail "_ruled")
136 #define CELL_DETAILS CELL_DETAILS_RULED("cell_even") ":" CELL_DETAILS_RULED("cell_odd")
137 #define CHECK_AND_RADIO_DETAILS "NULL:cellcheck:cellradio:check:checkbutton:radiobutton"
138 #define EXPANDER_DETAILS "NULL:expander" /* also in common details list ... */
139 #define ARROW_DETAILS "NULL:arrow:tab:optionmenutab"
140 #define COMMON_DETAILS "NULL:arrow:bar:base:button:buttondefault:combo_entry_button:dockitem:dockitem_bin:entry:entry_bg:frame:handle:handlebox:handlebox_bin:hpaned:hruler:hscale:hscrollbar:hseparator:label:menu:menubar:menuitem:metacity:notebook:option:optionmenu:optionmenutab:paned:scrolled_window:slider:spinbutton:spinbutton_arrow:spinbutton_down:spinbutton_up:stepper:tab:text:togglebutton:togglebuttondefault:toolbar:tooltip:treeitem:treeview:trough:viewport:viewportbin:vpaned:vruler:vscale:vscrollbar:vseparator:expander"
141
142 /* The following explicitly does not test EVERY combination, as that would be
143 * overkill, and would take a lot longer. */
144 static Test tests[] = {
145 { /* ARROW */
146 FUNCTION_ARROW,
147 WIDGET_NULL,
148 STYLE_NORMAL,
149 ARROW_DETAILS,
150 STATE_ALL,
151 SHADOW_ALL,
152 ARROW_ALL,
153 FILL_ALL,
154 GTK_SIDE_TOP,
155 GTK_ORIENTATION_HORIZONTAL,
156 GTK_EXPANDER_EXPANDED,
157 GDK_WINDOW_EDGE_SOUTH
158 },
159 { /* things with gaps */
160 FUNCTION_BOX_GAP | FUNCTION_SHADOW_GAP | FUNCTION_EXTENSION,
161 WIDGET_NULL,
162 STYLE_NORMAL,
163 COMMON_DETAILS,
164 STATE_ALL,
165 SHADOW_ALL,
166 GTK_ARROW_UP,
167 TRUE,
168 GAP_SIDE_ALL,
169 GTK_ORIENTATION_HORIZONTAL,
170 GTK_EXPANDER_EXPANDED,
171 GDK_WINDOW_EDGE_SOUTH
172 },
173 { /* expander */
174 FUNCTION_EXPANDER,
175 WIDGET_NULL,
176 STYLE_NORMAL,
177 EXPANDER_DETAILS,
178 STATE_ALL,
179 SHADOW_ALL,
180 GTK_ARROW_UP,
181 TRUE,
182 GTK_SIDE_TOP,
183 GTK_ORIENTATION_HORIZONTAL,
184 EXPANDER_ALL,
185 GDK_WINDOW_EDGE_SOUTH
186 },
187 { /* handle, slider (+orientation wildcarded) */
188 FUNCTION_HANDLE | FUNCTION_SLIDER,
189 WIDGET_NULL,
190 STYLE_NORMAL,
191 COMMON_DETAILS,
192 STATE_ALL,
193 SHADOW_ALL,
194 GTK_ARROW_UP,
195 TRUE,
196 GTK_SIDE_TOP,
197 ORIENTATION_ALL,
198 GTK_EXPANDER_EXPANDED,
199 GDK_WINDOW_EDGE_SOUTH
200 },
201 { /* resize grip (+edge wildcarded) */
202 FUNCTION_RESIZE_GRIP,
203 WIDGET_NULL,
204 STYLE_NORMAL,
205 COMMON_DETAILS,
206 STATE_ALL,
207 SHADOW_ALL,
208 GTK_ARROW_UP,
209 TRUE,
210 GTK_SIDE_TOP,
211 GTK_ORIENTATION_HORIZONTAL,
212 GTK_EXPANDER_EXPANDED,
213 EDGE_ALL
214 },
215 { /* check and radio */
216 FUNCTION_CHECK | FUNCTION_OPTION,
217 WIDGET_NULL,
218 STYLE_NORMAL,
219 CHECK_AND_RADIO_DETAILS,
220 STATE_ALL,
221 SHADOW_ALL,
222 GTK_ARROW_UP,
223 TRUE,
224 GTK_SIDE_TOP,
225 GTK_ORIENTATION_HORIZONTAL,
226 GTK_EXPANDER_EXPANDED,
227 GDK_WINDOW_EDGE_SOUTH
228 },
229 { /* cell flat box */
230 FUNCTION_FLAT_BOX,
231 WIDGET_NULL,
232 STYLE_NORMAL,
233 CELL_DETAILS,
234 STATE_ALL,
235 SHADOW_ALL,
236 GTK_ARROW_UP,
237 TRUE,
238 GTK_SIDE_TOP,
239 GTK_ORIENTATION_HORIZONTAL,
240 GTK_EXPANDER_EXPANDED,
241 GDK_WINDOW_EDGE_SOUTH
242 },
243 { /* GENERIC STUFF (will be duplicated somewhat, but *shrug*) */
244 FUNCTION_ALL ^ (FUNCTION_ARROW | FUNCTION_BOX_GAP | FUNCTION_SHADOW_GAP | FUNCTION_EXTENSION | FUNCTION_EXPANDER | FUNCTION_HANDLE | FUNCTION_SLIDER | FUNCTION_RESIZE_GRIP | FUNCTION_CHECK | FUNCTION_OPTION),
245 WIDGET_NULL,
246 STYLE_NORMAL,
247 COMMON_DETAILS,
248 STATE_ALL,
249 SHADOW_ALL,
250 GTK_ARROW_UP,
251 TRUE,
252 GTK_SIDE_TOP,
253 GTK_ORIENTATION_HORIZONTAL,
254 GTK_EXPANDER_EXPANDED,
255 GDK_WINDOW_EDGE_SOUTH
256 },
257
258 /* The above is just copied from gtk-engines. I am too lazy right now to clean it up ... */
259
260 /* Scales */
261 {
262 FUNCTION_SLIDER | FUNCTION_BOX | FUNCTION_FOCUS | FUNCTION_ARROW,
263 WIDGET_NULL,
264 STYLE_VSCALE,
265 "NULL:trough:trough-upper:trough-lower:hscale:vscale:stepper",
266 STATE_ALL,
267 SHADOW_ALL,
268 GTK_ARROW_UP,
269 TRUE,
270 GTK_SIDE_TOP,
271 GTK_ORIENTATION_HORIZONTAL,
272 GTK_EXPANDER_EXPANDED,
273 GDK_WINDOW_EDGE_SOUTH
274 },
275 {
276 FUNCTION_SLIDER | FUNCTION_BOX | FUNCTION_FOCUS | FUNCTION_ARROW,
277 WIDGET_NULL,
278 STYLE_VSCALE,
279 "NULL:trough:trough-upper:trough-lower:hscale:vscale:stepper",
280 STATE_ALL,
281 SHADOW_ALL,
282 GTK_ARROW_UP,
283 TRUE,
284 GTK_SIDE_TOP,
285 GTK_ORIENTATION_HORIZONTAL,
286 GTK_EXPANDER_EXPANDED,
287 GDK_WINDOW_EDGE_SOUTH
288 },
289
290 /* scrollbar */
291 {
292 FUNCTION_SLIDER | FUNCTION_BOX | FUNCTION_FOCUS | FUNCTION_ARROW,
293 WIDGET_NULL,
294 STYLE_SCROLLBAR,
295 "NULL:trough:trough-upper:trough-lower:hscrollbar:vscrollbar:slider",
296 STATE_ALL,
297 SHADOW_ALL,
298 GTK_ARROW_UP,
299 TRUE,
300 GTK_SIDE_TOP,
301 GTK_ORIENTATION_HORIZONTAL,
302 GTK_EXPANDER_EXPANDED,
303 GDK_WINDOW_EDGE_SOUTH
304 },
305
306 /* comboboxentry */
307 {
308 FUNCTION_BOX | FUNCTION_FOCUS | FUNCTION_ARROW | FUNCTION_SHADOW,
309 WIDGET_NULL,
310 STYLE_SCROLLBAR,
311 "NULL:button:entry:entry_bg:arrow",
312 STATE_ALL,
313 SHADOW_ALL,
314 GTK_ARROW_UP,
315 TRUE,
316 GTK_SIDE_TOP,
317 GTK_ORIENTATION_HORIZONTAL,
318 GTK_EXPANDER_EXPANDED,
319 GDK_WINDOW_EDGE_SOUTH
320 },
321
322 /* spinbutton */
323 {
324 FUNCTION_BOX | FUNCTION_FOCUS | FUNCTION_ARROW | FUNCTION_SHADOW,
325 WIDGET_NULL,
326 STYLE_SCROLLBAR,
327 "NULL:entry:entry_bg:arrow:spinbutton:spinbutton_up:spinbutton_down",
328 STATE_ALL,
329 SHADOW_ALL,
330 GTK_ARROW_UP,
331 TRUE,
332 GTK_SIDE_TOP,
333 GTK_ORIENTATION_HORIZONTAL,
334 GTK_EXPANDER_EXPANDED,
335 GDK_WINDOW_EDGE_SOUTH
336 },
337 };
338
339 #define ENUM_NEXT(enum_type, ind, target) \
340 do { \
341 GEnumClass *enum_class = g_type_class_ref (enum_type); \
342 if (initial || values[ind] >= enum_class->n_values - 1) { \
343 values[ind] = 0; \
344 } else { \
345 done = FALSE; \
346 values[ind]++; \
347 } \
348 \
349 target = enum_class->values[values[ind]].value; \
350 g_type_class_unref (enum_class); \
351 if (!done && !initial) \
352 goto end; \
353 } while(0)
354
355 static gboolean
356 get_next_combination (Test *wildcard_test, Test *test, gboolean initial)
357 {
358 gint i;
359 gchar *cur_pos, *col_pos;
360 gboolean done = !initial;
361 static gint values[10];
362
363 test->function = wildcard_test->function;
364
365 if (wildcard_test->widget == WIDGET_ALL)
366 ENUM_NEXT (WIDGET_TYPE, 0, test->widget);
367 else
368 test->widget = wildcard_test->widget;
369
370 if (wildcard_test->state == STATE_ALL)
371 ENUM_NEXT (GTK_TYPE_STATE_TYPE, 1, test->state);
372 else
373 test->state = wildcard_test->state;
374
375 if (wildcard_test->shadow == SHADOW_ALL)
376 ENUM_NEXT (GTK_TYPE_SHADOW_TYPE, 2, test->shadow);
377 else
378 test->shadow = wildcard_test->shadow;
379
380 if (wildcard_test->arrow_type == ARROW_ALL)
381 ENUM_NEXT (GTK_TYPE_ARROW_TYPE, 3, test->arrow_type);
382 else
383 test->arrow_type = wildcard_test->arrow_type;
384
385 if (wildcard_test->fill == FILL_ALL)
386 ENUM_NEXT (BOOL_TYPE, 4, test->fill);
387 else
388 test->fill = wildcard_test->fill;
389
390 if (wildcard_test->gap_side == GAP_SIDE_ALL)
391 ENUM_NEXT (GTK_TYPE_POSITION_TYPE, 5, test->gap_side);
392 else
393 test->gap_side = wildcard_test->gap_side;
394
395 if (wildcard_test->orientation == ORIENTATION_ALL)
396 ENUM_NEXT (GTK_TYPE_ORIENTATION, 6, test->orientation);
397 else
398 test->orientation = wildcard_test->orientation;
399
400 if (wildcard_test->expander_style == EXPANDER_ALL)
401 ENUM_NEXT (GTK_TYPE_EXPANDER_STYLE, 7, test->expander_style);
402 else
403 test->expander_style = wildcard_test->expander_style;
404
405 if (wildcard_test->edge == EDGE_ALL)
406 ENUM_NEXT (GDK_TYPE_WINDOW_EDGE, 8, test->edge);
407 else
408 test->edge = wildcard_test->edge;
409
410 end:
411 /* the detail is a : seperated list ... */
412 if (initial) {
413 values[9] = 0;
414 } else {
415 /* increase, if nothing else got changed. */
416 if (done)
417 values[9]++;
418 }
419 i = 0;
420 cur_pos = wildcard_test->detail;
421
422 while (i < values[9] && cur_pos) {
423 cur_pos = strchr (cur_pos, ':');
424 if (cur_pos != NULL) cur_pos++;
425 i++;
426 }
427 if (cur_pos == NULL) {
428 values[9] = 0;
429 cur_pos = wildcard_test->detail;
430 if (done)
431 return TRUE;
432 } else {
433 /* not done, as we moved on */
434 done = FALSE;
435 }
436 if (cur_pos != NULL) {
437 col_pos = strchr (cur_pos, ':');
438 if (col_pos == NULL)
439 test->detail = g_strdup (cur_pos);
440 else
441 test->detail = g_strndup (cur_pos, col_pos - cur_pos);
442 } else
443 test->detail = NULL;
444
445 /* replace "NULL" with a NULL pointer */
446 if (test->detail && strcmp (test->detail, "NULL") == 0) {
447 g_free (test->detail);
448 test->detail = NULL;
449 }
450
451 return done;
452 }
453
454 static void
455 run_functions (Test *test)
456 {
457 GtkStyle *style = styles[test->style];
458
459 if (test->function & FUNCTION_ARROW)
460 gtk_paint_arrow (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, test->arrow_type, test->fill, 0, 0, 10, 10);
461
462 if (test->function & FUNCTION_BOX)
463 gtk_paint_box (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
464
465 if (test->function & FUNCTION_SHADOW)
466 gtk_paint_shadow (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
467
468 if (test->function & FUNCTION_BOX_GAP)
469 gtk_paint_box_gap (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->gap_side, 0, 100);
470
471 if (test->function & FUNCTION_SHADOW_GAP)
472 gtk_paint_shadow_gap (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->gap_side, 0, 100);
473
474
475 if (test->function & FUNCTION_CHECK)
476 gtk_paint_check (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
477
478 if (test->function & FUNCTION_EXPANDER)
479 gtk_paint_expander (style, window->window, test->state, NULL, widgets[test->widget], test->detail, 10, 10, test->expander_style);
480
481 if (test->function & FUNCTION_EXTENSION)
482 gtk_paint_extension (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->gap_side);
483
484 if (test->function & FUNCTION_FLAT_BOX)
485 gtk_paint_flat_box (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
486
487 if (test->function & FUNCTION_FOCUS)
488 gtk_paint_focus (style, window->window, test->state, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
489
490 if (test->function & FUNCTION_HANDLE)
491 gtk_paint_handle (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->orientation);
492
493 if (test->function & FUNCTION_OPTION)
494 gtk_paint_option (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
495
496 if (test->function & FUNCTION_RESIZE_GRIP)
497 gtk_paint_resize_grip (style, window->window, test->state, NULL, widgets[test->widget], test->detail, test->edge, 0, 0, 10, 10);
498
499 if (test->function & FUNCTION_SLIDER)
500 gtk_paint_slider (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->orientation);
501
502 if (test->function & FUNCTION_TAB)
503 gtk_paint_tab (style, window->window, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
504
505
506 if (test->function & FUNCTION_HLINE)
507 gtk_paint_hline (style, window->window, test->state, NULL, widgets[test->widget], test->detail, 1, 10, 4);
508
509 if (test->function & FUNCTION_VLINE)
510 gtk_paint_vline (style, window->window, test->state, NULL, widgets[test->widget], test->detail, 1, 10, 4);
511 }
512
513 static void
514 run_test (gint test)
515 {
516 Test current_test = {0};
517 gint initial = TRUE;
518
519 while (!get_next_combination (&tests[test], &current_test, initial)) {
520 initial = FALSE;
521 run_functions (&current_test);
522 g_free (current_test.detail);
523 }
524 }
525
526 static void
527 create_testwidgets ()
528 {
529 widgets[WIDGET_VSCROLLBAR] = gtk_vscrollbar_new (NULL);
530 widgets[WIDGET_TOGGLE_BUTTON] = gtk_toggle_button_new_with_label ("blah");
531 }
532
533 static GtkStyle*
534 get_attached_style (GtkStyle *fallback, GdkWindow *window, const gchar *path, GType type)
535 {
536 GtkSettings *settings = gtk_settings_get_default ();
537 GtkStyle *style;
538
539 style = gtk_rc_get_style_by_paths (settings, path, path, type);
540 if (!style)
541 style = g_object_ref (fallback);
542 else
543 g_object_ref (style);
544
545 return gtk_style_attach (style, window);
546 }
547
548 static void
549 create_teststyles ()
550 {
551 styles[STYLE_NORMAL] = get_attached_style (window->style, window->window, "GtkWindow.GtkButton", GTK_TYPE_BUTTON);
552 styles[STYLE_VSCALE] = get_attached_style (window->style, window->window, "GtkWindow.GtkVScale", GTK_TYPE_VSCALE);
553 styles[STYLE_HSCALE] = get_attached_style (window->style, window->window, "GtkWindow.GtkHScale", GTK_TYPE_HSCALE);
554 styles[STYLE_SCROLLBAR] = get_attached_style (window->style, window->window, "GtkWindow.GtkScrollbar", GTK_TYPE_SCROLLBAR);
555
556 GTK_TYPE_COMBO_BOX_ENTRY; /* Initilize the combobox entry type (not really neccessary as GTK+ will fall back to string matching) */
557 styles[STYLE_COMBOBOXENTRY] = get_attached_style (window->style, window->window, "GtkWindow.GtkComboBoxEntry.GtkButton", GTK_TYPE_BUTTON);
558 }
559
560 static void
561 destroy_teststyles ()
562 {
563 gint i;
564
565 for (i = 0; i < STYLE_COUNT; i++) {
566 gtk_style_detach (styles[i]);
567 g_object_unref (styles[i]);
568 styles[i] = NULL;
569 }
570 }
571
572 int
573 main (int argc, char **argv)
574 {
575 gchar *new_default_files[1] = {NULL};
576 GtkSettings *settings;
577 gint i;
578 gtk_init (&argc, &argv);
579
580 /* we get a gtkrc from GTK2_RC_FILES, remove the users theme ... */
581 settings = gtk_settings_get_default ();
582 g_object_set (settings, "gtk-theme-name", "Raleigh", NULL);
583
584 create_testwidgets ();
585
586 window = gtk_window_new (GTK_WINDOW_POPUP);
587 box = gtk_hbox_new (FALSE, 0);
588
589 gtk_container_add ((GtkContainer*)window, box);
590
591 for (i = 0; i < WIDGET_COUNT; i++) {
592 if (widgets[i])
593 gtk_box_pack_end (GTK_BOX (box), widgets[i], FALSE, FALSE, 0);
594 }
595
596 gtk_widget_show_all (window);
597
598 while (gdk_events_pending ())
599 gtk_main_iteration_do (FALSE);
600
601 create_teststyles ();
602
603 for (i = 0; i < G_N_ELEMENTS (tests); i++)
604 run_test (i);
605
606 destroy_teststyles ();
607
608 /* remove the rc file again. This should cause an unload of the engine
609 * and destruction of all engine objects. */
610 gtk_rc_set_default_files (new_default_files);
611 gtk_rc_reparse_all_for_settings (settings, TRUE);
612
613 while (gdk_events_pending ())
614 gtk_main_iteration_do (FALSE);
615
616 /* TODO: It would be really cool to check if there is no
617 * loaded engine at this point. */
618
619 return 0;
620 }
+0
-54
test/valgrind-suppressions less more
0 {
1 Some invalid access on application startup
2 Memcheck:Param
3 writev(vector[...])
4 fun:*writev
5 obj:/usr/lib/libX11.so.6.2.0
6 fun:_X11TransWritev
7 fun:_XSend
8 fun:XQueryExtension
9 fun:XInitExtension
10 fun:XFixesFindDisplay
11 fun:XFixesQueryExtension
12 fun:gdk_display_open
13 }
14 {
15 something else, dunno what exactly
16 Memcheck:Param
17 write(buf)
18 fun:*write*
19 fun:_X11TransWrite
20 obj:/usr/lib/libX11.so.6.2.0
21 fun:_XEventsQueued
22 fun:XPending
23 fun:_gdk_events_queue
24 fun:gdk_event_dispatch
25 }
26 {
27 Some home directory stuff, happens when loading the engine
28 Memcheck:Leak
29 fun:malloc
30 fun:nss_parse_service_list
31 fun:__nss_database_lookup
32 obj:*
33 obj:*
34 fun:getpwnam_r@@GLIBC_2.1.2
35 fun:g_get_any_init_do
36 fun:g_get_home_dir
37 }
38 {
39 pango/fc leak
40 Memcheck:Leak
41 fun:*alloc
42 fun:FcPatternObjectInsertElt
43 fun:FcPatternObjectAddWithBinding
44 fun:FcPatternObjectAdd
45 fun:FcFontRenderPrepare
46 fun:pango_fc_font_map_load_fontset
47 fun:pango_font_map_load_fontset
48 fun:itemize_state_process_run
49 fun:pango_itemize_with_base_dir
50 fun:pango_layout_check_lines
51 fun:pango_layout_get_extents_internal
52 fun:gtk_label_size_request
53 }