summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-01-28 01:33:54 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-01-28 01:33:54 +0000
commit95734ad7f4c65382226f82bc2119954b682410d9 (patch)
tree1f5ef0debf206d33f21988f47a28e6f0786c7392
parent08b0a40be19b61725ac74d5fddbfa7deff0e75b9 (diff)
Remove more junk.
-rw-r--r--xdelta1/ChangeLog0
-rw-r--r--xdelta1/Makefile654
-rwxr-xr-xxdelta1/Makefile.in654
-rwxr-xr-xxdelta1/autogen.sh59
-rwxr-xr-xxdelta1/config.guess1121
-rwxr-xr-xxdelta1/config.h11
-rwxr-xr-xxdelta1/config.h.in10
-rwxr-xr-xxdelta1/config.log73
-rwxr-xr-xxdelta1/config.status277
-rwxr-xr-xxdelta1/config.sub1232
-rwxr-xr-xxdelta1/configure2774
-rwxr-xr-xxdelta1/install-sh251
-rwxr-xr-xxdelta1/libtool4235
-rwxr-xr-xxdelta1/ltconfig3017
-rwxr-xr-xxdelta1/ltmain.sh3975
-rwxr-xr-xxdelta1/missing336
-rwxr-xr-xxdelta1/mkinstalldirs99
-rwxr-xr-xxdelta1/stamp-h.in1
-rwxr-xr-xxdelta1/xdelta.c.flc4
-rwxr-xr-xxdelta1/xdelta.dsp121
-rwxr-xr-xxdelta1/xdelta.dsw29
21 files changed, 0 insertions, 18933 deletions
diff --git a/xdelta1/ChangeLog b/xdelta1/ChangeLog
deleted file mode 100644
index e69de29..0000000
--- a/xdelta1/ChangeLog
+++ /dev/null
diff --git a/xdelta1/Makefile b/xdelta1/Makefile
deleted file mode 100644
index e83f1ca..0000000
--- a/xdelta1/Makefile
+++ /dev/null
@@ -1,654 +0,0 @@
1# Generated automatically from Makefile.in by configure.
2# Makefile.in generated automatically by automake 1.4 from Makefile.am
3
4# Copyright (C) 1994, 1995-8, 1999 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
15SHELL = /bin/sh
16
17srcdir = .
18top_srcdir = .
19prefix = /usr/local
20exec_prefix = ${prefix}
21
22bindir = ${exec_prefix}/bin
23sbindir = ${exec_prefix}/sbin
24libexecdir = ${exec_prefix}/libexec
25datadir = ${prefix}/share
26sysconfdir = ${prefix}/etc
27sharedstatedir = ${prefix}/com
28localstatedir = ${prefix}/var
29libdir = ${exec_prefix}/lib
30infodir = ${prefix}/info
31mandir = ${prefix}/man
32includedir = ${prefix}/include
33oldincludedir = /usr/include
34
35DESTDIR =
36
37pkgdatadir = $(datadir)/xdelta
38pkglibdir = $(libdir)/xdelta
39pkgincludedir = $(includedir)/xdelta
40
41top_builddir = .
42
43ACLOCAL = aclocal
44AUTOCONF = autoconf
45AUTOMAKE = automake
46AUTOHEADER = autoheader
47
48INSTALL = /usr/bin/install -c
49INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
50INSTALL_DATA = ${INSTALL} -m 644
51INSTALL_SCRIPT = ${INSTALL_PROGRAM}
52transform = s,x,x,
53
54NORMAL_INSTALL = :
55PRE_INSTALL = :
56POST_INSTALL = :
57NORMAL_UNINSTALL = :
58PRE_UNINSTALL = :
59POST_UNINSTALL = :
60host_alias = i686-pc-linux-gnu
61host_triplet = i686-pc-linux-gnu
62AS = @AS@
63CC = gcc
64CPP = gcc -E
65DLLTOOL = @DLLTOOL@
66EMACS = /usr/bin/xemacs
67GLIB_CFLAGS = -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
68GLIB_CONFIG = /usr/local/bin/glib-config
69GLIB_LIBS = -L/usr/local/lib -lglib
70LD = /usr/i586-pc-linux-gnu/bin/ld
71LIBTOOL = $(SHELL) $(top_builddir)/libtool
72LN_S = ln
73MAINT = #
74MAKEINFO = makeinfo
75NM = /usr/bin/nm -B
76OBJDUMP = @OBJDUMP@
77PACKAGE = xdelta
78RANLIB = ranlib
79VERSION = 1.1.3
80top_srcdir_absolute = /mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta11
81
82INCLUDES = -I$(top_srcdir)/libedsio $(GLIB_CFLAGS)
83
84bin_PROGRAMS = xdelta
85bin_SCRIPTS = xdelta-config
86
87xdelta_SOURCES = xdmain.c getopt.c getopt1.c
88
89xdelta_LDADD = libxdelta.la $(top_srcdir)/libedsio/libedsio.la $(GLIB_LIBS) -lz
90
91
92include_HEADERS = xdelta.h xd_edsio.h
93noinst_HEADERS = xdeltapriv.h getopt.h
94
95lib_LTLIBRARIES = libxdelta.la
96
97libxdelta_la_SOURCES = xdelta.c xdapply.c $(SER_SOURCES)
98libxdelta_la_LIBADD = $(GLIB_LIBS)
99
100EXTRA_DIST = xd.ser $(SER_OUT) xdelta.magic xdelta.prj xdelta.m4 autogen.sh xdelta.dsp xdelta.dsw stamp-ser xdrsync.c
101
102
103SUBDIRS = libedsio . test doc djgpp
104
105m4datadir = $(datadir)/aclocal
106m4data_DATA = xdelta.m4
107
108libxdelta_la_LDFLAGS = -version-info 2:0:0
109
110SER_OUT = xd_edsio.h xd_edsio.c
111
112SER_SOURCES = xd_edsio.c
113BUILT_SOURCES = $(SER_SOURCES)
114ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
115mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
116CONFIG_HEADER = config.h
117CONFIG_CLEAN_FILES = xdelta-config
118LTLIBRARIES = $(lib_LTLIBRARIES)
119
120
121DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.
122CPPFLAGS =
123LDFLAGS =
124LIBS =
125libxdelta_la_DEPENDENCIES =
126libxdelta_la_OBJECTS = xdelta.lo xdapply.lo xd_edsio.lo
127PROGRAMS = $(bin_PROGRAMS)
128
129xdelta_OBJECTS = xdmain.o getopt.o getopt1.o
130xdelta_DEPENDENCIES = libxdelta.la $(top_srcdir)/libedsio/libedsio.la
131xdelta_LDFLAGS =
132SCRIPTS = $(bin_SCRIPTS)
133
134CFLAGS = -Wall -O3
135COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
136LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
137CCLD = $(CC)
138LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
139DATA = $(m4data_DATA)
140
141HEADERS = $(include_HEADERS) $(noinst_HEADERS)
142
143DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
144Makefile.am Makefile.in NEWS aclocal.m4 config.guess config.h.in \
145config.sub configure configure.in install-sh ltconfig ltmain.sh missing \
146mkinstalldirs xdelta-config.in
147
148
149DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
150
151TAR = tar
152GZIP_ENV = --best
153DEP_FILES = .deps/getopt.P .deps/getopt1.P .deps/xd_edsio.P \
154.deps/xdapply.P .deps/xdelta.P .deps/xdmain.P
155SOURCES = $(libxdelta_la_SOURCES) $(xdelta_SOURCES)
156OBJECTS = $(libxdelta_la_OBJECTS) $(xdelta_OBJECTS)
157
158all: all-redirect
159.SUFFIXES:
160.SUFFIXES: .S .c .lo .o .s
161$(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
162 cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
163
164Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
165 cd $(top_builddir) \
166 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
167
168$(ACLOCAL_M4): # configure.in
169 cd $(srcdir) && $(ACLOCAL)
170
171config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
172 $(SHELL) ./config.status --recheck
173$(srcdir)/configure: #$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
174 cd $(srcdir) && $(AUTOCONF)
175
176config.h: stamp-h
177 @if test ! -f $@; then \
178 rm -f stamp-h; \
179 $(MAKE) stamp-h; \
180 else :; fi
181stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
182 cd $(top_builddir) \
183 && CONFIG_FILES= CONFIG_HEADERS=config.h \
184 $(SHELL) ./config.status
185 @echo timestamp > stamp-h 2> /dev/null
186$(srcdir)/config.h.in: #$(srcdir)/stamp-h.in
187 @if test ! -f $@; then \
188 rm -f $(srcdir)/stamp-h.in; \
189 $(MAKE) $(srcdir)/stamp-h.in; \
190 else :; fi
191$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
192 cd $(top_srcdir) && $(AUTOHEADER)
193 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
194
195mostlyclean-hdr:
196
197clean-hdr:
198
199distclean-hdr:
200 -rm -f config.h
201
202maintainer-clean-hdr:
203xdelta-config: $(top_builddir)/config.status xdelta-config.in
204 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
205
206mostlyclean-libLTLIBRARIES:
207
208clean-libLTLIBRARIES:
209 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
210
211distclean-libLTLIBRARIES:
212
213maintainer-clean-libLTLIBRARIES:
214
215install-libLTLIBRARIES: $(lib_LTLIBRARIES)
216 @$(NORMAL_INSTALL)
217 $(mkinstalldirs) $(DESTDIR)$(libdir)
218 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
219 if test -f $$p; then \
220 echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
221 $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
222 else :; fi; \
223 done
224
225uninstall-libLTLIBRARIES:
226 @$(NORMAL_UNINSTALL)
227 list='$(lib_LTLIBRARIES)'; for p in $$list; do \
228 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
229 done
230
231.s.o:
232 $(COMPILE) -c $<
233
234.S.o:
235 $(COMPILE) -c $<
236
237mostlyclean-compile:
238 -rm -f *.o core *.core
239
240clean-compile:
241
242distclean-compile:
243 -rm -f *.tab.c
244
245maintainer-clean-compile:
246
247.s.lo:
248 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
249
250.S.lo:
251 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
252
253mostlyclean-libtool:
254 -rm -f *.lo
255
256clean-libtool:
257 -rm -rf .libs _libs
258
259distclean-libtool:
260
261maintainer-clean-libtool:
262
263libxdelta.la: $(libxdelta_la_OBJECTS) $(libxdelta_la_DEPENDENCIES)
264 $(LINK) -rpath $(libdir) $(libxdelta_la_LDFLAGS) $(libxdelta_la_OBJECTS) $(libxdelta_la_LIBADD) $(LIBS)
265
266mostlyclean-binPROGRAMS:
267
268clean-binPROGRAMS:
269 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
270
271distclean-binPROGRAMS:
272
273maintainer-clean-binPROGRAMS:
274
275install-binPROGRAMS: $(bin_PROGRAMS)
276 @$(NORMAL_INSTALL)
277 $(mkinstalldirs) $(DESTDIR)$(bindir)
278 @list='$(bin_PROGRAMS)'; for p in $$list; do \
279 if test -f $$p; then \
280 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
281 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
282 else :; fi; \
283 done
284
285uninstall-binPROGRAMS:
286 @$(NORMAL_UNINSTALL)
287 list='$(bin_PROGRAMS)'; for p in $$list; do \
288 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
289 done
290
291xdelta: $(xdelta_OBJECTS) $(xdelta_DEPENDENCIES)
292 @rm -f xdelta
293 $(LINK) $(xdelta_LDFLAGS) $(xdelta_OBJECTS) $(xdelta_LDADD) $(LIBS)
294
295install-binSCRIPTS: $(bin_SCRIPTS)
296 @$(NORMAL_INSTALL)
297 $(mkinstalldirs) $(DESTDIR)$(bindir)
298 @list='$(bin_SCRIPTS)'; for p in $$list; do \
299 if test -f $$p; then \
300 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
301 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
302 else if test -f $(srcdir)/$$p; then \
303 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
304 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
305 else :; fi; fi; \
306 done
307
308uninstall-binSCRIPTS:
309 @$(NORMAL_UNINSTALL)
310 list='$(bin_SCRIPTS)'; for p in $$list; do \
311 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
312 done
313
314install-m4dataDATA: $(m4data_DATA)
315 @$(NORMAL_INSTALL)
316 $(mkinstalldirs) $(DESTDIR)$(m4datadir)
317 @list='$(m4data_DATA)'; for p in $$list; do \
318 if test -f $(srcdir)/$$p; then \
319 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(m4datadir)/$$p"; \
320 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(m4datadir)/$$p; \
321 else if test -f $$p; then \
322 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(m4datadir)/$$p"; \
323 $(INSTALL_DATA) $$p $(DESTDIR)$(m4datadir)/$$p; \
324 fi; fi; \
325 done
326
327uninstall-m4dataDATA:
328 @$(NORMAL_UNINSTALL)
329 list='$(m4data_DATA)'; for p in $$list; do \
330 rm -f $(DESTDIR)$(m4datadir)/$$p; \
331 done
332
333install-includeHEADERS: $(include_HEADERS)
334 @$(NORMAL_INSTALL)
335 $(mkinstalldirs) $(DESTDIR)$(includedir)
336 @list='$(include_HEADERS)'; for p in $$list; do \
337 if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
338 echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
339 $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
340 done
341
342uninstall-includeHEADERS:
343 @$(NORMAL_UNINSTALL)
344 list='$(include_HEADERS)'; for p in $$list; do \
345 rm -f $(DESTDIR)$(includedir)/$$p; \
346 done
347
348# This directory's subdirectories are mostly independent; you can cd
349# into them and run `make' without going through this Makefile.
350# To change the values of `make' variables: instead of editing Makefiles,
351# (1) if the variable is set in `config.status', edit `config.status'
352# (which will cause the Makefiles to be regenerated when you run `make');
353# (2) otherwise, pass the desired values on the `make' command line.
354
355
356
357all-recursive install-data-recursive install-exec-recursive \
358installdirs-recursive install-recursive uninstall-recursive \
359check-recursive installcheck-recursive info-recursive dvi-recursive:
360 @set fnord $(MAKEFLAGS); amf=$$2; \
361 dot_seen=no; \
362 target=`echo $@ | sed s/-recursive//`; \
363 list='$(SUBDIRS)'; for subdir in $$list; do \
364 echo "Making $$target in $$subdir"; \
365 if test "$$subdir" = "."; then \
366 dot_seen=yes; \
367 local_target="$$target-am"; \
368 else \
369 local_target="$$target"; \
370 fi; \
371 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
372 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
373 done; \
374 if test "$$dot_seen" = "no"; then \
375 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
376 fi; test -z "$$fail"
377
378mostlyclean-recursive clean-recursive distclean-recursive \
379maintainer-clean-recursive:
380 @set fnord $(MAKEFLAGS); amf=$$2; \
381 dot_seen=no; \
382 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
383 rev="$$subdir $$rev"; \
384 test "$$subdir" = "." && dot_seen=yes; \
385 done; \
386 test "$$dot_seen" = "no" && rev=". $$rev"; \
387 target=`echo $@ | sed s/-recursive//`; \
388 for subdir in $$rev; do \
389 echo "Making $$target in $$subdir"; \
390 if test "$$subdir" = "."; then \
391 local_target="$$target-am"; \
392 else \
393 local_target="$$target"; \
394 fi; \
395 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
396 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
397 done && test -z "$$fail"
398tags-recursive:
399 list='$(SUBDIRS)'; for subdir in $$list; do \
400 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
401 done
402
403tags: TAGS
404
405ID: $(HEADERS) $(SOURCES) $(LISP)
406 list='$(SOURCES) $(HEADERS)'; \
407 unique=`for i in $$list; do echo $$i; done | \
408 awk ' { files[$$0] = 1; } \
409 END { for (i in files) print i; }'`; \
410 here=`pwd` && cd $(srcdir) \
411 && mkid -f$$here/ID $$unique $(LISP)
412
413TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
414 tags=; \
415 here=`pwd`; \
416 list='$(SUBDIRS)'; for subdir in $$list; do \
417 if test "$$subdir" = .; then :; else \
418 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
419 fi; \
420 done; \
421 list='$(SOURCES) $(HEADERS)'; \
422 unique=`for i in $$list; do echo $$i; done | \
423 awk ' { files[$$0] = 1; } \
424 END { for (i in files) print i; }'`; \
425 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
426 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
427
428mostlyclean-tags:
429
430clean-tags:
431
432distclean-tags:
433 -rm -f TAGS ID
434
435maintainer-clean-tags:
436
437distdir = $(PACKAGE)-$(VERSION)
438top_distdir = $(distdir)
439
440# This target untars the dist file and tries a VPATH configuration. Then
441# it guarantees that the distribution is self-contained by making another
442# tarfile.
443distcheck: dist
444 -rm -rf $(distdir)
445 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
446 mkdir $(distdir)/=build
447 mkdir $(distdir)/=inst
448 dc_install_base=`cd $(distdir)/=inst && pwd`; \
449 cd $(distdir)/=build \
450 && ../configure --srcdir=.. --prefix=$$dc_install_base \
451 && $(MAKE) $(AM_MAKEFLAGS) \
452 && $(MAKE) $(AM_MAKEFLAGS) dvi \
453 && $(MAKE) $(AM_MAKEFLAGS) check \
454 && $(MAKE) $(AM_MAKEFLAGS) install \
455 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
456 && $(MAKE) $(AM_MAKEFLAGS) dist
457 -rm -rf $(distdir)
458 @banner="$(distdir).tar.gz is ready for distribution"; \
459 dashes=`echo "$$banner" | sed s/./=/g`; \
460 echo "$$dashes"; \
461 echo "$$banner"; \
462 echo "$$dashes"
463dist: distdir
464 -chmod -R a+r $(distdir)
465 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
466 -rm -rf $(distdir)
467dist-all: distdir
468 -chmod -R a+r $(distdir)
469 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
470 -rm -rf $(distdir)
471distdir: $(DISTFILES)
472 -rm -rf $(distdir)
473 mkdir $(distdir)
474 -chmod 777 $(distdir)
475 here=`cd $(top_builddir) && pwd`; \
476 top_distdir=`cd $(distdir) && pwd`; \
477 distdir=`cd $(distdir) && pwd`; \
478 cd $(top_srcdir) \
479 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
480 @for file in $(DISTFILES); do \
481 d=$(srcdir); \
482 if test -d $$d/$$file; then \
483 cp -pr $$d/$$file $(distdir)/$$file; \
484 else \
485 test -f $(distdir)/$$file \
486 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
487 || cp -p $$d/$$file $(distdir)/$$file || :; \
488 fi; \
489 done
490 for subdir in $(SUBDIRS); do \
491 if test "$$subdir" = .; then :; else \
492 test -d $(distdir)/$$subdir \
493 || mkdir $(distdir)/$$subdir \
494 || exit 1; \
495 chmod 777 $(distdir)/$$subdir; \
496 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
497 || exit 1; \
498 fi; \
499 done
500
501DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
502
503-include $(DEP_FILES)
504
505mostlyclean-depend:
506
507clean-depend:
508
509distclean-depend:
510 -rm -rf .deps
511
512maintainer-clean-depend:
513
514%.o: %.c
515 @echo '$(COMPILE) -c $<'; \
516 $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
517 @-cp .deps/$(*F).pp .deps/$(*F).P; \
518 tr ' ' '\012' < .deps/$(*F).pp \
519 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
520 >> .deps/$(*F).P; \
521 rm .deps/$(*F).pp
522
523%.lo: %.c
524 @echo '$(LTCOMPILE) -c $<'; \
525 $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
526 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
527 < .deps/$(*F).pp > .deps/$(*F).P; \
528 tr ' ' '\012' < .deps/$(*F).pp \
529 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
530 >> .deps/$(*F).P; \
531 rm -f .deps/$(*F).pp
532info-am:
533info: info-recursive
534dvi-am:
535dvi: dvi-recursive
536check-am: all-am
537check: check-recursive
538installcheck-am:
539installcheck: installcheck-recursive
540all-recursive-am: config.h
541 $(MAKE) $(AM_MAKEFLAGS) all-recursive
542
543install-exec-am: install-libLTLIBRARIES install-binPROGRAMS \
544 install-binSCRIPTS
545install-exec: install-exec-recursive
546
547install-data-am: install-m4dataDATA install-includeHEADERS
548install-data: install-data-recursive
549
550install-am: all-am
551 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
552install: install-recursive
553uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \
554 uninstall-binSCRIPTS uninstall-m4dataDATA \
555 uninstall-includeHEADERS
556uninstall: uninstall-recursive
557all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) \
558 $(HEADERS) config.h
559all-redirect: all-recursive-am
560install-strip:
561 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
562installdirs: installdirs-recursive
563installdirs-am:
564 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
565 $(DESTDIR)$(bindir) $(DESTDIR)$(m4datadir) \
566 $(DESTDIR)$(includedir)
567
568
569mostlyclean-generic:
570
571clean-generic:
572
573distclean-generic:
574 -rm -f Makefile $(CONFIG_CLEAN_FILES)
575 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
576
577maintainer-clean-generic:
578 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
579mostlyclean-am: mostlyclean-hdr mostlyclean-libLTLIBRARIES \
580 mostlyclean-compile mostlyclean-libtool \
581 mostlyclean-binPROGRAMS mostlyclean-tags \
582 mostlyclean-depend mostlyclean-generic
583
584mostlyclean: mostlyclean-recursive
585
586clean-am: clean-hdr clean-libLTLIBRARIES clean-compile clean-libtool \
587 clean-binPROGRAMS clean-tags clean-depend clean-generic \
588 mostlyclean-am
589
590clean: clean-recursive
591
592distclean-am: distclean-hdr distclean-libLTLIBRARIES distclean-compile \
593 distclean-libtool distclean-binPROGRAMS distclean-tags \
594 distclean-depend distclean-generic clean-am
595 -rm -f libtool
596
597distclean: distclean-recursive
598 -rm -f config.status
599
600maintainer-clean-am: maintainer-clean-hdr \
601 maintainer-clean-libLTLIBRARIES \
602 maintainer-clean-compile maintainer-clean-libtool \
603 maintainer-clean-binPROGRAMS maintainer-clean-tags \
604 maintainer-clean-depend maintainer-clean-generic \
605 distclean-am
606 @echo "This command is intended for maintainers to use;"
607 @echo "it deletes files that may require special tools to rebuild."
608
609maintainer-clean: maintainer-clean-recursive
610 -rm -f config.status
611
612.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
613mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
614clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
615uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
616distclean-compile clean-compile maintainer-clean-compile \
617mostlyclean-libtool distclean-libtool clean-libtool \
618maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
619clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
620install-binPROGRAMS uninstall-binSCRIPTS install-binSCRIPTS \
621uninstall-m4dataDATA install-m4dataDATA uninstall-includeHEADERS \
622install-includeHEADERS install-data-recursive uninstall-data-recursive \
623install-exec-recursive uninstall-exec-recursive installdirs-recursive \
624uninstalldirs-recursive all-recursive check-recursive \
625installcheck-recursive info-recursive dvi-recursive \
626mostlyclean-recursive distclean-recursive clean-recursive \
627maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
628distclean-tags clean-tags maintainer-clean-tags distdir \
629mostlyclean-depend distclean-depend clean-depend \
630maintainer-clean-depend info-am info dvi-am dvi check check-am \
631installcheck-am installcheck all-recursive-am install-exec-am \
632install-exec install-data-am install-data install-am install \
633uninstall-am uninstall all-redirect all-am all installdirs-am \
634installdirs mostlyclean-generic distclean-generic clean-generic \
635maintainer-clean-generic clean mostlyclean distclean maintainer-clean
636
637
638#
639# Rules for the generated code
640#
641
642stamp-ser: $(top_srcdir)/libedsio/edsio.el xd.ser
643 $(top_srcdir)/libedsio/edsio-comp xd.ser
644 touch stamp-ser
645
646$(SER_OUT): stamp-ser
647
648#
649#
650#
651
652# Tell versions [3.59,3.63) of GNU make to not export all variables.
653# Otherwise a system limit (for SysV at least) may be exceeded.
654.NOEXPORT:
diff --git a/xdelta1/Makefile.in b/xdelta1/Makefile.in
deleted file mode 100755
index 8e59b44..0000000
--- a/xdelta1/Makefile.in
+++ /dev/null
@@ -1,654 +0,0 @@
1# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
2
3# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4# This Makefile.in 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
14SHELL = @SHELL@
15
16srcdir = @srcdir@
17top_srcdir = @top_srcdir@
18VPATH = @srcdir@
19prefix = @prefix@
20exec_prefix = @exec_prefix@
21
22bindir = @bindir@
23sbindir = @sbindir@
24libexecdir = @libexecdir@
25datadir = @datadir@
26sysconfdir = @sysconfdir@
27sharedstatedir = @sharedstatedir@
28localstatedir = @localstatedir@
29libdir = @libdir@
30infodir = @infodir@
31mandir = @mandir@
32includedir = @includedir@
33oldincludedir = /usr/include
34
35DESTDIR =
36
37pkgdatadir = $(datadir)/@PACKAGE@
38pkglibdir = $(libdir)/@PACKAGE@
39pkgincludedir = $(includedir)/@PACKAGE@
40
41top_builddir = .
42
43ACLOCAL = @ACLOCAL@
44AUTOCONF = @AUTOCONF@
45AUTOMAKE = @AUTOMAKE@
46AUTOHEADER = @AUTOHEADER@
47
48INSTALL = @INSTALL@
49INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
50INSTALL_DATA = @INSTALL_DATA@
51INSTALL_SCRIPT = @INSTALL_SCRIPT@
52transform = @program_transform_name@
53
54NORMAL_INSTALL = :
55PRE_INSTALL = :
56POST_INSTALL = :
57NORMAL_UNINSTALL = :
58PRE_UNINSTALL = :
59POST_UNINSTALL = :
60host_alias = @host_alias@
61host_triplet = @host@
62AS = @AS@
63CC = @CC@
64CPP = @CPP@
65DLLTOOL = @DLLTOOL@
66EMACS = @EMACS@
67GLIB_CFLAGS = @GLIB_CFLAGS@
68GLIB_CONFIG = @GLIB_CONFIG@
69GLIB_LIBS = @GLIB_LIBS@
70LD = @LD@
71LIBTOOL = @LIBTOOL@
72LN_S = @LN_S@
73MAINT = @MAINT@
74MAKEINFO = @MAKEINFO@
75NM = @NM@
76OBJDUMP = @OBJDUMP@
77PACKAGE = @PACKAGE@
78RANLIB = @RANLIB@
79VERSION = @VERSION@
80top_srcdir_absolute = @top_srcdir_absolute@
81
82INCLUDES = -I$(top_srcdir)/libedsio $(GLIB_CFLAGS)
83
84bin_PROGRAMS = xdelta
85bin_SCRIPTS = xdelta-config
86
87xdelta_SOURCES = xdmain.c getopt.c getopt1.c
88
89xdelta_LDADD = libxdelta.la $(top_srcdir)/libedsio/libedsio.la $(GLIB_LIBS) -lz
90
91
92include_HEADERS = xdelta.h xd_edsio.h
93noinst_HEADERS = xdeltapriv.h getopt.h
94
95lib_LTLIBRARIES = libxdelta.la
96
97libxdelta_la_SOURCES = xdelta.c xdapply.c $(SER_SOURCES)
98libxdelta_la_LIBADD = $(GLIB_LIBS)
99
100EXTRA_DIST = xd.ser $(SER_OUT) xdelta.magic xdelta.prj xdelta.m4 autogen.sh xdelta.dsp xdelta.dsw stamp-ser xdrsync.c
101
102
103SUBDIRS = libedsio . test doc djgpp
104
105m4datadir = $(datadir)/aclocal
106m4data_DATA = xdelta.m4
107
108libxdelta_la_LDFLAGS = -version-info 2:0:0
109
110SER_OUT = xd_edsio.h xd_edsio.c
111
112SER_SOURCES = xd_edsio.c
113BUILT_SOURCES = $(SER_SOURCES)
114ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
115mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
116CONFIG_HEADER = config.h
117CONFIG_CLEAN_FILES = xdelta-config
118LTLIBRARIES = $(lib_LTLIBRARIES)
119
120
121DEFS = @DEFS@ -I. -I$(srcdir) -I.
122CPPFLAGS = @CPPFLAGS@
123LDFLAGS = @LDFLAGS@
124LIBS = @LIBS@
125libxdelta_la_DEPENDENCIES =
126libxdelta_la_OBJECTS = xdelta.lo xdapply.lo xd_edsio.lo
127PROGRAMS = $(bin_PROGRAMS)
128
129xdelta_OBJECTS = xdmain.o getopt.o getopt1.o
130xdelta_DEPENDENCIES = libxdelta.la $(top_srcdir)/libedsio/libedsio.la
131xdelta_LDFLAGS =
132SCRIPTS = $(bin_SCRIPTS)
133
134CFLAGS = @CFLAGS@
135COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
136LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
137CCLD = $(CC)
138LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
139DATA = $(m4data_DATA)
140
141HEADERS = $(include_HEADERS) $(noinst_HEADERS)
142
143DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
144Makefile.am Makefile.in NEWS aclocal.m4 config.guess config.h.in \
145config.sub configure configure.in install-sh ltconfig ltmain.sh \
146mkinstalldirs xdelta-config.in
147
148
149DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
150
151TAR = tar
152GZIP_ENV = --best
153DEP_FILES = .deps/getopt.P .deps/getopt1.P .deps/xd_edsio.P \
154.deps/xdapply.P .deps/xdelta.P .deps/xdmain.P
155SOURCES = $(libxdelta_la_SOURCES) $(xdelta_SOURCES)
156OBJECTS = $(libxdelta_la_OBJECTS) $(xdelta_OBJECTS)
157
158all: all-redirect
159.SUFFIXES:
160.SUFFIXES: .S .c .lo .o .s
161$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
162 cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
163
164Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
165 cd $(top_builddir) \
166 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
167
168$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
169 cd $(srcdir) && $(ACLOCAL)
170
171config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
172 $(SHELL) ./config.status --recheck
173$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
174 cd $(srcdir) && $(AUTOCONF)
175
176config.h: stamp-h
177 @if test ! -f $@; then \
178 rm -f stamp-h; \
179 $(MAKE) stamp-h; \
180 else :; fi
181stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
182 cd $(top_builddir) \
183 && CONFIG_FILES= CONFIG_HEADERS=config.h \
184 $(SHELL) ./config.status
185 @echo timestamp > stamp-h 2> /dev/null
186$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
187 @if test ! -f $@; then \
188 rm -f $(srcdir)/stamp-h.in; \
189 $(MAKE) $(srcdir)/stamp-h.in; \
190 else :; fi
191$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
192 cd $(top_srcdir) && $(AUTOHEADER)
193 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
194
195mostlyclean-hdr:
196
197clean-hdr:
198
199distclean-hdr:
200 -rm -f config.h
201
202maintainer-clean-hdr:
203xdelta-config: $(top_builddir)/config.status xdelta-config.in
204 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
205
206mostlyclean-libLTLIBRARIES:
207
208clean-libLTLIBRARIES:
209 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
210
211distclean-libLTLIBRARIES:
212
213maintainer-clean-libLTLIBRARIES:
214
215install-libLTLIBRARIES: $(lib_LTLIBRARIES)
216 @$(NORMAL_INSTALL)
217 $(mkinstalldirs) $(DESTDIR)$(libdir)
218 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
219 if test -f $$p; then \
220 echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
221 $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
222 else :; fi; \
223 done
224
225uninstall-libLTLIBRARIES:
226 @$(NORMAL_UNINSTALL)
227 list='$(lib_LTLIBRARIES)'; for p in $$list; do \
228 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
229 done
230
231.s.o:
232 $(COMPILE) -c $<
233
234.S.o:
235 $(COMPILE) -c $<
236
237mostlyclean-compile:
238 -rm -f *.o core *.core
239
240clean-compile:
241
242distclean-compile:
243 -rm -f *.tab.c
244
245maintainer-clean-compile:
246
247.s.lo:
248 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
249
250.S.lo:
251 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
252
253mostlyclean-libtool:
254 -rm -f *.lo
255
256clean-libtool:
257 -rm -rf .libs _libs
258
259distclean-libtool:
260
261maintainer-clean-libtool:
262
263libxdelta.la: $(libxdelta_la_OBJECTS) $(libxdelta_la_DEPENDENCIES)
264 $(LINK) -rpath $(libdir) $(libxdelta_la_LDFLAGS) $(libxdelta_la_OBJECTS) $(libxdelta_la_LIBADD) $(LIBS)
265
266mostlyclean-binPROGRAMS:
267
268clean-binPROGRAMS:
269 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
270
271distclean-binPROGRAMS:
272
273maintainer-clean-binPROGRAMS:
274
275install-binPROGRAMS: $(bin_PROGRAMS)
276 @$(NORMAL_INSTALL)
277 $(mkinstalldirs) $(DESTDIR)$(bindir)
278 @list='$(bin_PROGRAMS)'; for p in $$list; do \
279 if test -f $$p; then \
280 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
281 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
282 else :; fi; \
283 done
284
285uninstall-binPROGRAMS:
286 @$(NORMAL_UNINSTALL)
287 list='$(bin_PROGRAMS)'; for p in $$list; do \
288 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
289 done
290
291xdelta: $(xdelta_OBJECTS) $(xdelta_DEPENDENCIES)
292 @rm -f xdelta
293 $(LINK) $(xdelta_LDFLAGS) $(xdelta_OBJECTS) $(xdelta_LDADD) $(LIBS)
294
295install-binSCRIPTS: $(bin_SCRIPTS)
296 @$(NORMAL_INSTALL)
297 $(mkinstalldirs) $(DESTDIR)$(bindir)
298 @list='$(bin_SCRIPTS)'; for p in $$list; do \
299 if test -f $$p; then \
300 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
301 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
302 else if test -f $(srcdir)/$$p; then \
303 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
304 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
305 else :; fi; fi; \
306 done
307
308uninstall-binSCRIPTS:
309 @$(NORMAL_UNINSTALL)
310 list='$(bin_SCRIPTS)'; for p in $$list; do \
311 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
312 done
313
314install-m4dataDATA: $(m4data_DATA)
315 @$(NORMAL_INSTALL)
316 $(mkinstalldirs) $(DESTDIR)$(m4datadir)
317 @list='$(m4data_DATA)'; for p in $$list; do \
318 if test -f $(srcdir)/$$p; then \
319 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(m4datadir)/$$p"; \
320 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(m4datadir)/$$p; \
321 else if test -f $$p; then \
322 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(m4datadir)/$$p"; \
323 $(INSTALL_DATA) $$p $(DESTDIR)$(m4datadir)/$$p; \
324 fi; fi; \
325 done
326
327uninstall-m4dataDATA:
328 @$(NORMAL_UNINSTALL)
329 list='$(m4data_DATA)'; for p in $$list; do \
330 rm -f $(DESTDIR)$(m4datadir)/$$p; \
331 done
332
333install-includeHEADERS: $(include_HEADERS)
334 @$(NORMAL_INSTALL)
335 $(mkinstalldirs) $(DESTDIR)$(includedir)
336 @list='$(include_HEADERS)'; for p in $$list; do \
337 if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
338 echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
339 $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
340 done
341
342uninstall-includeHEADERS:
343 @$(NORMAL_UNINSTALL)
344 list='$(include_HEADERS)'; for p in $$list; do \
345 rm -f $(DESTDIR)$(includedir)/$$p; \
346 done
347
348# This directory's subdirectories are mostly independent; you can cd
349# into them and run `make' without going through this Makefile.
350# To change the values of `make' variables: instead of editing Makefiles,
351# (1) if the variable is set in `config.status', edit `config.status'
352# (which will cause the Makefiles to be regenerated when you run `make');
353# (2) otherwise, pass the desired values on the `make' command line.
354
355@SET_MAKE@
356
357all-recursive install-data-recursive install-exec-recursive \
358installdirs-recursive install-recursive uninstall-recursive \
359check-recursive installcheck-recursive info-recursive dvi-recursive:
360 @set fnord $$MAKEFLAGS; amf=$$2; \
361 dot_seen=no; \
362 target=`echo $@ | sed s/-recursive//`; \
363 list='$(SUBDIRS)'; for subdir in $$list; do \
364 echo "Making $$target in $$subdir"; \
365 if test "$$subdir" = "."; then \
366 dot_seen=yes; \
367 local_target="$$target-am"; \
368 else \
369 local_target="$$target"; \
370 fi; \
371 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
372 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
373 done; \
374 if test "$$dot_seen" = "no"; then \
375 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
376 fi; test -z "$$fail"
377
378mostlyclean-recursive clean-recursive distclean-recursive \
379maintainer-clean-recursive:
380 @set fnord $$MAKEFLAGS; amf=$$2; \
381 dot_seen=no; \
382 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
383 rev="$$subdir $$rev"; \
384 test "$$subdir" != "." || dot_seen=yes; \
385 done; \
386 test "$$dot_seen" = "no" && rev=". $$rev"; \
387 target=`echo $@ | sed s/-recursive//`; \
388 for subdir in $$rev; do \
389 echo "Making $$target in $$subdir"; \
390 if test "$$subdir" = "."; then \
391 local_target="$$target-am"; \
392 else \
393 local_target="$$target"; \
394 fi; \
395 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
396 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
397 done && test -z "$$fail"
398tags-recursive:
399 list='$(SUBDIRS)'; for subdir in $$list; do \
400 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
401 done
402
403tags: TAGS
404
405ID: $(HEADERS) $(SOURCES) $(LISP)
406 list='$(SOURCES) $(HEADERS)'; \
407 unique=`for i in $$list; do echo $$i; done | \
408 awk ' { files[$$0] = 1; } \
409 END { for (i in files) print i; }'`; \
410 here=`pwd` && cd $(srcdir) \
411 && mkid -f$$here/ID $$unique $(LISP)
412
413TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
414 tags=; \
415 here=`pwd`; \
416 list='$(SUBDIRS)'; for subdir in $$list; do \
417 if test "$$subdir" = .; then :; else \
418 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
419 fi; \
420 done; \
421 list='$(SOURCES) $(HEADERS)'; \
422 unique=`for i in $$list; do echo $$i; done | \
423 awk ' { files[$$0] = 1; } \
424 END { for (i in files) print i; }'`; \
425 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
426 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
427
428mostlyclean-tags:
429
430clean-tags:
431
432distclean-tags:
433 -rm -f TAGS ID
434
435maintainer-clean-tags:
436
437distdir = $(PACKAGE)-$(VERSION)
438top_distdir = $(distdir)
439
440# This target untars the dist file and tries a VPATH configuration. Then
441# it guarantees that the distribution is self-contained by making another
442# tarfile.
443distcheck: dist
444 -rm -rf $(distdir)
445 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
446 mkdir $(distdir)/=build
447 mkdir $(distdir)/=inst
448 dc_install_base=`cd $(distdir)/=inst && pwd`; \
449 cd $(distdir)/=build \
450 && ../configure --srcdir=.. --prefix=$$dc_install_base \
451 && $(MAKE) $(AM_MAKEFLAGS) \
452 && $(MAKE) $(AM_MAKEFLAGS) dvi \
453 && $(MAKE) $(AM_MAKEFLAGS) check \
454 && $(MAKE) $(AM_MAKEFLAGS) install \
455 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
456 && $(MAKE) $(AM_MAKEFLAGS) dist
457 -rm -rf $(distdir)
458 @banner="$(distdir).tar.gz is ready for distribution"; \
459 dashes=`echo "$$banner" | sed s/./=/g`; \
460 echo "$$dashes"; \
461 echo "$$banner"; \
462 echo "$$dashes"
463dist: distdir
464 -chmod -R a+r $(distdir)
465 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
466 -rm -rf $(distdir)
467dist-all: distdir
468 -chmod -R a+r $(distdir)
469 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
470 -rm -rf $(distdir)
471distdir: $(DISTFILES)
472 -rm -rf $(distdir)
473 mkdir $(distdir)
474 -chmod 777 $(distdir)
475 here=`cd $(top_builddir) && pwd`; \
476 top_distdir=`cd $(distdir) && pwd`; \
477 distdir=`cd $(distdir) && pwd`; \
478 cd $(top_srcdir) \
479 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
480 @for file in $(DISTFILES); do \
481 d=$(srcdir); \
482 if test -d $$d/$$file; then \
483 cp -pr $$d/$$file $(distdir)/$$file; \
484 else \
485 test -f $(distdir)/$$file \
486 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
487 || cp -p $$d/$$file $(distdir)/$$file || :; \
488 fi; \
489 done
490 for subdir in $(SUBDIRS); do \
491 if test "$$subdir" = .; then :; else \
492 test -d $(distdir)/$$subdir \
493 || mkdir $(distdir)/$$subdir \
494 || exit 1; \
495 chmod 777 $(distdir)/$$subdir; \
496 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
497 || exit 1; \
498 fi; \
499 done
500
501DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
502
503-include $(DEP_FILES)
504
505mostlyclean-depend:
506
507clean-depend:
508
509distclean-depend:
510 -rm -rf .deps
511
512maintainer-clean-depend:
513
514%.o: %.c
515 @echo '$(COMPILE) -c $<'; \
516 $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
517 @-cp .deps/$(*F).pp .deps/$(*F).P; \
518 tr ' ' '\012' < .deps/$(*F).pp \
519 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
520 >> .deps/$(*F).P; \
521 rm .deps/$(*F).pp
522
523%.lo: %.c
524 @echo '$(LTCOMPILE) -c $<'; \
525 $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
526 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
527 < .deps/$(*F).pp > .deps/$(*F).P; \
528 tr ' ' '\012' < .deps/$(*F).pp \
529 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
530 >> .deps/$(*F).P; \
531 rm -f .deps/$(*F).pp
532info-am:
533info: info-recursive
534dvi-am:
535dvi: dvi-recursive
536check-am: all-am
537check: check-recursive
538installcheck-am:
539installcheck: installcheck-recursive
540all-recursive-am: config.h
541 $(MAKE) $(AM_MAKEFLAGS) all-recursive
542
543install-exec-am: install-libLTLIBRARIES install-binPROGRAMS \
544 install-binSCRIPTS
545install-exec: install-exec-recursive
546
547install-data-am: install-m4dataDATA install-includeHEADERS
548install-data: install-data-recursive
549
550install-am: all-am
551 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
552install: install-recursive
553uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \
554 uninstall-binSCRIPTS uninstall-m4dataDATA \
555 uninstall-includeHEADERS
556uninstall: uninstall-recursive
557all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) \
558 $(HEADERS) config.h
559all-redirect: all-recursive-am
560install-strip:
561 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
562installdirs: installdirs-recursive
563installdirs-am:
564 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
565 $(DESTDIR)$(bindir) $(DESTDIR)$(m4datadir) \
566 $(DESTDIR)$(includedir)
567
568
569mostlyclean-generic:
570
571clean-generic:
572
573distclean-generic:
574 -rm -f Makefile $(CONFIG_CLEAN_FILES)
575 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
576
577maintainer-clean-generic:
578 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
579mostlyclean-am: mostlyclean-hdr mostlyclean-libLTLIBRARIES \
580 mostlyclean-compile mostlyclean-libtool \
581 mostlyclean-binPROGRAMS mostlyclean-tags \
582 mostlyclean-depend mostlyclean-generic
583
584mostlyclean: mostlyclean-recursive
585
586clean-am: clean-hdr clean-libLTLIBRARIES clean-compile clean-libtool \
587 clean-binPROGRAMS clean-tags clean-depend clean-generic \
588 mostlyclean-am
589
590clean: clean-recursive
591
592distclean-am: distclean-hdr distclean-libLTLIBRARIES distclean-compile \
593 distclean-libtool distclean-binPROGRAMS distclean-tags \
594 distclean-depend distclean-generic clean-am
595 -rm -f libtool
596
597distclean: distclean-recursive
598 -rm -f config.status
599
600maintainer-clean-am: maintainer-clean-hdr \
601 maintainer-clean-libLTLIBRARIES \
602 maintainer-clean-compile maintainer-clean-libtool \
603 maintainer-clean-binPROGRAMS maintainer-clean-tags \
604 maintainer-clean-depend maintainer-clean-generic \
605 distclean-am
606 @echo "This command is intended for maintainers to use;"
607 @echo "it deletes files that may require special tools to rebuild."
608
609maintainer-clean: maintainer-clean-recursive
610 -rm -f config.status
611
612.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
613mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
614clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
615uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
616distclean-compile clean-compile maintainer-clean-compile \
617mostlyclean-libtool distclean-libtool clean-libtool \
618maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
619clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
620install-binPROGRAMS uninstall-binSCRIPTS install-binSCRIPTS \
621uninstall-m4dataDATA install-m4dataDATA uninstall-includeHEADERS \
622install-includeHEADERS install-data-recursive uninstall-data-recursive \
623install-exec-recursive uninstall-exec-recursive installdirs-recursive \
624uninstalldirs-recursive all-recursive check-recursive \
625installcheck-recursive info-recursive dvi-recursive \
626mostlyclean-recursive distclean-recursive clean-recursive \
627maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
628distclean-tags clean-tags maintainer-clean-tags distdir \
629mostlyclean-depend distclean-depend clean-depend \
630maintainer-clean-depend info-am info dvi-am dvi check check-am \
631installcheck-am installcheck all-recursive-am install-exec-am \
632install-exec install-data-am install-data install-am install \
633uninstall-am uninstall all-redirect all-am all installdirs-am \
634installdirs mostlyclean-generic distclean-generic clean-generic \
635maintainer-clean-generic clean mostlyclean distclean maintainer-clean
636
637
638#
639# Rules for the generated code
640#
641
642stamp-ser: $(top_srcdir)/libedsio/edsio.el xd.ser
643 $(top_srcdir)/libedsio/edsio-comp xd.ser
644 touch stamp-ser
645
646$(SER_OUT): stamp-ser
647
648#
649#
650#
651
652# Tell versions [3.59,3.63) of GNU make to not export all variables.
653# Otherwise a system limit (for SysV at least) may be exceeded.
654.NOEXPORT:
diff --git a/xdelta1/autogen.sh b/xdelta1/autogen.sh
deleted file mode 100755
index 5f2e9c2..0000000
--- a/xdelta1/autogen.sh
+++ /dev/null
@@ -1,59 +0,0 @@
1#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
4DIE=0
5
6(autoconf --version) < /dev/null > /dev/null 2>&1 || {
7 echo
8 echo "You must have autoconf installed to compile xdelta."
9 echo "Download the appropriate package for your distribution,"
10 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
11 DIE=1
12}
13
14(libtool --version) < /dev/null > /dev/null 2>&1 || {
15 echo
16 echo "You must have libtool installed to compile xdelta."
17 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.2d.tar.gz"
18 echo "(or a newer version if it is available)"
19 DIE=1
20}
21
22(automake --version) < /dev/null > /dev/null 2>&1 || {
23 echo
24 echo "You must have automake installed to compile xdelta."
25 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.4.tar.gz"
26 echo "(or a newer version if it is available)"
27 DIE=1
28}
29
30if test "$DIE" -eq 1; then
31 exit 1
32fi
33
34(test -f xdelta.c) || {
35 echo "You must run this script in the top-level xdelta directory"
36 exit 1
37}
38
39if test -z "$*"; then
40 echo "I am going to run ./configure with no arguments - if you wish "
41 echo "to pass any to it, please specify them on the $0 command line."
42fi
43
44for i in .
45do
46 echo processing $i
47 (cd $i; \
48 libtoolize --copy --force; \
49 aclocal $ACLOCAL_FLAGS; autoheader; \
50 automake --add-missing; \
51 autoheader; \
52 autoconf)
53done
54
55echo "Running ./configure --enable-maintainer-mode" "$@"
56./configure --enable-maintainer-mode "$@"
57
58echo
59echo "Now type 'make' to compile xdelta."
diff --git a/xdelta1/config.guess b/xdelta1/config.guess
deleted file mode 100755
index e1b5871..0000000
--- a/xdelta1/config.guess
+++ /dev/null
@@ -1,1121 +0,0 @@
1#! /bin/sh
2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
4# Free Software Foundation, Inc.
5#
6# This file is free software; you can redistribute it and/or modify it
7# under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19#
20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a
22# configuration script generated by Autoconf, you may include it under
23# the same distribution terms that you use for the rest of that program.
24
25# Written by Per Bothner <bothner@cygnus.com>.
26# The master version of this file is at the FSF in /home/gd/gnu/lib.
27# Please send patches to <autoconf-patches@gnu.org>.
28#
29# This script attempts to guess a canonical system name similar to
30# config.sub. If it succeeds, it prints the system name on stdout, and
31# exits with 0. Otherwise, it exits with 1.
32#
33# The plan is that this can be called by configure scripts if you
34# don't specify an explicit system type (host/target name).
35#
36# Only a few systems have been added to this list; please add others
37# (but try to keep the structure clean).
38#
39
40# Use $HOST_CC if defined. $CC may point to a cross-compiler
41if test x"$CC_FOR_BUILD" = x; then
42 if test x"$HOST_CC" != x; then
43 CC_FOR_BUILD="$HOST_CC"
44 else
45 if test x"$CC" != x; then
46 CC_FOR_BUILD="$CC"
47 else
48 CC_FOR_BUILD=cc
49 fi
50 fi
51fi
52
53
54# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
55# (ghazi@noc.rutgers.edu 8/24/94.)
56if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
57 PATH=$PATH:/.attbin ; export PATH
58fi
59
60UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
61UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
62UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
63UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
64
65dummy=dummy-$$
66trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
67
68# Note: order is significant - the case branches are not exclusive.
69
70case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
71 alpha:OSF1:*:*)
72 if test $UNAME_RELEASE = "V4.0"; then
73 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
74 fi
75 # A Vn.n version is a released version.
76 # A Tn.n version is a released field test version.
77 # A Xn.n version is an unreleased experimental baselevel.
78 # 1.2 uses "1.2" for uname -r.
79 cat <<EOF >$dummy.s
80 .globl main
81 .ent main
82main:
83 .frame \$30,0,\$26,0
84 .prologue 0
85 .long 0x47e03d80 # implver $0
86 lda \$2,259
87 .long 0x47e20c21 # amask $2,$1
88 srl \$1,8,\$2
89 sll \$2,2,\$2
90 sll \$0,3,\$0
91 addl \$1,\$0,\$0
92 addl \$2,\$0,\$0
93 ret \$31,(\$26),1
94 .end main
95EOF
96 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
97 if test "$?" = 0 ; then
98 ./$dummy
99 case "$?" in
100 7)
101 UNAME_MACHINE="alpha"
102 ;;
103 15)
104 UNAME_MACHINE="alphaev5"
105 ;;
106 14)
107 UNAME_MACHINE="alphaev56"
108 ;;
109 10)
110 UNAME_MACHINE="alphapca56"
111 ;;
112 16)
113 UNAME_MACHINE="alphaev6"
114 ;;
115 esac
116 fi
117 rm -f $dummy.s $dummy
118 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
119 exit 0 ;;
120 Alpha\ *:Windows_NT*:*)
121 # How do we know it's Interix rather than the generic POSIX subsystem?
122 # Should we change UNAME_MACHINE based on the output of uname instead
123 # of the specific Alpha model?
124 echo alpha-pc-interix
125 exit 0 ;;
126 21064:Windows_NT:50:3)
127 echo alpha-dec-winnt3.5
128 exit 0 ;;
129 Amiga*:UNIX_System_V:4.0:*)
130 echo m68k-cbm-sysv4
131 exit 0;;
132 amiga:NetBSD:*:*)
133 echo m68k-cbm-netbsd${UNAME_RELEASE}
134 exit 0 ;;
135 amiga:OpenBSD:*:*)
136 echo m68k-unknown-openbsd${UNAME_RELEASE}
137 exit 0 ;;
138 *:[Aa]miga[Oo][Ss]:*:*)
139 echo ${UNAME_MACHINE}-unknown-amigaos
140 exit 0 ;;
141 arc64:OpenBSD:*:*)
142 echo mips64el-unknown-openbsd${UNAME_RELEASE}
143 exit 0 ;;
144 arc:OpenBSD:*:*)
145 echo mipsel-unknown-openbsd${UNAME_RELEASE}
146 exit 0 ;;
147 hkmips:OpenBSD:*:*)
148 echo mips-unknown-openbsd${UNAME_RELEASE}
149 exit 0 ;;
150 pmax:OpenBSD:*:*)
151 echo mipsel-unknown-openbsd${UNAME_RELEASE}
152 exit 0 ;;
153 sgi:OpenBSD:*:*)
154 echo mips-unknown-openbsd${UNAME_RELEASE}
155 exit 0 ;;
156 wgrisc:OpenBSD:*:*)
157 echo mipsel-unknown-openbsd${UNAME_RELEASE}
158 exit 0 ;;
159 *:OS/390:*:*)
160 echo i370-ibm-openedition
161 exit 0 ;;
162 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
163 echo arm-acorn-riscix${UNAME_RELEASE}
164 exit 0;;
165 arm32:NetBSD:*:*)
166 echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
167 exit 0 ;;
168 SR2?01:HI-UX/MPP:*:*)
169 echo hppa1.1-hitachi-hiuxmpp
170 exit 0;;
171 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
172 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
173 if test "`(/bin/universe) 2>/dev/null`" = att ; then
174 echo pyramid-pyramid-sysv3
175 else
176 echo pyramid-pyramid-bsd
177 fi
178 exit 0 ;;
179 NILE*:*:*:dcosx)
180 echo pyramid-pyramid-svr4
181 exit 0 ;;
182 sun4H:SunOS:5.*:*)
183 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
184 exit 0 ;;
185 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
186 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
187 exit 0 ;;
188 i86pc:SunOS:5.*:*)
189 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
190 exit 0 ;;
191 sun4*:SunOS:6*:*)
192 # According to config.sub, this is the proper way to canonicalize
193 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
194 # it's likely to be more like Solaris than SunOS4.
195 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
196 exit 0 ;;
197 sun4*:SunOS:*:*)
198 case "`/usr/bin/arch -k`" in
199 Series*|S4*)
200 UNAME_RELEASE=`uname -v`
201 ;;
202 esac
203 # Japanese Language versions have a version number like `4.1.3-JL'.
204 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
205 exit 0 ;;
206 sun3*:SunOS:*:*)
207 echo m68k-sun-sunos${UNAME_RELEASE}
208 exit 0 ;;
209 sun*:*:4.2BSD:*)
210 UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
211 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
212 case "`/bin/arch`" in
213 sun3)
214 echo m68k-sun-sunos${UNAME_RELEASE}
215 ;;
216 sun4)
217 echo sparc-sun-sunos${UNAME_RELEASE}
218 ;;
219 esac
220 exit 0 ;;
221 aushp:SunOS:*:*)
222 echo sparc-auspex-sunos${UNAME_RELEASE}
223 exit 0 ;;
224 atari*:NetBSD:*:*)
225 echo m68k-atari-netbsd${UNAME_RELEASE}
226 exit 0 ;;
227 atari*:OpenBSD:*:*)
228 echo m68k-unknown-openbsd${UNAME_RELEASE}
229 exit 0 ;;
230 # The situation for MiNT is a little confusing. The machine name
231 # can be virtually everything (everything which is not
232 # "atarist" or "atariste" at least should have a processor
233 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
234 # to the lowercase version "mint" (or "freemint"). Finally
235 # the system name "TOS" denotes a system which is actually not
236 # MiNT. But MiNT is downward compatible to TOS, so this should
237 # be no problem.
238 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
239 echo m68k-atari-mint${UNAME_RELEASE}
240 exit 0 ;;
241 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
242 echo m68k-atari-mint${UNAME_RELEASE}
243 exit 0 ;;
244 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
245 echo m68k-atari-mint${UNAME_RELEASE}
246 exit 0 ;;
247 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
248 echo m68k-milan-mint${UNAME_RELEASE}
249 exit 0 ;;
250 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
251 echo m68k-hades-mint${UNAME_RELEASE}
252 exit 0 ;;
253 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
254 echo m68k-unknown-mint${UNAME_RELEASE}
255 exit 0 ;;
256 sun3*:NetBSD:*:*)
257 echo m68k-sun-netbsd${UNAME_RELEASE}
258 exit 0 ;;
259 sun3*:OpenBSD:*:*)
260 echo m68k-unknown-openbsd${UNAME_RELEASE}
261 exit 0 ;;
262 mac68k:NetBSD:*:*)
263 echo m68k-apple-netbsd${UNAME_RELEASE}
264 exit 0 ;;
265 mac68k:OpenBSD:*:*)
266 echo m68k-unknown-openbsd${UNAME_RELEASE}
267 exit 0 ;;
268 mvme68k:OpenBSD:*:*)
269 echo m68k-unknown-openbsd${UNAME_RELEASE}
270 exit 0 ;;
271 mvme88k:OpenBSD:*:*)
272 echo m88k-unknown-openbsd${UNAME_RELEASE}
273 exit 0 ;;
274 powerpc:machten:*:*)
275 echo powerpc-apple-machten${UNAME_RELEASE}
276 exit 0 ;;
277 macppc:NetBSD:*:*)
278 echo powerpc-apple-netbsd${UNAME_RELEASE}
279 exit 0 ;;
280 RISC*:Mach:*:*)
281 echo mips-dec-mach_bsd4.3
282 exit 0 ;;
283 RISC*:ULTRIX:*:*)
284 echo mips-dec-ultrix${UNAME_RELEASE}
285 exit 0 ;;
286 VAX*:ULTRIX*:*:*)
287 echo vax-dec-ultrix${UNAME_RELEASE}
288 exit 0 ;;
289 2020:CLIX:*:* | 2430:CLIX:*:*)
290 echo clipper-intergraph-clix${UNAME_RELEASE}
291 exit 0 ;;
292 mips:*:*:UMIPS | mips:*:*:RISCos)
293 sed 's/^ //' << EOF >$dummy.c
294#ifdef __cplusplus
295 int main (int argc, char *argv[]) {
296#else
297 int main (argc, argv) int argc; char *argv[]; {
298#endif
299 #if defined (host_mips) && defined (MIPSEB)
300 #if defined (SYSTYPE_SYSV)
301 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
302 #endif
303 #if defined (SYSTYPE_SVR4)
304 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
305 #endif
306 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
307 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
308 #endif
309 #endif
310 exit (-1);
311 }
312EOF
313 $CC_FOR_BUILD $dummy.c -o $dummy \
314 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
315 && rm $dummy.c $dummy && exit 0
316 rm -f $dummy.c $dummy
317 echo mips-mips-riscos${UNAME_RELEASE}
318 exit 0 ;;
319 Night_Hawk:Power_UNIX:*:*)
320 echo powerpc-harris-powerunix
321 exit 0 ;;
322 m88k:CX/UX:7*:*)
323 echo m88k-harris-cxux7
324 exit 0 ;;
325 m88k:*:4*:R4*)
326 echo m88k-motorola-sysv4
327 exit 0 ;;
328 m88k:*:3*:R3*)
329 echo m88k-motorola-sysv3
330 exit 0 ;;
331 AViiON:dgux:*:*)
332 # DG/UX returns AViiON for all architectures
333 UNAME_PROCESSOR=`/usr/bin/uname -p`
334 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110]
335 then
336 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
337 [ ${TARGET_BINARY_INTERFACE}x = x ]
338 then
339 echo m88k-dg-dgux${UNAME_RELEASE}
340 else
341 echo m88k-dg-dguxbcs${UNAME_RELEASE}
342 fi
343 else
344 echo i586-dg-dgux${UNAME_RELEASE}
345 fi
346 exit 0 ;;
347 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
348 echo m88k-dolphin-sysv3
349 exit 0 ;;
350 M88*:*:R3*:*)
351 # Delta 88k system running SVR3
352 echo m88k-motorola-sysv3
353 exit 0 ;;
354 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
355 echo m88k-tektronix-sysv3
356 exit 0 ;;
357 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
358 echo m68k-tektronix-bsd
359 exit 0 ;;
360 *:IRIX*:*:*)
361 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
362 exit 0 ;;
363 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
364 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
365 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
366 i?86:AIX:*:*)
367 echo i386-ibm-aix
368 exit 0 ;;
369 *:AIX:2:3)
370 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
371 sed 's/^ //' << EOF >$dummy.c
372 #include <sys/systemcfg.h>
373
374 main()
375 {
376 if (!__power_pc())
377 exit(1);
378 puts("powerpc-ibm-aix3.2.5");
379 exit(0);
380 }
381EOF
382 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
383 rm -f $dummy.c $dummy
384 echo rs6000-ibm-aix3.2.5
385 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
386 echo rs6000-ibm-aix3.2.4
387 else
388 echo rs6000-ibm-aix3.2
389 fi
390 exit 0 ;;
391 *:AIX:*:4)
392 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
393 if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
394 IBM_ARCH=rs6000
395 else
396 IBM_ARCH=powerpc
397 fi
398 if [ -x /usr/bin/oslevel ] ; then
399 IBM_REV=`/usr/bin/oslevel`
400 else
401 IBM_REV=4.${UNAME_RELEASE}
402 fi
403 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
404 exit 0 ;;
405 *:AIX:*:*)
406 echo rs6000-ibm-aix
407 exit 0 ;;
408 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
409 echo romp-ibm-bsd4.4
410 exit 0 ;;
411 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
412 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
413 exit 0 ;; # report: romp-ibm BSD 4.3
414 *:BOSX:*:*)
415 echo rs6000-bull-bosx
416 exit 0 ;;
417 DPX/2?00:B.O.S.:*:*)
418 echo m68k-bull-sysv3
419 exit 0 ;;
420 9000/[34]??:4.3bsd:1.*:*)
421 echo m68k-hp-bsd
422 exit 0 ;;
423 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
424 echo m68k-hp-bsd4.4
425 exit 0 ;;
426 9000/[34678]??:HP-UX:*:*)
427 case "${UNAME_MACHINE}" in
428 9000/31? ) HP_ARCH=m68000 ;;
429 9000/[34]?? ) HP_ARCH=m68k ;;
430 9000/[678][0-9][0-9])
431 sed 's/^ //' << EOF >$dummy.c
432 #include <stdlib.h>
433 #include <unistd.h>
434
435 int main ()
436 {
437 #if defined(_SC_KERNEL_BITS)
438 long bits = sysconf(_SC_KERNEL_BITS);
439 #endif
440 long cpu = sysconf (_SC_CPU_VERSION);
441
442 switch (cpu)
443 {
444 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
445 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
446 case CPU_PA_RISC2_0:
447 #if defined(_SC_KERNEL_BITS)
448 switch (bits)
449 {
450 case 64: puts ("hppa2.0w"); break;
451 case 32: puts ("hppa2.0n"); break;
452 default: puts ("hppa2.0"); break;
453 } break;
454 #else /* !defined(_SC_KERNEL_BITS) */
455 puts ("hppa2.0"); break;
456 #endif
457 default: puts ("hppa1.0"); break;
458 }
459 exit (0);
460 }
461EOF
462 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
463 rm -f $dummy.c $dummy
464 esac
465 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
466 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
467 exit 0 ;;
468 3050*:HI-UX:*:*)
469 sed 's/^ //' << EOF >$dummy.c
470 #include <unistd.h>
471 int
472 main ()
473 {
474 long cpu = sysconf (_SC_CPU_VERSION);
475 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
476 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
477 results, however. */
478 if (CPU_IS_PA_RISC (cpu))
479 {
480 switch (cpu)
481 {
482 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
483 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
484 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
485 default: puts ("hppa-hitachi-hiuxwe2"); break;
486 }
487 }
488 else if (CPU_IS_HP_MC68K (cpu))
489 puts ("m68k-hitachi-hiuxwe2");
490 else puts ("unknown-hitachi-hiuxwe2");
491 exit (0);
492 }
493EOF
494 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
495 rm -f $dummy.c $dummy
496 echo unknown-hitachi-hiuxwe2
497 exit 0 ;;
498 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
499 echo hppa1.1-hp-bsd
500 exit 0 ;;
501 9000/8??:4.3bsd:*:*)
502 echo hppa1.0-hp-bsd
503 exit 0 ;;
504 *9??*:MPE/iX:*:*)
505 echo hppa1.0-hp-mpeix
506 exit 0 ;;
507 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
508 echo hppa1.1-hp-osf
509 exit 0 ;;
510 hp8??:OSF1:*:*)
511 echo hppa1.0-hp-osf
512 exit 0 ;;
513 i?86:OSF1:*:*)
514 if [ -x /usr/sbin/sysversion ] ; then
515 echo ${UNAME_MACHINE}-unknown-osf1mk
516 else
517 echo ${UNAME_MACHINE}-unknown-osf1
518 fi
519 exit 0 ;;
520 parisc*:Lites*:*:*)
521 echo hppa1.1-hp-lites
522 exit 0 ;;
523 hppa*:OpenBSD:*:*)
524 echo hppa-unknown-openbsd
525 exit 0 ;;
526 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
527 echo c1-convex-bsd
528 exit 0 ;;
529 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
530 if getsysinfo -f scalar_acc
531 then echo c32-convex-bsd
532 else echo c2-convex-bsd
533 fi
534 exit 0 ;;
535 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
536 echo c34-convex-bsd
537 exit 0 ;;
538 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
539 echo c38-convex-bsd
540 exit 0 ;;
541 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
542 echo c4-convex-bsd
543 exit 0 ;;
544 CRAY*X-MP:*:*:*)
545 echo xmp-cray-unicos
546 exit 0 ;;
547 CRAY*Y-MP:*:*:*)
548 echo ymp-cray-unicos${UNAME_RELEASE}
549 exit 0 ;;
550 CRAY*[A-Z]90:*:*:*)
551 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
552 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
553 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
554 exit 0 ;;
555 CRAY*TS:*:*:*)
556 echo t90-cray-unicos${UNAME_RELEASE}
557 exit 0 ;;
558 CRAY*T3E:*:*:*)
559 echo alpha-cray-unicosmk${UNAME_RELEASE}
560 exit 0 ;;
561 CRAY-2:*:*:*)
562 echo cray2-cray-unicos
563 exit 0 ;;
564 F300:UNIX_System_V:*:*)
565 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
566 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
567 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
568 exit 0 ;;
569 F301:UNIX_System_V:*:*)
570 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
571 exit 0 ;;
572 hp3[0-9][05]:NetBSD:*:*)
573 echo m68k-hp-netbsd${UNAME_RELEASE}
574 exit 0 ;;
575 hp300:OpenBSD:*:*)
576 echo m68k-unknown-openbsd${UNAME_RELEASE}
577 exit 0 ;;
578 i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
579 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
580 exit 0 ;;
581 sparc*:BSD/OS:*:*)
582 echo sparc-unknown-bsdi${UNAME_RELEASE}
583 exit 0 ;;
584 *:BSD/OS:*:*)
585 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
586 exit 0 ;;
587 *:FreeBSD:*:*)
588 if test -x /usr/bin/objformat; then
589 if test "elf" = "`/usr/bin/objformat`"; then
590 echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
591 exit 0
592 fi
593 fi
594 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
595 exit 0 ;;
596 *:NetBSD:*:*)
597 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
598 exit 0 ;;
599 *:OpenBSD:*:*)
600 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
601 exit 0 ;;
602 i*:CYGWIN*:*)
603 echo ${UNAME_MACHINE}-pc-cygwin
604 exit 0 ;;
605 i*:MINGW*:*)
606 echo ${UNAME_MACHINE}-pc-mingw32
607 exit 0 ;;
608 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
609 # How do we know it's Interix rather than the generic POSIX subsystem?
610 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
611 # UNAME_MACHINE based on the output of uname instead of i386?
612 echo i386-pc-interix
613 exit 0 ;;
614 i*:UWIN*:*)
615 echo ${UNAME_MACHINE}-pc-uwin
616 exit 0 ;;
617 p*:CYGWIN*:*)
618 echo powerpcle-unknown-cygwin
619 exit 0 ;;
620 prep*:SunOS:5.*:*)
621 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
622 exit 0 ;;
623 *:GNU:*:*)
624 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
625 exit 0 ;;
626 *:Linux:*:*)
627
628 # The BFD linker knows what the default object file format is, so
629 # first see if it will tell us. cd to the root directory to prevent
630 # problems with other programs or directories called `ld' in the path.
631 ld_help_string=`cd /; ld --help 2>&1`
632 ld_supported_emulations=`echo $ld_help_string \
633 | sed -ne '/supported emulations:/!d
634 s/[ ][ ]*/ /g
635 s/.*supported emulations: *//
636 s/ .*//
637 p'`
638 case "$ld_supported_emulations" in
639 *ia64)
640 echo "${UNAME_MACHINE}-unknown-linux"
641 exit 0
642 ;;
643 i?86linux)
644 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
645 exit 0
646 ;;
647 i?86coff)
648 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
649 exit 0
650 ;;
651 sparclinux)
652 echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
653 exit 0
654 ;;
655 armlinux)
656 echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
657 exit 0
658 ;;
659 elf32arm*)
660 echo "${UNAME_MACHINE}-unknown-linux-gnu"
661 exit 0
662 ;;
663 armelf_linux*)
664 echo "${UNAME_MACHINE}-unknown-linux-gnu"
665 exit 0
666 ;;
667 m68klinux)
668 echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
669 exit 0
670 ;;
671 elf32ppc)
672 # Determine Lib Version
673 cat >$dummy.c <<EOF
674#include <features.h>
675#if defined(__GLIBC__)
676extern char __libc_version[];
677extern char __libc_release[];
678#endif
679main(argc, argv)
680 int argc;
681 char *argv[];
682{
683#if defined(__GLIBC__)
684 printf("%s %s\n", __libc_version, __libc_release);
685#else
686 printf("unkown\n");
687#endif
688 return 0;
689}
690EOF
691 LIBC=""
692 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
693 if test "$?" = 0 ; then
694 ./$dummy | grep 1\.99 > /dev/null
695 if test "$?" = 0 ; then
696 LIBC="libc1"
697 fi
698 fi
699 rm -f $dummy.c $dummy
700 echo powerpc-unknown-linux-gnu${LIBC}
701 exit 0
702 ;;
703 esac
704
705 if test "${UNAME_MACHINE}" = "alpha" ; then
706 sed 's/^ //' <<EOF >$dummy.s
707 .globl main
708 .ent main
709 main:
710 .frame \$30,0,\$26,0
711 .prologue 0
712 .long 0x47e03d80 # implver $0
713 lda \$2,259
714 .long 0x47e20c21 # amask $2,$1
715 srl \$1,8,\$2
716 sll \$2,2,\$2
717 sll \$0,3,\$0
718 addl \$1,\$0,\$0
719 addl \$2,\$0,\$0
720 ret \$31,(\$26),1
721 .end main
722EOF
723 LIBC=""
724 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
725 if test "$?" = 0 ; then
726 ./$dummy
727 case "$?" in
728 7)
729 UNAME_MACHINE="alpha"
730 ;;
731 15)
732 UNAME_MACHINE="alphaev5"
733 ;;
734 14)
735 UNAME_MACHINE="alphaev56"
736 ;;
737 10)
738 UNAME_MACHINE="alphapca56"
739 ;;
740 16)
741 UNAME_MACHINE="alphaev6"
742 ;;
743 esac
744
745 objdump --private-headers $dummy | \
746 grep ld.so.1 > /dev/null
747 if test "$?" = 0 ; then
748 LIBC="libc1"
749 fi
750 fi
751 rm -f $dummy.s $dummy
752 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
753 elif test "${UNAME_MACHINE}" = "mips" ; then
754 cat >$dummy.c <<EOF
755#ifdef __cplusplus
756 int main (int argc, char *argv[]) {
757#else
758 int main (argc, argv) int argc; char *argv[]; {
759#endif
760#ifdef __MIPSEB__
761 printf ("%s-unknown-linux-gnu\n", argv[1]);
762#endif
763#ifdef __MIPSEL__
764 printf ("%sel-unknown-linux-gnu\n", argv[1]);
765#endif
766 return 0;
767}
768EOF
769 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
770 rm -f $dummy.c $dummy
771 else
772 # Either a pre-BFD a.out linker (linux-gnuoldld)
773 # or one that does not give us useful --help.
774 # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
775 # If ld does not provide *any* "supported emulations:"
776 # that means it is gnuoldld.
777 echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
778 test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
779
780 case "${UNAME_MACHINE}" in
781 i?86)
782 VENDOR=pc;
783 ;;
784 *)
785 VENDOR=unknown;
786 ;;
787 esac
788 # Determine whether the default compiler is a.out or elf
789 cat >$dummy.c <<EOF
790#include <features.h>
791#ifdef __cplusplus
792 int main (int argc, char *argv[]) {
793#else
794 int main (argc, argv) int argc; char *argv[]; {
795#endif
796#ifdef __ELF__
797# ifdef __GLIBC__
798# if __GLIBC__ >= 2
799 printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
800# else
801 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
802# endif
803# else
804 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
805# endif
806#else
807 printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
808#endif
809 return 0;
810}
811EOF
812 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
813 rm -f $dummy.c $dummy
814 fi ;;
815# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
816# are messed up and put the nodename in both sysname and nodename.
817 i?86:DYNIX/ptx:4*:*)
818 echo i386-sequent-sysv4
819 exit 0 ;;
820 i?86:UNIX_SV:4.2MP:2.*)
821 # Unixware is an offshoot of SVR4, but it has its own version
822 # number series starting with 2...
823 # I am not positive that other SVR4 systems won't match this,
824 # I just have to hope. -- rms.
825 # Use sysv4.2uw... so that sysv4* matches it.
826 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
827 exit 0 ;;
828 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
829 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
830 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
831 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
832 else
833 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
834 fi
835 exit 0 ;;
836 i?86:*:5:7*)
837 # Fixed at (any) Pentium or better
838 UNAME_MACHINE=i586
839 if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
840 echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
841 else
842 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
843 fi
844 exit 0 ;;
845 i?86:*:3.2:*)
846 if test -f /usr/options/cb.name; then
847 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
848 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
849 elif /bin/uname -X 2>/dev/null >/dev/null ; then
850 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
851 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
852 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
853 && UNAME_MACHINE=i586
854 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
855 && UNAME_MACHINE=i686
856 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
857 && UNAME_MACHINE=i686
858 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
859 else
860 echo ${UNAME_MACHINE}-pc-sysv32
861 fi
862 exit 0 ;;
863 pc:*:*:*)
864 # uname -m prints for DJGPP always 'pc', but it prints nothing about
865 # the processor, so we play safe by assuming i386.
866 echo i386-pc-msdosdjgpp
867 exit 0 ;;
868 Intel:Mach:3*:*)
869 echo i386-pc-mach3
870 exit 0 ;;
871 paragon:*:*:*)
872 echo i860-intel-osf1
873 exit 0 ;;
874 i860:*:4.*:*) # i860-SVR4
875 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
876 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
877 else # Add other i860-SVR4 vendors below as they are discovered.
878 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
879 fi
880 exit 0 ;;
881 mini*:CTIX:SYS*5:*)
882 # "miniframe"
883 echo m68010-convergent-sysv
884 exit 0 ;;
885 M68*:*:R3V[567]*:*)
886 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
887 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
888 OS_REL=''
889 test -r /etc/.relid \
890 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
891 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
892 && echo i486-ncr-sysv4.3${OS_REL} && exit 0
893 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
894 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
895 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
896 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
897 && echo i486-ncr-sysv4 && exit 0 ;;
898 m68*:LynxOS:2.*:*)
899 echo m68k-unknown-lynxos${UNAME_RELEASE}
900 exit 0 ;;
901 mc68030:UNIX_System_V:4.*:*)
902 echo m68k-atari-sysv4
903 exit 0 ;;
904 i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
905 echo i386-unknown-lynxos${UNAME_RELEASE}
906 exit 0 ;;
907 TSUNAMI:LynxOS:2.*:*)
908 echo sparc-unknown-lynxos${UNAME_RELEASE}
909 exit 0 ;;
910 rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
911 echo rs6000-unknown-lynxos${UNAME_RELEASE}
912 exit 0 ;;
913 SM[BE]S:UNIX_SV:*:*)
914 echo mips-dde-sysv${UNAME_RELEASE}
915 exit 0 ;;
916 RM*:ReliantUNIX-*:*:*)
917 echo mips-sni-sysv4
918 exit 0 ;;
919 RM*:SINIX-*:*:*)
920 echo mips-sni-sysv4
921 exit 0 ;;
922 *:SINIX-*:*:*)
923 if uname -p 2>/dev/null >/dev/null ; then
924 UNAME_MACHINE=`(uname -p) 2>/dev/null`
925 echo ${UNAME_MACHINE}-sni-sysv4
926 else
927 echo ns32k-sni-sysv
928 fi
929 exit 0 ;;
930 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
931 # says <Richard.M.Bartel@ccMail.Census.GOV>
932 echo i586-unisys-sysv4
933 exit 0 ;;
934 *:UNIX_System_V:4*:FTX*)
935 # From Gerald Hewes <hewes@openmarket.com>.
936 # How about differentiating between stratus architectures? -djm
937 echo hppa1.1-stratus-sysv4
938 exit 0 ;;
939 *:*:*:FTX*)
940 # From seanf@swdc.stratus.com.
941 echo i860-stratus-sysv4
942 exit 0 ;;
943 mc68*:A/UX:*:*)
944 echo m68k-apple-aux${UNAME_RELEASE}
945 exit 0 ;;
946 news*:NEWS-OS:*:6*)
947 echo mips-sony-newsos6
948 exit 0 ;;
949 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
950 if [ -d /usr/nec ]; then
951 echo mips-nec-sysv${UNAME_RELEASE}
952 else
953 echo mips-unknown-sysv${UNAME_RELEASE}
954 fi
955 exit 0 ;;
956 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
957 echo powerpc-be-beos
958 exit 0 ;;
959 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
960 echo powerpc-apple-beos
961 exit 0 ;;
962 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
963 echo i586-pc-beos
964 exit 0 ;;
965 SX-4:SUPER-UX:*:*)
966 echo sx4-nec-superux${UNAME_RELEASE}
967 exit 0 ;;
968 SX-5:SUPER-UX:*:*)
969 echo sx5-nec-superux${UNAME_RELEASE}
970 exit 0 ;;
971 Power*:Rhapsody:*:*)
972 echo powerpc-apple-rhapsody${UNAME_RELEASE}
973 exit 0 ;;
974 *:Rhapsody:*:*)
975 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
976 exit 0 ;;
977 *:QNX:*:4*)
978 echo i386-qnx-qnx${UNAME_VERSION}
979 exit 0 ;;
980esac
981
982#echo '(No uname command or uname output not recognized.)' 1>&2
983#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
984
985cat >$dummy.c <<EOF
986#ifdef _SEQUENT_
987# include <sys/types.h>
988# include <sys/utsname.h>
989#endif
990main ()
991{
992#if defined (sony)
993#if defined (MIPSEB)
994 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
995 I don't know.... */
996 printf ("mips-sony-bsd\n"); exit (0);
997#else
998#include <sys/param.h>
999 printf ("m68k-sony-newsos%s\n",
1000#ifdef NEWSOS4
1001 "4"
1002#else
1003 ""
1004#endif
1005 ); exit (0);
1006#endif
1007#endif
1008
1009#if defined (__arm) && defined (__acorn) && defined (__unix)
1010 printf ("arm-acorn-riscix"); exit (0);
1011#endif
1012
1013#if defined (hp300) && !defined (hpux)
1014 printf ("m68k-hp-bsd\n"); exit (0);
1015#endif
1016
1017#if defined (NeXT)
1018#if !defined (__ARCHITECTURE__)
1019#define __ARCHITECTURE__ "m68k"
1020#endif
1021 int version;
1022 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1023 if (version < 4)
1024 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1025 else
1026 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1027 exit (0);
1028#endif
1029
1030#if defined (MULTIMAX) || defined (n16)
1031#if defined (UMAXV)
1032 printf ("ns32k-encore-sysv\n"); exit (0);
1033#else
1034#if defined (CMU)
1035 printf ("ns32k-encore-mach\n"); exit (0);
1036#else
1037 printf ("ns32k-encore-bsd\n"); exit (0);
1038#endif
1039#endif
1040#endif
1041
1042#if defined (__386BSD__)
1043 printf ("i386-pc-bsd\n"); exit (0);
1044#endif
1045
1046#if defined (sequent)
1047#if defined (i386)
1048 printf ("i386-sequent-dynix\n"); exit (0);
1049#endif
1050#if defined (ns32000)
1051 printf ("ns32k-sequent-dynix\n"); exit (0);
1052#endif
1053#endif
1054
1055#if defined (_SEQUENT_)
1056 struct utsname un;
1057
1058 uname(&un);
1059
1060 if (strncmp(un.version, "V2", 2) == 0) {
1061 printf ("i386-sequent-ptx2\n"); exit (0);
1062 }
1063 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1064 printf ("i386-sequent-ptx1\n"); exit (0);
1065 }
1066 printf ("i386-sequent-ptx\n"); exit (0);
1067
1068#endif
1069
1070#if defined (vax)
1071#if !defined (ultrix)
1072 printf ("vax-dec-bsd\n"); exit (0);
1073#else
1074 printf ("vax-dec-ultrix\n"); exit (0);
1075#endif
1076#endif
1077
1078#if defined (alliant) && defined (i860)
1079 printf ("i860-alliant-bsd\n"); exit (0);
1080#endif
1081
1082 exit (1);
1083}
1084EOF
1085
1086$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
1087rm -f $dummy.c $dummy
1088
1089# Apollos put the system type in the environment.
1090
1091test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1092
1093# Convex versions that predate uname can use getsysinfo(1)
1094
1095if [ -x /usr/convex/getsysinfo ]
1096then
1097 case `getsysinfo -f cpu_type` in
1098 c1*)
1099 echo c1-convex-bsd
1100 exit 0 ;;
1101 c2*)
1102 if getsysinfo -f scalar_acc
1103 then echo c32-convex-bsd
1104 else echo c2-convex-bsd
1105 fi
1106 exit 0 ;;
1107 c34*)
1108 echo c34-convex-bsd
1109 exit 0 ;;
1110 c38*)
1111 echo c38-convex-bsd
1112 exit 0 ;;
1113 c4*)
1114 echo c4-convex-bsd
1115 exit 0 ;;
1116 esac
1117fi
1118
1119#echo '(Unable to guess system type)' 1>&2
1120
1121exit 1
diff --git a/xdelta1/config.h b/xdelta1/config.h
deleted file mode 100755
index 8686136..0000000
--- a/xdelta1/config.h
+++ /dev/null
@@ -1,11 +0,0 @@
1/* config.h. Generated automatically by configure. */
2/* config.h.in. Generated automatically from configure.in by autoheader. */
3
4/* Define if you have the ANSI C header files. */
5#define STDC_HEADERS 1
6
7/* Define if you can safely include both <sys/time.h> and <time.h>. */
8#define TIME_WITH_SYS_TIME 1
9
10/* Define if you have the gettimeofday function. */
11#define HAVE_GETTIMEOFDAY 1
diff --git a/xdelta1/config.h.in b/xdelta1/config.h.in
deleted file mode 100755
index c966e83..0000000
--- a/xdelta1/config.h.in
+++ /dev/null
@@ -1,10 +0,0 @@
1/* config.h.in. Generated automatically from configure.in by autoheader. */
2
3/* Define if you have the ANSI C header files. */
4#undef STDC_HEADERS
5
6/* Define if you can safely include both <sys/time.h> and <time.h>. */
7#undef TIME_WITH_SYS_TIME
8
9/* Define if you have the gettimeofday function. */
10#undef HAVE_GETTIMEOFDAY
diff --git a/xdelta1/config.log b/xdelta1/config.log
deleted file mode 100755
index 2888cee..0000000
--- a/xdelta1/config.log
+++ /dev/null
@@ -1,73 +0,0 @@
1This file contains any messages produced by compilers while
2running configure, to aid debugging if configure makes a mistake.
3
4configure:697: checking for a BSD compatible install
5configure:750: checking whether build environment is sane
6configure:807: checking whether make sets ${MAKE}
7configure:846: checking for working aclocal
8configure:859: checking for working autoconf
9configure:872: checking for working automake
10configure:885: checking for working autoheader
11configure:898: checking for working makeinfo
12configure:913: checking whether to enable maintainer-specific portions of Makefiles
13configure:958: checking for gcc
14configure:1071: checking whether the C compiler (gcc ) works
15configure:1087: gcc -o conftest conftest.c 1>&5
16configure:1113: checking whether the C compiler (gcc ) is a cross-compiler
17configure:1118: checking whether we are using GNU C
18configure:1127: gcc -E conftest.c
19configure:1146: checking whether gcc accepts -g
20configure:1178: checking how to run the C preprocessor
21configure:1199: gcc -E conftest.c >/dev/null 2>conftest.out
22configure:1370: checking host system type
23configure:1391: checking build system type
24configure:1411: checking for ranlib
25configure:1450: checking for ld used by GCC
26configure:1513: checking if the linker (/usr/i586-pc-linux-gnu/bin/ld) is GNU ld
27GNU ld version 2.16.1
28configure:1529: checking for BSD-compatible nm
29configure:1566: checking whether ln -s works
30ltconfig:603: checking for object suffix
31ltconfig:604: gcc -c -Wall -O3 conftest.c 1>&5
32ltconfig:629: checking for executable suffix
33ltconfig:630: gcc -o conftest -Wall -O3 conftest.c 1>&5
34conftest.c:1: warning: return type defaults to `int'
35ltconfig:776: checking if gcc PIC flag -fPIC works
36ltconfig:777: gcc -c -Wall -O3 -fPIC -DPIC conftest.c 1>&5
37ltconfig:829: checking if gcc supports -c -o file.o
38ltconfig:830: gcc -c -Wall -O3 -o out/conftest2.o conftest.c 1>&5
39ltconfig:862: checking if gcc supports -c -o file.lo
40ltconfig:863: gcc -c -Wall -O3 -c -o conftest.lo conftest.c 1>&5
41ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions
42ltconfig:915: gcc -c -Wall -O3 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
43ltconfig:958: checking if gcc static flag -static works
44ltconfig:959: gcc -o conftest -Wall -O3 -static conftest.c 1>&5
45conftest.c:1: warning: return type defaults to `int'
46GNU ld version 2.16.1
47ltconfig:1592: checking if global_symbol_pipe works
48ltconfig:1593: gcc -c -Wall -O3 conftest.c 1>&5
49conftest.c:9: warning: return type defaults to `int'
50ltconfig:1596: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
51ltconfig:1648: gcc -o conftest -Wall -O3 -fno-builtin conftest.c conftstm.o 1>&5
52conftest.c:6: warning: 'main' is usually a function
53configure:1761: checking for ANSI C header files
54configure:1774: gcc -E conftest.c >/dev/null 2>conftest.out
55configure:1841: gcc -o conftest -Wall -O3 conftest.c 1>&5
56configure: In function `main':
57configure:1836: warning: implicit declaration of function `exit'
58configure:1865: checking whether make sets ${MAKE}
59configure:1895: checking for gettimeofday
60configure:1923: gcc -o conftest -Wall -O3 conftest.c 1>&5
61configure:1948: checking whether time.h and sys/time.h may both be included
62configure:1962: gcc -c -Wall -O3 conftest.c 1>&5
63configure: In function `main':
64configure:1958: warning: unused variable `tp'
65configure:1988: checking for emacs
66configure:1988: checking for xemacs
67configure:2081: checking for glib-config
68configure:2116: checking for GLIB - version >= 1.2.8
69configure:2215: gcc -o conftest -Wall -O3 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include conftest.c -L/usr/local/lib -lglib 1>&5
70configure:2299: checking for gzsetparams in -lz
71configure:2318: gcc -o conftest -Wall -O3 conftest.c -lz 1>&5
72configure:2335: checking for zlib.h
73configure:2345: gcc -E conftest.c >/dev/null 2>conftest.out
diff --git a/xdelta1/config.status b/xdelta1/config.status
deleted file mode 100755
index 65ec131..0000000
--- a/xdelta1/config.status
+++ /dev/null
@@ -1,277 +0,0 @@
1#! /bin/sh
2# Generated automatically by configure.
3# Run this file to recreate the current configuration.
4# This directory was configured as follows,
5# on host spin:
6#
7# configure
8#
9# Compiler output produced by configure, useful for debugging
10# configure, is in ./config.log if it exists.
11
12ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
13for ac_option
14do
15 case "$ac_option" in
16 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17 echo "running ${CONFIG_SHELL-/bin/sh} configure --no-create --no-recursion"
18 exec ${CONFIG_SHELL-/bin/sh} configure --no-create --no-recursion ;;
19 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20 echo "./config.status generated by autoconf version 2.13"
21 exit 0 ;;
22 -help | --help | --hel | --he | --h)
23 echo "$ac_cs_usage"; exit 0 ;;
24 *) echo "$ac_cs_usage"; exit 1 ;;
25 esac
26done
27
28ac_given_srcdir=.
29ac_given_INSTALL="/usr/bin/install -c"
30
31trap 'rm -fr Makefile
32 doc/Makefile
33 test/Makefile
34 djgpp/Makefile
35 xdelta-config
36 libedsio/Makefile
37 libedsio/edsio-comp config.h conftest*; exit 1' 1 2 15
38
39# Protect against being on the right side of a sed subst in config.status.
40sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
41 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
42/^[ ]*VPATH[ ]*=[^:]*$/d
43
44s%@SHELL@%/bin/sh%g
45s%@CFLAGS@% -Wall -O3%g
46s%@CPPFLAGS@%%g
47s%@CXXFLAGS@%%g
48s%@FFLAGS@%%g
49s%@DEFS@%-DHAVE_CONFIG_H%g
50s%@LDFLAGS@%%g
51s%@LIBS@%%g
52s%@exec_prefix@%${prefix}%g
53s%@prefix@%/usr/local%g
54s%@program_transform_name@%s,x,x,%g
55s%@bindir@%${exec_prefix}/bin%g
56s%@sbindir@%${exec_prefix}/sbin%g
57s%@libexecdir@%${exec_prefix}/libexec%g
58s%@datadir@%${prefix}/share%g
59s%@sysconfdir@%${prefix}/etc%g
60s%@sharedstatedir@%${prefix}/com%g
61s%@localstatedir@%${prefix}/var%g
62s%@libdir@%${exec_prefix}/lib%g
63s%@includedir@%${prefix}/include%g
64s%@oldincludedir@%/usr/include%g
65s%@infodir@%${prefix}/info%g
66s%@mandir@%${prefix}/man%g
67s%@INSTALL_PROGRAM@%${INSTALL}%g
68s%@INSTALL_SCRIPT@%${INSTALL_PROGRAM}%g
69s%@INSTALL_DATA@%${INSTALL} -m 644%g
70s%@PACKAGE@%xdelta%g
71s%@VERSION@%1.1.3%g
72s%@ACLOCAL@%aclocal%g
73s%@AUTOCONF@%autoconf%g
74s%@AUTOMAKE@%automake%g
75s%@AUTOHEADER@%autoheader%g
76s%@MAKEINFO@%makeinfo%g
77s%@SET_MAKE@%%g
78s%@MAINTAINER_MODE_TRUE@%#%g
79s%@MAINTAINER_MODE_FALSE@%%g
80s%@MAINT@%#%g
81s%@CC@%gcc%g
82s%@CPP@%gcc -E%g
83s%@host@%i686-pc-linux-gnu%g
84s%@host_alias@%i686-pc-linux-gnu%g
85s%@host_cpu@%i686%g
86s%@host_vendor@%pc%g
87s%@host_os@%linux-gnu%g
88s%@build@%i686-pc-linux-gnu%g
89s%@build_alias@%i686-pc-linux-gnu%g
90s%@build_cpu@%i686%g
91s%@build_vendor@%pc%g
92s%@build_os@%linux-gnu%g
93s%@RANLIB@%ranlib%g
94s%@LD@%/usr/i586-pc-linux-gnu/bin/ld%g
95s%@NM@%/usr/bin/nm -B%g
96s%@LN_S@%ln%g
97s%@LIBTOOL@%$(SHELL) $(top_builddir)/libtool%g
98s%@EMACS@%/usr/bin/xemacs%g
99s%@top_srcdir_absolute@%/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta11%g
100s%@GLIB_CONFIG@%/usr/local/bin/glib-config%g
101s%@GLIB_CFLAGS@%-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include%g
102s%@GLIB_LIBS@%-L/usr/local/lib -lglib%g
103
104CEOF
105
106# Split the substitutions into bite-sized pieces for seds with
107# small command number limits, like on Digital OSF/1 and HP-UX.
108ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
109ac_file=1 # Number of current file.
110ac_beg=1 # First line for current file.
111ac_end=$ac_max_sed_cmds # Line after last line for current file.
112ac_more_lines=:
113ac_sed_cmds=""
114while $ac_more_lines; do
115 if test $ac_beg -gt 1; then
116 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
117 else
118 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
119 fi
120 if test ! -s conftest.s$ac_file; then
121 ac_more_lines=false
122 rm -f conftest.s$ac_file
123 else
124 if test -z "$ac_sed_cmds"; then
125 ac_sed_cmds="sed -f conftest.s$ac_file"
126 else
127 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
128 fi
129 ac_file=`expr $ac_file + 1`
130 ac_beg=$ac_end
131 ac_end=`expr $ac_end + $ac_max_sed_cmds`
132 fi
133done
134if test -z "$ac_sed_cmds"; then
135 ac_sed_cmds=cat
136fi
137
138CONFIG_FILES=${CONFIG_FILES-"Makefile
139 doc/Makefile
140 test/Makefile
141 djgpp/Makefile
142 xdelta-config
143 libedsio/Makefile
144 libedsio/edsio-comp"}
145for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
147 case "$ac_file" in
148 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
149 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
150 *) ac_file_in="${ac_file}.in" ;;
151 esac
152
153 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
154
155 # Remove last slash and all that follows it. Not all systems have dirname.
156 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
157 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
158 # The file is in a subdirectory.
159 test ! -d "$ac_dir" && mkdir "$ac_dir"
160 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
161 # A "../" for each directory in $ac_dir_suffix.
162 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
163 else
164 ac_dir_suffix= ac_dots=
165 fi
166
167 case "$ac_given_srcdir" in
168 .) srcdir=.
169 if test -z "$ac_dots"; then top_srcdir=.
170 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
171 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
172 *) # Relative path.
173 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
174 top_srcdir="$ac_dots$ac_given_srcdir" ;;
175 esac
176
177 case "$ac_given_INSTALL" in
178 [/$]*) INSTALL="$ac_given_INSTALL" ;;
179 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
180 esac
181
182 echo creating "$ac_file"
183 rm -f "$ac_file"
184 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
185 case "$ac_file" in
186 *Makefile*) ac_comsub="1i\\
187# $configure_input" ;;
188 *) ac_comsub= ;;
189 esac
190
191 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
192 sed -e "$ac_comsub
193s%@configure_input@%$configure_input%g
194s%@srcdir@%$srcdir%g
195s%@top_srcdir@%$top_srcdir%g
196s%@INSTALL@%$INSTALL%g
197" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
198fi; done
199rm -f conftest.s*
200
201# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
202# NAME is the cpp macro being defined and VALUE is the value it is being given.
203#
204# ac_d sets the value in "#define NAME VALUE" lines.
205ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
206ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
207ac_dC='\3'
208ac_dD='%g'
209# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
210ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
211ac_uB='\([ ]\)%\1#\2define\3'
212ac_uC=' '
213ac_uD='\4%g'
214# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
215ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
216ac_eB='$%\1#\2define\3'
217ac_eC=' '
218ac_eD='%g'
219
220if test "${CONFIG_HEADERS+set}" != set; then
221 CONFIG_HEADERS="config.h"
222fi
223for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
224 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
225 case "$ac_file" in
226 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
227 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
228 *) ac_file_in="${ac_file}.in" ;;
229 esac
230
231 echo creating $ac_file
232
233 rm -f conftest.frag conftest.in conftest.out
234 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
235 cat $ac_file_inputs > conftest.in
236
237 cat > conftest.frag <<CEOF
238${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
239${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
240${ac_eA}STDC_HEADERS${ac_eB}STDC_HEADERS${ac_eC}1${ac_eD}
241${ac_dA}HAVE_GETTIMEOFDAY${ac_dB}HAVE_GETTIMEOFDAY${ac_dC}1${ac_dD}
242${ac_uA}HAVE_GETTIMEOFDAY${ac_uB}HAVE_GETTIMEOFDAY${ac_uC}1${ac_uD}
243${ac_eA}HAVE_GETTIMEOFDAY${ac_eB}HAVE_GETTIMEOFDAY${ac_eC}1${ac_eD}
244${ac_dA}TIME_WITH_SYS_TIME${ac_dB}TIME_WITH_SYS_TIME${ac_dC}1${ac_dD}
245${ac_uA}TIME_WITH_SYS_TIME${ac_uB}TIME_WITH_SYS_TIME${ac_uC}1${ac_uD}
246${ac_eA}TIME_WITH_SYS_TIME${ac_eB}TIME_WITH_SYS_TIME${ac_eC}1${ac_eD}
247s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
248CEOF
249 sed -f conftest.frag conftest.in > conftest.out
250 rm -f conftest.in
251 mv conftest.out conftest.in
252
253 rm -f conftest.frag conftest.h
254 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
255 cat conftest.in >> conftest.h
256 rm -f conftest.in
257 if cmp -s $ac_file conftest.h 2>/dev/null; then
258 echo "$ac_file is unchanged"
259 rm -f conftest.h
260 else
261 # Remove last slash and all that follows it. Not all systems have dirname.
262 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
263 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
264 # The file is in a subdirectory.
265 test ! -d "$ac_dir" && mkdir "$ac_dir"
266 fi
267 rm -f $ac_file
268 mv conftest.h $ac_file
269 fi
270fi; done
271
272
273
274test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
275chmod +x libedsio/edsio-comp xdelta-config
276
277exit 0
diff --git a/xdelta1/config.sub b/xdelta1/config.sub
deleted file mode 100755
index 28426bb..0000000
--- a/xdelta1/config.sub
+++ /dev/null
@@ -1,1232 +0,0 @@
1#! /bin/sh
2# Configuration validation subroutine script, version 1.1.
3# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
4# This file is (in principle) common to ALL GNU software.
5# The presence of a machine in this file suggests that SOME GNU software
6# can handle that machine. It does not imply ALL GNU software can.
7#
8# This file is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU 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., 59 Temple Place - Suite 330,
21# Boston, MA 02111-1307, 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# Configuration subroutine to validate and canonicalize a configuration type.
29# Supply the specified configuration type as an argument.
30# If it is invalid, we print an error message on stderr and exit with code 1.
31# Otherwise, we print the canonical config type on stdout and succeed.
32
33# This file is supposed to be the same for all GNU packages
34# and recognize all the CPU types, system types and aliases
35# that are meaningful with *any* GNU software.
36# Each package is responsible for reporting which valid configurations
37# it does not support. The user should be able to distinguish
38# a failure to support a valid configuration from a meaningless
39# configuration.
40
41# The goal of this file is to map all the various variations of a given
42# machine specification into a single specification in the form:
43# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
44# or in some cases, the newer four-part form:
45# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
46# It is wrong to echo any other type of specification.
47
48if [ x$1 = x ]
49then
50 echo Configuration name missing. 1>&2
51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
52 echo "or $0 ALIAS" 1>&2
53 echo where ALIAS is a recognized configuration type. 1>&2
54 exit 1
55fi
56
57# First pass through any local machine types.
58case $1 in
59 *local*)
60 echo $1
61 exit 0
62 ;;
63 *)
64 ;;
65esac
66
67# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
68# Here we must recognize all the valid KERNEL-OS combinations.
69maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
70case $maybe_os in
71 linux-gnu*)
72 os=-$maybe_os
73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
74 ;;
75 *)
76 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
77 if [ $basic_machine != $1 ]
78 then os=`echo $1 | sed 's/.*-/-/'`
79 else os=; fi
80 ;;
81esac
82
83### Let's recognize common machines as not being operating systems so
84### that things like config.sub decstation-3100 work. We also
85### recognize some manufacturers as not being operating systems, so we
86### can provide default operating systems below.
87case $os in
88 -sun*os*)
89 # Prevent following clause from handling this invalid input.
90 ;;
91 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
92 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
93 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
94 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
95 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
97 -apple)
98 os=
99 basic_machine=$1
100 ;;
101 -sim | -cisco | -oki | -wec | -winbond)
102 os=
103 basic_machine=$1
104 ;;
105 -scout)
106 ;;
107 -wrs)
108 os=-vxworks
109 basic_machine=$1
110 ;;
111 -hiux*)
112 os=-hiuxwe2
113 ;;
114 -sco5)
115 os=-sco3.2v5
116 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
117 ;;
118 -sco4)
119 os=-sco3.2v4
120 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
121 ;;
122 -sco3.2.[4-9]*)
123 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
124 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
125 ;;
126 -sco3.2v[4-9]*)
127 # Don't forget version if it is 3.2v4 or newer.
128 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
129 ;;
130 -sco*)
131 os=-sco3.2v2
132 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
133 ;;
134 -udk*)
135 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
136 ;;
137 -isc)
138 os=-isc2.2
139 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
140 ;;
141 -clix*)
142 basic_machine=clipper-intergraph
143 ;;
144 -isc*)
145 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
146 ;;
147 -lynx*)
148 os=-lynxos
149 ;;
150 -ptx*)
151 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
152 ;;
153 -windowsnt*)
154 os=`echo $os | sed -e 's/windowsnt/winnt/'`
155 ;;
156 -psos*)
157 os=-psos
158 ;;
159 -mint | -mint[0-9]*)
160 basic_machine=m68k-atari
161 os=-mint
162 ;;
163esac
164
165# Decode aliases for certain CPU-COMPANY combinations.
166case $basic_machine in
167 # Recognize the basic CPU types without company name.
168 # Some are omitted here because they have special meanings below.
169 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
170 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
171 | 580 | i960 | h8300 \
172 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
173 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
174 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
175 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
176 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
177 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
178 | mips64vr5000 | miprs64vr5000el | mcore \
179 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
180 | thumb | d10v | fr30)
181 basic_machine=$basic_machine-unknown
182 ;;
183 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
184 ;;
185
186 # We use `pc' rather than `unknown'
187 # because (1) that's what they normally are, and
188 # (2) the word "unknown" tends to confuse beginning users.
189 i[34567]86)
190 basic_machine=$basic_machine-pc
191 ;;
192 # Object if more than one company name word.
193 *-*-*)
194 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
195 exit 1
196 ;;
197 # Recognize the basic CPU types with company name.
198 # FIXME: clean up the formatting here.
199 vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
200 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
201 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
202 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
203 | xmp-* | ymp-* \
204 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
205 | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
206 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
207 | clipper-* | orion-* \
208 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
209 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
210 | mips64el-* | mips64orion-* | mips64orionel-* \
211 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
212 | mipstx39-* | mipstx39el-* | mcore-* \
213 | f301-* | armv*-* | t3e-* \
214 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
215 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
216 ;;
217 # Recognize the various machine names and aliases which stand
218 # for a CPU type and a company and sometimes even an OS.
219 386bsd)
220 basic_machine=i386-unknown
221 os=-bsd
222 ;;
223 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
224 basic_machine=m68000-att
225 ;;
226 3b*)
227 basic_machine=we32k-att
228 ;;
229 a29khif)
230 basic_machine=a29k-amd
231 os=-udi
232 ;;
233 adobe68k)
234 basic_machine=m68010-adobe
235 os=-scout
236 ;;
237 alliant | fx80)
238 basic_machine=fx80-alliant
239 ;;
240 altos | altos3068)
241 basic_machine=m68k-altos
242 ;;
243 am29k)
244 basic_machine=a29k-none
245 os=-bsd
246 ;;
247 amdahl)
248 basic_machine=580-amdahl
249 os=-sysv
250 ;;
251 amiga | amiga-*)
252 basic_machine=m68k-cbm
253 ;;
254 amigaos | amigados)
255 basic_machine=m68k-cbm
256 os=-amigaos
257 ;;
258 amigaunix | amix)
259 basic_machine=m68k-cbm
260 os=-sysv4
261 ;;
262 apollo68)
263 basic_machine=m68k-apollo
264 os=-sysv
265 ;;
266 apollo68bsd)
267 basic_machine=m68k-apollo
268 os=-bsd
269 ;;
270 aux)
271 basic_machine=m68k-apple
272 os=-aux
273 ;;
274 balance)
275 basic_machine=ns32k-sequent
276 os=-dynix
277 ;;
278 convex-c1)
279 basic_machine=c1-convex
280 os=-bsd
281 ;;
282 convex-c2)
283 basic_machine=c2-convex
284 os=-bsd
285 ;;
286 convex-c32)
287 basic_machine=c32-convex
288 os=-bsd
289 ;;
290 convex-c34)
291 basic_machine=c34-convex
292 os=-bsd
293 ;;
294 convex-c38)
295 basic_machine=c38-convex
296 os=-bsd
297 ;;
298 cray | ymp)
299 basic_machine=ymp-cray
300 os=-unicos
301 ;;
302 cray2)
303 basic_machine=cray2-cray
304 os=-unicos
305 ;;
306 [ctj]90-cray)
307 basic_machine=c90-cray
308 os=-unicos
309 ;;
310 crds | unos)
311 basic_machine=m68k-crds
312 ;;
313 da30 | da30-*)
314 basic_machine=m68k-da30
315 ;;
316 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
317 basic_machine=mips-dec
318 ;;
319 delta | 3300 | motorola-3300 | motorola-delta \
320 | 3300-motorola | delta-motorola)
321 basic_machine=m68k-motorola
322 ;;
323 delta88)
324 basic_machine=m88k-motorola
325 os=-sysv3
326 ;;
327 dpx20 | dpx20-*)
328 basic_machine=rs6000-bull
329 os=-bosx
330 ;;
331 dpx2* | dpx2*-bull)
332 basic_machine=m68k-bull
333 os=-sysv3
334 ;;
335 ebmon29k)
336 basic_machine=a29k-amd
337 os=-ebmon
338 ;;
339 elxsi)
340 basic_machine=elxsi-elxsi
341 os=-bsd
342 ;;
343 encore | umax | mmax)
344 basic_machine=ns32k-encore
345 ;;
346 es1800 | OSE68k | ose68k | ose | OSE)
347 basic_machine=m68k-ericsson
348 os=-ose
349 ;;
350 fx2800)
351 basic_machine=i860-alliant
352 ;;
353 genix)
354 basic_machine=ns32k-ns
355 ;;
356 gmicro)
357 basic_machine=tron-gmicro
358 os=-sysv
359 ;;
360 h3050r* | hiux*)
361 basic_machine=hppa1.1-hitachi
362 os=-hiuxwe2
363 ;;
364 h8300hms)
365 basic_machine=h8300-hitachi
366 os=-hms
367 ;;
368 h8300xray)
369 basic_machine=h8300-hitachi
370 os=-xray
371 ;;
372 h8500hms)
373 basic_machine=h8500-hitachi
374 os=-hms
375 ;;
376 harris)
377 basic_machine=m88k-harris
378 os=-sysv3
379 ;;
380 hp300-*)
381 basic_machine=m68k-hp
382 ;;
383 hp300bsd)
384 basic_machine=m68k-hp
385 os=-bsd
386 ;;
387 hp300hpux)
388 basic_machine=m68k-hp
389 os=-hpux
390 ;;
391 hp3k9[0-9][0-9] | hp9[0-9][0-9])
392 basic_machine=hppa1.0-hp
393 ;;
394 hp9k2[0-9][0-9] | hp9k31[0-9])
395 basic_machine=m68000-hp
396 ;;
397 hp9k3[2-9][0-9])
398 basic_machine=m68k-hp
399 ;;
400 hp9k6[0-9][0-9] | hp6[0-9][0-9])
401 basic_machine=hppa1.0-hp
402 ;;
403 hp9k7[0-79][0-9] | hp7[0-79][0-9])
404 basic_machine=hppa1.1-hp
405 ;;
406 hp9k78[0-9] | hp78[0-9])
407 # FIXME: really hppa2.0-hp
408 basic_machine=hppa1.1-hp
409 ;;
410 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
411 # FIXME: really hppa2.0-hp
412 basic_machine=hppa1.1-hp
413 ;;
414 hp9k8[0-9][13679] | hp8[0-9][13679])
415 basic_machine=hppa1.1-hp
416 ;;
417 hp9k8[0-9][0-9] | hp8[0-9][0-9])
418 basic_machine=hppa1.0-hp
419 ;;
420 hppa-next)
421 os=-nextstep3
422 ;;
423 hppaosf)
424 basic_machine=hppa1.1-hp
425 os=-osf
426 ;;
427 hppro)
428 basic_machine=hppa1.1-hp
429 os=-proelf
430 ;;
431 i370-ibm* | ibm*)
432 basic_machine=i370-ibm
433 ;;
434# I'm not sure what "Sysv32" means. Should this be sysv3.2?
435 i[34567]86v32)
436 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
437 os=-sysv32
438 ;;
439 i[34567]86v4*)
440 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
441 os=-sysv4
442 ;;
443 i[34567]86v)
444 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
445 os=-sysv
446 ;;
447 i[34567]86sol2)
448 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
449 os=-solaris2
450 ;;
451 i386mach)
452 basic_machine=i386-mach
453 os=-mach
454 ;;
455 i386-vsta | vsta)
456 basic_machine=i386-unknown
457 os=-vsta
458 ;;
459 i386-go32 | go32)
460 basic_machine=i386-unknown
461 os=-go32
462 ;;
463 i386-mingw32 | mingw32)
464 basic_machine=i386-unknown
465 os=-mingw32
466 ;;
467 i386-qnx | qnx)
468 basic_machine=i386-qnx
469 ;;
470 iris | iris4d)
471 basic_machine=mips-sgi
472 case $os in
473 -irix*)
474 ;;
475 *)
476 os=-irix4
477 ;;
478 esac
479 ;;
480 isi68 | isi)
481 basic_machine=m68k-isi
482 os=-sysv
483 ;;
484 m88k-omron*)
485 basic_machine=m88k-omron
486 ;;
487 magnum | m3230)
488 basic_machine=mips-mips
489 os=-sysv
490 ;;
491 merlin)
492 basic_machine=ns32k-utek
493 os=-sysv
494 ;;
495 miniframe)
496 basic_machine=m68000-convergent
497 ;;
498 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
499 basic_machine=m68k-atari
500 os=-mint
501 ;;
502 mipsel*-linux*)
503 basic_machine=mipsel-unknown
504 os=-linux-gnu
505 ;;
506 mips*-linux*)
507 basic_machine=mips-unknown
508 os=-linux-gnu
509 ;;
510 mips3*-*)
511 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
512 ;;
513 mips3*)
514 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
515 ;;
516 monitor)
517 basic_machine=m68k-rom68k
518 os=-coff
519 ;;
520 msdos)
521 basic_machine=i386-unknown
522 os=-msdos
523 ;;
524 mvs)
525 basic_machine=i370-ibm
526 os=-mvs
527 ;;
528 ncr3000)
529 basic_machine=i486-ncr
530 os=-sysv4
531 ;;
532 netbsd386)
533 basic_machine=i386-unknown
534 os=-netbsd
535 ;;
536 netwinder)
537 basic_machine=armv4l-rebel
538 os=-linux
539 ;;
540 news | news700 | news800 | news900)
541 basic_machine=m68k-sony
542 os=-newsos
543 ;;
544 news1000)
545 basic_machine=m68030-sony
546 os=-newsos
547 ;;
548 news-3600 | risc-news)
549 basic_machine=mips-sony
550 os=-newsos
551 ;;
552 necv70)
553 basic_machine=v70-nec
554 os=-sysv
555 ;;
556 next | m*-next )
557 basic_machine=m68k-next
558 case $os in
559 -nextstep* )
560 ;;
561 -ns2*)
562 os=-nextstep2
563 ;;
564 *)
565 os=-nextstep3
566 ;;
567 esac
568 ;;
569 nh3000)
570 basic_machine=m68k-harris
571 os=-cxux
572 ;;
573 nh[45]000)
574 basic_machine=m88k-harris
575 os=-cxux
576 ;;
577 nindy960)
578 basic_machine=i960-intel
579 os=-nindy
580 ;;
581 mon960)
582 basic_machine=i960-intel
583 os=-mon960
584 ;;
585 np1)
586 basic_machine=np1-gould
587 ;;
588 op50n-* | op60c-*)
589 basic_machine=hppa1.1-oki
590 os=-proelf
591 ;;
592 OSE68000 | ose68000)
593 basic_machine=m68000-ericsson
594 os=-ose
595 ;;
596 os68k)
597 basic_machine=m68k-none
598 os=-os68k
599 ;;
600 pa-hitachi)
601 basic_machine=hppa1.1-hitachi
602 os=-hiuxwe2
603 ;;
604 paragon)
605 basic_machine=i860-intel
606 os=-osf
607 ;;
608 pbd)
609 basic_machine=sparc-tti
610 ;;
611 pbb)
612 basic_machine=m68k-tti
613 ;;
614 pc532 | pc532-*)
615 basic_machine=ns32k-pc532
616 ;;
617 pentium | p5 | k5 | k6 | nexen)
618 basic_machine=i586-pc
619 ;;
620 pentiumpro | p6 | 6x86)
621 basic_machine=i686-pc
622 ;;
623 pentiumii | pentium2)
624 basic_machine=i786-pc
625 ;;
626 pentium-* | p5-* | k5-* | k6-* | nexen-*)
627 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
628 ;;
629 pentiumpro-* | p6-* | 6x86-*)
630 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
631 ;;
632 pentiumii-* | pentium2-*)
633 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
634 ;;
635 pn)
636 basic_machine=pn-gould
637 ;;
638 power) basic_machine=rs6000-ibm
639 ;;
640 ppc) basic_machine=powerpc-unknown
641 ;;
642 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
643 ;;
644 ppcle | powerpclittle | ppc-le | powerpc-little)
645 basic_machine=powerpcle-unknown
646 ;;
647 ppcle-* | powerpclittle-*)
648 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
649 ;;
650 ps2)
651 basic_machine=i386-ibm
652 ;;
653 rom68k)
654 basic_machine=m68k-rom68k
655 os=-coff
656 ;;
657 rm[46]00)
658 basic_machine=mips-siemens
659 ;;
660 rtpc | rtpc-*)
661 basic_machine=romp-ibm
662 ;;
663 sa29200)
664 basic_machine=a29k-amd
665 os=-udi
666 ;;
667 sequent)
668 basic_machine=i386-sequent
669 ;;
670 sh)
671 basic_machine=sh-hitachi
672 os=-hms
673 ;;
674 sparclite-wrs)
675 basic_machine=sparclite-wrs
676 os=-vxworks
677 ;;
678 sps7)
679 basic_machine=m68k-bull
680 os=-sysv2
681 ;;
682 spur)
683 basic_machine=spur-unknown
684 ;;
685 st2000)
686 basic_machine=m68k-tandem
687 ;;
688 stratus)
689 basic_machine=i860-stratus
690 os=-sysv4
691 ;;
692 sun2)
693 basic_machine=m68000-sun
694 ;;
695 sun2os3)
696 basic_machine=m68000-sun
697 os=-sunos3
698 ;;
699 sun2os4)
700 basic_machine=m68000-sun
701 os=-sunos4
702 ;;
703 sun3os3)
704 basic_machine=m68k-sun
705 os=-sunos3
706 ;;
707 sun3os4)
708 basic_machine=m68k-sun
709 os=-sunos4
710 ;;
711 sun4os3)
712 basic_machine=sparc-sun
713 os=-sunos3
714 ;;
715 sun4os4)
716 basic_machine=sparc-sun
717 os=-sunos4
718 ;;
719 sun4sol2)
720 basic_machine=sparc-sun
721 os=-solaris2
722 ;;
723 sun3 | sun3-*)
724 basic_machine=m68k-sun
725 ;;
726 sun4)
727 basic_machine=sparc-sun
728 ;;
729 sun386 | sun386i | roadrunner)
730 basic_machine=i386-sun
731 ;;
732 symmetry)
733 basic_machine=i386-sequent
734 os=-dynix
735 ;;
736 t3e)
737 basic_machine=t3e-cray
738 os=-unicos
739 ;;
740 tx39)
741 basic_machine=mipstx39-unknown
742 ;;
743 tx39el)
744 basic_machine=mipstx39el-unknown
745 ;;
746 tower | tower-32)
747 basic_machine=m68k-ncr
748 ;;
749 udi29k)
750 basic_machine=a29k-amd
751 os=-udi
752 ;;
753 ultra3)
754 basic_machine=a29k-nyu
755 os=-sym1
756 ;;
757 v810 | necv810)
758 basic_machine=v810-nec
759 os=-none
760 ;;
761 vaxv)
762 basic_machine=vax-dec
763 os=-sysv
764 ;;
765 vms)
766 basic_machine=vax-dec
767 os=-vms
768 ;;
769 vpp*|vx|vx-*)
770 basic_machine=f301-fujitsu
771 ;;
772 vxworks960)
773 basic_machine=i960-wrs
774 os=-vxworks
775 ;;
776 vxworks68)
777 basic_machine=m68k-wrs
778 os=-vxworks
779 ;;
780 vxworks29k)
781 basic_machine=a29k-wrs
782 os=-vxworks
783 ;;
784 w65*)
785 basic_machine=w65-wdc
786 os=-none
787 ;;
788 w89k-*)
789 basic_machine=hppa1.1-winbond
790 os=-proelf
791 ;;
792 xmp)
793 basic_machine=xmp-cray
794 os=-unicos
795 ;;
796 xps | xps100)
797 basic_machine=xps100-honeywell
798 ;;
799 z8k-*-coff)
800 basic_machine=z8k-unknown
801 os=-sim
802 ;;
803 none)
804 basic_machine=none-none
805 os=-none
806 ;;
807
808# Here we handle the default manufacturer of certain CPU types. It is in
809# some cases the only manufacturer, in others, it is the most popular.
810 w89k)
811 basic_machine=hppa1.1-winbond
812 ;;
813 op50n)
814 basic_machine=hppa1.1-oki
815 ;;
816 op60c)
817 basic_machine=hppa1.1-oki
818 ;;
819 mips)
820 if [ x$os = x-linux-gnu ]; then
821 basic_machine=mips-unknown
822 else
823 basic_machine=mips-mips
824 fi
825 ;;
826 romp)
827 basic_machine=romp-ibm
828 ;;
829 rs6000)
830 basic_machine=rs6000-ibm
831 ;;
832 vax)
833 basic_machine=vax-dec
834 ;;
835 pdp11)
836 basic_machine=pdp11-dec
837 ;;
838 we32k)
839 basic_machine=we32k-att
840 ;;
841 sparc | sparcv9)
842 basic_machine=sparc-sun
843 ;;
844 cydra)
845 basic_machine=cydra-cydrome
846 ;;
847 orion)
848 basic_machine=orion-highlevel
849 ;;
850 orion105)
851 basic_machine=clipper-highlevel
852 ;;
853 mac | mpw | mac-mpw)
854 basic_machine=m68k-apple
855 ;;
856 pmac | pmac-mpw)
857 basic_machine=powerpc-apple
858 ;;
859 c4x*)
860 basic_machine=c4x-none
861 os=-coff
862 ;;
863 *)
864 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
865 exit 1
866 ;;
867esac
868
869# Here we canonicalize certain aliases for manufacturers.
870case $basic_machine in
871 *-digital*)
872 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
873 ;;
874 *-commodore*)
875 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
876 ;;
877 *)
878 ;;
879esac
880
881# Decode manufacturer-specific aliases for certain operating systems.
882
883if [ x"$os" != x"" ]
884then
885case $os in
886 # First match some system type aliases
887 # that might get confused with valid system types.
888 # -solaris* is a basic system type, with this one exception.
889 -solaris1 | -solaris1.*)
890 os=`echo $os | sed -e 's|solaris1|sunos4|'`
891 ;;
892 -solaris)
893 os=-solaris2
894 ;;
895 -svr4*)
896 os=-sysv4
897 ;;
898 -unixware*)
899 os=-sysv4.2uw
900 ;;
901 -gnu/linux*)
902 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
903 ;;
904 # First accept the basic system types.
905 # The portable systems comes first.
906 # Each alternative MUST END IN A *, to match a version number.
907 # -sysv* is not here because it comes later, after sysvr4.
908 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
909 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
910 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
911 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
912 | -aos* \
913 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
914 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
915 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
916 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
917 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
918 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
919 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
920 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
921 | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
922 # Remember, each alternative MUST END IN *, to match a version number.
923 ;;
924 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
925 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
926 | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
927 ;;
928 -mac*)
929 os=`echo $os | sed -e 's|mac|macos|'`
930 ;;
931 -linux*)
932 os=`echo $os | sed -e 's|linux|linux-gnu|'`
933 ;;
934 -sunos5*)
935 os=`echo $os | sed -e 's|sunos5|solaris2|'`
936 ;;
937 -sunos6*)
938 os=`echo $os | sed -e 's|sunos6|solaris3|'`
939 ;;
940 -opened*)
941 os=-openedition
942 ;;
943 -osfrose*)
944 os=-osfrose
945 ;;
946 -osf*)
947 os=-osf
948 ;;
949 -utek*)
950 os=-bsd
951 ;;
952 -dynix*)
953 os=-bsd
954 ;;
955 -acis*)
956 os=-aos
957 ;;
958 -386bsd)
959 os=-bsd
960 ;;
961 -ctix* | -uts*)
962 os=-sysv
963 ;;
964 -ns2 )
965 os=-nextstep2
966 ;;
967 # Preserve the version number of sinix5.
968 -sinix5.*)
969 os=`echo $os | sed -e 's|sinix|sysv|'`
970 ;;
971 -sinix*)
972 os=-sysv4
973 ;;
974 -triton*)
975 os=-sysv3
976 ;;
977 -oss*)
978 os=-sysv3
979 ;;
980 -qnx)
981 os=-qnx4
982 ;;
983 -svr4)
984 os=-sysv4
985 ;;
986 -svr3)
987 os=-sysv3
988 ;;
989 -sysvr4)
990 os=-sysv4
991 ;;
992 # This must come after -sysvr4.
993 -sysv*)
994 ;;
995 -ose*)
996 os=-ose
997 ;;
998 -es1800*)
999 os=-ose
1000 ;;
1001 -xenix)
1002 os=-xenix
1003 ;;
1004 -*mint | -*MiNT)
1005 os=-mint
1006 ;;
1007 -none)
1008 ;;
1009 *)
1010 # Get rid of the `-' at the beginning of $os.
1011 os=`echo $os | sed 's/[^-]*-//'`
1012 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1013 exit 1
1014 ;;
1015esac
1016else
1017
1018# Here we handle the default operating systems that come with various machines.
1019# The value should be what the vendor currently ships out the door with their
1020# machine or put another way, the most popular os provided with the machine.
1021
1022# Note that if you're going to try to match "-MANUFACTURER" here (say,
1023# "-sun"), then you have to tell the case statement up towards the top
1024# that MANUFACTURER isn't an operating system. Otherwise, code above
1025# will signal an error saying that MANUFACTURER isn't an operating
1026# system, and we'll never get to this point.
1027
1028case $basic_machine in
1029 *-acorn)
1030 os=-riscix1.2
1031 ;;
1032 arm*-rebel)
1033 os=-linux
1034 ;;
1035 arm*-semi)
1036 os=-aout
1037 ;;
1038 pdp11-*)
1039 os=-none
1040 ;;
1041 *-dec | vax-*)
1042 os=-ultrix4.2
1043 ;;
1044 m68*-apollo)
1045 os=-domain
1046 ;;
1047 i386-sun)
1048 os=-sunos4.0.2
1049 ;;
1050 m68000-sun)
1051 os=-sunos3
1052 # This also exists in the configure program, but was not the
1053 # default.
1054 # os=-sunos4
1055 ;;
1056 m68*-cisco)
1057 os=-aout
1058 ;;
1059 mips*-cisco)
1060 os=-elf
1061 ;;
1062 mips*-*)
1063 os=-elf
1064 ;;
1065 *-tti) # must be before sparc entry or we get the wrong os.
1066 os=-sysv3
1067 ;;
1068 sparc-* | *-sun)
1069 os=-sunos4.1.1
1070 ;;
1071 *-be)
1072 os=-beos
1073 ;;
1074 *-ibm)
1075 os=-aix
1076 ;;
1077 *-wec)
1078 os=-proelf
1079 ;;
1080 *-winbond)
1081 os=-proelf
1082 ;;
1083 *-oki)
1084 os=-proelf
1085 ;;
1086 *-hp)
1087 os=-hpux
1088 ;;
1089 *-hitachi)
1090 os=-hiux
1091 ;;
1092 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1093 os=-sysv
1094 ;;
1095 *-cbm)
1096 os=-amigaos
1097 ;;
1098 *-dg)
1099 os=-dgux
1100 ;;
1101 *-dolphin)
1102 os=-sysv3
1103 ;;
1104 m68k-ccur)
1105 os=-rtu
1106 ;;
1107 m88k-omron*)
1108 os=-luna
1109 ;;
1110 *-next )
1111 os=-nextstep
1112 ;;
1113 *-sequent)
1114 os=-ptx
1115 ;;
1116 *-crds)
1117 os=-unos
1118 ;;
1119 *-ns)
1120 os=-genix
1121 ;;
1122 i370-*)
1123 os=-mvs
1124 ;;
1125 *-next)
1126 os=-nextstep3
1127 ;;
1128 *-gould)
1129 os=-sysv
1130 ;;
1131 *-highlevel)
1132 os=-bsd
1133 ;;
1134 *-encore)
1135 os=-bsd
1136 ;;
1137 *-sgi)
1138 os=-irix
1139 ;;
1140 *-siemens)
1141 os=-sysv4
1142 ;;
1143 *-masscomp)
1144 os=-rtu
1145 ;;
1146 f301-fujitsu)
1147 os=-uxpv
1148 ;;
1149 *-rom68k)
1150 os=-coff
1151 ;;
1152 *-*bug)
1153 os=-coff
1154 ;;
1155 *-apple)
1156 os=-macos
1157 ;;
1158 *-atari*)
1159 os=-mint
1160 ;;
1161 *)
1162 os=-none
1163 ;;
1164esac
1165fi
1166
1167# Here we handle the case where we know the os, and the CPU type, but not the
1168# manufacturer. We pick the logical manufacturer.
1169vendor=unknown
1170case $basic_machine in
1171 *-unknown)
1172 case $os in
1173 -riscix*)
1174 vendor=acorn
1175 ;;
1176 -sunos*)
1177 vendor=sun
1178 ;;
1179 -aix*)
1180 vendor=ibm
1181 ;;
1182 -beos*)
1183 vendor=be
1184 ;;
1185 -hpux*)
1186 vendor=hp
1187 ;;
1188 -mpeix*)
1189 vendor=hp
1190 ;;
1191 -hiux*)
1192 vendor=hitachi
1193 ;;
1194 -unos*)
1195 vendor=crds
1196 ;;
1197 -dgux*)
1198 vendor=dg
1199 ;;
1200 -luna*)
1201 vendor=omron
1202 ;;
1203 -genix*)
1204 vendor=ns
1205 ;;
1206 -mvs* | -opened*)
1207 vendor=ibm
1208 ;;
1209 -ptx*)
1210 vendor=sequent
1211 ;;
1212 -vxsim* | -vxworks*)
1213 vendor=wrs
1214 ;;
1215 -aux*)
1216 vendor=apple
1217 ;;
1218 -hms*)
1219 vendor=hitachi
1220 ;;
1221 -mpw* | -macos*)
1222 vendor=apple
1223 ;;
1224 -*mint | -*MiNT)
1225 vendor=atari
1226 ;;
1227 esac
1228 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1229 ;;
1230esac
1231
1232echo $basic_machine$os
diff --git a/xdelta1/configure b/xdelta1/configure
deleted file mode 100755
index a66789f..0000000
--- a/xdelta1/configure
+++ /dev/null
@@ -1,2774 +0,0 @@
1#! /bin/sh
2
3# From configure.in configure.in,v 1.2 1998/10/03 00:17:50 jmacd Exp
4
5
6# Like AC_CONFIG_HEADER, but automatically create stamp file.
7
8
9
10# Do all the work for Automake. This macro actually does too much --
11# some checks are only needed if your package does certain things.
12# But this isn't really a big deal.
13
14# serial 1
15
16
17
18
19#
20# Check to make sure that the build environment is sane.
21#
22
23
24
25
26
27# Add --enable-maintainer-mode option to configure.
28# From Jim Meyering
29
30# serial 1
31
32
33
34# Define a conditional.
35
36
37
38
39# serial 40 AC_PROG_LIBTOOL
40
41
42
43
44# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
45
46
47# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
48
49
50# AC_ENABLE_SHARED - implement the --enable-shared flag
51# Usage: AC_ENABLE_SHARED[(DEFAULT)]
52# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
53# `yes'.
54
55
56# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
57
58
59# AC_ENABLE_STATIC - implement the --enable-static flag
60# Usage: AC_ENABLE_STATIC[(DEFAULT)]
61# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
62# `yes'.
63
64
65# AC_DISABLE_STATIC - set the default static flag to --disable-static
66
67
68
69# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
70# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
71# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
72# `yes'.
73
74
75# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
76
77
78# AC_PROG_LD - find the path to the GNU or non-GNU linker
79
80
81
82
83# AC_PROG_NM - find the path to a BSD-compatible name lister
84
85
86# AC_CHECK_LIBM - check for math library
87
88
89# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
90# the libltdl convenience library, adds --enable-ltdl-convenience to
91# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
92# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
93# to be `${top_builddir}/libltdl'. Make sure you start DIR with
94# '${top_builddir}/' (note the single quotes!) if your package is not
95# flat, and, if you're not using automake, define top_builddir as
96# appropriate in the Makefiles.
97
98
99# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
100# the libltdl installable library, and adds --enable-ltdl-install to
101# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
102# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
103# to be `${top_builddir}/libltdl'. Make sure you start DIR with
104# '${top_builddir}/' (note the single quotes!) if your package is not
105# flat, and, if you're not using automake, define top_builddir as
106# appropriate in the Makefiles.
107# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
108
109
110
111
112# Configure paths for GLIB
113# Owen Taylor 97-11-3
114
115
116
117# Guess values for system-dependent variables and create Makefiles.
118# Generated automatically using autoconf version 2.13
119# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
120#
121# This configure script is free software; the Free Software Foundation
122# gives unlimited permission to copy, distribute and modify it.
123
124# Defaults:
125ac_help=
126ac_default_prefix=/usr/local
127# Any additions from configure.in:
128ac_help="$ac_help
129 --enable-maintainer-mode enable make rules and dependencies not useful
130 (and sometimes confusing) to the casual installer"
131ac_help="$ac_help
132 --enable-debug turn on debugging [default=no]"
133ac_help="$ac_help
134 --enable-profile turn on profiling [default=no]"
135ac_help="$ac_help
136 --enable-shared[=PKGS] build shared libraries [default=yes]"
137ac_help="$ac_help
138 --enable-static[=PKGS] build static libraries [default=yes]"
139ac_help="$ac_help
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
141ac_help="$ac_help
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
143ac_help="$ac_help
144 --disable-libtool-lock avoid locking (might break parallel builds)"
145ac_help="$ac_help
146 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
147ac_help="$ac_help
148 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
149ac_help="$ac_help
150 --disable-glibtest Do not try to compile and run a test GLIB program"
151
152# Initialize some variables set by options.
153# The variables have the same names as the options, with
154# dashes changed to underlines.
155build=NONE
156cache_file=./config.cache
157exec_prefix=NONE
158host=NONE
159no_create=
160nonopt=NONE
161no_recursion=
162prefix=NONE
163program_prefix=NONE
164program_suffix=NONE
165program_transform_name=s,x,x,
166silent=
167site=
168srcdir=
169target=NONE
170verbose=
171x_includes=NONE
172x_libraries=NONE
173bindir='${exec_prefix}/bin'
174sbindir='${exec_prefix}/sbin'
175libexecdir='${exec_prefix}/libexec'
176datadir='${prefix}/share'
177sysconfdir='${prefix}/etc'
178sharedstatedir='${prefix}/com'
179localstatedir='${prefix}/var'
180libdir='${exec_prefix}/lib'
181includedir='${prefix}/include'
182oldincludedir='/usr/include'
183infodir='${prefix}/info'
184mandir='${prefix}/man'
185
186# Initialize some other variables.
187subdirs=
188MFLAGS= MAKEFLAGS=
189SHELL=${CONFIG_SHELL-/bin/sh}
190# Maximum number of lines to put in a shell here document.
191ac_max_here_lines=12
192
193ac_prev=
194for ac_option
195do
196
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
200 ac_prev=
201 continue
202 fi
203
204 case "$ac_option" in
205 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
206 *) ac_optarg= ;;
207 esac
208
209 # Accept the important Cygnus configure options, so we can diagnose typos.
210
211 case "$ac_option" in
212
213 -bindir | --bindir | --bindi | --bind | --bin | --bi)
214 ac_prev=bindir ;;
215 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 bindir="$ac_optarg" ;;
217
218 -build | --build | --buil | --bui | --bu)
219 ac_prev=build ;;
220 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
221 build="$ac_optarg" ;;
222
223 -cache-file | --cache-file | --cache-fil | --cache-fi \
224 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
225 ac_prev=cache_file ;;
226 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
227 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
228 cache_file="$ac_optarg" ;;
229
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 ac_prev=datadir ;;
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 | --da=*)
234 datadir="$ac_optarg" ;;
235
236 -disable-* | --disable-*)
237 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
238 # Reject names that are not valid shell variable names.
239 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
240 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 fi
242 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
243 eval "enable_${ac_feature}=no" ;;
244
245 -enable-* | --enable-*)
246 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
247 # Reject names that are not valid shell variable names.
248 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
249 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
250 fi
251 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
252 case "$ac_option" in
253 *=*) ;;
254 *) ac_optarg=yes ;;
255 esac
256 eval "enable_${ac_feature}='$ac_optarg'" ;;
257
258 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
259 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
260 | --exec | --exe | --ex)
261 ac_prev=exec_prefix ;;
262 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
263 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
264 | --exec=* | --exe=* | --ex=*)
265 exec_prefix="$ac_optarg" ;;
266
267 -gas | --gas | --ga | --g)
268 # Obsolete; use --with-gas.
269 with_gas=yes ;;
270
271 -help | --help | --hel | --he)
272 # Omit some internal or obsolete options to make the list less imposing.
273 # This message is too long to be a string in the A/UX 3.1 sh.
274 cat << EOF
275Usage: configure [options] [host]
276Options: [defaults in brackets after descriptions]
277Configuration:
278 --cache-file=FILE cache test results in FILE
279 --help print this message
280 --no-create do not create output files
281 --quiet, --silent do not print \`checking...' messages
282 --version print the version of autoconf that created configure
283Directory and file names:
284 --prefix=PREFIX install architecture-independent files in PREFIX
285 [$ac_default_prefix]
286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
287 [same as prefix]
288 --bindir=DIR user executables in DIR [EPREFIX/bin]
289 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
290 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
291 --datadir=DIR read-only architecture-independent data in DIR
292 [PREFIX/share]
293 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
294 --sharedstatedir=DIR modifiable architecture-independent data in DIR
295 [PREFIX/com]
296 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
297 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
298 --includedir=DIR C header files in DIR [PREFIX/include]
299 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
300 --infodir=DIR info documentation in DIR [PREFIX/info]
301 --mandir=DIR man documentation in DIR [PREFIX/man]
302 --srcdir=DIR find the sources in DIR [configure dir or ..]
303 --program-prefix=PREFIX prepend PREFIX to installed program names
304 --program-suffix=SUFFIX append SUFFIX to installed program names
305 --program-transform-name=PROGRAM
306 run sed PROGRAM on installed program names
307EOF
308 cat << EOF
309Host type:
310 --build=BUILD configure for building on BUILD [BUILD=HOST]
311 --host=HOST configure for HOST [guessed]
312 --target=TARGET configure for TARGET [TARGET=HOST]
313Features and packages:
314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
316 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
317 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
318 --x-includes=DIR X include files are in DIR
319 --x-libraries=DIR X library files are in DIR
320EOF
321 if test -n "$ac_help"; then
322 echo "--enable and --with options recognized:$ac_help"
323 fi
324 exit 0 ;;
325
326 -host | --host | --hos | --ho)
327 ac_prev=host ;;
328 -host=* | --host=* | --hos=* | --ho=*)
329 host="$ac_optarg" ;;
330
331 -includedir | --includedir | --includedi | --included | --include \
332 | --includ | --inclu | --incl | --inc)
333 ac_prev=includedir ;;
334 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
335 | --includ=* | --inclu=* | --incl=* | --inc=*)
336 includedir="$ac_optarg" ;;
337
338 -infodir | --infodir | --infodi | --infod | --info | --inf)
339 ac_prev=infodir ;;
340 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
341 infodir="$ac_optarg" ;;
342
343 -libdir | --libdir | --libdi | --libd)
344 ac_prev=libdir ;;
345 -libdir=* | --libdir=* | --libdi=* | --libd=*)
346 libdir="$ac_optarg" ;;
347
348 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
349 | --libexe | --libex | --libe)
350 ac_prev=libexecdir ;;
351 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
352 | --libexe=* | --libex=* | --libe=*)
353 libexecdir="$ac_optarg" ;;
354
355 -localstatedir | --localstatedir | --localstatedi | --localstated \
356 | --localstate | --localstat | --localsta | --localst \
357 | --locals | --local | --loca | --loc | --lo)
358 ac_prev=localstatedir ;;
359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
360 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
361 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
362 localstatedir="$ac_optarg" ;;
363
364 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
365 ac_prev=mandir ;;
366 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
367 mandir="$ac_optarg" ;;
368
369 -nfp | --nfp | --nf)
370 # Obsolete; use --without-fp.
371 with_fp=no ;;
372
373 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
374 | --no-cr | --no-c)
375 no_create=yes ;;
376
377 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
378 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
379 no_recursion=yes ;;
380
381 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
382 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
383 | --oldin | --oldi | --old | --ol | --o)
384 ac_prev=oldincludedir ;;
385 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
386 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
387 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
388 oldincludedir="$ac_optarg" ;;
389
390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
391 ac_prev=prefix ;;
392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
393 prefix="$ac_optarg" ;;
394
395 -program-prefix | --program-prefix | --program-prefi | --program-pref \
396 | --program-pre | --program-pr | --program-p)
397 ac_prev=program_prefix ;;
398 -program-prefix=* | --program-prefix=* | --program-prefi=* \
399 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
400 program_prefix="$ac_optarg" ;;
401
402 -program-suffix | --program-suffix | --program-suffi | --program-suff \
403 | --program-suf | --program-su | --program-s)
404 ac_prev=program_suffix ;;
405 -program-suffix=* | --program-suffix=* | --program-suffi=* \
406 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
407 program_suffix="$ac_optarg" ;;
408
409 -program-transform-name | --program-transform-name \
410 | --program-transform-nam | --program-transform-na \
411 | --program-transform-n | --program-transform- \
412 | --program-transform | --program-transfor \
413 | --program-transfo | --program-transf \
414 | --program-trans | --program-tran \
415 | --progr-tra | --program-tr | --program-t)
416 ac_prev=program_transform_name ;;
417 -program-transform-name=* | --program-transform-name=* \
418 | --program-transform-nam=* | --program-transform-na=* \
419 | --program-transform-n=* | --program-transform-=* \
420 | --program-transform=* | --program-transfor=* \
421 | --program-transfo=* | --program-transf=* \
422 | --program-trans=* | --program-tran=* \
423 | --progr-tra=* | --program-tr=* | --program-t=*)
424 program_transform_name="$ac_optarg" ;;
425
426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
427 | -silent | --silent | --silen | --sile | --sil)
428 silent=yes ;;
429
430 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
431 ac_prev=sbindir ;;
432 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
433 | --sbi=* | --sb=*)
434 sbindir="$ac_optarg" ;;
435
436 -sharedstatedir | --sharedstatedir | --sharedstatedi \
437 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
438 | --sharedst | --shareds | --shared | --share | --shar \
439 | --sha | --sh)
440 ac_prev=sharedstatedir ;;
441 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
442 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
443 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
444 | --sha=* | --sh=*)
445 sharedstatedir="$ac_optarg" ;;
446
447 -site | --site | --sit)
448 ac_prev=site ;;
449 -site=* | --site=* | --sit=*)
450 site="$ac_optarg" ;;
451
452 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
453 ac_prev=srcdir ;;
454 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
455 srcdir="$ac_optarg" ;;
456
457 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
458 | --syscon | --sysco | --sysc | --sys | --sy)
459 ac_prev=sysconfdir ;;
460 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
461 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
462 sysconfdir="$ac_optarg" ;;
463
464 -target | --target | --targe | --targ | --tar | --ta | --t)
465 ac_prev=target ;;
466 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
467 target="$ac_optarg" ;;
468
469 -v | -verbose | --verbose | --verbos | --verbo | --verb)
470 verbose=yes ;;
471
472 -version | --version | --versio | --versi | --vers)
473 echo "configure generated by autoconf version 2.13"
474 exit 0 ;;
475
476 -with-* | --with-*)
477 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
481 fi
482 ac_package=`echo $ac_package| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
485 *) ac_optarg=yes ;;
486 esac
487 eval "with_${ac_package}='$ac_optarg'" ;;
488
489 -without-* | --without-*)
490 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
491 # Reject names that are not valid shell variable names.
492 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
493 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
494 fi
495 ac_package=`echo $ac_package| sed 's/-/_/g'`
496 eval "with_${ac_package}=no" ;;
497
498 --x)
499 # Obsolete; use --with-x.
500 with_x=yes ;;
501
502 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
503 | --x-incl | --x-inc | --x-in | --x-i)
504 ac_prev=x_includes ;;
505 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
506 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
507 x_includes="$ac_optarg" ;;
508
509 -x-libraries | --x-libraries | --x-librarie | --x-librari \
510 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
511 ac_prev=x_libraries ;;
512 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
513 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
514 x_libraries="$ac_optarg" ;;
515
516 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
517 ;;
518
519 *)
520 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
521 echo "configure: warning: $ac_option: invalid host type" 1>&2
522 fi
523 if test "x$nonopt" != xNONE; then
524 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
525 fi
526 nonopt="$ac_option"
527 ;;
528
529 esac
530done
531
532if test -n "$ac_prev"; then
533 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
534fi
535
536trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
537
538# File descriptor usage:
539# 0 standard input
540# 1 file creation
541# 2 errors and warnings
542# 3 some systems may open it to /dev/tty
543# 4 used on the Kubota Titan
544# 6 checking for... messages and results
545# 5 compiler messages saved in config.log
546if test "$silent" = yes; then
547 exec 6>/dev/null
548else
549 exec 6>&1
550fi
551exec 5>./config.log
552
553echo "\
554This file contains any messages produced by compilers while
555running configure, to aid debugging if configure makes a mistake.
556" 1>&5
557
558# Strip out --no-create and --no-recursion so they do not pile up.
559# Also quote any args containing shell metacharacters.
560ac_configure_args=
561for ac_arg
562do
563 case "$ac_arg" in
564 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
565 | --no-cr | --no-c) ;;
566 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
567 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
568 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
569 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
570 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
571 esac
572done
573
574# NLS nuisances.
575# Only set these to C if already set. These must not be set unconditionally
576# because not all systems understand e.g. LANG=C (notably SCO).
577# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
578# Non-C LC_CTYPE values break the ctype check.
579if test "${LANG+set}" = set; then LANG=C; export LANG; fi
580if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
581if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
582if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
583
584# confdefs.h avoids OS command line length limits that DEFS can exceed.
585rm -rf conftest* confdefs.h
586# AIX cpp loses on an empty file, so make sure it contains at least a newline.
587echo > confdefs.h
588
589# A filename unique to this package, relative to the directory that
590# configure is in, which we can look for to find out if srcdir is correct.
591ac_unique_file=xdelta.c
592
593# Find the source files, if location was not specified.
594if test -z "$srcdir"; then
595 ac_srcdir_defaulted=yes
596 # Try the directory containing this script, then its parent.
597 ac_prog=$0
598 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
599 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
600 srcdir=$ac_confdir
601 if test ! -r $srcdir/$ac_unique_file; then
602 srcdir=..
603 fi
604else
605 ac_srcdir_defaulted=no
606fi
607if test ! -r $srcdir/$ac_unique_file; then
608 if test "$ac_srcdir_defaulted" = yes; then
609 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
610 else
611 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
612 fi
613fi
614srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
615
616# Prefer explicitly selected file to automatically selected ones.
617if test -z "$CONFIG_SITE"; then
618 if test "x$prefix" != xNONE; then
619 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
620 else
621 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
622 fi
623fi
624for ac_site_file in $CONFIG_SITE; do
625 if test -r "$ac_site_file"; then
626 echo "loading site script $ac_site_file"
627 . "$ac_site_file"
628 fi
629done
630
631if test -r "$cache_file"; then
632 echo "loading cache $cache_file"
633 . $cache_file
634else
635 echo "creating cache $cache_file"
636 > $cache_file
637fi
638
639ac_ext=c
640# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
641ac_cpp='$CPP $CPPFLAGS'
642ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
643ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
644cross_compiling=$ac_cv_prog_cc_cross
645
646ac_exeext=
647ac_objext=o
648if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
649 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
650 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
651 ac_n= ac_c='
652' ac_t=' '
653 else
654 ac_n=-n ac_c= ac_t=
655 fi
656else
657 ac_n= ac_c='\c' ac_t=
658fi
659
660
661
662
663
664
665ac_aux_dir=
666for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
667 if test -f $ac_dir/install-sh; then
668 ac_aux_dir=$ac_dir
669 ac_install_sh="$ac_aux_dir/install-sh -c"
670 break
671 elif test -f $ac_dir/install.sh; then
672 ac_aux_dir=$ac_dir
673 ac_install_sh="$ac_aux_dir/install.sh -c"
674 break
675 fi
676done
677if test -z "$ac_aux_dir"; then
678 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679fi
680ac_config_guess=$ac_aux_dir/config.guess
681ac_config_sub=$ac_aux_dir/config.sub
682ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
683
684# Find a good install program. We prefer a C program (faster),
685# so one script is as good as another. But avoid the broken or
686# incompatible versions:
687# SysV /etc/install, /usr/sbin/install
688# SunOS /usr/etc/install
689# IRIX /sbin/install
690# AIX /bin/install
691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
694# ./install, which can be erroneously created by make from ./install.sh.
695echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
696echo "configure:697: checking for a BSD compatible install" >&5
697if test -z "$INSTALL"; then
698if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700else
701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
702 for ac_dir in $PATH; do
703 # Account for people who put trailing slashes in PATH elements.
704 case "$ac_dir/" in
705 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
706 *)
707 # OSF1 and SCO ODT 3.0 have their own names for install.
708 # Don't use installbsd from OSF since it installs stuff as root
709 # by default.
710 for ac_prog in ginstall scoinst install; do
711 if test -f $ac_dir/$ac_prog; then
712 if test $ac_prog = install &&
713 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
714 # AIX install. It has an incompatible calling convention.
715 :
716 else
717 ac_cv_path_install="$ac_dir/$ac_prog -c"
718 break 2
719 fi
720 fi
721 done
722 ;;
723 esac
724 done
725 IFS="$ac_save_IFS"
726
727fi
728 if test "${ac_cv_path_install+set}" = set; then
729 INSTALL="$ac_cv_path_install"
730 else
731 # As a last resort, use the slow shell script. We don't cache a
732 # path for INSTALL within a source directory, because that will
733 # break other packages using the cache if that directory is
734 # removed, or if the path is relative.
735 INSTALL="$ac_install_sh"
736 fi
737fi
738echo "$ac_t""$INSTALL" 1>&6
739
740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
741# It thinks the first close brace ends the variable substitution.
742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
743
744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
745
746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
747
748echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
749echo "configure:750: checking whether build environment is sane" >&5
750# Just in case
751sleep 1
752echo timestamp > conftestfile
753# Do `set' in a subshell so we don't clobber the current shell's
754# arguments. Must try -L first in case configure is actually a
755# symlink; some systems play weird games with the mod time of symlinks
756# (eg FreeBSD returns the mod time of the symlink's containing
757# directory).
758if (
759 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
760 if test "$*" = "X"; then
761 # -L didn't work.
762 set X `ls -t $srcdir/configure conftestfile`
763 fi
764 if test "$*" != "X $srcdir/configure conftestfile" \
765 && test "$*" != "X conftestfile $srcdir/configure"; then
766
767 # If neither matched, then we have a broken ls. This can happen
768 # if, for instance, CONFIG_SHELL is bash and it inherits a
769 # broken ls alias from the environment. This has actually
770 # happened. Such a system could not be considered "sane".
771 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
772alias in your environment" 1>&2; exit 1; }
773 fi
774
775 test "$2" = conftestfile
776 )
777then
778 # Ok.
779 :
780else
781 { echo "configure: error: newly created file is older than distributed files!
782Check your system clock" 1>&2; exit 1; }
783fi
784rm -f conftest*
785echo "$ac_t""yes" 1>&6
786if test "$program_transform_name" = s,x,x,; then
787 program_transform_name=
788else
789 # Double any \ or $. echo might interpret backslashes.
790 cat <<\EOF_SED > conftestsed
791s,\\,\\\\,g; s,\$,$$,g
792EOF_SED
793 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
794 rm -f conftestsed
795fi
796test "$program_prefix" != NONE &&
797 program_transform_name="s,^,${program_prefix},; $program_transform_name"
798# Use a double $ so make ignores it.
799test "$program_suffix" != NONE &&
800 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
801
802# sed with no file args requires a program.
803test "$program_transform_name" = "" && program_transform_name="s,x,x,"
804
805echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
806echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5
807set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
808if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810else
811 cat > conftestmake <<\EOF
812all:
813 @echo 'ac_maketemp="${MAKE}"'
814EOF
815# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
816eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
817if test -n "$ac_maketemp"; then
818 eval ac_cv_prog_make_${ac_make}_set=yes
819else
820 eval ac_cv_prog_make_${ac_make}_set=no
821fi
822rm -f conftestmake
823fi
824if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
825 echo "$ac_t""yes" 1>&6
826 SET_MAKE=
827else
828 echo "$ac_t""no" 1>&6
829 SET_MAKE="MAKE=${MAKE-make}"
830fi
831
832
833PACKAGE=xdelta
834
835VERSION=1.1.3
836
837if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
838 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
839fi
840
841
842
843missing_dir=`cd $ac_aux_dir && pwd`
844echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
845echo "configure:846: checking for working aclocal" >&5
846# Run test in a subshell; some versions of sh will print an error if
847# an executable is not found, even if stderr is redirected.
848# Redirect stdin to placate older versions of autoconf. Sigh.
849if (aclocal --version) < /dev/null > /dev/null 2>&1; then
850 ACLOCAL=aclocal
851 echo "$ac_t""found" 1>&6
852else
853 ACLOCAL="$missing_dir/missing aclocal"
854 echo "$ac_t""missing" 1>&6
855fi
856
857echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
858echo "configure:859: checking for working autoconf" >&5
859# Run test in a subshell; some versions of sh will print an error if
860# an executable is not found, even if stderr is redirected.
861# Redirect stdin to placate older versions of autoconf. Sigh.
862if (autoconf --version) < /dev/null > /dev/null 2>&1; then
863 AUTOCONF=autoconf
864 echo "$ac_t""found" 1>&6
865else
866 AUTOCONF="$missing_dir/missing autoconf"
867 echo "$ac_t""missing" 1>&6
868fi
869
870echo $ac_n "checking for working automake""... $ac_c" 1>&6
871echo "configure:872: checking for working automake" >&5
872# Run test in a subshell; some versions of sh will print an error if
873# an executable is not found, even if stderr is redirected.
874# Redirect stdin to placate older versions of autoconf. Sigh.
875if (automake --version) < /dev/null > /dev/null 2>&1; then
876 AUTOMAKE=automake
877 echo "$ac_t""found" 1>&6
878else
879 AUTOMAKE="$missing_dir/missing automake"
880 echo "$ac_t""missing" 1>&6
881fi
882
883echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
884echo "configure:885: checking for working autoheader" >&5
885# Run test in a subshell; some versions of sh will print an error if
886# an executable is not found, even if stderr is redirected.
887# Redirect stdin to placate older versions of autoconf. Sigh.
888if (autoheader --version) < /dev/null > /dev/null 2>&1; then
889 AUTOHEADER=autoheader
890 echo "$ac_t""found" 1>&6
891else
892 AUTOHEADER="$missing_dir/missing autoheader"
893 echo "$ac_t""missing" 1>&6
894fi
895
896echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
897echo "configure:898: checking for working makeinfo" >&5
898# Run test in a subshell; some versions of sh will print an error if
899# an executable is not found, even if stderr is redirected.
900# Redirect stdin to placate older versions of autoconf. Sigh.
901if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
902 MAKEINFO=makeinfo
903 echo "$ac_t""found" 1>&6
904else
905 MAKEINFO="$missing_dir/missing makeinfo"
906 echo "$ac_t""missing" 1>&6
907fi
908
909
910
911echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
912echo "configure:913: checking whether to enable maintainer-specific portions of Makefiles" >&5
913 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
914if test "${enable_maintainer_mode+set}" = set; then
915 enableval="$enable_maintainer_mode"
916 USE_MAINTAINER_MODE=$enableval
917else
918 USE_MAINTAINER_MODE=no
919fi
920
921 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
922
923
924if test $USE_MAINTAINER_MODE = yes; then
925 MAINTAINER_MODE_TRUE=
926 MAINTAINER_MODE_FALSE='#'
927else
928 MAINTAINER_MODE_TRUE='#'
929 MAINTAINER_MODE_FALSE=
930fi
931 MAINT=$MAINTAINER_MODE_TRUE
932
933
934
935DEBUGFLAG=
936PROFILEFLAG=
937
938# Check whether --enable-debug or --disable-debug was given.
939if test "${enable_debug+set}" = set; then
940 enableval="$enable_debug"
941 :
942fi
943
944# Check whether --enable-profile or --disable-profile was given.
945if test "${enable_profile+set}" = set; then
946 enableval="$enable_profile"
947 :
948fi
949
950
951TMPCFLAGS="$CFLAGS"
952CFLAGS=
953
954# Extract the first word of "gcc", so it can be a program name with args.
955set dummy gcc; ac_word=$2
956echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957echo "configure:958: checking for $ac_word" >&5
958if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
960else
961 if test -n "$CC"; then
962 ac_cv_prog_CC="$CC" # Let the user override the test.
963else
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 ac_dummy="$PATH"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_CC="gcc"
970 break
971 fi
972 done
973 IFS="$ac_save_ifs"
974fi
975fi
976CC="$ac_cv_prog_CC"
977if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
979else
980 echo "$ac_t""no" 1>&6
981fi
982
983if test -z "$CC"; then
984 # Extract the first word of "cc", so it can be a program name with args.
985set dummy cc; ac_word=$2
986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987echo "configure:988: checking for $ac_word" >&5
988if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990else
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
993else
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 ac_prog_rejected=no
996 ac_dummy="$PATH"
997 for ac_dir in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir=.
999 if test -f $ac_dir/$ac_word; then
1000 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001 ac_prog_rejected=yes
1002 continue
1003 fi
1004 ac_cv_prog_CC="cc"
1005 break
1006 fi
1007 done
1008 IFS="$ac_save_ifs"
1009if test $ac_prog_rejected = yes; then
1010 # We found a bogon in the path, so make sure we never use it.
1011 set dummy $ac_cv_prog_CC
1012 shift
1013 if test $# -gt 0; then
1014 # We chose a different compiler from the bogus one.
1015 # However, it has the same basename, so the bogon will be chosen
1016 # first if we set CC to just the basename; use the full file name.
1017 shift
1018 set dummy "$ac_dir/$ac_word" "$@"
1019 shift
1020 ac_cv_prog_CC="$@"
1021 fi
1022fi
1023fi
1024fi
1025CC="$ac_cv_prog_CC"
1026if test -n "$CC"; then
1027 echo "$ac_t""$CC" 1>&6
1028else
1029 echo "$ac_t""no" 1>&6
1030fi
1031
1032 if test -z "$CC"; then
1033 case "`uname -s`" in
1034 *win32* | *WIN32*)
1035 # Extract the first word of "cl", so it can be a program name with args.
1036set dummy cl; ac_word=$2
1037echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038echo "configure:1039: checking for $ac_word" >&5
1039if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1041else
1042 if test -n "$CC"; then
1043 ac_cv_prog_CC="$CC" # Let the user override the test.
1044else
1045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1046 ac_dummy="$PATH"
1047 for ac_dir in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1050 ac_cv_prog_CC="cl"
1051 break
1052 fi
1053 done
1054 IFS="$ac_save_ifs"
1055fi
1056fi
1057CC="$ac_cv_prog_CC"
1058if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1060else
1061 echo "$ac_t""no" 1>&6
1062fi
1063 ;;
1064 esac
1065 fi
1066 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1067fi
1068
1069echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1070echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1071
1072ac_ext=c
1073# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1074ac_cpp='$CPP $CPPFLAGS'
1075ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1076ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1077cross_compiling=$ac_cv_prog_cc_cross
1078
1079cat > conftest.$ac_ext << EOF
1080
1081#line 1082 "configure"
1082#include "confdefs.h"
1083
1084main(){return(0);}
1085EOF
1086if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1087 ac_cv_prog_cc_works=yes
1088 # If we can't run a trivial program, we are probably using a cross compiler.
1089 if (./conftest; exit) 2>/dev/null; then
1090 ac_cv_prog_cc_cross=no
1091 else
1092 ac_cv_prog_cc_cross=yes
1093 fi
1094else
1095 echo "configure: failed program was:" >&5
1096 cat conftest.$ac_ext >&5
1097 ac_cv_prog_cc_works=no
1098fi
1099rm -fr conftest*
1100ac_ext=c
1101# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102ac_cpp='$CPP $CPPFLAGS'
1103ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105cross_compiling=$ac_cv_prog_cc_cross
1106
1107echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1108if test $ac_cv_prog_cc_works = no; then
1109 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1110fi
1111echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1112echo "configure:1113: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1113echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1114cross_compiling=$ac_cv_prog_cc_cross
1115
1116echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1117echo "configure:1118: checking whether we are using GNU C" >&5
1118if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120else
1121 cat > conftest.c <<EOF
1122#ifdef __GNUC__
1123 yes;
1124#endif
1125EOF
1126if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127 ac_cv_prog_gcc=yes
1128else
1129 ac_cv_prog_gcc=no
1130fi
1131fi
1132
1133echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1134
1135if test $ac_cv_prog_gcc = yes; then
1136 GCC=yes
1137else
1138 GCC=
1139fi
1140
1141ac_test_CFLAGS="${CFLAGS+set}"
1142ac_save_CFLAGS="$CFLAGS"
1143CFLAGS=
1144echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1145echo "configure:1146: checking whether ${CC-cc} accepts -g" >&5
1146if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148else
1149 echo 'void f(){}' > conftest.c
1150if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1151 ac_cv_prog_cc_g=yes
1152else
1153 ac_cv_prog_cc_g=no
1154fi
1155rm -f conftest*
1156
1157fi
1158
1159echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1160if test "$ac_test_CFLAGS" = set; then
1161 CFLAGS="$ac_save_CFLAGS"
1162elif test $ac_cv_prog_cc_g = yes; then
1163 if test "$GCC" = yes; then
1164 CFLAGS="-g -O2"
1165 else
1166 CFLAGS="-g"
1167 fi
1168else
1169 if test "$GCC" = yes; then
1170 CFLAGS="-O2"
1171 else
1172 CFLAGS=
1173 fi
1174fi
1175
1176echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1177echo "configure:1178: checking how to run the C preprocessor" >&5
1178# On Suns, sometimes $CPP names a directory.
1179if test -n "$CPP" && test -d "$CPP"; then
1180 CPP=
1181fi
1182if test -z "$CPP"; then
1183if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185else
1186 # This must be in double quotes, not single quotes, because CPP may get
1187 # substituted into the Makefile and "${CC-cc}" will confuse make.
1188 CPP="${CC-cc} -E"
1189 # On the NeXT, cc -E runs the code through the compiler's parser,
1190 # not just through cpp.
1191 cat > conftest.$ac_ext <<EOF
1192#line 1193 "configure"
1193#include "confdefs.h"
1194#include <assert.h>
1195Syntax Error
1196EOF
1197ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1198{ (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1199ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1200if test -z "$ac_err"; then
1201 :
1202else
1203 echo "$ac_err" >&5
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 CPP="${CC-cc} -E -traditional-cpp"
1208 cat > conftest.$ac_ext <<EOF
1209#line 1210 "configure"
1210#include "confdefs.h"
1211#include <assert.h>
1212Syntax Error
1213EOF
1214ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1215{ (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1216ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1217if test -z "$ac_err"; then
1218 :
1219else
1220 echo "$ac_err" >&5
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1223 rm -rf conftest*
1224 CPP="${CC-cc} -nologo -E"
1225 cat > conftest.$ac_ext <<EOF
1226#line 1227 "configure"
1227#include "confdefs.h"
1228#include <assert.h>
1229Syntax Error
1230EOF
1231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232{ (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234if test -z "$ac_err"; then
1235 :
1236else
1237 echo "$ac_err" >&5
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1240 rm -rf conftest*
1241 CPP=/lib/cpp
1242fi
1243rm -f conftest*
1244fi
1245rm -f conftest*
1246fi
1247rm -f conftest*
1248 ac_cv_prog_CPP="$CPP"
1249fi
1250 CPP="$ac_cv_prog_CPP"
1251else
1252 ac_cv_prog_CPP="$CPP"
1253fi
1254echo "$ac_t""$CPP" 1>&6
1255
1256
1257CFLAGS=$TMPCFLAGS
1258
1259if test "x$GCC" = "xyes"; then
1260 case " $CFLAGS " in
1261 *[\ \ ]-Wall[\ \ ]*) ;;
1262 *) CFLAGS="$CFLAGS -Wall" ;;
1263 esac
1264
1265 if test "x$enable_debug" = "xyes"; then
1266 DEBUGFLAG="-g"
1267 fi
1268
1269 if test "x$enable_profile" = "xyes"; then
1270 PROFILEFLAG="-pg"
1271 fi
1272
1273 if test -n "$DEBUGFLAG"; then
1274 case " $CFLAGS " in
1275 *[\ \ ]$DEBUGFLAG[\ \ ]*) ;;
1276 *) CFLAGS="$DEBUGFLAG $CFLAGS" ;;
1277 esac
1278 else
1279 case " $CFLAGS " in
1280 *[\ \ ]-O[0-9\ \ ]*) ;;
1281 *) CFLAGS="$CFLAGS -O3" ;;
1282 esac
1283 fi
1284
1285 if test -n "$PROFILEFLAG"; then
1286 case " $CFLAGS " in
1287 *[\ \ ]$PROFILEFLAG[\ \ ]*) ;;
1288 *) CFLAGS="$PROFILEFLAG $CFLAGS" ;;
1289 esac
1290 fi
1291fi
1292
1293# Check whether --enable-shared or --disable-shared was given.
1294if test "${enable_shared+set}" = set; then
1295 enableval="$enable_shared"
1296 p=${PACKAGE-default}
1297case "$enableval" in
1298yes) enable_shared=yes ;;
1299no) enable_shared=no ;;
1300*)
1301 enable_shared=no
1302 # Look at the argument we got. We use all the common list separators.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1304 for pkg in $enableval; do
1305 if test "X$pkg" = "X$p"; then
1306 enable_shared=yes
1307 fi
1308 done
1309 IFS="$ac_save_ifs"
1310 ;;
1311esac
1312else
1313 enable_shared=yes
1314fi
1315
1316# Check whether --enable-static or --disable-static was given.
1317if test "${enable_static+set}" = set; then
1318 enableval="$enable_static"
1319 p=${PACKAGE-default}
1320case "$enableval" in
1321yes) enable_static=yes ;;
1322no) enable_static=no ;;
1323*)
1324 enable_static=no
1325 # Look at the argument we got. We use all the common list separators.
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1327 for pkg in $enableval; do
1328 if test "X$pkg" = "X$p"; then
1329 enable_static=yes
1330 fi
1331 done
1332 IFS="$ac_save_ifs"
1333 ;;
1334esac
1335else
1336 enable_static=yes
1337fi
1338
1339# Check whether --enable-fast-install or --disable-fast-install was given.
1340if test "${enable_fast_install+set}" = set; then
1341 enableval="$enable_fast_install"
1342 p=${PACKAGE-default}
1343case "$enableval" in
1344yes) enable_fast_install=yes ;;
1345no) enable_fast_install=no ;;
1346*)
1347 enable_fast_install=no
1348 # Look at the argument we got. We use all the common list separators.
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1350 for pkg in $enableval; do
1351 if test "X$pkg" = "X$p"; then
1352 enable_fast_install=yes
1353 fi
1354 done
1355 IFS="$ac_save_ifs"
1356 ;;
1357esac
1358else
1359 enable_fast_install=yes
1360fi
1361
1362
1363# Make sure we can run config.sub.
1364if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1365else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1366fi
1367
1368echo $ac_n "checking host system type""... $ac_c" 1>&6
1369echo "configure:1370: checking host system type" >&5
1370
1371host_alias=$host
1372case "$host_alias" in
1373NONE)
1374 case $nonopt in
1375 NONE)
1376 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1377 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1378 fi ;;
1379 *) host_alias=$nonopt ;;
1380 esac ;;
1381esac
1382
1383host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1384host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1385host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1386host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387echo "$ac_t""$host" 1>&6
1388
1389echo $ac_n "checking build system type""... $ac_c" 1>&6
1390echo "configure:1391: checking build system type" >&5
1391
1392build_alias=$build
1393case "$build_alias" in
1394NONE)
1395 case $nonopt in
1396 NONE) build_alias=$host_alias ;;
1397 *) build_alias=$nonopt ;;
1398 esac ;;
1399esac
1400
1401build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1402build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405echo "$ac_t""$build" 1>&6
1406
1407# Extract the first word of "ranlib", so it can be a program name with args.
1408set dummy ranlib; ac_word=$2
1409echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410echo "configure:1411: checking for $ac_word" >&5
1411if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413else
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1416else
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1418 ac_dummy="$PATH"
1419 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_RANLIB="ranlib"
1423 break
1424 fi
1425 done
1426 IFS="$ac_save_ifs"
1427 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1428fi
1429fi
1430RANLIB="$ac_cv_prog_RANLIB"
1431if test -n "$RANLIB"; then
1432 echo "$ac_t""$RANLIB" 1>&6
1433else
1434 echo "$ac_t""no" 1>&6
1435fi
1436
1437# Check whether --with-gnu-ld or --without-gnu-ld was given.
1438if test "${with_gnu_ld+set}" = set; then
1439 withval="$with_gnu_ld"
1440 test "$withval" = no || with_gnu_ld=yes
1441else
1442 with_gnu_ld=no
1443fi
1444
1445ac_prog=ld
1446if test "$ac_cv_prog_gcc" = yes; then
1447 # Check if gcc -print-prog-name=ld gives a path.
1448 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1449echo "configure:1450: checking for ld used by GCC" >&5
1450 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1451 case "$ac_prog" in
1452 # Accept absolute paths.
1453 [\\/]* | [A-Za-z]:[\\/]*)
1454 re_direlt='/[^/][^/]*/\.\./'
1455 # Canonicalize the path of ld
1456 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1457 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1458 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1459 done
1460 test -z "$LD" && LD="$ac_prog"
1461 ;;
1462 "")
1463 # If it fails, then pretend we aren't using GCC.
1464 ac_prog=ld
1465 ;;
1466 *)
1467 # If it is relative, then search for the first ld in PATH.
1468 with_gnu_ld=unknown
1469 ;;
1470 esac
1471elif test "$with_gnu_ld" = yes; then
1472 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1473echo "configure:1474: checking for GNU ld" >&5
1474else
1475 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1476echo "configure:1477: checking for non-GNU ld" >&5
1477fi
1478if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480else
1481 if test -z "$LD"; then
1482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1483 for ac_dir in $PATH; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1486 ac_cv_path_LD="$ac_dir/$ac_prog"
1487 # Check to see if the program is GNU ld. I'd rather use --version,
1488 # but apparently some GNU ld's only accept -v.
1489 # Break only if it was the GNU/non-GNU ld that we prefer.
1490 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1491 test "$with_gnu_ld" != no && break
1492 else
1493 test "$with_gnu_ld" != yes && break
1494 fi
1495 fi
1496 done
1497 IFS="$ac_save_ifs"
1498else
1499 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1500fi
1501fi
1502
1503LD="$ac_cv_path_LD"
1504if test -n "$LD"; then
1505 echo "$ac_t""$LD" 1>&6
1506else
1507 echo "$ac_t""no" 1>&6
1508fi
1509test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1510
1511echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1512echo "configure:1513: checking if the linker ($LD) is GNU ld" >&5
1513if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515else
1516 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1517if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1518 ac_cv_prog_gnu_ld=yes
1519else
1520 ac_cv_prog_gnu_ld=no
1521fi
1522fi
1523
1524echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1525
1526
1527echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1528echo "configure:1529: checking for BSD-compatible nm" >&5
1529if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531else
1532 if test -n "$NM"; then
1533 # Let the user override the test.
1534 ac_cv_path_NM="$NM"
1535else
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1537 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1540 # Check to see if the nm accepts a BSD-compat flag.
1541 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1542 # nm: unknown option "B" ignored
1543 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1544 ac_cv_path_NM="$ac_dir/nm -B"
1545 break
1546 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1547 ac_cv_path_NM="$ac_dir/nm -p"
1548 break
1549 else
1550 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1551 continue # so that we can try to find one that supports BSD flags
1552 fi
1553 fi
1554 done
1555 IFS="$ac_save_ifs"
1556 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1557fi
1558fi
1559
1560NM="$ac_cv_path_NM"
1561echo "$ac_t""$NM" 1>&6
1562
1563
1564echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1565echo "configure:1566: checking whether ln -s works" >&5
1566if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568else
1569 rm -f conftestdata
1570if ln -s X conftestdata 2>/dev/null
1571then
1572 rm -f conftestdata
1573 ac_cv_prog_LN_S="ln -s"
1574else
1575 ac_cv_prog_LN_S=ln
1576fi
1577fi
1578LN_S="$ac_cv_prog_LN_S"
1579if test "$ac_cv_prog_LN_S" = "ln -s"; then
1580 echo "$ac_t""yes" 1>&6
1581else
1582 echo "$ac_t""no" 1>&6
1583fi
1584
1585
1586# Check for any special flags to pass to ltconfig.
1587libtool_flags="--cache-file=$cache_file"
1588test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1589test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1590test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1591test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1592test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1593
1594
1595# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1596if test "${enable_libtool_lock+set}" = set; then
1597 enableval="$enable_libtool_lock"
1598 :
1599fi
1600
1601test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1602test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1603
1604# Some flags need to be propagated to the compiler or linker for good
1605# libtool support.
1606case "$host" in
1607*-*-irix6*)
1608 # Find out which ABI we are using.
1609 echo '#line 1610 "configure"' > conftest.$ac_ext
1610 if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1611 case "`/usr/bin/file conftest.o`" in
1612 *32-bit*)
1613 LD="${LD-ld} -32"
1614 ;;
1615 *N32*)
1616 LD="${LD-ld} -n32"
1617 ;;
1618 *64-bit*)
1619 LD="${LD-ld} -64"
1620 ;;
1621 esac
1622 fi
1623 rm -rf conftest*
1624 ;;
1625
1626*-*-sco3.2v5*)
1627 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1628 SAVE_CFLAGS="$CFLAGS"
1629 CFLAGS="$CFLAGS -belf"
1630 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1631echo "configure:1632: checking whether the C compiler needs -belf" >&5
1632if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1634else
1635
1636 ac_ext=c
1637# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1638ac_cpp='$CPP $CPPFLAGS'
1639ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1640ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1641cross_compiling=$ac_cv_prog_cc_cross
1642
1643 cat > conftest.$ac_ext <<EOF
1644#line 1645 "configure"
1645#include "confdefs.h"
1646
1647int main() {
1648
1649; return 0; }
1650EOF
1651if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1652 rm -rf conftest*
1653 lt_cv_cc_needs_belf=yes
1654else
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 rm -rf conftest*
1658 lt_cv_cc_needs_belf=no
1659fi
1660rm -f conftest*
1661 ac_ext=c
1662# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1663ac_cpp='$CPP $CPPFLAGS'
1664ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1665ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1666cross_compiling=$ac_cv_prog_cc_cross
1667
1668fi
1669
1670echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1671 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1672 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1673 CFLAGS="$SAVE_CFLAGS"
1674 fi
1675 ;;
1676
1677
1678esac
1679
1680
1681# Save cache, so that ltconfig can load it
1682cat > confcache <<\EOF
1683# This file is a shell script that caches the results of configure
1684# tests run on this system so they can be shared between configure
1685# scripts and configure runs. It is not useful on other systems.
1686# If it contains results you don't want to keep, you may remove or edit it.
1687#
1688# By default, configure uses ./config.cache as the cache file,
1689# creating it if it does not exist already. You can give configure
1690# the --cache-file=FILE option to use a different cache file; that is
1691# what configure does when it calls configure scripts in
1692# subdirectories, so they share the cache.
1693# Giving --cache-file=/dev/null disables caching, for debugging configure.
1694# config.status only pays attention to the cache file if you give it the
1695# --recheck option to rerun configure.
1696#
1697EOF
1698# The following way of writing the cache mishandles newlines in values,
1699# but we know of no workaround that is simple, portable, and efficient.
1700# So, don't put newlines in cache variables' values.
1701# Ultrix sh set writes to stderr and can't be redirected directly,
1702# and sets the high bit in the cache file unless we assign to the vars.
1703(set) 2>&1 |
1704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1705 *ac_space=\ *)
1706 # `set' does not quote correctly, so add quotes (double-quote substitution
1707 # turns \\\\ into \\, and sed turns \\ into \).
1708 sed -n \
1709 -e "s/'/'\\\\''/g" \
1710 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1711 ;;
1712 *)
1713 # `set' quotes correctly as required by POSIX, so do not add quotes.
1714 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1715 ;;
1716 esac >> confcache
1717if cmp -s $cache_file confcache; then
1718 :
1719else
1720 if test -w $cache_file; then
1721 echo "updating cache $cache_file"
1722 cat confcache > $cache_file
1723 else
1724 echo "not updating unwritable cache $cache_file"
1725 fi
1726fi
1727rm -f confcache
1728
1729
1730# Actually configure libtool. ac_aux_dir is where install-sh is found.
1731CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1732LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1733LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1734DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1735${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1736$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1737|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1738
1739# Reload cache, that may have been modified by ltconfig
1740if test -r "$cache_file"; then
1741 echo "loading cache $cache_file"
1742 . $cache_file
1743else
1744 echo "creating cache $cache_file"
1745 > $cache_file
1746fi
1747
1748
1749# This can be used to rebuild libtool when needed
1750LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1751
1752# Always use our own libtool.
1753LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1754
1755# Redirect the config.log output again, so that the ltconfig log is not
1756# clobbered by the next message.
1757exec 5>>./config.log
1758
1759echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1760echo "configure:1761: checking for ANSI C header files" >&5
1761if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763else
1764 cat > conftest.$ac_ext <<EOF
1765#line 1766 "configure"
1766#include "confdefs.h"
1767#include <stdlib.h>
1768#include <stdarg.h>
1769#include <string.h>
1770#include <float.h>
1771EOF
1772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1773{ (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1775if test -z "$ac_err"; then
1776 rm -rf conftest*
1777 ac_cv_header_stdc=yes
1778else
1779 echo "$ac_err" >&5
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1782 rm -rf conftest*
1783 ac_cv_header_stdc=no
1784fi
1785rm -f conftest*
1786
1787if test $ac_cv_header_stdc = yes; then
1788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1789cat > conftest.$ac_ext <<EOF
1790#line 1791 "configure"
1791#include "confdefs.h"
1792#include <string.h>
1793EOF
1794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "memchr" >/dev/null 2>&1; then
1796 :
1797else
1798 rm -rf conftest*
1799 ac_cv_header_stdc=no
1800fi
1801rm -f conftest*
1802
1803fi
1804
1805if test $ac_cv_header_stdc = yes; then
1806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1807cat > conftest.$ac_ext <<EOF
1808#line 1809 "configure"
1809#include "confdefs.h"
1810#include <stdlib.h>
1811EOF
1812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1813 egrep "free" >/dev/null 2>&1; then
1814 :
1815else
1816 rm -rf conftest*
1817 ac_cv_header_stdc=no
1818fi
1819rm -f conftest*
1820
1821fi
1822
1823if test $ac_cv_header_stdc = yes; then
1824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1825if test "$cross_compiling" = yes; then
1826 :
1827else
1828 cat > conftest.$ac_ext <<EOF
1829#line 1830 "configure"
1830#include "confdefs.h"
1831#include <ctype.h>
1832#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1833#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1835int main () { int i; for (i = 0; i < 256; i++)
1836if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1837exit (0); }
1838
1839EOF
1840if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1841then
1842 :
1843else
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -fr conftest*
1847 ac_cv_header_stdc=no
1848fi
1849rm -fr conftest*
1850fi
1851
1852fi
1853fi
1854
1855echo "$ac_t""$ac_cv_header_stdc" 1>&6
1856if test $ac_cv_header_stdc = yes; then
1857 cat >> confdefs.h <<\EOF
1858#define STDC_HEADERS 1
1859EOF
1860
1861fi
1862
1863echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1864echo "configure:1865: checking whether ${MAKE-make} sets \${MAKE}" >&5
1865set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1866if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868else
1869 cat > conftestmake <<\EOF
1870all:
1871 @echo 'ac_maketemp="${MAKE}"'
1872EOF
1873# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1874eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1875if test -n "$ac_maketemp"; then
1876 eval ac_cv_prog_make_${ac_make}_set=yes
1877else
1878 eval ac_cv_prog_make_${ac_make}_set=no
1879fi
1880rm -f conftestmake
1881fi
1882if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 SET_MAKE=
1885else
1886 echo "$ac_t""no" 1>&6
1887 SET_MAKE="MAKE=${MAKE-make}"
1888fi
1889
1890
1891for ac_func in gettimeofday
1892do
1893echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1894echo "configure:1895: checking for $ac_func" >&5
1895if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897else
1898 cat > conftest.$ac_ext <<EOF
1899#line 1900 "configure"
1900#include "confdefs.h"
1901/* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $ac_func(); below. */
1903#include <assert.h>
1904/* Override any gcc2 internal prototype to avoid an error. */
1905/* We use char because int might match the return type of a gcc2
1906 builtin and then its argument prototype would still apply. */
1907char $ac_func();
1908
1909int main() {
1910
1911/* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1915choke me
1916#else
1917$ac_func();
1918#endif
1919
1920; return 0; }
1921EOF
1922if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923 rm -rf conftest*
1924 eval "ac_cv_func_$ac_func=yes"
1925else
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 rm -rf conftest*
1929 eval "ac_cv_func_$ac_func=no"
1930fi
1931rm -f conftest*
1932fi
1933
1934if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1937 cat >> confdefs.h <<EOF
1938#define $ac_tr_func 1
1939EOF
1940
1941else
1942 echo "$ac_t""no" 1>&6
1943fi
1944done
1945
1946echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1947echo "configure:1948: checking whether time.h and sys/time.h may both be included" >&5
1948if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950else
1951 cat > conftest.$ac_ext <<EOF
1952#line 1953 "configure"
1953#include "confdefs.h"
1954#include <sys/types.h>
1955#include <sys/time.h>
1956#include <time.h>
1957int main() {
1958struct tm *tp;
1959; return 0; }
1960EOF
1961if { (eval echo configure:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1962 rm -rf conftest*
1963 ac_cv_header_time=yes
1964else
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1967 rm -rf conftest*
1968 ac_cv_header_time=no
1969fi
1970rm -f conftest*
1971fi
1972
1973echo "$ac_t""$ac_cv_header_time" 1>&6
1974if test $ac_cv_header_time = yes; then
1975 cat >> confdefs.h <<\EOF
1976#define TIME_WITH_SYS_TIME 1
1977EOF
1978
1979fi
1980
1981
1982for ac_prog in emacs xemacs
1983do
1984# Extract the first word of "$ac_prog", so it can be a program name with args.
1985set dummy $ac_prog; ac_word=$2
1986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987echo "configure:1988: checking for $ac_word" >&5
1988if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990else
1991 case "$EMACS" in
1992 /*)
1993 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
1994 ;;
1995 ?:/*)
1996 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
1997 ;;
1998 *)
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2000 ac_dummy="$PATH"
2001 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 if test -f $ac_dir/$ac_word; then
2004 ac_cv_path_EMACS="$ac_dir/$ac_word"
2005 break
2006 fi
2007 done
2008 IFS="$ac_save_ifs"
2009 ;;
2010esac
2011fi
2012EMACS="$ac_cv_path_EMACS"
2013if test -n "$EMACS"; then
2014 echo "$ac_t""$EMACS" 1>&6
2015else
2016 echo "$ac_t""no" 1>&6
2017fi
2018
2019test -n "$EMACS" && break
2020done
2021test -n "$EMACS" || EMACS="emacs"
2022
2023
2024top_srcdir_absolute=`cd $srcdir; pwd`
2025
2026
2027# Check whether --with-glib-prefix or --without-glib-prefix was given.
2028if test "${with_glib_prefix+set}" = set; then
2029 withval="$with_glib_prefix"
2030 glib_config_prefix="$withval"
2031else
2032 glib_config_prefix=""
2033fi
2034
2035# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
2036if test "${with_glib_exec_prefix+set}" = set; then
2037 withval="$with_glib_exec_prefix"
2038 glib_config_exec_prefix="$withval"
2039else
2040 glib_config_exec_prefix=""
2041fi
2042
2043# Check whether --enable-glibtest or --disable-glibtest was given.
2044if test "${enable_glibtest+set}" = set; then
2045 enableval="$enable_glibtest"
2046 :
2047else
2048 enable_glibtest=yes
2049fi
2050
2051
2052 if test x$glib_config_exec_prefix != x ; then
2053 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
2054 if test x${GLIB_CONFIG+set} != xset ; then
2055 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
2056 fi
2057 fi
2058 if test x$glib_config_prefix != x ; then
2059 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
2060 if test x${GLIB_CONFIG+set} != xset ; then
2061 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
2062 fi
2063 fi
2064
2065 for module in .
2066 do
2067 case "$module" in
2068 gmodule)
2069 glib_config_args="$glib_config_args gmodule"
2070 ;;
2071 gthread)
2072 glib_config_args="$glib_config_args gthread"
2073 ;;
2074 esac
2075 done
2076
2077 # Extract the first word of "glib-config", so it can be a program name with args.
2078set dummy glib-config; ac_word=$2
2079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080echo "configure:2081: checking for $ac_word" >&5
2081if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083else
2084 case "$GLIB_CONFIG" in
2085 /*)
2086 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
2087 ;;
2088 ?:/*)
2089 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
2090 ;;
2091 *)
2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2093 ac_dummy="$PATH"
2094 for ac_dir in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir=.
2096 if test -f $ac_dir/$ac_word; then
2097 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
2098 break
2099 fi
2100 done
2101 IFS="$ac_save_ifs"
2102 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
2103 ;;
2104esac
2105fi
2106GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
2107if test -n "$GLIB_CONFIG"; then
2108 echo "$ac_t""$GLIB_CONFIG" 1>&6
2109else
2110 echo "$ac_t""no" 1>&6
2111fi
2112
2113 min_glib_version=1.2.8
2114 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
2115echo "configure:2116: checking for GLIB - version >= $min_glib_version" >&5
2116 no_glib=""
2117 if test "$GLIB_CONFIG" = "no" ; then
2118 no_glib=yes
2119 else
2120 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
2121 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
2122 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
2123 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2124 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
2125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2126 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
2127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2128 if test "x$enable_glibtest" = "xyes" ; then
2129 ac_save_CFLAGS="$CFLAGS"
2130 ac_save_LIBS="$LIBS"
2131 CFLAGS="$CFLAGS $GLIB_CFLAGS"
2132 LIBS="$GLIB_LIBS $LIBS"
2133 rm -f conf.glibtest
2134 if test "$cross_compiling" = yes; then
2135 echo $ac_n "cross compiling; assumed OK... $ac_c"
2136else
2137 cat > conftest.$ac_ext <<EOF
2138#line 2139 "configure"
2139#include "confdefs.h"
2140
2141#include <glib.h>
2142#include <stdio.h>
2143#include <stdlib.h>
2144
2145int
2146main ()
2147{
2148 int major, minor, micro;
2149 char *tmp_version;
2150
2151 system ("touch conf.glibtest");
2152
2153 /* HP/UX 9 (%@#!) writes to sscanf strings */
2154 tmp_version = g_strdup("$min_glib_version");
2155 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2156 printf("%s, bad version string\n", "$min_glib_version");
2157 exit(1);
2158 }
2159
2160 if ((glib_major_version != $glib_config_major_version) ||
2161 (glib_minor_version != $glib_config_minor_version) ||
2162 (glib_micro_version != $glib_config_micro_version))
2163 {
2164 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
2165 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
2166 glib_major_version, glib_minor_version, glib_micro_version);
2167 printf ("*** was found! If glib-config was correct, then it is best\n");
2168 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
2169 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2170 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2171 printf("*** required on your system.\n");
2172 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
2173 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
2174 printf("*** before re-running configure\n");
2175 }
2176 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
2177 (glib_minor_version != GLIB_MINOR_VERSION) ||
2178 (glib_micro_version != GLIB_MICRO_VERSION))
2179 {
2180 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
2181 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
2182 printf("*** library (version %d.%d.%d)\n",
2183 glib_major_version, glib_minor_version, glib_micro_version);
2184 }
2185 else
2186 {
2187 if ((glib_major_version > major) ||
2188 ((glib_major_version == major) && (glib_minor_version > minor)) ||
2189 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
2190 {
2191 return 0;
2192 }
2193 else
2194 {
2195 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
2196 glib_major_version, glib_minor_version, glib_micro_version);
2197 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
2198 major, minor, micro);
2199 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
2200 printf("***\n");
2201 printf("*** If you have already installed a sufficiently new version, this error\n");
2202 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
2203 printf("*** being found. The easiest way to fix this is to remove the old version\n");
2204 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
2205 printf("*** correct copy of glib-config. (In this case, you will have to\n");
2206 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2207 printf("*** so that the correct libraries are found at run-time))\n");
2208 }
2209 }
2210 return 1;
2211}
2212
2213EOF
2214if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2215then
2216 :
2217else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -fr conftest*
2221 no_glib=yes
2222fi
2223rm -fr conftest*
2224fi
2225
2226 CFLAGS="$ac_save_CFLAGS"
2227 LIBS="$ac_save_LIBS"
2228 fi
2229 fi
2230 if test "x$no_glib" = x ; then
2231 echo "$ac_t""yes" 1>&6
2232 :
2233 else
2234 echo "$ac_t""no" 1>&6
2235 if test "$GLIB_CONFIG" = "no" ; then
2236 echo "*** The glib-config script installed by GLIB could not be found"
2237 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
2238 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
2239 echo "*** full path to glib-config."
2240 else
2241 if test -f conf.glibtest ; then
2242 :
2243 else
2244 echo "*** Could not run GLIB test program, checking why..."
2245 CFLAGS="$CFLAGS $GLIB_CFLAGS"
2246 LIBS="$LIBS $GLIB_LIBS"
2247 cat > conftest.$ac_ext <<EOF
2248#line 2249 "configure"
2249#include "confdefs.h"
2250
2251#include <glib.h>
2252#include <stdio.h>
2253
2254int main() {
2255 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
2256; return 0; }
2257EOF
2258if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2259 rm -rf conftest*
2260 echo "*** The test program compiled, but did not run. This usually means"
2261 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
2262 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
2263 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2264 echo "*** to the installed location Also, make sure you have run ldconfig if that"
2265 echo "*** is required on your system"
2266 echo "***"
2267 echo "*** If you have an old version installed, it is best to remove it, although"
2268 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2269 echo "***"
2270 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2271 echo "*** came with the system with the command"
2272 echo "***"
2273 echo "*** rpm --erase --nodeps gtk gtk-devel"
2274else
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 rm -rf conftest*
2278 echo "*** The test program failed to compile or link. See the file config.log for the"
2279 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
2280 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
2281 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
2282fi
2283rm -f conftest*
2284 CFLAGS="$ac_save_CFLAGS"
2285 LIBS="$ac_save_LIBS"
2286 fi
2287 fi
2288 GLIB_CFLAGS=""
2289 GLIB_LIBS=""
2290 { echo "configure: error: Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/" 1>&2; exit 1; }
2291 fi
2292
2293
2294 rm -f conf.glibtest
2295
2296
2297echo $ac_n "checking for gzsetparams in -lz""... $ac_c" 1>&6
2298echo "configure:2299: checking for gzsetparams in -lz" >&5
2299ac_lib_var=`echo z'_'gzsetparams | sed 'y%./+-%__p_%'`
2300if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302else
2303 ac_save_LIBS="$LIBS"
2304LIBS="-lz $LIBS"
2305cat > conftest.$ac_ext <<EOF
2306#line 2307 "configure"
2307#include "confdefs.h"
2308/* Override any gcc2 internal prototype to avoid an error. */
2309/* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2311char gzsetparams();
2312
2313int main() {
2314gzsetparams()
2315; return 0; }
2316EOF
2317if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318 rm -rf conftest*
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2320else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 eval "ac_cv_lib_$ac_lib_var=no"
2325fi
2326rm -f conftest*
2327LIBS="$ac_save_LIBS"
2328
2329fi
2330if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
2333echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
2334echo "configure:2335: checking for zlib.h" >&5
2335if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337else
2338 cat > conftest.$ac_ext <<EOF
2339#line 2340 "configure"
2340#include "confdefs.h"
2341#include <zlib.h>
2342EOF
2343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2344{ (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2346if test -z "$ac_err"; then
2347 rm -rf conftest*
2348 eval "ac_cv_header_$ac_safe=yes"
2349else
2350 echo "$ac_err" >&5
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 eval "ac_cv_header_$ac_safe=no"
2355fi
2356rm -f conftest*
2357fi
2358if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 :
2361else
2362 echo "$ac_t""no" 1>&6
2363{ echo "configure: error: ZLIB headers not found" 1>&2; exit 1; }
2364fi
2365
2366else
2367 echo "$ac_t""no" 1>&6
2368{ echo "configure: error: ZLIB library not found" 1>&2; exit 1; }
2369fi
2370
2371
2372trap '' 1 2 15
2373cat > confcache <<\EOF
2374# This file is a shell script that caches the results of configure
2375# tests run on this system so they can be shared between configure
2376# scripts and configure runs. It is not useful on other systems.
2377# If it contains results you don't want to keep, you may remove or edit it.
2378#
2379# By default, configure uses ./config.cache as the cache file,
2380# creating it if it does not exist already. You can give configure
2381# the --cache-file=FILE option to use a different cache file; that is
2382# what configure does when it calls configure scripts in
2383# subdirectories, so they share the cache.
2384# Giving --cache-file=/dev/null disables caching, for debugging configure.
2385# config.status only pays attention to the cache file if you give it the
2386# --recheck option to rerun configure.
2387#
2388EOF
2389# The following way of writing the cache mishandles newlines in values,
2390# but we know of no workaround that is simple, portable, and efficient.
2391# So, don't put newlines in cache variables' values.
2392# Ultrix sh set writes to stderr and can't be redirected directly,
2393# and sets the high bit in the cache file unless we assign to the vars.
2394(set) 2>&1 |
2395 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2396 *ac_space=\ *)
2397 # `set' does not quote correctly, so add quotes (double-quote substitution
2398 # turns \\\\ into \\, and sed turns \\ into \).
2399 sed -n \
2400 -e "s/'/'\\\\''/g" \
2401 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2402 ;;
2403 *)
2404 # `set' quotes correctly as required by POSIX, so do not add quotes.
2405 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2406 ;;
2407 esac >> confcache
2408if cmp -s $cache_file confcache; then
2409 :
2410else
2411 if test -w $cache_file; then
2412 echo "updating cache $cache_file"
2413 cat confcache > $cache_file
2414 else
2415 echo "not updating unwritable cache $cache_file"
2416 fi
2417fi
2418rm -f confcache
2419
2420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2421
2422test "x$prefix" = xNONE && prefix=$ac_default_prefix
2423# Let make expand exec_prefix.
2424test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2425
2426# Any assignment to VPATH causes Sun make to only execute
2427# the first set of double-colon rules, so remove it if not needed.
2428# If there is a colon in the path, we need to keep it.
2429if test "x$srcdir" = x.; then
2430 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2431fi
2432
2433trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2434
2435DEFS=-DHAVE_CONFIG_H
2436
2437# Without the "./", some shells look in PATH for config.status.
2438: ${CONFIG_STATUS=./config.status}
2439
2440echo creating $CONFIG_STATUS
2441rm -f $CONFIG_STATUS
2442cat > $CONFIG_STATUS <<EOF
2443#! /bin/sh
2444# Generated automatically by configure.
2445# Run this file to recreate the current configuration.
2446# This directory was configured as follows,
2447# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2448#
2449# $0 $ac_configure_args
2450#
2451# Compiler output produced by configure, useful for debugging
2452# configure, is in ./config.log if it exists.
2453
2454ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2455for ac_option
2456do
2457 case "\$ac_option" in
2458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2459 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2460 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2461 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2462 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2463 exit 0 ;;
2464 -help | --help | --hel | --he | --h)
2465 echo "\$ac_cs_usage"; exit 0 ;;
2466 *) echo "\$ac_cs_usage"; exit 1 ;;
2467 esac
2468done
2469
2470ac_given_srcdir=$srcdir
2471ac_given_INSTALL="$INSTALL"
2472
2473trap 'rm -fr `echo "Makefile
2474 doc/Makefile
2475 test/Makefile
2476 djgpp/Makefile
2477 xdelta-config
2478 libedsio/Makefile
2479 libedsio/edsio-comp config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2480EOF
2481cat >> $CONFIG_STATUS <<EOF
2482
2483# Protect against being on the right side of a sed subst in config.status.
2484sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2485 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2486$ac_vpsub
2487$extrasub
2488s%@SHELL@%$SHELL%g
2489s%@CFLAGS@%$CFLAGS%g
2490s%@CPPFLAGS@%$CPPFLAGS%g
2491s%@CXXFLAGS@%$CXXFLAGS%g
2492s%@FFLAGS@%$FFLAGS%g
2493s%@DEFS@%$DEFS%g
2494s%@LDFLAGS@%$LDFLAGS%g
2495s%@LIBS@%$LIBS%g
2496s%@exec_prefix@%$exec_prefix%g
2497s%@prefix@%$prefix%g
2498s%@program_transform_name@%$program_transform_name%g
2499s%@bindir@%$bindir%g
2500s%@sbindir@%$sbindir%g
2501s%@libexecdir@%$libexecdir%g
2502s%@datadir@%$datadir%g
2503s%@sysconfdir@%$sysconfdir%g
2504s%@sharedstatedir@%$sharedstatedir%g
2505s%@localstatedir@%$localstatedir%g
2506s%@libdir@%$libdir%g
2507s%@includedir@%$includedir%g
2508s%@oldincludedir@%$oldincludedir%g
2509s%@infodir@%$infodir%g
2510s%@mandir@%$mandir%g
2511s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2512s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2513s%@INSTALL_DATA@%$INSTALL_DATA%g
2514s%@PACKAGE@%$PACKAGE%g
2515s%@VERSION@%$VERSION%g
2516s%@ACLOCAL@%$ACLOCAL%g
2517s%@AUTOCONF@%$AUTOCONF%g
2518s%@AUTOMAKE@%$AUTOMAKE%g
2519s%@AUTOHEADER@%$AUTOHEADER%g
2520s%@MAKEINFO@%$MAKEINFO%g
2521s%@SET_MAKE@%$SET_MAKE%g
2522s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2523s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2524s%@MAINT@%$MAINT%g
2525s%@CC@%$CC%g
2526s%@CPP@%$CPP%g
2527s%@host@%$host%g
2528s%@host_alias@%$host_alias%g
2529s%@host_cpu@%$host_cpu%g
2530s%@host_vendor@%$host_vendor%g
2531s%@host_os@%$host_os%g
2532s%@build@%$build%g
2533s%@build_alias@%$build_alias%g
2534s%@build_cpu@%$build_cpu%g
2535s%@build_vendor@%$build_vendor%g
2536s%@build_os@%$build_os%g
2537s%@RANLIB@%$RANLIB%g
2538s%@LD@%$LD%g
2539s%@NM@%$NM%g
2540s%@LN_S@%$LN_S%g
2541s%@LIBTOOL@%$LIBTOOL%g
2542s%@EMACS@%$EMACS%g
2543s%@top_srcdir_absolute@%$top_srcdir_absolute%g
2544s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2545s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2546s%@GLIB_LIBS@%$GLIB_LIBS%g
2547
2548CEOF
2549EOF
2550
2551cat >> $CONFIG_STATUS <<\EOF
2552
2553# Split the substitutions into bite-sized pieces for seds with
2554# small command number limits, like on Digital OSF/1 and HP-UX.
2555ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2556ac_file=1 # Number of current file.
2557ac_beg=1 # First line for current file.
2558ac_end=$ac_max_sed_cmds # Line after last line for current file.
2559ac_more_lines=:
2560ac_sed_cmds=""
2561while $ac_more_lines; do
2562 if test $ac_beg -gt 1; then
2563 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2564 else
2565 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2566 fi
2567 if test ! -s conftest.s$ac_file; then
2568 ac_more_lines=false
2569 rm -f conftest.s$ac_file
2570 else
2571 if test -z "$ac_sed_cmds"; then
2572 ac_sed_cmds="sed -f conftest.s$ac_file"
2573 else
2574 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2575 fi
2576 ac_file=`expr $ac_file + 1`
2577 ac_beg=$ac_end
2578 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2579 fi
2580done
2581if test -z "$ac_sed_cmds"; then
2582 ac_sed_cmds=cat
2583fi
2584EOF
2585
2586cat >> $CONFIG_STATUS <<EOF
2587
2588CONFIG_FILES=\${CONFIG_FILES-"Makefile
2589 doc/Makefile
2590 test/Makefile
2591 djgpp/Makefile
2592 xdelta-config
2593 libedsio/Makefile
2594 libedsio/edsio-comp"}
2595EOF
2596cat >> $CONFIG_STATUS <<\EOF
2597for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2599 case "$ac_file" in
2600 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2601 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2602 *) ac_file_in="${ac_file}.in" ;;
2603 esac
2604
2605 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2606
2607 # Remove last slash and all that follows it. Not all systems have dirname.
2608 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2609 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2610 # The file is in a subdirectory.
2611 test ! -d "$ac_dir" && mkdir "$ac_dir"
2612 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2613 # A "../" for each directory in $ac_dir_suffix.
2614 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2615 else
2616 ac_dir_suffix= ac_dots=
2617 fi
2618
2619 case "$ac_given_srcdir" in
2620 .) srcdir=.
2621 if test -z "$ac_dots"; then top_srcdir=.
2622 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2623 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2624 *) # Relative path.
2625 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2626 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2627 esac
2628
2629 case "$ac_given_INSTALL" in
2630 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2631 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2632 esac
2633
2634 echo creating "$ac_file"
2635 rm -f "$ac_file"
2636 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2637 case "$ac_file" in
2638 *Makefile*) ac_comsub="1i\\
2639# $configure_input" ;;
2640 *) ac_comsub= ;;
2641 esac
2642
2643 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2644 sed -e "$ac_comsub
2645s%@configure_input@%$configure_input%g
2646s%@srcdir@%$srcdir%g
2647s%@top_srcdir@%$top_srcdir%g
2648s%@INSTALL@%$INSTALL%g
2649" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2650fi; done
2651rm -f conftest.s*
2652
2653# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2654# NAME is the cpp macro being defined and VALUE is the value it is being given.
2655#
2656# ac_d sets the value in "#define NAME VALUE" lines.
2657ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2658ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2659ac_dC='\3'
2660ac_dD='%g'
2661# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2662ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2663ac_uB='\([ ]\)%\1#\2define\3'
2664ac_uC=' '
2665ac_uD='\4%g'
2666# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2667ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2668ac_eB='$%\1#\2define\3'
2669ac_eC=' '
2670ac_eD='%g'
2671
2672if test "${CONFIG_HEADERS+set}" != set; then
2673EOF
2674cat >> $CONFIG_STATUS <<EOF
2675 CONFIG_HEADERS="config.h"
2676EOF
2677cat >> $CONFIG_STATUS <<\EOF
2678fi
2679for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2681 case "$ac_file" in
2682 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2683 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2684 *) ac_file_in="${ac_file}.in" ;;
2685 esac
2686
2687 echo creating $ac_file
2688
2689 rm -f conftest.frag conftest.in conftest.out
2690 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2691 cat $ac_file_inputs > conftest.in
2692
2693EOF
2694
2695# Transform confdefs.h into a sed script conftest.vals that substitutes
2696# the proper values into config.h.in to produce config.h. And first:
2697# Protect against being on the right side of a sed subst in config.status.
2698# Protect against being in an unquoted here document in config.status.
2699rm -f conftest.vals
2700cat > conftest.hdr <<\EOF
2701s/[\\&%]/\\&/g
2702s%[\\$`]%\\&%g
2703s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2704s%ac_d%ac_u%gp
2705s%ac_u%ac_e%gp
2706EOF
2707sed -n -f conftest.hdr confdefs.h > conftest.vals
2708rm -f conftest.hdr
2709
2710# This sed command replaces #undef with comments. This is necessary, for
2711# example, in the case of _POSIX_SOURCE, which is predefined and required
2712# on some systems where configure will not decide to define it.
2713cat >> conftest.vals <<\EOF
2714s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2715EOF
2716
2717# Break up conftest.vals because some shells have a limit on
2718# the size of here documents, and old seds have small limits too.
2719
2720rm -f conftest.tail
2721while :
2722do
2723 ac_lines=`grep -c . conftest.vals`
2724 # grep -c gives empty output for an empty file on some AIX systems.
2725 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2726 # Write a limited-size here document to conftest.frag.
2727 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2728 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2729 echo 'CEOF
2730 sed -f conftest.frag conftest.in > conftest.out
2731 rm -f conftest.in
2732 mv conftest.out conftest.in
2733' >> $CONFIG_STATUS
2734 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2735 rm -f conftest.vals
2736 mv conftest.tail conftest.vals
2737done
2738rm -f conftest.vals
2739
2740cat >> $CONFIG_STATUS <<\EOF
2741 rm -f conftest.frag conftest.h
2742 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2743 cat conftest.in >> conftest.h
2744 rm -f conftest.in
2745 if cmp -s $ac_file conftest.h 2>/dev/null; then
2746 echo "$ac_file is unchanged"
2747 rm -f conftest.h
2748 else
2749 # Remove last slash and all that follows it. Not all systems have dirname.
2750 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2752 # The file is in a subdirectory.
2753 test ! -d "$ac_dir" && mkdir "$ac_dir"
2754 fi
2755 rm -f $ac_file
2756 mv conftest.h $ac_file
2757 fi
2758fi; done
2759
2760EOF
2761cat >> $CONFIG_STATUS <<EOF
2762
2763
2764EOF
2765cat >> $CONFIG_STATUS <<\EOF
2766test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2767chmod +x libedsio/edsio-comp xdelta-config
2768
2769exit 0
2770EOF
2771chmod +x $CONFIG_STATUS
2772rm -fr confdefs* $ac_clean_files
2773test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2774
diff --git a/xdelta1/install-sh b/xdelta1/install-sh
deleted file mode 100755
index 11870f1..0000000
--- a/xdelta1/install-sh
+++ /dev/null
@@ -1,251 +0,0 @@
1#!/bin/sh
2#
3# install - install a program, script, or datafile
4# This comes from X11R5 (mit/util/scripts/install.sh).
5#
6# Copyright 1991 by the Massachusetts Institute of Technology
7#
8# Permission to use, copy, modify, distribute, and sell this software and its
9# documentation for any purpose is hereby granted without fee, provided that
10# the above copyright notice appear in all copies and that both that
11# copyright notice and this permission notice appear in supporting
12# documentation, and that the name of M.I.T. not be used in advertising or
13# publicity pertaining to distribution of the software without specific,
14# written prior permission. M.I.T. makes no representations about the
15# suitability of this software for any purpose. It is provided "as is"
16# without express or implied warranty.
17#
18# Calling this script install-sh is preferred over install.sh, to prevent
19# `make' implicit rules from creating a file called install from it
20# when there is no Makefile.
21#
22# This script is compatible with the BSD install script, but was written
23# from scratch. It can only install one file at a time, a restriction
24# shared with many OS's install programs.
25
26
27# set DOITPROG to echo to test this script
28
29# Don't use :- since 4.3BSD and earlier shells don't like it.
30doit="${DOITPROG-}"
31
32
33# put in absolute paths if you don't have them in your path; or use env. vars.
34
35mvprog="${MVPROG-mv}"
36cpprog="${CPPROG-cp}"
37chmodprog="${CHMODPROG-chmod}"
38chownprog="${CHOWNPROG-chown}"
39chgrpprog="${CHGRPPROG-chgrp}"
40stripprog="${STRIPPROG-strip}"
41rmprog="${RMPROG-rm}"
42mkdirprog="${MKDIRPROG-mkdir}"
43
44transformbasename=""
45transform_arg=""
46instcmd="$mvprog"
47chmodcmd="$chmodprog 0755"
48chowncmd=""
49chgrpcmd=""
50stripcmd=""
51rmcmd="$rmprog -f"
52mvcmd="$mvprog"
53src=""
54dst=""
55dir_arg=""
56
57while [ x"$1" != x ]; do
58 case $1 in
59 -c) instcmd="$cpprog"
60 shift
61 continue;;
62
63 -d) dir_arg=true
64 shift
65 continue;;
66
67 -m) chmodcmd="$chmodprog $2"
68 shift
69 shift
70 continue;;
71
72 -o) chowncmd="$chownprog $2"
73 shift
74 shift
75 continue;;
76
77 -g) chgrpcmd="$chgrpprog $2"
78 shift
79 shift
80 continue;;
81
82 -s) stripcmd="$stripprog"
83 shift
84 continue;;
85
86 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
87 shift
88 continue;;
89
90 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
91 shift
92 continue;;
93
94 *) if [ x"$src" = x ]
95 then
96 src=$1
97 else
98 # this colon is to work around a 386BSD /bin/sh bug
99 :
100 dst=$1
101 fi
102 shift
103 continue;;
104 esac
105done
106
107if [ x"$src" = x ]
108then
109 echo "install: no input file specified"
110 exit 1
111else
112 :
113fi
114
115if [ x"$dir_arg" != x ]; then
116 dst=$src
117 src=""
118
119 if [ -d $dst ]; then
120 instcmd=:
121 chmodcmd=""
122 else
123 instcmd=$mkdirprog
124 fi
125else
126
127# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
128# might cause directories to be created, which would be especially bad
129# if $src (and thus $dsttmp) contains '*'.
130
131 if [ -f "$src" ] || [ -d "$src" ]
132 then
133 :
134 else
135 echo "install: $src does not exist"
136 exit 1
137 fi
138
139 if [ x"$dst" = x ]
140 then
141 echo "install: no destination specified"
142 exit 1
143 else
144 :
145 fi
146
147# If destination is a directory, append the input filename; if your system
148# does not like double slashes in filenames, you may need to add some logic
149
150 if [ -d $dst ]
151 then
152 dst="$dst"/`basename $src`
153 else
154 :
155 fi
156fi
157
158## this sed command emulates the dirname command
159dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
160
161# Make sure that the destination directory exists.
162# this part is taken from Noah Friedman's mkinstalldirs script
163
164# Skip lots of stat calls in the usual case.
165if [ ! -d "$dstdir" ]; then
166defaultIFS='
167 '
168IFS="${IFS-${defaultIFS}}"
169
170oIFS="${IFS}"
171# Some sh's can't handle IFS=/ for some reason.
172IFS='%'
173set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
174IFS="${oIFS}"
175
176pathcomp=''
177
178while [ $# -ne 0 ] ; do
179 pathcomp="${pathcomp}${1}"
180 shift
181
182 if [ ! -d "${pathcomp}" ] ;
183 then
184 $mkdirprog "${pathcomp}"
185 else
186 :
187 fi
188
189 pathcomp="${pathcomp}/"
190done
191fi
192
193if [ x"$dir_arg" != x ]
194then
195 $doit $instcmd $dst &&
196
197 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
198 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
199 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
200 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
201else
202
203# If we're going to rename the final executable, determine the name now.
204
205 if [ x"$transformarg" = x ]
206 then
207 dstfile=`basename $dst`
208 else
209 dstfile=`basename $dst $transformbasename |
210 sed $transformarg`$transformbasename
211 fi
212
213# don't allow the sed command to completely eliminate the filename
214
215 if [ x"$dstfile" = x ]
216 then
217 dstfile=`basename $dst`
218 else
219 :
220 fi
221
222# Make a temp file name in the proper directory.
223
224 dsttmp=$dstdir/#inst.$$#
225
226# Move or copy the file name to the temp name
227
228 $doit $instcmd $src $dsttmp &&
229
230 trap "rm -f ${dsttmp}" 0 &&
231
232# and set any options; do chmod last to preserve setuid bits
233
234# If any of these fail, we abort the whole thing. If we want to
235# ignore errors from any of these, just make sure not to ignore
236# errors from the above "$doit $instcmd $src $dsttmp" command.
237
238 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
239 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
240 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
241 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
242
243# Now rename the file to the real destination.
244
245 $doit $rmcmd -f $dstdir/$dstfile &&
246 $doit $mvcmd $dsttmp $dstdir/$dstfile
247
248fi &&
249
250
251exit 0
diff --git a/xdelta1/libtool b/xdelta1/libtool
deleted file mode 100755
index fcdfa8d..0000000
--- a/xdelta1/libtool
+++ /dev/null
@@ -1,4235 +0,0 @@
1#! /bin/sh
2
3# libtool - Provide generalized library-building support services.
4# Generated automatically by ltconfig (GNU libtool 1.3.3 (1.385.2.181 1999/07/02 15:49:11))
5# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
6#
7# Copyright (C) 1996-1999 Free Software Foundation, Inc.
8# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9#
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful, but
16# WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18# General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30Xsed="sed -e s/^X//"
31
32# The HP-UX ksh and POSIX shell print the target directory to stdout
33# if CDPATH is set.
34if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
35
36### BEGIN LIBTOOL CONFIG
37# Libtool was configured as follows, on host spin:
38#
39# CC="gcc" CFLAGS=" -Wall -O3" CPPFLAGS="" \
40# LD="/usr/i586-pc-linux-gnu/bin/ld" LDFLAGS="" LIBS="" \
41# NM="/usr/bin/nm -B" RANLIB="ranlib" LN_S="ln" \
42# DLLTOOL="" OBJDUMP="" AS="" \
43# ./ltconfig --cache-file=./config.cache --with-gcc --with-gnu-ld --no-verify ./ltmain.sh i686-pc-linux-gnu
44#
45# Compiler and other test output produced by ltconfig, useful for
46# debugging ltconfig, is in ./config.log if it exists.
47
48# The version of ltconfig that generated this script.
49LTCONFIG_VERSION="1.3.3"
50
51# Shell to use when invoking shell scripts.
52SHELL="/bin/sh"
53
54# Whether or not to build shared libraries.
55build_libtool_libs=yes
56
57# Whether or not to build static libraries.
58build_old_libs=yes
59
60# Whether or not to optimize for fast installation.
61fast_install=yes
62
63# The host system.
64host_alias=i686-pc-linux-gnu
65host=i686-pc-linux-gnu
66
67# An echo program that does not interpret backslashes.
68echo="echo"
69
70# The archiver.
71AR="ar"
72
73# The default C compiler.
74CC="gcc"
75
76# The linker used to build libraries.
77LD="/usr/i586-pc-linux-gnu/bin/ld"
78
79# Whether we need hard or soft links.
80LN_S="ln"
81
82# A BSD-compatible nm program.
83NM="/usr/bin/nm -B"
84
85# Used on cygwin: DLL creation program.
86DLLTOOL="dlltool"
87
88# Used on cygwin: object dumper.
89OBJDUMP="objdump"
90
91# Used on cygwin: assembler.
92AS="as"
93
94# The name of the directory that contains temporary libtool files.
95objdir=.libs
96
97# How to create reloadable object files.
98reload_flag=" -r"
99reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
100
101# How to pass a linker flag through the compiler.
102wl="-Wl,"
103
104# Object file suffix (normally "o").
105objext="o"
106
107# Old archive suffix (normally "a").
108libext="a"
109
110# Executable file suffix (normally "").
111exeext=""
112
113# Additional compiler flags for building library objects.
114pic_flag=" -fPIC"
115
116# Does compiler simultaneously support -c and -o options?
117compiler_c_o="yes"
118
119# Can we write directly to a .lo ?
120compiler_o_lo="yes"
121
122# Must we lock files when doing compilation ?
123need_locks="no"
124
125# Do we need the lib prefix for modules?
126need_lib_prefix=no
127
128# Do we need a version for libraries?
129need_version=no
130
131# Whether dlopen is supported.
132dlopen=unknown
133
134# Whether dlopen of programs is supported.
135dlopen_self=unknown
136
137# Whether dlopen of statically linked programs is supported.
138dlopen_self_static=unknown
139
140# Compiler flag to prevent dynamic linking.
141link_static_flag="-static"
142
143# Compiler flag to turn off builtin functions.
144no_builtin_flag=" -fno-builtin"
145
146# Compiler flag to allow reflexive dlopens.
147export_dynamic_flag_spec="\${wl}--export-dynamic"
148
149# Compiler flag to generate shared objects directly from archives.
150whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
151
152# Compiler flag to generate thread-safe objects.
153thread_safe_flag_spec=""
154
155# Library versioning type.
156version_type=linux
157
158# Format of library name prefix.
159libname_spec="lib\$name"
160
161# List of archive names. First name is the real one, the rest are links.
162# The last name is the one that the linker finds with -lNAME.
163library_names_spec="\${libname}\${release}.so\$versuffix \${libname}\${release}.so\$major \$libname.so"
164
165# The coded name of the library, if different from the real name.
166soname_spec="\${libname}\${release}.so\$major"
167
168# Commands used to build and install an old-style archive.
169RANLIB="ranlib"
170old_archive_cmds="\$AR cru \$oldlib\$oldobjs~\$RANLIB \$oldlib"
171old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
172old_postuninstall_cmds=""
173
174# Create an old-style archive from a shared archive.
175old_archive_from_new_cmds=""
176
177# Commands used to build and install a shared archive.
178archive_cmds="\$CC -shared \$libobjs \$deplibs \$linkopts \${wl}-soname \$wl\$soname -o \$lib"
179archive_expsym_cmds="\$CC -shared \$libobjs \$deplibs \$linkopts \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
180postinstall_cmds=""
181postuninstall_cmds=""
182
183# Method to check whether dependent libraries are shared objects.
184deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )"
185
186# Command to use when deplibs_check_method == file_magic.
187file_magic_cmd="/usr/bin/file"
188
189# Flag that allows shared libraries with undefined symbols to be built.
190allow_undefined_flag=""
191
192# Flag that forces no undefined symbols.
193no_undefined_flag=""
194
195# Commands used to finish a libtool library installation in a directory.
196finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
197
198# Same as above, but a single script fragment to be evaled but not shown.
199finish_eval=""
200
201# Take the output of nm and produce a listing of raw symbols and C names.
202global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGISTW]\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2\\3 \\3/p'"
203
204# Transform the output of nm in a proper C declaration
205global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern char \\1;/p'"
206
207# This is the shared library runtime path variable.
208runpath_var=LD_RUN_PATH
209
210# This is the shared library path variable.
211shlibpath_var=LD_LIBRARY_PATH
212
213# Is shlibpath searched before the hard-coded library search path?
214shlibpath_overrides_runpath=no
215
216# How to hardcode a shared library path into an executable.
217hardcode_action=immediate
218
219# Flag to hardcode $libdir into a binary during linking.
220# This must work even if $libdir does not exist.
221hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"
222
223# Whether we need a single -rpath flag with a separated argument.
224hardcode_libdir_separator=""
225
226# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
227# resulting binary.
228hardcode_direct=no
229
230# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
231# resulting binary.
232hardcode_minus_L=no
233
234# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
235# the resulting binary.
236hardcode_shlibpath_var=unsupported
237
238# Compile-time system search path for libraries
239sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
240
241# Run-time system search path for libraries
242sys_lib_dlsearch_path_spec="/lib /usr/lib"
243
244# Fix the shell variable $srcfile for the compiler.
245fix_srcfile_path=""
246
247# Set to yes if exported symbols are required.
248always_export_symbols=no
249
250# The commands to list exported symbols.
251export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | sed 's/.* //' | sort | uniq > \$export_symbols"
252
253# Symbols that should not be listed in the preloaded symbols.
254exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
255
256# Symbols that must always be exported.
257include_expsyms=""
258
259### END LIBTOOL CONFIG
260
261# ltmain.sh - Provide generalized library-building support services.
262# NOTE: Changing this file will not affect anything until you rerun ltconfig.
263#
264# Copyright (C) 1996-1999 Free Software Foundation, Inc.
265# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
266#
267# This program is free software; you can redistribute it and/or modify
268# it under the terms of the GNU General Public License as published by
269# the Free Software Foundation; either version 2 of the License, or
270# (at your option) any later version.
271#
272# This program is distributed in the hope that it will be useful, but
273# WITHOUT ANY WARRANTY; without even the implied warranty of
274# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
275# General Public License for more details.
276#
277# You should have received a copy of the GNU General Public License
278# along with this program; if not, write to the Free Software
279# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
280#
281# As a special exception to the GNU General Public License, if you
282# distribute this file as part of a program that contains a
283# configuration script generated by Autoconf, you may include it under
284# the same distribution terms that you use for the rest of that program.
285
286# Check that we have a working $echo.
287if test "X$1" = X--no-reexec; then
288 # Discard the --no-reexec flag, and continue.
289 shift
290elif test "X$1" = X--fallback-echo; then
291 # Avoid inline document here, it may be left over
292 :
293elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
294 # Yippee, $echo works!
295 :
296else
297 # Restart under the correct shell, and then maybe $echo will work.
298 exec $SHELL "$0" --no-reexec ${1+"$@"}
299fi
300
301if test "X$1" = X--fallback-echo; then
302 # used as fallback echo
303 shift
304 cat <<EOF
305$*
306EOF
307 exit 0
308fi
309
310# The name of this program.
311progname=`$echo "$0" | sed 's%^.*/%%'`
312modename="$progname"
313
314# Constants.
315PROGRAM=ltmain.sh
316PACKAGE=libtool
317VERSION=1.3.3
318TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
319
320default_mode=
321help="Try \`$progname --help' for more information."
322magic="%%%MAGIC variable%%%"
323mkdir="mkdir"
324mv="mv -f"
325rm="rm -f"
326
327# Sed substitution that helps us do robust quoting. It backslashifies
328# metacharacters that are still active within double-quoted strings.
329Xsed='sed -e 1s/^X//'
330sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
331SP2NL='tr \040 \012'
332NL2SP='tr \015\012 \040\040'
333
334# NLS nuisances.
335# Only set LANG and LC_ALL to C if already set.
336# These must not be set unconditionally because not all systems understand
337# e.g. LANG=C (notably SCO).
338# We save the old values to restore during execute mode.
339if test "${LC_ALL+set}" = set; then
340 save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
341fi
342if test "${LANG+set}" = set; then
343 save_LANG="$LANG"; LANG=C; export LANG
344fi
345
346if test "$LTCONFIG_VERSION" != "$VERSION"; then
347 echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
348 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
349 exit 1
350fi
351
352if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
353 echo "$modename: not configured to build any kind of library" 1>&2
354 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
355 exit 1
356fi
357
358# Global variables.
359mode=$default_mode
360nonopt=
361prev=
362prevopt=
363run=
364show="$echo"
365show_help=
366execute_dlfiles=
367lo2o="s/\\.lo\$/.${objext}/"
368o2lo="s/\\.${objext}\$/.lo/"
369
370# Parse our command line options once, thoroughly.
371while test $# -gt 0
372do
373 arg="$1"
374 shift
375
376 case "$arg" in
377 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
378 *) optarg= ;;
379 esac
380
381 # If the previous option needs an argument, assign it.
382 if test -n "$prev"; then
383 case "$prev" in
384 execute_dlfiles)
385 eval "$prev=\"\$$prev \$arg\""
386 ;;
387 *)
388 eval "$prev=\$arg"
389 ;;
390 esac
391
392 prev=
393 prevopt=
394 continue
395 fi
396
397 # Have we seen a non-optional argument yet?
398 case "$arg" in
399 --help)
400 show_help=yes
401 ;;
402
403 --version)
404 echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
405 exit 0
406 ;;
407
408 --config)
409 sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
410 exit 0
411 ;;
412
413 --debug)
414 echo "$progname: enabling shell trace mode"
415 set -x
416 ;;
417
418 --dry-run | -n)
419 run=:
420 ;;
421
422 --features)
423 echo "host: $host"
424 if test "$build_libtool_libs" = yes; then
425 echo "enable shared libraries"
426 else
427 echo "disable shared libraries"
428 fi
429 if test "$build_old_libs" = yes; then
430 echo "enable static libraries"
431 else
432 echo "disable static libraries"
433 fi
434 exit 0
435 ;;
436
437 --finish) mode="finish" ;;
438
439 --mode) prevopt="--mode" prev=mode ;;
440 --mode=*) mode="$optarg" ;;
441
442 --quiet | --silent)
443 show=:
444 ;;
445
446 -dlopen)
447 prevopt="-dlopen"
448 prev=execute_dlfiles
449 ;;
450
451 -*)
452 $echo "$modename: unrecognized option \`$arg'" 1>&2
453 $echo "$help" 1>&2
454 exit 1
455 ;;
456
457 *)
458 nonopt="$arg"
459 break
460 ;;
461 esac
462done
463
464if test -n "$prevopt"; then
465 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
466 $echo "$help" 1>&2
467 exit 1
468fi
469
470if test -z "$show_help"; then
471
472 # Infer the operation mode.
473 if test -z "$mode"; then
474 case "$nonopt" in
475 *cc | *++ | gcc* | *-gcc*)
476 mode=link
477 for arg
478 do
479 case "$arg" in
480 -c)
481 mode=compile
482 break
483 ;;
484 esac
485 done
486 ;;
487 *db | *dbx | *strace | *truss)
488 mode=execute
489 ;;
490 *install*|cp|mv)
491 mode=install
492 ;;
493 *rm)
494 mode=uninstall
495 ;;
496 *)
497 # If we have no mode, but dlfiles were specified, then do execute mode.
498 test -n "$execute_dlfiles" && mode=execute
499
500 # Just use the default operation mode.
501 if test -z "$mode"; then
502 if test -n "$nonopt"; then
503 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
504 else
505 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
506 fi
507 fi
508 ;;
509 esac
510 fi
511
512 # Only execute mode is allowed to have -dlopen flags.
513 if test -n "$execute_dlfiles" && test "$mode" != execute; then
514 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
515 $echo "$help" 1>&2
516 exit 1
517 fi
518
519 # Change the help message to a mode-specific one.
520 generic_help="$help"
521 help="Try \`$modename --help --mode=$mode' for more information."
522
523 # These modes are in order of execution frequency so that they run quickly.
524 case "$mode" in
525 # libtool compile mode
526 compile)
527 modename="$modename: compile"
528 # Get the compilation command and the source file.
529 base_compile=
530 lastarg=
531 srcfile="$nonopt"
532 suppress_output=
533
534 user_target=no
535 for arg
536 do
537 # Accept any command-line options.
538 case "$arg" in
539 -o)
540 if test "$user_target" != "no"; then
541 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
542 exit 1
543 fi
544 user_target=next
545 ;;
546
547 -static)
548 build_old_libs=yes
549 continue
550 ;;
551 esac
552
553 case "$user_target" in
554 next)
555 # The next one is the -o target name
556 user_target=yes
557 continue
558 ;;
559 yes)
560 # We got the output file
561 user_target=set
562 libobj="$arg"
563 continue
564 ;;
565 esac
566
567 # Accept the current argument as the source file.
568 lastarg="$srcfile"
569 srcfile="$arg"
570
571 # Aesthetically quote the previous argument.
572
573 # Backslashify any backslashes, double quotes, and dollar signs.
574 # These are the only characters that are still specially
575 # interpreted inside of double-quoted scrings.
576 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
577
578 # Double-quote args containing other shell metacharacters.
579 # Many Bourne shells cannot handle close brackets correctly in scan
580 # sets, so we specify it separately.
581 case "$lastarg" in
582 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
583 lastarg="\"$lastarg\""
584 ;;
585 esac
586
587 # Add the previous argument to base_compile.
588 if test -z "$base_compile"; then
589 base_compile="$lastarg"
590 else
591 base_compile="$base_compile $lastarg"
592 fi
593 done
594
595 case "$user_target" in
596 set)
597 ;;
598 no)
599 # Get the name of the library object.
600 libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
601 ;;
602 *)
603 $echo "$modename: you must specify a target with \`-o'" 1>&2
604 exit 1
605 ;;
606 esac
607
608 # Recognize several different file suffixes.
609 # If the user specifies -o file.o, it is replaced with file.lo
610 xform='[cCFSfmso]'
611 case "$libobj" in
612 *.ada) xform=ada ;;
613 *.adb) xform=adb ;;
614 *.ads) xform=ads ;;
615 *.asm) xform=asm ;;
616 *.c++) xform=c++ ;;
617 *.cc) xform=cc ;;
618 *.cpp) xform=cpp ;;
619 *.cxx) xform=cxx ;;
620 *.f90) xform=f90 ;;
621 *.for) xform=for ;;
622 esac
623
624 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
625
626 case "$libobj" in
627 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
628 *)
629 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
630 exit 1
631 ;;
632 esac
633
634 if test -z "$base_compile"; then
635 $echo "$modename: you must specify a compilation command" 1>&2
636 $echo "$help" 1>&2
637 exit 1
638 fi
639
640 # Delete any leftover library objects.
641 if test "$build_old_libs" = yes; then
642 removelist="$obj $libobj"
643 else
644 removelist="$libobj"
645 fi
646
647 $run $rm $removelist
648 trap "$run $rm $removelist; exit 1" 1 2 15
649
650 # Calculate the filename of the output object if compiler does
651 # not support -o with -c
652 if test "$compiler_c_o" = no; then
653 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
654 lockfile="$output_obj.lock"
655 removelist="$removelist $output_obj $lockfile"
656 trap "$run $rm $removelist; exit 1" 1 2 15
657 else
658 need_locks=no
659 lockfile=
660 fi
661
662 # Lock this critical section if it is needed
663 # We use this script file to make the link, it avoids creating a new file
664 if test "$need_locks" = yes; then
665 until ln "$0" "$lockfile" 2>/dev/null; do
666 $show "Waiting for $lockfile to be removed"
667 sleep 2
668 done
669 elif test "$need_locks" = warn; then
670 if test -f "$lockfile"; then
671 echo "\
672*** ERROR, $lockfile exists and contains:
673`cat $lockfile 2>/dev/null`
674
675This indicates that another process is trying to use the same
676temporary object file, and libtool could not work around it because
677your compiler does not support \`-c' and \`-o' together. If you
678repeat this compilation, it may succeed, by chance, but you had better
679avoid parallel builds (make -j) in this platform, or get a better
680compiler."
681
682 $run $rm $removelist
683 exit 1
684 fi
685 echo $srcfile > "$lockfile"
686 fi
687
688 if test -n "$fix_srcfile_path"; then
689 eval srcfile=\"$fix_srcfile_path\"
690 fi
691
692 # Only build a PIC object if we are building libtool libraries.
693 if test "$build_libtool_libs" = yes; then
694 # Without this assignment, base_compile gets emptied.
695 fbsd_hideous_sh_bug=$base_compile
696
697 # All platforms use -DPIC, to notify preprocessed assembler code.
698 command="$base_compile $pic_flag -DPIC $srcfile"
699 if test "$build_old_libs" = yes; then
700 lo_libobj="$libobj"
701 dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
702 if test "X$dir" = "X$libobj"; then
703 dir="$objdir"
704 else
705 dir="$dir/$objdir"
706 fi
707 libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
708
709 if test -d "$dir"; then
710 $show "$rm $libobj"
711 $run $rm $libobj
712 else
713 $show "$mkdir $dir"
714 $run $mkdir $dir
715 status=$?
716 if test $status -ne 0 && test ! -d $dir; then
717 exit $status
718 fi
719 fi
720 fi
721 if test "$compiler_o_lo" = yes; then
722 output_obj="$libobj"
723 command="$command -o $output_obj"
724 elif test "$compiler_c_o" = yes; then
725 output_obj="$obj"
726 command="$command -o $output_obj"
727 fi
728
729 $run $rm "$output_obj"
730 $show "$command"
731 if $run eval "$command"; then :
732 else
733 test -n "$output_obj" && $run $rm $removelist
734 exit 1
735 fi
736
737 if test "$need_locks" = warn &&
738 test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
739 echo "\
740*** ERROR, $lockfile contains:
741`cat $lockfile 2>/dev/null`
742
743but it should contain:
744$srcfile
745
746This indicates that another process is trying to use the same
747temporary object file, and libtool could not work around it because
748your compiler does not support \`-c' and \`-o' together. If you
749repeat this compilation, it may succeed, by chance, but you had better
750avoid parallel builds (make -j) in this platform, or get a better
751compiler."
752
753 $run $rm $removelist
754 exit 1
755 fi
756
757 # Just move the object if needed, then go on to compile the next one
758 if test x"$output_obj" != x"$libobj"; then
759 $show "$mv $output_obj $libobj"
760 if $run $mv $output_obj $libobj; then :
761 else
762 error=$?
763 $run $rm $removelist
764 exit $error
765 fi
766 fi
767
768 # If we have no pic_flag, then copy the object into place and finish.
769 if test -z "$pic_flag" && test "$build_old_libs" = yes; then
770 # Rename the .lo from within objdir to obj
771 if test -f $obj; then
772 $show $rm $obj
773 $run $rm $obj
774 fi
775
776 $show "$mv $libobj $obj"
777 if $run $mv $libobj $obj; then :
778 else
779 error=$?
780 $run $rm $removelist
781 exit $error
782 fi
783
784 # Now arrange that obj and lo_libobj become the same file
785 $show "$LN_S $obj $lo_libobj"
786 if $run $LN_S $obj $lo_libobj; then
787 exit 0
788 else
789 error=$?
790 $run $rm $removelist
791 exit $error
792 fi
793 fi
794
795 # Allow error messages only from the first compilation.
796 suppress_output=' >/dev/null 2>&1'
797 fi
798
799 # Only build a position-dependent object if we build old libraries.
800 if test "$build_old_libs" = yes; then
801 command="$base_compile $srcfile"
802 if test "$compiler_c_o" = yes; then
803 command="$command -o $obj"
804 output_obj="$obj"
805 fi
806
807 # Suppress compiler output if we already did a PIC compilation.
808 command="$command$suppress_output"
809 $run $rm "$output_obj"
810 $show "$command"
811 if $run eval "$command"; then :
812 else
813 $run $rm $removelist
814 exit 1
815 fi
816
817 if test "$need_locks" = warn &&
818 test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
819 echo "\
820*** ERROR, $lockfile contains:
821`cat $lockfile 2>/dev/null`
822
823but it should contain:
824$srcfile
825
826This indicates that another process is trying to use the same
827temporary object file, and libtool could not work around it because
828your compiler does not support \`-c' and \`-o' together. If you
829repeat this compilation, it may succeed, by chance, but you had better
830avoid parallel builds (make -j) in this platform, or get a better
831compiler."
832
833 $run $rm $removelist
834 exit 1
835 fi
836
837 # Just move the object if needed
838 if test x"$output_obj" != x"$obj"; then
839 $show "$mv $output_obj $obj"
840 if $run $mv $output_obj $obj; then :
841 else
842 error=$?
843 $run $rm $removelist
844 exit $error
845 fi
846 fi
847
848 # Create an invalid libtool object if no PIC, so that we do not
849 # accidentally link it into a program.
850 if test "$build_libtool_libs" != yes; then
851 $show "echo timestamp > $libobj"
852 $run eval "echo timestamp > \$libobj" || exit $?
853 else
854 # Move the .lo from within objdir
855 $show "$mv $libobj $lo_libobj"
856 if $run $mv $libobj $lo_libobj; then :
857 else
858 error=$?
859 $run $rm $removelist
860 exit $error
861 fi
862 fi
863 fi
864
865 # Unlock the critical section if it was locked
866 if test "$need_locks" != no; then
867 $rm "$lockfile"
868 fi
869
870 exit 0
871 ;;
872
873 # libtool link mode
874 link)
875 modename="$modename: link"
876 C_compiler="$CC" # save it, to compile generated C sources
877 CC="$nonopt"
878 case "$host" in
879 *-*-cygwin* | *-*-mingw* | *-*-os2*)
880 # It is impossible to link a dll without this setting, and
881 # we shouldn't force the makefile maintainer to figure out
882 # which system we are compiling for in order to pass an extra
883 # flag for every libtool invokation.
884 # allow_undefined=no
885
886 # FIXME: Unfortunately, there are problems with the above when trying
887 # to make a dll which has undefined symbols, in which case not
888 # even a static library is built. For now, we need to specify
889 # -no-undefined on the libtool link line when we can be certain
890 # that all symbols are satisfied, otherwise we get a static library.
891 allow_undefined=yes
892
893 # This is a source program that is used to create dlls on Windows
894 # Don't remove nor modify the starting and closing comments
895# /* ltdll.c starts here */
896# #define WIN32_LEAN_AND_MEAN
897# #include <windows.h>
898# #undef WIN32_LEAN_AND_MEAN
899# #include <stdio.h>
900#
901# #ifndef __CYGWIN__
902# # ifdef __CYGWIN32__
903# # define __CYGWIN__ __CYGWIN32__
904# # endif
905# #endif
906#
907# #ifdef __cplusplus
908# extern "C" {
909# #endif
910# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
911# #ifdef __cplusplus
912# }
913# #endif
914#
915# #ifdef __CYGWIN__
916# #include <cygwin/cygwin_dll.h>
917# DECLARE_CYGWIN_DLL( DllMain );
918# #endif
919# HINSTANCE __hDllInstance_base;
920#
921# BOOL APIENTRY
922# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
923# {
924# __hDllInstance_base = hInst;
925# return TRUE;
926# }
927# /* ltdll.c ends here */
928 # This is a source program that is used to create import libraries
929 # on Windows for dlls which lack them. Don't remove nor modify the
930 # starting and closing comments
931# /* impgen.c starts here */
932# /* Copyright (C) 1999 Free Software Foundation, Inc.
933#
934# This file is part of GNU libtool.
935#
936# This program is free software; you can redistribute it and/or modify
937# it under the terms of the GNU General Public License as published by
938# the Free Software Foundation; either version 2 of the License, or
939# (at your option) any later version.
940#
941# This program is distributed in the hope that it will be useful,
942# but WITHOUT ANY WARRANTY; without even the implied warranty of
943# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
944# GNU General Public License for more details.
945#
946# You should have received a copy of the GNU General Public License
947# along with this program; if not, write to the Free Software
948# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
949# */
950#
951# #include <stdio.h> /* for printf() */
952# #include <unistd.h> /* for open(), lseek(), read() */
953# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
954# #include <string.h> /* for strdup() */
955#
956# static unsigned int
957# pe_get16 (fd, offset)
958# int fd;
959# int offset;
960# {
961# unsigned char b[2];
962# lseek (fd, offset, SEEK_SET);
963# read (fd, b, 2);
964# return b[0] + (b[1]<<8);
965# }
966#
967# static unsigned int
968# pe_get32 (fd, offset)
969# int fd;
970# int offset;
971# {
972# unsigned char b[4];
973# lseek (fd, offset, SEEK_SET);
974# read (fd, b, 4);
975# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
976# }
977#
978# static unsigned int
979# pe_as32 (ptr)
980# void *ptr;
981# {
982# unsigned char *b = ptr;
983# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
984# }
985#
986# int
987# main (argc, argv)
988# int argc;
989# char *argv[];
990# {
991# int dll;
992# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
993# unsigned long export_rva, export_size, nsections, secptr, expptr;
994# unsigned long name_rvas, nexp;
995# unsigned char *expdata, *erva;
996# char *filename, *dll_name;
997#
998# filename = argv[1];
999#
1000# dll = open(filename, O_RDONLY|O_BINARY);
1001# if (!dll)
1002# return 1;
1003#
1004# dll_name = filename;
1005#
1006# for (i=0; filename[i]; i++)
1007# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
1008# dll_name = filename + i +1;
1009#
1010# pe_header_offset = pe_get32 (dll, 0x3c);
1011# opthdr_ofs = pe_header_offset + 4 + 20;
1012# num_entries = pe_get32 (dll, opthdr_ofs + 92);
1013#
1014# if (num_entries < 1) /* no exports */
1015# return 1;
1016#
1017# export_rva = pe_get32 (dll, opthdr_ofs + 96);
1018# export_size = pe_get32 (dll, opthdr_ofs + 100);
1019# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
1020# secptr = (pe_header_offset + 4 + 20 +
1021# pe_get16 (dll, pe_header_offset + 4 + 16));
1022#
1023# expptr = 0;
1024# for (i = 0; i < nsections; i++)
1025# {
1026# char sname[8];
1027# unsigned long secptr1 = secptr + 40 * i;
1028# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
1029# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
1030# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
1031# lseek(dll, secptr1, SEEK_SET);
1032# read(dll, sname, 8);
1033# if (vaddr <= export_rva && vaddr+vsize > export_rva)
1034# {
1035# expptr = fptr + (export_rva - vaddr);
1036# if (export_rva + export_size > vaddr + vsize)
1037# export_size = vsize - (export_rva - vaddr);
1038# break;
1039# }
1040# }
1041#
1042# expdata = (unsigned char*)malloc(export_size);
1043# lseek (dll, expptr, SEEK_SET);
1044# read (dll, expdata, export_size);
1045# erva = expdata - export_rva;
1046#
1047# nexp = pe_as32 (expdata+24);
1048# name_rvas = pe_as32 (expdata+32);
1049#
1050# printf ("EXPORTS\n");
1051# for (i = 0; i<nexp; i++)
1052# {
1053# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
1054# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
1055# }
1056#
1057# return 0;
1058# }
1059# /* impgen.c ends here */
1060 ;;
1061 *)
1062 allow_undefined=yes
1063 ;;
1064 esac
1065 compile_command="$CC"
1066 finalize_command="$CC"
1067
1068 compile_rpath=
1069 finalize_rpath=
1070 compile_shlibpath=
1071 finalize_shlibpath=
1072 convenience=
1073 old_convenience=
1074 deplibs=
1075 linkopts=
1076
1077 if test -n "$shlibpath_var"; then
1078 # get the directories listed in $shlibpath_var
1079 eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
1080 else
1081 lib_search_path=
1082 fi
1083 # now prepend the system-specific ones
1084 eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
1085 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
1086
1087 avoid_version=no
1088 dlfiles=
1089 dlprefiles=
1090 dlself=no
1091 export_dynamic=no
1092 export_symbols=
1093 export_symbols_regex=
1094 generated=
1095 libobjs=
1096 link_against_libtool_libs=
1097 ltlibs=
1098 module=no
1099 objs=
1100 prefer_static_libs=no
1101 preload=no
1102 prev=
1103 prevarg=
1104 release=
1105 rpath=
1106 xrpath=
1107 perm_rpath=
1108 temp_rpath=
1109 thread_safe=no
1110 vinfo=
1111
1112 # We need to know -static, to get the right output filenames.
1113 for arg
1114 do
1115 case "$arg" in
1116 -all-static | -static)
1117 if test "X$arg" = "X-all-static"; then
1118 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1119 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1120 fi
1121 if test -n "$link_static_flag"; then
1122 dlopen_self=$dlopen_self_static
1123 fi
1124 else
1125 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1126 dlopen_self=$dlopen_self_static
1127 fi
1128 fi
1129 build_libtool_libs=no
1130 build_old_libs=yes
1131 prefer_static_libs=yes
1132 break
1133 ;;
1134 esac
1135 done
1136
1137 # See if our shared archives depend on static archives.
1138 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1139
1140 # Go through the arguments, transforming them on the way.
1141 while test $# -gt 0; do
1142 arg="$1"
1143 shift
1144
1145 # If the previous option needs an argument, assign it.
1146 if test -n "$prev"; then
1147 case "$prev" in
1148 output)
1149 compile_command="$compile_command @OUTPUT@"
1150 finalize_command="$finalize_command @OUTPUT@"
1151 ;;
1152 esac
1153
1154 case "$prev" in
1155 dlfiles|dlprefiles)
1156 if test "$preload" = no; then
1157 # Add the symbol object into the linking commands.
1158 compile_command="$compile_command @SYMFILE@"
1159 finalize_command="$finalize_command @SYMFILE@"
1160 preload=yes
1161 fi
1162 case "$arg" in
1163 *.la | *.lo) ;; # We handle these cases below.
1164 force)
1165 if test "$dlself" = no; then
1166 dlself=needless
1167 export_dynamic=yes
1168 fi
1169 prev=
1170 continue
1171 ;;
1172 self)
1173 if test "$prev" = dlprefiles; then
1174 dlself=yes
1175 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1176 dlself=yes
1177 else
1178 dlself=needless
1179 export_dynamic=yes
1180 fi
1181 prev=
1182 continue
1183 ;;
1184 *)
1185 if test "$prev" = dlfiles; then
1186 dlfiles="$dlfiles $arg"
1187 else
1188 dlprefiles="$dlprefiles $arg"
1189 fi
1190 prev=
1191 ;;
1192 esac
1193 ;;
1194 expsyms)
1195 export_symbols="$arg"
1196 if test ! -f "$arg"; then
1197 $echo "$modename: symbol file \`$arg' does not exist"
1198 exit 1
1199 fi
1200 prev=
1201 continue
1202 ;;
1203 expsyms_regex)
1204 export_symbols_regex="$arg"
1205 prev=
1206 continue
1207 ;;
1208 release)
1209 release="-$arg"
1210 prev=
1211 continue
1212 ;;
1213 rpath | xrpath)
1214 # We need an absolute path.
1215 case "$arg" in
1216 [\\/]* | [A-Za-z]:[\\/]*) ;;
1217 *)
1218 $echo "$modename: only absolute run-paths are allowed" 1>&2
1219 exit 1
1220 ;;
1221 esac
1222 if test "$prev" = rpath; then
1223 case "$rpath " in
1224 *" $arg "*) ;;
1225 *) rpath="$rpath $arg" ;;
1226 esac
1227 else
1228 case "$xrpath " in
1229 *" $arg "*) ;;
1230 *) xrpath="$xrpath $arg" ;;
1231 esac
1232 fi
1233 prev=
1234 continue
1235 ;;
1236 *)
1237 eval "$prev=\"\$arg\""
1238 prev=
1239 continue
1240 ;;
1241 esac
1242 fi
1243
1244 prevarg="$arg"
1245
1246 case "$arg" in
1247 -all-static)
1248 if test -n "$link_static_flag"; then
1249 compile_command="$compile_command $link_static_flag"
1250 finalize_command="$finalize_command $link_static_flag"
1251 fi
1252 continue
1253 ;;
1254
1255 -allow-undefined)
1256 # FIXME: remove this flag sometime in the future.
1257 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1258 continue
1259 ;;
1260
1261 -avoid-version)
1262 avoid_version=yes
1263 continue
1264 ;;
1265
1266 -dlopen)
1267 prev=dlfiles
1268 continue
1269 ;;
1270
1271 -dlpreopen)
1272 prev=dlprefiles
1273 continue
1274 ;;
1275
1276 -export-dynamic)
1277 export_dynamic=yes
1278 continue
1279 ;;
1280
1281 -export-symbols | -export-symbols-regex)
1282 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1283 $echo "$modename: not more than one -exported-symbols argument allowed"
1284 exit 1
1285 fi
1286 if test "X$arg" = "X-export-symbols"; then
1287 prev=expsyms
1288 else
1289 prev=expsyms_regex
1290 fi
1291 continue
1292 ;;
1293
1294 -L*)
1295 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1296 # We need an absolute path.
1297 case "$dir" in
1298 [\\/]* | [A-Za-z]:[\\/]*) ;;
1299 *)
1300 absdir=`cd "$dir" && pwd`
1301 if test -z "$absdir"; then
1302 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
1303 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
1304 absdir="$dir"
1305 fi
1306 dir="$absdir"
1307 ;;
1308 esac
1309 case " $deplibs " in
1310 *" $arg "*) ;;
1311 *) deplibs="$deplibs $arg";;
1312 esac
1313 case " $lib_search_path " in
1314 *" $dir "*) ;;
1315 *) lib_search_path="$lib_search_path $dir";;
1316 esac
1317 case "$host" in
1318 *-*-cygwin* | *-*-mingw* | *-*-os2*)
1319 dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
1320 case ":$dllsearchpath:" in
1321 ::) dllsearchpath="$dllsearchdir";;
1322 *":$dllsearchdir:"*) ;;
1323 *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
1324 esac
1325 ;;
1326 esac
1327 ;;
1328
1329 -l*)
1330 if test "$arg" = "-lc"; then
1331 case "$host" in
1332 *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
1333 # These systems don't actually have c library (as such)
1334 continue
1335 ;;
1336 esac
1337 elif test "$arg" = "-lm"; then
1338 case "$host" in
1339 *-*-cygwin* | *-*-beos*)
1340 # These systems don't actually have math library (as such)
1341 continue
1342 ;;
1343 esac
1344 fi
1345 deplibs="$deplibs $arg"
1346 ;;
1347
1348 -module)
1349 module=yes
1350 continue
1351 ;;
1352
1353 -no-undefined)
1354 allow_undefined=no
1355 continue
1356 ;;
1357
1358 -o) prev=output ;;
1359
1360 -release)
1361 prev=release
1362 continue
1363 ;;
1364
1365 -rpath)
1366 prev=rpath
1367 continue
1368 ;;
1369
1370 -R)
1371 prev=xrpath
1372 continue
1373 ;;
1374
1375 -R*)
1376 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1377 # We need an absolute path.
1378 case "$dir" in
1379 [\\/]* | [A-Za-z]:[\\/]*) ;;
1380 *)
1381 $echo "$modename: only absolute run-paths are allowed" 1>&2
1382 exit 1
1383 ;;
1384 esac
1385 case "$xrpath " in
1386 *" $dir "*) ;;
1387 *) xrpath="$xrpath $dir" ;;
1388 esac
1389 continue
1390 ;;
1391
1392 -static)
1393 # If we have no pic_flag, then this is the same as -all-static.
1394 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1395 compile_command="$compile_command $link_static_flag"
1396 finalize_command="$finalize_command $link_static_flag"
1397 fi
1398 continue
1399 ;;
1400
1401 -thread-safe)
1402 thread_safe=yes
1403 continue
1404 ;;
1405
1406 -version-info)
1407 prev=vinfo
1408 continue
1409 ;;
1410
1411 # Some other compiler flag.
1412 -* | +*)
1413 # Unknown arguments in both finalize_command and compile_command need
1414 # to be aesthetically quoted because they are evaled later.
1415 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1416 case "$arg" in
1417 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
1418 arg="\"$arg\""
1419 ;;
1420 esac
1421 ;;
1422
1423 *.o | *.obj | *.a | *.lib)
1424 # A standard object.
1425 objs="$objs $arg"
1426 ;;
1427
1428 *.lo)
1429 # A library object.
1430 if test "$prev" = dlfiles; then
1431 dlfiles="$dlfiles $arg"
1432 if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
1433 prev=
1434 continue
1435 else
1436 # If libtool objects are unsupported, then we need to preload.
1437 prev=dlprefiles
1438 fi
1439 fi
1440
1441 if test "$prev" = dlprefiles; then
1442 # Preload the old-style object.
1443 dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
1444 prev=
1445 fi
1446 libobjs="$libobjs $arg"
1447 ;;
1448
1449 *.la)
1450 # A libtool-controlled library.
1451
1452 dlname=
1453 libdir=
1454 library_names=
1455 old_library=
1456
1457 # Check to see that this really is a libtool archive.
1458 if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
1459 else
1460 $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
1461 exit 1
1462 fi
1463
1464 # If the library was installed with an old release of libtool,
1465 # it will not redefine variable installed.
1466 installed=yes
1467
1468 # Read the .la file
1469 # If there is no directory component, then add one.
1470 case "$arg" in
1471 */* | *\\*) . $arg ;;
1472 *) . ./$arg ;;
1473 esac
1474
1475 # Get the name of the library we link against.
1476 linklib=
1477 for l in $old_library $library_names; do
1478 linklib="$l"
1479 done
1480
1481 if test -z "$linklib"; then
1482 $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
1483 exit 1
1484 fi
1485
1486 # Find the relevant object directory and library name.
1487 name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
1488
1489 if test "X$installed" = Xyes; then
1490 dir="$libdir"
1491 else
1492 dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1493 if test "X$dir" = "X$arg"; then
1494 dir="$objdir"
1495 else
1496 dir="$dir/$objdir"
1497 fi
1498 fi
1499
1500 if test -n "$dependency_libs"; then
1501 # Extract -R and -L from dependency_libs
1502 temp_deplibs=
1503 for deplib in $dependency_libs; do
1504 case "$deplib" in
1505 -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
1506 case " $rpath $xrpath " in
1507 *" $temp_xrpath "*) ;;
1508 *) xrpath="$xrpath $temp_xrpath";;
1509 esac;;
1510 -L*) case "$compile_command $temp_deplibs " in
1511 *" $deplib "*) ;;
1512 *) temp_deplibs="$temp_deplibs $deplib";;
1513 esac
1514 temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1515 case " $lib_search_path " in
1516 *" $temp_dir "*) ;;
1517 *) lib_search_path="$lib_search_path $temp_dir";;
1518 esac
1519 ;;
1520 *) temp_deplibs="$temp_deplibs $deplib";;
1521 esac
1522 done
1523 dependency_libs="$temp_deplibs"
1524 fi
1525
1526 if test -z "$libdir"; then
1527 # It is a libtool convenience library, so add in its objects.
1528 convenience="$convenience $dir/$old_library"
1529 old_convenience="$old_convenience $dir/$old_library"
1530 deplibs="$deplibs$dependency_libs"
1531 compile_command="$compile_command $dir/$old_library$dependency_libs"
1532 finalize_command="$finalize_command $dir/$old_library$dependency_libs"
1533 continue
1534 fi
1535
1536 # This library was specified with -dlopen.
1537 if test "$prev" = dlfiles; then
1538 dlfiles="$dlfiles $arg"
1539 if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
1540 # If there is no dlname, no dlopen support or we're linking statically,
1541 # we need to preload.
1542 prev=dlprefiles
1543 else
1544 # We should not create a dependency on this library, but we
1545 # may need any libraries it requires.
1546 compile_command="$compile_command$dependency_libs"
1547 finalize_command="$finalize_command$dependency_libs"
1548 prev=
1549 continue
1550 fi
1551 fi
1552
1553 # The library was specified with -dlpreopen.
1554 if test "$prev" = dlprefiles; then
1555 # Prefer using a static library (so that no silly _DYNAMIC symbols
1556 # are required to link).
1557 if test -n "$old_library"; then
1558 dlprefiles="$dlprefiles $dir/$old_library"
1559 else
1560 dlprefiles="$dlprefiles $dir/$linklib"
1561 fi
1562 prev=
1563 fi
1564
1565 if test -n "$library_names" &&
1566 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
1567 link_against_libtool_libs="$link_against_libtool_libs $arg"
1568 if test -n "$shlibpath_var"; then
1569 # Make sure the rpath contains only unique directories.
1570 case "$temp_rpath " in
1571 *" $dir "*) ;;
1572 *) temp_rpath="$temp_rpath $dir" ;;
1573 esac
1574 fi
1575
1576 # We need an absolute path.
1577 case "$dir" in
1578 [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
1579 *)
1580 absdir=`cd "$dir" && pwd`
1581 if test -z "$absdir"; then
1582 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
1583 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
1584 absdir="$dir"
1585 fi
1586 ;;
1587 esac
1588
1589 # This is the magic to use -rpath.
1590 # Skip directories that are in the system default run-time
1591 # search path, unless they have been requested with -R.
1592 case " $sys_lib_dlsearch_path " in
1593 *" $absdir "*) ;;
1594 *)
1595 case "$compile_rpath " in
1596 *" $absdir "*) ;;
1597 *) compile_rpath="$compile_rpath $absdir"
1598 esac
1599 ;;
1600 esac
1601
1602 case " $sys_lib_dlsearch_path " in
1603 *" $libdir "*) ;;
1604 *)
1605 case "$finalize_rpath " in
1606 *" $libdir "*) ;;
1607 *) finalize_rpath="$finalize_rpath $libdir"
1608 esac
1609 ;;
1610 esac
1611
1612 lib_linked=yes
1613 case "$hardcode_action" in
1614 immediate | unsupported)
1615 if test "$hardcode_direct" = no; then
1616 compile_command="$compile_command $dir/$linklib"
1617 deplibs="$deplibs $dir/$linklib"
1618 case "$host" in
1619 *-*-cygwin* | *-*-mingw* | *-*-os2*)
1620 dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
1621 if test -n "$dllsearchpath"; then
1622 dllsearchpath="$dllsearchpath:$dllsearchdir"
1623 else
1624 dllsearchpath="$dllsearchdir"
1625 fi
1626 ;;
1627 esac
1628 elif test "$hardcode_minus_L" = no; then
1629 case "$host" in
1630 *-*-sunos*)
1631 compile_shlibpath="$compile_shlibpath$dir:"
1632 ;;
1633 esac
1634 case "$compile_command " in
1635 *" -L$dir "*) ;;
1636 *) compile_command="$compile_command -L$dir";;
1637 esac
1638 compile_command="$compile_command -l$name"
1639 deplibs="$deplibs -L$dir -l$name"
1640 elif test "$hardcode_shlibpath_var" = no; then
1641 case ":$compile_shlibpath:" in
1642 *":$dir:"*) ;;
1643 *) compile_shlibpath="$compile_shlibpath$dir:";;
1644 esac
1645 compile_command="$compile_command -l$name"
1646 deplibs="$deplibs -l$name"
1647 else
1648 lib_linked=no
1649 fi
1650 ;;
1651
1652 relink)
1653 if test "$hardcode_direct" = yes; then
1654 compile_command="$compile_command $absdir/$linklib"
1655 deplibs="$deplibs $absdir/$linklib"
1656 elif test "$hardcode_minus_L" = yes; then
1657 case "$compile_command " in
1658 *" -L$absdir "*) ;;
1659 *) compile_command="$compile_command -L$absdir";;
1660 esac
1661 compile_command="$compile_command -l$name"
1662 deplibs="$deplibs -L$absdir -l$name"
1663 elif test "$hardcode_shlibpath_var" = yes; then
1664 case ":$compile_shlibpath:" in
1665 *":$absdir:"*) ;;
1666 *) compile_shlibpath="$compile_shlibpath$absdir:";;
1667 esac
1668 compile_command="$compile_command -l$name"
1669 deplibs="$deplibs -l$name"
1670 else
1671 lib_linked=no
1672 fi
1673 ;;
1674
1675 *)
1676 lib_linked=no
1677 ;;
1678 esac
1679
1680 if test "$lib_linked" != yes; then
1681 $echo "$modename: configuration error: unsupported hardcode properties"
1682 exit 1
1683 fi
1684
1685 # Finalize command for both is simple: just hardcode it.
1686 if test "$hardcode_direct" = yes; then
1687 finalize_command="$finalize_command $libdir/$linklib"
1688 elif test "$hardcode_minus_L" = yes; then
1689 case "$finalize_command " in
1690 *" -L$libdir "*) ;;
1691 *) finalize_command="$finalize_command -L$libdir";;
1692 esac
1693 finalize_command="$finalize_command -l$name"
1694 elif test "$hardcode_shlibpath_var" = yes; then
1695 case ":$finalize_shlibpath:" in
1696 *":$libdir:"*) ;;
1697 *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
1698 esac
1699 finalize_command="$finalize_command -l$name"
1700 else
1701 # We cannot seem to hardcode it, guess we'll fake it.
1702 case "$finalize_command " in
1703 *" -L$dir "*) ;;
1704 *) finalize_command="$finalize_command -L$libdir";;
1705 esac
1706 finalize_command="$finalize_command -l$name"
1707 fi
1708 else
1709 # Transform directly to old archives if we don't build new libraries.
1710 if test -n "$pic_flag" && test -z "$old_library"; then
1711 $echo "$modename: cannot find static library for \`$arg'" 1>&2
1712 exit 1
1713 fi
1714
1715 # Here we assume that one of hardcode_direct or hardcode_minus_L
1716 # is not unsupported. This is valid on all known static and
1717 # shared platforms.
1718 if test "$hardcode_direct" != unsupported; then
1719 test -n "$old_library" && linklib="$old_library"
1720 compile_command="$compile_command $dir/$linklib"
1721 finalize_command="$finalize_command $dir/$linklib"
1722 else
1723 case "$compile_command " in
1724 *" -L$dir "*) ;;
1725 *) compile_command="$compile_command -L$dir";;
1726 esac
1727 compile_command="$compile_command -l$name"
1728 case "$finalize_command " in
1729 *" -L$dir "*) ;;
1730 *) finalize_command="$finalize_command -L$dir";;
1731 esac
1732 finalize_command="$finalize_command -l$name"
1733 fi
1734 fi
1735
1736 # Add in any libraries that this one depends upon.
1737 compile_command="$compile_command$dependency_libs"
1738 finalize_command="$finalize_command$dependency_libs"
1739 continue
1740 ;;
1741
1742 # Some other compiler argument.
1743 *)
1744 # Unknown arguments in both finalize_command and compile_command need
1745 # to be aesthetically quoted because they are evaled later.
1746 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1747 case "$arg" in
1748 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
1749 arg="\"$arg\""
1750 ;;
1751 esac
1752 ;;
1753 esac
1754
1755 # Now actually substitute the argument into the commands.
1756 if test -n "$arg"; then
1757 compile_command="$compile_command $arg"
1758 finalize_command="$finalize_command $arg"
1759 fi
1760 done
1761
1762 if test -n "$prev"; then
1763 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1764 $echo "$help" 1>&2
1765 exit 1
1766 fi
1767
1768 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1769 eval arg=\"$export_dynamic_flag_spec\"
1770 compile_command="$compile_command $arg"
1771 finalize_command="$finalize_command $arg"
1772 fi
1773
1774 oldlibs=
1775 # calculate the name of the file, without its directory
1776 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
1777 libobjs_save="$libobjs"
1778
1779 case "$output" in
1780 "")
1781 $echo "$modename: you must specify an output file" 1>&2
1782 $echo "$help" 1>&2
1783 exit 1
1784 ;;
1785
1786 *.a | *.lib)
1787 if test -n "$link_against_libtool_libs"; then
1788 $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
1789 exit 1
1790 fi
1791
1792 if test -n "$deplibs"; then
1793 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
1794 fi
1795
1796 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1797 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
1798 fi
1799
1800 if test -n "$rpath"; then
1801 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
1802 fi
1803
1804 if test -n "$xrpath"; then
1805 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
1806 fi
1807
1808 if test -n "$vinfo"; then
1809 $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
1810 fi
1811
1812 if test -n "$release"; then
1813 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
1814 fi
1815
1816 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1817 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
1818 fi
1819
1820 # Now set the variables for building old libraries.
1821 build_libtool_libs=no
1822 oldlibs="$output"
1823 ;;
1824
1825 *.la)
1826 # Make sure we only generate libraries of the form `libNAME.la'.
1827 case "$outputname" in
1828 lib*)
1829 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
1830 eval libname=\"$libname_spec\"
1831 ;;
1832 *)
1833 if test "$module" = no; then
1834 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
1835 $echo "$help" 1>&2
1836 exit 1
1837 fi
1838 if test "$need_lib_prefix" != no; then
1839 # Add the "lib" prefix for modules if required
1840 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
1841 eval libname=\"$libname_spec\"
1842 else
1843 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
1844 fi
1845 ;;
1846 esac
1847
1848 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
1849 if test "X$output_objdir" = "X$output"; then
1850 output_objdir="$objdir"
1851 else
1852 output_objdir="$output_objdir/$objdir"
1853 fi
1854
1855 if test -n "$objs"; then
1856 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
1857 exit 1
1858 fi
1859
1860 # How the heck are we supposed to write a wrapper for a shared library?
1861 if test -n "$link_against_libtool_libs"; then
1862 $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
1863 exit 1
1864 fi
1865
1866 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1867 $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
1868 fi
1869
1870 set dummy $rpath
1871 if test $# -gt 2; then
1872 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
1873 fi
1874 install_libdir="$2"
1875
1876 oldlibs=
1877 if test -z "$rpath"; then
1878 if test "$build_libtool_libs" = yes; then
1879 # Building a libtool convenience library.
1880 libext=al
1881 oldlibs="$output_objdir/$libname.$libext $oldlibs"
1882 build_libtool_libs=convenience
1883 build_old_libs=yes
1884 fi
1885 dependency_libs="$deplibs"
1886
1887 if test -n "$vinfo"; then
1888 $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
1889 fi
1890
1891 if test -n "$release"; then
1892 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
1893 fi
1894 else
1895
1896 # Parse the version information argument.
1897 IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
1898 set dummy $vinfo 0 0 0
1899 IFS="$save_ifs"
1900
1901 if test -n "$8"; then
1902 $echo "$modename: too many parameters to \`-version-info'" 1>&2
1903 $echo "$help" 1>&2
1904 exit 1
1905 fi
1906
1907 current="$2"
1908 revision="$3"
1909 age="$4"
1910
1911 # Check that each of the things are valid numbers.
1912 case "$current" in
1913 0 | [1-9] | [1-9][0-9]*) ;;
1914 *)
1915 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
1916 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1917 exit 1
1918 ;;
1919 esac
1920
1921 case "$revision" in
1922 0 | [1-9] | [1-9][0-9]*) ;;
1923 *)
1924 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
1925 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1926 exit 1
1927 ;;
1928 esac
1929
1930 case "$age" in
1931 0 | [1-9] | [1-9][0-9]*) ;;
1932 *)
1933 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
1934 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1935 exit 1
1936 ;;
1937 esac
1938
1939 if test $age -gt $current; then
1940 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
1941 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1942 exit 1
1943 fi
1944
1945 # Calculate the version variables.
1946 major=
1947 versuffix=
1948 verstring=
1949 case "$version_type" in
1950 none) ;;
1951
1952 irix)
1953 major=`expr $current - $age + 1`
1954 versuffix="$major.$revision"
1955 verstring="sgi$major.$revision"
1956
1957 # Add in all the interfaces that we are compatible with.
1958 loop=$revision
1959 while test $loop != 0; do
1960 iface=`expr $revision - $loop`
1961 loop=`expr $loop - 1`
1962 verstring="sgi$major.$iface:$verstring"
1963 done
1964 ;;
1965
1966 linux)
1967 major=.`expr $current - $age`
1968 versuffix="$major.$age.$revision"
1969 ;;
1970
1971 osf)
1972 major=`expr $current - $age`
1973 versuffix=".$current.$age.$revision"
1974 verstring="$current.$age.$revision"
1975
1976 # Add in all the interfaces that we are compatible with.
1977 loop=$age
1978 while test $loop != 0; do
1979 iface=`expr $current - $loop`
1980 loop=`expr $loop - 1`
1981 verstring="$verstring:${iface}.0"
1982 done
1983
1984 # Make executables depend on our current version.
1985 verstring="$verstring:${current}.0"
1986 ;;
1987
1988 sunos)
1989 major=".$current"
1990 versuffix=".$current.$revision"
1991 ;;
1992
1993 freebsd-aout)
1994 major=".$current"
1995 versuffix=".$current.$revision";
1996 ;;
1997
1998 freebsd-elf)
1999 major=".$current"
2000 versuffix=".$current";
2001 ;;
2002
2003 windows)
2004 # Like Linux, but with '-' rather than '.', since we only
2005 # want one extension on Windows 95.
2006 major=`expr $current - $age`
2007 versuffix="-$major-$age-$revision"
2008 ;;
2009
2010 *)
2011 $echo "$modename: unknown library version type \`$version_type'" 1>&2
2012 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
2013 exit 1
2014 ;;
2015 esac
2016
2017 # Clear the version info if we defaulted, and they specified a release.
2018 if test -z "$vinfo" && test -n "$release"; then
2019 major=
2020 verstring="0.0"
2021 if test "$need_version" = no; then
2022 versuffix=
2023 else
2024 versuffix=".0.0"
2025 fi
2026 fi
2027
2028 # Remove version info from name if versioning should be avoided
2029 if test "$avoid_version" = yes && test "$need_version" = no; then
2030 major=
2031 versuffix=
2032 verstring=""
2033 fi
2034
2035 # Check to see if the archive will have undefined symbols.
2036 if test "$allow_undefined" = yes; then
2037 if test "$allow_undefined_flag" = unsupported; then
2038 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
2039 build_libtool_libs=no
2040 build_old_libs=yes
2041 fi
2042 else
2043 # Don't allow undefined symbols.
2044 allow_undefined_flag="$no_undefined_flag"
2045 fi
2046
2047 dependency_libs="$deplibs"
2048 case "$host" in
2049 *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
2050 # these systems don't actually have a c library (as such)!
2051 ;;
2052 *)
2053 # Add libc to deplibs on all other systems.
2054 deplibs="$deplibs -lc"
2055 ;;
2056 esac
2057 fi
2058
2059 # Create the output directory, or remove our outputs if we need to.
2060 if test -d $output_objdir; then
2061 $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
2062 $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
2063 else
2064 $show "$mkdir $output_objdir"
2065 $run $mkdir $output_objdir
2066 status=$?
2067 if test $status -ne 0 && test ! -d $output_objdir; then
2068 exit $status
2069 fi
2070 fi
2071
2072 # Now set the variables for building old libraries.
2073 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
2074 oldlibs="$oldlibs $output_objdir/$libname.$libext"
2075
2076 # Transform .lo files to .o files.
2077 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
2078 fi
2079
2080 if test "$build_libtool_libs" = yes; then
2081 # Transform deplibs into only deplibs that can be linked in shared.
2082 name_save=$name
2083 libname_save=$libname
2084 release_save=$release
2085 versuffix_save=$versuffix
2086 major_save=$major
2087 # I'm not sure if I'm treating the release correctly. I think
2088 # release should show up in the -l (ie -lgmp5) so we don't want to
2089 # add it in twice. Is that correct?
2090 release=""
2091 versuffix=""
2092 major=""
2093 newdeplibs=
2094 droppeddeps=no
2095 case "$deplibs_check_method" in
2096 pass_all)
2097 # Don't check for shared/static. Everything works.
2098 # This might be a little naive. We might want to check
2099 # whether the library exists or not. But this is on
2100 # osf3 & osf4 and I'm not really sure... Just
2101 # implementing what was already the behaviour.
2102 newdeplibs=$deplibs
2103 ;;
2104 test_compile)
2105 # This code stresses the "libraries are programs" paradigm to its
2106 # limits. Maybe even breaks it. We compile a program, linking it
2107 # against the deplibs as a proxy for the library. Then we can check
2108 # whether they linked in statically or dynamically with ldd.
2109 $rm conftest.c
2110 cat > conftest.c <<EOF
2111 int main() { return 0; }
2112EOF
2113 $rm conftest
2114 $C_compiler -o conftest conftest.c $deplibs
2115 if test $? -eq 0 ; then
2116 ldd_output=`ldd conftest`
2117 for i in $deplibs; do
2118 name="`expr $i : '-l\(.*\)'`"
2119 # If $name is empty we are operating on a -L argument.
2120 if test "$name" != "" ; then
2121 libname=`eval \\$echo \"$libname_spec\"`
2122 deplib_matches=`eval \\$echo \"$library_names_spec\"`
2123 set dummy $deplib_matches
2124 deplib_match=$2
2125 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
2126 newdeplibs="$newdeplibs $i"
2127 else
2128 droppeddeps=yes
2129 echo
2130 echo "*** Warning: This library needs some functionality provided by $i."
2131 echo "*** I have the capability to make that library automatically link in when"
2132 echo "*** you link to this library. But I can only do this if you have a"
2133 echo "*** shared version of the library, which you do not appear to have."
2134 fi
2135 else
2136 newdeplibs="$newdeplibs $i"
2137 fi
2138 done
2139 else
2140 # Error occured in the first compile. Let's try to salvage the situation:
2141 # Compile a seperate program for each library.
2142 for i in $deplibs; do
2143 name="`expr $i : '-l\(.*\)'`"
2144 # If $name is empty we are operating on a -L argument.
2145 if test "$name" != "" ; then
2146 $rm conftest
2147 $C_compiler -o conftest conftest.c $i
2148 # Did it work?
2149 if test $? -eq 0 ; then
2150 ldd_output=`ldd conftest`
2151 libname=`eval \\$echo \"$libname_spec\"`
2152 deplib_matches=`eval \\$echo \"$library_names_spec\"`
2153 set dummy $deplib_matches
2154 deplib_match=$2
2155 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
2156 newdeplibs="$newdeplibs $i"
2157 else
2158 droppeddeps=yes
2159 echo
2160 echo "*** Warning: This library needs some functionality provided by $i."
2161 echo "*** I have the capability to make that library automatically link in when"
2162 echo "*** you link to this library. But I can only do this if you have a"
2163 echo "*** shared version of the library, which you do not appear to have."
2164 fi
2165 else
2166 droppeddeps=yes
2167 echo
2168 echo "*** Warning! Library $i is needed by this library but I was not able to"
2169 echo "*** make it link in! You will probably need to install it or some"
2170 echo "*** library that it depends on before this library will be fully"
2171 echo "*** functional. Installing it before continuing would be even better."
2172 fi
2173 else
2174 newdeplibs="$newdeplibs $i"
2175 fi
2176 done
2177 fi
2178 ;;
2179 file_magic*)
2180 set dummy $deplibs_check_method
2181 file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
2182 for a_deplib in $deplibs; do
2183 name="`expr $a_deplib : '-l\(.*\)'`"
2184 # If $name is empty we are operating on a -L argument.
2185 if test "$name" != "" ; then
2186 libname=`eval \\$echo \"$libname_spec\"`
2187 for i in $lib_search_path; do
2188 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
2189 for potent_lib in $potential_libs; do
2190 # Follow soft links.
2191 if ls -lLd "$potent_lib" 2>/dev/null \
2192 | grep " -> " >/dev/null; then
2193 continue
2194 fi
2195 # The statement above tries to avoid entering an
2196 # endless loop below, in case of cyclic links.
2197 # We might still enter an endless loop, since a link
2198 # loop can be closed while we follow links,
2199 # but so what?
2200 potlib="$potent_lib"
2201 while test -h "$potlib" 2>/dev/null; do
2202 potliblink=`ls -ld $potlib | sed 's/.* -> //'`
2203 case "$potliblink" in
2204 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
2205 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
2206 esac
2207 done
2208 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
2209 | sed 10q \
2210 | egrep "$file_magic_regex" > /dev/null; then
2211 newdeplibs="$newdeplibs $a_deplib"
2212 a_deplib=""
2213 break 2
2214 fi
2215 done
2216 done
2217 if test -n "$a_deplib" ; then
2218 droppeddeps=yes
2219 echo
2220 echo "*** Warning: This library needs some functionality provided by $a_deplib."
2221 echo "*** I have the capability to make that library automatically link in when"
2222 echo "*** you link to this library. But I can only do this if you have a"
2223 echo "*** shared version of the library, which you do not appear to have."
2224 fi
2225 else
2226 # Add a -L argument.
2227 newdeplibs="$newdeplibs $a_deplib"
2228 fi
2229 done # Gone through all deplibs.
2230 ;;
2231 none | unknown | *)
2232 newdeplibs=""
2233 if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
2234 -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
2235 grep . >/dev/null; then
2236 echo
2237 if test "X$deplibs_check_method" = "Xnone"; then
2238 echo "*** Warning: inter-library dependencies are not supported in this platform."
2239 else
2240 echo "*** Warning: inter-library dependencies are not known to be supported."
2241 fi
2242 echo "*** All declared inter-library dependencies are being dropped."
2243 droppeddeps=yes
2244 fi
2245 ;;
2246 esac
2247 versuffix=$versuffix_save
2248 major=$major_save
2249 release=$release_save
2250 libname=$libname_save
2251 name=$name_save
2252
2253 if test "$droppeddeps" = yes; then
2254 if test "$module" = yes; then
2255 echo
2256 echo "*** Warning: libtool could not satisfy all declared inter-library"
2257 echo "*** dependencies of module $libname. Therefore, libtool will create"
2258 echo "*** a static module, that should work as long as the dlopening"
2259 echo "*** application is linked with the -dlopen flag."
2260 if test -z "$global_symbol_pipe"; then
2261 echo
2262 echo "*** However, this would only work if libtool was able to extract symbol"
2263 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2264 echo "*** not find such a program. So, this module is probably useless."
2265 echo "*** \`nm' from GNU binutils and a full rebuild may help."
2266 fi
2267 if test "$build_old_libs" = no; then
2268 oldlibs="$output_objdir/$libname.$libext"
2269 build_libtool_libs=module
2270 build_old_libs=yes
2271 else
2272 build_libtool_libs=no
2273 fi
2274 else
2275 echo "*** The inter-library dependencies that have been dropped here will be"
2276 echo "*** automatically added whenever a program is linked with this library"
2277 echo "*** or is declared to -dlopen it."
2278 fi
2279 fi
2280 # Done checking deplibs!
2281 deplibs=$newdeplibs
2282 fi
2283
2284 # All the library-specific variables (install_libdir is set above).
2285 library_names=
2286 old_library=
2287 dlname=
2288
2289 # Test again, we may have decided not to build it any more
2290 if test "$build_libtool_libs" = yes; then
2291 # Get the real and link names of the library.
2292 eval library_names=\"$library_names_spec\"
2293 set dummy $library_names
2294 realname="$2"
2295 shift; shift
2296
2297 if test -n "$soname_spec"; then
2298 eval soname=\"$soname_spec\"
2299 else
2300 soname="$realname"
2301 fi
2302
2303 lib="$output_objdir/$realname"
2304 for link
2305 do
2306 linknames="$linknames $link"
2307 done
2308
2309 # Ensure that we have .o objects for linkers which dislike .lo
2310 # (e.g. aix) incase we are running --disable-static
2311 for obj in $libobjs; do
2312 oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"`
2313 if test ! -f $oldobj; then
2314 $show "${LN_S} $obj $oldobj"
2315 $run ${LN_S} $obj $oldobj || exit $?
2316 fi
2317 done
2318
2319 # Use standard objects if they are pic
2320 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2321
2322 # Prepare the list of exported symbols
2323 if test -z "$export_symbols"; then
2324 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
2325 $show "generating symbol list for \`$libname.la'"
2326 export_symbols="$output_objdir/$libname.exp"
2327 $run $rm $export_symbols
2328 eval cmds=\"$export_symbols_cmds\"
2329 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2330 for cmd in $cmds; do
2331 IFS="$save_ifs"
2332 $show "$cmd"
2333 $run eval "$cmd" || exit $?
2334 done
2335 IFS="$save_ifs"
2336 if test -n "$export_symbols_regex"; then
2337 $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
2338 $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
2339 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
2340 $run eval '$mv "${export_symbols}T" "$export_symbols"'
2341 fi
2342 fi
2343 fi
2344
2345 if test -n "$export_symbols" && test -n "$include_expsyms"; then
2346 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
2347 fi
2348
2349 if test -n "$convenience"; then
2350 if test -n "$whole_archive_flag_spec"; then
2351 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
2352 else
2353 gentop="$output_objdir/${outputname}x"
2354 $show "${rm}r $gentop"
2355 $run ${rm}r "$gentop"
2356 $show "mkdir $gentop"
2357 $run mkdir "$gentop"
2358 status=$?
2359 if test $status -ne 0 && test ! -d "$gentop"; then
2360 exit $status
2361 fi
2362 generated="$generated $gentop"
2363
2364 for xlib in $convenience; do
2365 # Extract the objects.
2366 case "$xlib" in
2367 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
2368 *) xabs=`pwd`"/$xlib" ;;
2369 esac
2370 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
2371 xdir="$gentop/$xlib"
2372
2373 $show "${rm}r $xdir"
2374 $run ${rm}r "$xdir"
2375 $show "mkdir $xdir"
2376 $run mkdir "$xdir"
2377 status=$?
2378 if test $status -ne 0 && test ! -d "$xdir"; then
2379 exit $status
2380 fi
2381 $show "(cd $xdir && $AR x $xabs)"
2382 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
2383
2384 libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
2385 done
2386 fi
2387 fi
2388
2389 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
2390 eval flag=\"$thread_safe_flag_spec\"
2391 linkopts="$linkopts $flag"
2392 fi
2393
2394 # Do each of the archive commands.
2395 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
2396 eval cmds=\"$archive_expsym_cmds\"
2397 else
2398 eval cmds=\"$archive_cmds\"
2399 fi
2400 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2401 for cmd in $cmds; do
2402 IFS="$save_ifs"
2403 $show "$cmd"
2404 $run eval "$cmd" || exit $?
2405 done
2406 IFS="$save_ifs"
2407
2408 # Create links to the real library.
2409 for linkname in $linknames; do
2410 if test "$realname" != "$linkname"; then
2411 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
2412 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
2413 fi
2414 done
2415
2416 # If -module or -export-dynamic was specified, set the dlname.
2417 if test "$module" = yes || test "$export_dynamic" = yes; then
2418 # On all known operating systems, these are identical.
2419 dlname="$soname"
2420 fi
2421 fi
2422 ;;
2423
2424 *.lo | *.o | *.obj)
2425 if test -n "$link_against_libtool_libs"; then
2426 $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
2427 exit 1
2428 fi
2429
2430 if test -n "$deplibs"; then
2431 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
2432 fi
2433
2434 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2435 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
2436 fi
2437
2438 if test -n "$rpath"; then
2439 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
2440 fi
2441
2442 if test -n "$xrpath"; then
2443 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
2444 fi
2445
2446 if test -n "$vinfo"; then
2447 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
2448 fi
2449
2450 if test -n "$release"; then
2451 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
2452 fi
2453
2454 case "$output" in
2455 *.lo)
2456 if test -n "$objs"; then
2457 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
2458 exit 1
2459 fi
2460 libobj="$output"
2461 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
2462 ;;
2463 *)
2464 libobj=
2465 obj="$output"
2466 ;;
2467 esac
2468
2469 # Delete the old objects.
2470 $run $rm $obj $libobj
2471
2472 # Objects from convenience libraries. This assumes
2473 # single-version convenience libraries. Whenever we create
2474 # different ones for PIC/non-PIC, this we'll have to duplicate
2475 # the extraction.
2476 reload_conv_objs=
2477 gentop=
2478 # reload_cmds runs $LD directly, so let us get rid of
2479 # -Wl from whole_archive_flag_spec
2480 wl=
2481
2482 if test -n "$convenience"; then
2483 if test -n "$whole_archive_flag_spec"; then
2484 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
2485 else
2486 gentop="$output_objdir/${obj}x"
2487 $show "${rm}r $gentop"
2488 $run ${rm}r "$gentop"
2489 $show "mkdir $gentop"
2490 $run mkdir "$gentop"
2491 status=$?
2492 if test $status -ne 0 && test ! -d "$gentop"; then
2493 exit $status
2494 fi
2495 generated="$generated $gentop"
2496
2497 for xlib in $convenience; do
2498 # Extract the objects.
2499 case "$xlib" in
2500 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
2501 *) xabs=`pwd`"/$xlib" ;;
2502 esac
2503 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
2504 xdir="$gentop/$xlib"
2505
2506 $show "${rm}r $xdir"
2507 $run ${rm}r "$xdir"
2508 $show "mkdir $xdir"
2509 $run mkdir "$xdir"
2510 status=$?
2511 if test $status -ne 0 && test ! -d "$xdir"; then
2512 exit $status
2513 fi
2514 $show "(cd $xdir && $AR x $xabs)"
2515 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
2516
2517 reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
2518 done
2519 fi
2520 fi
2521
2522 # Create the old-style object.
2523 reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
2524
2525 output="$obj"
2526 eval cmds=\"$reload_cmds\"
2527 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2528 for cmd in $cmds; do
2529 IFS="$save_ifs"
2530 $show "$cmd"
2531 $run eval "$cmd" || exit $?
2532 done
2533 IFS="$save_ifs"
2534
2535 # Exit if we aren't doing a library object file.
2536 if test -z "$libobj"; then
2537 if test -n "$gentop"; then
2538 $show "${rm}r $gentop"
2539 $run ${rm}r $gentop
2540 fi
2541
2542 exit 0
2543 fi
2544
2545 if test "$build_libtool_libs" != yes; then
2546 if test -n "$gentop"; then
2547 $show "${rm}r $gentop"
2548 $run ${rm}r $gentop
2549 fi
2550
2551 # Create an invalid libtool object if no PIC, so that we don't
2552 # accidentally link it into a program.
2553 $show "echo timestamp > $libobj"
2554 $run eval "echo timestamp > $libobj" || exit $?
2555 exit 0
2556 fi
2557
2558 if test -n "$pic_flag"; then
2559 # Only do commands if we really have different PIC objects.
2560 reload_objs="$libobjs $reload_conv_objs"
2561 output="$libobj"
2562 eval cmds=\"$reload_cmds\"
2563 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2564 for cmd in $cmds; do
2565 IFS="$save_ifs"
2566 $show "$cmd"
2567 $run eval "$cmd" || exit $?
2568 done
2569 IFS="$save_ifs"
2570 else
2571 # Just create a symlink.
2572 $show $rm $libobj
2573 $run $rm $libobj
2574 $show "$LN_S $obj $libobj"
2575 $run $LN_S $obj $libobj || exit $?
2576 fi
2577
2578 if test -n "$gentop"; then
2579 $show "${rm}r $gentop"
2580 $run ${rm}r $gentop
2581 fi
2582
2583 exit 0
2584 ;;
2585
2586 # Anything else should be a program.
2587 *)
2588 if test -n "$vinfo"; then
2589 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
2590 fi
2591
2592 if test -n "$release"; then
2593 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
2594 fi
2595
2596 if test "$preload" = yes; then
2597 if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
2598 test "$dlopen_self_static" = unknown; then
2599 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
2600 fi
2601 fi
2602
2603 if test -n "$rpath$xrpath"; then
2604 # If the user specified any rpath flags, then add them.
2605 for libdir in $rpath $xrpath; do
2606 # This is the magic to use -rpath.
2607 case "$compile_rpath " in
2608 *" $libdir "*) ;;
2609 *) compile_rpath="$compile_rpath $libdir" ;;
2610 esac
2611 case "$finalize_rpath " in
2612 *" $libdir "*) ;;
2613 *) finalize_rpath="$finalize_rpath $libdir" ;;
2614 esac
2615 done
2616 fi
2617
2618 # Now hardcode the library paths
2619 rpath=
2620 hardcode_libdirs=
2621 for libdir in $compile_rpath $finalize_rpath; do
2622 if test -n "$hardcode_libdir_flag_spec"; then
2623 if test -n "$hardcode_libdir_separator"; then
2624 if test -z "$hardcode_libdirs"; then
2625 hardcode_libdirs="$libdir"
2626 else
2627 # Just accumulate the unique libdirs.
2628 case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
2629 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
2630 ;;
2631 *)
2632 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
2633 ;;
2634 esac
2635 fi
2636 else
2637 eval flag=\"$hardcode_libdir_flag_spec\"
2638 rpath="$rpath $flag"
2639 fi
2640 elif test -n "$runpath_var"; then
2641 case "$perm_rpath " in
2642 *" $libdir "*) ;;
2643 *) perm_rpath="$perm_rpath $libdir" ;;
2644 esac
2645 fi
2646 done
2647 # Substitute the hardcoded libdirs into the rpath.
2648 if test -n "$hardcode_libdir_separator" &&
2649 test -n "$hardcode_libdirs"; then
2650 libdir="$hardcode_libdirs"
2651 eval rpath=\" $hardcode_libdir_flag_spec\"
2652 fi
2653 compile_rpath="$rpath"
2654
2655 rpath=
2656 hardcode_libdirs=
2657 for libdir in $finalize_rpath; do
2658 if test -n "$hardcode_libdir_flag_spec"; then
2659 if test -n "$hardcode_libdir_separator"; then
2660 if test -z "$hardcode_libdirs"; then
2661 hardcode_libdirs="$libdir"
2662 else
2663 # Just accumulate the unique libdirs.
2664 case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
2665 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
2666 ;;
2667 *)
2668 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
2669 ;;
2670 esac
2671 fi
2672 else
2673 eval flag=\"$hardcode_libdir_flag_spec\"
2674 rpath="$rpath $flag"
2675 fi
2676 elif test -n "$runpath_var"; then
2677 case "$finalize_perm_rpath " in
2678 *" $libdir "*) ;;
2679 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
2680 esac
2681 fi
2682 done
2683 # Substitute the hardcoded libdirs into the rpath.
2684 if test -n "$hardcode_libdir_separator" &&
2685 test -n "$hardcode_libdirs"; then
2686 libdir="$hardcode_libdirs"
2687 eval rpath=\" $hardcode_libdir_flag_spec\"
2688 fi
2689 finalize_rpath="$rpath"
2690
2691 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2692 if test "X$output_objdir" = "X$output"; then
2693 output_objdir="$objdir"
2694 else
2695 output_objdir="$output_objdir/$objdir"
2696 fi
2697
2698 # Create the binary in the object directory, then wrap it.
2699 if test ! -d $output_objdir; then
2700 $show "$mkdir $output_objdir"
2701 $run $mkdir $output_objdir
2702 status=$?
2703 if test $status -ne 0 && test ! -d $output_objdir; then
2704 exit $status
2705 fi
2706 fi
2707
2708 if test -n "$libobjs" && test "$build_old_libs" = yes; then
2709 # Transform all the library objects into standard objects.
2710 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2711 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2712 fi
2713
2714 dlsyms=
2715 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2716 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2717 dlsyms="${outputname}S.c"
2718 else
2719 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
2720 fi
2721 fi
2722
2723 if test -n "$dlsyms"; then
2724 case "$dlsyms" in
2725 "") ;;
2726 *.c)
2727 # Discover the nlist of each of the dlfiles.
2728 nlist="$output_objdir/${outputname}.nm"
2729
2730 $show "$rm $nlist ${nlist}S ${nlist}T"
2731 $run $rm "$nlist" "${nlist}S" "${nlist}T"
2732
2733 # Parse the name list into a source file.
2734 $show "creating $output_objdir/$dlsyms"
2735
2736 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
2737/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
2738/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
2739
2740#ifdef __cplusplus
2741extern \"C\" {
2742#endif
2743
2744/* Prevent the only kind of declaration conflicts we can make. */
2745#define lt_preloaded_symbols some_other_symbol
2746
2747/* External symbol declarations for the compiler. */\
2748"
2749
2750 if test "$dlself" = yes; then
2751 $show "generating symbol list for \`$output'"
2752
2753 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
2754
2755 # Add our own program objects to the symbol list.
2756 progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2757 for arg in $progfiles; do
2758 $show "extracting global C symbols from \`$arg'"
2759 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
2760 done
2761
2762 if test -n "$exclude_expsyms"; then
2763 $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2764 $run eval '$mv "$nlist"T "$nlist"'
2765 fi
2766
2767 if test -n "$export_symbols_regex"; then
2768 $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2769 $run eval '$mv "$nlist"T "$nlist"'
2770 fi
2771
2772 # Prepare the list of exported symbols
2773 if test -z "$export_symbols"; then
2774 export_symbols="$output_objdir/$output.exp"
2775 $run $rm $export_symbols
2776 $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2777 else
2778 $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
2779 $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
2780 $run eval 'mv "$nlist"T "$nlist"'
2781 fi
2782 fi
2783
2784 for arg in $dlprefiles; do
2785 $show "extracting global C symbols from \`$arg'"
2786 name=`echo "$arg" | sed -e 's%^.*/%%'`
2787 $run eval 'echo ": $name " >> "$nlist"'
2788 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
2789 done
2790
2791 if test -z "$run"; then
2792 # Make sure we have at least an empty file.
2793 test -f "$nlist" || : > "$nlist"
2794
2795 if test -n "$exclude_expsyms"; then
2796 egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2797 $mv "$nlist"T "$nlist"
2798 fi
2799
2800 # Try sorting and uniquifying the output.
2801 if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
2802 :
2803 else
2804 grep -v "^: " < "$nlist" > "$nlist"S
2805 fi
2806
2807 if test -f "$nlist"S; then
2808 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
2809 else
2810 echo '/* NONE */' >> "$output_objdir/$dlsyms"
2811 fi
2812
2813 $echo >> "$output_objdir/$dlsyms" "\
2814
2815#undef lt_preloaded_symbols
2816
2817#if defined (__STDC__) && __STDC__
2818# define lt_ptr_t void *
2819#else
2820# define lt_ptr_t char *
2821# define const
2822#endif
2823
2824/* The mapping between symbol names and symbols. */
2825const struct {
2826 const char *name;
2827 lt_ptr_t address;
2828}
2829lt_preloaded_symbols[] =
2830{\
2831"
2832
2833 sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
2834 -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
2835 < "$nlist" >> "$output_objdir/$dlsyms"
2836
2837 $echo >> "$output_objdir/$dlsyms" "\
2838 {0, (lt_ptr_t) 0}
2839};
2840
2841/* This works around a problem in FreeBSD linker */
2842#ifdef FREEBSD_WORKAROUND
2843static const void *lt_preloaded_setup() {
2844 return lt_preloaded_symbols;
2845}
2846#endif
2847
2848#ifdef __cplusplus
2849}
2850#endif\
2851"
2852 fi
2853
2854 pic_flag_for_symtable=
2855 case "$host" in
2856 # compiling the symbol table file with pic_flag works around
2857 # a FreeBSD bug that causes programs to crash when -lm is
2858 # linked before any other PIC object. But we must not use
2859 # pic_flag when linking with -static. The problem exists in
2860 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2861 *-*-freebsd2*|*-*-freebsd3.0*)
2862 case "$compile_command " in
2863 *" -static "*) ;;
2864 *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
2865 esac
2866 esac
2867
2868 # Now compile the dynamic symbol file.
2869 $show "(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
2870 $run eval '(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
2871
2872 # Clean up the generated files.
2873 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
2874 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
2875
2876 # Transform the symbol file into the correct name.
2877 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
2878 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
2879 ;;
2880 *)
2881 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
2882 exit 1
2883 ;;
2884 esac
2885 else
2886 # We keep going just in case the user didn't refer to
2887 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2888 # really was required.
2889
2890 # Nullify the symbol file.
2891 compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2892 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2893 fi
2894
2895 if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
2896 # Replace the output file specification.
2897 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
2898 link_command="$compile_command$compile_rpath"
2899
2900 # We have no uninstalled library dependencies, so finalize right now.
2901 $show "$link_command"
2902 $run eval "$link_command"
2903 status=$?
2904
2905 # Delete the generated files.
2906 if test -n "$dlsyms"; then
2907 $show "$rm $output_objdir/${outputname}S.${objext}"
2908 $run $rm "$output_objdir/${outputname}S.${objext}"
2909 fi
2910
2911 exit $status
2912 fi
2913
2914 if test -n "$shlibpath_var"; then
2915 # We should set the shlibpath_var
2916 rpath=
2917 for dir in $temp_rpath; do
2918 case "$dir" in
2919 [\\/]* | [A-Za-z]:[\\/]*)
2920 # Absolute path.
2921 rpath="$rpath$dir:"
2922 ;;
2923 *)
2924 # Relative path: add a thisdir entry.
2925 rpath="$rpath\$thisdir/$dir:"
2926 ;;
2927 esac
2928 done
2929 temp_rpath="$rpath"
2930 fi
2931
2932 if test -n "$compile_shlibpath$finalize_shlibpath"; then
2933 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
2934 fi
2935 if test -n "$finalize_shlibpath"; then
2936 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
2937 fi
2938
2939 compile_var=
2940 finalize_var=
2941 if test -n "$runpath_var"; then
2942 if test -n "$perm_rpath"; then
2943 # We should set the runpath_var.
2944 rpath=
2945 for dir in $perm_rpath; do
2946 rpath="$rpath$dir:"
2947 done
2948 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
2949 fi
2950 if test -n "$finalize_perm_rpath"; then
2951 # We should set the runpath_var.
2952 rpath=
2953 for dir in $finalize_perm_rpath; do
2954 rpath="$rpath$dir:"
2955 done
2956 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
2957 fi
2958 fi
2959
2960 if test "$hardcode_action" = relink; then
2961 # Fast installation is not supported
2962 link_command="$compile_var$compile_command$compile_rpath"
2963 relink_command="$finalize_var$finalize_command$finalize_rpath"
2964
2965 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
2966 $echo "$modename: \`$output' will be relinked during installation" 1>&2
2967 else
2968 if test "$fast_install" != no; then
2969 link_command="$finalize_var$compile_command$finalize_rpath"
2970 if test "$fast_install" = yes; then
2971 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
2972 else
2973 # fast_install is set to needless
2974 relink_command=
2975 fi
2976 else
2977 link_command="$compile_var$compile_command$compile_rpath"
2978 relink_command="$finalize_var$finalize_command$finalize_rpath"
2979 fi
2980 fi
2981
2982 # Replace the output file specification.
2983 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
2984
2985 # Delete the old output files.
2986 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
2987
2988 $show "$link_command"
2989 $run eval "$link_command" || exit $?
2990
2991 # Now create the wrapper script.
2992 $show "creating $output"
2993
2994 # Quote the relink command for shipping.
2995 if test -n "$relink_command"; then
2996 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
2997 fi
2998
2999 # Quote $echo for shipping.
3000 if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
3001 case "$0" in
3002 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
3003 *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
3004 esac
3005 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
3006 else
3007 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
3008 fi
3009
3010 # Only actually do things if our run command is non-null.
3011 if test -z "$run"; then
3012 # win32 will think the script is a binary if it has
3013 # a .exe suffix, so we strip it off here.
3014 case $output in
3015 *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
3016 esac
3017 $rm $output
3018 trap "$rm $output; exit 1" 1 2 15
3019
3020 $echo > $output "\
3021#! $SHELL
3022
3023# $output - temporary wrapper script for $objdir/$outputname
3024# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
3025#
3026# The $output program cannot be directly executed until all the libtool
3027# libraries that it depends on are installed.
3028#
3029# This wrapper script should never be moved out of the build directory.
3030# If it is, it will not operate correctly.
3031
3032# Sed substitution that helps us do robust quoting. It backslashifies
3033# metacharacters that are still active within double-quoted strings.
3034Xsed='sed -e 1s/^X//'
3035sed_quote_subst='$sed_quote_subst'
3036
3037# The HP-UX ksh and POSIX shell print the target directory to stdout
3038# if CDPATH is set.
3039if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi
3040
3041relink_command=\"$relink_command\"
3042
3043# This environment variable determines our operation mode.
3044if test \"\$libtool_install_magic\" = \"$magic\"; then
3045 # install mode needs the following variable:
3046 link_against_libtool_libs='$link_against_libtool_libs'
3047else
3048 # When we are sourced in execute mode, \$file and \$echo are already set.
3049 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3050 echo=\"$qecho\"
3051 file=\"\$0\"
3052 # Make sure echo works.
3053 if test \"X\$1\" = X--no-reexec; then
3054 # Discard the --no-reexec flag, and continue.
3055 shift
3056 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
3057 # Yippee, \$echo works!
3058 :
3059 else
3060 # Restart under the correct shell, and then maybe \$echo will work.
3061 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
3062 fi
3063 fi\
3064"
3065 $echo >> $output "\
3066
3067 # Find the directory that this script lives in.
3068 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
3069 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
3070
3071 # Follow symbolic links until we get to the real thisdir.
3072 file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
3073 while test -n \"\$file\"; do
3074 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
3075
3076 # If there was a directory component, then change thisdir.
3077 if test \"x\$destdir\" != \"x\$file\"; then
3078 case \"\$destdir\" in
3079 [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
3080 *) thisdir=\"\$thisdir/\$destdir\" ;;
3081 esac
3082 fi
3083
3084 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
3085 file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
3086 done
3087
3088 # Try to get the absolute directory name.
3089 absdir=\`cd \"\$thisdir\" && pwd\`
3090 test -n \"\$absdir\" && thisdir=\"\$absdir\"
3091"
3092
3093 if test "$fast_install" = yes; then
3094 echo >> $output "\
3095 program=lt-'$outputname'
3096 progdir=\"\$thisdir/$objdir\"
3097
3098 if test ! -f \"\$progdir/\$program\" || \\
3099 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
3100 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
3101
3102 file=\"\$\$-\$program\"
3103
3104 if test ! -d \"\$progdir\"; then
3105 $mkdir \"\$progdir\"
3106 else
3107 $rm \"\$progdir/\$file\"
3108 fi"
3109
3110 echo >> $output "\
3111
3112 # relink executable if necessary
3113 if test -n \"\$relink_command\"; then
3114 if (cd \"\$thisdir\" && eval \$relink_command); then :
3115 else
3116 $rm \"\$progdir/\$file\"
3117 exit 1
3118 fi
3119 fi
3120
3121 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
3122 { $rm \"\$progdir/\$program\";
3123 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
3124 $rm \"\$progdir/\$file\"
3125 fi"
3126 else
3127 echo >> $output "\
3128 program='$outputname$exeext'
3129 progdir=\"\$thisdir/$objdir\"
3130"
3131 fi
3132
3133 echo >> $output "\
3134
3135 if test -f \"\$progdir/\$program\"; then"
3136
3137 # Export our shlibpath_var if we have one.
3138 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3139 $echo >> $output "\
3140 # Add our own library path to $shlibpath_var
3141 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
3142
3143 # Some systems cannot cope with colon-terminated $shlibpath_var
3144 # The second colon is a workaround for a bug in BeOS R4 sed
3145 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
3146
3147 export $shlibpath_var
3148"
3149 fi
3150
3151 # fixup the dll searchpath if we need to.
3152 if test -n "$dllsearchpath"; then
3153 $echo >> $output "\
3154 # Add the dll search path components to the executable PATH
3155 PATH=$dllsearchpath:\$PATH
3156"
3157 fi
3158
3159 $echo >> $output "\
3160 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3161 # Run the actual program with our arguments.
3162"
3163 case $host in
3164 *-*-cygwin* | *-*-mingw | *-*-os2*)
3165 # win32 systems need to use the prog path for dll
3166 # lookup to work
3167 $echo >> $output "\
3168 exec \$progdir\\\\\$program \${1+\"\$@\"}
3169"
3170 ;;
3171 *)
3172 $echo >> $output "\
3173 # Export the path to the program.
3174 PATH=\"\$progdir:\$PATH\"
3175 export PATH
3176
3177 exec \$program \${1+\"\$@\"}
3178"
3179 ;;
3180 esac
3181 $echo >> $output "\
3182 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
3183 exit 1
3184 fi
3185 else
3186 # The program doesn't exist.
3187 \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
3188 \$echo \"This script is just a wrapper for \$program.\" 1>&2
3189 echo \"See the $PACKAGE documentation for more information.\" 1>&2
3190 exit 1
3191 fi
3192fi\
3193"
3194 chmod +x $output
3195 fi
3196 exit 0
3197 ;;
3198 esac
3199
3200 # See if we need to build an old-fashioned archive.
3201 for oldlib in $oldlibs; do
3202
3203 if test "$build_libtool_libs" = convenience; then
3204 oldobjs="$libobjs_save"
3205 addlibs="$convenience"
3206 build_libtool_libs=no
3207 else
3208 if test "$build_libtool_libs" = module; then
3209 oldobjs="$libobjs_save"
3210 build_libtool_libs=no
3211 else
3212 oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
3213 fi
3214 addlibs="$old_convenience"
3215 fi
3216
3217 if test -n "$addlibs"; then
3218 gentop="$output_objdir/${outputname}x"
3219 $show "${rm}r $gentop"
3220 $run ${rm}r "$gentop"
3221 $show "mkdir $gentop"
3222 $run mkdir "$gentop"
3223 status=$?
3224 if test $status -ne 0 && test ! -d "$gentop"; then
3225 exit $status
3226 fi
3227 generated="$generated $gentop"
3228
3229 # Add in members from convenience archives.
3230 for xlib in $addlibs; do
3231 # Extract the objects.
3232 case "$xlib" in
3233 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3234 *) xabs=`pwd`"/$xlib" ;;
3235 esac
3236 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3237 xdir="$gentop/$xlib"
3238
3239 $show "${rm}r $xdir"
3240 $run ${rm}r "$xdir"
3241 $show "mkdir $xdir"
3242 $run mkdir "$xdir"
3243 status=$?
3244 if test $status -ne 0 && test ! -d "$xdir"; then
3245 exit $status
3246 fi
3247 $show "(cd $xdir && $AR x $xabs)"
3248 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3249
3250 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
3251 done
3252 fi
3253
3254 # Do each command in the archive commands.
3255 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
3256 eval cmds=\"$old_archive_from_new_cmds\"
3257 else
3258 # Ensure that we have .o objects in place incase we decided
3259 # not to build a shared library, and have fallen back to building
3260 # static libs even though --disable-static was passed!
3261 for oldobj in $oldobjs; do
3262 if test ! -f $oldobj; then
3263 obj=`$echo "X$oldobj" | $Xsed -e "$o2lo"`
3264 $show "${LN_S} $obj $oldobj"
3265 $run ${LN_S} $obj $oldobj || exit $?
3266 fi
3267 done
3268
3269 eval cmds=\"$old_archive_cmds\"
3270 fi
3271 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3272 for cmd in $cmds; do
3273 IFS="$save_ifs"
3274 $show "$cmd"
3275 $run eval "$cmd" || exit $?
3276 done
3277 IFS="$save_ifs"
3278 done
3279
3280 if test -n "$generated"; then
3281 $show "${rm}r$generated"
3282 $run ${rm}r$generated
3283 fi
3284
3285 # Now create the libtool archive.
3286 case "$output" in
3287 *.la)
3288 old_library=
3289 test "$build_old_libs" = yes && old_library="$libname.$libext"
3290 $show "creating $output"
3291
3292 if test -n "$xrpath"; then
3293 temp_xrpath=
3294 for libdir in $xrpath; do
3295 temp_xrpath="$temp_xrpath -R$libdir"
3296 done
3297 dependency_libs="$temp_xrpath $dependency_libs"
3298 fi
3299
3300 # Only create the output if not a dry run.
3301 if test -z "$run"; then
3302 for installed in no yes; do
3303 if test "$installed" = yes; then
3304 if test -z "$install_libdir"; then
3305 break
3306 fi
3307 output="$output_objdir/$outputname"i
3308 fi
3309 $rm $output
3310 $echo > $output "\
3311# $outputname - a libtool library file
3312# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
3313#
3314# Please DO NOT delete this file!
3315# It is necessary for linking the library.
3316
3317# The name that we can dlopen(3).
3318dlname='$dlname'
3319
3320# Names of this library.
3321library_names='$library_names'
3322
3323# The name of the static archive.
3324old_library='$old_library'
3325
3326# Libraries that this one depends upon.
3327dependency_libs='$dependency_libs'
3328
3329# Version information for $libname.
3330current=$current
3331age=$age
3332revision=$revision
3333
3334# Is this an already installed library?
3335installed=$installed
3336
3337# Directory that this library needs to be installed in:
3338libdir='$install_libdir'\
3339"
3340 done
3341 fi
3342
3343 # Do a symbolic link so that the libtool archive can be found in
3344 # LD_LIBRARY_PATH before the program is installed.
3345 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
3346 $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
3347 ;;
3348 esac
3349 exit 0
3350 ;;
3351
3352 # libtool install mode
3353 install)
3354 modename="$modename: install"
3355
3356 # There may be an optional sh(1) argument at the beginning of
3357 # install_prog (especially on Windows NT).
3358 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
3359 # Aesthetically quote it.
3360 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
3361 case "$arg" in
3362 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
3363 arg="\"$arg\""
3364 ;;
3365 esac
3366 install_prog="$arg "
3367 arg="$1"
3368 shift
3369 else
3370 install_prog=
3371 arg="$nonopt"
3372 fi
3373
3374 # The real first argument should be the name of the installation program.
3375 # Aesthetically quote it.
3376 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
3377 case "$arg" in
3378 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
3379 arg="\"$arg\""
3380 ;;
3381 esac
3382 install_prog="$install_prog$arg"
3383
3384 # We need to accept at least all the BSD install flags.
3385 dest=
3386 files=
3387 opts=
3388 prev=
3389 install_type=
3390 isdir=no
3391 stripme=
3392 for arg
3393 do
3394 if test -n "$dest"; then
3395 files="$files $dest"
3396 dest="$arg"
3397 continue
3398 fi
3399
3400 case "$arg" in
3401 -d) isdir=yes ;;
3402 -f) prev="-f" ;;
3403 -g) prev="-g" ;;
3404 -m) prev="-m" ;;
3405 -o) prev="-o" ;;
3406 -s)
3407 stripme=" -s"
3408 continue
3409 ;;
3410 -*) ;;
3411
3412 *)
3413 # If the previous option needed an argument, then skip it.
3414 if test -n "$prev"; then
3415 prev=
3416 else
3417 dest="$arg"
3418 continue
3419 fi
3420 ;;
3421 esac
3422
3423 # Aesthetically quote the argument.
3424 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
3425 case "$arg" in
3426 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
3427 arg="\"$arg\""
3428 ;;
3429 esac
3430 install_prog="$install_prog $arg"
3431 done
3432
3433 if test -z "$install_prog"; then
3434 $echo "$modename: you must specify an install program" 1>&2
3435 $echo "$help" 1>&2
3436 exit 1
3437 fi
3438
3439 if test -n "$prev"; then
3440 $echo "$modename: the \`$prev' option requires an argument" 1>&2
3441 $echo "$help" 1>&2
3442 exit 1
3443 fi
3444
3445 if test -z "$files"; then
3446 if test -z "$dest"; then
3447 $echo "$modename: no file or destination specified" 1>&2
3448 else
3449 $echo "$modename: you must specify a destination" 1>&2
3450 fi
3451 $echo "$help" 1>&2
3452 exit 1
3453 fi
3454
3455 # Strip any trailing slash from the destination.
3456 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
3457
3458 # Check to see that the destination is a directory.
3459 test -d "$dest" && isdir=yes
3460 if test "$isdir" = yes; then
3461 destdir="$dest"
3462 destname=
3463 else
3464 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
3465 test "X$destdir" = "X$dest" && destdir=.
3466 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
3467
3468 # Not a directory, so check to see that there is only one file specified.
3469 set dummy $files
3470 if test $# -gt 2; then
3471 $echo "$modename: \`$dest' is not a directory" 1>&2
3472 $echo "$help" 1>&2
3473 exit 1
3474 fi
3475 fi
3476 case "$destdir" in
3477 [\\/]* | [A-Za-z]:[\\/]*) ;;
3478 *)
3479 for file in $files; do
3480 case "$file" in
3481 *.lo) ;;
3482 *)
3483 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
3484 $echo "$help" 1>&2
3485 exit 1
3486 ;;
3487 esac
3488 done
3489 ;;
3490 esac
3491
3492 # This variable tells wrapper scripts just to set variables rather
3493 # than running their programs.
3494 libtool_install_magic="$magic"
3495
3496 staticlibs=
3497 future_libdirs=
3498 current_libdirs=
3499 for file in $files; do
3500
3501 # Do each installation.
3502 case "$file" in
3503 *.a | *.lib)
3504 # Do the static libraries later.
3505 staticlibs="$staticlibs $file"
3506 ;;
3507
3508 *.la)
3509 # Check to see that this really is a libtool archive.
3510 if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
3511 else
3512 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
3513 $echo "$help" 1>&2
3514 exit 1
3515 fi
3516
3517 library_names=
3518 old_library=
3519 # If there is no directory component, then add one.
3520 case "$file" in
3521 */* | *\\*) . $file ;;
3522 *) . ./$file ;;
3523 esac
3524
3525 # Add the libdir to current_libdirs if it is the destination.
3526 if test "X$destdir" = "X$libdir"; then
3527 case "$current_libdirs " in
3528 *" $libdir "*) ;;
3529 *) current_libdirs="$current_libdirs $libdir" ;;
3530 esac
3531 else
3532 # Note the libdir as a future libdir.
3533 case "$future_libdirs " in
3534 *" $libdir "*) ;;
3535 *) future_libdirs="$future_libdirs $libdir" ;;
3536 esac
3537 fi
3538
3539 dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
3540 test "X$dir" = "X$file/" && dir=
3541 dir="$dir$objdir"
3542
3543 # See the names of the shared library.
3544 set dummy $library_names
3545 if test -n "$2"; then
3546 realname="$2"
3547 shift
3548 shift
3549
3550 # Install the shared library and build the symlinks.
3551 $show "$install_prog$stripme $dir/$realname $destdir/$realname"
3552 $run eval "$install_prog$stripme $dir/$realname $destdir/$realname" || exit $?
3553
3554 if test $# -gt 0; then
3555 # Delete the old symlinks, and create new ones.
3556 for linkname
3557 do
3558 if test "$linkname" != "$realname"; then
3559 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
3560 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
3561 fi
3562 done
3563 fi
3564
3565 # Do each command in the postinstall commands.
3566 lib="$destdir/$realname"
3567 eval cmds=\"$postinstall_cmds\"
3568 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3569 for cmd in $cmds; do
3570 IFS="$save_ifs"
3571 $show "$cmd"
3572 $run eval "$cmd" || exit $?
3573 done
3574 IFS="$save_ifs"
3575 fi
3576
3577 # Install the pseudo-library for information purposes.
3578 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3579 instname="$dir/$name"i
3580 $show "$install_prog $instname $destdir/$name"
3581 $run eval "$install_prog $instname $destdir/$name" || exit $?
3582
3583 # Maybe install the static library, too.
3584 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3585 ;;
3586
3587 *.lo)
3588 # Install (i.e. copy) a libtool object.
3589
3590 # Figure out destination file name, if it wasn't already specified.
3591 if test -n "$destname"; then
3592 destfile="$destdir/$destname"
3593 else
3594 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3595 destfile="$destdir/$destfile"
3596 fi
3597
3598 # Deduce the name of the destination old-style object file.
3599 case "$destfile" in
3600 *.lo)
3601 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
3602 ;;
3603 *.o | *.obj)
3604 staticdest="$destfile"
3605 destfile=
3606 ;;
3607 *)
3608 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
3609 $echo "$help" 1>&2
3610 exit 1
3611 ;;
3612 esac
3613
3614 # Install the libtool object if requested.
3615 if test -n "$destfile"; then
3616 $show "$install_prog $file $destfile"
3617 $run eval "$install_prog $file $destfile" || exit $?
3618 fi
3619
3620 # Install the old object if enabled.
3621 if test "$build_old_libs" = yes; then
3622 # Deduce the name of the old-style object file.
3623 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
3624
3625 $show "$install_prog $staticobj $staticdest"
3626 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
3627 fi
3628 exit 0
3629 ;;
3630
3631 *)
3632 # Figure out destination file name, if it wasn't already specified.
3633 if test -n "$destname"; then
3634 destfile="$destdir/$destname"
3635 else
3636 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3637 destfile="$destdir/$destfile"
3638 fi
3639
3640 # Do a test to see if this is really a libtool program.
3641 if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
3642 link_against_libtool_libs=
3643 relink_command=
3644
3645 # If there is no directory component, then add one.
3646 case "$file" in
3647 */* | *\\*) . $file ;;
3648 *) . ./$file ;;
3649 esac
3650
3651 # Check the variables that should have been set.
3652 if test -z "$link_against_libtool_libs"; then
3653 $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
3654 exit 1
3655 fi
3656
3657 finalize=yes
3658 for lib in $link_against_libtool_libs; do
3659 # Check to see that each library is installed.
3660 libdir=
3661 if test -f "$lib"; then
3662 # If there is no directory component, then add one.
3663 case "$lib" in
3664 */* | *\\*) . $lib ;;
3665 *) . ./$lib ;;
3666 esac
3667 fi
3668 libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
3669 if test -n "$libdir" && test ! -f "$libfile"; then
3670 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
3671 finalize=no
3672 fi
3673 done
3674
3675 outputname=
3676 if test "$fast_install" = no && test -n "$relink_command"; then
3677 if test "$finalize" = yes && test -z "$run"; then
3678 tmpdir="/tmp"
3679 test -n "$TMPDIR" && tmpdir="$TMPDIR"
3680 tmpdir="$tmpdir/libtool-$$"
3681 if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
3682 else
3683 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
3684 continue
3685 fi
3686 outputname="$tmpdir/$file"
3687 # Replace the output file specification.
3688 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
3689
3690 $show "$relink_command"
3691 if $run eval "$relink_command"; then :
3692 else
3693 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
3694 ${rm}r "$tmpdir"
3695 continue
3696 fi
3697 file="$outputname"
3698 else
3699 $echo "$modename: warning: cannot relink \`$file'" 1>&2
3700 fi
3701 else
3702 # Install the binary that we compiled earlier.
3703 file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
3704 fi
3705 fi
3706
3707 $show "$install_prog$stripme $file $destfile"
3708 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
3709 test -n "$outputname" && ${rm}r "$tmpdir"
3710 ;;
3711 esac
3712 done
3713
3714 for file in $staticlibs; do
3715 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3716
3717 # Set up the ranlib parameters.
3718 oldlib="$destdir/$name"
3719
3720 $show "$install_prog $file $oldlib"
3721 $run eval "$install_prog \$file \$oldlib" || exit $?
3722
3723 # Do each command in the postinstall commands.
3724 eval cmds=\"$old_postinstall_cmds\"
3725 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3726 for cmd in $cmds; do
3727 IFS="$save_ifs"
3728 $show "$cmd"
3729 $run eval "$cmd" || exit $?
3730 done
3731 IFS="$save_ifs"
3732 done
3733
3734 if test -n "$future_libdirs"; then
3735 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
3736 fi
3737
3738 if test -n "$current_libdirs"; then
3739 # Maybe just do a dry run.
3740 test -n "$run" && current_libdirs=" -n$current_libdirs"
3741 exec $SHELL $0 --finish$current_libdirs
3742 exit 1
3743 fi
3744
3745 exit 0
3746 ;;
3747
3748 # libtool finish mode
3749 finish)
3750 modename="$modename: finish"
3751 libdirs="$nonopt"
3752 admincmds=
3753
3754 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
3755 for dir
3756 do
3757 libdirs="$libdirs $dir"
3758 done
3759
3760 for libdir in $libdirs; do
3761 if test -n "$finish_cmds"; then
3762 # Do each command in the finish commands.
3763 eval cmds=\"$finish_cmds\"
3764 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3765 for cmd in $cmds; do
3766 IFS="$save_ifs"
3767 $show "$cmd"
3768 $run eval "$cmd" || admincmds="$admincmds
3769 $cmd"
3770 done
3771 IFS="$save_ifs"
3772 fi
3773 if test -n "$finish_eval"; then
3774 # Do the single finish_eval.
3775 eval cmds=\"$finish_eval\"
3776 $run eval "$cmds" || admincmds="$admincmds
3777 $cmds"
3778 fi
3779 done
3780 fi
3781
3782 # Exit here if they wanted silent mode.
3783 test "$show" = : && exit 0
3784
3785 echo "----------------------------------------------------------------------"
3786 echo "Libraries have been installed in:"
3787 for libdir in $libdirs; do
3788 echo " $libdir"
3789 done
3790 echo
3791 echo "If you ever happen to want to link against installed libraries"
3792 echo "in a given directory, LIBDIR, you must either use libtool, and"
3793 echo "specify the full pathname of the library, or use \`-LLIBDIR'"
3794 echo "flag during linking and do at least one of the following:"
3795 if test -n "$shlibpath_var"; then
3796 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
3797 echo " during execution"
3798 fi
3799 if test -n "$runpath_var"; then
3800 echo " - add LIBDIR to the \`$runpath_var' environment variable"
3801 echo " during linking"
3802 fi
3803 if test -n "$hardcode_libdir_flag_spec"; then
3804 libdir=LIBDIR
3805 eval flag=\"$hardcode_libdir_flag_spec\"
3806
3807 echo " - use the \`$flag' linker flag"
3808 fi
3809 if test -n "$admincmds"; then
3810 echo " - have your system administrator run these commands:$admincmds"
3811 fi
3812 if test -f /etc/ld.so.conf; then
3813 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
3814 fi
3815 echo
3816 echo "See any operating system documentation about shared libraries for"
3817 echo "more information, such as the ld(1) and ld.so(8) manual pages."
3818 echo "----------------------------------------------------------------------"
3819 exit 0
3820 ;;
3821
3822 # libtool execute mode
3823 execute)
3824 modename="$modename: execute"
3825
3826 # The first argument is the command name.
3827 cmd="$nonopt"
3828 if test -z "$cmd"; then
3829 $echo "$modename: you must specify a COMMAND" 1>&2
3830 $echo "$help"
3831 exit 1
3832 fi
3833
3834 # Handle -dlopen flags immediately.
3835 for file in $execute_dlfiles; do
3836 if test ! -f "$file"; then
3837 $echo "$modename: \`$file' is not a file" 1>&2
3838 $echo "$help" 1>&2
3839 exit 1
3840 fi
3841
3842 dir=
3843 case "$file" in
3844 *.la)
3845 # Check to see that this really is a libtool archive.
3846 if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
3847 else
3848 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
3849 $echo "$help" 1>&2
3850 exit 1
3851 fi
3852
3853 # Read the libtool library.
3854 dlname=
3855 library_names=
3856
3857 # If there is no directory component, then add one.
3858 case "$file" in
3859 */* | *\\*) . $file ;;
3860 *) . ./$file ;;
3861 esac
3862
3863 # Skip this library if it cannot be dlopened.
3864 if test -z "$dlname"; then
3865 # Warn if it was a shared library.
3866 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
3867 continue
3868 fi
3869
3870 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
3871 test "X$dir" = "X$file" && dir=.
3872
3873 if test -f "$dir/$objdir/$dlname"; then
3874 dir="$dir/$objdir"
3875 else
3876 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
3877 exit 1
3878 fi
3879 ;;
3880
3881 *.lo)
3882 # Just add the directory containing the .lo file.
3883 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
3884 test "X$dir" = "X$file" && dir=.
3885 ;;
3886
3887 *)
3888 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
3889 continue
3890 ;;
3891 esac
3892
3893 # Get the absolute pathname.
3894 absdir=`cd "$dir" && pwd`
3895 test -n "$absdir" && dir="$absdir"
3896
3897 # Now add the directory to shlibpath_var.
3898 if eval "test -z \"\$$shlibpath_var\""; then
3899 eval "$shlibpath_var=\"\$dir\""
3900 else
3901 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
3902 fi
3903 done
3904
3905 # This variable tells wrapper scripts just to set shlibpath_var
3906 # rather than running their programs.
3907 libtool_execute_magic="$magic"
3908
3909 # Check if any of the arguments is a wrapper script.
3910 args=
3911 for file
3912 do
3913 case "$file" in
3914 -*) ;;
3915 *)
3916 # Do a test to see if this is really a libtool program.
3917 if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
3918 # If there is no directory component, then add one.
3919 case "$file" in
3920 */* | *\\*) . $file ;;
3921 *) . ./$file ;;
3922 esac
3923
3924 # Transform arg to wrapped name.
3925 file="$progdir/$program"
3926 fi
3927 ;;
3928 esac
3929 # Quote arguments (to preserve shell metacharacters).
3930 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
3931 args="$args \"$file\""
3932 done
3933
3934 if test -z "$run"; then
3935 # Export the shlibpath_var.
3936 eval "export $shlibpath_var"
3937
3938 # Restore saved enviroment variables
3939 if test "${save_LC_ALL+set}" = set; then
3940 LC_ALL="$save_LC_ALL"; export LC_ALL
3941 fi
3942 if test "${save_LANG+set}" = set; then
3943 LANG="$save_LANG"; export LANG
3944 fi
3945
3946 # Now actually exec the command.
3947 eval "exec \$cmd$args"
3948
3949 $echo "$modename: cannot exec \$cmd$args"
3950 exit 1
3951 else
3952 # Display what would be done.
3953 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
3954 $echo "export $shlibpath_var"
3955 $echo "$cmd$args"
3956 exit 0
3957 fi
3958 ;;
3959
3960 # libtool uninstall mode
3961 uninstall)
3962 modename="$modename: uninstall"
3963 rm="$nonopt"
3964 files=
3965
3966 for arg
3967 do
3968 case "$arg" in
3969 -*) rm="$rm $arg" ;;
3970 *) files="$files $arg" ;;
3971 esac
3972 done
3973
3974 if test -z "$rm"; then
3975 $echo "$modename: you must specify an RM program" 1>&2
3976 $echo "$help" 1>&2
3977 exit 1
3978 fi
3979
3980 for file in $files; do
3981 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
3982 test "X$dir" = "X$file" && dir=.
3983 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3984
3985 rmfiles="$file"
3986
3987 case "$name" in
3988 *.la)
3989 # Possibly a libtool archive, so verify it.
3990 if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
3991 . $dir/$name
3992
3993 # Delete the libtool libraries and symlinks.
3994 for n in $library_names; do
3995 rmfiles="$rmfiles $dir/$n"
3996 done
3997 test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
3998
3999 $show "$rm $rmfiles"
4000 $run $rm $rmfiles
4001
4002 if test -n "$library_names"; then
4003 # Do each command in the postuninstall commands.
4004 eval cmds=\"$postuninstall_cmds\"
4005 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
4006 for cmd in $cmds; do
4007 IFS="$save_ifs"
4008 $show "$cmd"
4009 $run eval "$cmd"
4010 done
4011 IFS="$save_ifs"
4012 fi
4013
4014 if test -n "$old_library"; then
4015 # Do each command in the old_postuninstall commands.
4016 eval cmds=\"$old_postuninstall_cmds\"
4017 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
4018 for cmd in $cmds; do
4019 IFS="$save_ifs"
4020 $show "$cmd"
4021 $run eval "$cmd"
4022 done
4023 IFS="$save_ifs"
4024 fi
4025
4026 # FIXME: should reinstall the best remaining shared library.
4027 fi
4028 ;;
4029
4030 *.lo)
4031 if test "$build_old_libs" = yes; then
4032 oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
4033 rmfiles="$rmfiles $dir/$oldobj"
4034 fi
4035 $show "$rm $rmfiles"
4036 $run $rm $rmfiles
4037 ;;
4038
4039 *)
4040 $show "$rm $rmfiles"
4041 $run $rm $rmfiles
4042 ;;
4043 esac
4044 done
4045 exit 0
4046 ;;
4047
4048 "")
4049 $echo "$modename: you must specify a MODE" 1>&2
4050 $echo "$generic_help" 1>&2
4051 exit 1
4052 ;;
4053 esac
4054
4055 $echo "$modename: invalid operation mode \`$mode'" 1>&2
4056 $echo "$generic_help" 1>&2
4057 exit 1
4058fi # test -z "$show_help"
4059
4060# We need to display help for each of the modes.
4061case "$mode" in
4062"") $echo \
4063"Usage: $modename [OPTION]... [MODE-ARG]...
4064
4065Provide generalized library-building support services.
4066
4067 --config show all configuration variables
4068 --debug enable verbose shell tracing
4069-n, --dry-run display commands without modifying any files
4070 --features display basic configuration information and exit
4071 --finish same as \`--mode=finish'
4072 --help display this help message and exit
4073 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
4074 --quiet same as \`--silent'
4075 --silent don't print informational messages
4076 --version print version information
4077
4078MODE must be one of the following:
4079
4080 compile compile a source file into a libtool object
4081 execute automatically set library path, then run a program
4082 finish complete the installation of libtool libraries
4083 install install libraries or executables
4084 link create a library or an executable
4085 uninstall remove libraries from an installed directory
4086
4087MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
4088a more detailed description of MODE."
4089 exit 0
4090 ;;
4091
4092compile)
4093 $echo \
4094"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
4095
4096Compile a source file into a libtool library object.
4097
4098This mode accepts the following additional options:
4099
4100 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
4101 -static always build a \`.o' file suitable for static linking
4102
4103COMPILE-COMMAND is a command to be used in creating a \`standard' object file
4104from the given SOURCEFILE.
4105
4106The output file name is determined by removing the directory component from
4107SOURCEFILE, then substituting the C source code suffix \`.c' with the
4108library object suffix, \`.lo'."
4109 ;;
4110
4111execute)
4112 $echo \
4113"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
4114
4115Automatically set library path, then run a program.
4116
4117This mode accepts the following additional options:
4118
4119 -dlopen FILE add the directory containing FILE to the library path
4120
4121This mode sets the library path environment variable according to \`-dlopen'
4122flags.
4123
4124If any of the ARGS are libtool executable wrappers, then they are translated
4125into their corresponding uninstalled binary, and any of their required library
4126directories are added to the library path.
4127
4128Then, COMMAND is executed, with ARGS as arguments."
4129 ;;
4130
4131finish)
4132 $echo \
4133"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
4134
4135Complete the installation of libtool libraries.
4136
4137Each LIBDIR is a directory that contains libtool libraries.
4138
4139The commands that this mode executes may require superuser privileges. Use
4140the \`--dry-run' option if you just want to see what would be executed."
4141 ;;
4142
4143install)
4144 $echo \
4145"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
4146
4147Install executables or libraries.
4148
4149INSTALL-COMMAND is the installation command. The first component should be
4150either the \`install' or \`cp' program.
4151
4152The rest of the components are interpreted as arguments to that command (only
4153BSD-compatible install options are recognized)."
4154 ;;
4155
4156link)
4157 $echo \
4158"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
4159
4160Link object files or libraries together to form another library, or to
4161create an executable program.
4162
4163LINK-COMMAND is a command using the C compiler that you would use to create
4164a program from several object files.
4165
4166The following components of LINK-COMMAND are treated specially:
4167
4168 -all-static do not do any dynamic linking at all
4169 -avoid-version do not add a version suffix if possible
4170 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
4171 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
4172 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
4173 -export-symbols SYMFILE
4174 try to export only the symbols listed in SYMFILE
4175 -export-symbols-regex REGEX
4176 try to export only the symbols matching REGEX
4177 -LLIBDIR search LIBDIR for required installed libraries
4178 -lNAME OUTPUT-FILE requires the installed library libNAME
4179 -module build a library that can dlopened
4180 -no-undefined declare that a library does not refer to external symbols
4181 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
4182 -release RELEASE specify package release information
4183 -rpath LIBDIR the created library will eventually be installed in LIBDIR
4184 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
4185 -static do not do any dynamic linking of libtool libraries
4186 -version-info CURRENT[:REVISION[:AGE]]
4187 specify library version info [each variable defaults to 0]
4188
4189All other options (arguments beginning with \`-') are ignored.
4190
4191Every other argument is treated as a filename. Files ending in \`.la' are
4192treated as uninstalled libtool libraries, other files are standard or library
4193object files.
4194
4195If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
4196only library objects (\`.lo' files) may be specified, and \`-rpath' is
4197required, except when creating a convenience library.
4198
4199If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
4200using \`ar' and \`ranlib', or on Windows using \`lib'.
4201
4202If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
4203is created, otherwise an executable program is created."
4204 ;;
4205
4206uninstall)
4207 $echo \
4208"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4209
4210Remove libraries from an installation directory.
4211
4212RM is the name of the program to use to delete files associated with each FILE
4213(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
4214to RM.
4215
4216If FILE is a libtool library, all the files associated with it are deleted.
4217Otherwise, only FILE itself is deleted using RM."
4218 ;;
4219
4220*)
4221 $echo "$modename: invalid operation mode \`$mode'" 1>&2
4222 $echo "$help" 1>&2
4223 exit 1
4224 ;;
4225esac
4226
4227echo
4228$echo "Try \`$modename --help' for more information about other modes."
4229
4230exit 0
4231
4232# Local Variables:
4233# mode:shell-script
4234# sh-indentation:2
4235# End:
diff --git a/xdelta1/ltconfig b/xdelta1/ltconfig
deleted file mode 100755
index 65ec6f6..0000000
--- a/xdelta1/ltconfig
+++ /dev/null
@@ -1,3017 +0,0 @@
1#! /bin/sh
2
3# ltconfig - Create a system-specific libtool.
4# Copyright (C) 1996-1999 Free Software Foundation, Inc.
5# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6#
7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15# General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20#
21# As a special exception to the GNU General Public License, if you
22# distribute this file as part of a program that contains a
23# configuration script generated by Autoconf, you may include it under
24# the same distribution terms that you use for the rest of that program.
25
26# A lot of this script is taken from autoconf-2.10.
27
28# Check that we are running under the correct shell.
29SHELL=${CONFIG_SHELL-/bin/sh}
30echo=echo
31if test "X$1" = X--no-reexec; then
32 # Discard the --no-reexec flag, and continue.
33 shift
34elif test "X$1" = X--fallback-echo; then
35 # Avoid inline document here, it may be left over
36 :
37elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
39 :
40else
41 # Restart under the correct shell.
42 exec "$SHELL" "$0" --no-reexec ${1+"$@"}
43fi
44
45if test "X$1" = X--fallback-echo; then
46 # used as fallback echo
47 shift
48 cat <<EOF
49$*
50EOF
51 exit 0
52fi
53
54# Find the correct PATH separator. Usually this is `:', but
55# DJGPP uses `;' like DOS.
56if test "X${PATH_SEPARATOR+set}" != "Xset"; then
57 UNAME=${UNAME-`uname 2>/dev/null`}
58 case X$UNAME in
59 *-DOS) PATH_SEPARATOR=';' ;;
60 *) PATH_SEPARATOR=':' ;;
61 esac
62fi
63
64# The HP-UX ksh and POSIX shell print the target directory to stdout
65# if CDPATH is set.
66if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
67
68if test "X${echo_test_string+set}" != "Xset"; then
69 # find a string as large as possible, as long as the shell can cope with it
70 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
71 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
72 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
73 echo_test_string="`eval $cmd`" &&
74 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
75 break
76 fi
77 done
78fi
79
80if test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
81 test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
82 # The Solaris, AIX, and Digital Unix default echo programs unquote
83 # backslashes. This makes it impossible to quote backslashes using
84 # echo "$something" | sed 's/\\/\\\\/g'
85 #
86 # So, first we look for a working echo in the user's PATH.
87
88 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
89 for dir in $PATH /usr/ucb; do
90 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
91 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
92 test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
93 echo="$dir/echo"
94 break
95 fi
96 done
97 IFS="$save_ifs"
98
99 if test "X$echo" = Xecho; then
100 # We didn't find a better echo, so look for alternatives.
101 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102 test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
103 # This shell has a builtin print -r that does the trick.
104 echo='print -r'
105 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
106 test "X$CONFIG_SHELL" != X/bin/ksh; then
107 # If we have ksh, try running ltconfig again with it.
108 ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
109 export ORIGINAL_CONFIG_SHELL
110 CONFIG_SHELL=/bin/ksh
111 export CONFIG_SHELL
112 exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
113 else
114 # Try using printf.
115 echo='printf "%s\n"'
116 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
117 test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
118 # Cool, printf works
119 :
120 elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
121 test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
122 CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL"
123 export CONFIG_SHELL
124 SHELL="$CONFIG_SHELL"
125 export SHELL
126 echo="$CONFIG_SHELL $0 --fallback-echo"
127 elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
128 test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
129 echo="$CONFIG_SHELL $0 --fallback-echo"
130 else
131 # maybe with a smaller string...
132 prev=:
133
134 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
135 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
136 break
137 fi
138 prev="$cmd"
139 done
140
141 if test "$prev" != 'sed 50q "$0"'; then
142 echo_test_string=`eval $prev`
143 export echo_test_string
144 exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
145 else
146 # Oops. We lost completely, so just stick with echo.
147 echo=echo
148 fi
149 fi
150 fi
151 fi
152fi
153
154# Sed substitution that helps us do robust quoting. It backslashifies
155# metacharacters that are still active within double-quoted strings.
156Xsed='sed -e s/^X//'
157sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
158
159# Same as above, but do not quote variable references.
160double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
161
162# Sed substitution to delay expansion of an escaped shell variable in a
163# double_quote_subst'ed string.
164delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
165
166# The name of this program.
167progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
168
169# Constants:
170PROGRAM=ltconfig
171PACKAGE=libtool
172VERSION=1.3.3
173TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
175ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
176rm="rm -f"
177
178help="Try \`$progname --help' for more information."
179
180# Global variables:
181default_ofile=libtool
182can_build_shared=yes
183enable_shared=yes
184# All known linkers require a `.a' archive for static linking (except M$VC,
185# which needs '.lib').
186enable_static=yes
187enable_fast_install=yes
188enable_dlopen=unknown
189enable_win32_dll=no
190ltmain=
191silent=
192srcdir=
193ac_config_guess=
194ac_config_sub=
195host=
196nonopt=
197ofile="$default_ofile"
198verify_host=yes
199with_gcc=no
200with_gnu_ld=no
201need_locks=yes
202ac_ext=c
203objext=o
204libext=a
205exeext=
206cache_file=
207
208old_AR="$AR"
209old_CC="$CC"
210old_CFLAGS="$CFLAGS"
211old_CPPFLAGS="$CPPFLAGS"
212old_LDFLAGS="$LDFLAGS"
213old_LD="$LD"
214old_LN_S="$LN_S"
215old_LIBS="$LIBS"
216old_NM="$NM"
217old_RANLIB="$RANLIB"
218old_DLLTOOL="$DLLTOOL"
219old_OBJDUMP="$OBJDUMP"
220old_AS="$AS"
221
222# Parse the command line options.
223args=
224prev=
225for option
226do
227 case "$option" in
228 -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
229 *) optarg= ;;
230 esac
231
232 # If the previous option needs an argument, assign it.
233 if test -n "$prev"; then
234 eval "$prev=\$option"
235 prev=
236 continue
237 fi
238
239 case "$option" in
240 --help) cat <<EOM
241Usage: $progname [OPTION]... [HOST [LTMAIN]]
242
243Generate a system-specific libtool script.
244
245 --debug enable verbose shell tracing
246 --disable-shared do not build shared libraries
247 --disable-static do not build static libraries
248 --disable-fast-install do not optimize for fast installation
249 --enable-dlopen enable dlopen support
250 --enable-win32-dll enable building dlls on win32 hosts
251 --help display this help and exit
252 --no-verify do not verify that HOST is a valid host type
253-o, --output=FILE specify the output file [default=$default_ofile]
254 --quiet same as \`--silent'
255 --silent do not print informational messages
256 --srcdir=DIR find \`config.guess' in DIR
257 --version output version information and exit
258 --with-gcc assume that the GNU C compiler will be used
259 --with-gnu-ld assume that the C compiler uses the GNU linker
260 --disable-lock disable file locking
261 --cache-file=FILE configure cache file
262
263LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
264that provides basic libtool functionality.
265
266HOST is the canonical host system name [default=guessed].
267EOM
268 exit 0
269 ;;
270
271 --debug)
272 echo "$progname: enabling shell trace mode"
273 set -x
274 ;;
275
276 --disable-shared) enable_shared=no ;;
277
278 --disable-static) enable_static=no ;;
279
280 --disable-fast-install) enable_fast_install=no ;;
281
282 --enable-dlopen) enable_dlopen=yes ;;
283
284 --enable-win32-dll) enable_win32_dll=yes ;;
285
286 --quiet | --silent) silent=yes ;;
287
288 --srcdir) prev=srcdir ;;
289 --srcdir=*) srcdir="$optarg" ;;
290
291 --no-verify) verify_host=no ;;
292
293 --output | -o) prev=ofile ;;
294 --output=*) ofile="$optarg" ;;
295
296 --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
297
298 --with-gcc) with_gcc=yes ;;
299 --with-gnu-ld) with_gnu_ld=yes ;;
300
301 --disable-lock) need_locks=no ;;
302
303 --cache-file=*) cache_file="$optarg" ;;
304
305 -*)
306 echo "$progname: unrecognized option \`$option'" 1>&2
307 echo "$help" 1>&2
308 exit 1
309 ;;
310
311 *)
312 if test -z "$ltmain"; then
313 ltmain="$option"
314 elif test -z "$host"; then
315# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
316# if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
317# echo "$progname: warning \`$option' is not a valid host type" 1>&2
318# fi
319 host="$option"
320 else
321 echo "$progname: too many arguments" 1>&2
322 echo "$help" 1>&2
323 exit 1
324 fi ;;
325 esac
326done
327
328if test -z "$ltmain"; then
329 echo "$progname: you must specify a LTMAIN file" 1>&2
330 echo "$help" 1>&2
331 exit 1
332fi
333
334if test ! -f "$ltmain"; then
335 echo "$progname: \`$ltmain' does not exist" 1>&2
336 echo "$help" 1>&2
337 exit 1
338fi
339
340# Quote any args containing shell metacharacters.
341ltconfig_args=
342for arg
343do
344 case "$arg" in
345 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
346 ltconfig_args="$ltconfig_args '$arg'" ;;
347 *) ltconfig_args="$ltconfig_args $arg" ;;
348 esac
349done
350
351# A relevant subset of AC_INIT.
352
353# File descriptor usage:
354# 0 standard input
355# 1 file creation
356# 2 errors and warnings
357# 3 some systems may open it to /dev/tty
358# 4 used on the Kubota Titan
359# 5 compiler messages saved in config.log
360# 6 checking for... messages and results
361if test "$silent" = yes; then
362 exec 6>/dev/null
363else
364 exec 6>&1
365fi
366exec 5>>./config.log
367
368# NLS nuisances.
369# Only set LANG and LC_ALL to C if already set.
370# These must not be set unconditionally because not all systems understand
371# e.g. LANG=C (notably SCO).
372if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
373if test "${LANG+set}" = set; then LANG=C; export LANG; fi
374
375if test -n "$cache_file" && test -r "$cache_file"; then
376 echo "loading cache $cache_file within ltconfig"
377 . $cache_file
378fi
379
380if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
381 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
382 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
383 ac_n= ac_c='
384' ac_t=' '
385 else
386 ac_n=-n ac_c= ac_t=
387 fi
388else
389 ac_n= ac_c='\c' ac_t=
390fi
391
392if test -z "$srcdir"; then
393 # Assume the source directory is the same one as the path to LTMAIN.
394 srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
395 test "$srcdir" = "$ltmain" && srcdir=.
396fi
397
398trap "$rm conftest*; exit 1" 1 2 15
399if test "$verify_host" = yes; then
400 # Check for config.guess and config.sub.
401 ac_aux_dir=
402 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
403 if test -f $ac_dir/config.guess; then
404 ac_aux_dir=$ac_dir
405 break
406 fi
407 done
408 if test -z "$ac_aux_dir"; then
409 echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
410 echo "$help" 1>&2
411 exit 1
412 fi
413 ac_config_guess=$ac_aux_dir/config.guess
414 ac_config_sub=$ac_aux_dir/config.sub
415
416 # Make sure we can run config.sub.
417 if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
418 else
419 echo "$progname: cannot run $ac_config_sub" 1>&2
420 echo "$help" 1>&2
421 exit 1
422 fi
423
424 echo $ac_n "checking host system type""... $ac_c" 1>&6
425
426 host_alias=$host
427 case "$host_alias" in
428 "")
429 if host_alias=`$SHELL $ac_config_guess`; then :
430 else
431 echo "$progname: cannot guess host type; you must specify one" 1>&2
432 echo "$help" 1>&2
433 exit 1
434 fi ;;
435 esac
436 host=`$SHELL $ac_config_sub $host_alias`
437 echo "$ac_t$host" 1>&6
438
439 # Make sure the host verified.
440 test -z "$host" && exit 1
441
442elif test -z "$host"; then
443 echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
444 echo "$help" 1>&2
445 exit 1
446else
447 host_alias=$host
448fi
449
450# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
451case "$host_os" in
452linux-gnu*) ;;
453linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
454esac
455
456host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
457host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
458host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
459
460case "$host_os" in
461aix3*)
462 # AIX sometimes has problems with the GCC collect2 program. For some
463 # reason, if we set the COLLECT_NAMES environment variable, the problems
464 # vanish in a puff of smoke.
465 if test "${COLLECT_NAMES+set}" != set; then
466 COLLECT_NAMES=
467 export COLLECT_NAMES
468 fi
469 ;;
470esac
471
472# Determine commands to create old-style static archives.
473old_archive_cmds='$AR cru $oldlib$oldobjs'
474old_postinstall_cmds='chmod 644 $oldlib'
475old_postuninstall_cmds=
476
477# Set a sane default for `AR'.
478test -z "$AR" && AR=ar
479
480# Set a sane default for `OBJDUMP'.
481test -z "$OBJDUMP" && OBJDUMP=objdump
482
483# If RANLIB is not set, then run the test.
484if test "${RANLIB+set}" != "set"; then
485 result=no
486
487 echo $ac_n "checking for ranlib... $ac_c" 1>&6
488 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
489 for dir in $PATH; do
490 test -z "$dir" && dir=.
491 if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
492 RANLIB="ranlib"
493 result="ranlib"
494 break
495 fi
496 done
497 IFS="$save_ifs"
498
499 echo "$ac_t$result" 1>&6
500fi
501
502if test -n "$RANLIB"; then
503 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
504 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
505fi
506
507# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
508test -z "$DLLTOOL" && DLLTOOL=dlltool
509test -z "$OBJDUMP" && OBJDUMP=objdump
510test -z "$AS" && AS=as
511
512# Check to see if we are using GCC.
513if test "$with_gcc" != yes || test -z "$CC"; then
514 # If CC is not set, then try to find GCC or a usable CC.
515 if test -z "$CC"; then
516 echo $ac_n "checking for gcc... $ac_c" 1>&6
517 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
518 for dir in $PATH; do
519 test -z "$dir" && dir=.
520 if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
521 CC="gcc"
522 break
523 fi
524 done
525 IFS="$save_ifs"
526
527 if test -n "$CC"; then
528 echo "$ac_t$CC" 1>&6
529 else
530 echo "$ac_t"no 1>&6
531 fi
532 fi
533
534 # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
535 if test -z "$CC"; then
536 echo $ac_n "checking for cc... $ac_c" 1>&6
537 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
538 cc_rejected=no
539 for dir in $PATH; do
540 test -z "$dir" && dir=.
541 if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
542 if test "$dir/cc" = "/usr/ucb/cc"; then
543 cc_rejected=yes
544 continue
545 fi
546 CC="cc"
547 break
548 fi
549 done
550 IFS="$save_ifs"
551 if test $cc_rejected = yes; then
552 # We found a bogon in the path, so make sure we never use it.
553 set dummy $CC
554 shift
555 if test $# -gt 0; then
556 # We chose a different compiler from the bogus one.
557 # However, it has the same name, so the bogon will be chosen
558 # first if we set CC to just the name; use the full file name.
559 shift
560 set dummy "$dir/cc" "$@"
561 shift
562 CC="$@"
563 fi
564 fi
565
566 if test -n "$CC"; then
567 echo "$ac_t$CC" 1>&6
568 else
569 echo "$ac_t"no 1>&6
570 fi
571
572 if test -z "$CC"; then
573 echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
574 exit 1
575 fi
576 fi
577
578 # Now see if the compiler is really GCC.
579 with_gcc=no
580 echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
581 echo "$progname:581: checking whether we are using GNU C" >&5
582
583 $rm conftest.c
584 cat > conftest.c <<EOF
585#ifdef __GNUC__
586 yes;
587#endif
588EOF
589 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
590 with_gcc=yes
591 fi
592 $rm conftest.c
593 echo "$ac_t$with_gcc" 1>&6
594fi
595
596# Allow CC to be a program name with arguments.
597set dummy $CC
598compiler="$2"
599
600echo $ac_n "checking for object suffix... $ac_c" 1>&6
601$rm conftest*
602echo 'int i = 1;' > conftest.c
603echo "$progname:603: checking for object suffix" >& 5
604if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
605 # Append any warnings to the config.log.
606 cat conftest.err 1>&5
607
608 for ac_file in conftest.*; do
609 case $ac_file in
610 *.c) ;;
611 *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
612 esac
613 done
614else
615 cat conftest.err 1>&5
616 echo "$progname: failed program was:" >&5
617 cat conftest.c >&5
618fi
619$rm conftest*
620echo "$ac_t$objext" 1>&6
621
622echo $ac_n "checking for executable suffix... $ac_c" 1>&6
623if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
625else
626 ac_cv_exeext="no"
627 $rm conftest*
628 echo 'main () { return 0; }' > conftest.c
629 echo "$progname:629: checking for executable suffix" >& 5
630 if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
631 # Append any warnings to the config.log.
632 cat conftest.err 1>&5
633
634 for ac_file in conftest.*; do
635 case $ac_file in
636 *.c | *.err | *.$objext ) ;;
637 *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
638 esac
639 done
640 else
641 cat conftest.err 1>&5
642 echo "$progname: failed program was:" >&5
643 cat conftest.c >&5
644 fi
645 $rm conftest*
646fi
647if test "X$ac_cv_exeext" = Xno; then
648 exeext=""
649else
650 exeext="$ac_cv_exeext"
651fi
652echo "$ac_t$ac_cv_exeext" 1>&6
653
654echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
655pic_flag=
656special_shlib_compile_flags=
657wl=
658link_static_flag=
659no_builtin_flag=
660
661if test "$with_gcc" = yes; then
662 wl='-Wl,'
663 link_static_flag='-static'
664
665 case "$host_os" in
666 beos* | irix5* | irix6* | osf3* | osf4*)
667 # PIC is the default for these OSes.
668 ;;
669 aix*)
670 # Below there is a dirty hack to force normal static linking with -ldl
671 # The problem is because libdl dynamically linked with both libc and
672 # libC (AIX C++ library), which obviously doesn't included in libraries
673 # list by gcc. This cause undefined symbols with -static flags.
674 # This hack allows C programs to be linked with "-static -ldl", but
675 # we not sure about C++ programs.
676 link_static_flag="$link_static_flag ${wl}-lC"
677 ;;
678 cygwin* | mingw* | os2*)
679 # We can build DLLs from non-PIC.
680 ;;
681 amigaos*)
682 # FIXME: we need at least 68020 code to build shared libraries, but
683 # adding the `-m68020' flag to GCC prevents building anything better,
684 # like `-m68040'.
685 pic_flag='-m68020 -resident32 -malways-restore-a4'
686 ;;
687 sysv4*MP*)
688 if test -d /usr/nec; then
689 pic_flag=-Kconform_pic
690 fi
691 ;;
692 *)
693 pic_flag='-fPIC'
694 ;;
695 esac
696else
697 # PORTME Check for PIC flags for the system compiler.
698 case "$host_os" in
699 aix3* | aix4*)
700 # All AIX code is PIC.
701 link_static_flag='-bnso -bI:/lib/syscalls.exp'
702 ;;
703
704 hpux9* | hpux10* | hpux11*)
705 # Is there a better link_static_flag that works with the bundled CC?
706 wl='-Wl,'
707 link_static_flag="${wl}-a ${wl}archive"
708 pic_flag='+Z'
709 ;;
710
711 irix5* | irix6*)
712 wl='-Wl,'
713 link_static_flag='-non_shared'
714 # PIC (with -KPIC) is the default.
715 ;;
716
717 cygwin* | mingw* | os2*)
718 # We can build DLLs from non-PIC.
719 ;;
720
721 osf3* | osf4*)
722 # All OSF/1 code is PIC.
723 wl='-Wl,'
724 link_static_flag='-non_shared'
725 ;;
726
727 sco3.2v5*)
728 pic_flag='-Kpic'
729 link_static_flag='-dn'
730 special_shlib_compile_flags='-belf'
731 ;;
732
733 solaris*)
734 pic_flag='-KPIC'
735 link_static_flag='-Bstatic'
736 wl='-Wl,'
737 ;;
738
739 sunos4*)
740 pic_flag='-PIC'
741 link_static_flag='-Bstatic'
742 wl='-Qoption ld '
743 ;;
744
745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
746 pic_flag='-KPIC'
747 link_static_flag='-Bstatic'
748 wl='-Wl,'
749 ;;
750
751 uts4*)
752 pic_flag='-pic'
753 link_static_flag='-Bstatic'
754 ;;
755 sysv4*MP*)
756 if test -d /usr/nec ;then
757 pic_flag='-Kconform_pic'
758 link_static_flag='-Bstatic'
759 fi
760 ;;
761 *)
762 can_build_shared=no
763 ;;
764 esac
765fi
766
767if test -n "$pic_flag"; then
768 echo "$ac_t$pic_flag" 1>&6
769
770 # Check to make sure the pic_flag actually works.
771 echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
772 $rm conftest*
773 echo "int some_variable = 0;" > conftest.c
774 save_CFLAGS="$CFLAGS"
775 CFLAGS="$CFLAGS $pic_flag -DPIC"
776 echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5
777 if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
778 # Append any warnings to the config.log.
779 cat conftest.err 1>&5
780
781 case "$host_os" in
782 hpux9* | hpux10* | hpux11*)
783 # On HP-UX, both CC and GCC only warn that PIC is supported... then they
784 # create non-PIC objects. So, if there were any warnings, we assume that
785 # PIC is not supported.
786 if test -s conftest.err; then
787 echo "$ac_t"no 1>&6
788 can_build_shared=no
789 pic_flag=
790 else
791 echo "$ac_t"yes 1>&6
792 pic_flag=" $pic_flag"
793 fi
794 ;;
795 *)
796 echo "$ac_t"yes 1>&6
797 pic_flag=" $pic_flag"
798 ;;
799 esac
800 else
801 # Append any errors to the config.log.
802 cat conftest.err 1>&5
803 can_build_shared=no
804 pic_flag=
805 echo "$ac_t"no 1>&6
806 fi
807 CFLAGS="$save_CFLAGS"
808 $rm conftest*
809else
810 echo "$ac_t"none 1>&6
811fi
812
813# Check to see if options -o and -c are simultaneously supported by compiler
814echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
815$rm -r conftest 2>/dev/null
816mkdir conftest
817cd conftest
818$rm conftest*
819echo "int some_variable = 0;" > conftest.c
820mkdir out
821# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
822# that will create temporary files in the current directory regardless of
823# the output directory. Thus, making CWD read-only will cause this test
824# to fail, enabling locking or at least warning the user not to do parallel
825# builds.
826chmod -w .
827save_CFLAGS="$CFLAGS"
828CFLAGS="$CFLAGS -o out/conftest2.o"
829echo "$progname:829: checking if $compiler supports -c -o file.o" >&5
830if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
831
832 # The compiler can only warn and ignore the option if not recognized
833 # So say no if there are warnings
834 if test -s out/conftest.err; then
835 echo "$ac_t"no 1>&6
836 compiler_c_o=no
837 else
838 echo "$ac_t"yes 1>&6
839 compiler_c_o=yes
840 fi
841else
842 # Append any errors to the config.log.
843 cat out/conftest.err 1>&5
844 compiler_c_o=no
845 echo "$ac_t"no 1>&6
846fi
847CFLAGS="$save_CFLAGS"
848chmod u+w .
849$rm conftest* out/*
850rmdir out
851cd ..
852rmdir conftest
853$rm -r conftest 2>/dev/null
854
855if test x"$compiler_c_o" = x"yes"; then
856 # Check to see if we can write to a .lo
857 echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6
858 $rm conftest*
859 echo "int some_variable = 0;" > conftest.c
860 save_CFLAGS="$CFLAGS"
861 CFLAGS="$CFLAGS -c -o conftest.lo"
862 echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5
863if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
864
865 # The compiler can only warn and ignore the option if not recognized
866 # So say no if there are warnings
867 if test -s conftest.err; then
868 echo "$ac_t"no 1>&6
869 compiler_o_lo=no
870 else
871 echo "$ac_t"yes 1>&6
872 compiler_o_lo=yes
873 fi
874 else
875 # Append any errors to the config.log.
876 cat conftest.err 1>&5
877 compiler_o_lo=no
878 echo "$ac_t"no 1>&6
879 fi
880 CFLAGS="$save_CFLAGS"
881 $rm conftest*
882else
883 compiler_o_lo=no
884fi
885
886# Check to see if we can do hard links to lock some files if needed
887hard_links="nottested"
888if test "$compiler_c_o" = no && test "$need_locks" != no; then
889 # do not overwrite the value of need_locks provided by the user
890 echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6
891 hard_links=yes
892 $rm conftest*
893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
894 touch conftest.a
895 ln conftest.a conftest.b 2>&5 || hard_links=no
896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
897 echo "$ac_t$hard_links" 1>&6
898 $rm conftest*
899 if test "$hard_links" = no; then
900 echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2
901 need_locks=warn
902 fi
903else
904 need_locks=no
905fi
906
907if test "$with_gcc" = yes; then
908 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
909 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6
910 $rm conftest*
911 echo "int some_variable = 0;" > conftest.c
912 save_CFLAGS="$CFLAGS"
913 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
914 echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
915 if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
916
917 # The compiler can only warn and ignore the option if not recognized
918 # So say no if there are warnings
919 if test -s conftest.err; then
920 echo "$ac_t"no 1>&6
921 compiler_rtti_exceptions=no
922 else
923 echo "$ac_t"yes 1>&6
924 compiler_rtti_exceptions=yes
925 fi
926 else
927 # Append any errors to the config.log.
928 cat conftest.err 1>&5
929 compiler_rtti_exceptions=no
930 echo "$ac_t"no 1>&6
931 fi
932 CFLAGS="$save_CFLAGS"
933 $rm conftest*
934
935 if test "$compiler_rtti_exceptions" = "yes"; then
936 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
937 else
938 no_builtin_flag=' -fno-builtin'
939 fi
940
941fi
942
943# Check for any special shared library compilation flags.
944if test -n "$special_shlib_compile_flags"; then
945 echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
946 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$special_shlib_compile_flags[ ]" >/dev/null; then :
947 else
948 echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
949 can_build_shared=no
950 fi
951fi
952
953echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
954$rm conftest*
955echo 'main(){return(0);}' > conftest.c
956save_LDFLAGS="$LDFLAGS"
957LDFLAGS="$LDFLAGS $link_static_flag"
958echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5
959if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
960 echo "$ac_t$link_static_flag" 1>&6
961else
962 echo "$ac_t"none 1>&6
963 link_static_flag=
964fi
965LDFLAGS="$save_LDFLAGS"
966$rm conftest*
967
968if test -z "$LN_S"; then
969 # Check to see if we can use ln -s, or we need hard links.
970 echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
971 $rm conftest.dat
972 if ln -s X conftest.dat 2>/dev/null; then
973 $rm conftest.dat
974 LN_S="ln -s"
975 else
976 LN_S=ln
977 fi
978 if test "$LN_S" = "ln -s"; then
979 echo "$ac_t"yes 1>&6
980 else
981 echo "$ac_t"no 1>&6
982 fi
983fi
984
985# Make sure LD is an absolute path.
986if test -z "$LD"; then
987 ac_prog=ld
988 if test "$with_gcc" = yes; then
989 # Check if gcc -print-prog-name=ld gives a path.
990 echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
991 echo "$progname:991: checking for ld used by GCC" >&5
992 ac_prog=`($CC -print-prog-name=ld) 2>&5`
993 case "$ac_prog" in
994 # Accept absolute paths.
995 [\\/]* | [A-Za-z]:[\\/]*)
996 re_direlt='/[^/][^/]*/\.\./'
997 # Canonicalize the path of ld
998 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1000 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1001 done
1002 test -z "$LD" && LD="$ac_prog"
1003 ;;
1004 "")
1005 # If it fails, then pretend we are not using GCC.
1006 ac_prog=ld
1007 ;;
1008 *)
1009 # If it is relative, then search for the first ld in PATH.
1010 with_gnu_ld=unknown
1011 ;;
1012 esac
1013 elif test "$with_gnu_ld" = yes; then
1014 echo $ac_n "checking for GNU ld... $ac_c" 1>&6
1015 echo "$progname:1015: checking for GNU ld" >&5
1016 else
1017 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1018 echo "$progname:1018: checking for non-GNU ld" >&5
1019 fi
1020
1021 if test -z "$LD"; then
1022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
1023 for ac_dir in $PATH; do
1024 test -z "$ac_dir" && ac_dir=.
1025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1026 LD="$ac_dir/$ac_prog"
1027 # Check to see if the program is GNU ld. I'd rather use --version,
1028 # but apparently some GNU ld's only accept -v.
1029 # Break only if it was the GNU/non-GNU ld that we prefer.
1030 if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1031 test "$with_gnu_ld" != no && break
1032 else
1033 test "$with_gnu_ld" != yes && break
1034 fi
1035 fi
1036 done
1037 IFS="$ac_save_ifs"
1038 fi
1039
1040 if test -n "$LD"; then
1041 echo "$ac_t$LD" 1>&6
1042 else
1043 echo "$ac_t"no 1>&6
1044 fi
1045
1046 if test -z "$LD"; then
1047 echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
1048 exit 1
1049 fi
1050fi
1051
1052# Check to see if it really is or is not GNU ld.
1053echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
1054# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1055if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1056 with_gnu_ld=yes
1057else
1058 with_gnu_ld=no
1059fi
1060echo "$ac_t$with_gnu_ld" 1>&6
1061
1062# See if the linker supports building shared libraries.
1063echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
1064
1065allow_undefined_flag=
1066no_undefined_flag=
1067need_lib_prefix=unknown
1068need_version=unknown
1069# when you set need_version to no, make sure it does not cause -set_version
1070# flags to be left without arguments
1071archive_cmds=
1072archive_expsym_cmds=
1073old_archive_from_new_cmds=
1074export_dynamic_flag_spec=
1075whole_archive_flag_spec=
1076thread_safe_flag_spec=
1077hardcode_libdir_flag_spec=
1078hardcode_libdir_separator=
1079hardcode_direct=no
1080hardcode_minus_L=no
1081hardcode_shlibpath_var=unsupported
1082runpath_var=
1083always_export_symbols=no
1084export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
1085# include_expsyms should be a list of space-separated symbols to be *always*
1086# included in the symbol list
1087include_expsyms=
1088# exclude_expsyms can be an egrep regular expression of symbols to exclude
1089# it will be wrapped by ` (' and `)$', so one must not match beginning or
1090# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1091# as well as any symbol that contains `d'.
1092exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
1093# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1094# platforms (ab)use it in PIC code, but their linkers get confused if
1095# the symbol is explicitly referenced. Since portable code cannot
1096# rely on this symbol name, it's probably fine to never include it in
1097# preloaded symbol tables.
1098
1099case "$host_os" in
1100cygwin* | mingw*)
1101 # FIXME: the MSVC++ port hasn't been tested in a loooong time
1102 # When not using gcc, we currently assume that we are using
1103 # Microsoft Visual C++.
1104 if test "$with_gcc" != yes; then
1105 with_gnu_ld=no
1106 fi
1107 ;;
1108
1109esac
1110
1111ld_shlibs=yes
1112if test "$with_gnu_ld" = yes; then
1113 # If archive_cmds runs LD, not CC, wlarc should be empty
1114 wlarc='${wl}'
1115
1116 # See if GNU ld supports shared libraries.
1117 case "$host_os" in
1118 aix3* | aix4*)
1119 # On AIX, the GNU linker is very broken
1120 ld_shlibs=no
1121 cat <<EOF 1>&2
1122
1123*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1124*** to be unable to reliably create shared libraries on AIX.
1125*** Therefore, libtool is disabling shared libraries support. If you
1126*** really care for shared libraries, you may want to modify your PATH
1127*** so that a non-GNU linker is found, and then restart.
1128
1129EOF
1130 ;;
1131
1132 amigaos*)
1133 archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
1134 hardcode_libdir_flag_spec='-L$libdir'
1135 hardcode_minus_L=yes
1136
1137 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1138 # that the semantics of dynamic libraries on AmigaOS, at least up
1139 # to version 4, is to share data among multiple programs linked
1140 # with the same dynamic library. Since this doesn't match the
1141 # behavior of shared libraries on other platforms, we can use
1142 # them.
1143 ld_shlibs=no
1144 ;;
1145
1146 beos*)
1147 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1148 allow_undefined_flag=unsupported
1149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1150 # support --undefined. This deserves some investigation. FIXME
1151 archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
1152 else
1153 ld_shlibs=no
1154 fi
1155 ;;
1156
1157 cygwin* | mingw*)
1158 # hardcode_libdir_flag_spec is actually meaningless, as there is
1159 # no search path for DLLs.
1160 hardcode_libdir_flag_spec='-L$libdir'
1161 allow_undefined_flag=unsupported
1162 always_export_symbols=yes
1163
1164 # Extract the symbol export list from an `--export-all' def file,
1165 # then regenerate the def file from the symbol export list, so that
1166 # the compiled dll only exports the symbol export list.
1167 export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
1168 test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
1169 $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def $objdir/$soname-ltdll.$objext $libobjs $convenience~
1170 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols'
1171
1172 archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
1173 _lt_hint=1;
1174 for symbol in `cat $export_symbols`; do
1175 echo " \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
1176 _lt_hint=`expr 1 + \$_lt_hint`;
1177 done~
1178 test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
1179 test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
1180 $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
1181 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
1182 $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
1183 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
1184 $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'
1185
1186 old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
1187 ;;
1188
1189 netbsd*)
1190 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1191 archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
1192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1193 else
1194 archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
1195 # can we support soname and/or expsyms with a.out? -oliva
1196 fi
1197 ;;
1198
1199 solaris*)
1200 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
1201 ld_shlibs=no
1202 cat <<EOF 1>&2
1203
1204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1205*** create shared libraries on Solaris systems. Therefore, libtool
1206*** is disabling shared libraries support. We urge you to upgrade GNU
1207*** binutils to release 2.9.1 or newer. Another option is to modify
1208*** your PATH or compiler configuration so that the native linker is
1209*** used, and then restart.
1210
1211EOF
1212 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1213 archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
1214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1215 else
1216 ld_shlibs=no
1217 fi
1218 ;;
1219
1220 sunos4*)
1221 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
1222 wlarc=
1223 hardcode_direct=yes
1224 hardcode_shlibpath_var=no
1225 ;;
1226
1227 *)
1228 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1229 archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
1230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1231 else
1232 ld_shlibs=no
1233 fi
1234 ;;
1235 esac
1236
1237 if test "$ld_shlibs" = yes; then
1238 runpath_var=LD_RUN_PATH
1239 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
1240 export_dynamic_flag_spec='${wl}--export-dynamic'
1241 case $host_os in
1242 cygwin* | mingw*)
1243 # dlltool doesn't understand --whole-archive et. al.
1244 whole_archive_flag_spec=
1245 ;;
1246 *)
1247 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1248 ;;
1249 esac
1250 fi
1251else
1252 # PORTME fill in a description of your system's linker (not GNU ld)
1253 case "$host_os" in
1254 aix3*)
1255 allow_undefined_flag=unsupported
1256 always_export_symbols=yes
1257 archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
1258 # Note: this linker hardcodes the directories in LIBPATH if there
1259 # are no directories specified by -L.
1260 hardcode_minus_L=yes
1261 if test "$with_gcc" = yes && test -z "$link_static_flag"; then
1262 # Neither direct hardcoding nor static linking is supported with a
1263 # broken collect2.
1264 hardcode_direct=unsupported
1265 fi
1266 ;;
1267
1268 aix4*)
1269 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
1270 hardcode_libdir_separator=':'
1271 if test "$with_gcc" = yes; then
1272 collect2name=`${CC} -print-prog-name=collect2`
1273 if test -f "$collect2name" && \
1274 strings "$collect2name" | grep resolve_lib_name >/dev/null
1275 then
1276 # We have reworked collect2
1277 hardcode_direct=yes
1278 else
1279 # We have old collect2
1280 hardcode_direct=unsupported
1281 # It fails to find uninstalled libraries when the uninstalled
1282 # path is not listed in the libpath. Setting hardcode_minus_L
1283 # to unsupported forces relinking
1284 hardcode_minus_L=yes
1285 hardcode_libdir_flag_spec='-L$libdir'
1286 hardcode_libdir_separator=
1287 fi
1288 shared_flag='-shared'
1289 else
1290 shared_flag='${wl}-bM:SRE'
1291 hardcode_direct=yes
1292 fi
1293 allow_undefined_flag=' ${wl}-berok'
1294 archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
1295 archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
1296 case "$host_os" in aix4.[01]|aix4.[01].*)
1297 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
1298 always_export_symbols=yes ;;
1299 esac
1300 ;;
1301
1302 amigaos*)
1303 archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
1304 hardcode_libdir_flag_spec='-L$libdir'
1305 hardcode_minus_L=yes
1306 # see comment about different semantics on the GNU ld section
1307 ld_shlibs=no
1308 ;;
1309
1310 cygwin* | mingw*)
1311 # When not using gcc, we currently assume that we are using
1312 # Microsoft Visual C++.
1313 # hardcode_libdir_flag_spec is actually meaningless, as there is
1314 # no search path for DLLs.
1315 hardcode_libdir_flag_spec=' '
1316 allow_undefined_flag=unsupported
1317 # Tell ltmain to make .lib files, not .a files.
1318 libext=lib
1319 # FIXME: Setting linknames here is a bad hack.
1320 archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
1321 # The linker will automatically build a .lib file if we build a DLL.
1322 old_archive_from_new_cmds='true'
1323 # FIXME: Should let the user specify the lib program.
1324 old_archive_cmds='lib /OUT:$oldlib$oldobjs'
1325 fix_srcfile_path='`cygpath -w $srcfile`'
1326 ;;
1327
1328 freebsd1*)
1329 ld_shlibs=no
1330 ;;
1331
1332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1333 # support. Future versions do this automatically, but an explicit c++rt0.o
1334 # does not break anything, and helps significantly (at the cost of a little
1335 # extra space).
1336 freebsd2.2*)
1337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
1338 hardcode_libdir_flag_spec='-R$libdir'
1339 hardcode_direct=yes
1340 hardcode_shlibpath_var=no
1341 ;;
1342
1343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1344 freebsd2*)
1345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
1346 hardcode_direct=yes
1347 hardcode_minus_L=yes
1348 hardcode_shlibpath_var=no
1349 ;;
1350
1351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1352 freebsd*)
1353 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
1354 hardcode_libdir_flag_spec='-R$libdir'
1355 hardcode_direct=yes
1356 hardcode_shlibpath_var=no
1357 ;;
1358
1359 hpux9* | hpux10* | hpux11*)
1360 case "$host_os" in
1361 hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
1362 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
1363 esac
1364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1365 hardcode_libdir_separator=:
1366 hardcode_direct=yes
1367 hardcode_minus_L=yes # Not in the search PATH, but as the default
1368 # location of the library.
1369 export_dynamic_flag_spec='${wl}-E'
1370 ;;
1371
1372 irix5* | irix6*)
1373 if test "$with_gcc" = yes; then
1374 archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
1375 else
1376 archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1377 fi
1378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1379 hardcode_libdir_separator=:
1380 ;;
1381
1382 netbsd*)
1383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' # a.out
1385 else
1386 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts' # ELF
1387 fi
1388 hardcode_libdir_flag_spec='${wl}-R$libdir'
1389 hardcode_direct=yes
1390 hardcode_shlibpath_var=no
1391 ;;
1392
1393 openbsd*)
1394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
1395 hardcode_libdir_flag_spec='-R$libdir'
1396 hardcode_direct=yes
1397 hardcode_shlibpath_var=no
1398 ;;
1399
1400 os2*)
1401 hardcode_libdir_flag_spec='-L$libdir'
1402 hardcode_minus_L=yes
1403 allow_undefined_flag=unsupported
1404 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
1405 old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
1406 ;;
1407
1408 osf3* | osf4*)
1409 if test "$with_gcc" = yes; then
1410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1411 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
1412 else
1413 allow_undefined_flag=' -expect_unresolved \*'
1414 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1415 fi
1416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1417 hardcode_libdir_separator=:
1418 ;;
1419
1420 sco3.2v5*)
1421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1422 hardcode_shlibpath_var=no
1423 runpath_var=LD_RUN_PATH
1424 hardcode_runpath_var=yes
1425 ;;
1426
1427 solaris*)
1428 no_undefined_flag=' -z text'
1429 # $CC -shared without GNU ld will not create a library from C++
1430 # object files and a static libstdc++, better avoid it by now
1431 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
1432 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
1434 hardcode_libdir_flag_spec='-R$libdir'
1435 hardcode_shlibpath_var=no
1436 case "$host_os" in
1437 solaris2.[0-5] | solaris2.[0-5].*) ;;
1438 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
1439 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
1440 esac
1441 ;;
1442
1443 sunos4*)
1444 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
1445 hardcode_libdir_flag_spec='-L$libdir'
1446 hardcode_direct=yes
1447 hardcode_minus_L=yes
1448 hardcode_shlibpath_var=no
1449 ;;
1450
1451 sysv4)
1452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1453 runpath_var='LD_RUN_PATH'
1454 hardcode_shlibpath_var=no
1455 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1456 ;;
1457
1458 sysv4.3*)
1459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1460 hardcode_shlibpath_var=no
1461 export_dynamic_flag_spec='-Bexport'
1462 ;;
1463
1464 uts4*)
1465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1466 hardcode_libdir_flag_spec='-L$libdir'
1467 hardcode_shlibpath_var=no
1468 ;;
1469
1470 dgux*)
1471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1472 hardcode_libdir_flag_spec='-L$libdir'
1473 hardcode_shlibpath_var=no
1474 ;;
1475
1476 sysv4*MP*)
1477 if test -d /usr/nec ;then
1478 # archive_cmds='$LD -G -z text -h $soname -o $lib$libobjs$deplibs'
1479 archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs'
1480 hardcode_shlibpath_var=no
1481 runpath_var=LD_RUN_PATH
1482 hardcode_runpath_var=yes
1483 ld_shlibs=yes
1484 fi
1485 ;;
1486
1487 *)
1488 ld_shlibs=no
1489 ;;
1490 esac
1491fi
1492echo "$ac_t$ld_shlibs" 1>&6
1493test "$ld_shlibs" = no && can_build_shared=no
1494
1495if test -z "$NM"; then
1496 echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
1497 case "$NM" in
1498 [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
1499 *)
1500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
1501 for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
1502 test -z "$ac_dir" && ac_dir=.
1503 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
1504 # Check to see if the nm accepts a BSD-compat flag.
1505 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1506 # nm: unknown option "B" ignored
1507 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1508 NM="$ac_dir/nm -B"
1509 break
1510 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1511 NM="$ac_dir/nm -p"
1512 break
1513 else
1514 NM=${NM="$ac_dir/nm"} # keep the first match, but
1515 continue # so that we can try to find one that supports BSD flags
1516 fi
1517 fi
1518 done
1519 IFS="$ac_save_ifs"
1520 test -z "$NM" && NM=nm
1521 ;;
1522 esac
1523 echo "$ac_t$NM" 1>&6
1524fi
1525
1526# Check for command to grab the raw symbol name followed by C symbol from nm.
1527echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
1528
1529# These are sane defaults that work on at least a few old systems.
1530# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1531
1532# Character class describing NM global symbol codes.
1533symcode='[BCDEGRST]'
1534
1535# Regexp to match symbols that can be accessed directly from C.
1536sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1537
1538# Transform the above into a raw symbol and a C symbol.
1539symxfrm='\1 \2\3 \3'
1540
1541# Transform an extracted symbol line into a proper C declaration
1542global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1543
1544# Define system-specific variables.
1545case "$host_os" in
1546aix*)
1547 symcode='[BCDT]'
1548 ;;
1549cygwin* | mingw*)
1550 symcode='[ABCDGISTW]'
1551 ;;
1552hpux*) # Its linker distinguishes data from code symbols
1553 global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1554 ;;
1555irix*)
1556 symcode='[BCDEGRST]'
1557 ;;
1558solaris*)
1559 symcode='[BDT]'
1560 ;;
1561sysv4)
1562 symcode='[DFNSTU]'
1563 ;;
1564esac
1565
1566# If we're using GNU nm, then use its standard symbol codes.
1567if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1568 symcode='[ABCDGISTW]'
1569fi
1570
1571# Try without a prefix undercore, then with it.
1572for ac_symprfx in "" "_"; do
1573
1574 # Write the raw and C identifiers.
1575 global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$/$symxfrm/p'"
1576
1577 # Check to see that the pipe works correctly.
1578 pipe_works=no
1579 $rm conftest*
1580 cat > conftest.c <<EOF
1581#ifdef __cplusplus
1582extern "C" {
1583#endif
1584char nm_test_var;
1585void nm_test_func(){}
1586#ifdef __cplusplus
1587}
1588#endif
1589main(){nm_test_var='a';nm_test_func();return(0);}
1590EOF
1591
1592 echo "$progname:1592: checking if global_symbol_pipe works" >&5
1593 if { (eval echo $progname:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
1594 # Now try to grab the symbols.
1595 nlist=conftest.nm
1596 if { echo "$progname:1596: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
1597
1598 # Try sorting and uniquifying the output.
1599 if sort "$nlist" | uniq > "$nlist"T; then
1600 mv -f "$nlist"T "$nlist"
1601 else
1602 rm -f "$nlist"T
1603 fi
1604
1605 # Make sure that we snagged all the symbols we need.
1606 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1607 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1608 cat <<EOF > conftest.c
1609#ifdef __cplusplus
1610extern "C" {
1611#endif
1612
1613EOF
1614 # Now generate the symbol file.
1615 eval "$global_symbol_to_cdecl"' < "$nlist" >> conftest.c'
1616
1617 cat <<EOF >> conftest.c
1618#if defined (__STDC__) && __STDC__
1619# define lt_ptr_t void *
1620#else
1621# define lt_ptr_t char *
1622# define const
1623#endif
1624
1625/* The mapping between symbol names and symbols. */
1626const struct {
1627 const char *name;
1628 lt_ptr_t address;
1629}
1630lt_preloaded_symbols[] =
1631{
1632EOF
1633 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.c
1634 cat <<\EOF >> conftest.c
1635 {0, (lt_ptr_t) 0}
1636};
1637
1638#ifdef __cplusplus
1639}
1640#endif
1641EOF
1642 # Now try linking the two files.
1643 mv conftest.$objext conftstm.$objext
1644 save_LIBS="$LIBS"
1645 save_CFLAGS="$CFLAGS"
1646 LIBS="conftstm.$objext"
1647 CFLAGS="$CFLAGS$no_builtin_flag"
1648 if { (eval echo $progname:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1649 pipe_works=yes
1650 else
1651 echo "$progname: failed program was:" >&5
1652 cat conftest.c >&5
1653 fi
1654 LIBS="$save_LIBS"
1655 else
1656 echo "cannot find nm_test_func in $nlist" >&5
1657 fi
1658 else
1659 echo "cannot find nm_test_var in $nlist" >&5
1660 fi
1661 else
1662 echo "cannot run $global_symbol_pipe" >&5
1663 fi
1664 else
1665 echo "$progname: failed program was:" >&5
1666 cat conftest.c >&5
1667 fi
1668 $rm conftest* conftst*
1669
1670 # Do not use the global_symbol_pipe unless it works.
1671 if test "$pipe_works" = yes; then
1672 break
1673 else
1674 global_symbol_pipe=
1675 fi
1676done
1677if test "$pipe_works" = yes; then
1678 echo "${ac_t}ok" 1>&6
1679else
1680 echo "${ac_t}failed" 1>&6
1681fi
1682
1683if test -z "$global_symbol_pipe"; then
1684 global_symbol_to_cdecl=
1685fi
1686
1687# Check hardcoding attributes.
1688echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6
1689hardcode_action=
1690if test -n "$hardcode_libdir_flag_spec" || \
1691 test -n "$runpath_var"; then
1692
1693 # We can hardcode non-existant directories.
1694 if test "$hardcode_direct" != no &&
1695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1696 # have to relink, otherwise we might link with an installed library
1697 # when we should be linking with a yet-to-be-installed one
1698 ## test "$hardcode_shlibpath_var" != no &&
1699 test "$hardcode_minus_L" != no; then
1700 # Linking always hardcodes the temporary library directory.
1701 hardcode_action=relink
1702 else
1703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1704 hardcode_action=immediate
1705 fi
1706else
1707 # We cannot hardcode anything, or else we can only hardcode existing
1708 # directories.
1709 hardcode_action=unsupported
1710fi
1711echo "$ac_t$hardcode_action" 1>&6
1712
1713
1714reload_flag=
1715reload_cmds='$LD$reload_flag -o $output$reload_objs'
1716echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6
1717# PORTME Some linkers may need a different reload flag.
1718reload_flag='-r'
1719echo "$ac_t$reload_flag" 1>&6
1720test -n "$reload_flag" && reload_flag=" $reload_flag"
1721
1722# PORTME Fill in your ld.so characteristics
1723library_names_spec=
1724libname_spec='lib$name'
1725soname_spec=
1726postinstall_cmds=
1727postuninstall_cmds=
1728finish_cmds=
1729finish_eval=
1730shlibpath_var=
1731shlibpath_overrides_runpath=unknown
1732version_type=none
1733dynamic_linker="$host_os ld.so"
1734sys_lib_dlsearch_path_spec="/lib /usr/lib"
1735sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1736file_magic_cmd=
1737file_magic_test_file=
1738deplibs_check_method='unknown'
1739# Need to set the preceding variable on all platforms that support
1740# interlibrary dependencies.
1741# 'none' -- dependencies not supported.
1742# `unknown' -- same as none, but documents that we really don't know.
1743# 'pass_all' -- all dependencies passed with no checks.
1744# 'test_compile' -- check by making test program.
1745# 'file_magic [regex]' -- check by looking for files in library path
1746# which responds to the $file_magic_cmd with a given egrep regex.
1747# If you have `file' or equivalent on your system and you're not sure
1748# whether `pass_all' will *always* work, you probably want this one.
1749echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
1750case "$host_os" in
1751aix3*)
1752 version_type=linux
1753 library_names_spec='${libname}${release}.so$versuffix $libname.a'
1754 shlibpath_var=LIBPATH
1755
1756 # AIX has no versioning support, so we append a major version to the name.
1757 soname_spec='${libname}${release}.so$major'
1758 ;;
1759
1760aix4*)
1761 version_type=linux
1762 # AIX has no versioning support, so currently we can not hardcode correct
1763 # soname into executable. Probably we can add versioning support to
1764 # collect2, so additional links can be useful in future.
1765 # We preserve .a as extension for shared libraries though AIX4.2
1766 # and later linker supports .so
1767 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
1768 shlibpath_var=LIBPATH
1769 deplibs_check_method=pass_all
1770 ;;
1771
1772amigaos*)
1773 library_names_spec='$libname.ixlibrary $libname.a'
1774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1775 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'
1776 ;;
1777
1778beos*)
1779 library_names_spec='${libname}.so'
1780 dynamic_linker="$host_os ld.so"
1781 shlibpath_var=LIBRARY_PATH
1782 deplibs_check_method=pass_all
1783 lt_cv_dlopen="load_add_on"
1784 lt_cv_dlopen_libs=
1785 lt_cv_dlopen_self=yes
1786 ;;
1787
1788bsdi4*)
1789 version_type=linux
1790 library_names_spec='${libname}.so$major ${libname}.so'
1791 soname_spec='${libname}.so'
1792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1793 shlibpath_var=LD_LIBRARY_PATH
1794 deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1795 file_magic_cmd=/usr/bin/file
1796 file_magic_test_file=/shlib/libc.so
1797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1799 # the default ld.so.conf also contains /usr/contrib/lib and
1800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1801 # libtool to hard-code these into programs
1802 ;;
1803
1804cygwin* | mingw*)
1805 version_type=windows
1806 need_version=no
1807 need_lib_prefix=no
1808 if test "$with_gcc" = yes; then
1809 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a'
1810 else
1811 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
1812 fi
1813 dynamic_linker='Win32 ld.exe'
1814 deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1815 file_magic_cmd='${OBJDUMP} -f'
1816 # FIXME: first we should search . and the directory the executable is in
1817 shlibpath_var=PATH
1818 lt_cv_dlopen="LoadLibrary"
1819 lt_cv_dlopen_libs=
1820 ;;
1821
1822freebsd1*)
1823 dynamic_linker=no
1824 ;;
1825
1826freebsd*)
1827 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1828 version_type=freebsd-$objformat
1829 case "$version_type" in
1830 freebsd-elf*)
1831 deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1832 file_magic_cmd=/usr/bin/file
1833 file_magic_test_file=`echo /usr/lib/libc.so*`
1834 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
1835 need_version=no
1836 need_lib_prefix=no
1837 ;;
1838 freebsd-*)
1839 deplibs_check_method=unknown
1840 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
1841 need_version=yes
1842 ;;
1843 esac
1844 finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
1845 shlibpath_var=LD_LIBRARY_PATH
1846 case "$host_os" in
1847 freebsd2* | freebsd3.[01]*)
1848 shlibpath_overrides_runpath=yes
1849 ;;
1850 *) # from 3.2 on
1851 shlibpath_overrides_runpath=no
1852 ;;
1853 esac
1854 ;;
1855
1856gnu*)
1857 version_type=linux
1858 need_lib_prefix=no
1859 need_version=no
1860 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
1861 soname_spec='${libname}${release}.so$major'
1862 shlibpath_var=LD_LIBRARY_PATH
1863 ;;
1864
1865hpux9* | hpux10* | hpux11*)
1866 # Give a soname corresponding to the major version so that dld.sl refuses to
1867 # link against other versions.
1868 dynamic_linker="$host_os dld.sl"
1869 version_type=sunos
1870 need_lib_prefix=no
1871 need_version=no
1872 shlibpath_var=SHLIB_PATH
1873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1874 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
1875 soname_spec='${libname}${release}.sl$major'
1876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1877 postinstall_cmds='chmod 555 $lib'
1878 ;;
1879
1880irix5* | irix6*)
1881 version_type=irix
1882 need_lib_prefix=no
1883 need_version=no
1884 soname_spec='${libname}${release}.so.$major'
1885 library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
1886 case "$host_os" in
1887 irix5*)
1888 libsuff= shlibsuff=
1889 # this will be overridden with pass_all, but let us keep it just in case
1890 deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1891 ;;
1892 *)
1893 case "$LD" in # libtool.m4 will add one of these switches to LD
1894 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
1895 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
1896 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
1897 *) libsuff= shlibsuff= libmagic=never-match;;
1898 esac
1899 # this will be overridden with pass_all, but let us keep it just in case
1900 deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1901 ;;
1902 esac
1903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1904 shlibpath_overrides_runpath=no
1905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1907 file_magic_cmd=/usr/bin/file
1908 file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1909 deplibs_check_method='pass_all'
1910 ;;
1911
1912# No shared lib support for Linux oldld, aout, or coff.
1913linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
1914 dynamic_linker=no
1915 ;;
1916
1917# This must be Linux ELF.
1918linux-gnu*)
1919 version_type=linux
1920 need_lib_prefix=no
1921 need_version=no
1922 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1923 soname_spec='${libname}${release}.so$major'
1924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1925 shlibpath_var=LD_LIBRARY_PATH
1926 shlibpath_overrides_runpath=no
1927 deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1928 file_magic_cmd=/usr/bin/file
1929 file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1930
1931 if test -f /lib/ld.so.1; then
1932 dynamic_linker='GNU ld.so'
1933 else
1934 # Only the GNU ld.so supports shared libraries on MkLinux.
1935 case "$host_cpu" in
1936 powerpc*) dynamic_linker=no ;;
1937 *) dynamic_linker='Linux ld.so' ;;
1938 esac
1939 fi
1940 ;;
1941
1942netbsd*)
1943 version_type=sunos
1944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1945 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
1946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1947 dynamic_linker='NetBSD (a.out) ld.so'
1948 else
1949 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
1950 soname_spec='${libname}${release}.so$major'
1951 dynamic_linker='NetBSD ld.elf_so'
1952 fi
1953 shlibpath_var=LD_LIBRARY_PATH
1954 ;;
1955
1956openbsd*)
1957 version_type=sunos
1958 if test "$with_gnu_ld" = yes; then
1959 need_lib_prefix=no
1960 need_version=no
1961 fi
1962 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
1963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1964 shlibpath_var=LD_LIBRARY_PATH
1965 ;;
1966
1967os2*)
1968 libname_spec='$name'
1969 need_lib_prefix=no
1970 library_names_spec='$libname.dll $libname.a'
1971 dynamic_linker='OS/2 ld.exe'
1972 shlibpath_var=LIBPATH
1973 ;;
1974
1975osf3* | osf4*)
1976 version_type=osf
1977 need_version=no
1978 soname_spec='${libname}${release}.so'
1979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
1980 shlibpath_var=LD_LIBRARY_PATH
1981 # this will be overridden with pass_all, but let us keep it just in case
1982 deplibs_check_method='file_magic COFF format alpha shared library'
1983 file_magic_cmd=/usr/bin/file
1984 file_magic_test_file=/shlib/libc.so
1985 deplibs_check_method='pass_all'
1986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1988 ;;
1989
1990sco3.2v5*)
1991 version_type=osf
1992 soname_spec='${libname}${release}.so$major'
1993 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1994 shlibpath_var=LD_LIBRARY_PATH
1995 ;;
1996
1997solaris*)
1998 version_type=linux
1999 need_lib_prefix=no
2000 need_version=no
2001 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2002 soname_spec='${libname}${release}.so$major'
2003 shlibpath_var=LD_LIBRARY_PATH
2004 shlibpath_overrides_runpath=yes
2005 # ldd complains unless libraries are executable
2006 postinstall_cmds='chmod +x $lib'
2007 deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib"
2008 file_magic_cmd=/usr/bin/file
2009 file_magic_test_file=/lib/libc.so
2010 ;;
2011
2012sunos4*)
2013 version_type=sunos
2014 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
2015 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2016 shlibpath_var=LD_LIBRARY_PATH
2017 shlibpath_overrides_runpath=yes
2018 if test "$with_gnu_ld" = yes; then
2019 need_lib_prefix=no
2020 fi
2021 need_version=yes
2022 ;;
2023
2024sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2025 version_type=linux
2026 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2027 soname_spec='${libname}${release}.so$major'
2028 shlibpath_var=LD_LIBRARY_PATH
2029 case "$host_vendor" in
2030 ncr)
2031 deplibs_check_method='pass_all'
2032 ;;
2033 motorola)
2034 need_lib_prefix=no
2035 need_version=no
2036 shlibpath_overrides_runpath=no
2037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2038 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]'
2039 file_magic_cmd=/usr/bin/file
2040 file_magic_test_file=`echo /usr/lib/libc.so*`
2041 ;;
2042 esac
2043 ;;
2044
2045uts4*)
2046 version_type=linux
2047 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2048 soname_spec='${libname}${release}.so$major'
2049 shlibpath_var=LD_LIBRARY_PATH
2050 ;;
2051
2052dgux*)
2053 version_type=linux
2054 need_lib_prefix=no
2055 need_version=no
2056 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2057 soname_spec='${libname}${release}.so$major'
2058 shlibpath_var=LD_LIBRARY_PATH
2059 ;;
2060
2061sysv4*MP*)
2062 if test -d /usr/nec ;then
2063 version_type=linux
2064 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
2065 soname_spec='$libname.so.$major'
2066 shlibpath_var=LD_LIBRARY_PATH
2067 fi
2068 ;;
2069
2070*)
2071 dynamic_linker=no
2072 ;;
2073esac
2074echo "$ac_t$dynamic_linker" 1>&6
2075test "$dynamic_linker" = no && can_build_shared=no
2076
2077# Report the final consequences.
2078echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
2079
2080# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
2081# configure.in, otherwise build static only libraries.
2082case "$host_os" in
2083cygwin* | mingw* | os2*)
2084 if test x$can_build_shared = xyes; then
2085 test x$enable_win32_dll = xno && can_build_shared=no
2086 echo "checking if package supports dlls... $can_build_shared" 1>&6
2087 fi
2088;;
2089esac
2090
2091if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
2092 case "$deplibs_check_method" in
2093 "file_magic "*)
2094 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2096 egrep "$file_magic_regex" > /dev/null; then
2097 :
2098 else
2099 cat <<EOF 1>&2
2100
2101*** Warning: the command libtool uses to detect shared libraries,
2102*** $file_magic_cmd, produces output that libtool cannot recognize.
2103*** The result is that libtool may fail to recognize shared libraries
2104*** as such. This will affect the creation of libtool libraries that
2105*** depend on shared libraries, but programs linked with such libtool
2106*** libraries will work regardless of this problem. Nevertheless, you
2107*** may want to report the problem to your system manager and/or to
2108*** bug-libtool@gnu.org
2109
2110EOF
2111 fi ;;
2112 esac
2113fi
2114
2115echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6
2116test "$can_build_shared" = "no" && enable_shared=no
2117
2118# On AIX, shared libraries and static libraries use the same namespace, and
2119# are all built from PIC.
2120case "$host_os" in
2121aix3*)
2122 test "$enable_shared" = yes && enable_static=no
2123 if test -n "$RANLIB"; then
2124 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2125 postinstall_cmds='$RANLIB $lib'
2126 fi
2127 ;;
2128
2129aix4*)
2130 test "$enable_shared" = yes && enable_static=no
2131 ;;
2132esac
2133
2134echo "$ac_t$enable_shared" 1>&6
2135
2136# Make sure either enable_shared or enable_static is yes.
2137test "$enable_shared" = yes || enable_static=yes
2138
2139echo "checking whether to build static libraries... $enable_static" 1>&6
2140
2141if test "$hardcode_action" = relink; then
2142 # Fast installation is not supported
2143 enable_fast_install=no
2144elif test "$shlibpath_overrides_runpath" = yes ||
2145 test "$enable_shared" = no; then
2146 # Fast installation is not necessary
2147 enable_fast_install=needless
2148fi
2149
2150echo $ac_n "checking for objdir... $ac_c" 1>&6
2151rm -f .libs 2>/dev/null
2152mkdir .libs 2>/dev/null
2153if test -d .libs; then
2154 objdir=.libs
2155else
2156 # MS-DOS does not allow filenames that begin with a dot.
2157 objdir=_libs
2158fi
2159rmdir .libs 2>/dev/null
2160echo "$ac_t$objdir" 1>&6
2161
2162if test "x$enable_dlopen" != xyes; then
2163 enable_dlopen=unknown
2164 enable_dlopen_self=unknown
2165 enable_dlopen_self_static=unknown
2166else
2167if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
2168 lt_cv_dlopen=no lt_cv_dlopen_libs=
2169echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2170echo "$progname:2170: checking for dlopen in -ldl" >&5
2171ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2172if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2174else
2175 ac_save_LIBS="$LIBS"
2176LIBS="-ldl $LIBS"
2177cat > conftest.$ac_ext <<EOF
2178#line 2178 "ltconfig"
2179/* Override any gcc2 internal prototype to avoid an error. */
2180/* We use char because int might match the return type of a gcc2
2181 builtin and then its argument prototype would still apply. */
2182char dlopen();
2183
2184int main() {
2185dlopen()
2186; return 0; }
2187EOF
2188if { (eval echo $progname:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2189 rm -rf conftest*
2190 eval "ac_cv_lib_$ac_lib_var=yes"
2191else
2192 echo "$progname: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 rm -rf conftest*
2195 eval "ac_cv_lib_$ac_lib_var=no"
2196fi
2197rm -f conftest*
2198LIBS="$ac_save_LIBS"
2199
2200fi
2201if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2202 echo "$ac_t""yes" 1>&6
2203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
2204else
2205 echo "$ac_t""no" 1>&6
2206echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2207echo "$progname:2207: checking for dlopen" >&5
2208if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2210else
2211 cat > conftest.$ac_ext <<EOF
2212#line 2212 "ltconfig"
2213/* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char dlopen(); below. */
2215#include <assert.h>
2216/* Override any gcc2 internal prototype to avoid an error. */
2217/* We use char because int might match the return type of a gcc2
2218 builtin and then its argument prototype would still apply. */
2219char dlopen();
2220
2221int main() {
2222
2223/* The GNU C library defines this for functions which it implements
2224 to always fail with ENOSYS. Some functions are actually named
2225 something starting with __ and the normal name is an alias. */
2226#if defined (__stub_dlopen) || defined (__stub___dlopen)
2227choke me
2228#else
2229dlopen();
2230#endif
2231
2232; return 0; }
2233EOF
2234if { (eval echo $progname:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2235 rm -rf conftest*
2236 eval "ac_cv_func_dlopen=yes"
2237else
2238 echo "$progname: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 rm -rf conftest*
2241 eval "ac_cv_func_dlopen=no"
2242fi
2243rm -f conftest*
2244fi
2245if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2246 echo "$ac_t""yes" 1>&6
2247 lt_cv_dlopen="dlopen"
2248else
2249 echo "$ac_t""no" 1>&6
2250echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2251echo "$progname:2251: checking for dld_link in -ldld" >&5
2252ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2253if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255else
2256 ac_save_LIBS="$LIBS"
2257LIBS="-ldld $LIBS"
2258cat > conftest.$ac_ext <<EOF
2259#line 2259 "ltconfig"
2260/* Override any gcc2 internal prototype to avoid an error. */
2261/* We use char because int might match the return type of a gcc2
2262 builtin and then its argument prototype would still apply. */
2263char dld_link();
2264
2265int main() {
2266dld_link()
2267; return 0; }
2268EOF
2269if { (eval echo $progname:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 rm -rf conftest*
2271 eval "ac_cv_lib_$ac_lib_var=yes"
2272else
2273 echo "$progname: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 rm -rf conftest*
2276 eval "ac_cv_lib_$ac_lib_var=no"
2277fi
2278rm -f conftest*
2279LIBS="$ac_save_LIBS"
2280
2281fi
2282if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
2285else
2286 echo "$ac_t""no" 1>&6
2287echo $ac_n "checking for shl_load""... $ac_c" 1>&6
2288echo "$progname:2288: checking for shl_load" >&5
2289if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291else
2292 cat > conftest.$ac_ext <<EOF
2293#line 2293 "ltconfig"
2294/* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char shl_load(); below. */
2296#include <assert.h>
2297/* Override any gcc2 internal prototype to avoid an error. */
2298/* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300char shl_load();
2301
2302int main() {
2303
2304/* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307#if defined (__stub_shl_load) || defined (__stub___shl_load)
2308choke me
2309#else
2310shl_load();
2311#endif
2312
2313; return 0; }
2314EOF
2315if { (eval echo $progname:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316 rm -rf conftest*
2317 eval "ac_cv_func_shl_load=yes"
2318else
2319 echo "$progname: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 eval "ac_cv_func_shl_load=no"
2323fi
2324rm -f conftest*
2325fi
2326
2327if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 lt_cv_dlopen="shl_load"
2330else
2331 echo "$ac_t""no" 1>&6
2332echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2333echo "$progname:2333: checking for shl_load in -ldld" >&5
2334ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2335if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337else
2338 ac_save_LIBS="$LIBS"
2339LIBS="-ldld $LIBS"
2340cat > conftest.$ac_ext <<EOF
2341#line 2341 "ltconfig"
2342#include "confdefs.h"
2343/* Override any gcc2 internal prototype to avoid an error. */
2344/* We use char because int might match the return type of a gcc2
2345 builtin and then its argument prototype would still apply. */
2346char shl_load();
2347
2348int main() {
2349shl_load()
2350; return 0; }
2351EOF
2352if { (eval echo $progname:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=yes"
2355else
2356 echo "$progname: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 eval "ac_cv_lib_$ac_lib_var=no"
2360fi
2361rm -f conftest*
2362LIBS="$ac_save_LIBS"
2363
2364fi
2365if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
2368else
2369 echo "$ac_t""no" 1>&6
2370fi
2371
2372
2373fi
2374
2375
2376fi
2377
2378
2379fi
2380
2381
2382fi
2383
2384fi
2385
2386 if test "x$lt_cv_dlopen" != xno; then
2387 enable_dlopen=yes
2388 fi
2389
2390 case "$lt_cv_dlopen" in
2391 dlopen)
2392for ac_hdr in dlfcn.h; do
2393ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2394echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2395echo "$progname:2395: checking for $ac_hdr" >&5
2396if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2398else
2399 cat > conftest.$ac_ext <<EOF
2400#line 2400 "ltconfig"
2401#include <$ac_hdr>
2402int fnord = 0;
2403EOF
2404ac_try="$ac_compile conftest.$ac_ext >/dev/null 2>conftest.out"
2405{ (eval echo $progname:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2407if test -z "$ac_err"; then
2408 rm -rf conftest*
2409 eval "ac_cv_header_$ac_safe=yes"
2410else
2411 echo "$ac_err" >&5
2412 echo "$progname: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
2415 eval "ac_cv_header_$ac_safe=no"
2416fi
2417rm -f conftest*
2418fi
2419if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421else
2422 echo "$ac_t""no" 1>&6
2423fi
2424done
2425
2426 if test "x$ac_cv_header_dlfcn_h" = xyes; then
2427 CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2428 fi
2429 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2430 LIBS="$lt_cv_dlopen_libs $LIBS"
2431
2432 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
2433echo "$progname:2433: checking whether a program can dlopen itself" >&5
2434if test "${lt_cv_dlopen_self+set}" = set; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2436else
2437 if test "$cross_compiling" = yes; then
2438 lt_cv_dlopen_self=cross
2439 else
2440 cat > conftest.c <<EOF
2441#line 2441 "ltconfig"
2442
2443#if HAVE_DLFCN_H
2444#include <dlfcn.h>
2445#endif
2446
2447#include <stdio.h>
2448
2449#ifdef RTLD_GLOBAL
2450# define LTDL_GLOBAL RTLD_GLOBAL
2451#else
2452# ifdef DL_GLOBAL
2453# define LTDL_GLOBAL DL_GLOBAL
2454# else
2455# define LTDL_GLOBAL 0
2456# endif
2457#endif
2458
2459/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
2460 find out it does not work in some platform. */
2461#ifndef LTDL_LAZY_OR_NOW
2462# ifdef RTLD_LAZY
2463# define LTDL_LAZY_OR_NOW RTLD_LAZY
2464# else
2465# ifdef DL_LAZY
2466# define LTDL_LAZY_OR_NOW DL_LAZY
2467# else
2468# ifdef RTLD_NOW
2469# define LTDL_LAZY_OR_NOW RTLD_NOW
2470# else
2471# ifdef DL_NOW
2472# define LTDL_LAZY_OR_NOW DL_NOW
2473# else
2474# define LTDL_LAZY_OR_NOW 0
2475# endif
2476# endif
2477# endif
2478# endif
2479#endif
2480
2481fnord() { int i=42;}
2482main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
2483 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2484 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
2485
2486EOF
2487if { (eval echo $progname:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2488then
2489 lt_cv_dlopen_self=yes
2490else
2491 echo "$progname: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 rm -fr conftest*
2494 lt_cv_dlopen_self=no
2495fi
2496rm -fr conftest*
2497fi
2498
2499fi
2500
2501echo "$ac_t""$lt_cv_dlopen_self" 1>&6
2502
2503 if test "$lt_cv_dlopen_self" = yes; then
2504 LDFLAGS="$LDFLAGS $link_static_flag"
2505 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
2506echo "$progname:2506: checking whether a statically linked program can dlopen itself" >&5
2507if test "${lt_cv_dlopen_self_static+set}" = set; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2509else
2510 if test "$cross_compiling" = yes; then
2511 lt_cv_dlopen_self_static=cross
2512 else
2513 cat > conftest.c <<EOF
2514#line 2514 "ltconfig"
2515
2516#if HAVE_DLFCN_H
2517#include <dlfcn.h>
2518#endif
2519
2520#include <stdio.h>
2521
2522#ifdef RTLD_GLOBAL
2523# define LTDL_GLOBAL RTLD_GLOBAL
2524#else
2525# ifdef DL_GLOBAL
2526# define LTDL_GLOBAL DL_GLOBAL
2527# else
2528# define LTDL_GLOBAL 0
2529# endif
2530#endif
2531
2532/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
2533 find out it does not work in some platform. */
2534#ifndef LTDL_LAZY_OR_NOW
2535# ifdef RTLD_LAZY
2536# define LTDL_LAZY_OR_NOW RTLD_LAZY
2537# else
2538# ifdef DL_LAZY
2539# define LTDL_LAZY_OR_NOW DL_LAZY
2540# else
2541# ifdef RTLD_NOW
2542# define LTDL_LAZY_OR_NOW RTLD_NOW
2543# else
2544# ifdef DL_NOW
2545# define LTDL_LAZY_OR_NOW DL_NOW
2546# else
2547# define LTDL_LAZY_OR_NOW 0
2548# endif
2549# endif
2550# endif
2551# endif
2552#endif
2553
2554fnord() { int i=42;}
2555main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
2556 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2557 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
2558
2559EOF
2560if { (eval echo $progname:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2561then
2562 lt_cv_dlopen_self_static=yes
2563else
2564 echo "$progname: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 rm -fr conftest*
2567 lt_cv_dlopen_self_static=no
2568fi
2569rm -fr conftest*
2570fi
2571
2572fi
2573
2574echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
2575fi
2576 ;;
2577 esac
2578
2579 case "$lt_cv_dlopen_self" in
2580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2581 *) enable_dlopen_self=unknown ;;
2582 esac
2583
2584 case "$lt_cv_dlopen_self_static" in
2585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2586 *) enable_dlopen_self_static=unknown ;;
2587 esac
2588fi
2589
2590# Copy echo and quote the copy, instead of the original, because it is
2591# used later.
2592ltecho="$echo"
2593if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then
2594 ltecho="$CONFIG_SHELL \$0 --fallback-echo"
2595fi
2596LTSHELL="$SHELL"
2597
2598LTCONFIG_VERSION="$VERSION"
2599
2600# Only quote variables if we're using ltmain.sh.
2601case "$ltmain" in
2602*.sh)
2603 # Now quote all the things that may contain metacharacters.
2604 for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
2605 old_LD old_LDFLAGS old_LIBS \
2606 old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
2607 AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
2608 reload_flag reload_cmds wl \
2609 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
2610 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
2611 library_names_spec soname_spec \
2612 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
2613 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \
2614 file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \
2615 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
2616 hardcode_libdir_flag_spec hardcode_libdir_separator \
2617 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
2618 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
2619
2620 case "$var" in
2621 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
2622 old_postinstall_cmds | old_postuninstall_cmds | \
2623 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
2624 postinstall_cmds | postuninstall_cmds | \
2625 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2626 # Double-quote double-evaled strings.
2627 eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
2628 ;;
2629 *)
2630 eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
2631 ;;
2632 esac
2633 done
2634
2635 case "$ltecho" in
2636 *'\$0 --fallback-echo"')
2637 ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
2638 ;;
2639 esac
2640
2641 trap "$rm \"$ofile\"; exit 1" 1 2 15
2642 echo "creating $ofile"
2643 $rm "$ofile"
2644 cat <<EOF > "$ofile"
2645#! $SHELL
2646
2647# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2648# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2649# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
2650#
2651# Copyright (C) 1996-1999 Free Software Foundation, Inc.
2652# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2653#
2654# This program is free software; you can redistribute it and/or modify
2655# it under the terms of the GNU General Public License as published by
2656# the Free Software Foundation; either version 2 of the License, or
2657# (at your option) any later version.
2658#
2659# This program is distributed in the hope that it will be useful, but
2660# WITHOUT ANY WARRANTY; without even the implied warranty of
2661# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2662# General Public License for more details.
2663#
2664# You should have received a copy of the GNU General Public License
2665# along with this program; if not, write to the Free Software
2666# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2667#
2668# As a special exception to the GNU General Public License, if you
2669# distribute this file as part of a program that contains a
2670# configuration script generated by Autoconf, you may include it under
2671# the same distribution terms that you use for the rest of that program.
2672
2673# Sed that helps us avoid accidentally triggering echo(1) options like -n.
2674Xsed="sed -e s/^X//"
2675
2676# The HP-UX ksh and POSIX shell print the target directory to stdout
2677# if CDPATH is set.
2678if test "\${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
2679
2680### BEGIN LIBTOOL CONFIG
2681EOF
2682 cfgfile="$ofile"
2683 ;;
2684
2685*)
2686 # Double-quote the variables that need it (for aesthetics).
2687 for var in old_CC old_CFLAGS old_CPPFLAGS \
2688 old_LD old_LDFLAGS old_LIBS \
2689 old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
2690 eval "$var=\\\"\$var\\\""
2691 done
2692
2693 # Just create a config file.
2694 cfgfile="$ofile.cfg"
2695 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
2696 echo "creating $cfgfile"
2697 $rm "$cfgfile"
2698 cat <<EOF > "$cfgfile"
2699# `$echo "$cfgfile" | sed 's%^.*/%%'` - Libtool configuration file.
2700# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2701EOF
2702 ;;
2703esac
2704
2705cat <<EOF >> "$cfgfile"
2706# Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2707#
2708# CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
2709# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
2710# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
2711# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
2712# $0$ltconfig_args
2713#
2714# Compiler and other test output produced by $progname, useful for
2715# debugging $progname, is in ./config.log if it exists.
2716
2717# The version of $progname that generated this script.
2718LTCONFIG_VERSION=$LTCONFIG_VERSION
2719
2720# Shell to use when invoking shell scripts.
2721SHELL=$LTSHELL
2722
2723# Whether or not to build shared libraries.
2724build_libtool_libs=$enable_shared
2725
2726# Whether or not to build static libraries.
2727build_old_libs=$enable_static
2728
2729# Whether or not to optimize for fast installation.
2730fast_install=$enable_fast_install
2731
2732# The host system.
2733host_alias=$host_alias
2734host=$host
2735
2736# An echo program that does not interpret backslashes.
2737echo=$ltecho
2738
2739# The archiver.
2740AR=$AR
2741
2742# The default C compiler.
2743CC=$CC
2744
2745# The linker used to build libraries.
2746LD=$LD
2747
2748# Whether we need hard or soft links.
2749LN_S=$LN_S
2750
2751# A BSD-compatible nm program.
2752NM=$NM
2753
2754# Used on cygwin: DLL creation program.
2755DLLTOOL="$DLLTOOL"
2756
2757# Used on cygwin: object dumper.
2758OBJDUMP="$OBJDUMP"
2759
2760# Used on cygwin: assembler.
2761AS="$AS"
2762
2763# The name of the directory that contains temporary libtool files.
2764objdir=$objdir
2765
2766# How to create reloadable object files.
2767reload_flag=$reload_flag
2768reload_cmds=$reload_cmds
2769
2770# How to pass a linker flag through the compiler.
2771wl=$wl
2772
2773# Object file suffix (normally "o").
2774objext="$objext"
2775
2776# Old archive suffix (normally "a").
2777libext="$libext"
2778
2779# Executable file suffix (normally "").
2780exeext="$exeext"
2781
2782# Additional compiler flags for building library objects.
2783pic_flag=$pic_flag
2784
2785# Does compiler simultaneously support -c and -o options?
2786compiler_c_o=$compiler_c_o
2787
2788# Can we write directly to a .lo ?
2789compiler_o_lo=$compiler_o_lo
2790
2791# Must we lock files when doing compilation ?
2792need_locks=$need_locks
2793
2794# Do we need the lib prefix for modules?
2795need_lib_prefix=$need_lib_prefix
2796
2797# Do we need a version for libraries?
2798need_version=$need_version
2799
2800# Whether dlopen is supported.
2801dlopen=$enable_dlopen
2802
2803# Whether dlopen of programs is supported.
2804dlopen_self=$enable_dlopen_self
2805
2806# Whether dlopen of statically linked programs is supported.
2807dlopen_self_static=$enable_dlopen_self_static
2808
2809# Compiler flag to prevent dynamic linking.
2810link_static_flag=$link_static_flag
2811
2812# Compiler flag to turn off builtin functions.
2813no_builtin_flag=$no_builtin_flag
2814
2815# Compiler flag to allow reflexive dlopens.
2816export_dynamic_flag_spec=$export_dynamic_flag_spec
2817
2818# Compiler flag to generate shared objects directly from archives.
2819whole_archive_flag_spec=$whole_archive_flag_spec
2820
2821# Compiler flag to generate thread-safe objects.
2822thread_safe_flag_spec=$thread_safe_flag_spec
2823
2824# Library versioning type.
2825version_type=$version_type
2826
2827# Format of library name prefix.
2828libname_spec=$libname_spec
2829
2830# List of archive names. First name is the real one, the rest are links.
2831# The last name is the one that the linker finds with -lNAME.
2832library_names_spec=$library_names_spec
2833
2834# The coded name of the library, if different from the real name.
2835soname_spec=$soname_spec
2836
2837# Commands used to build and install an old-style archive.
2838RANLIB=$RANLIB
2839old_archive_cmds=$old_archive_cmds
2840old_postinstall_cmds=$old_postinstall_cmds
2841old_postuninstall_cmds=$old_postuninstall_cmds
2842
2843# Create an old-style archive from a shared archive.
2844old_archive_from_new_cmds=$old_archive_from_new_cmds
2845
2846# Commands used to build and install a shared archive.
2847archive_cmds=$archive_cmds
2848archive_expsym_cmds=$archive_expsym_cmds
2849postinstall_cmds=$postinstall_cmds
2850postuninstall_cmds=$postuninstall_cmds
2851
2852# Method to check whether dependent libraries are shared objects.
2853deplibs_check_method=$deplibs_check_method
2854
2855# Command to use when deplibs_check_method == file_magic.
2856file_magic_cmd=$file_magic_cmd
2857
2858# Flag that allows shared libraries with undefined symbols to be built.
2859allow_undefined_flag=$allow_undefined_flag
2860
2861# Flag that forces no undefined symbols.
2862no_undefined_flag=$no_undefined_flag
2863
2864# Commands used to finish a libtool library installation in a directory.
2865finish_cmds=$finish_cmds
2866
2867# Same as above, but a single script fragment to be evaled but not shown.
2868finish_eval=$finish_eval
2869
2870# Take the output of nm and produce a listing of raw symbols and C names.
2871global_symbol_pipe=$global_symbol_pipe
2872
2873# Transform the output of nm in a proper C declaration
2874global_symbol_to_cdecl=$global_symbol_to_cdecl
2875
2876# This is the shared library runtime path variable.
2877runpath_var=$runpath_var
2878
2879# This is the shared library path variable.
2880shlibpath_var=$shlibpath_var
2881
2882# Is shlibpath searched before the hard-coded library search path?
2883shlibpath_overrides_runpath=$shlibpath_overrides_runpath
2884
2885# How to hardcode a shared library path into an executable.
2886hardcode_action=$hardcode_action
2887
2888# Flag to hardcode \$libdir into a binary during linking.
2889# This must work even if \$libdir does not exist.
2890hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec
2891
2892# Whether we need a single -rpath flag with a separated argument.
2893hardcode_libdir_separator=$hardcode_libdir_separator
2894
2895# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
2896# resulting binary.
2897hardcode_direct=$hardcode_direct
2898
2899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
2900# resulting binary.
2901hardcode_minus_L=$hardcode_minus_L
2902
2903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
2904# the resulting binary.
2905hardcode_shlibpath_var=$hardcode_shlibpath_var
2906
2907# Compile-time system search path for libraries
2908sys_lib_search_path_spec=$sys_lib_search_path_spec
2909
2910# Run-time system search path for libraries
2911sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
2912
2913# Fix the shell variable \$srcfile for the compiler.
2914fix_srcfile_path="$fix_srcfile_path"
2915
2916# Set to yes if exported symbols are required.
2917always_export_symbols=$always_export_symbols
2918
2919# The commands to list exported symbols.
2920export_symbols_cmds=$export_symbols_cmds
2921
2922# Symbols that should not be listed in the preloaded symbols.
2923exclude_expsyms=$exclude_expsyms
2924
2925# Symbols that must always be exported.
2926include_expsyms=$include_expsyms
2927
2928EOF
2929
2930case "$ltmain" in
2931*.sh)
2932 echo '### END LIBTOOL CONFIG' >> "$ofile"
2933 echo >> "$ofile"
2934 case "$host_os" in
2935 aix3*)
2936 cat <<\EOF >> "$ofile"
2937
2938# AIX sometimes has problems with the GCC collect2 program. For some
2939# reason, if we set the COLLECT_NAMES environment variable, the problems
2940# vanish in a puff of smoke.
2941if test "${COLLECT_NAMES+set}" != set; then
2942 COLLECT_NAMES=
2943 export COLLECT_NAMES
2944fi
2945EOF
2946 ;;
2947 esac
2948
2949 # Append the ltmain.sh script.
2950 sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
2951
2952 chmod +x "$ofile"
2953 ;;
2954
2955*)
2956 # Compile the libtool program.
2957 echo "FIXME: would compile $ltmain"
2958 ;;
2959esac
2960
2961test -n "$cache_file" || exit 0
2962
2963# AC_CACHE_SAVE
2964trap '' 1 2 15
2965cat > confcache <<\EOF
2966# This file is a shell script that caches the results of configure
2967# tests run on this system so they can be shared between configure
2968# scripts and configure runs. It is not useful on other systems.
2969# If it contains results you don't want to keep, you may remove or edit it.
2970#
2971# By default, configure uses ./config.cache as the cache file,
2972# creating it if it does not exist already. You can give configure
2973# the --cache-file=FILE option to use a different cache file; that is
2974# what configure does when it calls configure scripts in
2975# subdirectories, so they share the cache.
2976# Giving --cache-file=/dev/null disables caching, for debugging configure.
2977# config.status only pays attention to the cache file if you give it the
2978# --recheck option to rerun configure.
2979#
2980EOF
2981# The following way of writing the cache mishandles newlines in values,
2982# but we know of no workaround that is simple, portable, and efficient.
2983# So, don't put newlines in cache variables' values.
2984# Ultrix sh set writes to stderr and can't be redirected directly,
2985# and sets the high bit in the cache file unless we assign to the vars.
2986(set) 2>&1 |
2987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2988 *ac_space=\ *)
2989 # `set' does not quote correctly, so add quotes (double-quote substitution
2990 # turns \\\\ into \\, and sed turns \\ into \).
2991 sed -n \
2992 -e "s/'/'\\\\''/g" \
2993 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2994 ;;
2995 *)
2996 # `set' quotes correctly as required by POSIX, so do not add quotes.
2997 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2998 ;;
2999 esac >> confcache
3000if cmp -s $cache_file confcache; then
3001 :
3002else
3003 if test -w $cache_file; then
3004 echo "updating cache $cache_file"
3005 cat confcache > $cache_file
3006 else
3007 echo "not updating unwritable cache $cache_file"
3008 fi
3009fi
3010rm -f confcache
3011
3012exit 0
3013
3014# Local Variables:
3015# mode:shell-script
3016# sh-indentation:2
3017# End:
diff --git a/xdelta1/ltmain.sh b/xdelta1/ltmain.sh
deleted file mode 100755
index c34de00..0000000
--- a/xdelta1/ltmain.sh
+++ /dev/null
@@ -1,3975 +0,0 @@
1# ltmain.sh - Provide generalized library-building support services.
2# NOTE: Changing this file will not affect anything until you rerun ltconfig.
3#
4# Copyright (C) 1996-1999 Free Software Foundation, Inc.
5# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15# General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20#
21# As a special exception to the GNU General Public License, if you
22# distribute this file as part of a program that contains a
23# configuration script generated by Autoconf, you may include it under
24# the same distribution terms that you use for the rest of that program.
25
26# Check that we have a working $echo.
27if test "X$1" = X--no-reexec; then
28 # Discard the --no-reexec flag, and continue.
29 shift
30elif test "X$1" = X--fallback-echo; then
31 # Avoid inline document here, it may be left over
32 :
33elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
34 # Yippee, $echo works!
35 :
36else
37 # Restart under the correct shell, and then maybe $echo will work.
38 exec $SHELL "$0" --no-reexec ${1+"$@"}
39fi
40
41if test "X$1" = X--fallback-echo; then
42 # used as fallback echo
43 shift
44 cat <<EOF
45$*
46EOF
47 exit 0
48fi
49
50# The name of this program.
51progname=`$echo "$0" | sed 's%^.*/%%'`
52modename="$progname"
53
54# Constants.
55PROGRAM=ltmain.sh
56PACKAGE=libtool
57VERSION=1.3.3
58TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
59
60default_mode=
61help="Try \`$progname --help' for more information."
62magic="%%%MAGIC variable%%%"
63mkdir="mkdir"
64mv="mv -f"
65rm="rm -f"
66
67# Sed substitution that helps us do robust quoting. It backslashifies
68# metacharacters that are still active within double-quoted strings.
69Xsed='sed -e 1s/^X//'
70sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
71SP2NL='tr \040 \012'
72NL2SP='tr \015\012 \040\040'
73
74# NLS nuisances.
75# Only set LANG and LC_ALL to C if already set.
76# These must not be set unconditionally because not all systems understand
77# e.g. LANG=C (notably SCO).
78# We save the old values to restore during execute mode.
79if test "${LC_ALL+set}" = set; then
80 save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
81fi
82if test "${LANG+set}" = set; then
83 save_LANG="$LANG"; LANG=C; export LANG
84fi
85
86if test "$LTCONFIG_VERSION" != "$VERSION"; then
87 echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
88 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
89 exit 1
90fi
91
92if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
93 echo "$modename: not configured to build any kind of library" 1>&2
94 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
95 exit 1
96fi
97
98# Global variables.
99mode=$default_mode
100nonopt=
101prev=
102prevopt=
103run=
104show="$echo"
105show_help=
106execute_dlfiles=
107lo2o="s/\\.lo\$/.${objext}/"
108o2lo="s/\\.${objext}\$/.lo/"
109
110# Parse our command line options once, thoroughly.
111while test $# -gt 0
112do
113 arg="$1"
114 shift
115
116 case "$arg" in
117 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
118 *) optarg= ;;
119 esac
120
121 # If the previous option needs an argument, assign it.
122 if test -n "$prev"; then
123 case "$prev" in
124 execute_dlfiles)
125 eval "$prev=\"\$$prev \$arg\""
126 ;;
127 *)
128 eval "$prev=\$arg"
129 ;;
130 esac
131
132 prev=
133 prevopt=
134 continue
135 fi
136
137 # Have we seen a non-optional argument yet?
138 case "$arg" in
139 --help)
140 show_help=yes
141 ;;
142
143 --version)
144 echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
145 exit 0
146 ;;
147
148 --config)
149 sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
150 exit 0
151 ;;
152
153 --debug)
154 echo "$progname: enabling shell trace mode"
155 set -x
156 ;;
157
158 --dry-run | -n)
159 run=:
160 ;;
161
162 --features)
163 echo "host: $host"
164 if test "$build_libtool_libs" = yes; then
165 echo "enable shared libraries"
166 else
167 echo "disable shared libraries"
168 fi
169 if test "$build_old_libs" = yes; then
170 echo "enable static libraries"
171 else
172 echo "disable static libraries"
173 fi
174 exit 0
175 ;;
176
177 --finish) mode="finish" ;;
178
179 --mode) prevopt="--mode" prev=mode ;;
180 --mode=*) mode="$optarg" ;;
181
182 --quiet | --silent)
183 show=:
184 ;;
185
186 -dlopen)
187 prevopt="-dlopen"
188 prev=execute_dlfiles
189 ;;
190
191 -*)
192 $echo "$modename: unrecognized option \`$arg'" 1>&2
193 $echo "$help" 1>&2
194 exit 1
195 ;;
196
197 *)
198 nonopt="$arg"
199 break
200 ;;
201 esac
202done
203
204if test -n "$prevopt"; then
205 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
206 $echo "$help" 1>&2
207 exit 1
208fi
209
210if test -z "$show_help"; then
211
212 # Infer the operation mode.
213 if test -z "$mode"; then
214 case "$nonopt" in
215 *cc | *++ | gcc* | *-gcc*)
216 mode=link
217 for arg
218 do
219 case "$arg" in
220 -c)
221 mode=compile
222 break
223 ;;
224 esac
225 done
226 ;;
227 *db | *dbx | *strace | *truss)
228 mode=execute
229 ;;
230 *install*|cp|mv)
231 mode=install
232 ;;
233 *rm)
234 mode=uninstall
235 ;;
236 *)
237 # If we have no mode, but dlfiles were specified, then do execute mode.
238 test -n "$execute_dlfiles" && mode=execute
239
240 # Just use the default operation mode.
241 if test -z "$mode"; then
242 if test -n "$nonopt"; then
243 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
244 else
245 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
246 fi
247 fi
248 ;;
249 esac
250 fi
251
252 # Only execute mode is allowed to have -dlopen flags.
253 if test -n "$execute_dlfiles" && test "$mode" != execute; then
254 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
255 $echo "$help" 1>&2
256 exit 1
257 fi
258
259 # Change the help message to a mode-specific one.
260 generic_help="$help"
261 help="Try \`$modename --help --mode=$mode' for more information."
262
263 # These modes are in order of execution frequency so that they run quickly.
264 case "$mode" in
265 # libtool compile mode
266 compile)
267 modename="$modename: compile"
268 # Get the compilation command and the source file.
269 base_compile=
270 lastarg=
271 srcfile="$nonopt"
272 suppress_output=
273
274 user_target=no
275 for arg
276 do
277 # Accept any command-line options.
278 case "$arg" in
279 -o)
280 if test "$user_target" != "no"; then
281 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
282 exit 1
283 fi
284 user_target=next
285 ;;
286
287 -static)
288 build_old_libs=yes
289 continue
290 ;;
291 esac
292
293 case "$user_target" in
294 next)
295 # The next one is the -o target name
296 user_target=yes
297 continue
298 ;;
299 yes)
300 # We got the output file
301 user_target=set
302 libobj="$arg"
303 continue
304 ;;
305 esac
306
307 # Accept the current argument as the source file.
308 lastarg="$srcfile"
309 srcfile="$arg"
310
311 # Aesthetically quote the previous argument.
312
313 # Backslashify any backslashes, double quotes, and dollar signs.
314 # These are the only characters that are still specially
315 # interpreted inside of double-quoted scrings.
316 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
317
318 # Double-quote args containing other shell metacharacters.
319 # Many Bourne shells cannot handle close brackets correctly in scan
320 # sets, so we specify it separately.
321 case "$lastarg" in
322 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
323 lastarg="\"$lastarg\""
324 ;;
325 esac
326
327 # Add the previous argument to base_compile.
328 if test -z "$base_compile"; then
329 base_compile="$lastarg"
330 else
331 base_compile="$base_compile $lastarg"
332 fi
333 done
334
335 case "$user_target" in
336 set)
337 ;;
338 no)
339 # Get the name of the library object.
340 libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
341 ;;
342 *)
343 $echo "$modename: you must specify a target with \`-o'" 1>&2
344 exit 1
345 ;;
346 esac
347
348 # Recognize several different file suffixes.
349 # If the user specifies -o file.o, it is replaced with file.lo
350 xform='[cCFSfmso]'
351 case "$libobj" in
352 *.ada) xform=ada ;;
353 *.adb) xform=adb ;;
354 *.ads) xform=ads ;;
355 *.asm) xform=asm ;;
356 *.c++) xform=c++ ;;
357 *.cc) xform=cc ;;
358 *.cpp) xform=cpp ;;
359 *.cxx) xform=cxx ;;
360 *.f90) xform=f90 ;;
361 *.for) xform=for ;;
362 esac
363
364 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
365
366 case "$libobj" in
367 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
368 *)
369 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
370 exit 1
371 ;;
372 esac
373
374 if test -z "$base_compile"; then
375 $echo "$modename: you must specify a compilation command" 1>&2
376 $echo "$help" 1>&2
377 exit 1
378 fi
379
380 # Delete any leftover library objects.
381 if test "$build_old_libs" = yes; then
382 removelist="$obj $libobj"
383 else
384 removelist="$libobj"
385 fi
386
387 $run $rm $removelist
388 trap "$run $rm $removelist; exit 1" 1 2 15
389
390 # Calculate the filename of the output object if compiler does
391 # not support -o with -c
392 if test "$compiler_c_o" = no; then
393 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
394 lockfile="$output_obj.lock"
395 removelist="$removelist $output_obj $lockfile"
396 trap "$run $rm $removelist; exit 1" 1 2 15
397 else
398 need_locks=no
399 lockfile=
400 fi
401
402 # Lock this critical section if it is needed
403 # We use this script file to make the link, it avoids creating a new file
404 if test "$need_locks" = yes; then
405 until ln "$0" "$lockfile" 2>/dev/null; do
406 $show "Waiting for $lockfile to be removed"
407 sleep 2
408 done
409 elif test "$need_locks" = warn; then
410 if test -f "$lockfile"; then
411 echo "\
412*** ERROR, $lockfile exists and contains:
413`cat $lockfile 2>/dev/null`
414
415This indicates that another process is trying to use the same
416temporary object file, and libtool could not work around it because
417your compiler does not support \`-c' and \`-o' together. If you
418repeat this compilation, it may succeed, by chance, but you had better
419avoid parallel builds (make -j) in this platform, or get a better
420compiler."
421
422 $run $rm $removelist
423 exit 1
424 fi
425 echo $srcfile > "$lockfile"
426 fi
427
428 if test -n "$fix_srcfile_path"; then
429 eval srcfile=\"$fix_srcfile_path\"
430 fi
431
432 # Only build a PIC object if we are building libtool libraries.
433 if test "$build_libtool_libs" = yes; then
434 # Without this assignment, base_compile gets emptied.
435 fbsd_hideous_sh_bug=$base_compile
436
437 # All platforms use -DPIC, to notify preprocessed assembler code.
438 command="$base_compile $pic_flag -DPIC $srcfile"
439 if test "$build_old_libs" = yes; then
440 lo_libobj="$libobj"
441 dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
442 if test "X$dir" = "X$libobj"; then
443 dir="$objdir"
444 else
445 dir="$dir/$objdir"
446 fi
447 libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
448
449 if test -d "$dir"; then
450 $show "$rm $libobj"
451 $run $rm $libobj
452 else
453 $show "$mkdir $dir"
454 $run $mkdir $dir
455 status=$?
456 if test $status -ne 0 && test ! -d $dir; then
457 exit $status
458 fi
459 fi
460 fi
461 if test "$compiler_o_lo" = yes; then
462 output_obj="$libobj"
463 command="$command -o $output_obj"
464 elif test "$compiler_c_o" = yes; then
465 output_obj="$obj"
466 command="$command -o $output_obj"
467 fi
468
469 $run $rm "$output_obj"
470 $show "$command"
471 if $run eval "$command"; then :
472 else
473 test -n "$output_obj" && $run $rm $removelist
474 exit 1
475 fi
476
477 if test "$need_locks" = warn &&
478 test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
479 echo "\
480*** ERROR, $lockfile contains:
481`cat $lockfile 2>/dev/null`
482
483but it should contain:
484$srcfile
485
486This indicates that another process is trying to use the same
487temporary object file, and libtool could not work around it because
488your compiler does not support \`-c' and \`-o' together. If you
489repeat this compilation, it may succeed, by chance, but you had better
490avoid parallel builds (make -j) in this platform, or get a better
491compiler."
492
493 $run $rm $removelist
494 exit 1
495 fi
496
497 # Just move the object if needed, then go on to compile the next one
498 if test x"$output_obj" != x"$libobj"; then
499 $show "$mv $output_obj $libobj"
500 if $run $mv $output_obj $libobj; then :
501 else
502 error=$?
503 $run $rm $removelist
504 exit $error
505 fi
506 fi
507
508 # If we have no pic_flag, then copy the object into place and finish.
509 if test -z "$pic_flag" && test "$build_old_libs" = yes; then
510 # Rename the .lo from within objdir to obj
511 if test -f $obj; then
512 $show $rm $obj
513 $run $rm $obj
514 fi
515
516 $show "$mv $libobj $obj"
517 if $run $mv $libobj $obj; then :
518 else
519 error=$?
520 $run $rm $removelist
521 exit $error
522 fi
523
524 # Now arrange that obj and lo_libobj become the same file
525 $show "$LN_S $obj $lo_libobj"
526 if $run $LN_S $obj $lo_libobj; then
527 exit 0
528 else
529 error=$?
530 $run $rm $removelist
531 exit $error
532 fi
533 fi
534
535 # Allow error messages only from the first compilation.
536 suppress_output=' >/dev/null 2>&1'
537 fi
538
539 # Only build a position-dependent object if we build old libraries.
540 if test "$build_old_libs" = yes; then
541 command="$base_compile $srcfile"
542 if test "$compiler_c_o" = yes; then
543 command="$command -o $obj"
544 output_obj="$obj"
545 fi
546
547 # Suppress compiler output if we already did a PIC compilation.
548 command="$command$suppress_output"
549 $run $rm "$output_obj"
550 $show "$command"
551 if $run eval "$command"; then :
552 else
553 $run $rm $removelist
554 exit 1
555 fi
556
557 if test "$need_locks" = warn &&
558 test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
559 echo "\
560*** ERROR, $lockfile contains:
561`cat $lockfile 2>/dev/null`
562
563but it should contain:
564$srcfile
565
566This indicates that another process is trying to use the same
567temporary object file, and libtool could not work around it because
568your compiler does not support \`-c' and \`-o' together. If you
569repeat this compilation, it may succeed, by chance, but you had better
570avoid parallel builds (make -j) in this platform, or get a better
571compiler."
572
573 $run $rm $removelist
574 exit 1
575 fi
576
577 # Just move the object if needed
578 if test x"$output_obj" != x"$obj"; then
579 $show "$mv $output_obj $obj"
580 if $run $mv $output_obj $obj; then :
581 else
582 error=$?
583 $run $rm $removelist
584 exit $error
585 fi
586 fi
587
588 # Create an invalid libtool object if no PIC, so that we do not
589 # accidentally link it into a program.
590 if test "$build_libtool_libs" != yes; then
591 $show "echo timestamp > $libobj"
592 $run eval "echo timestamp > \$libobj" || exit $?
593 else
594 # Move the .lo from within objdir
595 $show "$mv $libobj $lo_libobj"
596 if $run $mv $libobj $lo_libobj; then :
597 else
598 error=$?
599 $run $rm $removelist
600 exit $error
601 fi
602 fi
603 fi
604
605 # Unlock the critical section if it was locked
606 if test "$need_locks" != no; then
607 $rm "$lockfile"
608 fi
609
610 exit 0
611 ;;
612
613 # libtool link mode
614 link)
615 modename="$modename: link"
616 C_compiler="$CC" # save it, to compile generated C sources
617 CC="$nonopt"
618 case "$host" in
619 *-*-cygwin* | *-*-mingw* | *-*-os2*)
620 # It is impossible to link a dll without this setting, and
621 # we shouldn't force the makefile maintainer to figure out
622 # which system we are compiling for in order to pass an extra
623 # flag for every libtool invokation.
624 # allow_undefined=no
625
626 # FIXME: Unfortunately, there are problems with the above when trying
627 # to make a dll which has undefined symbols, in which case not
628 # even a static library is built. For now, we need to specify
629 # -no-undefined on the libtool link line when we can be certain
630 # that all symbols are satisfied, otherwise we get a static library.
631 allow_undefined=yes
632
633 # This is a source program that is used to create dlls on Windows
634 # Don't remove nor modify the starting and closing comments
635# /* ltdll.c starts here */
636# #define WIN32_LEAN_AND_MEAN
637# #include <windows.h>
638# #undef WIN32_LEAN_AND_MEAN
639# #include <stdio.h>
640#
641# #ifndef __CYGWIN__
642# # ifdef __CYGWIN32__
643# # define __CYGWIN__ __CYGWIN32__
644# # endif
645# #endif
646#
647# #ifdef __cplusplus
648# extern "C" {
649# #endif
650# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
651# #ifdef __cplusplus
652# }
653# #endif
654#
655# #ifdef __CYGWIN__
656# #include <cygwin/cygwin_dll.h>
657# DECLARE_CYGWIN_DLL( DllMain );
658# #endif
659# HINSTANCE __hDllInstance_base;
660#
661# BOOL APIENTRY
662# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
663# {
664# __hDllInstance_base = hInst;
665# return TRUE;
666# }
667# /* ltdll.c ends here */
668 # This is a source program that is used to create import libraries
669 # on Windows for dlls which lack them. Don't remove nor modify the
670 # starting and closing comments
671# /* impgen.c starts here */
672# /* Copyright (C) 1999 Free Software Foundation, Inc.
673#
674# This file is part of GNU libtool.
675#
676# This program is free software; you can redistribute it and/or modify
677# it under the terms of the GNU General Public License as published by
678# the Free Software Foundation; either version 2 of the License, or
679# (at your option) any later version.
680#
681# This program is distributed in the hope that it will be useful,
682# but WITHOUT ANY WARRANTY; without even the implied warranty of
683# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
684# GNU General Public License for more details.
685#
686# You should have received a copy of the GNU General Public License
687# along with this program; if not, write to the Free Software
688# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
689# */
690#
691# #include <stdio.h> /* for printf() */
692# #include <unistd.h> /* for open(), lseek(), read() */
693# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
694# #include <string.h> /* for strdup() */
695#
696# static unsigned int
697# pe_get16 (fd, offset)
698# int fd;
699# int offset;
700# {
701# unsigned char b[2];
702# lseek (fd, offset, SEEK_SET);
703# read (fd, b, 2);
704# return b[0] + (b[1]<<8);
705# }
706#
707# static unsigned int
708# pe_get32 (fd, offset)
709# int fd;
710# int offset;
711# {
712# unsigned char b[4];
713# lseek (fd, offset, SEEK_SET);
714# read (fd, b, 4);
715# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
716# }
717#
718# static unsigned int
719# pe_as32 (ptr)
720# void *ptr;
721# {
722# unsigned char *b = ptr;
723# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
724# }
725#
726# int
727# main (argc, argv)
728# int argc;
729# char *argv[];
730# {
731# int dll;
732# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
733# unsigned long export_rva, export_size, nsections, secptr, expptr;
734# unsigned long name_rvas, nexp;
735# unsigned char *expdata, *erva;
736# char *filename, *dll_name;
737#
738# filename = argv[1];
739#
740# dll = open(filename, O_RDONLY|O_BINARY);
741# if (!dll)
742# return 1;
743#
744# dll_name = filename;
745#
746# for (i=0; filename[i]; i++)
747# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
748# dll_name = filename + i +1;
749#
750# pe_header_offset = pe_get32 (dll, 0x3c);
751# opthdr_ofs = pe_header_offset + 4 + 20;
752# num_entries = pe_get32 (dll, opthdr_ofs + 92);
753#
754# if (num_entries < 1) /* no exports */
755# return 1;
756#
757# export_rva = pe_get32 (dll, opthdr_ofs + 96);
758# export_size = pe_get32 (dll, opthdr_ofs + 100);
759# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
760# secptr = (pe_header_offset + 4 + 20 +
761# pe_get16 (dll, pe_header_offset + 4 + 16));
762#
763# expptr = 0;
764# for (i = 0; i < nsections; i++)
765# {
766# char sname[8];
767# unsigned long secptr1 = secptr + 40 * i;
768# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
769# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
770# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
771# lseek(dll, secptr1, SEEK_SET);
772# read(dll, sname, 8);
773# if (vaddr <= export_rva && vaddr+vsize > export_rva)
774# {
775# expptr = fptr + (export_rva - vaddr);
776# if (export_rva + export_size > vaddr + vsize)
777# export_size = vsize - (export_rva - vaddr);
778# break;
779# }
780# }
781#
782# expdata = (unsigned char*)malloc(export_size);
783# lseek (dll, expptr, SEEK_SET);
784# read (dll, expdata, export_size);
785# erva = expdata - export_rva;
786#
787# nexp = pe_as32 (expdata+24);
788# name_rvas = pe_as32 (expdata+32);
789#
790# printf ("EXPORTS\n");
791# for (i = 0; i<nexp; i++)
792# {
793# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
794# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
795# }
796#
797# return 0;
798# }
799# /* impgen.c ends here */
800 ;;
801 *)
802 allow_undefined=yes
803 ;;
804 esac
805 compile_command="$CC"
806 finalize_command="$CC"
807
808 compile_rpath=
809 finalize_rpath=
810 compile_shlibpath=
811 finalize_shlibpath=
812 convenience=
813 old_convenience=
814 deplibs=
815 linkopts=
816
817 if test -n "$shlibpath_var"; then
818 # get the directories listed in $shlibpath_var
819 eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
820 else
821 lib_search_path=
822 fi
823 # now prepend the system-specific ones
824 eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
825 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
826
827 avoid_version=no
828 dlfiles=
829 dlprefiles=
830 dlself=no
831 export_dynamic=no
832 export_symbols=
833 export_symbols_regex=
834 generated=
835 libobjs=
836 link_against_libtool_libs=
837 ltlibs=
838 module=no
839 objs=
840 prefer_static_libs=no
841 preload=no
842 prev=
843 prevarg=
844 release=
845 rpath=
846 xrpath=
847 perm_rpath=
848 temp_rpath=
849 thread_safe=no
850 vinfo=
851
852 # We need to know -static, to get the right output filenames.
853 for arg
854 do
855 case "$arg" in
856 -all-static | -static)
857 if test "X$arg" = "X-all-static"; then
858 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
859 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
860 fi
861 if test -n "$link_static_flag"; then
862 dlopen_self=$dlopen_self_static
863 fi
864 else
865 if test -z "$pic_flag" && test -n "$link_static_flag"; then
866 dlopen_self=$dlopen_self_static
867 fi
868 fi
869 build_libtool_libs=no
870 build_old_libs=yes
871 prefer_static_libs=yes
872 break
873 ;;
874 esac
875 done
876
877 # See if our shared archives depend on static archives.
878 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
879
880 # Go through the arguments, transforming them on the way.
881 while test $# -gt 0; do
882 arg="$1"
883 shift
884
885 # If the previous option needs an argument, assign it.
886 if test -n "$prev"; then
887 case "$prev" in
888 output)
889 compile_command="$compile_command @OUTPUT@"
890 finalize_command="$finalize_command @OUTPUT@"
891 ;;
892 esac
893
894 case "$prev" in
895 dlfiles|dlprefiles)
896 if test "$preload" = no; then
897 # Add the symbol object into the linking commands.
898 compile_command="$compile_command @SYMFILE@"
899 finalize_command="$finalize_command @SYMFILE@"
900 preload=yes
901 fi
902 case "$arg" in
903 *.la | *.lo) ;; # We handle these cases below.
904 force)
905 if test "$dlself" = no; then
906 dlself=needless
907 export_dynamic=yes
908 fi
909 prev=
910 continue
911 ;;
912 self)
913 if test "$prev" = dlprefiles; then
914 dlself=yes
915 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
916 dlself=yes
917 else
918 dlself=needless
919 export_dynamic=yes
920 fi
921 prev=
922 continue
923 ;;
924 *)
925 if test "$prev" = dlfiles; then
926 dlfiles="$dlfiles $arg"
927 else
928 dlprefiles="$dlprefiles $arg"
929 fi
930 prev=
931 ;;
932 esac
933 ;;
934 expsyms)
935 export_symbols="$arg"
936 if test ! -f "$arg"; then
937 $echo "$modename: symbol file \`$arg' does not exist"
938 exit 1
939 fi
940 prev=
941 continue
942 ;;
943 expsyms_regex)
944 export_symbols_regex="$arg"
945 prev=
946 continue
947 ;;
948 release)
949 release="-$arg"
950 prev=
951 continue
952 ;;
953 rpath | xrpath)
954 # We need an absolute path.
955 case "$arg" in
956 [\\/]* | [A-Za-z]:[\\/]*) ;;
957 *)
958 $echo "$modename: only absolute run-paths are allowed" 1>&2
959 exit 1
960 ;;
961 esac
962 if test "$prev" = rpath; then
963 case "$rpath " in
964 *" $arg "*) ;;
965 *) rpath="$rpath $arg" ;;
966 esac
967 else
968 case "$xrpath " in
969 *" $arg "*) ;;
970 *) xrpath="$xrpath $arg" ;;
971 esac
972 fi
973 prev=
974 continue
975 ;;
976 *)
977 eval "$prev=\"\$arg\""
978 prev=
979 continue
980 ;;
981 esac
982 fi
983
984 prevarg="$arg"
985
986 case "$arg" in
987 -all-static)
988 if test -n "$link_static_flag"; then
989 compile_command="$compile_command $link_static_flag"
990 finalize_command="$finalize_command $link_static_flag"
991 fi
992 continue
993 ;;
994
995 -allow-undefined)
996 # FIXME: remove this flag sometime in the future.
997 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
998 continue
999 ;;
1000
1001 -avoid-version)
1002 avoid_version=yes
1003 continue
1004 ;;
1005
1006 -dlopen)
1007 prev=dlfiles
1008 continue
1009 ;;
1010
1011 -dlpreopen)
1012 prev=dlprefiles
1013 continue
1014 ;;
1015
1016 -export-dynamic)
1017 export_dynamic=yes
1018 continue
1019 ;;
1020
1021 -export-symbols | -export-symbols-regex)
1022 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1023 $echo "$modename: not more than one -exported-symbols argument allowed"
1024 exit 1
1025 fi
1026 if test "X$arg" = "X-export-symbols"; then
1027 prev=expsyms
1028 else
1029 prev=expsyms_regex
1030 fi
1031 continue
1032 ;;
1033
1034 -L*)
1035 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1036 # We need an absolute path.
1037 case "$dir" in
1038 [\\/]* | [A-Za-z]:[\\/]*) ;;
1039 *)
1040 absdir=`cd "$dir" && pwd`
1041 if test -z "$absdir"; then
1042 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
1043 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
1044 absdir="$dir"
1045 fi
1046 dir="$absdir"
1047 ;;
1048 esac
1049 case " $deplibs " in
1050 *" $arg "*) ;;
1051 *) deplibs="$deplibs $arg";;
1052 esac
1053 case " $lib_search_path " in
1054 *" $dir "*) ;;
1055 *) lib_search_path="$lib_search_path $dir";;
1056 esac
1057 case "$host" in
1058 *-*-cygwin* | *-*-mingw* | *-*-os2*)
1059 dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
1060 case ":$dllsearchpath:" in
1061 ::) dllsearchpath="$dllsearchdir";;
1062 *":$dllsearchdir:"*) ;;
1063 *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
1064 esac
1065 ;;
1066 esac
1067 ;;
1068
1069 -l*)
1070 if test "$arg" = "-lc"; then
1071 case "$host" in
1072 *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
1073 # These systems don't actually have c library (as such)
1074 continue
1075 ;;
1076 esac
1077 elif test "$arg" = "-lm"; then
1078 case "$host" in
1079 *-*-cygwin* | *-*-beos*)
1080 # These systems don't actually have math library (as such)
1081 continue
1082 ;;
1083 esac
1084 fi
1085 deplibs="$deplibs $arg"
1086 ;;
1087
1088 -module)
1089 module=yes
1090 continue
1091 ;;
1092
1093 -no-undefined)
1094 allow_undefined=no
1095 continue
1096 ;;
1097
1098 -o) prev=output ;;
1099
1100 -release)
1101 prev=release
1102 continue
1103 ;;
1104
1105 -rpath)
1106 prev=rpath
1107 continue
1108 ;;
1109
1110 -R)
1111 prev=xrpath
1112 continue
1113 ;;
1114
1115 -R*)
1116 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1117 # We need an absolute path.
1118 case "$dir" in
1119 [\\/]* | [A-Za-z]:[\\/]*) ;;
1120 *)
1121 $echo "$modename: only absolute run-paths are allowed" 1>&2
1122 exit 1
1123 ;;
1124 esac
1125 case "$xrpath " in
1126 *" $dir "*) ;;
1127 *) xrpath="$xrpath $dir" ;;
1128 esac
1129 continue
1130 ;;
1131
1132 -static)
1133 # If we have no pic_flag, then this is the same as -all-static.
1134 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1135 compile_command="$compile_command $link_static_flag"
1136 finalize_command="$finalize_command $link_static_flag"
1137 fi
1138 continue
1139 ;;
1140
1141 -thread-safe)
1142 thread_safe=yes
1143 continue
1144 ;;
1145
1146 -version-info)
1147 prev=vinfo
1148 continue
1149 ;;
1150
1151 # Some other compiler flag.
1152 -* | +*)
1153 # Unknown arguments in both finalize_command and compile_command need
1154 # to be aesthetically quoted because they are evaled later.
1155 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1156 case "$arg" in
1157 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
1158 arg="\"$arg\""
1159 ;;
1160 esac
1161 ;;
1162
1163 *.o | *.obj | *.a | *.lib)
1164 # A standard object.
1165 objs="$objs $arg"
1166 ;;
1167
1168 *.lo)
1169 # A library object.
1170 if test "$prev" = dlfiles; then
1171 dlfiles="$dlfiles $arg"
1172 if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
1173 prev=
1174 continue
1175 else
1176 # If libtool objects are unsupported, then we need to preload.
1177 prev=dlprefiles
1178 fi
1179 fi
1180
1181 if test "$prev" = dlprefiles; then
1182 # Preload the old-style object.
1183 dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
1184 prev=
1185 fi
1186 libobjs="$libobjs $arg"
1187 ;;
1188
1189 *.la)
1190 # A libtool-controlled library.
1191
1192 dlname=
1193 libdir=
1194 library_names=
1195 old_library=
1196
1197 # Check to see that this really is a libtool archive.
1198 if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
1199 else
1200 $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
1201 exit 1
1202 fi
1203
1204 # If the library was installed with an old release of libtool,
1205 # it will not redefine variable installed.
1206 installed=yes
1207
1208 # Read the .la file
1209 # If there is no directory component, then add one.
1210 case "$arg" in
1211 */* | *\\*) . $arg ;;
1212 *) . ./$arg ;;
1213 esac
1214
1215 # Get the name of the library we link against.
1216 linklib=
1217 for l in $old_library $library_names; do
1218 linklib="$l"
1219 done
1220
1221 if test -z "$linklib"; then
1222 $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
1223 exit 1
1224 fi
1225
1226 # Find the relevant object directory and library name.
1227 name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
1228
1229 if test "X$installed" = Xyes; then
1230 dir="$libdir"
1231 else
1232 dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1233 if test "X$dir" = "X$arg"; then
1234 dir="$objdir"
1235 else
1236 dir="$dir/$objdir"
1237 fi
1238 fi
1239
1240 if test -n "$dependency_libs"; then
1241 # Extract -R and -L from dependency_libs
1242 temp_deplibs=
1243 for deplib in $dependency_libs; do
1244 case "$deplib" in
1245 -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
1246 case " $rpath $xrpath " in
1247 *" $temp_xrpath "*) ;;
1248 *) xrpath="$xrpath $temp_xrpath";;
1249 esac;;
1250 -L*) case "$compile_command $temp_deplibs " in
1251 *" $deplib "*) ;;
1252 *) temp_deplibs="$temp_deplibs $deplib";;
1253 esac
1254 temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1255 case " $lib_search_path " in
1256 *" $temp_dir "*) ;;
1257 *) lib_search_path="$lib_search_path $temp_dir";;
1258 esac
1259 ;;
1260 *) temp_deplibs="$temp_deplibs $deplib";;
1261 esac
1262 done
1263 dependency_libs="$temp_deplibs"
1264 fi
1265
1266 if test -z "$libdir"; then
1267 # It is a libtool convenience library, so add in its objects.
1268 convenience="$convenience $dir/$old_library"
1269 old_convenience="$old_convenience $dir/$old_library"
1270 deplibs="$deplibs$dependency_libs"
1271 compile_command="$compile_command $dir/$old_library$dependency_libs"
1272 finalize_command="$finalize_command $dir/$old_library$dependency_libs"
1273 continue
1274 fi
1275
1276 # This library was specified with -dlopen.
1277 if test "$prev" = dlfiles; then
1278 dlfiles="$dlfiles $arg"
1279 if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
1280 # If there is no dlname, no dlopen support or we're linking statically,
1281 # we need to preload.
1282 prev=dlprefiles
1283 else
1284 # We should not create a dependency on this library, but we
1285 # may need any libraries it requires.
1286 compile_command="$compile_command$dependency_libs"
1287 finalize_command="$finalize_command$dependency_libs"
1288 prev=
1289 continue
1290 fi
1291 fi
1292
1293 # The library was specified with -dlpreopen.
1294 if test "$prev" = dlprefiles; then
1295 # Prefer using a static library (so that no silly _DYNAMIC symbols
1296 # are required to link).
1297 if test -n "$old_library"; then
1298 dlprefiles="$dlprefiles $dir/$old_library"
1299 else
1300 dlprefiles="$dlprefiles $dir/$linklib"
1301 fi
1302 prev=
1303 fi
1304
1305 if test -n "$library_names" &&
1306 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
1307 link_against_libtool_libs="$link_against_libtool_libs $arg"
1308 if test -n "$shlibpath_var"; then
1309 # Make sure the rpath contains only unique directories.
1310 case "$temp_rpath " in
1311 *" $dir "*) ;;
1312 *) temp_rpath="$temp_rpath $dir" ;;
1313 esac
1314 fi
1315
1316 # We need an absolute path.
1317 case "$dir" in
1318 [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
1319 *)
1320 absdir=`cd "$dir" && pwd`
1321 if test -z "$absdir"; then
1322 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
1323 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
1324 absdir="$dir"
1325 fi
1326 ;;
1327 esac
1328
1329 # This is the magic to use -rpath.
1330 # Skip directories that are in the system default run-time
1331 # search path, unless they have been requested with -R.
1332 case " $sys_lib_dlsearch_path " in
1333 *" $absdir "*) ;;
1334 *)
1335 case "$compile_rpath " in
1336 *" $absdir "*) ;;
1337 *) compile_rpath="$compile_rpath $absdir"
1338 esac
1339 ;;
1340 esac
1341
1342 case " $sys_lib_dlsearch_path " in
1343 *" $libdir "*) ;;
1344 *)
1345 case "$finalize_rpath " in
1346 *" $libdir "*) ;;
1347 *) finalize_rpath="$finalize_rpath $libdir"
1348 esac
1349 ;;
1350 esac
1351
1352 lib_linked=yes
1353 case "$hardcode_action" in
1354 immediate | unsupported)
1355 if test "$hardcode_direct" = no; then
1356 compile_command="$compile_command $dir/$linklib"
1357 deplibs="$deplibs $dir/$linklib"
1358 case "$host" in
1359 *-*-cygwin* | *-*-mingw* | *-*-os2*)
1360 dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
1361 if test -n "$dllsearchpath"; then
1362 dllsearchpath="$dllsearchpath:$dllsearchdir"
1363 else
1364 dllsearchpath="$dllsearchdir"
1365 fi
1366 ;;
1367 esac
1368 elif test "$hardcode_minus_L" = no; then
1369 case "$host" in
1370 *-*-sunos*)
1371 compile_shlibpath="$compile_shlibpath$dir:"
1372 ;;
1373 esac
1374 case "$compile_command " in
1375 *" -L$dir "*) ;;
1376 *) compile_command="$compile_command -L$dir";;
1377 esac
1378 compile_command="$compile_command -l$name"
1379 deplibs="$deplibs -L$dir -l$name"
1380 elif test "$hardcode_shlibpath_var" = no; then
1381 case ":$compile_shlibpath:" in
1382 *":$dir:"*) ;;
1383 *) compile_shlibpath="$compile_shlibpath$dir:";;
1384 esac
1385 compile_command="$compile_command -l$name"
1386 deplibs="$deplibs -l$name"
1387 else
1388 lib_linked=no
1389 fi
1390 ;;
1391
1392 relink)
1393 if test "$hardcode_direct" = yes; then
1394 compile_command="$compile_command $absdir/$linklib"
1395 deplibs="$deplibs $absdir/$linklib"
1396 elif test "$hardcode_minus_L" = yes; then
1397 case "$compile_command " in
1398 *" -L$absdir "*) ;;
1399 *) compile_command="$compile_command -L$absdir";;
1400 esac
1401 compile_command="$compile_command -l$name"
1402 deplibs="$deplibs -L$absdir -l$name"
1403 elif test "$hardcode_shlibpath_var" = yes; then
1404 case ":$compile_shlibpath:" in
1405 *":$absdir:"*) ;;
1406 *) compile_shlibpath="$compile_shlibpath$absdir:";;
1407 esac
1408 compile_command="$compile_command -l$name"
1409 deplibs="$deplibs -l$name"
1410 else
1411 lib_linked=no
1412 fi
1413 ;;
1414
1415 *)
1416 lib_linked=no
1417 ;;
1418 esac
1419
1420 if test "$lib_linked" != yes; then
1421 $echo "$modename: configuration error: unsupported hardcode properties"
1422 exit 1
1423 fi
1424
1425 # Finalize command for both is simple: just hardcode it.
1426 if test "$hardcode_direct" = yes; then
1427 finalize_command="$finalize_command $libdir/$linklib"
1428 elif test "$hardcode_minus_L" = yes; then
1429 case "$finalize_command " in
1430 *" -L$libdir "*) ;;
1431 *) finalize_command="$finalize_command -L$libdir";;
1432 esac
1433 finalize_command="$finalize_command -l$name"
1434 elif test "$hardcode_shlibpath_var" = yes; then
1435 case ":$finalize_shlibpath:" in
1436 *":$libdir:"*) ;;
1437 *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
1438 esac
1439 finalize_command="$finalize_command -l$name"
1440 else
1441 # We cannot seem to hardcode it, guess we'll fake it.
1442 case "$finalize_command " in
1443 *" -L$dir "*) ;;
1444 *) finalize_command="$finalize_command -L$libdir";;
1445 esac
1446 finalize_command="$finalize_command -l$name"
1447 fi
1448 else
1449 # Transform directly to old archives if we don't build new libraries.
1450 if test -n "$pic_flag" && test -z "$old_library"; then
1451 $echo "$modename: cannot find static library for \`$arg'" 1>&2
1452 exit 1
1453 fi
1454
1455 # Here we assume that one of hardcode_direct or hardcode_minus_L
1456 # is not unsupported. This is valid on all known static and
1457 # shared platforms.
1458 if test "$hardcode_direct" != unsupported; then
1459 test -n "$old_library" && linklib="$old_library"
1460 compile_command="$compile_command $dir/$linklib"
1461 finalize_command="$finalize_command $dir/$linklib"
1462 else
1463 case "$compile_command " in
1464 *" -L$dir "*) ;;
1465 *) compile_command="$compile_command -L$dir";;
1466 esac
1467 compile_command="$compile_command -l$name"
1468 case "$finalize_command " in
1469 *" -L$dir "*) ;;
1470 *) finalize_command="$finalize_command -L$dir";;
1471 esac
1472 finalize_command="$finalize_command -l$name"
1473 fi
1474 fi
1475
1476 # Add in any libraries that this one depends upon.
1477 compile_command="$compile_command$dependency_libs"
1478 finalize_command="$finalize_command$dependency_libs"
1479 continue
1480 ;;
1481
1482 # Some other compiler argument.
1483 *)
1484 # Unknown arguments in both finalize_command and compile_command need
1485 # to be aesthetically quoted because they are evaled later.
1486 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1487 case "$arg" in
1488 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
1489 arg="\"$arg\""
1490 ;;
1491 esac
1492 ;;
1493 esac
1494
1495 # Now actually substitute the argument into the commands.
1496 if test -n "$arg"; then
1497 compile_command="$compile_command $arg"
1498 finalize_command="$finalize_command $arg"
1499 fi
1500 done
1501
1502 if test -n "$prev"; then
1503 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1504 $echo "$help" 1>&2
1505 exit 1
1506 fi
1507
1508 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1509 eval arg=\"$export_dynamic_flag_spec\"
1510 compile_command="$compile_command $arg"
1511 finalize_command="$finalize_command $arg"
1512 fi
1513
1514 oldlibs=
1515 # calculate the name of the file, without its directory
1516 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
1517 libobjs_save="$libobjs"
1518
1519 case "$output" in
1520 "")
1521 $echo "$modename: you must specify an output file" 1>&2
1522 $echo "$help" 1>&2
1523 exit 1
1524 ;;
1525
1526 *.a | *.lib)
1527 if test -n "$link_against_libtool_libs"; then
1528 $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
1529 exit 1
1530 fi
1531
1532 if test -n "$deplibs"; then
1533 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
1534 fi
1535
1536 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1537 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
1538 fi
1539
1540 if test -n "$rpath"; then
1541 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
1542 fi
1543
1544 if test -n "$xrpath"; then
1545 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
1546 fi
1547
1548 if test -n "$vinfo"; then
1549 $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
1550 fi
1551
1552 if test -n "$release"; then
1553 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
1554 fi
1555
1556 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1557 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
1558 fi
1559
1560 # Now set the variables for building old libraries.
1561 build_libtool_libs=no
1562 oldlibs="$output"
1563 ;;
1564
1565 *.la)
1566 # Make sure we only generate libraries of the form `libNAME.la'.
1567 case "$outputname" in
1568 lib*)
1569 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
1570 eval libname=\"$libname_spec\"
1571 ;;
1572 *)
1573 if test "$module" = no; then
1574 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
1575 $echo "$help" 1>&2
1576 exit 1
1577 fi
1578 if test "$need_lib_prefix" != no; then
1579 # Add the "lib" prefix for modules if required
1580 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
1581 eval libname=\"$libname_spec\"
1582 else
1583 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
1584 fi
1585 ;;
1586 esac
1587
1588 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
1589 if test "X$output_objdir" = "X$output"; then
1590 output_objdir="$objdir"
1591 else
1592 output_objdir="$output_objdir/$objdir"
1593 fi
1594
1595 if test -n "$objs"; then
1596 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
1597 exit 1
1598 fi
1599
1600 # How the heck are we supposed to write a wrapper for a shared library?
1601 if test -n "$link_against_libtool_libs"; then
1602 $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
1603 exit 1
1604 fi
1605
1606 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
1607 $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
1608 fi
1609
1610 set dummy $rpath
1611 if test $# -gt 2; then
1612 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
1613 fi
1614 install_libdir="$2"
1615
1616 oldlibs=
1617 if test -z "$rpath"; then
1618 if test "$build_libtool_libs" = yes; then
1619 # Building a libtool convenience library.
1620 libext=al
1621 oldlibs="$output_objdir/$libname.$libext $oldlibs"
1622 build_libtool_libs=convenience
1623 build_old_libs=yes
1624 fi
1625 dependency_libs="$deplibs"
1626
1627 if test -n "$vinfo"; then
1628 $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
1629 fi
1630
1631 if test -n "$release"; then
1632 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
1633 fi
1634 else
1635
1636 # Parse the version information argument.
1637 IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
1638 set dummy $vinfo 0 0 0
1639 IFS="$save_ifs"
1640
1641 if test -n "$8"; then
1642 $echo "$modename: too many parameters to \`-version-info'" 1>&2
1643 $echo "$help" 1>&2
1644 exit 1
1645 fi
1646
1647 current="$2"
1648 revision="$3"
1649 age="$4"
1650
1651 # Check that each of the things are valid numbers.
1652 case "$current" in
1653 0 | [1-9] | [1-9][0-9]*) ;;
1654 *)
1655 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
1656 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1657 exit 1
1658 ;;
1659 esac
1660
1661 case "$revision" in
1662 0 | [1-9] | [1-9][0-9]*) ;;
1663 *)
1664 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
1665 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1666 exit 1
1667 ;;
1668 esac
1669
1670 case "$age" in
1671 0 | [1-9] | [1-9][0-9]*) ;;
1672 *)
1673 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
1674 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1675 exit 1
1676 ;;
1677 esac
1678
1679 if test $age -gt $current; then
1680 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
1681 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
1682 exit 1
1683 fi
1684
1685 # Calculate the version variables.
1686 major=
1687 versuffix=
1688 verstring=
1689 case "$version_type" in
1690 none) ;;
1691
1692 irix)
1693 major=`expr $current - $age + 1`
1694 versuffix="$major.$revision"
1695 verstring="sgi$major.$revision"
1696
1697 # Add in all the interfaces that we are compatible with.
1698 loop=$revision
1699 while test $loop != 0; do
1700 iface=`expr $revision - $loop`
1701 loop=`expr $loop - 1`
1702 verstring="sgi$major.$iface:$verstring"
1703 done
1704 ;;
1705
1706 linux)
1707 major=.`expr $current - $age`
1708 versuffix="$major.$age.$revision"
1709 ;;
1710
1711 osf)
1712 major=`expr $current - $age`
1713 versuffix=".$current.$age.$revision"
1714 verstring="$current.$age.$revision"
1715
1716 # Add in all the interfaces that we are compatible with.
1717 loop=$age
1718 while test $loop != 0; do
1719 iface=`expr $current - $loop`
1720 loop=`expr $loop - 1`
1721 verstring="$verstring:${iface}.0"
1722 done
1723
1724 # Make executables depend on our current version.
1725 verstring="$verstring:${current}.0"
1726 ;;
1727
1728 sunos)
1729 major=".$current"
1730 versuffix=".$current.$revision"
1731 ;;
1732
1733 freebsd-aout)
1734 major=".$current"
1735 versuffix=".$current.$revision";
1736 ;;
1737
1738 freebsd-elf)
1739 major=".$current"
1740 versuffix=".$current";
1741 ;;
1742
1743 windows)
1744 # Like Linux, but with '-' rather than '.', since we only
1745 # want one extension on Windows 95.
1746 major=`expr $current - $age`
1747 versuffix="-$major-$age-$revision"
1748 ;;
1749
1750 *)
1751 $echo "$modename: unknown library version type \`$version_type'" 1>&2
1752 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
1753 exit 1
1754 ;;
1755 esac
1756
1757 # Clear the version info if we defaulted, and they specified a release.
1758 if test -z "$vinfo" && test -n "$release"; then
1759 major=
1760 verstring="0.0"
1761 if test "$need_version" = no; then
1762 versuffix=
1763 else
1764 versuffix=".0.0"
1765 fi
1766 fi
1767
1768 # Remove version info from name if versioning should be avoided
1769 if test "$avoid_version" = yes && test "$need_version" = no; then
1770 major=
1771 versuffix=
1772 verstring=""
1773 fi
1774
1775 # Check to see if the archive will have undefined symbols.
1776 if test "$allow_undefined" = yes; then
1777 if test "$allow_undefined_flag" = unsupported; then
1778 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
1779 build_libtool_libs=no
1780 build_old_libs=yes
1781 fi
1782 else
1783 # Don't allow undefined symbols.
1784 allow_undefined_flag="$no_undefined_flag"
1785 fi
1786
1787 dependency_libs="$deplibs"
1788 case "$host" in
1789 *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
1790 # these systems don't actually have a c library (as such)!
1791 ;;
1792 *)
1793 # Add libc to deplibs on all other systems.
1794 deplibs="$deplibs -lc"
1795 ;;
1796 esac
1797 fi
1798
1799 # Create the output directory, or remove our outputs if we need to.
1800 if test -d $output_objdir; then
1801 $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
1802 $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
1803 else
1804 $show "$mkdir $output_objdir"
1805 $run $mkdir $output_objdir
1806 status=$?
1807 if test $status -ne 0 && test ! -d $output_objdir; then
1808 exit $status
1809 fi
1810 fi
1811
1812 # Now set the variables for building old libraries.
1813 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
1814 oldlibs="$oldlibs $output_objdir/$libname.$libext"
1815
1816 # Transform .lo files to .o files.
1817 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
1818 fi
1819
1820 if test "$build_libtool_libs" = yes; then
1821 # Transform deplibs into only deplibs that can be linked in shared.
1822 name_save=$name
1823 libname_save=$libname
1824 release_save=$release
1825 versuffix_save=$versuffix
1826 major_save=$major
1827 # I'm not sure if I'm treating the release correctly. I think
1828 # release should show up in the -l (ie -lgmp5) so we don't want to
1829 # add it in twice. Is that correct?
1830 release=""
1831 versuffix=""
1832 major=""
1833 newdeplibs=
1834 droppeddeps=no
1835 case "$deplibs_check_method" in
1836 pass_all)
1837 # Don't check for shared/static. Everything works.
1838 # This might be a little naive. We might want to check
1839 # whether the library exists or not. But this is on
1840 # osf3 & osf4 and I'm not really sure... Just
1841 # implementing what was already the behaviour.
1842 newdeplibs=$deplibs
1843 ;;
1844 test_compile)
1845 # This code stresses the "libraries are programs" paradigm to its
1846 # limits. Maybe even breaks it. We compile a program, linking it
1847 # against the deplibs as a proxy for the library. Then we can check
1848 # whether they linked in statically or dynamically with ldd.
1849 $rm conftest.c
1850 cat > conftest.c <<EOF
1851 int main() { return 0; }
1852EOF
1853 $rm conftest
1854 $C_compiler -o conftest conftest.c $deplibs
1855 if test $? -eq 0 ; then
1856 ldd_output=`ldd conftest`
1857 for i in $deplibs; do
1858 name="`expr $i : '-l\(.*\)'`"
1859 # If $name is empty we are operating on a -L argument.
1860 if test "$name" != "" ; then
1861 libname=`eval \\$echo \"$libname_spec\"`
1862 deplib_matches=`eval \\$echo \"$library_names_spec\"`
1863 set dummy $deplib_matches
1864 deplib_match=$2
1865 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
1866 newdeplibs="$newdeplibs $i"
1867 else
1868 droppeddeps=yes
1869 echo
1870 echo "*** Warning: This library needs some functionality provided by $i."
1871 echo "*** I have the capability to make that library automatically link in when"
1872 echo "*** you link to this library. But I can only do this if you have a"
1873 echo "*** shared version of the library, which you do not appear to have."
1874 fi
1875 else
1876 newdeplibs="$newdeplibs $i"
1877 fi
1878 done
1879 else
1880 # Error occured in the first compile. Let's try to salvage the situation:
1881 # Compile a seperate program for each library.
1882 for i in $deplibs; do
1883 name="`expr $i : '-l\(.*\)'`"
1884 # If $name is empty we are operating on a -L argument.
1885 if test "$name" != "" ; then
1886 $rm conftest
1887 $C_compiler -o conftest conftest.c $i
1888 # Did it work?
1889 if test $? -eq 0 ; then
1890 ldd_output=`ldd conftest`
1891 libname=`eval \\$echo \"$libname_spec\"`
1892 deplib_matches=`eval \\$echo \"$library_names_spec\"`
1893 set dummy $deplib_matches
1894 deplib_match=$2
1895 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
1896 newdeplibs="$newdeplibs $i"
1897 else
1898 droppeddeps=yes
1899 echo
1900 echo "*** Warning: This library needs some functionality provided by $i."
1901 echo "*** I have the capability to make that library automatically link in when"
1902 echo "*** you link to this library. But I can only do this if you have a"
1903 echo "*** shared version of the library, which you do not appear to have."
1904 fi
1905 else
1906 droppeddeps=yes
1907 echo
1908 echo "*** Warning! Library $i is needed by this library but I was not able to"
1909 echo "*** make it link in! You will probably need to install it or some"
1910 echo "*** library that it depends on before this library will be fully"
1911 echo "*** functional. Installing it before continuing would be even better."
1912 fi
1913 else
1914 newdeplibs="$newdeplibs $i"
1915 fi
1916 done
1917 fi
1918 ;;
1919 file_magic*)
1920 set dummy $deplibs_check_method
1921 file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
1922 for a_deplib in $deplibs; do
1923 name="`expr $a_deplib : '-l\(.*\)'`"
1924 # If $name is empty we are operating on a -L argument.
1925 if test "$name" != "" ; then
1926 libname=`eval \\$echo \"$libname_spec\"`
1927 for i in $lib_search_path; do
1928 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
1929 for potent_lib in $potential_libs; do
1930 # Follow soft links.
1931 if ls -lLd "$potent_lib" 2>/dev/null \
1932 | grep " -> " >/dev/null; then
1933 continue
1934 fi
1935 # The statement above tries to avoid entering an
1936 # endless loop below, in case of cyclic links.
1937 # We might still enter an endless loop, since a link
1938 # loop can be closed while we follow links,
1939 # but so what?
1940 potlib="$potent_lib"
1941 while test -h "$potlib" 2>/dev/null; do
1942 potliblink=`ls -ld $potlib | sed 's/.* -> //'`
1943 case "$potliblink" in
1944 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
1945 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
1946 esac
1947 done
1948 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
1949 | sed 10q \
1950 | egrep "$file_magic_regex" > /dev/null; then
1951 newdeplibs="$newdeplibs $a_deplib"
1952 a_deplib=""
1953 break 2
1954 fi
1955 done
1956 done
1957 if test -n "$a_deplib" ; then
1958 droppeddeps=yes
1959 echo
1960 echo "*** Warning: This library needs some functionality provided by $a_deplib."
1961 echo "*** I have the capability to make that library automatically link in when"
1962 echo "*** you link to this library. But I can only do this if you have a"
1963 echo "*** shared version of the library, which you do not appear to have."
1964 fi
1965 else
1966 # Add a -L argument.
1967 newdeplibs="$newdeplibs $a_deplib"
1968 fi
1969 done # Gone through all deplibs.
1970 ;;
1971 none | unknown | *)
1972 newdeplibs=""
1973 if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
1974 -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
1975 grep . >/dev/null; then
1976 echo
1977 if test "X$deplibs_check_method" = "Xnone"; then
1978 echo "*** Warning: inter-library dependencies are not supported in this platform."
1979 else
1980 echo "*** Warning: inter-library dependencies are not known to be supported."
1981 fi
1982 echo "*** All declared inter-library dependencies are being dropped."
1983 droppeddeps=yes
1984 fi
1985 ;;
1986 esac
1987 versuffix=$versuffix_save
1988 major=$major_save
1989 release=$release_save
1990 libname=$libname_save
1991 name=$name_save
1992
1993 if test "$droppeddeps" = yes; then
1994 if test "$module" = yes; then
1995 echo
1996 echo "*** Warning: libtool could not satisfy all declared inter-library"
1997 echo "*** dependencies of module $libname. Therefore, libtool will create"
1998 echo "*** a static module, that should work as long as the dlopening"
1999 echo "*** application is linked with the -dlopen flag."
2000 if test -z "$global_symbol_pipe"; then
2001 echo
2002 echo "*** However, this would only work if libtool was able to extract symbol"
2003 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2004 echo "*** not find such a program. So, this module is probably useless."
2005 echo "*** \`nm' from GNU binutils and a full rebuild may help."
2006 fi
2007 if test "$build_old_libs" = no; then
2008 oldlibs="$output_objdir/$libname.$libext"
2009 build_libtool_libs=module
2010 build_old_libs=yes
2011 else
2012 build_libtool_libs=no
2013 fi
2014 else
2015 echo "*** The inter-library dependencies that have been dropped here will be"
2016 echo "*** automatically added whenever a program is linked with this library"
2017 echo "*** or is declared to -dlopen it."
2018 fi
2019 fi
2020 # Done checking deplibs!
2021 deplibs=$newdeplibs
2022 fi
2023
2024 # All the library-specific variables (install_libdir is set above).
2025 library_names=
2026 old_library=
2027 dlname=
2028
2029 # Test again, we may have decided not to build it any more
2030 if test "$build_libtool_libs" = yes; then
2031 # Get the real and link names of the library.
2032 eval library_names=\"$library_names_spec\"
2033 set dummy $library_names
2034 realname="$2"
2035 shift; shift
2036
2037 if test -n "$soname_spec"; then
2038 eval soname=\"$soname_spec\"
2039 else
2040 soname="$realname"
2041 fi
2042
2043 lib="$output_objdir/$realname"
2044 for link
2045 do
2046 linknames="$linknames $link"
2047 done
2048
2049 # Ensure that we have .o objects for linkers which dislike .lo
2050 # (e.g. aix) incase we are running --disable-static
2051 for obj in $libobjs; do
2052 oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"`
2053 if test ! -f $oldobj; then
2054 $show "${LN_S} $obj $oldobj"
2055 $run ${LN_S} $obj $oldobj || exit $?
2056 fi
2057 done
2058
2059 # Use standard objects if they are pic
2060 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2061
2062 # Prepare the list of exported symbols
2063 if test -z "$export_symbols"; then
2064 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
2065 $show "generating symbol list for \`$libname.la'"
2066 export_symbols="$output_objdir/$libname.exp"
2067 $run $rm $export_symbols
2068 eval cmds=\"$export_symbols_cmds\"
2069 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2070 for cmd in $cmds; do
2071 IFS="$save_ifs"
2072 $show "$cmd"
2073 $run eval "$cmd" || exit $?
2074 done
2075 IFS="$save_ifs"
2076 if test -n "$export_symbols_regex"; then
2077 $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
2078 $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
2079 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
2080 $run eval '$mv "${export_symbols}T" "$export_symbols"'
2081 fi
2082 fi
2083 fi
2084
2085 if test -n "$export_symbols" && test -n "$include_expsyms"; then
2086 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
2087 fi
2088
2089 if test -n "$convenience"; then
2090 if test -n "$whole_archive_flag_spec"; then
2091 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
2092 else
2093 gentop="$output_objdir/${outputname}x"
2094 $show "${rm}r $gentop"
2095 $run ${rm}r "$gentop"
2096 $show "mkdir $gentop"
2097 $run mkdir "$gentop"
2098 status=$?
2099 if test $status -ne 0 && test ! -d "$gentop"; then
2100 exit $status
2101 fi
2102 generated="$generated $gentop"
2103
2104 for xlib in $convenience; do
2105 # Extract the objects.
2106 case "$xlib" in
2107 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
2108 *) xabs=`pwd`"/$xlib" ;;
2109 esac
2110 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
2111 xdir="$gentop/$xlib"
2112
2113 $show "${rm}r $xdir"
2114 $run ${rm}r "$xdir"
2115 $show "mkdir $xdir"
2116 $run mkdir "$xdir"
2117 status=$?
2118 if test $status -ne 0 && test ! -d "$xdir"; then
2119 exit $status
2120 fi
2121 $show "(cd $xdir && $AR x $xabs)"
2122 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
2123
2124 libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
2125 done
2126 fi
2127 fi
2128
2129 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
2130 eval flag=\"$thread_safe_flag_spec\"
2131 linkopts="$linkopts $flag"
2132 fi
2133
2134 # Do each of the archive commands.
2135 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
2136 eval cmds=\"$archive_expsym_cmds\"
2137 else
2138 eval cmds=\"$archive_cmds\"
2139 fi
2140 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2141 for cmd in $cmds; do
2142 IFS="$save_ifs"
2143 $show "$cmd"
2144 $run eval "$cmd" || exit $?
2145 done
2146 IFS="$save_ifs"
2147
2148 # Create links to the real library.
2149 for linkname in $linknames; do
2150 if test "$realname" != "$linkname"; then
2151 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
2152 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
2153 fi
2154 done
2155
2156 # If -module or -export-dynamic was specified, set the dlname.
2157 if test "$module" = yes || test "$export_dynamic" = yes; then
2158 # On all known operating systems, these are identical.
2159 dlname="$soname"
2160 fi
2161 fi
2162 ;;
2163
2164 *.lo | *.o | *.obj)
2165 if test -n "$link_against_libtool_libs"; then
2166 $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
2167 exit 1
2168 fi
2169
2170 if test -n "$deplibs"; then
2171 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
2172 fi
2173
2174 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2175 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
2176 fi
2177
2178 if test -n "$rpath"; then
2179 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
2180 fi
2181
2182 if test -n "$xrpath"; then
2183 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
2184 fi
2185
2186 if test -n "$vinfo"; then
2187 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
2188 fi
2189
2190 if test -n "$release"; then
2191 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
2192 fi
2193
2194 case "$output" in
2195 *.lo)
2196 if test -n "$objs"; then
2197 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
2198 exit 1
2199 fi
2200 libobj="$output"
2201 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
2202 ;;
2203 *)
2204 libobj=
2205 obj="$output"
2206 ;;
2207 esac
2208
2209 # Delete the old objects.
2210 $run $rm $obj $libobj
2211
2212 # Objects from convenience libraries. This assumes
2213 # single-version convenience libraries. Whenever we create
2214 # different ones for PIC/non-PIC, this we'll have to duplicate
2215 # the extraction.
2216 reload_conv_objs=
2217 gentop=
2218 # reload_cmds runs $LD directly, so let us get rid of
2219 # -Wl from whole_archive_flag_spec
2220 wl=
2221
2222 if test -n "$convenience"; then
2223 if test -n "$whole_archive_flag_spec"; then
2224 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
2225 else
2226 gentop="$output_objdir/${obj}x"
2227 $show "${rm}r $gentop"
2228 $run ${rm}r "$gentop"
2229 $show "mkdir $gentop"
2230 $run mkdir "$gentop"
2231 status=$?
2232 if test $status -ne 0 && test ! -d "$gentop"; then
2233 exit $status
2234 fi
2235 generated="$generated $gentop"
2236
2237 for xlib in $convenience; do
2238 # Extract the objects.
2239 case "$xlib" in
2240 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
2241 *) xabs=`pwd`"/$xlib" ;;
2242 esac
2243 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
2244 xdir="$gentop/$xlib"
2245
2246 $show "${rm}r $xdir"
2247 $run ${rm}r "$xdir"
2248 $show "mkdir $xdir"
2249 $run mkdir "$xdir"
2250 status=$?
2251 if test $status -ne 0 && test ! -d "$xdir"; then
2252 exit $status
2253 fi
2254 $show "(cd $xdir && $AR x $xabs)"
2255 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
2256
2257 reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
2258 done
2259 fi
2260 fi
2261
2262 # Create the old-style object.
2263 reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
2264
2265 output="$obj"
2266 eval cmds=\"$reload_cmds\"
2267 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2268 for cmd in $cmds; do
2269 IFS="$save_ifs"
2270 $show "$cmd"
2271 $run eval "$cmd" || exit $?
2272 done
2273 IFS="$save_ifs"
2274
2275 # Exit if we aren't doing a library object file.
2276 if test -z "$libobj"; then
2277 if test -n "$gentop"; then
2278 $show "${rm}r $gentop"
2279 $run ${rm}r $gentop
2280 fi
2281
2282 exit 0
2283 fi
2284
2285 if test "$build_libtool_libs" != yes; then
2286 if test -n "$gentop"; then
2287 $show "${rm}r $gentop"
2288 $run ${rm}r $gentop
2289 fi
2290
2291 # Create an invalid libtool object if no PIC, so that we don't
2292 # accidentally link it into a program.
2293 $show "echo timestamp > $libobj"
2294 $run eval "echo timestamp > $libobj" || exit $?
2295 exit 0
2296 fi
2297
2298 if test -n "$pic_flag"; then
2299 # Only do commands if we really have different PIC objects.
2300 reload_objs="$libobjs $reload_conv_objs"
2301 output="$libobj"
2302 eval cmds=\"$reload_cmds\"
2303 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
2304 for cmd in $cmds; do
2305 IFS="$save_ifs"
2306 $show "$cmd"
2307 $run eval "$cmd" || exit $?
2308 done
2309 IFS="$save_ifs"
2310 else
2311 # Just create a symlink.
2312 $show $rm $libobj
2313 $run $rm $libobj
2314 $show "$LN_S $obj $libobj"
2315 $run $LN_S $obj $libobj || exit $?
2316 fi
2317
2318 if test -n "$gentop"; then
2319 $show "${rm}r $gentop"
2320 $run ${rm}r $gentop
2321 fi
2322
2323 exit 0
2324 ;;
2325
2326 # Anything else should be a program.
2327 *)
2328 if test -n "$vinfo"; then
2329 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
2330 fi
2331
2332 if test -n "$release"; then
2333 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
2334 fi
2335
2336 if test "$preload" = yes; then
2337 if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
2338 test "$dlopen_self_static" = unknown; then
2339 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
2340 fi
2341 fi
2342
2343 if test -n "$rpath$xrpath"; then
2344 # If the user specified any rpath flags, then add them.
2345 for libdir in $rpath $xrpath; do
2346 # This is the magic to use -rpath.
2347 case "$compile_rpath " in
2348 *" $libdir "*) ;;
2349 *) compile_rpath="$compile_rpath $libdir" ;;
2350 esac
2351 case "$finalize_rpath " in
2352 *" $libdir "*) ;;
2353 *) finalize_rpath="$finalize_rpath $libdir" ;;
2354 esac
2355 done
2356 fi
2357
2358 # Now hardcode the library paths
2359 rpath=
2360 hardcode_libdirs=
2361 for libdir in $compile_rpath $finalize_rpath; do
2362 if test -n "$hardcode_libdir_flag_spec"; then
2363 if test -n "$hardcode_libdir_separator"; then
2364 if test -z "$hardcode_libdirs"; then
2365 hardcode_libdirs="$libdir"
2366 else
2367 # Just accumulate the unique libdirs.
2368 case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
2369 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
2370 ;;
2371 *)
2372 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
2373 ;;
2374 esac
2375 fi
2376 else
2377 eval flag=\"$hardcode_libdir_flag_spec\"
2378 rpath="$rpath $flag"
2379 fi
2380 elif test -n "$runpath_var"; then
2381 case "$perm_rpath " in
2382 *" $libdir "*) ;;
2383 *) perm_rpath="$perm_rpath $libdir" ;;
2384 esac
2385 fi
2386 done
2387 # Substitute the hardcoded libdirs into the rpath.
2388 if test -n "$hardcode_libdir_separator" &&
2389 test -n "$hardcode_libdirs"; then
2390 libdir="$hardcode_libdirs"
2391 eval rpath=\" $hardcode_libdir_flag_spec\"
2392 fi
2393 compile_rpath="$rpath"
2394
2395 rpath=
2396 hardcode_libdirs=
2397 for libdir in $finalize_rpath; do
2398 if test -n "$hardcode_libdir_flag_spec"; then
2399 if test -n "$hardcode_libdir_separator"; then
2400 if test -z "$hardcode_libdirs"; then
2401 hardcode_libdirs="$libdir"
2402 else
2403 # Just accumulate the unique libdirs.
2404 case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
2405 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
2406 ;;
2407 *)
2408 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
2409 ;;
2410 esac
2411 fi
2412 else
2413 eval flag=\"$hardcode_libdir_flag_spec\"
2414 rpath="$rpath $flag"
2415 fi
2416 elif test -n "$runpath_var"; then
2417 case "$finalize_perm_rpath " in
2418 *" $libdir "*) ;;
2419 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
2420 esac
2421 fi
2422 done
2423 # Substitute the hardcoded libdirs into the rpath.
2424 if test -n "$hardcode_libdir_separator" &&
2425 test -n "$hardcode_libdirs"; then
2426 libdir="$hardcode_libdirs"
2427 eval rpath=\" $hardcode_libdir_flag_spec\"
2428 fi
2429 finalize_rpath="$rpath"
2430
2431 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2432 if test "X$output_objdir" = "X$output"; then
2433 output_objdir="$objdir"
2434 else
2435 output_objdir="$output_objdir/$objdir"
2436 fi
2437
2438 # Create the binary in the object directory, then wrap it.
2439 if test ! -d $output_objdir; then
2440 $show "$mkdir $output_objdir"
2441 $run $mkdir $output_objdir
2442 status=$?
2443 if test $status -ne 0 && test ! -d $output_objdir; then
2444 exit $status
2445 fi
2446 fi
2447
2448 if test -n "$libobjs" && test "$build_old_libs" = yes; then
2449 # Transform all the library objects into standard objects.
2450 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2451 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2452 fi
2453
2454 dlsyms=
2455 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2456 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2457 dlsyms="${outputname}S.c"
2458 else
2459 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
2460 fi
2461 fi
2462
2463 if test -n "$dlsyms"; then
2464 case "$dlsyms" in
2465 "") ;;
2466 *.c)
2467 # Discover the nlist of each of the dlfiles.
2468 nlist="$output_objdir/${outputname}.nm"
2469
2470 $show "$rm $nlist ${nlist}S ${nlist}T"
2471 $run $rm "$nlist" "${nlist}S" "${nlist}T"
2472
2473 # Parse the name list into a source file.
2474 $show "creating $output_objdir/$dlsyms"
2475
2476 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
2477/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
2478/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
2479
2480#ifdef __cplusplus
2481extern \"C\" {
2482#endif
2483
2484/* Prevent the only kind of declaration conflicts we can make. */
2485#define lt_preloaded_symbols some_other_symbol
2486
2487/* External symbol declarations for the compiler. */\
2488"
2489
2490 if test "$dlself" = yes; then
2491 $show "generating symbol list for \`$output'"
2492
2493 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
2494
2495 # Add our own program objects to the symbol list.
2496 progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2497 for arg in $progfiles; do
2498 $show "extracting global C symbols from \`$arg'"
2499 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
2500 done
2501
2502 if test -n "$exclude_expsyms"; then
2503 $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2504 $run eval '$mv "$nlist"T "$nlist"'
2505 fi
2506
2507 if test -n "$export_symbols_regex"; then
2508 $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2509 $run eval '$mv "$nlist"T "$nlist"'
2510 fi
2511
2512 # Prepare the list of exported symbols
2513 if test -z "$export_symbols"; then
2514 export_symbols="$output_objdir/$output.exp"
2515 $run $rm $export_symbols
2516 $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2517 else
2518 $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
2519 $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
2520 $run eval 'mv "$nlist"T "$nlist"'
2521 fi
2522 fi
2523
2524 for arg in $dlprefiles; do
2525 $show "extracting global C symbols from \`$arg'"
2526 name=`echo "$arg" | sed -e 's%^.*/%%'`
2527 $run eval 'echo ": $name " >> "$nlist"'
2528 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
2529 done
2530
2531 if test -z "$run"; then
2532 # Make sure we have at least an empty file.
2533 test -f "$nlist" || : > "$nlist"
2534
2535 if test -n "$exclude_expsyms"; then
2536 egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2537 $mv "$nlist"T "$nlist"
2538 fi
2539
2540 # Try sorting and uniquifying the output.
2541 if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
2542 :
2543 else
2544 grep -v "^: " < "$nlist" > "$nlist"S
2545 fi
2546
2547 if test -f "$nlist"S; then
2548 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
2549 else
2550 echo '/* NONE */' >> "$output_objdir/$dlsyms"
2551 fi
2552
2553 $echo >> "$output_objdir/$dlsyms" "\
2554
2555#undef lt_preloaded_symbols
2556
2557#if defined (__STDC__) && __STDC__
2558# define lt_ptr_t void *
2559#else
2560# define lt_ptr_t char *
2561# define const
2562#endif
2563
2564/* The mapping between symbol names and symbols. */
2565const struct {
2566 const char *name;
2567 lt_ptr_t address;
2568}
2569lt_preloaded_symbols[] =
2570{\
2571"
2572
2573 sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
2574 -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
2575 < "$nlist" >> "$output_objdir/$dlsyms"
2576
2577 $echo >> "$output_objdir/$dlsyms" "\
2578 {0, (lt_ptr_t) 0}
2579};
2580
2581/* This works around a problem in FreeBSD linker */
2582#ifdef FREEBSD_WORKAROUND
2583static const void *lt_preloaded_setup() {
2584 return lt_preloaded_symbols;
2585}
2586#endif
2587
2588#ifdef __cplusplus
2589}
2590#endif\
2591"
2592 fi
2593
2594 pic_flag_for_symtable=
2595 case "$host" in
2596 # compiling the symbol table file with pic_flag works around
2597 # a FreeBSD bug that causes programs to crash when -lm is
2598 # linked before any other PIC object. But we must not use
2599 # pic_flag when linking with -static. The problem exists in
2600 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2601 *-*-freebsd2*|*-*-freebsd3.0*)
2602 case "$compile_command " in
2603 *" -static "*) ;;
2604 *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
2605 esac
2606 esac
2607
2608 # Now compile the dynamic symbol file.
2609 $show "(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
2610 $run eval '(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
2611
2612 # Clean up the generated files.
2613 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
2614 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
2615
2616 # Transform the symbol file into the correct name.
2617 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
2618 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
2619 ;;
2620 *)
2621 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
2622 exit 1
2623 ;;
2624 esac
2625 else
2626 # We keep going just in case the user didn't refer to
2627 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2628 # really was required.
2629
2630 # Nullify the symbol file.
2631 compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2632 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2633 fi
2634
2635 if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
2636 # Replace the output file specification.
2637 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
2638 link_command="$compile_command$compile_rpath"
2639
2640 # We have no uninstalled library dependencies, so finalize right now.
2641 $show "$link_command"
2642 $run eval "$link_command"
2643 status=$?
2644
2645 # Delete the generated files.
2646 if test -n "$dlsyms"; then
2647 $show "$rm $output_objdir/${outputname}S.${objext}"
2648 $run $rm "$output_objdir/${outputname}S.${objext}"
2649 fi
2650
2651 exit $status
2652 fi
2653
2654 if test -n "$shlibpath_var"; then
2655 # We should set the shlibpath_var
2656 rpath=
2657 for dir in $temp_rpath; do
2658 case "$dir" in
2659 [\\/]* | [A-Za-z]:[\\/]*)
2660 # Absolute path.
2661 rpath="$rpath$dir:"
2662 ;;
2663 *)
2664 # Relative path: add a thisdir entry.
2665 rpath="$rpath\$thisdir/$dir:"
2666 ;;
2667 esac
2668 done
2669 temp_rpath="$rpath"
2670 fi
2671
2672 if test -n "$compile_shlibpath$finalize_shlibpath"; then
2673 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
2674 fi
2675 if test -n "$finalize_shlibpath"; then
2676 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
2677 fi
2678
2679 compile_var=
2680 finalize_var=
2681 if test -n "$runpath_var"; then
2682 if test -n "$perm_rpath"; then
2683 # We should set the runpath_var.
2684 rpath=
2685 for dir in $perm_rpath; do
2686 rpath="$rpath$dir:"
2687 done
2688 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
2689 fi
2690 if test -n "$finalize_perm_rpath"; then
2691 # We should set the runpath_var.
2692 rpath=
2693 for dir in $finalize_perm_rpath; do
2694 rpath="$rpath$dir:"
2695 done
2696 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
2697 fi
2698 fi
2699
2700 if test "$hardcode_action" = relink; then
2701 # Fast installation is not supported
2702 link_command="$compile_var$compile_command$compile_rpath"
2703 relink_command="$finalize_var$finalize_command$finalize_rpath"
2704
2705 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
2706 $echo "$modename: \`$output' will be relinked during installation" 1>&2
2707 else
2708 if test "$fast_install" != no; then
2709 link_command="$finalize_var$compile_command$finalize_rpath"
2710 if test "$fast_install" = yes; then
2711 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
2712 else
2713 # fast_install is set to needless
2714 relink_command=
2715 fi
2716 else
2717 link_command="$compile_var$compile_command$compile_rpath"
2718 relink_command="$finalize_var$finalize_command$finalize_rpath"
2719 fi
2720 fi
2721
2722 # Replace the output file specification.
2723 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
2724
2725 # Delete the old output files.
2726 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
2727
2728 $show "$link_command"
2729 $run eval "$link_command" || exit $?
2730
2731 # Now create the wrapper script.
2732 $show "creating $output"
2733
2734 # Quote the relink command for shipping.
2735 if test -n "$relink_command"; then
2736 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
2737 fi
2738
2739 # Quote $echo for shipping.
2740 if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
2741 case "$0" in
2742 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
2743 *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
2744 esac
2745 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
2746 else
2747 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
2748 fi
2749
2750 # Only actually do things if our run command is non-null.
2751 if test -z "$run"; then
2752 # win32 will think the script is a binary if it has
2753 # a .exe suffix, so we strip it off here.
2754 case $output in
2755 *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
2756 esac
2757 $rm $output
2758 trap "$rm $output; exit 1" 1 2 15
2759
2760 $echo > $output "\
2761#! $SHELL
2762
2763# $output - temporary wrapper script for $objdir/$outputname
2764# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
2765#
2766# The $output program cannot be directly executed until all the libtool
2767# libraries that it depends on are installed.
2768#
2769# This wrapper script should never be moved out of the build directory.
2770# If it is, it will not operate correctly.
2771
2772# Sed substitution that helps us do robust quoting. It backslashifies
2773# metacharacters that are still active within double-quoted strings.
2774Xsed='sed -e 1s/^X//'
2775sed_quote_subst='$sed_quote_subst'
2776
2777# The HP-UX ksh and POSIX shell print the target directory to stdout
2778# if CDPATH is set.
2779if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi
2780
2781relink_command=\"$relink_command\"
2782
2783# This environment variable determines our operation mode.
2784if test \"\$libtool_install_magic\" = \"$magic\"; then
2785 # install mode needs the following variable:
2786 link_against_libtool_libs='$link_against_libtool_libs'
2787else
2788 # When we are sourced in execute mode, \$file and \$echo are already set.
2789 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2790 echo=\"$qecho\"
2791 file=\"\$0\"
2792 # Make sure echo works.
2793 if test \"X\$1\" = X--no-reexec; then
2794 # Discard the --no-reexec flag, and continue.
2795 shift
2796 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
2797 # Yippee, \$echo works!
2798 :
2799 else
2800 # Restart under the correct shell, and then maybe \$echo will work.
2801 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2802 fi
2803 fi\
2804"
2805 $echo >> $output "\
2806
2807 # Find the directory that this script lives in.
2808 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2809 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2810
2811 # Follow symbolic links until we get to the real thisdir.
2812 file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
2813 while test -n \"\$file\"; do
2814 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2815
2816 # If there was a directory component, then change thisdir.
2817 if test \"x\$destdir\" != \"x\$file\"; then
2818 case \"\$destdir\" in
2819 [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
2820 *) thisdir=\"\$thisdir/\$destdir\" ;;
2821 esac
2822 fi
2823
2824 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2825 file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
2826 done
2827
2828 # Try to get the absolute directory name.
2829 absdir=\`cd \"\$thisdir\" && pwd\`
2830 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2831"
2832
2833 if test "$fast_install" = yes; then
2834 echo >> $output "\
2835 program=lt-'$outputname'
2836 progdir=\"\$thisdir/$objdir\"
2837
2838 if test ! -f \"\$progdir/\$program\" || \\
2839 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
2840 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2841
2842 file=\"\$\$-\$program\"
2843
2844 if test ! -d \"\$progdir\"; then
2845 $mkdir \"\$progdir\"
2846 else
2847 $rm \"\$progdir/\$file\"
2848 fi"
2849
2850 echo >> $output "\
2851
2852 # relink executable if necessary
2853 if test -n \"\$relink_command\"; then
2854 if (cd \"\$thisdir\" && eval \$relink_command); then :
2855 else
2856 $rm \"\$progdir/\$file\"
2857 exit 1
2858 fi
2859 fi
2860
2861 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2862 { $rm \"\$progdir/\$program\";
2863 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2864 $rm \"\$progdir/\$file\"
2865 fi"
2866 else
2867 echo >> $output "\
2868 program='$outputname$exeext'
2869 progdir=\"\$thisdir/$objdir\"
2870"
2871 fi
2872
2873 echo >> $output "\
2874
2875 if test -f \"\$progdir/\$program\"; then"
2876
2877 # Export our shlibpath_var if we have one.
2878 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2879 $echo >> $output "\
2880 # Add our own library path to $shlibpath_var
2881 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2882
2883 # Some systems cannot cope with colon-terminated $shlibpath_var
2884 # The second colon is a workaround for a bug in BeOS R4 sed
2885 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2886
2887 export $shlibpath_var
2888"
2889 fi
2890
2891 # fixup the dll searchpath if we need to.
2892 if test -n "$dllsearchpath"; then
2893 $echo >> $output "\
2894 # Add the dll search path components to the executable PATH
2895 PATH=$dllsearchpath:\$PATH
2896"
2897 fi
2898
2899 $echo >> $output "\
2900 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2901 # Run the actual program with our arguments.
2902"
2903 case $host in
2904 *-*-cygwin* | *-*-mingw | *-*-os2*)
2905 # win32 systems need to use the prog path for dll
2906 # lookup to work
2907 $echo >> $output "\
2908 exec \$progdir\\\\\$program \${1+\"\$@\"}
2909"
2910 ;;
2911 *)
2912 $echo >> $output "\
2913 # Export the path to the program.
2914 PATH=\"\$progdir:\$PATH\"
2915 export PATH
2916
2917 exec \$program \${1+\"\$@\"}
2918"
2919 ;;
2920 esac
2921 $echo >> $output "\
2922 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
2923 exit 1
2924 fi
2925 else
2926 # The program doesn't exist.
2927 \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
2928 \$echo \"This script is just a wrapper for \$program.\" 1>&2
2929 echo \"See the $PACKAGE documentation for more information.\" 1>&2
2930 exit 1
2931 fi
2932fi\
2933"
2934 chmod +x $output
2935 fi
2936 exit 0
2937 ;;
2938 esac
2939
2940 # See if we need to build an old-fashioned archive.
2941 for oldlib in $oldlibs; do
2942
2943 if test "$build_libtool_libs" = convenience; then
2944 oldobjs="$libobjs_save"
2945 addlibs="$convenience"
2946 build_libtool_libs=no
2947 else
2948 if test "$build_libtool_libs" = module; then
2949 oldobjs="$libobjs_save"
2950 build_libtool_libs=no
2951 else
2952 oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
2953 fi
2954 addlibs="$old_convenience"
2955 fi
2956
2957 if test -n "$addlibs"; then
2958 gentop="$output_objdir/${outputname}x"
2959 $show "${rm}r $gentop"
2960 $run ${rm}r "$gentop"
2961 $show "mkdir $gentop"
2962 $run mkdir "$gentop"
2963 status=$?
2964 if test $status -ne 0 && test ! -d "$gentop"; then
2965 exit $status
2966 fi
2967 generated="$generated $gentop"
2968
2969 # Add in members from convenience archives.
2970 for xlib in $addlibs; do
2971 # Extract the objects.
2972 case "$xlib" in
2973 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
2974 *) xabs=`pwd`"/$xlib" ;;
2975 esac
2976 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
2977 xdir="$gentop/$xlib"
2978
2979 $show "${rm}r $xdir"
2980 $run ${rm}r "$xdir"
2981 $show "mkdir $xdir"
2982 $run mkdir "$xdir"
2983 status=$?
2984 if test $status -ne 0 && test ! -d "$xdir"; then
2985 exit $status
2986 fi
2987 $show "(cd $xdir && $AR x $xabs)"
2988 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
2989
2990 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
2991 done
2992 fi
2993
2994 # Do each command in the archive commands.
2995 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
2996 eval cmds=\"$old_archive_from_new_cmds\"
2997 else
2998 # Ensure that we have .o objects in place incase we decided
2999 # not to build a shared library, and have fallen back to building
3000 # static libs even though --disable-static was passed!
3001 for oldobj in $oldobjs; do
3002 if test ! -f $oldobj; then
3003 obj=`$echo "X$oldobj" | $Xsed -e "$o2lo"`
3004 $show "${LN_S} $obj $oldobj"
3005 $run ${LN_S} $obj $oldobj || exit $?
3006 fi
3007 done
3008
3009 eval cmds=\"$old_archive_cmds\"
3010 fi
3011 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3012 for cmd in $cmds; do
3013 IFS="$save_ifs"
3014 $show "$cmd"
3015 $run eval "$cmd" || exit $?
3016 done
3017 IFS="$save_ifs"
3018 done
3019
3020 if test -n "$generated"; then
3021 $show "${rm}r$generated"
3022 $run ${rm}r$generated
3023 fi
3024
3025 # Now create the libtool archive.
3026 case "$output" in
3027 *.la)
3028 old_library=
3029 test "$build_old_libs" = yes && old_library="$libname.$libext"
3030 $show "creating $output"
3031
3032 if test -n "$xrpath"; then
3033 temp_xrpath=
3034 for libdir in $xrpath; do
3035 temp_xrpath="$temp_xrpath -R$libdir"
3036 done
3037 dependency_libs="$temp_xrpath $dependency_libs"
3038 fi
3039
3040 # Only create the output if not a dry run.
3041 if test -z "$run"; then
3042 for installed in no yes; do
3043 if test "$installed" = yes; then
3044 if test -z "$install_libdir"; then
3045 break
3046 fi
3047 output="$output_objdir/$outputname"i
3048 fi
3049 $rm $output
3050 $echo > $output "\
3051# $outputname - a libtool library file
3052# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
3053#
3054# Please DO NOT delete this file!
3055# It is necessary for linking the library.
3056
3057# The name that we can dlopen(3).
3058dlname='$dlname'
3059
3060# Names of this library.
3061library_names='$library_names'
3062
3063# The name of the static archive.
3064old_library='$old_library'
3065
3066# Libraries that this one depends upon.
3067dependency_libs='$dependency_libs'
3068
3069# Version information for $libname.
3070current=$current
3071age=$age
3072revision=$revision
3073
3074# Is this an already installed library?
3075installed=$installed
3076
3077# Directory that this library needs to be installed in:
3078libdir='$install_libdir'\
3079"
3080 done
3081 fi
3082
3083 # Do a symbolic link so that the libtool archive can be found in
3084 # LD_LIBRARY_PATH before the program is installed.
3085 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
3086 $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
3087 ;;
3088 esac
3089 exit 0
3090 ;;
3091
3092 # libtool install mode
3093 install)
3094 modename="$modename: install"
3095
3096 # There may be an optional sh(1) argument at the beginning of
3097 # install_prog (especially on Windows NT).
3098 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
3099 # Aesthetically quote it.
3100 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
3101 case "$arg" in
3102 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
3103 arg="\"$arg\""
3104 ;;
3105 esac
3106 install_prog="$arg "
3107 arg="$1"
3108 shift
3109 else
3110 install_prog=
3111 arg="$nonopt"
3112 fi
3113
3114 # The real first argument should be the name of the installation program.
3115 # Aesthetically quote it.
3116 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
3117 case "$arg" in
3118 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
3119 arg="\"$arg\""
3120 ;;
3121 esac
3122 install_prog="$install_prog$arg"
3123
3124 # We need to accept at least all the BSD install flags.
3125 dest=
3126 files=
3127 opts=
3128 prev=
3129 install_type=
3130 isdir=no
3131 stripme=
3132 for arg
3133 do
3134 if test -n "$dest"; then
3135 files="$files $dest"
3136 dest="$arg"
3137 continue
3138 fi
3139
3140 case "$arg" in
3141 -d) isdir=yes ;;
3142 -f) prev="-f" ;;
3143 -g) prev="-g" ;;
3144 -m) prev="-m" ;;
3145 -o) prev="-o" ;;
3146 -s)
3147 stripme=" -s"
3148 continue
3149 ;;
3150 -*) ;;
3151
3152 *)
3153 # If the previous option needed an argument, then skip it.
3154 if test -n "$prev"; then
3155 prev=
3156 else
3157 dest="$arg"
3158 continue
3159 fi
3160 ;;
3161 esac
3162
3163 # Aesthetically quote the argument.
3164 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
3165 case "$arg" in
3166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
3167 arg="\"$arg\""
3168 ;;
3169 esac
3170 install_prog="$install_prog $arg"
3171 done
3172
3173 if test -z "$install_prog"; then
3174 $echo "$modename: you must specify an install program" 1>&2
3175 $echo "$help" 1>&2
3176 exit 1
3177 fi
3178
3179 if test -n "$prev"; then
3180 $echo "$modename: the \`$prev' option requires an argument" 1>&2
3181 $echo "$help" 1>&2
3182 exit 1
3183 fi
3184
3185 if test -z "$files"; then
3186 if test -z "$dest"; then
3187 $echo "$modename: no file or destination specified" 1>&2
3188 else
3189 $echo "$modename: you must specify a destination" 1>&2
3190 fi
3191 $echo "$help" 1>&2
3192 exit 1
3193 fi
3194
3195 # Strip any trailing slash from the destination.
3196 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
3197
3198 # Check to see that the destination is a directory.
3199 test -d "$dest" && isdir=yes
3200 if test "$isdir" = yes; then
3201 destdir="$dest"
3202 destname=
3203 else
3204 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
3205 test "X$destdir" = "X$dest" && destdir=.
3206 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
3207
3208 # Not a directory, so check to see that there is only one file specified.
3209 set dummy $files
3210 if test $# -gt 2; then
3211 $echo "$modename: \`$dest' is not a directory" 1>&2
3212 $echo "$help" 1>&2
3213 exit 1
3214 fi
3215 fi
3216 case "$destdir" in
3217 [\\/]* | [A-Za-z]:[\\/]*) ;;
3218 *)
3219 for file in $files; do
3220 case "$file" in
3221 *.lo) ;;
3222 *)
3223 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
3224 $echo "$help" 1>&2
3225 exit 1
3226 ;;
3227 esac
3228 done
3229 ;;
3230 esac
3231
3232 # This variable tells wrapper scripts just to set variables rather
3233 # than running their programs.
3234 libtool_install_magic="$magic"
3235
3236 staticlibs=
3237 future_libdirs=
3238 current_libdirs=
3239 for file in $files; do
3240
3241 # Do each installation.
3242 case "$file" in
3243 *.a | *.lib)
3244 # Do the static libraries later.
3245 staticlibs="$staticlibs $file"
3246 ;;
3247
3248 *.la)
3249 # Check to see that this really is a libtool archive.
3250 if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
3251 else
3252 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
3253 $echo "$help" 1>&2
3254 exit 1
3255 fi
3256
3257 library_names=
3258 old_library=
3259 # If there is no directory component, then add one.
3260 case "$file" in
3261 */* | *\\*) . $file ;;
3262 *) . ./$file ;;
3263 esac
3264
3265 # Add the libdir to current_libdirs if it is the destination.
3266 if test "X$destdir" = "X$libdir"; then
3267 case "$current_libdirs " in
3268 *" $libdir "*) ;;
3269 *) current_libdirs="$current_libdirs $libdir" ;;
3270 esac
3271 else
3272 # Note the libdir as a future libdir.
3273 case "$future_libdirs " in
3274 *" $libdir "*) ;;
3275 *) future_libdirs="$future_libdirs $libdir" ;;
3276 esac
3277 fi
3278
3279 dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
3280 test "X$dir" = "X$file/" && dir=
3281 dir="$dir$objdir"
3282
3283 # See the names of the shared library.
3284 set dummy $library_names
3285 if test -n "$2"; then
3286 realname="$2"
3287 shift
3288 shift
3289
3290 # Install the shared library and build the symlinks.
3291 $show "$install_prog$stripme $dir/$realname $destdir/$realname"
3292 $run eval "$install_prog$stripme $dir/$realname $destdir/$realname" || exit $?
3293
3294 if test $# -gt 0; then
3295 # Delete the old symlinks, and create new ones.
3296 for linkname
3297 do
3298 if test "$linkname" != "$realname"; then
3299 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
3300 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
3301 fi
3302 done
3303 fi
3304
3305 # Do each command in the postinstall commands.
3306 lib="$destdir/$realname"
3307 eval cmds=\"$postinstall_cmds\"
3308 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3309 for cmd in $cmds; do
3310 IFS="$save_ifs"
3311 $show "$cmd"
3312 $run eval "$cmd" || exit $?
3313 done
3314 IFS="$save_ifs"
3315 fi
3316
3317 # Install the pseudo-library for information purposes.
3318 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3319 instname="$dir/$name"i
3320 $show "$install_prog $instname $destdir/$name"
3321 $run eval "$install_prog $instname $destdir/$name" || exit $?
3322
3323 # Maybe install the static library, too.
3324 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3325 ;;
3326
3327 *.lo)
3328 # Install (i.e. copy) a libtool object.
3329
3330 # Figure out destination file name, if it wasn't already specified.
3331 if test -n "$destname"; then
3332 destfile="$destdir/$destname"
3333 else
3334 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3335 destfile="$destdir/$destfile"
3336 fi
3337
3338 # Deduce the name of the destination old-style object file.
3339 case "$destfile" in
3340 *.lo)
3341 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
3342 ;;
3343 *.o | *.obj)
3344 staticdest="$destfile"
3345 destfile=
3346 ;;
3347 *)
3348 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
3349 $echo "$help" 1>&2
3350 exit 1
3351 ;;
3352 esac
3353
3354 # Install the libtool object if requested.
3355 if test -n "$destfile"; then
3356 $show "$install_prog $file $destfile"
3357 $run eval "$install_prog $file $destfile" || exit $?
3358 fi
3359
3360 # Install the old object if enabled.
3361 if test "$build_old_libs" = yes; then
3362 # Deduce the name of the old-style object file.
3363 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
3364
3365 $show "$install_prog $staticobj $staticdest"
3366 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
3367 fi
3368 exit 0
3369 ;;
3370
3371 *)
3372 # Figure out destination file name, if it wasn't already specified.
3373 if test -n "$destname"; then
3374 destfile="$destdir/$destname"
3375 else
3376 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3377 destfile="$destdir/$destfile"
3378 fi
3379
3380 # Do a test to see if this is really a libtool program.
3381 if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
3382 link_against_libtool_libs=
3383 relink_command=
3384
3385 # If there is no directory component, then add one.
3386 case "$file" in
3387 */* | *\\*) . $file ;;
3388 *) . ./$file ;;
3389 esac
3390
3391 # Check the variables that should have been set.
3392 if test -z "$link_against_libtool_libs"; then
3393 $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
3394 exit 1
3395 fi
3396
3397 finalize=yes
3398 for lib in $link_against_libtool_libs; do
3399 # Check to see that each library is installed.
3400 libdir=
3401 if test -f "$lib"; then
3402 # If there is no directory component, then add one.
3403 case "$lib" in
3404 */* | *\\*) . $lib ;;
3405 *) . ./$lib ;;
3406 esac
3407 fi
3408 libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
3409 if test -n "$libdir" && test ! -f "$libfile"; then
3410 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
3411 finalize=no
3412 fi
3413 done
3414
3415 outputname=
3416 if test "$fast_install" = no && test -n "$relink_command"; then
3417 if test "$finalize" = yes && test -z "$run"; then
3418 tmpdir="/tmp"
3419 test -n "$TMPDIR" && tmpdir="$TMPDIR"
3420 tmpdir="$tmpdir/libtool-$$"
3421 if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
3422 else
3423 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
3424 continue
3425 fi
3426 outputname="$tmpdir/$file"
3427 # Replace the output file specification.
3428 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
3429
3430 $show "$relink_command"
3431 if $run eval "$relink_command"; then :
3432 else
3433 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
3434 ${rm}r "$tmpdir"
3435 continue
3436 fi
3437 file="$outputname"
3438 else
3439 $echo "$modename: warning: cannot relink \`$file'" 1>&2
3440 fi
3441 else
3442 # Install the binary that we compiled earlier.
3443 file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
3444 fi
3445 fi
3446
3447 $show "$install_prog$stripme $file $destfile"
3448 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
3449 test -n "$outputname" && ${rm}r "$tmpdir"
3450 ;;
3451 esac
3452 done
3453
3454 for file in $staticlibs; do
3455 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3456
3457 # Set up the ranlib parameters.
3458 oldlib="$destdir/$name"
3459
3460 $show "$install_prog $file $oldlib"
3461 $run eval "$install_prog \$file \$oldlib" || exit $?
3462
3463 # Do each command in the postinstall commands.
3464 eval cmds=\"$old_postinstall_cmds\"
3465 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3466 for cmd in $cmds; do
3467 IFS="$save_ifs"
3468 $show "$cmd"
3469 $run eval "$cmd" || exit $?
3470 done
3471 IFS="$save_ifs"
3472 done
3473
3474 if test -n "$future_libdirs"; then
3475 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
3476 fi
3477
3478 if test -n "$current_libdirs"; then
3479 # Maybe just do a dry run.
3480 test -n "$run" && current_libdirs=" -n$current_libdirs"
3481 exec $SHELL $0 --finish$current_libdirs
3482 exit 1
3483 fi
3484
3485 exit 0
3486 ;;
3487
3488 # libtool finish mode
3489 finish)
3490 modename="$modename: finish"
3491 libdirs="$nonopt"
3492 admincmds=
3493
3494 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
3495 for dir
3496 do
3497 libdirs="$libdirs $dir"
3498 done
3499
3500 for libdir in $libdirs; do
3501 if test -n "$finish_cmds"; then
3502 # Do each command in the finish commands.
3503 eval cmds=\"$finish_cmds\"
3504 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3505 for cmd in $cmds; do
3506 IFS="$save_ifs"
3507 $show "$cmd"
3508 $run eval "$cmd" || admincmds="$admincmds
3509 $cmd"
3510 done
3511 IFS="$save_ifs"
3512 fi
3513 if test -n "$finish_eval"; then
3514 # Do the single finish_eval.
3515 eval cmds=\"$finish_eval\"
3516 $run eval "$cmds" || admincmds="$admincmds
3517 $cmds"
3518 fi
3519 done
3520 fi
3521
3522 # Exit here if they wanted silent mode.
3523 test "$show" = : && exit 0
3524
3525 echo "----------------------------------------------------------------------"
3526 echo "Libraries have been installed in:"
3527 for libdir in $libdirs; do
3528 echo " $libdir"
3529 done
3530 echo
3531 echo "If you ever happen to want to link against installed libraries"
3532 echo "in a given directory, LIBDIR, you must either use libtool, and"
3533 echo "specify the full pathname of the library, or use \`-LLIBDIR'"
3534 echo "flag during linking and do at least one of the following:"
3535 if test -n "$shlibpath_var"; then
3536 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
3537 echo " during execution"
3538 fi
3539 if test -n "$runpath_var"; then
3540 echo " - add LIBDIR to the \`$runpath_var' environment variable"
3541 echo " during linking"
3542 fi
3543 if test -n "$hardcode_libdir_flag_spec"; then
3544 libdir=LIBDIR
3545 eval flag=\"$hardcode_libdir_flag_spec\"
3546
3547 echo " - use the \`$flag' linker flag"
3548 fi
3549 if test -n "$admincmds"; then
3550 echo " - have your system administrator run these commands:$admincmds"
3551 fi
3552 if test -f /etc/ld.so.conf; then
3553 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
3554 fi
3555 echo
3556 echo "See any operating system documentation about shared libraries for"
3557 echo "more information, such as the ld(1) and ld.so(8) manual pages."
3558 echo "----------------------------------------------------------------------"
3559 exit 0
3560 ;;
3561
3562 # libtool execute mode
3563 execute)
3564 modename="$modename: execute"
3565
3566 # The first argument is the command name.
3567 cmd="$nonopt"
3568 if test -z "$cmd"; then
3569 $echo "$modename: you must specify a COMMAND" 1>&2
3570 $echo "$help"
3571 exit 1
3572 fi
3573
3574 # Handle -dlopen flags immediately.
3575 for file in $execute_dlfiles; do
3576 if test ! -f "$file"; then
3577 $echo "$modename: \`$file' is not a file" 1>&2
3578 $echo "$help" 1>&2
3579 exit 1
3580 fi
3581
3582 dir=
3583 case "$file" in
3584 *.la)
3585 # Check to see that this really is a libtool archive.
3586 if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
3587 else
3588 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
3589 $echo "$help" 1>&2
3590 exit 1
3591 fi
3592
3593 # Read the libtool library.
3594 dlname=
3595 library_names=
3596
3597 # If there is no directory component, then add one.
3598 case "$file" in
3599 */* | *\\*) . $file ;;
3600 *) . ./$file ;;
3601 esac
3602
3603 # Skip this library if it cannot be dlopened.
3604 if test -z "$dlname"; then
3605 # Warn if it was a shared library.
3606 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
3607 continue
3608 fi
3609
3610 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
3611 test "X$dir" = "X$file" && dir=.
3612
3613 if test -f "$dir/$objdir/$dlname"; then
3614 dir="$dir/$objdir"
3615 else
3616 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
3617 exit 1
3618 fi
3619 ;;
3620
3621 *.lo)
3622 # Just add the directory containing the .lo file.
3623 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
3624 test "X$dir" = "X$file" && dir=.
3625 ;;
3626
3627 *)
3628 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
3629 continue
3630 ;;
3631 esac
3632
3633 # Get the absolute pathname.
3634 absdir=`cd "$dir" && pwd`
3635 test -n "$absdir" && dir="$absdir"
3636
3637 # Now add the directory to shlibpath_var.
3638 if eval "test -z \"\$$shlibpath_var\""; then
3639 eval "$shlibpath_var=\"\$dir\""
3640 else
3641 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
3642 fi
3643 done
3644
3645 # This variable tells wrapper scripts just to set shlibpath_var
3646 # rather than running their programs.
3647 libtool_execute_magic="$magic"
3648
3649 # Check if any of the arguments is a wrapper script.
3650 args=
3651 for file
3652 do
3653 case "$file" in
3654 -*) ;;
3655 *)
3656 # Do a test to see if this is really a libtool program.
3657 if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
3658 # If there is no directory component, then add one.
3659 case "$file" in
3660 */* | *\\*) . $file ;;
3661 *) . ./$file ;;
3662 esac
3663
3664 # Transform arg to wrapped name.
3665 file="$progdir/$program"
3666 fi
3667 ;;
3668 esac
3669 # Quote arguments (to preserve shell metacharacters).
3670 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
3671 args="$args \"$file\""
3672 done
3673
3674 if test -z "$run"; then
3675 # Export the shlibpath_var.
3676 eval "export $shlibpath_var"
3677
3678 # Restore saved enviroment variables
3679 if test "${save_LC_ALL+set}" = set; then
3680 LC_ALL="$save_LC_ALL"; export LC_ALL
3681 fi
3682 if test "${save_LANG+set}" = set; then
3683 LANG="$save_LANG"; export LANG
3684 fi
3685
3686 # Now actually exec the command.
3687 eval "exec \$cmd$args"
3688
3689 $echo "$modename: cannot exec \$cmd$args"
3690 exit 1
3691 else
3692 # Display what would be done.
3693 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
3694 $echo "export $shlibpath_var"
3695 $echo "$cmd$args"
3696 exit 0
3697 fi
3698 ;;
3699
3700 # libtool uninstall mode
3701 uninstall)
3702 modename="$modename: uninstall"
3703 rm="$nonopt"
3704 files=
3705
3706 for arg
3707 do
3708 case "$arg" in
3709 -*) rm="$rm $arg" ;;
3710 *) files="$files $arg" ;;
3711 esac
3712 done
3713
3714 if test -z "$rm"; then
3715 $echo "$modename: you must specify an RM program" 1>&2
3716 $echo "$help" 1>&2
3717 exit 1
3718 fi
3719
3720 for file in $files; do
3721 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
3722 test "X$dir" = "X$file" && dir=.
3723 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
3724
3725 rmfiles="$file"
3726
3727 case "$name" in
3728 *.la)
3729 # Possibly a libtool archive, so verify it.
3730 if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
3731 . $dir/$name
3732
3733 # Delete the libtool libraries and symlinks.
3734 for n in $library_names; do
3735 rmfiles="$rmfiles $dir/$n"
3736 done
3737 test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
3738
3739 $show "$rm $rmfiles"
3740 $run $rm $rmfiles
3741
3742 if test -n "$library_names"; then
3743 # Do each command in the postuninstall commands.
3744 eval cmds=\"$postuninstall_cmds\"
3745 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3746 for cmd in $cmds; do
3747 IFS="$save_ifs"
3748 $show "$cmd"
3749 $run eval "$cmd"
3750 done
3751 IFS="$save_ifs"
3752 fi
3753
3754 if test -n "$old_library"; then
3755 # Do each command in the old_postuninstall commands.
3756 eval cmds=\"$old_postuninstall_cmds\"
3757 IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
3758 for cmd in $cmds; do
3759 IFS="$save_ifs"
3760 $show "$cmd"
3761 $run eval "$cmd"
3762 done
3763 IFS="$save_ifs"
3764 fi
3765
3766 # FIXME: should reinstall the best remaining shared library.
3767 fi
3768 ;;
3769
3770 *.lo)
3771 if test "$build_old_libs" = yes; then
3772 oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
3773 rmfiles="$rmfiles $dir/$oldobj"
3774 fi
3775 $show "$rm $rmfiles"
3776 $run $rm $rmfiles
3777 ;;
3778
3779 *)
3780 $show "$rm $rmfiles"
3781 $run $rm $rmfiles
3782 ;;
3783 esac
3784 done
3785 exit 0
3786 ;;
3787
3788 "")
3789 $echo "$modename: you must specify a MODE" 1>&2
3790 $echo "$generic_help" 1>&2
3791 exit 1
3792 ;;
3793 esac
3794
3795 $echo "$modename: invalid operation mode \`$mode'" 1>&2
3796 $echo "$generic_help" 1>&2
3797 exit 1
3798fi # test -z "$show_help"
3799
3800# We need to display help for each of the modes.
3801case "$mode" in
3802"") $echo \
3803"Usage: $modename [OPTION]... [MODE-ARG]...
3804
3805Provide generalized library-building support services.
3806
3807 --config show all configuration variables
3808 --debug enable verbose shell tracing
3809-n, --dry-run display commands without modifying any files
3810 --features display basic configuration information and exit
3811 --finish same as \`--mode=finish'
3812 --help display this help message and exit
3813 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
3814 --quiet same as \`--silent'
3815 --silent don't print informational messages
3816 --version print version information
3817
3818MODE must be one of the following:
3819
3820 compile compile a source file into a libtool object
3821 execute automatically set library path, then run a program
3822 finish complete the installation of libtool libraries
3823 install install libraries or executables
3824 link create a library or an executable
3825 uninstall remove libraries from an installed directory
3826
3827MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
3828a more detailed description of MODE."
3829 exit 0
3830 ;;
3831
3832compile)
3833 $echo \
3834"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3835
3836Compile a source file into a libtool library object.
3837
3838This mode accepts the following additional options:
3839
3840 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3841 -static always build a \`.o' file suitable for static linking
3842
3843COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3844from the given SOURCEFILE.
3845
3846The output file name is determined by removing the directory component from
3847SOURCEFILE, then substituting the C source code suffix \`.c' with the
3848library object suffix, \`.lo'."
3849 ;;
3850
3851execute)
3852 $echo \
3853"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
3854
3855Automatically set library path, then run a program.
3856
3857This mode accepts the following additional options:
3858
3859 -dlopen FILE add the directory containing FILE to the library path
3860
3861This mode sets the library path environment variable according to \`-dlopen'
3862flags.
3863
3864If any of the ARGS are libtool executable wrappers, then they are translated
3865into their corresponding uninstalled binary, and any of their required library
3866directories are added to the library path.
3867
3868Then, COMMAND is executed, with ARGS as arguments."
3869 ;;
3870
3871finish)
3872 $echo \
3873"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
3874
3875Complete the installation of libtool libraries.
3876
3877Each LIBDIR is a directory that contains libtool libraries.
3878
3879The commands that this mode executes may require superuser privileges. Use
3880the \`--dry-run' option if you just want to see what would be executed."
3881 ;;
3882
3883install)
3884 $echo \
3885"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
3886
3887Install executables or libraries.
3888
3889INSTALL-COMMAND is the installation command. The first component should be
3890either the \`install' or \`cp' program.
3891
3892The rest of the components are interpreted as arguments to that command (only
3893BSD-compatible install options are recognized)."
3894 ;;
3895
3896link)
3897 $echo \
3898"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
3899
3900Link object files or libraries together to form another library, or to
3901create an executable program.
3902
3903LINK-COMMAND is a command using the C compiler that you would use to create
3904a program from several object files.
3905
3906The following components of LINK-COMMAND are treated specially:
3907
3908 -all-static do not do any dynamic linking at all
3909 -avoid-version do not add a version suffix if possible
3910 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3911 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3912 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3913 -export-symbols SYMFILE
3914 try to export only the symbols listed in SYMFILE
3915 -export-symbols-regex REGEX
3916 try to export only the symbols matching REGEX
3917 -LLIBDIR search LIBDIR for required installed libraries
3918 -lNAME OUTPUT-FILE requires the installed library libNAME
3919 -module build a library that can dlopened
3920 -no-undefined declare that a library does not refer to external symbols
3921 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3922 -release RELEASE specify package release information
3923 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3924 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3925 -static do not do any dynamic linking of libtool libraries
3926 -version-info CURRENT[:REVISION[:AGE]]
3927 specify library version info [each variable defaults to 0]
3928
3929All other options (arguments beginning with \`-') are ignored.
3930
3931Every other argument is treated as a filename. Files ending in \`.la' are
3932treated as uninstalled libtool libraries, other files are standard or library
3933object files.
3934
3935If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
3936only library objects (\`.lo' files) may be specified, and \`-rpath' is
3937required, except when creating a convenience library.
3938
3939If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
3940using \`ar' and \`ranlib', or on Windows using \`lib'.
3941
3942If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
3943is created, otherwise an executable program is created."
3944 ;;
3945
3946uninstall)
3947 $echo \
3948"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3949
3950Remove libraries from an installation directory.
3951
3952RM is the name of the program to use to delete files associated with each FILE
3953(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3954to RM.
3955
3956If FILE is a libtool library, all the files associated with it are deleted.
3957Otherwise, only FILE itself is deleted using RM."
3958 ;;
3959
3960*)
3961 $echo "$modename: invalid operation mode \`$mode'" 1>&2
3962 $echo "$help" 1>&2
3963 exit 1
3964 ;;
3965esac
3966
3967echo
3968$echo "Try \`$modename --help' for more information about other modes."
3969
3970exit 0
3971
3972# Local Variables:
3973# mode:shell-script
3974# sh-indentation:2
3975# End:
diff --git a/xdelta1/missing b/xdelta1/missing
deleted file mode 100755
index 6a37006..0000000
--- a/xdelta1/missing
+++ /dev/null
@@ -1,336 +0,0 @@
1#! /bin/sh
2# Common stub for a few missing GNU programs while installing.
3# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
4# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19# 02111-1307, USA.
20
21# As a special exception to the GNU General Public License, if you
22# distribute this file as part of a program that contains a
23# configuration script generated by Autoconf, you may include it under
24# the same distribution terms that you use for the rest of that program.
25
26if test $# -eq 0; then
27 echo 1>&2 "Try \`$0 --help' for more information"
28 exit 1
29fi
30
31run=:
32
33# In the cases where this matters, `missing' is being run in the
34# srcdir already.
35if test -f configure.ac; then
36 configure_ac=configure.ac
37else
38 configure_ac=configure.in
39fi
40
41case "$1" in
42--run)
43 # Try to run requested program, and just exit if it succeeds.
44 run=
45 shift
46 "$@" && exit 0
47 ;;
48esac
49
50# If it does not exist, or fails to run (possibly an outdated version),
51# try to emulate it.
52case "$1" in
53
54 -h|--h|--he|--hel|--help)
55 echo "\
56$0 [OPTION]... PROGRAM [ARGUMENT]...
57
58Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
59error status if there is no known handling for PROGRAM.
60
61Options:
62 -h, --help display this help and exit
63 -v, --version output version information and exit
64 --run try to run the given command, and emulate it if it fails
65
66Supported PROGRAM values:
67 aclocal touch file \`aclocal.m4'
68 autoconf touch file \`configure'
69 autoheader touch file \`config.h.in'
70 automake touch all \`Makefile.in' files
71 bison create \`y.tab.[ch]', if possible, from existing .[ch]
72 flex create \`lex.yy.c', if possible, from existing .c
73 help2man touch the output file
74 lex create \`lex.yy.c', if possible, from existing .c
75 makeinfo touch the output file
76 tar try tar, gnutar, gtar, then tar without non-portable flags
77 yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
78 ;;
79
80 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
81 echo "missing 0.4 - GNU automake"
82 ;;
83
84 -*)
85 echo 1>&2 "$0: Unknown \`$1' option"
86 echo 1>&2 "Try \`$0 --help' for more information"
87 exit 1
88 ;;
89
90 aclocal*)
91 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
92 # We have it, but it failed.
93 exit 1
94 fi
95
96 echo 1>&2 "\
97WARNING: \`$1' is missing on your system. You should only need it if
98 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
99 to install the \`Automake' and \`Perl' packages. Grab them from
100 any GNU archive site."
101 touch aclocal.m4
102 ;;
103
104 autoconf)
105 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
106 # We have it, but it failed.
107 exit 1
108 fi
109
110 echo 1>&2 "\
111WARNING: \`$1' is missing on your system. You should only need it if
112 you modified \`${configure_ac}'. You might want to install the
113 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
114 archive site."
115 touch configure
116 ;;
117
118 autoheader)
119 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
120 # We have it, but it failed.
121 exit 1
122 fi
123
124 echo 1>&2 "\
125WARNING: \`$1' is missing on your system. You should only need it if
126 you modified \`acconfig.h' or \`${configure_ac}'. You might want
127 to install the \`Autoconf' and \`GNU m4' packages. Grab them
128 from any GNU archive site."
129 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
130 test -z "$files" && files="config.h"
131 touch_files=
132 for f in $files; do
133 case "$f" in
134 *:*) touch_files="$touch_files "`echo "$f" |
135 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
136 *) touch_files="$touch_files $f.in";;
137 esac
138 done
139 touch $touch_files
140 ;;
141
142 automake*)
143 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
144 # We have it, but it failed.
145 exit 1
146 fi
147
148 echo 1>&2 "\
149WARNING: \`$1' is missing on your system. You should only need it if
150 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
151 You might want to install the \`Automake' and \`Perl' packages.
152 Grab them from any GNU archive site."
153 find . -type f -name Makefile.am -print |
154 sed 's/\.am$/.in/' |
155 while read f; do touch "$f"; done
156 ;;
157
158 autom4te)
159 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
160 # We have it, but it failed.
161 exit 1
162 fi
163
164 echo 1>&2 "\
165WARNING: \`$1' is needed, and you do not seem to have it handy on your
166 system. You might have modified some files without having the
167 proper tools for further handling them.
168 You can get \`$1Help2man' as part of \`Autoconf' from any GNU
169 archive site."
170
171 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
172 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
173 if test -f "$file"; then
174 touch $file
175 else
176 test -z "$file" || exec >$file
177 echo "#! /bin/sh"
178 echo "# Created by GNU Automake missing as a replacement of"
179 echo "# $ $@"
180 echo "exit 0"
181 chmod +x $file
182 exit 1
183 fi
184 ;;
185
186 bison|yacc)
187 echo 1>&2 "\
188WARNING: \`$1' is missing on your system. You should only need it if
189 you modified a \`.y' file. You may need the \`Bison' package
190 in order for those modifications to take effect. You can get
191 \`Bison' from any GNU archive site."
192 rm -f y.tab.c y.tab.h
193 if [ $# -ne 1 ]; then
194 eval LASTARG="\${$#}"
195 case "$LASTARG" in
196 *.y)
197 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
198 if [ -f "$SRCFILE" ]; then
199 cp "$SRCFILE" y.tab.c
200 fi
201 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
202 if [ -f "$SRCFILE" ]; then
203 cp "$SRCFILE" y.tab.h
204 fi
205 ;;
206 esac
207 fi
208 if [ ! -f y.tab.h ]; then
209 echo >y.tab.h
210 fi
211 if [ ! -f y.tab.c ]; then
212 echo 'main() { return 0; }' >y.tab.c
213 fi
214 ;;
215
216 lex|flex)
217 echo 1>&2 "\
218WARNING: \`$1' is missing on your system. You should only need it if
219 you modified a \`.l' file. You may need the \`Flex' package
220 in order for those modifications to take effect. You can get
221 \`Flex' from any GNU archive site."
222 rm -f lex.yy.c
223 if [ $# -ne 1 ]; then
224 eval LASTARG="\${$#}"
225 case "$LASTARG" in
226 *.l)
227 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
228 if [ -f "$SRCFILE" ]; then
229 cp "$SRCFILE" lex.yy.c
230 fi
231 ;;
232 esac
233 fi
234 if [ ! -f lex.yy.c ]; then
235 echo 'main() { return 0; }' >lex.yy.c
236 fi
237 ;;
238
239 help2man)
240 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
241 # We have it, but it failed.
242 exit 1
243 fi
244
245 echo 1>&2 "\
246WARNING: \`$1' is missing on your system. You should only need it if
247 you modified a dependency of a manual page. You may need the
248 \`Help2man' package in order for those modifications to take
249 effect. You can get \`Help2man' from any GNU archive site."
250
251 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
252 if test -z "$file"; then
253 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
254 fi
255 if [ -f "$file" ]; then
256 touch $file
257 else
258 test -z "$file" || exec >$file
259 echo ".ab help2man is required to generate this page"
260 exit 1
261 fi
262 ;;
263
264 makeinfo)
265 if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
266 # We have makeinfo, but it failed.
267 exit 1
268 fi
269
270 echo 1>&2 "\
271WARNING: \`$1' is missing on your system. You should only need it if
272 you modified a \`.texi' or \`.texinfo' file, or any other file
273 indirectly affecting the aspect of the manual. The spurious
274 call might also be the consequence of using a buggy \`make' (AIX,
275 DU, IRIX). You might want to install the \`Texinfo' package or
276 the \`GNU make' package. Grab either from any GNU archive site."
277 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
278 if test -z "$file"; then
279 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
280 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
281 fi
282 touch $file
283 ;;
284
285 tar)
286 shift
287 if test -n "$run"; then
288 echo 1>&2 "ERROR: \`tar' requires --run"
289 exit 1
290 fi
291
292 # We have already tried tar in the generic part.
293 # Look for gnutar/gtar before invocation to avoid ugly error
294 # messages.
295 if (gnutar --version > /dev/null 2>&1); then
296 gnutar "$@" && exit 0
297 fi
298 if (gtar --version > /dev/null 2>&1); then
299 gtar "$@" && exit 0
300 fi
301 firstarg="$1"
302 if shift; then
303 case "$firstarg" in
304 *o*)
305 firstarg=`echo "$firstarg" | sed s/o//`
306 tar "$firstarg" "$@" && exit 0
307 ;;
308 esac
309 case "$firstarg" in
310 *h*)
311 firstarg=`echo "$firstarg" | sed s/h//`
312 tar "$firstarg" "$@" && exit 0
313 ;;
314 esac
315 fi
316
317 echo 1>&2 "\
318WARNING: I can't seem to be able to run \`tar' with the given arguments.
319 You may want to install GNU tar or Free paxutils, or check the
320 command line arguments."
321 exit 1
322 ;;
323
324 *)
325 echo 1>&2 "\
326WARNING: \`$1' is needed, and you do not seem to have it handy on your
327 system. You might have modified some files without having the
328 proper tools for further handling them. Check the \`README' file,
329 it often tells you about the needed prerequirements for installing
330 this package. You may also peek at any GNU archive site, in case
331 some other package would contain this missing \`$1' program."
332 exit 1
333 ;;
334esac
335
336exit 0
diff --git a/xdelta1/mkinstalldirs b/xdelta1/mkinstalldirs
deleted file mode 100755
index 8ab885e..0000000
--- a/xdelta1/mkinstalldirs
+++ /dev/null
@@ -1,99 +0,0 @@
1#! /bin/sh
2# mkinstalldirs --- make directory hierarchy
3# Author: Noah Friedman <friedman@prep.ai.mit.edu>
4# Created: 1993-05-16
5# Public domain
6
7errstatus=0
8dirmode=""
9
10usage="\
11Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
12
13# process command line arguments
14while test $# -gt 0 ; do
15 case "${1}" in
16 -h | --help | --h* ) # -h for help
17 echo "${usage}" 1>&2; exit 0 ;;
18 -m ) # -m PERM arg
19 shift
20 test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
21 dirmode="${1}"
22 shift ;;
23 -- ) shift; break ;; # stop option processing
24 -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option
25 * ) break ;; # first non-opt arg
26 esac
27done
28
29for file
30do
31 if test -d "$file"; then
32 shift
33 else
34 break
35 fi
36done
37
38case $# in
390) exit 0 ;;
40esac
41
42case $dirmode in
43'')
44 if mkdir -p -- . 2>/dev/null; then
45 echo "mkdir -p -- $*"
46 exec mkdir -p -- "$@"
47 fi ;;
48*)
49 if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
50 echo "mkdir -m $dirmode -p -- $*"
51 exec mkdir -m "$dirmode" -p -- "$@"
52 fi ;;
53esac
54
55for file
56do
57 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
58 shift
59
60 pathcomp=
61 for d
62 do
63 pathcomp="$pathcomp$d"
64 case "$pathcomp" in
65 -* ) pathcomp=./$pathcomp ;;
66 esac
67
68 if test ! -d "$pathcomp"; then
69 echo "mkdir $pathcomp"
70
71 mkdir "$pathcomp" || lasterr=$?
72
73 if test ! -d "$pathcomp"; then
74 errstatus=$lasterr
75 else
76 if test ! -z "$dirmode"; then
77 echo "chmod $dirmode $pathcomp"
78
79 lasterr=""
80 chmod "$dirmode" "$pathcomp" || lasterr=$?
81
82 if test ! -z "$lasterr"; then
83 errstatus=$lasterr
84 fi
85 fi
86 fi
87 fi
88
89 pathcomp="$pathcomp/"
90 done
91done
92
93exit $errstatus
94
95# Local Variables:
96# mode: shell-script
97# sh-indentation: 3
98# End:
99# mkinstalldirs ends here
diff --git a/xdelta1/stamp-h.in b/xdelta1/stamp-h.in
deleted file mode 100755
index 9788f70..0000000
--- a/xdelta1/stamp-h.in
+++ /dev/null
@@ -1 +0,0 @@
1timestamp
diff --git a/xdelta1/xdelta.c.flc b/xdelta1/xdelta.c.flc
deleted file mode 100755
index 4524242..0000000
--- a/xdelta1/xdelta.c.flc
+++ /dev/null
@@ -1,4 +0,0 @@
1
2(fast-lock-cache-data 2 (quote (15471 . 35591)) (quote (t ("\\<\\(string_match_test\\|xd3_file\\|xd3_cmd\\|xd3_smatcher\\|xd3_match_state\\|xd3_comp_table_func\\|xd3_code_table_func\\|xd3_code_table_sizes\\|xd3_code_table_desc\\|FILE\\|pid_t\\|xd3_slist\\|xd3_shent\\|djw_coding_types\\|djw_weight\\|djw_prefix\\|djw_heapen\\|djw_stream\\|uint\\|ulong\\|uint8_t\\|uint32_t\\|uint16_t\\|size_t\\|off_t\\|xd3_flags\\|xd3_rvalues\\|xd3_getblk_func\\|xd3_free_func\\|xd3_alloc_func\\|xd3_config\\|xd3_sec_stream\\|xd3_sec_cfg\\|xd3_sec_type\\|xd3_rlist\\|xd3_iopt_buf\\|xd3_desect\\|xd3_output\\|xd3_addr_cache\\|xd3_rpage\\|xd3_einst\\|xd3_dinst\\|xd3_rinst\\|xd3_scan_cfg\\|xd3_hash_cfg\\|xd3_source\\|xd3_stream\\|xoff_t\\|uint64_t\\|uint32_t\\|uint16_t\\|uint8_t\\|xd3_decomp_type\\|main_read_flags\\|sec_dist_func\\|bit_state\\|xd3_rtype\\|xd3_decode_state\\|xd3_encode_state\\|xd3_section_type\\|xd3_secondary_flags\\|xd3_secondary_ids\\|xd3_indicator\\|huff_coding_types\\|huff_weight\\|huff_prefix\\|huff_heapen\\|huff_stream\\|fgk_weight\\|fgk_bit\\|fgk_block\\|fgk_node\\|fgk_stream\\)\\>" (0 font-lock-type-face)) ("^\\(\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+[ ]+\\)\\(\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+[ ]+\\)\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+[ ]+\\)?\\)?\\)?\\([*&]+[ ]*\\)?\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+\\)[ ]*(" (10 font-lock-function-name-face)) ("^\\(typedef[ ]+struct\\|struct\\|static[ ]+struct\\)[ ]+\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+\\)[ ]*\\({\\|$\\)" (2 font-lock-function-name-face)) ("case[ ]+\\(\\(\\sw\\|\\s_\\)+\\)[ ]+:" (1 font-lock-keyword-face)) ("\\<\\(default\\):" (1 font-lock-keyword-face)) ("^#[ ]*include[ ]+\\(<[^>\"
3]+>\\)" (1 font-lock-string-face)) ("^#[ ]*define[ ]+\\(\\(\\sw+\\)(\\)" (2 font-lock-function-name-face)) ("^#[ ]*if\\>" ("\\<\\(defined\\)\\>[ ]*(?\\(\\sw+\\)?" nil nil (1 font-lock-preprocessor-face) (2 font-lock-variable-name-face nil t))) ("^#[ ]*elif\\>" ("\\<\\(defined\\)\\>[ ]*(?\\(\\sw+\\)?" nil nil (1 font-lock-preprocessor-face) (2 font-lock-variable-name-face nil t))) ("^\\(#[ ]*[a-z]+\\)\\>[ ]*\\(\\sw+\\)?" (1 font-lock-preprocessor-face) (2 font-lock-variable-name-face nil t)) ("\\<\\(auto\\|c\\(har\\|onst\\)\\|double\\|e\\(num\\|xtern\\)\\|float\\|int\\|long\\|register\\|s\\(hort\\|igned\\|t\\(atic\\|ruct\\)\\)\\|typedef\\|un\\(ion\\|signed\\)\\|vo\\(id\\|latile\\)\\)\\>" (0 font-lock-type-face)) ("\\<\\(break\\|continue\\|do\\|else\\|for\\|if\\|return\\|switch\\|while\\)\\>" (0 font-lock-keyword-face)) ("\\<\\(case\\|goto\\)\\>[ ]*\\([^
4:;]+\\)?" (1 font-lock-keyword-face) (2 font-lock-reference-face nil t)) ("^[ ]*\\(\\sw+\\)[ ]*:" (1 font-lock-reference-face)) ("\\<\\(auto\\|c\\(har\\|onst\\)\\|double\\|e\\(num\\|xtern\\)\\|float\\|int\\|long\\|register\\|s\\(hort\\|igned\\|t\\(atic\\|ruct\\)\\)\\|typedef\\|un\\(ion\\|signed\\)\\|vo\\(id\\|latile\\)\\)\\>\\([ *&]+\\sw+\\>\\)*" (font-lock-match-c++-style-declaration-item-and-skip-to-next (goto-char (or (match-beginning 8) (match-end 1))) (goto-char (match-end 1)) (1 (if (match-beginning 4) font-lock-function-name-face font-lock-variable-name-face)))) ("\\(}\\)[ *]*\\sw" (font-lock-match-c++-style-declaration-item-and-skip-to-next (goto-char (match-end 1)) nil (1 (if (match-beginning 4) font-lock-function-name-face font-lock-variable-name-face)))) ("^\\(\\sw+\\)\\>\\([ *]+\\sw+\\>\\)*" (1 font-lock-type-face) (font-lock-match-c++-style-declaration-item-and-skip-to-next (goto-char (or (match-beginning 2) (match-end 1))) nil (1 (if (match-beginning 4) font-lock-function-name-face font-lock-variable-name-face)))) ("\\<\\(string_match_test\\|xd3_file\\|xd3_cmd\\|xd3_smatcher\\|xd3_match_state\\|xd3_comp_table_func\\|xd3_code_table_func\\|xd3_code_table_sizes\\|xd3_code_table_desc\\|FILE\\|pid_t\\|xd3_slist\\|xd3_shent\\|djw_coding_types\\|djw_weight\\|djw_prefix\\|djw_heapen\\|djw_stream\\|uint\\|ulong\\|uint8_t\\|uint32_t\\|uint16_t\\|size_t\\|off_t\\|xd3_flags\\|xd3_rvalues\\|xd3_getblk_func\\|xd3_free_func\\|xd3_alloc_func\\|xd3_config\\|xd3_sec_stream\\|xd3_sec_cfg\\|xd3_sec_type\\|xd3_rlist\\|xd3_iopt_buf\\|xd3_desect\\|xd3_output\\|xd3_addr_cache\\|xd3_rpage\\|xd3_einst\\|xd3_dinst\\|xd3_rinst\\|xd3_scan_cfg\\|xd3_hash_cfg\\|xd3_source\\|xd3_stream\\|xoff_t\\|uint64_t\\|uint32_t\\|uint16_t\\|uint8_t\\|xd3_decomp_type\\|main_read_flags\\|sec_dist_func\\|bit_state\\|xd3_rtype\\|xd3_decode_state\\|xd3_encode_state\\|xd3_section_type\\|xd3_secondary_flags\\|xd3_secondary_ids\\|xd3_indicator\\|huff_coding_types\\|huff_weight\\|huff_prefix\\|huff_heapen\\|huff_stream\\|fgk_weight\\|fgk_bit\\|fgk_block\\|fgk_node\\|fgk_stream\\)\\>\\([ *&]+\\sw+\\>\\)*" (font-lock-match-c++-style-declaration-item-and-skip-to-next (goto-char (or (match-beginning 2) (match-end 1))) (goto-char (match-end 1)) (1 (if (match-beginning 4) font-lock-function-name-face font-lock-variable-name-face)))))) (quote ((font-lock-reference-face 2536 2550 2469 2488 2135 2139 2095 2099) (font-lock-keyword-face 2609 2615 2558 2564 2531 2535 2496 2502 2464 2468 2438 2444 2373 2379 2283 2285 2237 2243 2110 2116 2090 2094 2070 2072 2019 2022 1941 1947) (font-lock-function-name-face 2411 2420 2262 2275 1871 1893 1671 1687 1570 1582 1498 1515) (font-lock-type-face 2640 2645 2422 2425 2405 2409 2399 2404 2258 2261 1998 2001 1978 1981 1895 1898 1867 1870 1834 1837 1810 1813 1790 1793 1729 1734 1649 1655 1555 1559 1548 1554 1476 1482 1410 1415 1295 1300 1180 1185) (font-lock-string-face 2566 2597 2504 2524 1088 1100 1068 1076 1047 1056 1027 1037 1007 1017) (font-lock-variable-name-face 2654 2665 2426 2432 2002 2010 1982 1983 1918 1938 1899 1907 1838 1853 1814 1828 1794 1804 1769 1789 1748 1753 1743 1746 1422 1442 1307 1327 1192 1212 980 996) (font-lock-preprocessor-face 2248 2254 1969 1974 1911 1917 1859 1865 1761 1768 1078 1086 1058 1066 1038 1046 1018 1026 998 1006 972 979) (font-lock-comment-face 1449 1474 1333 1409 1218 1294 1103 1179 844 970))))
diff --git a/xdelta1/xdelta.dsp b/xdelta1/xdelta.dsp
deleted file mode 100755
index 15c3d8e..0000000
--- a/xdelta1/xdelta.dsp
+++ /dev/null
@@ -1,121 +0,0 @@
1# Microsoft Developer Studio Project File - Name="xdelta" - Package Owner=<4>
2# Microsoft Developer Studio Generated Build File, Format Version 5.00
3# ** DO NOT EDIT **
4
5# TARGTYPE "Win32 (x86) Console Application" 0x0103
6
7CFG=xdelta - Win32 Debug
8!MESSAGE This is not a valid makefile. To build this project using NMAKE,
9!MESSAGE use the Export Makefile command and run
10!MESSAGE
11!MESSAGE NMAKE /f "xdelta.mak".
12!MESSAGE
13!MESSAGE You can specify a configuration when running NMAKE
14!MESSAGE by defining the macro CFG on the command line. For example:
15!MESSAGE
16!MESSAGE NMAKE /f "xdelta.mak" CFG="xdelta - Win32 Debug"
17!MESSAGE
18!MESSAGE Possible choices for configuration are:
19!MESSAGE
20!MESSAGE "xdelta - Win32 Release" (based on "Win32 (x86) Console Application")
21!MESSAGE "xdelta - Win32 Debug" (based on "Win32 (x86) Console Application")
22!MESSAGE
23
24# Begin Project
25# PROP Scc_ProjName ""
26# PROP Scc_LocalPath ""
27CPP=cl.exe
28RSC=rc.exe
29
30!IF "$(CFG)" == "xdelta - Win32 Release"
31
32# PROP BASE Use_MFC 0
33# PROP BASE Use_Debug_Libraries 0
34# PROP BASE Output_Dir "Release"
35# PROP BASE Intermediate_Dir "Release"
36# PROP BASE Target_Dir ""
37# PROP Use_MFC 0
38# PROP Use_Debug_Libraries 0
39# PROP Output_Dir "Release"
40# PROP Intermediate_Dir "Release"
41# PROP Ignore_Export_Lib 0
42# PROP Target_Dir ""
43# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
44# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
45# ADD BASE RSC /l 0x409 /d "NDEBUG"
46# ADD RSC /l 0x409 /d "NDEBUG"
47BSC32=bscmake.exe
48# ADD BASE BSC32 /nologo
49# ADD BSC32 /nologo
50LINK32=link.exe
51# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
52# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib zlibs.lib glib-1.2.lib /nologo /subsystem:console /machine:I386
53
54!ELSEIF "$(CFG)" == "xdelta - Win32 Debug"
55
56# PROP BASE Use_MFC 0
57# PROP BASE Use_Debug_Libraries 1
58# PROP BASE Output_Dir "Debug"
59# PROP BASE Intermediate_Dir "Debug"
60# PROP BASE Target_Dir ""
61# PROP Use_MFC 0
62# PROP Use_Debug_Libraries 1
63# PROP Output_Dir "Debug"
64# PROP Intermediate_Dir "Debug"
65# PROP Ignore_Export_Lib 0
66# PROP Target_Dir ""
67# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
68# ADD CPP /nologo /W3 /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "XDELTA_COMPILATION" /FR /YX /FD /ZI /c
69# ADD BASE RSC /l 0x409 /d "_DEBUG"
70# ADD RSC /l 0x409 /d "_DEBUG"
71BSC32=bscmake.exe
72# ADD BASE BSC32 /nologo
73# ADD BSC32 /nologo
74LINK32=link.exe
75# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
76# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib zlibs.lib glib-1.2.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
77
78!ENDIF
79
80# Begin Target
81
82# Name "xdelta - Win32 Release"
83# Name "xdelta - Win32 Debug"
84# Begin Source File
85
86SOURCE=.\libedsio\edsio.c
87# End Source File
88# Begin Source File
89
90SOURCE=.\libedsio\edsio_edsio.c
91# End Source File
92# Begin Source File
93
94SOURCE=.\getopt.c
95# End Source File
96# Begin Source File
97
98SOURCE=.\getopt1.c
99# End Source File
100# Begin Source File
101
102SOURCE=.\libedsio\md5c.c
103# End Source File
104# Begin Source File
105
106SOURCE=.\libedsio\sha.c
107# End Source File
108# Begin Source File
109
110SOURCE=.\xd_edsio.c
111# End Source File
112# Begin Source File
113
114SOURCE=.\xdelta.c
115# End Source File
116# Begin Source File
117
118SOURCE=.\xdmain.c
119# End Source File
120# End Target
121# End Project
diff --git a/xdelta1/xdelta.dsw b/xdelta1/xdelta.dsw
deleted file mode 100755
index 2fa4317..0000000
--- a/xdelta1/xdelta.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
1Microsoft Developer Studio Workspace File, Format Version 6.00
2# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3
4###############################################################################
5
6Project: "xdelta"=".\xdelta.dsp" - Package Owner=<4>
7
8Package=<5>
9{{{
10}}}
11
12Package=<4>
13{{{
14}}}
15
16###############################################################################
17
18Global:
19
20Package=<5>
21{{{
22}}}
23
24Package=<3>
25{{{
26}}}
27
28###############################################################################
29