Codebase list vo-aacenc / 0d56f39
Imported Upstream version 0.1.2 Alessio Treglia 12 years ago
39 changed file(s) with 6983 addition(s) and 4570 deletion(s). Raw diff Collapse all Expand all
0 0.1.2
1 - Fix a rare crash (division by zero)
2 - Update source files to the latest version upstream (no functional changes)
3 - Hide internal symbols in shared libraries
4 - Minor tweaks
5
06 0.1.1
17 - Fix a bitstream corruption error
28 - Fix building for windows
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
4 Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
225225
226226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
228233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
229234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
230235 a workaround. If GNU CC is not installed, it is therefore recommended
2020
2121 lib_LTLIBRARIES = libvo-aacenc.la
2222
23 libvo_aacenc_la_LDFLAGS = -version-info @VO_AACENC_VERSION@ -no-undefined
23 libvo_aacenc_la_LDFLAGS = -version-info @VO_AACENC_VERSION@ -no-undefined -export-symbols $(top_srcdir)/vo-aacenc.sym
2424
2525 libvo_aacenc_la_SOURCES = \
2626 $(VO_COMMON)/cmnMemory.c \
8686
8787
8888 EXTRA_DIST = $(top_srcdir)/NOTICE \
89 $(top_srcdir)/vo-aacenc.sym \
8990 $(top_srcdir)/aacenc/*.cpp $(top_srcdir)/aacenc/*.mk \
90 $(top_srcdir)/aacenc/SampleCode $(top_srcdir)/aacenc/Tools \
91 $(top_srcdir)/aacenc/build $(top_srcdir)/aacenc/doc \
91 $(top_srcdir)/aacenc/SampleCode $(top_srcdir)/aacenc/doc \
9292 $(top_srcdir)/aacenc/*.txt $(top_srcdir)/common/*.mk
9393
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
9696 am__base_list = \
9797 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
9898 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
99 am__uninstall_files_from_dir = { \
100 test -z "$$files" \
101 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
102 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
103 $(am__cd) "$$dir" && rm -f $$files; }; \
104 }
99105 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
100106 "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(aacencincludedir)"
101107 LTLIBRARIES = $(lib_LTLIBRARIES)
141147 sf_estim.lo spreading.lo stat_bits.lo tns.lo transform.lo \
142148 $(am__objects_1) $(am__objects_2)
143149 libvo_aacenc_la_OBJECTS = $(am_libvo_aacenc_la_OBJECTS)
144 AM_V_lt = $(am__v_lt_$(V))
145 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
150 AM_V_lt = $(am__v_lt_@AM_V@)
151 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
146152 am__v_lt_0 = --silent
147153 libvo_aacenc_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
148154 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
164170 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
165171 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
166172 $(AM_CFLAGS) $(CFLAGS)
167 AM_V_CC = $(am__v_CC_$(V))
168 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
173 AM_V_CC = $(am__v_CC_@AM_V@)
174 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
169175 am__v_CC_0 = @echo " CC " $@;
170 AM_V_at = $(am__v_at_$(V))
171 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
176 AM_V_at = $(am__v_at_@AM_V@)
177 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
172178 am__v_at_0 = @
173179 CCLD = $(CC)
174180 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
175181 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
176182 $(AM_LDFLAGS) $(LDFLAGS) -o $@
177 AM_V_CCLD = $(am__v_CCLD_$(V))
178 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
183 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
184 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
179185 am__v_CCLD_0 = @echo " CCLD " $@;
180186 CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
181187 LTCCASCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \
182188 $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) \
183189 $(CCASFLAGS)
184 AM_V_CCAS = $(am__v_CCAS_$(V))
185 am__v_CCAS_ = $(am__v_CCAS_$(AM_DEFAULT_VERBOSITY))
190 AM_V_CCAS = $(am__v_CCAS_@AM_V@)
191 am__v_CCAS_ = $(am__v_CCAS_@AM_DEFAULT_V@)
186192 am__v_CCAS_0 = @echo " CCAS " $@;
187 AM_V_GEN = $(am__v_GEN_$(V))
188 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
193 AM_V_GEN = $(am__v_GEN_@AM_V@)
194 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
189195 am__v_GEN_0 = @echo " GEN " $@;
190196 SOURCES = $(libvo_aacenc_la_SOURCES) $(aac_enc_SOURCES)
191197 DIST_SOURCES = $(am__libvo_aacenc_la_SOURCES_DIST) \
200206 distdir = $(PACKAGE)-$(VERSION)
201207 top_distdir = $(distdir)
202208 am__remove_distdir = \
203 { test ! -d "$(distdir)" \
204 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
205 && rm -fr "$(distdir)"; }; }
209 if test -d "$(distdir)"; then \
210 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
211 && rm -rf "$(distdir)" \
212 || { sleep 5 && rm -rf "$(distdir)"; }; \
213 else :; fi
206214 DIST_ARCHIVES = $(distdir).tar.gz
207215 GZIP_ENV = --best
208216 distuninstallcheck_listfiles = find . -type f -print
217 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
218 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
209219 distcleancheck_listfiles = find . -type f -print
210220 ACLOCAL = @ACLOCAL@
211221 AMTAR = @AMTAR@
226236 CYGPATH_W = @CYGPATH_W@
227237 DEFS = @DEFS@
228238 DEPDIR = @DEPDIR@
239 DLLTOOL = @DLLTOOL@
229240 DSYMUTIL = @DSYMUTIL@
230241 DUMPBIN = @DUMPBIN@
231242 ECHO_C = @ECHO_C@
251262 LTLIBOBJS = @LTLIBOBJS@
252263 MAINT = @MAINT@
253264 MAKEINFO = @MAKEINFO@
265 MANIFEST_TOOL = @MANIFEST_TOOL@
254266 MKDIR_P = @MKDIR_P@
255267 NM = @NM@
256268 NMEDIT = @NMEDIT@
277289 abs_srcdir = @abs_srcdir@
278290 abs_top_builddir = @abs_top_builddir@
279291 abs_top_srcdir = @abs_top_srcdir@
292 ac_ct_AR = @ac_ct_AR@
280293 ac_ct_CC = @ac_ct_CC@
281294 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
282295 am__include = @am__include@
309322 libexecdir = @libexecdir@
310323 localedir = @localedir@
311324 localstatedir = @localstatedir@
312 lt_ECHO = @lt_ECHO@
313325 mandir = @mandir@
314326 mkdir_p = @mkdir_p@
315327 oldincludedir = @oldincludedir@
335347 pkgconfigdir = $(libdir)/pkgconfig
336348 pkgconfig_DATA = vo-aacenc.pc
337349 lib_LTLIBRARIES = libvo-aacenc.la
338 libvo_aacenc_la_LDFLAGS = -version-info @VO_AACENC_VERSION@ -no-undefined
350 libvo_aacenc_la_LDFLAGS = -version-info @VO_AACENC_VERSION@ -no-undefined -export-symbols $(top_srcdir)/vo-aacenc.sym
339351 libvo_aacenc_la_SOURCES = $(VO_COMMON)/cmnMemory.c \
340352 aacenc/basic_op/basicop2.c aacenc/basic_op/oper_32b.c \
341353 $(ENC_SRC)/aac_rom.c $(ENC_SRC)/aacenc.c \
357369 @EXAMPLE_TRUE@aac_enc_LDADD = libvo-aacenc.la
358370 @EXAMPLE_TRUE@aac_enc_SOURCES = aac-enc.c wavreader.c
359371 EXTRA_DIST = $(top_srcdir)/NOTICE \
372 $(top_srcdir)/vo-aacenc.sym \
360373 $(top_srcdir)/aacenc/*.cpp $(top_srcdir)/aacenc/*.mk \
361 $(top_srcdir)/aacenc/SampleCode $(top_srcdir)/aacenc/Tools \
362 $(top_srcdir)/aacenc/build $(top_srcdir)/aacenc/doc \
374 $(top_srcdir)/aacenc/SampleCode $(top_srcdir)/aacenc/doc \
363375 $(top_srcdir)/aacenc/*.txt $(top_srcdir)/common/*.mk
364376
365377 all: config.h
367379
368380 .SUFFIXES:
369381 .SUFFIXES: .c .lo .o .obj .s
370 am--refresh:
382 am--refresh: Makefile
371383 @:
372384 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
373385 @for dep in $?; do \
403415 $(am__aclocal_m4_deps):
404416
405417 config.h: stamp-h1
406 @if test ! -f $@; then \
407 rm -f stamp-h1; \
408 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
409 else :; fi
418 @if test ! -f $@; then rm -f stamp-h1; else :; fi
419 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
410420
411421 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
412422 @rm -f stamp-h1
451461 echo "rm -f \"$${dir}/so_locations\""; \
452462 rm -f "$${dir}/so_locations"; \
453463 done
454 libvo-aacenc.la: $(libvo_aacenc_la_OBJECTS) $(libvo_aacenc_la_DEPENDENCIES)
464 libvo-aacenc.la: $(libvo_aacenc_la_OBJECTS) $(libvo_aacenc_la_DEPENDENCIES) $(EXTRA_libvo_aacenc_la_DEPENDENCIES)
455465 $(AM_V_CCLD)$(libvo_aacenc_la_LINK) -rpath $(libdir) $(libvo_aacenc_la_OBJECTS) $(libvo_aacenc_la_LIBADD) $(LIBS)
456466 install-binPROGRAMS: $(bin_PROGRAMS)
457467 @$(NORMAL_INSTALL)
496506 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
497507 echo " rm -f" $$list; \
498508 rm -f $$list
499 aac-enc$(EXEEXT): $(aac_enc_OBJECTS) $(aac_enc_DEPENDENCIES)
509 aac-enc$(EXEEXT): $(aac_enc_OBJECTS) $(aac_enc_DEPENDENCIES) $(EXTRA_aac_enc_DEPENDENCIES)
500510 @rm -f aac-enc$(EXEEXT)
501511 $(AM_V_CCLD)$(LINK) $(aac_enc_OBJECTS) $(aac_enc_LDADD) $(LIBS)
502512
541551 .c.o:
542552 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
543553 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
544 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
545 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
546 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
554 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
555 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
556 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
548557
549558 .c.obj:
550559 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
551560 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
552 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
553 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
554 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
555 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
561 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
562 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
563 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
556564
557565 .c.lo:
558566 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
559567 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
560 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
561 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
562 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
563 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
568 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
569 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
570 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
564571
565572 cmnMemory.lo: $(VO_COMMON)/cmnMemory.c
566573 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cmnMemory.lo -MD -MP -MF $(DEPDIR)/cmnMemory.Tpo -c -o cmnMemory.lo `test -f '$(VO_COMMON)/cmnMemory.c' || echo '$(srcdir)/'`$(VO_COMMON)/cmnMemory.c
567574 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cmnMemory.Tpo $(DEPDIR)/cmnMemory.Plo
568 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
569 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(VO_COMMON)/cmnMemory.c' object='cmnMemory.lo' libtool=yes @AMDEPBACKSLASH@
570 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
571 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmnMemory.lo `test -f '$(VO_COMMON)/cmnMemory.c' || echo '$(srcdir)/'`$(VO_COMMON)/cmnMemory.c
575 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(VO_COMMON)/cmnMemory.c' object='cmnMemory.lo' libtool=yes @AMDEPBACKSLASH@
576 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
577 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cmnMemory.lo `test -f '$(VO_COMMON)/cmnMemory.c' || echo '$(srcdir)/'`$(VO_COMMON)/cmnMemory.c
572578
573579 basicop2.lo: aacenc/basic_op/basicop2.c
574580 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT basicop2.lo -MD -MP -MF $(DEPDIR)/basicop2.Tpo -c -o basicop2.lo `test -f 'aacenc/basic_op/basicop2.c' || echo '$(srcdir)/'`aacenc/basic_op/basicop2.c
575581 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/basicop2.Tpo $(DEPDIR)/basicop2.Plo
576 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
577 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='aacenc/basic_op/basicop2.c' object='basicop2.lo' libtool=yes @AMDEPBACKSLASH@
578 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
579 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o basicop2.lo `test -f 'aacenc/basic_op/basicop2.c' || echo '$(srcdir)/'`aacenc/basic_op/basicop2.c
582 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='aacenc/basic_op/basicop2.c' object='basicop2.lo' libtool=yes @AMDEPBACKSLASH@
583 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
584 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o basicop2.lo `test -f 'aacenc/basic_op/basicop2.c' || echo '$(srcdir)/'`aacenc/basic_op/basicop2.c
580585
581586 oper_32b.lo: aacenc/basic_op/oper_32b.c
582587 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT oper_32b.lo -MD -MP -MF $(DEPDIR)/oper_32b.Tpo -c -o oper_32b.lo `test -f 'aacenc/basic_op/oper_32b.c' || echo '$(srcdir)/'`aacenc/basic_op/oper_32b.c
583588 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/oper_32b.Tpo $(DEPDIR)/oper_32b.Plo
584 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
585 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='aacenc/basic_op/oper_32b.c' object='oper_32b.lo' libtool=yes @AMDEPBACKSLASH@
586 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
587 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o oper_32b.lo `test -f 'aacenc/basic_op/oper_32b.c' || echo '$(srcdir)/'`aacenc/basic_op/oper_32b.c
589 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='aacenc/basic_op/oper_32b.c' object='oper_32b.lo' libtool=yes @AMDEPBACKSLASH@
590 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
591 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o oper_32b.lo `test -f 'aacenc/basic_op/oper_32b.c' || echo '$(srcdir)/'`aacenc/basic_op/oper_32b.c
588592
589593 aac_rom.lo: $(ENC_SRC)/aac_rom.c
590594 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT aac_rom.lo -MD -MP -MF $(DEPDIR)/aac_rom.Tpo -c -o aac_rom.lo `test -f '$(ENC_SRC)/aac_rom.c' || echo '$(srcdir)/'`$(ENC_SRC)/aac_rom.c
591595 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/aac_rom.Tpo $(DEPDIR)/aac_rom.Plo
592 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
593 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/aac_rom.c' object='aac_rom.lo' libtool=yes @AMDEPBACKSLASH@
594 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
595 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o aac_rom.lo `test -f '$(ENC_SRC)/aac_rom.c' || echo '$(srcdir)/'`$(ENC_SRC)/aac_rom.c
596 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/aac_rom.c' object='aac_rom.lo' libtool=yes @AMDEPBACKSLASH@
597 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
598 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o aac_rom.lo `test -f '$(ENC_SRC)/aac_rom.c' || echo '$(srcdir)/'`$(ENC_SRC)/aac_rom.c
596599
597600 aacenc.lo: $(ENC_SRC)/aacenc.c
598601 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT aacenc.lo -MD -MP -MF $(DEPDIR)/aacenc.Tpo -c -o aacenc.lo `test -f '$(ENC_SRC)/aacenc.c' || echo '$(srcdir)/'`$(ENC_SRC)/aacenc.c
599602 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/aacenc.Tpo $(DEPDIR)/aacenc.Plo
600 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
601 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/aacenc.c' object='aacenc.lo' libtool=yes @AMDEPBACKSLASH@
602 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
603 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o aacenc.lo `test -f '$(ENC_SRC)/aacenc.c' || echo '$(srcdir)/'`$(ENC_SRC)/aacenc.c
603 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/aacenc.c' object='aacenc.lo' libtool=yes @AMDEPBACKSLASH@
604 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
605 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o aacenc.lo `test -f '$(ENC_SRC)/aacenc.c' || echo '$(srcdir)/'`$(ENC_SRC)/aacenc.c
604606
605607 aacenc_core.lo: $(ENC_SRC)/aacenc_core.c
606608 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT aacenc_core.lo -MD -MP -MF $(DEPDIR)/aacenc_core.Tpo -c -o aacenc_core.lo `test -f '$(ENC_SRC)/aacenc_core.c' || echo '$(srcdir)/'`$(ENC_SRC)/aacenc_core.c
607609 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/aacenc_core.Tpo $(DEPDIR)/aacenc_core.Plo
608 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
609 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/aacenc_core.c' object='aacenc_core.lo' libtool=yes @AMDEPBACKSLASH@
610 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
611 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o aacenc_core.lo `test -f '$(ENC_SRC)/aacenc_core.c' || echo '$(srcdir)/'`$(ENC_SRC)/aacenc_core.c
610 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/aacenc_core.c' object='aacenc_core.lo' libtool=yes @AMDEPBACKSLASH@
611 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
612 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o aacenc_core.lo `test -f '$(ENC_SRC)/aacenc_core.c' || echo '$(srcdir)/'`$(ENC_SRC)/aacenc_core.c
612613
613614 adj_thr.lo: $(ENC_SRC)/adj_thr.c
614615 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT adj_thr.lo -MD -MP -MF $(DEPDIR)/adj_thr.Tpo -c -o adj_thr.lo `test -f '$(ENC_SRC)/adj_thr.c' || echo '$(srcdir)/'`$(ENC_SRC)/adj_thr.c
615616 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/adj_thr.Tpo $(DEPDIR)/adj_thr.Plo
616 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
617 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/adj_thr.c' object='adj_thr.lo' libtool=yes @AMDEPBACKSLASH@
618 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
619 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o adj_thr.lo `test -f '$(ENC_SRC)/adj_thr.c' || echo '$(srcdir)/'`$(ENC_SRC)/adj_thr.c
617 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/adj_thr.c' object='adj_thr.lo' libtool=yes @AMDEPBACKSLASH@
618 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
619 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o adj_thr.lo `test -f '$(ENC_SRC)/adj_thr.c' || echo '$(srcdir)/'`$(ENC_SRC)/adj_thr.c
620620
621621 band_nrg.lo: $(ENC_SRC)/band_nrg.c
622622 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT band_nrg.lo -MD -MP -MF $(DEPDIR)/band_nrg.Tpo -c -o band_nrg.lo `test -f '$(ENC_SRC)/band_nrg.c' || echo '$(srcdir)/'`$(ENC_SRC)/band_nrg.c
623623 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/band_nrg.Tpo $(DEPDIR)/band_nrg.Plo
624 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
625 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/band_nrg.c' object='band_nrg.lo' libtool=yes @AMDEPBACKSLASH@
626 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
627 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o band_nrg.lo `test -f '$(ENC_SRC)/band_nrg.c' || echo '$(srcdir)/'`$(ENC_SRC)/band_nrg.c
624 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/band_nrg.c' object='band_nrg.lo' libtool=yes @AMDEPBACKSLASH@
625 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
626 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o band_nrg.lo `test -f '$(ENC_SRC)/band_nrg.c' || echo '$(srcdir)/'`$(ENC_SRC)/band_nrg.c
628627
629628 bit_cnt.lo: $(ENC_SRC)/bit_cnt.c
630629 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bit_cnt.lo -MD -MP -MF $(DEPDIR)/bit_cnt.Tpo -c -o bit_cnt.lo `test -f '$(ENC_SRC)/bit_cnt.c' || echo '$(srcdir)/'`$(ENC_SRC)/bit_cnt.c
631630 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bit_cnt.Tpo $(DEPDIR)/bit_cnt.Plo
632 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
633 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/bit_cnt.c' object='bit_cnt.lo' libtool=yes @AMDEPBACKSLASH@
634 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
635 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bit_cnt.lo `test -f '$(ENC_SRC)/bit_cnt.c' || echo '$(srcdir)/'`$(ENC_SRC)/bit_cnt.c
631 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/bit_cnt.c' object='bit_cnt.lo' libtool=yes @AMDEPBACKSLASH@
632 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
633 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bit_cnt.lo `test -f '$(ENC_SRC)/bit_cnt.c' || echo '$(srcdir)/'`$(ENC_SRC)/bit_cnt.c
636634
637635 bitbuffer.lo: $(ENC_SRC)/bitbuffer.c
638636 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bitbuffer.lo -MD -MP -MF $(DEPDIR)/bitbuffer.Tpo -c -o bitbuffer.lo `test -f '$(ENC_SRC)/bitbuffer.c' || echo '$(srcdir)/'`$(ENC_SRC)/bitbuffer.c
639637 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bitbuffer.Tpo $(DEPDIR)/bitbuffer.Plo
640 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
641 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/bitbuffer.c' object='bitbuffer.lo' libtool=yes @AMDEPBACKSLASH@
642 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
643 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bitbuffer.lo `test -f '$(ENC_SRC)/bitbuffer.c' || echo '$(srcdir)/'`$(ENC_SRC)/bitbuffer.c
638 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/bitbuffer.c' object='bitbuffer.lo' libtool=yes @AMDEPBACKSLASH@
639 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
640 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bitbuffer.lo `test -f '$(ENC_SRC)/bitbuffer.c' || echo '$(srcdir)/'`$(ENC_SRC)/bitbuffer.c
644641
645642 bitenc.lo: $(ENC_SRC)/bitenc.c
646643 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bitenc.lo -MD -MP -MF $(DEPDIR)/bitenc.Tpo -c -o bitenc.lo `test -f '$(ENC_SRC)/bitenc.c' || echo '$(srcdir)/'`$(ENC_SRC)/bitenc.c
647644 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bitenc.Tpo $(DEPDIR)/bitenc.Plo
648 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
649 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/bitenc.c' object='bitenc.lo' libtool=yes @AMDEPBACKSLASH@
650 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
651 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bitenc.lo `test -f '$(ENC_SRC)/bitenc.c' || echo '$(srcdir)/'`$(ENC_SRC)/bitenc.c
645 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/bitenc.c' object='bitenc.lo' libtool=yes @AMDEPBACKSLASH@
646 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
647 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bitenc.lo `test -f '$(ENC_SRC)/bitenc.c' || echo '$(srcdir)/'`$(ENC_SRC)/bitenc.c
652648
653649 block_switch.lo: $(ENC_SRC)/block_switch.c
654650 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT block_switch.lo -MD -MP -MF $(DEPDIR)/block_switch.Tpo -c -o block_switch.lo `test -f '$(ENC_SRC)/block_switch.c' || echo '$(srcdir)/'`$(ENC_SRC)/block_switch.c
655651 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/block_switch.Tpo $(DEPDIR)/block_switch.Plo
656 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
657 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/block_switch.c' object='block_switch.lo' libtool=yes @AMDEPBACKSLASH@
658 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
659 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o block_switch.lo `test -f '$(ENC_SRC)/block_switch.c' || echo '$(srcdir)/'`$(ENC_SRC)/block_switch.c
652 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/block_switch.c' object='block_switch.lo' libtool=yes @AMDEPBACKSLASH@
653 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
654 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o block_switch.lo `test -f '$(ENC_SRC)/block_switch.c' || echo '$(srcdir)/'`$(ENC_SRC)/block_switch.c
660655
661656 channel_map.lo: $(ENC_SRC)/channel_map.c
662657 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT channel_map.lo -MD -MP -MF $(DEPDIR)/channel_map.Tpo -c -o channel_map.lo `test -f '$(ENC_SRC)/channel_map.c' || echo '$(srcdir)/'`$(ENC_SRC)/channel_map.c
663658 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/channel_map.Tpo $(DEPDIR)/channel_map.Plo
664 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
665 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/channel_map.c' object='channel_map.lo' libtool=yes @AMDEPBACKSLASH@
666 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
667 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o channel_map.lo `test -f '$(ENC_SRC)/channel_map.c' || echo '$(srcdir)/'`$(ENC_SRC)/channel_map.c
659 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/channel_map.c' object='channel_map.lo' libtool=yes @AMDEPBACKSLASH@
660 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
661 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o channel_map.lo `test -f '$(ENC_SRC)/channel_map.c' || echo '$(srcdir)/'`$(ENC_SRC)/channel_map.c
668662
669663 dyn_bits.lo: $(ENC_SRC)/dyn_bits.c
670664 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dyn_bits.lo -MD -MP -MF $(DEPDIR)/dyn_bits.Tpo -c -o dyn_bits.lo `test -f '$(ENC_SRC)/dyn_bits.c' || echo '$(srcdir)/'`$(ENC_SRC)/dyn_bits.c
671665 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dyn_bits.Tpo $(DEPDIR)/dyn_bits.Plo
672 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
673 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/dyn_bits.c' object='dyn_bits.lo' libtool=yes @AMDEPBACKSLASH@
674 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
675 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dyn_bits.lo `test -f '$(ENC_SRC)/dyn_bits.c' || echo '$(srcdir)/'`$(ENC_SRC)/dyn_bits.c
666 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/dyn_bits.c' object='dyn_bits.lo' libtool=yes @AMDEPBACKSLASH@
667 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
668 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dyn_bits.lo `test -f '$(ENC_SRC)/dyn_bits.c' || echo '$(srcdir)/'`$(ENC_SRC)/dyn_bits.c
676669
677670 grp_data.lo: $(ENC_SRC)/grp_data.c
678671 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT grp_data.lo -MD -MP -MF $(DEPDIR)/grp_data.Tpo -c -o grp_data.lo `test -f '$(ENC_SRC)/grp_data.c' || echo '$(srcdir)/'`$(ENC_SRC)/grp_data.c
679672 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grp_data.Tpo $(DEPDIR)/grp_data.Plo
680 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
681 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/grp_data.c' object='grp_data.lo' libtool=yes @AMDEPBACKSLASH@
682 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
683 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o grp_data.lo `test -f '$(ENC_SRC)/grp_data.c' || echo '$(srcdir)/'`$(ENC_SRC)/grp_data.c
673 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/grp_data.c' object='grp_data.lo' libtool=yes @AMDEPBACKSLASH@
674 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
675 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o grp_data.lo `test -f '$(ENC_SRC)/grp_data.c' || echo '$(srcdir)/'`$(ENC_SRC)/grp_data.c
684676
685677 interface.lo: $(ENC_SRC)/interface.c
686678 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT interface.lo -MD -MP -MF $(DEPDIR)/interface.Tpo -c -o interface.lo `test -f '$(ENC_SRC)/interface.c' || echo '$(srcdir)/'`$(ENC_SRC)/interface.c
687679 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/interface.Tpo $(DEPDIR)/interface.Plo
688 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
689 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/interface.c' object='interface.lo' libtool=yes @AMDEPBACKSLASH@
690 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
691 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o interface.lo `test -f '$(ENC_SRC)/interface.c' || echo '$(srcdir)/'`$(ENC_SRC)/interface.c
680 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/interface.c' object='interface.lo' libtool=yes @AMDEPBACKSLASH@
681 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
682 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o interface.lo `test -f '$(ENC_SRC)/interface.c' || echo '$(srcdir)/'`$(ENC_SRC)/interface.c
692683
693684 line_pe.lo: $(ENC_SRC)/line_pe.c
694685 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT line_pe.lo -MD -MP -MF $(DEPDIR)/line_pe.Tpo -c -o line_pe.lo `test -f '$(ENC_SRC)/line_pe.c' || echo '$(srcdir)/'`$(ENC_SRC)/line_pe.c
695686 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/line_pe.Tpo $(DEPDIR)/line_pe.Plo
696 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
697 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/line_pe.c' object='line_pe.lo' libtool=yes @AMDEPBACKSLASH@
698 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
699 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o line_pe.lo `test -f '$(ENC_SRC)/line_pe.c' || echo '$(srcdir)/'`$(ENC_SRC)/line_pe.c
687 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/line_pe.c' object='line_pe.lo' libtool=yes @AMDEPBACKSLASH@
688 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
689 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o line_pe.lo `test -f '$(ENC_SRC)/line_pe.c' || echo '$(srcdir)/'`$(ENC_SRC)/line_pe.c
700690
701691 memalign.lo: $(ENC_SRC)/memalign.c
702692 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT memalign.lo -MD -MP -MF $(DEPDIR)/memalign.Tpo -c -o memalign.lo `test -f '$(ENC_SRC)/memalign.c' || echo '$(srcdir)/'`$(ENC_SRC)/memalign.c
703693 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/memalign.Tpo $(DEPDIR)/memalign.Plo
704 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
705 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/memalign.c' object='memalign.lo' libtool=yes @AMDEPBACKSLASH@
706 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
707 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o memalign.lo `test -f '$(ENC_SRC)/memalign.c' || echo '$(srcdir)/'`$(ENC_SRC)/memalign.c
694 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/memalign.c' object='memalign.lo' libtool=yes @AMDEPBACKSLASH@
695 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
696 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o memalign.lo `test -f '$(ENC_SRC)/memalign.c' || echo '$(srcdir)/'`$(ENC_SRC)/memalign.c
708697
709698 ms_stereo.lo: $(ENC_SRC)/ms_stereo.c
710699 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ms_stereo.lo -MD -MP -MF $(DEPDIR)/ms_stereo.Tpo -c -o ms_stereo.lo `test -f '$(ENC_SRC)/ms_stereo.c' || echo '$(srcdir)/'`$(ENC_SRC)/ms_stereo.c
711700 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ms_stereo.Tpo $(DEPDIR)/ms_stereo.Plo
712 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
713 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/ms_stereo.c' object='ms_stereo.lo' libtool=yes @AMDEPBACKSLASH@
714 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
715 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ms_stereo.lo `test -f '$(ENC_SRC)/ms_stereo.c' || echo '$(srcdir)/'`$(ENC_SRC)/ms_stereo.c
701 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/ms_stereo.c' object='ms_stereo.lo' libtool=yes @AMDEPBACKSLASH@
702 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
703 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ms_stereo.lo `test -f '$(ENC_SRC)/ms_stereo.c' || echo '$(srcdir)/'`$(ENC_SRC)/ms_stereo.c
716704
717705 pre_echo_control.lo: $(ENC_SRC)/pre_echo_control.c
718706 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pre_echo_control.lo -MD -MP -MF $(DEPDIR)/pre_echo_control.Tpo -c -o pre_echo_control.lo `test -f '$(ENC_SRC)/pre_echo_control.c' || echo '$(srcdir)/'`$(ENC_SRC)/pre_echo_control.c
719707 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pre_echo_control.Tpo $(DEPDIR)/pre_echo_control.Plo
720 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
721 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/pre_echo_control.c' object='pre_echo_control.lo' libtool=yes @AMDEPBACKSLASH@
722 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
723 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pre_echo_control.lo `test -f '$(ENC_SRC)/pre_echo_control.c' || echo '$(srcdir)/'`$(ENC_SRC)/pre_echo_control.c
708 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/pre_echo_control.c' object='pre_echo_control.lo' libtool=yes @AMDEPBACKSLASH@
709 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
710 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pre_echo_control.lo `test -f '$(ENC_SRC)/pre_echo_control.c' || echo '$(srcdir)/'`$(ENC_SRC)/pre_echo_control.c
724711
725712 psy_configuration.lo: $(ENC_SRC)/psy_configuration.c
726713 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT psy_configuration.lo -MD -MP -MF $(DEPDIR)/psy_configuration.Tpo -c -o psy_configuration.lo `test -f '$(ENC_SRC)/psy_configuration.c' || echo '$(srcdir)/'`$(ENC_SRC)/psy_configuration.c
727714 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/psy_configuration.Tpo $(DEPDIR)/psy_configuration.Plo
728 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
729 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/psy_configuration.c' object='psy_configuration.lo' libtool=yes @AMDEPBACKSLASH@
730 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
731 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o psy_configuration.lo `test -f '$(ENC_SRC)/psy_configuration.c' || echo '$(srcdir)/'`$(ENC_SRC)/psy_configuration.c
715 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/psy_configuration.c' object='psy_configuration.lo' libtool=yes @AMDEPBACKSLASH@
716 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
717 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o psy_configuration.lo `test -f '$(ENC_SRC)/psy_configuration.c' || echo '$(srcdir)/'`$(ENC_SRC)/psy_configuration.c
732718
733719 psy_main.lo: $(ENC_SRC)/psy_main.c
734720 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT psy_main.lo -MD -MP -MF $(DEPDIR)/psy_main.Tpo -c -o psy_main.lo `test -f '$(ENC_SRC)/psy_main.c' || echo '$(srcdir)/'`$(ENC_SRC)/psy_main.c
735721 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/psy_main.Tpo $(DEPDIR)/psy_main.Plo
736 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
737 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/psy_main.c' object='psy_main.lo' libtool=yes @AMDEPBACKSLASH@
738 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
739 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o psy_main.lo `test -f '$(ENC_SRC)/psy_main.c' || echo '$(srcdir)/'`$(ENC_SRC)/psy_main.c
722 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/psy_main.c' object='psy_main.lo' libtool=yes @AMDEPBACKSLASH@
723 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
724 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o psy_main.lo `test -f '$(ENC_SRC)/psy_main.c' || echo '$(srcdir)/'`$(ENC_SRC)/psy_main.c
740725
741726 qc_main.lo: $(ENC_SRC)/qc_main.c
742727 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT qc_main.lo -MD -MP -MF $(DEPDIR)/qc_main.Tpo -c -o qc_main.lo `test -f '$(ENC_SRC)/qc_main.c' || echo '$(srcdir)/'`$(ENC_SRC)/qc_main.c
743728 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/qc_main.Tpo $(DEPDIR)/qc_main.Plo
744 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
745 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/qc_main.c' object='qc_main.lo' libtool=yes @AMDEPBACKSLASH@
746 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
747 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o qc_main.lo `test -f '$(ENC_SRC)/qc_main.c' || echo '$(srcdir)/'`$(ENC_SRC)/qc_main.c
729 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/qc_main.c' object='qc_main.lo' libtool=yes @AMDEPBACKSLASH@
730 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
731 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o qc_main.lo `test -f '$(ENC_SRC)/qc_main.c' || echo '$(srcdir)/'`$(ENC_SRC)/qc_main.c
748732
749733 quantize.lo: $(ENC_SRC)/quantize.c
750734 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT quantize.lo -MD -MP -MF $(DEPDIR)/quantize.Tpo -c -o quantize.lo `test -f '$(ENC_SRC)/quantize.c' || echo '$(srcdir)/'`$(ENC_SRC)/quantize.c
751735 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/quantize.Tpo $(DEPDIR)/quantize.Plo
752 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
753 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/quantize.c' object='quantize.lo' libtool=yes @AMDEPBACKSLASH@
754 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
755 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o quantize.lo `test -f '$(ENC_SRC)/quantize.c' || echo '$(srcdir)/'`$(ENC_SRC)/quantize.c
736 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/quantize.c' object='quantize.lo' libtool=yes @AMDEPBACKSLASH@
737 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
738 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o quantize.lo `test -f '$(ENC_SRC)/quantize.c' || echo '$(srcdir)/'`$(ENC_SRC)/quantize.c
756739
757740 sf_estim.lo: $(ENC_SRC)/sf_estim.c
758741 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sf_estim.lo -MD -MP -MF $(DEPDIR)/sf_estim.Tpo -c -o sf_estim.lo `test -f '$(ENC_SRC)/sf_estim.c' || echo '$(srcdir)/'`$(ENC_SRC)/sf_estim.c
759742 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sf_estim.Tpo $(DEPDIR)/sf_estim.Plo
760 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
761 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/sf_estim.c' object='sf_estim.lo' libtool=yes @AMDEPBACKSLASH@
762 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
763 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sf_estim.lo `test -f '$(ENC_SRC)/sf_estim.c' || echo '$(srcdir)/'`$(ENC_SRC)/sf_estim.c
743 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/sf_estim.c' object='sf_estim.lo' libtool=yes @AMDEPBACKSLASH@
744 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
745 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sf_estim.lo `test -f '$(ENC_SRC)/sf_estim.c' || echo '$(srcdir)/'`$(ENC_SRC)/sf_estim.c
764746
765747 spreading.lo: $(ENC_SRC)/spreading.c
766748 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT spreading.lo -MD -MP -MF $(DEPDIR)/spreading.Tpo -c -o spreading.lo `test -f '$(ENC_SRC)/spreading.c' || echo '$(srcdir)/'`$(ENC_SRC)/spreading.c
767749 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/spreading.Tpo $(DEPDIR)/spreading.Plo
768 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
769 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/spreading.c' object='spreading.lo' libtool=yes @AMDEPBACKSLASH@
770 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
771 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o spreading.lo `test -f '$(ENC_SRC)/spreading.c' || echo '$(srcdir)/'`$(ENC_SRC)/spreading.c
750 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/spreading.c' object='spreading.lo' libtool=yes @AMDEPBACKSLASH@
751 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
752 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o spreading.lo `test -f '$(ENC_SRC)/spreading.c' || echo '$(srcdir)/'`$(ENC_SRC)/spreading.c
772753
773754 stat_bits.lo: $(ENC_SRC)/stat_bits.c
774755 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT stat_bits.lo -MD -MP -MF $(DEPDIR)/stat_bits.Tpo -c -o stat_bits.lo `test -f '$(ENC_SRC)/stat_bits.c' || echo '$(srcdir)/'`$(ENC_SRC)/stat_bits.c
775756 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/stat_bits.Tpo $(DEPDIR)/stat_bits.Plo
776 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
777 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/stat_bits.c' object='stat_bits.lo' libtool=yes @AMDEPBACKSLASH@
778 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
779 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o stat_bits.lo `test -f '$(ENC_SRC)/stat_bits.c' || echo '$(srcdir)/'`$(ENC_SRC)/stat_bits.c
757 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/stat_bits.c' object='stat_bits.lo' libtool=yes @AMDEPBACKSLASH@
758 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
759 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o stat_bits.lo `test -f '$(ENC_SRC)/stat_bits.c' || echo '$(srcdir)/'`$(ENC_SRC)/stat_bits.c
780760
781761 tns.lo: $(ENC_SRC)/tns.c
782762 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tns.lo -MD -MP -MF $(DEPDIR)/tns.Tpo -c -o tns.lo `test -f '$(ENC_SRC)/tns.c' || echo '$(srcdir)/'`$(ENC_SRC)/tns.c
783763 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tns.Tpo $(DEPDIR)/tns.Plo
784 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
785 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/tns.c' object='tns.lo' libtool=yes @AMDEPBACKSLASH@
786 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
787 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tns.lo `test -f '$(ENC_SRC)/tns.c' || echo '$(srcdir)/'`$(ENC_SRC)/tns.c
764 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/tns.c' object='tns.lo' libtool=yes @AMDEPBACKSLASH@
765 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
766 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tns.lo `test -f '$(ENC_SRC)/tns.c' || echo '$(srcdir)/'`$(ENC_SRC)/tns.c
788767
789768 transform.lo: $(ENC_SRC)/transform.c
790769 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT transform.lo -MD -MP -MF $(DEPDIR)/transform.Tpo -c -o transform.lo `test -f '$(ENC_SRC)/transform.c' || echo '$(srcdir)/'`$(ENC_SRC)/transform.c
791770 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/transform.Tpo $(DEPDIR)/transform.Plo
792 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
793 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(ENC_SRC)/transform.c' object='transform.lo' libtool=yes @AMDEPBACKSLASH@
794 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
795 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o transform.lo `test -f '$(ENC_SRC)/transform.c' || echo '$(srcdir)/'`$(ENC_SRC)/transform.c
771 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(ENC_SRC)/transform.c' object='transform.lo' libtool=yes @AMDEPBACKSLASH@
772 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
773 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o transform.lo `test -f '$(ENC_SRC)/transform.c' || echo '$(srcdir)/'`$(ENC_SRC)/transform.c
796774
797775 .s.o:
798 $(AM_V_CCAS) @AM_BACKSLASH@
799 $(CCASCOMPILE) -c -o $@ $<
776 $(AM_V_CCAS)$(CCASCOMPILE) -c -o $@ $<
800777
801778 .s.obj:
802 $(AM_V_CCAS) @AM_BACKSLASH@
803 $(CCASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
779 $(AM_V_CCAS)$(CCASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
804780
805781 .s.lo:
806 $(AM_V_CCAS) @AM_BACKSLASH@
807 $(LTCCASCOMPILE) -c -o $@ $<
782 $(AM_V_CCAS)$(LTCCASCOMPILE) -c -o $@ $<
808783
809784 AutoCorrelation_v5.lo: $(ENC_SRC)/asm/ARMV5E/AutoCorrelation_v5.s
810 $(AM_V_CCAS) @AM_BACKSLASH@
811 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o AutoCorrelation_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/AutoCorrelation_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/AutoCorrelation_v5.s
785 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o AutoCorrelation_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/AutoCorrelation_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/AutoCorrelation_v5.s
812786
813787 CalcWindowEnergy_v5.lo: $(ENC_SRC)/asm/ARMV5E/CalcWindowEnergy_v5.s
814 $(AM_V_CCAS) @AM_BACKSLASH@
815 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o CalcWindowEnergy_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/CalcWindowEnergy_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/CalcWindowEnergy_v5.s
788 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o CalcWindowEnergy_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/CalcWindowEnergy_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/CalcWindowEnergy_v5.s
816789
817790 band_nrg_v5.lo: $(ENC_SRC)/asm/ARMV5E/band_nrg_v5.s
818 $(AM_V_CCAS) @AM_BACKSLASH@
819 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o band_nrg_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/band_nrg_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/band_nrg_v5.s
791 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o band_nrg_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/band_nrg_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/band_nrg_v5.s
820792
821793 PrePostMDCT_v7.lo: $(ENC_SRC)/asm/ARMV7/PrePostMDCT_v7.s
822 $(AM_V_CCAS) @AM_BACKSLASH@
823 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o PrePostMDCT_v7.lo `test -f '$(ENC_SRC)/asm/ARMV7/PrePostMDCT_v7.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV7/PrePostMDCT_v7.s
794 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o PrePostMDCT_v7.lo `test -f '$(ENC_SRC)/asm/ARMV7/PrePostMDCT_v7.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV7/PrePostMDCT_v7.s
824795
825796 R4R8First_v7.lo: $(ENC_SRC)/asm/ARMV7/R4R8First_v7.s
826 $(AM_V_CCAS) @AM_BACKSLASH@
827 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o R4R8First_v7.lo `test -f '$(ENC_SRC)/asm/ARMV7/R4R8First_v7.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV7/R4R8First_v7.s
797 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o R4R8First_v7.lo `test -f '$(ENC_SRC)/asm/ARMV7/R4R8First_v7.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV7/R4R8First_v7.s
828798
829799 Radix4FFT_v7.lo: $(ENC_SRC)/asm/ARMV7/Radix4FFT_v7.s
830 $(AM_V_CCAS) @AM_BACKSLASH@
831 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o Radix4FFT_v7.lo `test -f '$(ENC_SRC)/asm/ARMV7/Radix4FFT_v7.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV7/Radix4FFT_v7.s
800 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o Radix4FFT_v7.lo `test -f '$(ENC_SRC)/asm/ARMV7/Radix4FFT_v7.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV7/Radix4FFT_v7.s
832801
833802 PrePostMDCT_v5.lo: $(ENC_SRC)/asm/ARMV5E/PrePostMDCT_v5.s
834 $(AM_V_CCAS) @AM_BACKSLASH@
835 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o PrePostMDCT_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/PrePostMDCT_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/PrePostMDCT_v5.s
803 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o PrePostMDCT_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/PrePostMDCT_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/PrePostMDCT_v5.s
836804
837805 R4R8First_v5.lo: $(ENC_SRC)/asm/ARMV5E/R4R8First_v5.s
838 $(AM_V_CCAS) @AM_BACKSLASH@
839 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o R4R8First_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/R4R8First_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/R4R8First_v5.s
806 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o R4R8First_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/R4R8First_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/R4R8First_v5.s
840807
841808 Radix4FFT_v5.lo: $(ENC_SRC)/asm/ARMV5E/Radix4FFT_v5.s
842 $(AM_V_CCAS) @AM_BACKSLASH@
843 $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o Radix4FFT_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/Radix4FFT_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/Radix4FFT_v5.s
809 $(AM_V_CCAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o Radix4FFT_v5.lo `test -f '$(ENC_SRC)/asm/ARMV5E/Radix4FFT_v5.s' || echo '$(srcdir)/'`$(ENC_SRC)/asm/ARMV5E/Radix4FFT_v5.s
844810
845811 mostlyclean-libtool:
846812 -rm -f *.lo
867833 @$(NORMAL_UNINSTALL)
868834 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
869835 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
870 test -n "$$files" || exit 0; \
871 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
872 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
836 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
873837 install-aacencincludeHEADERS: $(aacencinclude_HEADERS)
874838 @$(NORMAL_INSTALL)
875839 test -z "$(aacencincludedir)" || $(MKDIR_P) "$(DESTDIR)$(aacencincludedir)"
887851 @$(NORMAL_UNINSTALL)
888852 @list='$(aacencinclude_HEADERS)'; test -n "$(aacencincludedir)" || list=; \
889853 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
890 test -n "$$files" || exit 0; \
891 echo " ( cd '$(DESTDIR)$(aacencincludedir)' && rm -f" $$files ")"; \
892 cd "$(DESTDIR)$(aacencincludedir)" && rm -f $$files
854 dir='$(DESTDIR)$(aacencincludedir)'; $(am__uninstall_files_from_dir)
893855
894856 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
895857 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
987949 $(am__remove_distdir)
988950
989951 dist-bzip2: distdir
990 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
952 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
953 $(am__remove_distdir)
954
955 dist-lzip: distdir
956 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
991957 $(am__remove_distdir)
992958
993959 dist-lzma: distdir
995961 $(am__remove_distdir)
996962
997963 dist-xz: distdir
998 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
964 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
999965 $(am__remove_distdir)
1000966
1001967 dist-tarZ: distdir
1026992 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1027993 *.tar.lzma*) \
1028994 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
995 *.tar.lz*) \
996 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
1029997 *.tar.xz*) \
1030998 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1031999 *.tar.Z*) \
10451013 && am__cwd=`pwd` \
10461014 && $(am__cd) $(distdir)/_build \
10471015 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1016 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
10481017 $(DISTCHECK_CONFIGURE_FLAGS) \
10491018 && $(MAKE) $(AM_MAKEFLAGS) \
10501019 && $(MAKE) $(AM_MAKEFLAGS) dvi \
10731042 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
10741043 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
10751044 distuninstallcheck:
1076 @$(am__cd) '$(distuninstallcheck_dir)' \
1077 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1045 @test -n '$(distuninstallcheck_dir)' || { \
1046 echo 'ERROR: trying to run $@ with an empty' \
1047 '$$(distuninstallcheck_dir)' >&2; \
1048 exit 1; \
1049 }; \
1050 $(am__cd) '$(distuninstallcheck_dir)' || { \
1051 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
1052 exit 1; \
1053 }; \
1054 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
10781055 || { echo "ERROR: files left after uninstall:" ; \
10791056 if test -n "$(DESTDIR)"; then \
10801057 echo " (check DESTDIR support)"; \
11101087
11111088 installcheck: installcheck-am
11121089 install-strip:
1113 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1114 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1115 `test -z '$(STRIP)' || \
1116 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1090 if test -z '$(STRIP)'; then \
1091 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1092 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1093 install; \
1094 else \
1095 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1096 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1097 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1098 fi
11171099 mostlyclean-generic:
11181100
11191101 clean-generic:
12051187 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
12061188 clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
12071189 clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \
1208 dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
1209 distclean distclean-compile distclean-generic distclean-hdr \
1210 distclean-libtool distclean-tags distcleancheck distdir \
1211 distuninstallcheck dvi dvi-am html html-am info info-am \
1212 install install-aacencincludeHEADERS install-am \
1190 dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
1191 distcheck distclean distclean-compile distclean-generic \
1192 distclean-hdr distclean-libtool distclean-tags distcleancheck \
1193 distdir distuninstallcheck dvi dvi-am html html-am info \
1194 info-am install install-aacencincludeHEADERS install-am \
12131195 install-binPROGRAMS install-data install-data-am install-dvi \
12141196 install-dvi-am install-exec install-exec-am install-html \
12151197 install-html-am install-info install-info-am \
3535 mStarted(false),
3636 mBufferGroup(NULL),
3737 mInputBuffer(NULL),
38 mInputFrame(NULL),
3839 mEncoderHandle(NULL),
3940 mApiHandle(NULL),
4041 mMemOperator(NULL) {
4445 CHECK(mApiHandle == NULL && mEncoderHandle == NULL);
4546 CHECK(mMeta->findInt32(kKeySampleRate, &mSampleRate));
4647 CHECK(mMeta->findInt32(kKeyChannelCount, &mChannels));
48 CHECK(mChannels <= 2 && mChannels >= 1);
4749 CHECK(mMeta->findInt32(kKeyBitRate, &mBitRate));
4850
4951 mApiHandle = new VO_AUDIO_CODECAPI;
5052 CHECK(mApiHandle);
5153
5254 if (VO_ERR_NONE != voGetAACEncAPI(mApiHandle)) {
53 LOGE("Failed to get api handle");
55 ALOGE("Failed to get api handle");
5456 return UNKNOWN_ERROR;
5557 }
5658
6769 userData.memflag = VO_IMF_USERMEMOPERATOR;
6870 userData.memData = (VO_PTR) mMemOperator;
6971 if (VO_ERR_NONE != mApiHandle->Init(&mEncoderHandle, VO_AUDIO_CodingAAC, &userData)) {
70 LOGE("Failed to init AAC encoder");
72 ALOGE("Failed to init AAC encoder");
7173 return UNKNOWN_ERROR;
7274 }
7375 if (OK != setAudioSpecificConfigData()) {
74 LOGE("Failed to configure AAC encoder");
76 ALOGE("Failed to configure AAC encoder");
7577 return UNKNOWN_ERROR;
7678 }
7779
8183 params.sampleRate = mSampleRate;
8284 params.bitRate = mBitRate;
8385 params.nChannels = mChannels;
84 params.adtsUsed = 0; // For MP4 file, don't use adts format$
86 params.adtsUsed = 0; // We add adts header in the file writer if needed.
8587 if (VO_ERR_NONE != mApiHandle->SetParam(mEncoderHandle, VO_PID_AAC_ENCPARAM, &params)) {
86 LOGE("Failed to set AAC encoder parameters");
88 ALOGE("Failed to set AAC encoder parameters");
8789 return UNKNOWN_ERROR;
8890 }
8991
103105 }
104106 }
105107
106 LOGE("Sampling rate %d bps is not supported", sampleRate);
108 ALOGE("Sampling rate %d bps is not supported", sampleRate);
107109 return UNKNOWN_ERROR;
108110 }
109111
110112 status_t AACEncoder::setAudioSpecificConfigData() {
111 LOGV("setAudioSpecificConfigData: %d hz, %d bps, and %d channels",
113 ALOGV("setAudioSpecificConfigData: %d hz, %d bps, and %d channels",
112114 mSampleRate, mBitRate, mChannels);
113115
114116 int32_t index;
115117 CHECK_EQ(OK, getSampleRateTableIndex(mSampleRate, index));
116118 if (mChannels > 2 || mChannels <= 0) {
117 LOGE("Unsupported number of channels(%d)", mChannels);
119 ALOGE("Unsupported number of channels(%d)", mChannels);
118120 return UNKNOWN_ERROR;
119121 }
120122
132134
133135 status_t AACEncoder::start(MetaData *params) {
134136 if (mStarted) {
135 LOGW("Call start() when encoder already started");
137 ALOGW("Call start() when encoder already started");
136138 return OK;
137139 }
138140
144146 mNumInputSamples = 0;
145147 mAnchorTimeUs = 0;
146148 mFrameCount = 0;
147 mSource->start(params);
149
150 mInputFrame = new int16_t[mChannels * kNumSamplesPerFrame];
151 CHECK(mInputFrame != NULL);
152
153 status_t err = mSource->start(params);
154 if (err != OK) {
155 ALOGE("AudioSource is not available");
156 return err;
157 }
148158
149159 mStarted = true;
150160
152162 }
153163
154164 status_t AACEncoder::stop() {
155 if (!mStarted) {
156 LOGW("Call stop() when encoder has not started");
157 return OK;
158 }
159
160165 if (mInputBuffer) {
161166 mInputBuffer->release();
162167 mInputBuffer = NULL;
165170 delete mBufferGroup;
166171 mBufferGroup = NULL;
167172
173 if (mInputFrame) {
174 delete[] mInputFrame;
175 mInputFrame = NULL;
176 }
177
178 if (!mStarted) {
179 ALOGW("Call stop() when encoder has not started");
180 return ERROR_END_OF_STREAM;
181 }
182
168183 mSource->stop();
169
170184 if (mEncoderHandle) {
171185 CHECK_EQ(VO_ERR_NONE, mApiHandle->Uninit(mEncoderHandle));
172186 mEncoderHandle = NULL;
173187 }
174188 delete mApiHandle;
175189 mApiHandle = NULL;
190
191 delete mMemOperator;
192 mMemOperator = NULL;
176193
177194 mStarted = false;
178195
221238 buffer->meta_data()->setInt32(kKeyIsCodecConfig, false);
222239 }
223240
224 while (mNumInputSamples < kNumSamplesPerFrame) {
241 const int32_t nSamples = mChannels * kNumSamplesPerFrame;
242 while (mNumInputSamples < nSamples) {
225243 if (mInputBuffer == NULL) {
226244 if (mSource->read(&mInputBuffer, options) != OK) {
227245 if (mNumInputSamples == 0) {
230248 }
231249 memset(&mInputFrame[mNumInputSamples],
232250 0,
233 sizeof(int16_t) * (kNumSamplesPerFrame - mNumInputSamples));
251 sizeof(int16_t) * (nSamples - mNumInputSamples));
234252 mNumInputSamples = 0;
235253 break;
236254 }
249267 } else {
250268 readFromSource = false;
251269 }
252 size_t copy =
253 (kNumSamplesPerFrame - mNumInputSamples) * sizeof(int16_t);
270 size_t copy = (nSamples - mNumInputSamples) * sizeof(int16_t);
254271
255272 if (copy > mInputBuffer->range_length()) {
256273 copy = mInputBuffer->range_length();
270287 mInputBuffer = NULL;
271288 }
272289 mNumInputSamples += copy / sizeof(int16_t);
273 if (mNumInputSamples >= kNumSamplesPerFrame) {
274 mNumInputSamples %= kNumSamplesPerFrame;
290 if (mNumInputSamples >= nSamples) {
291 mNumInputSamples %= nSamples;
275292 break;
276293 }
277294 }
279296 VO_CODECBUFFER inputData;
280297 memset(&inputData, 0, sizeof(inputData));
281298 inputData.Buffer = (unsigned char*) mInputFrame;
282 inputData.Length = kNumSamplesPerFrame * sizeof(int16_t);
299 inputData.Length = nSamples * sizeof(int16_t);
283300 CHECK(VO_ERR_NONE == mApiHandle->SetInputData(mEncoderHandle,&inputData));
284301
285302 VO_CODECBUFFER outputData;
288305 memset(&outputInfo, 0, sizeof(outputInfo));
289306
290307 VO_U32 ret = VO_ERR_NONE;
291 outputData.Buffer = outPtr;
292 outputData.Length = buffer->size();
293 ret = mApiHandle->GetOutputData(mEncoderHandle, &outputData, &outputInfo);
294 CHECK(ret == VO_ERR_NONE || ret == VO_ERR_INPUT_BUFFER_SMALL);
295 CHECK(outputData.Length != 0);
296 buffer->set_range(0, outputData.Length);
308 size_t nOutputBytes = 0;
309 do {
310 outputData.Buffer = outPtr;
311 outputData.Length = buffer->size() - nOutputBytes;
312 ret = mApiHandle->GetOutputData(mEncoderHandle, &outputData, &outputInfo);
313 if (ret == VO_ERR_NONE) {
314 outPtr += outputData.Length;
315 nOutputBytes += outputData.Length;
316 }
317 } while (ret != VO_ERR_INPUT_BUFFER_SMALL);
318 buffer->set_range(0, nOutputBytes);
297319
298320 int64_t mediaTimeUs =
299321 ((mFrameCount - 1) * 1000000LL * kNumSamplesPerFrame) / mSampleRate;
322
300323 buffer->meta_data()->setInt64(kKeyTime, mAnchorTimeUs + mediaTimeUs);
301324 if (readFromSource && wallClockTimeUs != -1) {
302325 buffer->meta_data()->setInt64(kKeyDriftTime, mediaTimeUs - wallClockTimeUs);
11 include $(CLEAR_VARS)
22 include frameworks/base/media/libstagefright/codecs/common/Config.mk
33
4 LOCAL_PRELINK_MODULE := false
4
55
66 LOCAL_SRC_FILES := basic_op/basicop2.c basic_op/oper_32b.c
77
187187 useData.memflag = VO_IMF_USERMEMOPERATOR;
188188 useData.memData = (VO_PTR)(&moper);
189189 // open encoder dll;
190 handle = dlopen("/data/local/tmp/libvoAACEncv7.so", RTLD_NOW);
190 handle = dlopen("libstagefright.so", RTLD_NOW);
191191 if(handle == 0)
192192 {
193193 printf("open dll error......");
00 LOCAL_PATH := $(call my-dir)
11 include $(CLEAR_VARS)
22
3 LOCAL_SRC_FILES := AAC_E_SAMPLES.c
3 LOCAL_SRC_FILES := \
4 AAC_E_SAMPLES.c \
5 ../../common/cmnMemory.c
46
5 LOCAL_SRC_FILES += \
6 ../../../Common/cmnMemory.c
7 LOCAL_CFLAGS += $(VO_CFLAGS)
78
8 LOCAL_MODULE := TestvoAACEnc
9 LOCAL_MODULE_TAGS := debug
10
11 LOCAL_MODULE := AACEncTest
912
1013 LOCAL_ARM_MODE := arm
1114
12 LOCAL_STATIC_LIBRARIES :=
13
14 LOCAL_SHARED_LIBRARIES := libvoAACEnc
15 LOCAL_SHARED_LIBRARIES := \
16 libstagefright \
17 libdl
1518
1619 LOCAL_C_INCLUDES := \
17 $(LOCAL_PATH)/ \
18 $(LOCAL_PATH)/../../../Common \
19 $(LOCAL_PATH)/../../../Include \
20
21 LOCAL_CFLAGS := $(VO_CFLAGS)
20 $(LOCAL_PATH)/ \
21 $(LOCAL_PATH)/../../common \
22 $(LOCAL_PATH)/../../common/include \
2223
2324 include $(BUILD_EXECUTABLE)
+0
-55
aacenc/SampleCode/eclair/Makefile less more
0 #/*
1 #** Copyright 2003-2010, VisualOn, Inc.
2 #**
3 #** Licensed under the Apache License, Version 2.0 (the "License");
4 #** you may not use this file except in compliance with the License.
5 #** You may obtain a copy of the License at
6 #**
7 #** http://www.apache.org/licenses/LICENSE-2.0
8 #**
9 #** Unless required by applicable law or agreed to in writing, software
10 #** distributed under the License is distributed on an "AS IS" BASIS,
11 #** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #** See the License for the specific language governing permissions and
13 #** limitations under the License.
14 #*/
15
16 # target6
17 # available: pc, v4(armv4), v5(armv5), v5x(armv5 xscale), v6(armv6), v7(cortex-a8 neon)
18 VOTT:= v7
19
20
21 # module type
22 # please specify the type of your module: lib or exe
23 VOMT:= exe
24
25
26 # module macros
27 # please append the additional macro definitions here for your module if necessary.
28 # e.g. -DVISUALON, macro VISUALON defined for your module
29 VOMM:= #ARMV5E
30
31
32
33 # please specify the name of your module
34 VOTARGET:= voAACEncTestv7
35
36
37 # please modify here to be sure to see the g1.mk
38 include ../../../../Tools/eclair.mk
39
40 # dependent libraries.
41 VODEPLIBS:=-ldl
42
43 # module source
44 # please modify here to be sure to see the ms.mk which specifies all source info of your module
45 include ../ms.mk
46
47
48 # please specify where is the voRelease on your PC, relative path is suggested
49 VORELDIR:=../../../../../Release/
50
51
52 # please modify here to be sure to see the doit.mk
53 include ../../../../Tools/doit.mk
54
+0
-23
aacenc/SampleCode/ms.mk less more
0 #/*
1 #** Copyright 2003-2010, VisualOn, Inc.
2 #**
3 #** Licensed under the Apache License, Version 2.0 (the "License");
4 #** you may not use this file except in compliance with the License.
5 #** You may obtain a copy of the License at
6 #**
7 #** http://www.apache.org/licenses/LICENSE-2.0
8 #**
9 #** Unless required by applicable law or agreed to in writing, software
10 #** distributed under the License is distributed on an "AS IS" BASIS,
11 #** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #** See the License for the specific language governing permissions and
13 #** limitations under the License.
14 #*/
15
16 # please list all objects needed by your target here
17 OBJS:=AAC_E_SAMPLES.o cmnMemory.o
18
19 # please list all directories that all source files relative with your module(.h .c .cpp) locate
20 VOSRCDIR:=../ ../../../../include ../../../../Common
21
22
+0
-133
aacenc/Tools/doit.mk less more
0 #/*
1 # ** Copyright 2003-2010, VisualOn, Inc.
2 # **
3 # ** Licensed under the Apache License, Version 2.0 (the "License");
4 # ** you may not use this file except in compliance with the License.
5 # ** You may obtain a copy of the License at
6 # **
7 # ** http://www.apache.org/licenses/LICENSE-2.0
8 # **
9 # ** Unless required by applicable law or agreed to in writing, software
10 # ** distributed under the License is distributed on an "AS IS" BASIS,
11 # ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # ** See the License for the specific language governing permissions and
13 # ** limitations under the License.
14 # */
15
16 VERBOSE:=@
17
18
19 VOMT ?= lib
20
21 ifeq ($(VOMT), lib)
22 LIB_STATIC=$(VOTARGET).a
23 LIB_DYNAMIC=$(VOTARGET).so
24 endif
25
26 ifeq ($(VOMT), exe)
27 TARGET=$(VOTARGET)
28 endif
29
30 CFLAGS=$(VOCFLAGS) $(addprefix -I, $(VOSRCDIR))
31 CPPFLAGS=$(VOCPPFLAGS) $(addprefix -I, $(VOSRCDIR))
32 ifneq ($(VOTT), pc)
33 ASFLAGS=$(VOASFLAGS) $(addprefix -I, $(VOSRCDIR))
34 endif
35
36 LDFLAGS:=$(VOLDFLAGS)
37 VOTEDEPS+=$(VODEPLIBS)
38 VOTLDEPS+=$(VODEPLIBS)
39 VOSTCLIBS ?=
40
41 vpath %.c $(VOSRCDIR)
42 vpath %.cpp $(VOSRCDIR)
43 ifneq ($(VOTT), pc)
44 vpath %.s $(VOSRCDIR)
45 endif
46
47 ifeq ($(VOTT), pc)
48 BLTDIRS=$(VORELDIR)/Linux/static
49 BLTDIRD=$(VORELDIR)/Linux/shared
50 else
51 BLTDIRS=$(VORELDIR)/Google/$(VONJ)/lib/$(VOTT)
52 BLTDIRD=$(VORELDIR)/Google/$(VONJ)/so/$(VOTT)
53 endif
54
55
56 .PRECIOUS: $(OBJDIR)/%.o
57
58 ifeq ($(VOMT), lib)
59 all: mkdirs $(LIB_STATIC) $(LIB_DYNAMIC)
60 mkdirs: $(OBJDIR) $(BLTDIRS) $(BLTDIRD)
61 else
62 all: mkdirs $(TARGET)
63 mkdirs: $(OBJDIR)
64 endif
65
66 $(OBJDIR):
67 @if test ! -d $@; then \
68 mkdir -p $@; \
69 fi;
70
71 ifeq ($(VOMT), lib)
72 $(BLTDIRS):
73 @if test ! -d $@; then \
74 mkdir -p $@; \
75 fi;
76 $(BLTDIRD):
77 @if test ! -d $@; then \
78 mkdir -p $@; \
79 fi;
80 endif
81
82
83 ifeq ($(VOMT), lib)
84 $(LIB_STATIC):$(OBJS)
85 $(AR) cr $@ $(OBJDIR)/*.o $(VOSTCLIBS)
86 $(RANLIB) $@
87 ifneq ($(VODBG), yes)
88 #$(STRIP) $@
89 endif
90
91 $(LIB_DYNAMIC):$(OBJS)
92 $(GG) $(LDFLAGS) -o $@ $(OBJDIR)/*.o -Wl,--whole-archive $(VOSTCLIBS) -Wl,--no-whole-archive $(VOTLDEPS)
93 ifneq ($(VODBG), yes)
94 $(STRIP) $@
95 endif
96
97 else
98
99 $(TARGET):$(OBJS)
100 $(GG) $(LDFLAGS) -o $@ $(OBJDIR)/*.o -Wl,--whole-archive $(VOSTCLIBS) -Wl,--no-whole-archive $(VOTEDEPS)
101 ifneq ($(VODBG), yes)
102 $(STRIP) $@
103 endif
104
105 endif
106
107
108 .SUFFIXES: .c .cpp .s .o
109 .c.o:
110 $(VERBOSE) $(CC) $(CFLAGS) -o $(OBJDIR)/$@ -c $<
111 #%.c:$(OBJDIR)/%.o
112 # $(VERBOSE) $(CC) $(CFLAGS) -o $@ -c $<
113 .cpp.o:
114 $(VERBOSE) $(GG) $(CPPFLAGS) -o $(OBJDIR)/$@ -c $<
115 ifneq ($(VOTT), pc)
116 .s.o:
117 $(VERBOSE) $(AS) $(ASFLAGS) -o $(OBJDIR)/$@ $<
118 endif
119
120
121 .PHONY: clean devel
122 clean:
123 ifeq ($(VOMT), lib)
124 -rm -fr $(OBJDIR) .*.sw* $(VOTARGET).*
125 else
126 -rm -fr $(OBJDIR) .*.sw* $(VOTARGET)
127 endif
128
129 devel:
130 cp -a $(LIB_STATIC) $(BLTDIRS)
131 cp -a $(LIB_DYNAMIC) $(BLTDIRD)
132
+0
-172
aacenc/Tools/eclair.mk less more
0 #/*
1 # ** Copyright 2003-2010, VisualOn, Inc.
2 # **
3 # ** Licensed under the Apache License, Version 2.0 (the "License");
4 # ** you may not use this file except in compliance with the License.
5 # ** You may obtain a copy of the License at
6 # **
7 # ** http://www.apache.org/licenses/LICENSE-2.0
8 # **
9 # ** Unless required by applicable law or agreed to in writing, software
10 # ** distributed under the License is distributed on an "AS IS" BASIS,
11 # ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # ** See the License for the specific language governing permissions and
13 # ** limitations under the License.
14 # */
15
16 # special macro definitions for building
17 VOPREDEF=-DLINUX -D_LINUX
18
19 VOPRJ ?=
20 VONJ ?= eclair
21 VOTT ?= v6
22 # control the version to release out
23 # available: eva(evaluation), rel(release)
24 VOVER=
25 ifeq ($(VOVER), eva)
26 VOPREDEF+=-D__VOVER_EVA__
27 endif
28
29 # for debug or not: yes for debug, any other for release
30 VODBG?=ye
31
32 # for detecting memory leak
33 VODML=
34 ifeq ($(VODML), yes)
35 VOPREDEF+=-DDMEMLEAK
36 endif
37
38 VOPREDEF+=-D__VOTT_ARM__ -D__VONJ_ECLAIR__
39 TCROOTPATH:=/opt/eclair
40 GCCVER:=4.4.0
41 TCPATH:=$(TCROOTPATH)/prebuilt/linux-x86/toolchain/arm-eabi-$(GCCVER)
42 CCTPRE:=$(TCPATH)/bin/arm-eabi-
43 AS:=$(CCTPRE)as
44 AR:=$(CCTPRE)ar
45 NM:=$(CCTPRE)nm
46 CC:=$(CCTPRE)gcc
47 GG:=$(CCTPRE)g++
48 LD:=$(CCTPRE)ld
49 SIZE:=$(CCTPRE)size
50 STRIP:=$(CCTPRE)strip
51 RANLIB:=$(CCTPRE)ranlib
52 OBJCOPY:=$(CCTPRE)objcopy
53 OBJDUMP:=$(CCTPRE)objdump
54 READELF:=$(CCTPRE)readelf
55 STRINGS:=$(CCTPRE)strings
56
57 # target product dependcy
58 # available: dream, generic
59 VOTP:=sapphire-open
60 CCTLIB:=$(TCROOTPATH)/out/target/product/$(VOTP)/obj/lib
61 CCTINC:=-I$(TCROOTPATH)/system/core/include \
62 -I$(TCROOTPATH)/hardware/libhardware/include \
63 -I$(TCROOTPATH)/hardware/ril/include \
64 -I$(TCROOTPATH)/hardware/libhardware_legacy/include \
65 -I$(TCROOTPATH)/dalvik/libnativehelper/include \
66 -I$(TCROOTPATH)/dalvik/libnativehelper/include/nativehelper \
67 -I$(TCROOTPATH)/frameworks/base/include \
68 -I$(TCROOTPATH)/frameworks/base/core/jni \
69 -I$(TCROOTPATH)/frameworks/base/libs/audioflinger \
70 -I$(TCROOTPATH)/external/skia/include \
71 -I$(TCROOTPATH)/out/target/product/$(VOTP)/obj/include \
72 -I$(TCROOTPATH)/bionic/libc/arch-arm/include \
73 -I$(TCROOTPATH)/bionic/libc/include \
74 -I$(TCROOTPATH)/bionic/libstdc++/include \
75 -I$(TCROOTPATH)/bionic/libc/kernel/common \
76 -I$(TCROOTPATH)/bionic/libc/kernel/arch-arm \
77 -I$(TCROOTPATH)/bionic/libm/include \
78 -I$(TCROOTPATH)/bionic/libm/include/arm \
79 -I$(TCROOTPATH)/bionic/libthread_db/include \
80 -I$(TCROOTPATH)/bionic/libm/arm \
81 -I$(TCROOTPATH)/bionic/libm \
82 -I$(TCROOTPATH)/frameworks/base/include/android_runtime
83 #-I$(TCROOTPATH)/out/target/product/$(VOTP)/obj/SHARED_LIBRARIES/libm_intermediates
84
85 CCTCFLAGS:=-msoft-float -mthumb-interwork -fno-exceptions -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -fmessage-length=0 -finline-functions -finline-limit=600 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -fstrict-aliasing -funswitch-loops
86 #-fwide-exec-charset=charset=UTF-32
87
88 # for target exe
89 TELDFLAGS:=-nostdlib -Bdynamic -Wl,-T,$(TCROOTPATH)/build/core/armelf.x -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no-undefined -Wl,-rpath-link=$(CCTLIB) -L$(CCTLIB)
90
91 VOTEDEPS:=$(CCTLIB)/crtbegin_dynamic.o $(CCTLIB)/crtend_android.o $(TCPATH)/lib/gcc/arm-eabi/$(GCCVER)/interwork/libgcc.a -lc -lm
92
93 # for target lib
94 TLLDFLAGS:=-nostdlib -Wl,-T,$(TCROOTPATH)/build/core/armelf.xsc -Wl,--gc-sections -Wl,-shared,-Bsymbolic -L$(CCTLIB) -Wl,--no-whole-archive -Wl,--no-undefined $(TCPATH)/lib/gcc/arm-eabi/$(GCCVER)/interwork/libgcc.a
95
96 VOTLDEPS:=-lm -lc
97
98
99 ifeq ($(VOTT), v4)
100 VOCFLAGS:=-mtune=arm9tdmi -march=armv4t
101 VOASFLAGS:=-march=armv4t -mfpu=softfpa
102 endif
103
104 ifeq ($(VOTT), v5)
105 VOCFLAGS:=-march=armv5te
106 VOASFLAGS:=-march=armv5te -mfpu=vfp
107 endif
108
109 ifeq ($(VOTT), v5x)
110 VOCFLAGS:=-march=armv5te -mtune=xscale
111 VOASFLAGS:=-march=armv5te -mfpu=vfp
112 endif
113
114 ifeq ($(VOTT), v6)
115 #VOCFLAGS:=-march=armv6 -mtune=arm1136jf-s
116 #VOASFLAGS:=-march=armv6
117 VOCFLAGS:=-march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp -mapcs -mtpcs-leaf-frame -mlong-calls
118 VOASFLAGS:=-march=armv6j -mcpu=arm1136jf-s -mfpu=arm1136jf-s -mfloat-abi=softfp -mapcs-float -mapcs-reentrant
119 endif
120
121 #
122 # global link options
123 VOLDFLAGS:=-Wl,-x,-X,--as-needed
124
125
126 ifeq ($(VOTT), v7)
127 VOCFLAGS+=-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
128 VOASFLAGS+=-march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
129 VOLDFLAGS+=-Wl,--fix-cortex-a8
130 endif
131
132 #global compiling options for ARM target
133 ifneq ($(VOTT), pc)
134 VOASFLAGS+=--strip-local-absolute -R
135 endif
136
137
138 ifeq ($(VODBG), yes)
139 VOCFLAGS+=-D_DEBUG -g
140 else
141 VOCFLAGS+=-DNDEBUG -O3
142 endif
143
144 VOCFLAGS+=$(VOPREDEF) $(VOMM) -Wall -fsigned-char -fomit-frame-pointer -fno-leading-underscore -fpic -fPIC -pipe -ftracer -fforce-addr -fno-bounds-check #-fvisibility=hidden #-fvisibility-inlines-hidden ##-ftree-loop-linear -mthumb -nostdinc -dD -fprefetch-loop-arrays
145
146
147 ifneq ($(VOTT), pc)
148 VOCFLAGS+=$(CCTCFLAGS) $(CCTINC)
149 VOCPPFLAGS:=-fno-rtti $(VOCFLAGS)
150
151 ifeq ($(VOMT), exe)
152 VOLDFLAGS+=$(TELDFLAGS)
153 endif
154
155 ifeq ($(VOMT), lib)
156 VOLDFLAGS+=$(TLLDFLAGS)
157 endif
158 else
159 VOCPPFLAGS:=$(VOCFLAGS)
160 ifeq ($(VOMT), lib)
161 VOLDFLAGS+=-shared
162 endif
163 endif
164
165 ifeq ($(VODBG), yes)
166 #VOLDFLAGS:=
167 endif
168
169 # where to place object files
170 OBJDIR=obj
171
6262 Word32 result;
6363 asm volatile(
6464 "SMULWB %[result], %[L_var2], %[var1] \n"
65 :[result]"+r"(result)
65 :[result]"=r"(result)
6666 :[L_var2]"r"(L_var2), [var1]"r"(var1)
6767 );
6868 return result;
+0
-55
aacenc/build/eclair/ARMV5E/Makefile less more
0 #/*
1 #** Copyright 2003-2010, VisualOn, Inc.
2 #**
3 #** Licensed under the Apache License, Version 2.0 (the "License");
4 #** you may not use this file except in compliance with the License.
5 #** You may obtain a copy of the License at
6 #**
7 #** http://www.apache.org/licenses/LICENSE-2.0
8 #**
9 #** Unless required by applicable law or agreed to in writing, software
10 #** distributed under the License is distributed on an "AS IS" BASIS,
11 #** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #** See the License for the specific language governing permissions and
13 #** limitations under the License.
14 #*/
15
16 # target6
17 # available: pc, v4(armv4), v5(armv5), v5x(armv5 xscale), v6(armv6), v7(cortex-a8 neon)
18 VOTT:= v5
19
20
21 # module type
22 # please specify the type of your module: lib or exe
23 VOMT:= lib
24
25
26 # module macros
27 # please append the additional macro definitions here for your module if necessary.
28 # e.g. -DVISUALON, macro VISUALON defined for your module
29 VOMM:= -DARMV5E -DARM_INASM -DARMV5_INASM
30
31
32
33 # please specify the name of your module
34 VOTARGET:=libvoAACEncv5
35
36
37 # please modify here to be sure to see the g1.mk
38 include ../../../../../Tools/eclair.mk
39
40 # dependent libraries.
41 VODEPLIBS:=#-ldl -lstdc++
42
43 # module source
44 # please modify here to be sure to see the ms.mk which specifies all source info of your module
45 include ../../ms.mk
46
47
48 # please specify where is the voRelease on your PC, relative path is suggested
49 VORELDIR:=../../../../../../Release
50
51
52 # please modify here to be sure to see the doit.mk
53 include ../../../../../Tools/doit.mk
54
+0
-55
aacenc/build/eclair/ARMV7/Makefile less more
0 #/*
1 #** Copyright 2003-2010, VisualOn, Inc.
2 #**
3 #** Licensed under the Apache License, Version 2.0 (the "License");
4 #** you may not use this file except in compliance with the License.
5 #** You may obtain a copy of the License at
6 #**
7 #** http://www.apache.org/licenses/LICENSE-2.0
8 #**
9 #** Unless required by applicable law or agreed to in writing, software
10 #** distributed under the License is distributed on an "AS IS" BASIS,
11 #** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #** See the License for the specific language governing permissions and
13 #** limitations under the License.
14 #*/
15
16 # target6
17 # available: pc, v4(armv4), v5(armv5), v5x(armv5 xscale), v6(armv6), v7(cortex-a8 neon)
18 VOTT:= v7
19
20
21 # module type
22 # please specify the type of your module: lib or exe
23 VOMT:= lib
24
25
26 # module macros
27 # please append the additional macro definitions here for your module if necessary.
28 # e.g. -DVISUALON, macro VISUALON defined for your module
29 VOMM:= -DARMV5E -DARMV7Neon -DARM_INASM -DARMV5_INASM
30
31
32
33 # please specify the name of your module
34 VOTARGET:=libvoAACEncv7
35
36
37 # please modify here to be sure to see the g1.mk
38 include ../../../../../Tools/eclair.mk
39
40 # dependent libraries.
41 VODEPLIBS:=#-ldl -lstdc++
42
43 # module source
44 # please modify here to be sure to see the ms.mk which specifies all source info of your module
45 include ../../ms.mk
46
47
48 # please specify where is the voRelease on your PC, relative path is suggested
49 VORELDIR:=../../../../../../Release
50
51
52 # please modify here to be sure to see the doit.mk
53 include ../../../../../Tools/doit.mk
54
+0
-40
aacenc/build/eclair/makefile less more
0 #/*
1 #** Copyright 2003-2010, VisualOn, Inc.
2 #**
3 #** Licensed under the Apache License, Version 2.0 (the "License");
4 #** you may not use this file except in compliance with the License.
5 #** You may obtain a copy of the License at
6 #**
7 #** http://www.apache.org/licenses/LICENSE-2.0
8 #**
9 #** Unless required by applicable law or agreed to in writing, software
10 #** distributed under the License is distributed on an "AS IS" BASIS,
11 #** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #** See the License for the specific language governing permissions and
13 #** limitations under the License.
14 #*/
15
16 # Just acting as Father Makefile of Modules
17 # please keep the name 'makefile' unchanged
18
19 # Module Subdirs
20 VOMSD:=$(dir $(shell find . -name 'Makefile'))
21
22 all:
23 for dir in $(VOMSD); \
24 do \
25 $(MAKE) -C $$dir; \
26 done
27
28 .PHONY:clean devel
29 clean:
30 for dir in $(VOMSD); \
31 do \
32 $(MAKE) -C $$dir clean; \
33 done
34
35 devel:
36 for dir in $(VOMSD); \
37 do \
38 $(MAKE) -C $$dir devel; \
39 done
+0
-42
aacenc/build/ms.mk less more
0 #/*
1 #** Copyright 2003-2010, VisualOn, Inc.
2 #**
3 #** Licensed under the Apache License, Version 2.0 (the "License");
4 #** you may not use this file except in compliance with the License.
5 #** You may obtain a copy of the License at
6 #**
7 #** http://www.apache.org/licenses/LICENSE-2.0
8 #**
9 #** Unless required by applicable law or agreed to in writing, software
10 #** distributed under the License is distributed on an "AS IS" BASIS,
11 #** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #** See the License for the specific language governing permissions and
13 #** limitations under the License.
14 #*/
15
16
17 # please list all objects needed by your target here
18 OBJS:=basicop2.o oper_32b.o aac_rom.o aacenc.o aacenc_core.o adj_thr.o \
19 band_nrg.o bit_cnt.o bitbuffer.o bitenc.o block_switch.o channel_map.o \
20 dyn_bits.o grp_data.o interface.o line_pe.o memalign.o ms_stereo.o \
21 pre_echo_control.o psy_configuration.o psy_main.o qc_main.o quantize.o sf_estim.o \
22 spreading.o stat_bits.o tns.o transform.o
23
24 # please list all directories that all source files relative with your module(.h .c .cpp) locate
25 VOSRCDIR:=../../../src \
26 ../../../inc \
27 ../../../basic_op\
28 ../../../../../Include
29
30 ifeq ($(VOTT), v5)
31 OBJS+= AutoCorrelation_v5.o band_nrg_v5.o CalcWindowEnergy_v5.o \
32 PrePostMDCT_v5.o R4R8First_v5.o Radix4FFT_v5.o
33 VOSRCDIR+= ../../../src/asm/ARMV5E/
34 endif
35
36 ifeq ($(VOTT), v7)
37 OBJS+= AutoCorrelation_v5.o band_nrg_v5.o CalcWindowEnergy_v5.o \
38 PrePostMDCT_v7.o R4R8First_v7.o Radix4FFT_v7.o
39 VOSRCDIR+= ../../../src/asm/ARMV5E/
40 VOSRCDIR+= ../../../src/asm/ARMV7/
41 endif
436436 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) {
437437 Word32 redThrExp = thrExp[ch][sfbGrp+sfb] + redVal;
438438
439 if (((*pahFlag < AH_ACTIVE) || (deltaPe > 0)) && (redThrExp > 0) ) {
439 if (((*pahFlag < AH_ACTIVE) || (deltaPe > 0)) && (redThrExp > 0) && (redThrExp >= *psfbNActiveLines)) {
440440
441441 *psfbPeFactors = (*psfbNActiveLines) * (0x7fffffff / redThrExp);
442442 normFactor = L_add(normFactor, *psfbPeFactors);
464464 deltaSfbPe = *psfbPeFactors * deltaPe;
465465
466466 /* thr3(n) = thr2(n)*2^deltaSfbPe/b(n) */
467 if (*psfbNActiveLines > 0) {
467 if (*psfbNActiveLines > 0 && (normFactor* (*psfbNActiveLines)) != 0) {
468468 /* new threshold */
469469 Word32 thrFactor;
470470 sfbEn = psyOutChan->sfbEnergy[sfbGrp+sfb];
10381038
10391039 /* minSnr adaptation */
10401040 /* maximum reduction of minSnr goes down to minSnr^maxRed */
1041 msaParam->maxRed = 0x20000000; /* *0.25f /
1041 msaParam->maxRed = 0x20000000; /* *0.25f */
10421042 /* start adaptation of minSnr for avgEn/sfbEn > startRatio */
10431043 msaParam->startRatio = 0x0ccccccd; /* 10 */
10441044 /* maximum minSnr reduction to minSnr^maxRed is reached for
127127 PostMDCT_END:
128128 ldmia sp!, {r4 - r11, pc}
129129 @ENDP @ |PostMDCT|
130 .end
130 .end
248248 .word 0x5a82799a
249249
250250 @ENDP @ |Radix8First|
251 .end
251 .end
165165 ldmia sp!, {r4 - r11, pc}
166166
167167 @ENDP @ |Radix4FFT|
168 .end
168 .end
131131 ldmia sp!, {r4 - r11, pc}
132132
133133 @ENDP @ |PostMDCT|
134 .end
134 .end
142142 ldmia sp!, {r4 - r11, pc}
143143
144144 @ENDP @ |Radix4First|
145 .end
145 .end
139139 ldmia sp!, {r4 - r11, pc}
140140
141141 @ENDP @ |Radix4FFT|
142 .end
142 .end
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
45 # This file is free software; the Free Software Foundation
56 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
1213
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
16 [m4_warning([this file was generated for autoconf 2.67.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
1718 You have another version of autoconf. It may work, but is not guaranteed to.
1819 If you have problems, you may need to regenerate the build system entirely.
1920 To do so, use the procedure documented by the package, typically `autoreconf'.])])
2021
21 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
22 #
23 # This file is free software; the Free Software Foundation
24 # gives unlimited permission to copy and/or distribute it,
25 # with or without modifications, as long as this notice is preserved.
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
2630
2731 # AM_AUTOMAKE_VERSION(VERSION)
2832 # ----------------------------
3337 [am__api_version='1.11'
3438 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3539 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.11.1], [],
40 m4_if([$1], [1.11.3], [],
3741 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3842 ])
3943
4953 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5054 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5155 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.11.1])dnl
56 [AM_AUTOMAKE_VERSION([1.11.3])dnl
5357 m4_ifndef([AC_AUTOCONF_VERSION],
5458 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5559 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
7882
7983 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8084
81 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
82 #
83 # This file is free software; the Free Software Foundation
84 # gives unlimited permission to copy and/or distribute it,
85 # with or without modifications, as long as this notice is preserved.
85 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
86 #
87 # This file is free software; the Free Software Foundation
88 # gives unlimited permission to copy and/or distribute it,
89 # with or without modifications, as long as this notice is preserved.
90
91 # serial 1
8692
8793 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8894 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
165171 Usually this means the macro was only invoked conditionally.]])
166172 fi])])
167173
168 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
169 # Free Software Foundation, Inc.
170 #
171 # This file is free software; the Free Software Foundation
172 # gives unlimited permission to copy and/or distribute it,
173 # with or without modifications, as long as this notice is preserved.
174
175 # serial 10
174 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
175 # 2010, 2011 Free Software Foundation, Inc.
176 #
177 # This file is free software; the Free Software Foundation
178 # gives unlimited permission to copy and/or distribute it,
179 # with or without modifications, as long as this notice is preserved.
180
181 # serial 12
176182
177183 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
178184 # written in clear, in which case automake, when reading aclocal.m4,
212218 # instance it was reported that on HP-UX the gcc test will end up
213219 # making a dummy file named `D' -- because `-MD' means `put the output
214220 # in D'.
221 rm -rf conftest.dir
215222 mkdir conftest.dir
216223 # Copy depcomp to subdir because otherwise we won't find it if we're
217224 # using a relative directory.
276283 break
277284 fi
278285 ;;
279 msvisualcpp | msvcmsys)
286 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
280287 # This compiler won't grok `-c -o', but also, the minuso test has
281288 # not run yet. These depmodes are late enough in the game, and
282289 # so weak that their functioning should not be impacted.
341348 if test "x$enable_dependency_tracking" != xno; then
342349 am_depcomp="$ac_aux_dir/depcomp"
343350 AMDEPBACKSLASH='\'
351 am__nodep='_no'
344352 fi
345353 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
346354 AC_SUBST([AMDEPBACKSLASH])dnl
347355 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
356 AC_SUBST([am__nodep])dnl
357 _AM_SUBST_NOTMAKE([am__nodep])dnl
348358 ])
349359
350360 # Generate code to set up dependency tracking. -*- Autoconf -*-
566576 done
567577 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
568578
569 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
570 #
571 # This file is free software; the Free Software Foundation
572 # gives unlimited permission to copy and/or distribute it,
573 # with or without modifications, as long as this notice is preserved.
579 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
580 # Inc.
581 #
582 # This file is free software; the Free Software Foundation
583 # gives unlimited permission to copy and/or distribute it,
584 # with or without modifications, as long as this notice is preserved.
585
586 # serial 1
574587
575588 # AM_PROG_INSTALL_SH
576589 # ------------------
611624 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
612625 # From Jim Meyering
613626
614 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
615 # Free Software Foundation, Inc.
627 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
628 # 2011 Free Software Foundation, Inc.
616629 #
617630 # This file is free software; the Free Software Foundation
618631 # gives unlimited permission to copy and/or distribute it,
632645 [disable], [m4_define([am_maintainer_other], [enable])],
633646 [m4_define([am_maintainer_other], [enable])
634647 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
635 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
648 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
636649 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
637650 AC_ARG_ENABLE([maintainer-mode],
638651 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
743756 fi
744757 ])
745758
746 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
747 #
748 # This file is free software; the Free Software Foundation
749 # gives unlimited permission to copy and/or distribute it,
750 # with or without modifications, as long as this notice is preserved.
759 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
760 # Inc.
761 #
762 # This file is free software; the Free Software Foundation
763 # gives unlimited permission to copy and/or distribute it,
764 # with or without modifications, as long as this notice is preserved.
765
766 # serial 1
751767
752768 # AM_PROG_MKDIR_P
753769 # ---------------
771787
772788 # Helper functions for option handling. -*- Autoconf -*-
773789
774 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
775 #
776 # This file is free software; the Free Software Foundation
777 # gives unlimited permission to copy and/or distribute it,
778 # with or without modifications, as long as this notice is preserved.
779
780 # serial 4
790 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
791 # Foundation, Inc.
792 #
793 # This file is free software; the Free Software Foundation
794 # gives unlimited permission to copy and/or distribute it,
795 # with or without modifications, as long as this notice is preserved.
796
797 # serial 5
781798
782799 # _AM_MANGLE_OPTION(NAME)
783800 # -----------------------
785802 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
786803
787804 # _AM_SET_OPTION(NAME)
788 # ------------------------------
805 # --------------------
789806 # Set option NAME. Presently that only means defining a flag for this option.
790807 AC_DEFUN([_AM_SET_OPTION],
791808 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
792809
793810 # _AM_SET_OPTIONS(OPTIONS)
794 # ----------------------------------
811 # ------------------------
795812 # OPTIONS is a space-separated list of Automake options.
796813 AC_DEFUN([_AM_SET_OPTIONS],
797814 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
802819 AC_DEFUN([_AM_IF_OPTION],
803820 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
804821
805 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
806 #
807 # This file is free software; the Free Software Foundation
808 # gives unlimited permission to copy and/or distribute it,
809 # with or without modifications, as long as this notice is preserved.
822 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
823 #
824 # This file is free software; the Free Software Foundation
825 # gives unlimited permission to copy and/or distribute it,
826 # with or without modifications, as long as this notice is preserved.
827
828 # serial 1
810829
811830 # AM_RUN_LOG(COMMAND)
812831 # -------------------
884903 fi
885904 AC_MSG_RESULT(yes)])
886905
887 # Copyright (C) 2009 Free Software Foundation, Inc.
888 #
889 # This file is free software; the Free Software Foundation
890 # gives unlimited permission to copy and/or distribute it,
891 # with or without modifications, as long as this notice is preserved.
892
893 # serial 1
906 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
907 #
908 # This file is free software; the Free Software Foundation
909 # gives unlimited permission to copy and/or distribute it,
910 # with or without modifications, as long as this notice is preserved.
911
912 # serial 2
894913
895914 # AM_SILENT_RULES([DEFAULT])
896915 # --------------------------
905924 no) AM_DEFAULT_VERBOSITY=1;;
906925 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
907926 esac
927 dnl
928 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
929 dnl do not support nested variable expansions.
930 dnl See automake bug#9928 and bug#10237.
931 am_make=${MAKE-make}
932 AC_CACHE_CHECK([whether $am_make supports nested variables],
933 [am_cv_make_support_nested_variables],
934 [if AS_ECHO([['TRUE=$(BAR$(V))
935 BAR0=false
936 BAR1=true
937 V=1
938 am__doit:
939 @$(TRUE)
940 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
941 am_cv_make_support_nested_variables=yes
942 else
943 am_cv_make_support_nested_variables=no
944 fi])
945 if test $am_cv_make_support_nested_variables = yes; then
946 dnl Using `$V' instead of `$(V)' breaks IRIX make.
947 AM_V='$(V)'
948 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
949 else
950 AM_V=$AM_DEFAULT_VERBOSITY
951 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
952 fi
953 AC_SUBST([AM_V])dnl
954 AM_SUBST_NOTMAKE([AM_V])dnl
955 AC_SUBST([AM_DEFAULT_V])dnl
956 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
908957 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
909958 AM_BACKSLASH='\'
910959 AC_SUBST([AM_BACKSLASH])dnl
911960 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
912961 ])
913962
914 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
915 #
916 # This file is free software; the Free Software Foundation
917 # gives unlimited permission to copy and/or distribute it,
918 # with or without modifications, as long as this notice is preserved.
963 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
964 #
965 # This file is free software; the Free Software Foundation
966 # gives unlimited permission to copy and/or distribute it,
967 # with or without modifications, as long as this notice is preserved.
968
969 # serial 1
919970
920971 # AM_PROG_INSTALL_STRIP
921972 # ---------------------
939990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
940991 AC_SUBST([INSTALL_STRIP_PROGRAM])])
941992
942 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
943 #
944 # This file is free software; the Free Software Foundation
945 # gives unlimited permission to copy and/or distribute it,
946 # with or without modifications, as long as this notice is preserved.
947
948 # serial 2
993 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
994 #
995 # This file is free software; the Free Software Foundation
996 # gives unlimited permission to copy and/or distribute it,
997 # with or without modifications, as long as this notice is preserved.
998
999 # serial 3
9491000
9501001 # _AM_SUBST_NOTMAKE(VARIABLE)
9511002 # ---------------------------
9541005 AC_DEFUN([_AM_SUBST_NOTMAKE])
9551006
9561007 # AM_SUBST_NOTMAKE(VARIABLE)
957 # ---------------------------
1008 # --------------------------
9581009 # Public sister of _AM_SUBST_NOTMAKE.
9591010 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9601011
9611012 # Check how to create a tarball. -*- Autoconf -*-
9621013
963 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1014 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
9641015 #
9651016 # This file is free software; the Free Software Foundation
9661017 # gives unlimited permission to copy and/or distribute it,
9821033 # a tarball read from stdin.
9831034 # $(am__untar) < result.tar
9841035 AC_DEFUN([_AM_PROG_TAR],
985 [# Always define AMTAR for backward compatibility.
986 AM_MISSING_PROG([AMTAR], [tar])
1036 [# Always define AMTAR for backward compatibility. Yes, it's still used
1037 # in the wild :-( We should find a proper way to deprecate it ...
1038 AC_SUBST([AMTAR], ['$${TAR-tar}'])
9871039 m4_if([$1], [v7],
988 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1040 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9891041 [m4_case([$1], [ustar],, [pax],,
9901042 [m4_fatal([Unknown tar format])])
9911043 AC_MSG_CHECKING([how to create a $1 tar archive])
00 LOCAL_PATH := $(call my-dir)
11 include $(CLEAR_VARS)
22
3 LOCAL_PRELINK_MODULE := false
3
44
55 LOCAL_SRC_FILES := cmnMemory.c
66
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-12-30'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-10'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
1616 # General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2220 #
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
5654
5755 Originally written by Per Bothner.
5856 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
60 Software Foundation, Inc.
57 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
58 Free Software Foundation, Inc.
6159
6260 This is free software; see the source for copying conditions. There is NO
6361 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
144142 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145143 *:NetBSD:*:*)
146144 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
145 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148146 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149147 # switched to ELF, *-*-netbsd* would select the old
150148 # object file format. This provides both forward
180178 fi
181179 ;;
182180 *)
183 os=netbsd
181 os=netbsd
184182 ;;
185183 esac
186184 # The OS release
223221 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224222 ;;
225223 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227225 ;;
228226 esac
229227 # According to Compaq, /usr/sbin/psrinfo has been available on
269267 # A Xn.n version is an unreleased experimental baselevel.
270268 # 1.2 uses "1.2" for uname -r.
271269 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
270 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
271 exitcode=$?
272 trap '' 0
273 exit $exitcode ;;
273274 Alpha\ *:Windows_NT*:*)
274275 # How do we know it's Interix rather than the generic POSIX subsystem?
275276 # Should we change UNAME_MACHINE based on the output of uname instead
295296 echo s390-ibm-zvmoe
296297 exit ;;
297298 *:OS400:*:*)
298 echo powerpc-ibm-os400
299 echo powerpc-ibm-os400
299300 exit ;;
300301 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301302 echo arm-acorn-riscix${UNAME_RELEASE}
394395 # MiNT. But MiNT is downward compatible to TOS, so this should
395396 # be no problem.
396397 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397 echo m68k-atari-mint${UNAME_RELEASE}
398 echo m68k-atari-mint${UNAME_RELEASE}
398399 exit ;;
399400 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
400401 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
402 exit ;;
402403 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
404 echo m68k-atari-mint${UNAME_RELEASE}
404405 exit ;;
405406 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 echo m68k-milan-mint${UNAME_RELEASE}
407 exit ;;
407 echo m68k-milan-mint${UNAME_RELEASE}
408 exit ;;
408409 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409 echo m68k-hades-mint${UNAME_RELEASE}
410 exit ;;
410 echo m68k-hades-mint${UNAME_RELEASE}
411 exit ;;
411412 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412 echo m68k-unknown-mint${UNAME_RELEASE}
413 exit ;;
413 echo m68k-unknown-mint${UNAME_RELEASE}
414 exit ;;
414415 m68k:machten:*:*)
415416 echo m68k-apple-machten${UNAME_RELEASE}
416417 exit ;;
480481 echo m88k-motorola-sysv3
481482 exit ;;
482483 AViiON:dgux:*:*)
483 # DG/UX returns AViiON for all architectures
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
484 # DG/UX returns AViiON for all architectures
485 UNAME_PROCESSOR=`/usr/bin/uname -p`
485486 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
486487 then
487488 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
494495 else
495496 echo i586-dg-dgux${UNAME_RELEASE}
496497 fi
497 exit ;;
498 exit ;;
498499 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
499500 echo m88k-dolphin-sysv3
500501 exit ;;
551552 echo rs6000-ibm-aix3.2
552553 fi
553554 exit ;;
554 *:AIX:*:[456])
555 *:AIX:*:[4567])
555556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
557558 IBM_ARCH=rs6000
594595 9000/[678][0-9][0-9])
595596 if [ -x /usr/bin/getconf ]; then
596597 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
598 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599 case "${sc_cpu_version}" in
600 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602 532) # CPU_PA_RISC2_0
603 case "${sc_kernel_bits}" in
604 32) HP_ARCH="hppa2.0n" ;;
605 64) HP_ARCH="hppa2.0w" ;;
605606 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
607 esac ;;
608 esac
608609 fi
609610 if [ "${HP_ARCH}" = "" ]; then
610611 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include <stdlib.h>
615 #include <unistd.h>
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
612 sed 's/^ //' << EOF >$dummy.c
613
614 #define _HPUX_SOURCE
615 #include <stdlib.h>
616 #include <unistd.h>
617
618 int main ()
619 {
620 #if defined(_SC_KERNEL_BITS)
621 long bits = sysconf(_SC_KERNEL_BITS);
622 #endif
623 long cpu = sysconf (_SC_CPU_VERSION);
624
625 switch (cpu)
626 {
627 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
629 case CPU_PA_RISC2_0:
630 #if defined(_SC_KERNEL_BITS)
631 switch (bits)
632 {
633 case 64: puts ("hppa2.0w"); break;
634 case 32: puts ("hppa2.0n"); break;
635 default: puts ("hppa2.0"); break;
636 } break;
637 #else /* !defined(_SC_KERNEL_BITS) */
638 puts ("hppa2.0"); break;
639 #endif
640 default: puts ("hppa1.0"); break;
641 }
642 exit (0);
643 }
643644 EOF
644645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645646 test -z "$HP_ARCH" && HP_ARCH=hppa
730731 exit ;;
731732 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
732733 echo c1-convex-bsd
733 exit ;;
734 exit ;;
734735 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
735736 if getsysinfo -f scalar_acc
736737 then echo c32-convex-bsd
737738 else echo c2-convex-bsd
738739 fi
739 exit ;;
740 exit ;;
740741 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
741742 echo c34-convex-bsd
742 exit ;;
743 exit ;;
743744 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
744745 echo c38-convex-bsd
745 exit ;;
746 exit ;;
746747 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
747748 echo c4-convex-bsd
748 exit ;;
749 exit ;;
749750 CRAY*Y-MP:*:*:*)
750751 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751752 exit ;;
769770 exit ;;
770771 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
771772 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775 exit ;;
773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776 exit ;;
776777 5000:UNIX_System_V:4.*:*)
777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780781 exit ;;
781782 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
782783 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
788789 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
789790 exit ;;
790791 *:FreeBSD:*:*)
791 case ${UNAME_MACHINE} in
792 pc98)
793 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792 UNAME_PROCESSOR=`/usr/bin/uname -p`
793 case ${UNAME_PROCESSOR} in
794794 amd64)
795795 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796796 *)
797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798798 esac
799799 exit ;;
800800 i*:CYGWIN*:*)
803803 *:MINGW*:*)
804804 echo ${UNAME_MACHINE}-pc-mingw32
805805 exit ;;
806 i*:MSYS*:*)
807 echo ${UNAME_MACHINE}-pc-msys
808 exit ;;
806809 i*:windows32*:*)
807 # uname -m includes "-pc" on this system.
808 echo ${UNAME_MACHINE}-mingw32
810 # uname -m includes "-pc" on this system.
811 echo ${UNAME_MACHINE}-mingw32
809812 exit ;;
810813 i*:PW*:*)
811814 echo ${UNAME_MACHINE}-pc-pw32
812815 exit ;;
813816 *:Interix*:*)
814 case ${UNAME_MACHINE} in
817 case ${UNAME_MACHINE} in
815818 x86)
816819 echo i586-pc-interix${UNAME_RELEASE}
817820 exit ;;
857860 i*86:Minix:*:*)
858861 echo ${UNAME_MACHINE}-pc-minix
859862 exit ;;
863 aarch64:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 aarch64_be:Linux:*:*)
867 UNAME_MACHINE=aarch64_be
868 echo ${UNAME_MACHINE}-unknown-linux-gnu
869 exit ;;
860870 alpha:Linux:*:*)
861871 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
862872 EV5) UNAME_MACHINE=alphaev5 ;;
866876 EV6) UNAME_MACHINE=alphaev6 ;;
867877 EV67) UNAME_MACHINE=alphaev67 ;;
868878 EV68*) UNAME_MACHINE=alphaev68 ;;
869 esac
879 esac
870880 objdump --private-headers /bin/sh | grep -q ld.so.1
871881 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
872882 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
878888 then
879889 echo ${UNAME_MACHINE}-unknown-linux-gnu
880890 else
881 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
891 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
892 | grep -q __ARM_PCS_VFP
893 then
894 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
895 else
896 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
897 fi
882898 fi
883899 exit ;;
884900 avr32*:Linux:*:*)
885901 echo ${UNAME_MACHINE}-unknown-linux-gnu
886902 exit ;;
887903 cris:Linux:*:*)
888 echo cris-axis-linux-gnu
904 echo ${UNAME_MACHINE}-axis-linux-gnu
889905 exit ;;
890906 crisv32:Linux:*:*)
891 echo crisv32-axis-linux-gnu
907 echo ${UNAME_MACHINE}-axis-linux-gnu
892908 exit ;;
893909 frv:Linux:*:*)
894 echo frv-unknown-linux-gnu
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
911 exit ;;
912 hexagon:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
895914 exit ;;
896915 i*86:Linux:*:*)
897916 LIBC=gnu
933952 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
934953 ;;
935954 or32:Linux:*:*)
936 echo or32-unknown-linux-gnu
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
937956 exit ;;
938957 padre:Linux:*:*)
939958 echo sparc-unknown-linux-gnu
959978 echo ${UNAME_MACHINE}-ibm-linux
960979 exit ;;
961980 sh64*:Linux:*:*)
962 echo ${UNAME_MACHINE}-unknown-linux-gnu
981 echo ${UNAME_MACHINE}-unknown-linux-gnu
963982 exit ;;
964983 sh*:Linux:*:*)
965984 echo ${UNAME_MACHINE}-unknown-linux-gnu
967986 sparc:Linux:*:* | sparc64:Linux:*:*)
968987 echo ${UNAME_MACHINE}-unknown-linux-gnu
969988 exit ;;
989 tile*:Linux:*:*)
990 echo ${UNAME_MACHINE}-unknown-linux-gnu
991 exit ;;
970992 vax:Linux:*:*)
971993 echo ${UNAME_MACHINE}-dec-linux-gnu
972994 exit ;;
973995 x86_64:Linux:*:*)
974 echo x86_64-unknown-linux-gnu
996 echo ${UNAME_MACHINE}-unknown-linux-gnu
975997 exit ;;
976998 xtensa*:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-gnu
999 echo ${UNAME_MACHINE}-unknown-linux-gnu
9781000 exit ;;
9791001 i*86:DYNIX/ptx:4*:*)
9801002 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9831005 echo i386-sequent-sysv4
9841006 exit ;;
9851007 i*86:UNIX_SV:4.2MP:2.*)
986 # Unixware is an offshoot of SVR4, but it has its own version
987 # number series starting with 2...
988 # I am not positive that other SVR4 systems won't match this,
1008 # Unixware is an offshoot of SVR4, but it has its own version
1009 # number series starting with 2...
1010 # I am not positive that other SVR4 systems won't match this,
9891011 # I just have to hope. -- rms.
990 # Use sysv4.2uw... so that sysv4* matches it.
1012 # Use sysv4.2uw... so that sysv4* matches it.
9911013 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9921014 exit ;;
9931015 i*86:OS/2:*:*)
10191041 fi
10201042 exit ;;
10211043 i*86:*:5:[678]*)
1022 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1044 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10231045 case `/bin/uname -X | grep "^Machine"` in
10241046 *486*) UNAME_MACHINE=i486 ;;
10251047 *Pentium) UNAME_MACHINE=i586 ;;
10471069 exit ;;
10481070 pc:*:*:*)
10491071 # Left here for compatibility:
1050 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1051 # the processor, so we play safe by assuming i586.
1072 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1073 # the processor, so we play safe by assuming i586.
10521074 # Note: whatever this is, it MUST be the same as what config.sub
10531075 # prints for the "djgpp" host, or else GDB configury will decide that
10541076 # this is a cross-build.
10551077 echo i586-pc-msdosdjgpp
1056 exit ;;
1078 exit ;;
10571079 Intel:Mach:3*:*)
10581080 echo i386-pc-mach3
10591081 exit ;;
10881110 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
10891111 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10901112 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1091 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092 && { echo i486-ncr-sysv4; exit; } ;;
1113 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1114 && { echo i486-ncr-sysv4; exit; } ;;
10931115 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10941116 OS_REL='.3'
10951117 test -r /etc/.relid \
11321154 echo ns32k-sni-sysv
11331155 fi
11341156 exit ;;
1135 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1136 # says <Richard.M.Bartel@ccMail.Census.GOV>
1137 echo i586-unisys-sysv4
1138 exit ;;
1157 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1158 # says <Richard.M.Bartel@ccMail.Census.GOV>
1159 echo i586-unisys-sysv4
1160 exit ;;
11391161 *:UNIX_System_V:4*:FTX*)
11401162 # From Gerald Hewes <hewes@openmarket.com>.
11411163 # How about differentiating between stratus architectures? -djm
11611183 exit ;;
11621184 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11631185 if [ -d /usr/nec ]; then
1164 echo mips-nec-sysv${UNAME_RELEASE}
1186 echo mips-nec-sysv${UNAME_RELEASE}
11651187 else
1166 echo mips-unknown-sysv${UNAME_RELEASE}
1167 fi
1168 exit ;;
1188 echo mips-unknown-sysv${UNAME_RELEASE}
1189 fi
1190 exit ;;
11691191 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11701192 echo powerpc-be-beos
11711193 exit ;;
12301252 *:QNX:*:4*)
12311253 echo i386-pc-qnx
12321254 exit ;;
1255 NEO-?:NONSTOP_KERNEL:*:*)
1256 echo neo-tandem-nsk${UNAME_RELEASE}
1257 exit ;;
12331258 NSE-?:NONSTOP_KERNEL:*:*)
12341259 echo nse-tandem-nsk${UNAME_RELEASE}
12351260 exit ;;
12751300 echo pdp10-unknown-its
12761301 exit ;;
12771302 SEI:*:*:SEIUX)
1278 echo mips-sei-seiux${UNAME_RELEASE}
1303 echo mips-sei-seiux${UNAME_RELEASE}
12791304 exit ;;
12801305 *:DragonFly:*:*)
12811306 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
12821307 exit ;;
12831308 *:*VMS:*:*)
1284 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1309 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12851310 case "${UNAME_MACHINE}" in
12861311 A*) echo alpha-dec-vms ; exit ;;
12871312 I*) echo ia64-dec-vms ; exit ;;
12981323 exit ;;
12991324 i*86:AROS:*:*)
13001325 echo ${UNAME_MACHINE}-pc-aros
1326 exit ;;
1327 x86_64:VMkernel:*:*)
1328 echo ${UNAME_MACHINE}-unknown-esx
13011329 exit ;;
13021330 esac
13031331
13211349 #include <sys/param.h>
13221350 printf ("m68k-sony-newsos%s\n",
13231351 #ifdef NEWSOS4
1324 "4"
1352 "4"
13251353 #else
1326 ""
1327 #endif
1328 ); exit (0);
1354 ""
1355 #endif
1356 ); exit (0);
13291357 #endif
13301358 #endif
13311359
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-01-22'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-10'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
2020 # GNU General Public License for more details.
2121 #
2222 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
23 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2624 #
2725 # As a special exception to the GNU General Public License, if you
2826 # distribute this file as part of a program that contains a
7573 GNU config.sub ($timestamp)
7674
7775 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
79 Software Foundation, Inc.
76 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
77 Free Software Foundation, Inc.
8078
8179 This is free software; see the source for copying conditions. There is NO
8280 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123121 # Here we must recognize all the valid KERNEL-OS combinations.
124122 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125123 case $maybe_os in
126 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
125 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
126 knetbsd*-gnu* | netbsd*-gnu* | \
128127 kopensolaris*-gnu* | \
129128 storm-chaos* | os2-emx* | rtmk-nova*)
130129 os=-$maybe_os
131130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
131 ;;
132 android-linux)
133 os=-linux-android
134 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
132135 ;;
133136 *)
134137 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
156159 os=
157160 basic_machine=$1
158161 ;;
159 -bluegene*)
160 os=-cnk
162 -bluegene*)
163 os=-cnk
161164 ;;
162165 -sim | -cisco | -oki | -wec | -winbond)
163166 os=
173176 os=-chorusos
174177 basic_machine=$1
175178 ;;
176 -chorusrdb)
177 os=-chorusrdb
179 -chorusrdb)
180 os=-chorusrdb
178181 basic_machine=$1
179 ;;
182 ;;
180183 -hiux*)
181184 os=-hiuxwe2
182185 ;;
245248 # Some are omitted here because they have special meanings below.
246249 1750a | 580 \
247250 | a29k \
251 | aarch64 | aarch64_be \
248252 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
249253 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
250254 | am33_2.0 \
251255 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
256 | be32 | be64 \
252257 | bfin \
253258 | c4x | clipper \
254259 | d10v | d30v | dlx | dsp16xx \
260 | epiphany \
255261 | fido | fr30 | frv \
256262 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
263 | hexagon \
257264 | i370 | i860 | i960 | ia64 \
258265 | ip2k | iq2000 \
266 | le32 | le64 \
259267 | lm32 \
260268 | m32c | m32r | m32rle | m68000 | m68k | m88k \
261269 | maxq | mb | microblaze | mcore | mep | metag \
281289 | moxie \
282290 | mt \
283291 | msp430 \
292 | nds32 | nds32le | nds32be \
284293 | nios | nios2 \
285294 | ns16k | ns32k \
295 | open8 \
286296 | or32 \
287297 | pdp10 | pdp11 | pj | pjl \
288 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
298 | powerpc | powerpc64 | powerpc64le | powerpcle \
289299 | pyramid \
290 | rx \
300 | rl78 | rx \
291301 | score \
292302 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293303 | sh64 | sh64le \
294304 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295305 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296 | spu | strongarm \
297 | tahoe | thumb | tic4x | tic80 | tron \
306 | spu \
307 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298308 | ubicom32 \
299 | v850 | v850e \
309 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
300310 | we32k \
301 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
311 | x86 | xc16x | xstormy16 | xtensa \
302312 | z8k | z80)
303313 basic_machine=$basic_machine-unknown
304314 ;;
305 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306 # Motorola 68HC11/12.
315 c54x)
316 basic_machine=tic54x-unknown
317 ;;
318 c55x)
319 basic_machine=tic55x-unknown
320 ;;
321 c6x)
322 basic_machine=tic6x-unknown
323 ;;
324 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
307325 basic_machine=$basic_machine-unknown
308326 os=-none
309327 ;;
311329 ;;
312330 ms1)
313331 basic_machine=mt-unknown
332 ;;
333
334 strongarm | thumb | xscale)
335 basic_machine=arm-unknown
336 ;;
337 xgate)
338 basic_machine=$basic_machine-unknown
339 os=-none
340 ;;
341 xscaleeb)
342 basic_machine=armeb-unknown
343 ;;
344
345 xscaleel)
346 basic_machine=armel-unknown
314347 ;;
315348
316349 # We use `pc' rather than `unknown'
327360 # Recognize the basic CPU types with company name.
328361 580-* \
329362 | a29k-* \
363 | aarch64-* | aarch64_be-* \
330364 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
331365 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
332366 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
333367 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
334368 | avr-* | avr32-* \
369 | be32-* | be64-* \
335370 | bfin-* | bs2000-* \
336 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
371 | c[123]* | c30-* | [cjt]90-* | c4x-* \
337372 | clipper-* | craynv-* | cydra-* \
338373 | d10v-* | d30v-* | dlx-* \
339374 | elxsi-* \
340375 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
341376 | h8300-* | h8500-* \
342377 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
378 | hexagon-* \
343379 | i*86-* | i860-* | i960-* | ia64-* \
344380 | ip2k-* | iq2000-* \
381 | le32-* | le64-* \
345382 | lm32-* \
346383 | m32c-* | m32r-* | m32rle-* \
347384 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
367404 | mmix-* \
368405 | mt-* \
369406 | msp430-* \
407 | nds32-* | nds32le-* | nds32be-* \
370408 | nios-* | nios2-* \
371409 | none-* | np1-* | ns16k-* | ns32k-* \
410 | open8-* \
372411 | orion-* \
373412 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
413 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
375414 | pyramid-* \
376 | romp-* | rs6000-* | rx-* \
415 | rl78-* | romp-* | rs6000-* | rx-* \
377416 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378417 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379418 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380419 | sparclite-* \
381 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382 | tahoe-* | thumb-* \
420 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
421 | tahoe-* \
383422 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
384 | tile-* | tilegx-* \
423 | tile*-* \
385424 | tron-* \
386425 | ubicom32-* \
387 | v850-* | v850e-* | vax-* \
426 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
427 | vax-* \
388428 | we32k-* \
389 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
429 | x86-* | x86_64-* | xc16x-* | xps100-* \
390430 | xstormy16-* | xtensa*-* \
391431 | ymp-* \
392432 | z8k-* | z80-*)
411451 basic_machine=a29k-amd
412452 os=-udi
413453 ;;
414 abacus)
454 abacus)
415455 basic_machine=abacus-unknown
416456 ;;
417457 adobe68k)
481521 basic_machine=powerpc-ibm
482522 os=-cnk
483523 ;;
524 c54x-*)
525 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
526 ;;
527 c55x-*)
528 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
529 ;;
530 c6x-*)
531 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
532 ;;
484533 c90)
485534 basic_machine=c90-cray
486535 os=-unicos
487536 ;;
488 cegcc)
537 cegcc)
489538 basic_machine=arm-unknown
490539 os=-cegcc
491540 ;;
517566 basic_machine=craynv-cray
518567 os=-unicosmp
519568 ;;
520 cr16)
569 cr16 | cr16-*)
521570 basic_machine=cr16-unknown
522571 os=-elf
523572 ;;
675724 i370-ibm* | ibm*)
676725 basic_machine=i370-ibm
677726 ;;
678 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
679727 i*86v32)
680728 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
681729 os=-sysv32
733781 basic_machine=ns32k-utek
734782 os=-sysv
735783 ;;
736 microblaze)
784 microblaze)
737785 basic_machine=microblaze-xilinx
738786 ;;
739787 mingw32)
772820 ms1-*)
773821 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
774822 ;;
823 msys)
824 basic_machine=i386-pc
825 os=-msys
826 ;;
775827 mvs)
776828 basic_machine=i370-ibm
777829 os=-mvs
830 ;;
831 nacl)
832 basic_machine=le32-unknown
833 os=-nacl
778834 ;;
779835 ncr3000)
780836 basic_machine=i486-ncr
840896 np1)
841897 basic_machine=np1-gould
842898 ;;
899 neo-tandem)
900 basic_machine=neo-tandem
901 ;;
902 nse-tandem)
903 basic_machine=nse-tandem
904 ;;
843905 nsr-tandem)
844906 basic_machine=nsr-tandem
845907 ;;
922984 ;;
923985 power) basic_machine=power-ibm
924986 ;;
925 ppc) basic_machine=powerpc-unknown
926 ;;
927 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
987 ppc | ppcbe) basic_machine=powerpc-unknown
988 ;;
989 ppc-* | ppcbe-*)
990 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
928991 ;;
929992 ppcle | powerpclittle | ppc-le | powerpc-little)
930993 basic_machine=powerpcle-unknown
10181081 basic_machine=i860-stratus
10191082 os=-sysv4
10201083 ;;
1084 strongarm-* | thumb-*)
1085 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1086 ;;
10211087 sun2)
10221088 basic_machine=m68000-sun
10231089 ;;
10741140 basic_machine=t90-cray
10751141 os=-unicos
10761142 ;;
1077 tic54x | c54x*)
1078 basic_machine=tic54x-unknown
1079 os=-coff
1080 ;;
1081 tic55x | c55x*)
1082 basic_machine=tic55x-unknown
1083 os=-coff
1084 ;;
1085 tic6x | c6x*)
1086 basic_machine=tic6x-unknown
1087 os=-coff
1088 ;;
1089 # This must be matched before tile*.
1090 tilegx*)
1091 basic_machine=tilegx-unknown
1092 os=-linux-gnu
1093 ;;
10941143 tile*)
1095 basic_machine=tile-unknown
1144 basic_machine=$basic_machine-unknown
10961145 os=-linux-gnu
10971146 ;;
10981147 tx39)
11611210 ;;
11621211 xps | xps100)
11631212 basic_machine=xps100-honeywell
1213 ;;
1214 xscale-* | xscalee[bl]-*)
1215 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11641216 ;;
11651217 ymp)
11661218 basic_machine=ymp-cray
12591311 if [ x"$os" != x"" ]
12601312 then
12611313 case $os in
1262 # First match some system type aliases
1263 # that might get confused with valid system types.
1314 # First match some system type aliases
1315 # that might get confused with valid system types.
12641316 # -solaris* is a basic system type, with this one exception.
1265 -auroraux)
1266 os=-auroraux
1317 -auroraux)
1318 os=-auroraux
12671319 ;;
12681320 -solaris1 | -solaris1.*)
12691321 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12991351 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13001352 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13011353 | -chorusos* | -chorusrdb* | -cegcc* \
1302 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1303 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1354 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1355 | -mingw32* | -linux-gnu* | -linux-android* \
1356 | -linux-newlib* | -linux-uclibc* \
13041357 | -uxpv* | -beos* | -mpeix* | -udk* \
13051358 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13061359 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13471400 -opened*)
13481401 os=-openedition
13491402 ;;
1350 -os400*)
1403 -os400*)
13511404 os=-os400
13521405 ;;
13531406 -wince*)
13961449 -sinix*)
13971450 os=-sysv4
13981451 ;;
1399 -tpf*)
1452 -tpf*)
14001453 os=-tpf
14011454 ;;
14021455 -triton*)
14411494 -dicos*)
14421495 os=-dicos
14431496 ;;
1444 -nacl*)
1445 ;;
1497 -nacl*)
1498 ;;
14461499 -none)
14471500 ;;
14481501 *)
14651518 # system, and we'll never get to this point.
14661519
14671520 case $basic_machine in
1468 score-*)
1521 score-*)
14691522 os=-elf
14701523 ;;
1471 spu-*)
1524 spu-*)
14721525 os=-elf
14731526 ;;
14741527 *-acorn)
14801533 arm*-semi)
14811534 os=-aout
14821535 ;;
1483 c4x-* | tic4x-*)
1484 os=-coff
1536 c4x-* | tic4x-*)
1537 os=-coff
1538 ;;
1539 tic54x-*)
1540 os=-coff
1541 ;;
1542 tic55x-*)
1543 os=-coff
1544 ;;
1545 tic6x-*)
1546 os=-coff
14851547 ;;
14861548 # This must come before the *-dec entry.
14871549 pdp10-*)
15011563 ;;
15021564 m68000-sun)
15031565 os=-sunos3
1504 # This also exists in the configure program, but was not the
1505 # default.
1506 # os=-sunos4
15071566 ;;
15081567 m68*-cisco)
15091568 os=-aout
15101569 ;;
1511 mep-*)
1570 mep-*)
15121571 os=-elf
15131572 ;;
15141573 mips*-cisco)
15351594 *-ibm)
15361595 os=-aix
15371596 ;;
1538 *-knuth)
1597 *-knuth)
15391598 os=-mmixware
15401599 ;;
15411600 *-wec)
+1916
-1006
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.67 for vo-aacenc 0.1.1.
2 # Generated by GNU Autoconf 2.68 for vo-aacenc 0.1.2.
33 #
44 # Report bugs to <http://sourceforge.net/projects/opencore-amr/>.
55 #
9090 IFS=" "" $as_nl"
9191
9292 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
9394 case $0 in #((
9495 *[\\/]* ) as_myself=$0 ;;
9596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
172173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
175184 test \$(( 1 + 1 )) = 2 || exit 1"
176185 if (eval "$as_required") 2>/dev/null; then :
177186 as_have_required=yes
215224 # We cannot yet assume a decent shell, so we have to provide a
216225 # neutralization value for shells without unset; and this also
217226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
218228 BASH_ENV=/dev/null
219229 ENV=/dev/null
220230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221231 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 case $- in # ((((
233 *v*x* | *x*v* ) as_opts=-vx ;;
234 *v* ) as_opts=-v ;;
235 *x* ) as_opts=-x ;;
236 * ) as_opts= ;;
237 esac
238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
223239 fi
224240
225241 if test x$as_have_required = xno; then :
527543 # Sed expression to map a string onto a valid variable name.
528544 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529545
530
531
532 # Check that we are running under the correct shell.
533546 SHELL=${CONFIG_SHELL-/bin/sh}
534
535 case X$lt_ECHO in
536 X*--fallback-echo)
537 # Remove one level of quotation (which was required for Make).
538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 ;;
540 esac
541
542 ECHO=${lt_ECHO-echo}
543 if test "X$1" = X--no-reexec; then
544 # Discard the --no-reexec flag, and continue.
545 shift
546 elif test "X$1" = X--fallback-echo; then
547 # Avoid inline document here, it may be left over
548 :
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550 # Yippee, $ECHO works!
551 :
552 else
553 # Restart under the correct shell.
554 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 fi
556
557 if test "X$1" = X--fallback-echo; then
558 # used as fallback echo
559 shift
560 cat <<_LT_EOF
561 $*
562 _LT_EOF
563 exit 0
564 fi
565
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 # if CDPATH is set.
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570 if test -z "$lt_ECHO"; then
571 if test "X${echo_test_string+set}" != Xset; then
572 # find a string as large as possible, as long as the shell can cope with it
573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577 then
578 break
579 fi
580 done
581 fi
582
583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
586 :
587 else
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
591 #
592 # So, first we look for a working echo in the user's PATH.
593
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
596 IFS="$lt_save_ifs"
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
601 ECHO="$dir/echo"
602 break
603 fi
604 done
605 IFS="$lt_save_ifs"
606
607 if test "X$ECHO" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
613 ECHO='print -r'
614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
620 export CONFIG_SHELL
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622 else
623 # Try using printf.
624 ECHO='printf %s\n'
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 # Cool, printf works
629 :
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 export CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
637 export SHELL
638 ECHO="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 else
645 # maybe with a smaller string...
646 prev=:
647
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650 then
651 break
652 fi
653 prev="$cmd"
654 done
655
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 else
661 # Oops. We lost completely, so just stick with echo.
662 ECHO=echo
663 fi
664 fi
665 fi
666 fi
667 fi
668 fi
669
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 lt_ECHO=$ECHO
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675 fi
676
677
678547
679548
680549 test -n "$DJDIR" || exec 7<&0 </dev/null
700569 # Identity of this package.
701570 PACKAGE_NAME='vo-aacenc'
702571 PACKAGE_TARNAME='vo-aacenc'
703 PACKAGE_VERSION='0.1.1'
704 PACKAGE_STRING='vo-aacenc 0.1.1'
572 PACKAGE_VERSION='0.1.2'
573 PACKAGE_STRING='vo-aacenc 0.1.2'
705574 PACKAGE_BUGREPORT='http://sourceforge.net/projects/opencore-amr/'
706575 PACKAGE_URL=''
707576
753622 LIPO
754623 NMEDIT
755624 DSYMUTIL
756 lt_ECHO
625 MANIFEST_TOOL
757626 RANLIB
627 ac_ct_AR
758628 AR
629 DLLTOOL
759630 OBJDUMP
760631 LN_S
761632 NM
775646 am__fastdepCC_FALSE
776647 am__fastdepCC_TRUE
777648 CCDEPMODE
649 am__nodep
778650 AMDEPBACKSLASH
779651 AMDEP_FALSE
780652 AMDEP_TRUE
807679 MAINTAINER_MODE_TRUE
808680 AM_BACKSLASH
809681 AM_DEFAULT_VERBOSITY
682 AM_DEFAULT_V
683 AM_V
810684 am__untar
811685 am__tar
812686 AMTAR
882756 with_pic
883757 enable_fast_install
884758 with_gnu_ld
759 with_sysroot
885760 enable_libtool_lock
886761 '
887762 ac_precious_vars='build_alias
12991174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13001175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
13011176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
13031178 ;;
13041179
13051180 esac
14371312 # Omit some internal or obsolete options to make the list less imposing.
14381313 # This message is too long to be a string in the A/UX 3.1 sh.
14391314 cat <<_ACEOF
1440 \`configure' configures vo-aacenc 0.1.1 to adapt to many kinds of systems.
1315 \`configure' configures vo-aacenc 0.1.2 to adapt to many kinds of systems.
14411316
14421317 Usage: $0 [OPTION]... [VAR=VALUE]...
14431318
15071382
15081383 if test -n "$ac_init_help"; then
15091384 case $ac_init_help in
1510 short | recursive ) echo "Configuration of vo-aacenc 0.1.1:";;
1385 short | recursive ) echo "Configuration of vo-aacenc 0.1.2:";;
15111386 esac
15121387 cat <<\_ACEOF
15131388
15331408 Optional Packages:
15341409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
15351410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --with-pic try to use only PIC/non-PIC objects [default=use
1411 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
15371412 both]
15381413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1414 --with-sysroot=DIR Search for dependent libraries within DIR
1415 (or the compiler's sysroot if not specified).
15391416
15401417 Some influential environment variables:
15411418 CC C compiler command
16151492 test -n "$ac_init_help" && exit $ac_status
16161493 if $ac_init_version; then
16171494 cat <<\_ACEOF
1618 vo-aacenc configure 0.1.1
1619 generated by GNU Autoconf 2.67
1495 vo-aacenc configure 0.1.2
1496 generated by GNU Autoconf 2.68
16201497
16211498 Copyright (C) 2010 Free Software Foundation, Inc.
16221499 This configure script is free software; the Free Software Foundation
16621539
16631540 ac_retval=1
16641541 fi
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16661543 as_fn_set_status $ac_retval
16671544
16681545 } # ac_fn_c_try_compile
17081585 # interfere with the next link command; also delete a directory that is
17091586 # left behind by Apple's compiler. We do this before executing the actions.
17101587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17121589 as_fn_set_status $ac_retval
17131590
17141591 } # ac_fn_c_try_link
17221599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17231600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17241601 $as_echo_n "checking for $2... " >&6; }
1725 if eval "test \"\${$3+set}\"" = set; then :
1602 if eval \${$3+:} false; then :
17261603 $as_echo_n "(cached) " >&6
17271604 else
17281605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401617 eval ac_res=\$$3
17411618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17421619 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17441621
17451622 } # ac_fn_c_check_header_compile
17461623
17761653
17771654 ac_retval=1
17781655 fi
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17801657 as_fn_set_status $ac_retval
17811658
17821659 } # ac_fn_c_try_cpp
18181695 ac_retval=$ac_status
18191696 fi
18201697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18221699 as_fn_set_status $ac_retval
18231700
18241701 } # ac_fn_c_try_run
18311708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18321709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18331710 $as_echo_n "checking for $2... " >&6; }
1834 if eval "test \"\${$3+set}\"" = set; then :
1711 if eval \${$3+:} false; then :
18351712 $as_echo_n "(cached) " >&6
18361713 else
18371714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861763 eval ac_res=\$$3
18871764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18881765 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18901767
18911768 } # ac_fn_c_check_func
18921769 cat >config.log <<_ACEOF
18931770 This file contains any messages produced by compilers while
18941771 running configure, to aid debugging if configure makes a mistake.
18951772
1896 It was created by vo-aacenc $as_me 0.1.1, which was
1897 generated by GNU Autoconf 2.67. Invocation command line was
1773 It was created by vo-aacenc $as_me 0.1.2, which was
1774 generated by GNU Autoconf 2.68. Invocation command line was
18981775
18991776 $ $0 $@
19001777
21522029 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21532030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21542031 as_fn_error $? "failed to load site script $ac_site_file
2155 See \`config.log' for more details" "$LINENO" 5 ; }
2032 See \`config.log' for more details" "$LINENO" 5; }
21562033 fi
21572034 done
21582035
22902167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22912168 $as_echo_n "checking for a BSD-compatible install... " >&6; }
22922169 if test -z "$INSTALL"; then
2293 if test "${ac_cv_path_install+set}" = set; then :
2170 if ${ac_cv_path_install+:} false; then :
22942171 $as_echo_n "(cached) " >&6
22952172 else
22962173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23772254 '
23782255 case `pwd` in
23792256 *[\\\"\#\$\&\'\`$am_lf]*)
2380 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2257 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
23812258 esac
23822259 case $srcdir in
23832260 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2384 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2261 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
23852262 esac
23862263
23872264 # Do `set' in a subshell so we don't clobber the current shell's
24672344 set dummy ${ac_tool_prefix}strip; ac_word=$2
24682345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24692346 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_STRIP+set}" = set; then :
2347 if ${ac_cv_prog_STRIP+:} false; then :
24712348 $as_echo_n "(cached) " >&6
24722349 else
24732350 if test -n "$STRIP"; then
25072384 set dummy strip; ac_word=$2
25082385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25092386 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2387 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
25112388 $as_echo_n "(cached) " >&6
25122389 else
25132390 if test -n "$ac_ct_STRIP"; then
25602437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
25612438 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25622439 if test -z "$MKDIR_P"; then
2563 if test "${ac_cv_path_mkdir+set}" = set; then :
2440 if ${ac_cv_path_mkdir+:} false; then :
25642441 $as_echo_n "(cached) " >&6
25652442 else
25662443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26112488 set dummy $ac_prog; ac_word=$2
26122489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26132490 $as_echo_n "checking for $ac_word... " >&6; }
2614 if test "${ac_cv_prog_AWK+set}" = set; then :
2491 if ${ac_cv_prog_AWK+:} false; then :
26152492 $as_echo_n "(cached) " >&6
26162493 else
26172494 if test -n "$AWK"; then
26512528 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26522529 set x ${MAKE-make}
26532530 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2531 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
26552532 $as_echo_n "(cached) " >&6
26562533 else
26572534 cat >conftest.make <<\_ACEOF
27092586
27102587 # Define the identity of the package.
27112588 PACKAGE='vo-aacenc'
2712 VERSION='0.1.1'
2589 VERSION='0.1.2'
27132590
27142591
27152592 cat >>confdefs.h <<_ACEOF
27392616
27402617 # We need awk for the "check" target. The system "awk" is bad on
27412618 # some platforms.
2742 # Always define AMTAR for backward compatibility.
2743
2744 AMTAR=${AMTAR-"${am_missing_run}tar"}
2619 # Always define AMTAR for backward compatibility. Yes, it's still used
2620 # in the wild :-( We should find a proper way to deprecate it ...
2621 AMTAR='$${TAR-tar}'
27452622
27462623
27472624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
28172694 done
28182695 rm -rf conftest.dir
28192696
2820 if test "${am_cv_prog_tar_ustar+set}" = set; then :
2697 if ${am_cv_prog_tar_ustar+:} false; then :
28212698 $as_echo_n "(cached) " >&6
28222699 else
28232700 am_cv_prog_tar_ustar=$_am_tool
28402717 no) AM_DEFAULT_VERBOSITY=1;;
28412718 *) AM_DEFAULT_VERBOSITY=0;;
28422719 esac
2720 am_make=${MAKE-make}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2722 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2723 if ${am_cv_make_support_nested_variables+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if $as_echo 'TRUE=$(BAR$(V))
2727 BAR0=false
2728 BAR1=true
2729 V=1
2730 am__doit:
2731 @$(TRUE)
2732 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2733 am_cv_make_support_nested_variables=yes
2734 else
2735 am_cv_make_support_nested_variables=no
2736 fi
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2739 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2740 if test $am_cv_make_support_nested_variables = yes; then
2741 AM_V='$(V)'
2742 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2743 else
2744 AM_V=$AM_DEFAULT_VERBOSITY
2745 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2746 fi
28432747 AM_BACKSLASH='\'
28442748
28452749 ac_config_headers="$ac_config_headers config.h"
28752779
28762780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
28772781 $as_echo_n "checking build system type... " >&6; }
2878 if test "${ac_cv_build+set}" = set; then :
2782 if ${ac_cv_build+:} false; then :
28792783 $as_echo_n "(cached) " >&6
28802784 else
28812785 ac_build_alias=$build_alias
28912795 $as_echo "$ac_cv_build" >&6; }
28922796 case $ac_cv_build in
28932797 *-*-*) ;;
2894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2798 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
28952799 esac
28962800 build=$ac_cv_build
28972801 ac_save_IFS=$IFS; IFS='-'
29092813
29102814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
29112815 $as_echo_n "checking host system type... " >&6; }
2912 if test "${ac_cv_host+set}" = set; then :
2816 if ${ac_cv_host+:} false; then :
29132817 $as_echo_n "(cached) " >&6
29142818 else
29152819 if test "x$host_alias" = x; then
29242828 $as_echo "$ac_cv_host" >&6; }
29252829 case $ac_cv_host in
29262830 *-*-*) ;;
2927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2831 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
29282832 esac
29292833 host=$ac_cv_host
29302834 ac_save_IFS=$IFS; IFS='-'
30442948 if test "x$enable_dependency_tracking" != xno; then
30452949 am_depcomp="$ac_aux_dir/depcomp"
30462950 AMDEPBACKSLASH='\'
2951 am__nodep='_no'
30472952 fi
30482953 if test "x$enable_dependency_tracking" != xno; then
30492954 AMDEP_TRUE=
30642969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30652970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30662971 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then :
2972 if ${ac_cv_prog_CC+:} false; then :
30682973 $as_echo_n "(cached) " >&6
30692974 else
30702975 if test -n "$CC"; then
31043009 set dummy gcc; ac_word=$2
31053010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31063011 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
31083013 $as_echo_n "(cached) " >&6
31093014 else
31103015 if test -n "$ac_ct_CC"; then
31573062 set dummy ${ac_tool_prefix}cc; ac_word=$2
31583063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31593064 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_CC+set}" = set; then :
3065 if ${ac_cv_prog_CC+:} false; then :
31613066 $as_echo_n "(cached) " >&6
31623067 else
31633068 if test -n "$CC"; then
31973102 set dummy cc; ac_word=$2
31983103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31993104 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_CC+set}" = set; then :
3105 if ${ac_cv_prog_CC+:} false; then :
32013106 $as_echo_n "(cached) " >&6
32023107 else
32033108 if test -n "$CC"; then
32563161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32573162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32583163 $as_echo_n "checking for $ac_word... " >&6; }
3259 if test "${ac_cv_prog_CC+set}" = set; then :
3164 if ${ac_cv_prog_CC+:} false; then :
32603165 $as_echo_n "(cached) " >&6
32613166 else
32623167 if test -n "$CC"; then
33003205 set dummy $ac_prog; ac_word=$2
33013206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33023207 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3208 if ${ac_cv_prog_ac_ct_CC+:} false; then :
33043209 $as_echo_n "(cached) " >&6
33053210 else
33063211 if test -n "$ac_ct_CC"; then
33553260 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33563261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33573262 as_fn_error $? "no acceptable C compiler found in \$PATH
3358 See \`config.log' for more details" "$LINENO" 5 ; }
3263 See \`config.log' for more details" "$LINENO" 5; }
33593264
33603265 # Provide some information about the compiler.
33613266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
34703375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34713376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34723377 as_fn_error 77 "C compiler cannot create executables
3473 See \`config.log' for more details" "$LINENO" 5 ; }
3378 See \`config.log' for more details" "$LINENO" 5; }
34743379 else
34753380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34763381 $as_echo "yes" >&6; }
35133418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35143419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35153420 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3516 See \`config.log' for more details" "$LINENO" 5 ; }
3421 See \`config.log' for more details" "$LINENO" 5; }
35173422 fi
35183423 rm -f conftest conftest$ac_cv_exeext
35193424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
35723477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35733478 as_fn_error $? "cannot run C compiled programs.
35743479 If you meant to cross compile, use \`--host'.
3575 See \`config.log' for more details" "$LINENO" 5 ; }
3480 See \`config.log' for more details" "$LINENO" 5; }
35763481 fi
35773482 fi
35783483 fi
35833488 ac_clean_files=$ac_clean_files_save
35843489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35853490 $as_echo_n "checking for suffix of object files... " >&6; }
3586 if test "${ac_cv_objext+set}" = set; then :
3491 if ${ac_cv_objext+:} false; then :
35873492 $as_echo_n "(cached) " >&6
35883493 else
35893494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36243529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36253530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36263531 as_fn_error $? "cannot compute suffix of object files: cannot compile
3627 See \`config.log' for more details" "$LINENO" 5 ; }
3532 See \`config.log' for more details" "$LINENO" 5; }
36283533 fi
36293534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
36303535 fi
36343539 ac_objext=$OBJEXT
36353540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
36363541 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3637 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3542 if ${ac_cv_c_compiler_gnu+:} false; then :
36383543 $as_echo_n "(cached) " >&6
36393544 else
36403545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36713576 ac_save_CFLAGS=$CFLAGS
36723577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36733578 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3674 if test "${ac_cv_prog_cc_g+set}" = set; then :
3579 if ${ac_cv_prog_cc_g+:} false; then :
36753580 $as_echo_n "(cached) " >&6
36763581 else
36773582 ac_save_c_werror_flag=$ac_c_werror_flag
37493654 fi
37503655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
37513656 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3752 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3657 if ${ac_cv_prog_cc_c89+:} false; then :
37533658 $as_echo_n "(cached) " >&6
37543659 else
37553660 ac_cv_prog_cc_c89=no
38483753
38493754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
38503755 $as_echo_n "checking dependency style of $depcc... " >&6; }
3851 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3756 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
38523757 $as_echo_n "(cached) " >&6
38533758 else
38543759 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
38573762 # instance it was reported that on HP-UX the gcc test will end up
38583763 # making a dummy file named `D' -- because `-MD' means `put the output
38593764 # in D'.
3765 rm -rf conftest.dir
38603766 mkdir conftest.dir
38613767 # Copy depcomp to subdir because otherwise we won't find it if we're
38623768 # using a relative directory.
39163822 break
39173823 fi
39183824 ;;
3919 msvisualcpp | msvcmsys)
3825 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
39203826 # This compiler won't grok `-c -o', but also, the minuso test has
39213827 # not run yet. These depmodes are late enough in the game, and
39223828 # so weak that their functioning should not be impacted.
39823888
39833889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
39843890 $as_echo_n "checking dependency style of $depcc... " >&6; }
3985 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
3891 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
39863892 $as_echo_n "(cached) " >&6
39873893 else
39883894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
39913897 # instance it was reported that on HP-UX the gcc test will end up
39923898 # making a dummy file named `D' -- because `-MD' means `put the output
39933899 # in D'.
3900 rm -rf conftest.dir
39943901 mkdir conftest.dir
39953902 # Copy depcomp to subdir because otherwise we won't find it if we're
39963903 # using a relative directory.
40483955 break
40493956 fi
40503957 ;;
4051 msvisualcpp | msvcmsys)
3958 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
40523959 # This compiler won't grok `-c -o', but also, the minuso test has
40533960 # not run yet. These depmodes are late enough in the game, and
40543961 # so weak that their functioning should not be impacted.
41054012
41064013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
41074014 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4108 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4015 if ${ac_cv_prog_cc_c99+:} false; then :
41094016 $as_echo_n "(cached) " >&6
41104017 else
41114018 ac_cv_prog_cc_c99=no
42904197
42914198
42924199
4293 macro_version='2.2.6b'
4294 macro_revision='1.3017'
4200 macro_version='2.4.2'
4201 macro_revision='1.3337'
42954202
42964203
42974204
43064213
43074214
43084215 ltmain="$ac_aux_dir/ltmain.sh"
4216
4217 # Backslashify metacharacters that are still active within
4218 # double-quoted strings.
4219 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4220
4221 # Same as above, but do not quote variable references.
4222 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4223
4224 # Sed substitution to delay expansion of an escaped shell variable in a
4225 # double_quote_subst'ed string.
4226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4227
4228 # Sed substitution to delay expansion of an escaped single quote.
4229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4230
4231 # Sed substitution to avoid accidental globbing in evaled expressions
4232 no_glob_subst='s/\*/\\\*/g'
4233
4234 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4236 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4239 $as_echo_n "checking how to print strings... " >&6; }
4240 # Test print first, because it will be a builtin if present.
4241 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4242 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4243 ECHO='print -r --'
4244 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4245 ECHO='printf %s\n'
4246 else
4247 # Use this function as a fallback that always works.
4248 func_fallback_echo ()
4249 {
4250 eval 'cat <<_LTECHO_EOF
4251 $1
4252 _LTECHO_EOF'
4253 }
4254 ECHO='func_fallback_echo'
4255 fi
4256
4257 # func_echo_all arg...
4258 # Invoke $ECHO with all args, space-separated.
4259 func_echo_all ()
4260 {
4261 $ECHO ""
4262 }
4263
4264 case "$ECHO" in
4265 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4266 $as_echo "printf" >&6; } ;;
4267 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4268 $as_echo "print -r" >&6; } ;;
4269 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4270 $as_echo "cat" >&6; } ;;
4271 esac
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
43094285
43104286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
43114287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4312 if test "${ac_cv_path_SED+set}" = set; then :
4288 if ${ac_cv_path_SED+:} false; then :
43134289 $as_echo_n "(cached) " >&6
43144290 else
43154291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
43914367
43924368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
43934369 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4394 if test "${ac_cv_path_GREP+set}" = set; then :
4370 if ${ac_cv_path_GREP+:} false; then :
43954371 $as_echo_n "(cached) " >&6
43964372 else
43974373 if test -z "$GREP"; then
44544430
44554431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
44564432 $as_echo_n "checking for egrep... " >&6; }
4457 if test "${ac_cv_path_EGREP+set}" = set; then :
4433 if ${ac_cv_path_EGREP+:} false; then :
44584434 $as_echo_n "(cached) " >&6
44594435 else
44604436 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
45214497
45224498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
45234499 $as_echo_n "checking for fgrep... " >&6; }
4524 if test "${ac_cv_path_FGREP+set}" = set; then :
4500 if ${ac_cv_path_FGREP+:} false; then :
45254501 $as_echo_n "(cached) " >&6
45264502 else
45274503 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
46524628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
46534629 $as_echo_n "checking for non-GNU ld... " >&6; }
46544630 fi
4655 if test "${lt_cv_path_LD+set}" = set; then :
4631 if ${lt_cv_path_LD+:} false; then :
46564632 $as_echo_n "(cached) " >&6
46574633 else
46584634 if test -z "$LD"; then
46924668 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
46934669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
46944670 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4695 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4671 if ${lt_cv_prog_gnu_ld+:} false; then :
46964672 $as_echo_n "(cached) " >&6
46974673 else
46984674 # I'd rather use --version here, but apparently some GNU lds only accept -v.
47194695
47204696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
47214697 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4722 if test "${lt_cv_path_NM+set}" = set; then :
4698 if ${lt_cv_path_NM+:} false; then :
47234699 $as_echo_n "(cached) " >&6
47244700 else
47254701 if test -n "$NM"; then
47724748 NM="$lt_cv_path_NM"
47734749 else
47744750 # Didn't find any BSD compatible name lister, look for dumpbin.
4775 if test -n "$ac_tool_prefix"; then
4776 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4751 if test -n "$DUMPBIN"; then :
4752 # Let the user override the test.
4753 else
4754 if test -n "$ac_tool_prefix"; then
4755 for ac_prog in dumpbin "link -dump"
47774756 do
47784757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
47794758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
47804759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47814760 $as_echo_n "checking for $ac_word... " >&6; }
4782 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4761 if ${ac_cv_prog_DUMPBIN+:} false; then :
47834762 $as_echo_n "(cached) " >&6
47844763 else
47854764 if test -n "$DUMPBIN"; then
48174796 fi
48184797 if test -z "$DUMPBIN"; then
48194798 ac_ct_DUMPBIN=$DUMPBIN
4820 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4799 for ac_prog in dumpbin "link -dump"
48214800 do
48224801 # Extract the first word of "$ac_prog", so it can be a program name with args.
48234802 set dummy $ac_prog; ac_word=$2
48244803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48254804 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4805 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
48274806 $as_echo_n "(cached) " >&6
48284807 else
48294808 if test -n "$ac_ct_DUMPBIN"; then
48724851 fi
48734852 fi
48744853
4854 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4855 *COFF*)
4856 DUMPBIN="$DUMPBIN -symbols"
4857 ;;
4858 *)
4859 DUMPBIN=:
4860 ;;
4861 esac
4862 fi
48754863
48764864 if test "$DUMPBIN" != ":"; then
48774865 NM="$DUMPBIN"
48864874
48874875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
48884876 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4889 if test "${lt_cv_nm_interface+set}" = set; then :
4877 if ${lt_cv_nm_interface+:} false; then :
48904878 $as_echo_n "(cached) " >&6
48914879 else
48924880 lt_cv_nm_interface="BSD nm"
48934881 echo "int some_variable = 0;" > conftest.$ac_ext
4894 (eval echo "\"\$as_me:4895: $ac_compile\"" >&5)
4882 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
48954883 (eval "$ac_compile" 2>conftest.err)
48964884 cat conftest.err >&5
4897 (eval echo "\"\$as_me:4898: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4885 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
48984886 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
48994887 cat conftest.err >&5
4900 (eval echo "\"\$as_me:4901: output\"" >&5)
4888 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
49014889 cat conftest.out >&5
49024890 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
49034891 lt_cv_nm_interface="MS dumpbin"
49214909 # find the maximum length of command line arguments
49224910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
49234911 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4924 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4912 if ${lt_cv_sys_max_cmd_len+:} false; then :
49254913 $as_echo_n "(cached) " >&6
49264914 else
49274915 i=0
49514939 # the test eventually succeeds (with a max line length of 256k).
49524940 # Instead, let's just punt: use the minimum linelength reported by
49534941 # all of the supported platforms: 8192 (on NT/2K/XP).
4942 lt_cv_sys_max_cmd_len=8192;
4943 ;;
4944
4945 mint*)
4946 # On MiNT this can take a long time and run out of memory.
49544947 lt_cv_sys_max_cmd_len=8192;
49554948 ;;
49564949
49774970 interix*)
49784971 # We know the value 262144 and hardcode it with a safety zone (like BSD)
49794972 lt_cv_sys_max_cmd_len=196608
4973 ;;
4974
4975 os2*)
4976 # The test takes a long time on OS/2.
4977 lt_cv_sys_max_cmd_len=8192
49804978 ;;
49814979
49824980 osf*)
50185016 # If test is not a shell built-in, we'll probably end up computing a
50195017 # maximum length that is only half of the actual maximum length, but
50205018 # we can't tell.
5021 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5022 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5019 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5020 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
50235021 test $i != 17 # 1/2 MB should be enough
50245022 do
50255023 i=`expr $i + 1`
50615059 # Try some XSI features
50625060 xsi_shell=no
50635061 ( _lt_dummy="a/b/c"
5064 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5065 = c,a/b,, \
5062 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5063 = c,a/b,b/c, \
50665064 && eval 'test $(( 1 + 1 )) -eq 2 \
50675065 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
50685066 && xsi_shell=yes
51115109
51125110
51135111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5113 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5114 if ${lt_cv_to_host_file_cmd+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 case $host in
5118 *-*-mingw* )
5119 case $build in
5120 *-*-mingw* ) # actually msys
5121 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5122 ;;
5123 *-*-cygwin* )
5124 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5125 ;;
5126 * ) # otherwise, assume *nix
5127 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5128 ;;
5129 esac
5130 ;;
5131 *-*-cygwin* )
5132 case $build in
5133 *-*-mingw* ) # actually msys
5134 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5135 ;;
5136 *-*-cygwin* )
5137 lt_cv_to_host_file_cmd=func_convert_file_noop
5138 ;;
5139 * ) # otherwise, assume *nix
5140 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5141 ;;
5142 esac
5143 ;;
5144 * ) # unhandled hosts (and "normal" native builds)
5145 lt_cv_to_host_file_cmd=func_convert_file_noop
5146 ;;
5147 esac
5148
5149 fi
5150
5151 to_host_file_cmd=$lt_cv_to_host_file_cmd
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5153 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5154
5155
5156
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5160 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5161 if ${lt_cv_to_tool_file_cmd+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 #assume ordinary cross tools, or native build.
5165 lt_cv_to_tool_file_cmd=func_convert_file_noop
5166 case $host in
5167 *-*-mingw* )
5168 case $build in
5169 *-*-mingw* ) # actually msys
5170 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5171 ;;
5172 esac
5173 ;;
5174 esac
5175
5176 fi
5177
5178 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5180 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5181
5182
5183
5184
5185
51145186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
51155187 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5116 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5188 if ${lt_cv_ld_reload_flag+:} false; then :
51175189 $as_echo_n "(cached) " >&6
51185190 else
51195191 lt_cv_ld_reload_flag='-r'
51275199 esac
51285200 reload_cmds='$LD$reload_flag -o $output$reload_objs'
51295201 case $host_os in
5202 cygwin* | mingw* | pw32* | cegcc*)
5203 if test "$GCC" != yes; then
5204 reload_cmds=false
5205 fi
5206 ;;
51305207 darwin*)
51315208 if test "$GCC" = yes; then
51325209 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
51495226 set dummy ${ac_tool_prefix}objdump; ac_word=$2
51505227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51515228 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5229 if ${ac_cv_prog_OBJDUMP+:} false; then :
51535230 $as_echo_n "(cached) " >&6
51545231 else
51555232 if test -n "$OBJDUMP"; then
51895266 set dummy objdump; ac_word=$2
51905267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51915268 $as_echo_n "checking for $ac_word... " >&6; }
5192 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5269 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
51935270 $as_echo_n "(cached) " >&6
51945271 else
51955272 if test -n "$ac_ct_OBJDUMP"; then
52485325
52495326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
52505327 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5251 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5328 if ${lt_cv_deplibs_check_method+:} false; then :
52525329 $as_echo_n "(cached) " >&6
52535330 else
52545331 lt_cv_file_magic_cmd='$MAGIC_CMD'
52905367 # Base MSYS/MinGW do not provide the 'file' command needed by
52915368 # func_win32_libid shell function, so use a weaker test based on 'objdump',
52925369 # unless we find 'file', for example because we are cross-compiling.
5293 if ( file / ) >/dev/null 2>&1; then
5370 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5371 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
52945372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
52955373 lt_cv_file_magic_cmd='func_win32_libid'
52965374 else
5297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5375 # Keep this pattern in sync with the one in func_win32_libid.
5376 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
52985377 lt_cv_file_magic_cmd='$OBJDUMP -f'
52995378 fi
53005379 ;;
53015380
5302 cegcc)
5381 cegcc*)
53035382 # use the weaker test based on 'objdump'. See mingw*.
53045383 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
53055384 lt_cv_file_magic_cmd='$OBJDUMP -f'
53295408 lt_cv_deplibs_check_method=pass_all
53305409 ;;
53315410
5411 haiku*)
5412 lt_cv_deplibs_check_method=pass_all
5413 ;;
5414
53325415 hpux10.20* | hpux11*)
53335416 lt_cv_file_magic_cmd=/usr/bin/file
53345417 case $host_cpu in
53375420 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
53385421 ;;
53395422 hppa*64*)
5340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
53415424 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
53425425 ;;
53435426 *)
5344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
53455428 lt_cv_file_magic_test_file=/usr/lib/libc.sl
53465429 ;;
53475430 esac
53625445 lt_cv_deplibs_check_method=pass_all
53635446 ;;
53645447
5365 # This must be Linux ELF.
5448 # This must be glibc/ELF.
53665449 linux* | k*bsd*-gnu | kopensolaris*-gnu)
53675450 lt_cv_deplibs_check_method=pass_all
53685451 ;;
54445527 fi
54455528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
54465529 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5530
5531 file_magic_glob=
5532 want_nocaseglob=no
5533 if test "$build" = "$host"; then
5534 case $host_os in
5535 mingw* | pw32*)
5536 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5537 want_nocaseglob=yes
5538 else
5539 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5540 fi
5541 ;;
5542 esac
5543 fi
5544
54475545 file_magic_cmd=$lt_cv_file_magic_cmd
54485546 deplibs_check_method=$lt_cv_deplibs_check_method
54495547 test -z "$deplibs_check_method" && deplibs_check_method=unknown
54595557
54605558
54615559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
54625570 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}ar; ac_word=$2
5571 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
54655573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54665574 $as_echo_n "checking for $ac_word... " >&6; }
5467 if test "${ac_cv_prog_AR+set}" = set; then :
5575 if ${ac_cv_prog_DLLTOOL+:} false; then :
54685576 $as_echo_n "(cached) " >&6
54695577 else
5470 if test -n "$AR"; then
5471 ac_cv_prog_AR="$AR" # Let the user override the test.
5578 if test -n "$DLLTOOL"; then
5579 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
54725580 else
54735581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54745582 for as_dir in $PATH
54775585 test -z "$as_dir" && as_dir=.
54785586 for ac_exec_ext in '' $ac_executable_extensions; do
54795587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_AR="${ac_tool_prefix}ar"
5588 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
54815589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54825590 break 2
54835591 fi
54875595
54885596 fi
54895597 fi
5490 AR=$ac_cv_prog_AR
5491 if test -n "$AR"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5493 $as_echo "$AR" >&6; }
5598 DLLTOOL=$ac_cv_prog_DLLTOOL
5599 if test -n "$DLLTOOL"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5601 $as_echo "$DLLTOOL" >&6; }
54945602 else
54955603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54965604 $as_echo "no" >&6; }
54985606
54995607
55005608 fi
5501 if test -z "$ac_cv_prog_AR"; then
5502 ac_ct_AR=$AR
5503 # Extract the first word of "ar", so it can be a program name with args.
5504 set dummy ar; ac_word=$2
5609 if test -z "$ac_cv_prog_DLLTOOL"; then
5610 ac_ct_DLLTOOL=$DLLTOOL
5611 # Extract the first word of "dlltool", so it can be a program name with args.
5612 set dummy dlltool; ac_word=$2
55055613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55065614 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5615 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
55085616 $as_echo_n "(cached) " >&6
55095617 else
5510 if test -n "$ac_ct_AR"; then
5511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5618 if test -n "$ac_ct_DLLTOOL"; then
5619 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
55125620 else
55135621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55145622 for as_dir in $PATH
55175625 test -z "$as_dir" && as_dir=.
55185626 for ac_exec_ext in '' $ac_executable_extensions; do
55195627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_ac_ct_AR="ar"
5628 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
55215629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55225630 break 2
55235631 fi
55275635
55285636 fi
55295637 fi
5638 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5639 if test -n "$ac_ct_DLLTOOL"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5641 $as_echo "$ac_ct_DLLTOOL" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647 if test "x$ac_ct_DLLTOOL" = x; then
5648 DLLTOOL="false"
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651 yes:)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5655 esac
5656 DLLTOOL=$ac_ct_DLLTOOL
5657 fi
5658 else
5659 DLLTOOL="$ac_cv_prog_DLLTOOL"
5660 fi
5661
5662 test -z "$DLLTOOL" && DLLTOOL=dlltool
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5674 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5675 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 lt_cv_sharedlib_from_linklib_cmd='unknown'
5679
5680 case $host_os in
5681 cygwin* | mingw* | pw32* | cegcc*)
5682 # two different shell functions defined in ltmain.sh
5683 # decide which to use based on capabilities of $DLLTOOL
5684 case `$DLLTOOL --help 2>&1` in
5685 *--identify-strict*)
5686 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5687 ;;
5688 *)
5689 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5690 ;;
5691 esac
5692 ;;
5693 *)
5694 # fallback: assume linklib IS sharedlib
5695 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5696 ;;
5697 esac
5698
5699 fi
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5701 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5702 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5703 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5704
5705
5706
5707
5708
5709
5710
5711
5712 if test -n "$ac_tool_prefix"; then
5713 for ac_prog in ar
5714 do
5715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_AR+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$AR"; then
5723 ac_cv_prog_AR="$AR" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736 done
5737 done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 AR=$ac_cv_prog_AR
5743 if test -n "$AR"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5745 $as_echo "$AR" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752 test -n "$AR" && break
5753 done
5754 fi
5755 if test -z "$AR"; then
5756 ac_ct_AR=$AR
5757 for ac_prog in ar
5758 do
5759 # Extract the first word of "$ac_prog", so it can be a program name with args.
5760 set dummy $ac_prog; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$ac_ct_AR"; then
5767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_ac_ct_AR="$ac_prog"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780 done
5781 done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
55305786 ac_ct_AR=$ac_cv_prog_ac_ct_AR
55315787 if test -n "$ac_ct_AR"; then
55325788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
55355791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55365792 $as_echo "no" >&6; }
55375793 fi
5794
5795
5796 test -n "$ac_ct_AR" && break
5797 done
55385798
55395799 if test "x$ac_ct_AR" = x; then
55405800 AR="false"
55475807 esac
55485808 AR=$ac_ct_AR
55495809 fi
5550 else
5551 AR="$ac_cv_prog_AR"
5552 fi
5553
5554 test -z "$AR" && AR=ar
5555 test -z "$AR_FLAGS" && AR_FLAGS=cru
5556
5557
5558
5559
5810 fi
5811
5812 : ${AR=ar}
5813 : ${AR_FLAGS=cru}
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5826 $as_echo_n "checking for archiver @FILE support... " >&6; }
5827 if ${lt_cv_ar_at_file+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 lt_cv_ar_at_file=no
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833
5834 int
5835 main ()
5836 {
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 if ac_fn_c_try_compile "$LINENO"; then :
5843 echo conftest.$ac_objext > conftest.lst
5844 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5846 (eval $lt_ar_try) 2>&5
5847 ac_status=$?
5848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5849 test $ac_status = 0; }
5850 if test "$ac_status" -eq 0; then
5851 # Ensure the archiver fails upon bogus file names.
5852 rm -f conftest.$ac_objext libconftest.a
5853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5854 (eval $lt_ar_try) 2>&5
5855 ac_status=$?
5856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857 test $ac_status = 0; }
5858 if test "$ac_status" -ne 0; then
5859 lt_cv_ar_at_file=@
5860 fi
5861 fi
5862 rm -f conftest.* libconftest.a
5863
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5869 $as_echo "$lt_cv_ar_at_file" >&6; }
5870
5871 if test "x$lt_cv_ar_at_file" = xno; then
5872 archiver_list_spec=
5873 else
5874 archiver_list_spec=$lt_cv_ar_at_file
5875 fi
55605876
55615877
55625878
55695885 set dummy ${ac_tool_prefix}strip; ac_word=$2
55705886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55715887 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_prog_STRIP+set}" = set; then :
5888 if ${ac_cv_prog_STRIP+:} false; then :
55735889 $as_echo_n "(cached) " >&6
55745890 else
55755891 if test -n "$STRIP"; then
56095925 set dummy strip; ac_word=$2
56105926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56115927 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5928 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
56135929 $as_echo_n "(cached) " >&6
56145930 else
56155931 if test -n "$ac_ct_STRIP"; then
56685984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
56695985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56705986 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5987 if ${ac_cv_prog_RANLIB+:} false; then :
56725988 $as_echo_n "(cached) " >&6
56735989 else
56745990 if test -n "$RANLIB"; then
57086024 set dummy ranlib; ac_word=$2
57096025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57106026 $as_echo_n "checking for $ac_word... " >&6; }
5711 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6027 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57126028 $as_echo_n "(cached) " >&6
57136029 else
57146030 if test -n "$ac_ct_RANLIB"; then
57706086 if test -n "$RANLIB"; then
57716087 case $host_os in
57726088 openbsd*)
5773 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
57746090 ;;
57756091 *)
5776 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
57776093 ;;
57786094 esac
5779 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5780 fi
6095 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6096 fi
6097
6098 case $host_os in
6099 darwin*)
6100 lock_old_archive_extraction=yes ;;
6101 *)
6102 lock_old_archive_extraction=no ;;
6103 esac
6104
6105
6106
6107
6108
57816109
57826110
57836111
58256153 # Check for command to grab the raw symbol name followed by C symbol from nm.
58266154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
58276155 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5828 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6156 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
58296157 $as_echo_n "(cached) " >&6
58306158 else
58316159
58866214 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
58876215
58886216 # Transform an extracted symbol line into symbol name and symbol address
5889 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5890 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6217 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6218 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
58916219
58926220 # Handle CRLF in mingw tool chain
58936221 opt_cr=
59116239 # which start with @ or ?.
59126240 lt_cv_sys_global_symbol_pipe="$AWK '"\
59136241 " {last_section=section; section=\$ 3};"\
6242 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
59146243 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
59156244 " \$ 0!~/External *\|/{next};"\
59166245 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
59236252 else
59246253 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
59256254 fi
6255 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
59266256
59276257 # Check to see that the pipe works correctly.
59286258 pipe_works=no
59486278 test $ac_status = 0; }; then
59496279 # Now try to grab the symbols.
59506280 nlist=conftest.nm
5951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5952 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6282 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
59536283 ac_status=$?
59546284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59556285 test $ac_status = 0; } && test -s "$nlist"; then
59646294 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
59656295 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
59666296 cat <<_LT_EOF > conftest.$ac_ext
6297 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6298 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6299 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6300 relocations are performed -- see ld's documentation on pseudo-relocs. */
6301 # define LT_DLSYM_CONST
6302 #elif defined(__osf__)
6303 /* This system does not cope well with relocations in const data. */
6304 # define LT_DLSYM_CONST
6305 #else
6306 # define LT_DLSYM_CONST const
6307 #endif
6308
59676309 #ifdef __cplusplus
59686310 extern "C" {
59696311 #endif
59756317 cat <<_LT_EOF >> conftest.$ac_ext
59766318
59776319 /* The mapping between symbol names and symbols. */
5978 const struct {
6320 LT_DLSYM_CONST struct {
59796321 const char *name;
59806322 void *address;
59816323 }
60016343 _LT_EOF
60026344 # Now try linking the two files.
60036345 mv conftest.$ac_objext conftstm.$ac_objext
6004 lt_save_LIBS="$LIBS"
6005 lt_save_CFLAGS="$CFLAGS"
6346 lt_globsym_save_LIBS=$LIBS
6347 lt_globsym_save_CFLAGS=$CFLAGS
60066348 LIBS="conftstm.$ac_objext"
60076349 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
60086350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60126354 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
60136355 pipe_works=yes
60146356 fi
6015 LIBS="$lt_save_LIBS"
6016 CFLAGS="$lt_save_CFLAGS"
6357 LIBS=$lt_globsym_save_LIBS
6358 CFLAGS=$lt_globsym_save_CFLAGS
60176359 else
60186360 echo "cannot find nm_test_func in $nlist" >&5
60196361 fi
60506392 $as_echo "ok" >&6; }
60516393 fi
60526394
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6395 # Response file support.
6396 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6397 nm_file_list_spec='@'
6398 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6399 nm_file_list_spec='@'
6400 fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6429 $as_echo_n "checking for sysroot... " >&6; }
6430
6431 # Check whether --with-sysroot was given.
6432 if test "${with_sysroot+set}" = set; then :
6433 withval=$with_sysroot;
6434 else
6435 with_sysroot=no
6436 fi
6437
6438
6439 lt_sysroot=
6440 case ${with_sysroot} in #(
6441 yes)
6442 if test "$GCC" = yes; then
6443 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6444 fi
6445 ;; #(
6446 /*)
6447 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6448 ;; #(
6449 no|'')
6450 ;; #(
6451 *)
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6453 $as_echo "${with_sysroot}" >&6; }
6454 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6455 ;;
6456 esac
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6459 $as_echo "${lt_sysroot:-no}" >&6; }
60706460
60716461
60726462
61036493 ;;
61046494 *-*-irix6*)
61056495 # Find out which ABI we are using.
6106 echo '#line 6107 "configure"' > conftest.$ac_ext
6496 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
61076497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
61086498 (eval $ac_compile) 2>&5
61096499 ac_status=$?
61976587 CFLAGS="$CFLAGS -belf"
61986588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
61996589 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6200 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6590 if ${lt_cv_cc_needs_belf+:} false; then :
62016591 $as_echo_n "(cached) " >&6
62026592 else
62036593 ac_ext=c
62386628 CFLAGS="$SAVE_CFLAGS"
62396629 fi
62406630 ;;
6241 sparc*-*solaris*)
6631 *-*solaris*)
62426632 # Find out which ABI we are using.
62436633 echo 'int i;' > conftest.$ac_ext
62446634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
62496639 case `/usr/bin/file conftest.o` in
62506640 *64-bit*)
62516641 case $lt_cv_prog_gnu_ld in
6252 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6642 yes*)
6643 case $host in
6644 i?86-*-solaris*)
6645 LD="${LD-ld} -m elf_x86_64"
6646 ;;
6647 sparc*-*-solaris*)
6648 LD="${LD-ld} -m elf64_sparc"
6649 ;;
6650 esac
6651 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6652 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6653 LD="${LD-ld}_sol2"
6654 fi
6655 ;;
62536656 *)
62546657 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
62556658 LD="${LD-ld} -64"
62656668
62666669 need_locks="$enable_libtool_lock"
62676670
6671 if test -n "$ac_tool_prefix"; then
6672 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6673 set dummy ${ac_tool_prefix}mt; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 if test -n "$MANIFEST_TOOL"; then
6680 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6700 if test -n "$MANIFEST_TOOL"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6702 $as_echo "$MANIFEST_TOOL" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708
6709 fi
6710 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6711 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6712 # Extract the first word of "mt", so it can be a program name with args.
6713 set dummy mt; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if test -n "$ac_ct_MANIFEST_TOOL"; then
6720 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6740 if test -n "$ac_ct_MANIFEST_TOOL"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6742 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6749 MANIFEST_TOOL=":"
6750 else
6751 case $cross_compiling:$ac_tool_warned in
6752 yes:)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6758 fi
6759 else
6760 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6761 fi
6762
6763 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6765 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6766 if ${lt_cv_path_mainfest_tool+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 lt_cv_path_mainfest_tool=no
6770 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6771 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6772 cat conftest.err >&5
6773 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6774 lt_cv_path_mainfest_tool=yes
6775 fi
6776 rm -f conftest*
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6779 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6780 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6781 MANIFEST_TOOL=:
6782 fi
6783
6784
6785
6786
6787
62686788
62696789 case $host_os in
62706790 rhapsody* | darwin*)
62736793 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
62746794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62756795 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6796 if ${ac_cv_prog_DSYMUTIL+:} false; then :
62776797 $as_echo_n "(cached) " >&6
62786798 else
62796799 if test -n "$DSYMUTIL"; then
63136833 set dummy dsymutil; ac_word=$2
63146834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63156835 $as_echo_n "checking for $ac_word... " >&6; }
6316 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6836 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
63176837 $as_echo_n "(cached) " >&6
63186838 else
63196839 if test -n "$ac_ct_DSYMUTIL"; then
63656885 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
63666886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63676887 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6888 if ${ac_cv_prog_NMEDIT+:} false; then :
63696889 $as_echo_n "(cached) " >&6
63706890 else
63716891 if test -n "$NMEDIT"; then
64056925 set dummy nmedit; ac_word=$2
64066926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64076927 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6928 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
64096929 $as_echo_n "(cached) " >&6
64106930 else
64116931 if test -n "$ac_ct_NMEDIT"; then
64576977 set dummy ${ac_tool_prefix}lipo; ac_word=$2
64586978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64596979 $as_echo_n "checking for $ac_word... " >&6; }
6460 if test "${ac_cv_prog_LIPO+set}" = set; then :
6980 if ${ac_cv_prog_LIPO+:} false; then :
64616981 $as_echo_n "(cached) " >&6
64626982 else
64636983 if test -n "$LIPO"; then
64977017 set dummy lipo; ac_word=$2
64987018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64997019 $as_echo_n "checking for $ac_word... " >&6; }
6500 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7020 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
65017021 $as_echo_n "(cached) " >&6
65027022 else
65037023 if test -n "$ac_ct_LIPO"; then
65497069 set dummy ${ac_tool_prefix}otool; ac_word=$2
65507070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65517071 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7072 if ${ac_cv_prog_OTOOL+:} false; then :
65537073 $as_echo_n "(cached) " >&6
65547074 else
65557075 if test -n "$OTOOL"; then
65897109 set dummy otool; ac_word=$2
65907110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65917111 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7112 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
65937113 $as_echo_n "(cached) " >&6
65947114 else
65957115 if test -n "$ac_ct_OTOOL"; then
66417161 set dummy ${ac_tool_prefix}otool64; ac_word=$2
66427162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66437163 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7164 if ${ac_cv_prog_OTOOL64+:} false; then :
66457165 $as_echo_n "(cached) " >&6
66467166 else
66477167 if test -n "$OTOOL64"; then
66817201 set dummy otool64; ac_word=$2
66827202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66837203 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7204 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
66857205 $as_echo_n "(cached) " >&6
66867206 else
66877207 if test -n "$ac_ct_OTOOL64"; then
67567276
67577277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
67587278 $as_echo_n "checking for -single_module linker flag... " >&6; }
6759 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7279 if ${lt_cv_apple_cc_single_mod+:} false; then :
67607280 $as_echo_n "(cached) " >&6
67617281 else
67627282 lt_cv_apple_cc_single_mod=no
67727292 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
67737293 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
67747294 _lt_result=$?
6775 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7295 # If there is a non-empty error log, and "single_module"
7296 # appears in it, assume the flag caused a linker warning
7297 if test -s conftest.err && $GREP single_module conftest.err; then
7298 cat conftest.err >&5
7299 # Otherwise, if the output was created with a 0 exit code from
7300 # the compiler, it worked.
7301 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
67767302 lt_cv_apple_cc_single_mod=yes
67777303 else
67787304 cat conftest.err >&5
67837309 fi
67847310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
67857311 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7312
67867313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
67877314 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6788 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7315 if ${lt_cv_ld_exported_symbols_list+:} false; then :
67897316 $as_echo_n "(cached) " >&6
67907317 else
67917318 lt_cv_ld_exported_symbols_list=no
68157342 fi
68167343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
68177344 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7345
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7347 $as_echo_n "checking for -force_load linker flag... " >&6; }
7348 if ${lt_cv_ld_force_load+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 lt_cv_ld_force_load=no
7352 cat > conftest.c << _LT_EOF
7353 int forced_loaded() { return 2;}
7354 _LT_EOF
7355 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7356 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7357 echo "$AR cru libconftest.a conftest.o" >&5
7358 $AR cru libconftest.a conftest.o 2>&5
7359 echo "$RANLIB libconftest.a" >&5
7360 $RANLIB libconftest.a 2>&5
7361 cat > conftest.c << _LT_EOF
7362 int main() { return 0;}
7363 _LT_EOF
7364 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7365 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7366 _lt_result=$?
7367 if test -s conftest.err && $GREP force_load conftest.err; then
7368 cat conftest.err >&5
7369 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7370 lt_cv_ld_force_load=yes
7371 else
7372 cat conftest.err >&5
7373 fi
7374 rm -f conftest.err libconftest.a conftest conftest.c
7375 rm -rf conftest.dSYM
7376
7377 fi
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7379 $as_echo "$lt_cv_ld_force_load" >&6; }
68187380 case $host_os in
68197381 rhapsody* | darwin1.[012])
68207382 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
68427404 else
68437405 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
68447406 fi
6845 if test "$DSYMUTIL" != ":"; then
7407 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
68467408 _lt_dsymutil='~$DSYMUTIL $lib || :'
68477409 else
68487410 _lt_dsymutil=
68627424 CPP=
68637425 fi
68647426 if test -z "$CPP"; then
6865 if test "${ac_cv_prog_CPP+set}" = set; then :
7427 if ${ac_cv_prog_CPP+:} false; then :
68667428 $as_echo_n "(cached) " >&6
68677429 else
68687430 # Double quotes because CPP needs to be expanded
69787540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
69797541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
69807542 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6981 See \`config.log' for more details" "$LINENO" 5 ; }
7543 See \`config.log' for more details" "$LINENO" 5; }
69827544 fi
69837545
69847546 ac_ext=c
69907552
69917553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
69927554 $as_echo_n "checking for ANSI C header files... " >&6; }
6993 if test "${ac_cv_header_stdc+set}" = set; then :
7555 if ${ac_cv_header_stdc+:} false; then :
69947556 $as_echo_n "(cached) " >&6
69957557 else
69967558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71217683 do :
71227684 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
71237685 "
7124 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7686 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
71257687 cat >>confdefs.h <<_ACEOF
71267688 #define HAVE_DLFCN_H 1
71277689 _ACEOF
71297691 fi
71307692
71317693 done
7694
7695
71327696
71337697
71347698
72077771
72087772 # Check whether --with-pic was given.
72097773 if test "${with_pic+set}" = set; then :
7210 withval=$with_pic; pic_mode="$withval"
7774 withval=$with_pic; lt_p=${PACKAGE-default}
7775 case $withval in
7776 yes|no) pic_mode=$withval ;;
7777 *)
7778 pic_mode=default
7779 # Look at the argument we got. We use all the common list separators.
7780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7781 for lt_pkg in $withval; do
7782 IFS="$lt_save_ifs"
7783 if test "X$lt_pkg" = "X$lt_p"; then
7784 pic_mode=yes
7785 fi
7786 done
7787 IFS="$lt_save_ifs"
7788 ;;
7789 esac
72117790 else
72127791 pic_mode=default
72137792 fi
72847863
72857864
72867865
7866
7867
7868
7869
7870
72877871 test -z "$LN_S" && LN_S="ln -s"
72887872
72897873
73057889
73067890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
73077891 $as_echo_n "checking for objdir... " >&6; }
7308 if test "${lt_cv_objdir+set}" = set; then :
7892 if ${lt_cv_objdir+:} false; then :
73097893 $as_echo_n "(cached) " >&6
73107894 else
73117895 rm -f .libs 2>/dev/null
73297913 cat >>confdefs.h <<_ACEOF
73307914 #define LT_OBJDIR "$lt_cv_objdir/"
73317915 _ACEOF
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
73457916
73467917
73477918
73587929 ;;
73597930 esac
73607931
7361 # Sed substitution that helps us do robust quoting. It backslashifies
7362 # metacharacters that are still active within double-quoted strings.
7363 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7364
7365 # Same as above, but do not quote variable references.
7366 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7367
7368 # Sed substitution to delay expansion of an escaped shell variable in a
7369 # double_quote_subst'ed string.
7370 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7371
7372 # Sed substitution to delay expansion of an escaped single quote.
7373 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7374
7375 # Sed substitution to avoid accidental globbing in evaled expressions
7376 no_glob_subst='s/\*/\\\*/g'
7377
73787932 # Global variables:
73797933 ofile=libtool
73807934 can_build_shared=yes
74037957 *) break;;
74047958 esac
74057959 done
7406 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7960 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
74077961
74087962
74097963 # Only perform the check for file, if the check method requires it
74137967 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
74147968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
74157969 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7416 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7970 if ${lt_cv_path_MAGIC_CMD+:} false; then :
74177971 $as_echo_n "(cached) " >&6
74187972 else
74197973 case $MAGIC_CMD in
74798033 if test -n "$ac_tool_prefix"; then
74808034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
74818035 $as_echo_n "checking for file... " >&6; }
7482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8036 if ${lt_cv_path_MAGIC_CMD+:} false; then :
74838037 $as_echo_n "(cached) " >&6
74848038 else
74858039 case $MAGIC_CMD in
76128166 lt_prog_compiler_no_builtin_flag=
76138167
76148168 if test "$GCC" = yes; then
7615 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8169 case $cc_basename in
8170 nvcc*)
8171 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8172 *)
8173 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8174 esac
76168175
76178176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
76188177 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7619 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8178 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
76208179 $as_echo_n "(cached) " >&6
76218180 else
76228181 lt_cv_prog_compiler_rtti_exceptions=no
76328191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76338192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76348193 -e 's:$: $lt_compiler_flag:'`
7635 (eval echo "\"\$as_me:7636: $lt_compile\"" >&5)
8194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
76368195 (eval "$lt_compile" 2>conftest.err)
76378196 ac_status=$?
76388197 cat conftest.err >&5
7639 echo "$as_me:7640: \$? = $ac_status" >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76408199 if (exit $ac_status) && test -s "$ac_outfile"; then
76418200 # The compiler can only warn and ignore the option if not recognized
76428201 # So say no if there are warnings other than the usual output.
7643 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
76448203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
76458204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
76468205 lt_cv_prog_compiler_rtti_exceptions=yes
76698228 lt_prog_compiler_pic=
76708229 lt_prog_compiler_static=
76718230
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7673 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
76748231
76758232 if test "$GCC" = yes; then
76768233 lt_prog_compiler_wl='-Wl,'
77188275 lt_prog_compiler_pic='-fno-common'
77198276 ;;
77208277
8278 haiku*)
8279 # PIC is the default for Haiku.
8280 # The "-static" flag exists, but is broken.
8281 lt_prog_compiler_static=
8282 ;;
8283
77218284 hpux*)
77228285 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
77238286 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
77588321
77598322 *)
77608323 lt_prog_compiler_pic='-fPIC'
8324 ;;
8325 esac
8326
8327 case $cc_basename in
8328 nvcc*) # Cuda Compiler Driver 2.2
8329 lt_prog_compiler_wl='-Xlinker '
8330 if test -n "$lt_prog_compiler_pic"; then
8331 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8332 fi
77618333 ;;
77628334 esac
77638335 else
78228394 lt_prog_compiler_pic='--shared'
78238395 lt_prog_compiler_static='--static'
78248396 ;;
7825 pgcc* | pgf77* | pgf90* | pgf95*)
8397 nagfor*)
8398 # NAG Fortran compiler
8399 lt_prog_compiler_wl='-Wl,-Wl,,'
8400 lt_prog_compiler_pic='-PIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 ;;
8403 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
78268404 # Portland Group compilers (*not* the Pentium gcc compiler,
78278405 # which looks to be a dead project)
78288406 lt_prog_compiler_wl='-Wl,'
78348412 # All Alpha code is PIC.
78358413 lt_prog_compiler_static='-non_shared'
78368414 ;;
7837 xl*)
7838 # IBM XL C 8.0/Fortran 10.1 on PPC
8415 xl* | bgxl* | bgf* | mpixl*)
8416 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
78398417 lt_prog_compiler_wl='-Wl,'
78408418 lt_prog_compiler_pic='-qpic'
78418419 lt_prog_compiler_static='-qstaticlink'
78428420 ;;
78438421 *)
78448422 case `$CC -V 2>&1 | sed 5q` in
8423 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8424 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 lt_prog_compiler_wl=''
8428 ;;
8429 *Sun\ F* | *Sun*Fortran*)
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-Bstatic'
8432 lt_prog_compiler_wl='-Qoption ld '
8433 ;;
78458434 *Sun\ C*)
78468435 # Sun C 5.9
78478436 lt_prog_compiler_pic='-KPIC'
78488437 lt_prog_compiler_static='-Bstatic'
78498438 lt_prog_compiler_wl='-Wl,'
78508439 ;;
7851 *Sun\ F*)
7852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7853 lt_prog_compiler_pic='-KPIC'
8440 *Intel*\ [CF]*Compiler*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-fPIC'
8443 lt_prog_compiler_static='-static'
8444 ;;
8445 *Portland\ Group*)
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_pic='-fpic'
78548448 lt_prog_compiler_static='-Bstatic'
7855 lt_prog_compiler_wl=''
78568449 ;;
78578450 esac
78588451 ;;
78848477 lt_prog_compiler_pic='-KPIC'
78858478 lt_prog_compiler_static='-Bstatic'
78868479 case $cc_basename in
7887 f77* | f90* | f95*)
8480 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
78888481 lt_prog_compiler_wl='-Qoption ld ';;
78898482 *)
78908483 lt_prog_compiler_wl='-Wl,';;
79418534 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
79428535 ;;
79438536 esac
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7945 $as_echo "$lt_prog_compiler_pic" >&6; }
7946
7947
7948
7949
7950
8537
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8539 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8540 if ${lt_cv_prog_compiler_pic+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8546 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8547 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
79518548
79528549 #
79538550 # Check to make sure the PIC flag actually works.
79558552 if test -n "$lt_prog_compiler_pic"; then
79568553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
79578554 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7958 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8555 if ${lt_cv_prog_compiler_pic_works+:} false; then :
79598556 $as_echo_n "(cached) " >&6
79608557 else
79618558 lt_cv_prog_compiler_pic_works=no
79718568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
79728569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
79738570 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7975: $lt_compile\"" >&5)
8571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
79758572 (eval "$lt_compile" 2>conftest.err)
79768573 ac_status=$?
79778574 cat conftest.err >&5
7978 echo "$as_me:7979: \$? = $ac_status" >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
79798576 if (exit $ac_status) && test -s "$ac_outfile"; then
79808577 # The compiler can only warn and ignore the option if not recognized
79818578 # So say no if there are warnings other than the usual output.
7982 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
79838580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
79848581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
79858582 lt_cv_prog_compiler_pic_works=yes
80088605
80098606
80108607
8608
8609
8610
8611
8612
80118613 #
80128614 # Check to make sure the static flag actually works.
80138615 #
80148616 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
80158617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
80168618 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8017 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8619 if ${lt_cv_prog_compiler_static_works+:} false; then :
80188620 $as_echo_n "(cached) " >&6
80198621 else
80208622 lt_cv_prog_compiler_static_works=no
80278629 if test -s conftest.err; then
80288630 # Append any errors to the config.log.
80298631 cat conftest.err 1>&5
8030 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
80318633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
80328634 if diff conftest.exp conftest.er2 >/dev/null; then
80338635 lt_cv_prog_compiler_static_works=yes
80578659
80588660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
80598661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8060 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8662 if ${lt_cv_prog_compiler_c_o+:} false; then :
80618663 $as_echo_n "(cached) " >&6
80628664 else
80638665 lt_cv_prog_compiler_c_o=no
80768678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
80778679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
80788680 -e 's:$: $lt_compiler_flag:'`
8079 (eval echo "\"\$as_me:8080: $lt_compile\"" >&5)
8681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
80808682 (eval "$lt_compile" 2>out/conftest.err)
80818683 ac_status=$?
80828684 cat out/conftest.err >&5
8083 echo "$as_me:8084: \$? = $ac_status" >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
80848686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
80858687 then
80868688 # The compiler can only warn and ignore the option if not recognized
80878689 # So say no if there are warnings
8088 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
80898691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
80908692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
80918693 lt_cv_prog_compiler_c_o=yes
81128714
81138715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
81148716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8115 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8717 if ${lt_cv_prog_compiler_c_o+:} false; then :
81168718 $as_echo_n "(cached) " >&6
81178719 else
81188720 lt_cv_prog_compiler_c_o=no
81318733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
81328734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
81338735 -e 's:$: $lt_compiler_flag:'`
8134 (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
8736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
81358737 (eval "$lt_compile" 2>out/conftest.err)
81368738 ac_status=$?
81378739 cat out/conftest.err >&5
8138 echo "$as_me:8139: \$? = $ac_status" >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
81398741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
81408742 then
81418743 # The compiler can only warn and ignore the option if not recognized
81428744 # So say no if there are warnings
8143 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
81448746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
81458747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
81468748 lt_cv_prog_compiler_c_o=yes
82068808 hardcode_direct=no
82078809 hardcode_direct_absolute=no
82088810 hardcode_libdir_flag_spec=
8209 hardcode_libdir_flag_spec_ld=
82108811 hardcode_libdir_separator=
82118812 hardcode_minus_L=no
82128813 hardcode_shlibpath_var=unsupported
82508851 openbsd*)
82518852 with_gnu_ld=no
82528853 ;;
8253 linux* | k*bsd*-gnu)
8854 linux* | k*bsd*-gnu | gnu*)
82548855 link_all_deplibs=no
82558856 ;;
82568857 esac
82578858
82588859 ld_shlibs=yes
8860
8861 # On some targets, GNU ld is compatible enough with the native linker
8862 # that we're better off using the native interface for both.
8863 lt_use_gnu_ld_interface=no
82598864 if test "$with_gnu_ld" = yes; then
8865 case $host_os in
8866 aix*)
8867 # The AIX port of GNU ld has always aspired to compatibility
8868 # with the native linker. However, as the warning in the GNU ld
8869 # block says, versions before 2.19.5* couldn't really create working
8870 # shared libraries, regardless of the interface used.
8871 case `$LD -v 2>&1` in
8872 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8873 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8874 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8875 *)
8876 lt_use_gnu_ld_interface=yes
8877 ;;
8878 esac
8879 ;;
8880 *)
8881 lt_use_gnu_ld_interface=yes
8882 ;;
8883 esac
8884 fi
8885
8886 if test "$lt_use_gnu_ld_interface" = yes; then
82608887 # If archive_cmds runs LD, not CC, wlarc should be empty
82618888 wlarc='${wl}'
82628889
82908917 ld_shlibs=no
82918918 cat <<_LT_EOF 1>&2
82928919
8293 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8920 *** Warning: the GNU linker, at least up to release 2.19, is reported
82948921 *** to be unable to reliably create shared libraries on AIX.
82958922 *** Therefore, libtool is disabling shared libraries support. If you
8296 *** really care for shared libraries, you may want to modify your PATH
8297 *** so that a non-GNU linker is found, and then restart.
8923 *** really care for shared libraries, you may want to install binutils
8924 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8925 *** You will then need to restart the configuration process.
82988926
82998927 _LT_EOF
83008928 fi
83308958 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
83318959 # as there is no search path for DLLs.
83328960 hardcode_libdir_flag_spec='-L$libdir'
8961 export_dynamic_flag_spec='${wl}--export-all-symbols'
83338962 allow_undefined_flag=unsupported
83348963 always_export_symbols=no
83358964 enable_shared_with_static_runtimes=yes
8336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8965 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8966 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
83378967
83388968 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
83398969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
83518981 fi
83528982 ;;
83538983
8984 haiku*)
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 link_all_deplibs=yes
8987 ;;
8988
83548989 interix[3-9]*)
83558990 hardcode_direct=no
83568991 hardcode_shlibpath_var=no
83769011 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
83779012 && test "$tmp_diet" = no
83789013 then
8379 tmp_addflag=
9014 tmp_addflag=' $pic_flag'
83809015 tmp_sharedflag='-shared'
83819016 case $cc_basename,$host_cpu in
83829017 pgcc*) # Portland Group C compiler
8383 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9018 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
83849019 tmp_addflag=' $pic_flag'
83859020 ;;
8386 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8387 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9021 pgf77* | pgf90* | pgf95* | pgfortran*)
9022 # Portland Group f77 and f90 compilers
9023 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
83889024 tmp_addflag=' $pic_flag -Mnomain' ;;
83899025 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
83909026 tmp_addflag=' -i_dynamic' ;;
83959031 lf95*) # Lahey Fortran 8.1
83969032 whole_archive_flag_spec=
83979033 tmp_sharedflag='--shared' ;;
8398 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9034 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
83999035 tmp_sharedflag='-qmkshrobj'
84009036 tmp_addflag= ;;
9037 nvcc*) # Cuda Compiler Driver 2.2
9038 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9039 compiler_needs_object=yes
9040 ;;
84019041 esac
84029042 case `$CC -V 2>&1 | sed 5q` in
84039043 *Sun\ C*) # Sun C 5.9
8404 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9044 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
84059045 compiler_needs_object=yes
84069046 tmp_sharedflag='-G' ;;
84079047 *Sun\ F*) # Sun Fortran 8.3
84179057 fi
84189058
84199059 case $cc_basename in
8420 xlf*)
9060 xlf* | bgf* | bgxlf* | mpixlf*)
84219061 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
84229062 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8423 hardcode_libdir_flag_spec=
8424 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8425 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9064 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
84269065 if test "x$supports_anon_versioning" = xyes; then
84279066 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
84289067 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
84299068 echo "local: *; };" >> $output_objdir/$libname.ver~
8430 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9069 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
84319070 fi
84329071 ;;
84339072 esac
84419080 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
84429081 wlarc=
84439082 else
8444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8445 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
84469085 fi
84479086 ;;
84489087
84609099
84619100 _LT_EOF
84629101 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
84659104 else
84669105 ld_shlibs=no
84679106 fi
85079146
85089147 *)
85099148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
85129151 else
85139152 ld_shlibs=no
85149153 fi
85489187 else
85499188 # If we're using GNU nm, then we don't want the "-C" option.
85509189 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9190 # Also, AIX nm treats weak defined symbols like other global
9191 # defined symbols, whereas GNU nm marks them as "W".
85519192 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8552 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9193 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
85539194 else
85549195 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
85559196 fi
86379278 allow_undefined_flag='-berok'
86389279 # Determine the default libpath from the value encoded in an
86399280 # empty executable.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 if test "${lt_cv_aix_libpath+set}" = set; then
9282 aix_libpath=$lt_cv_aix_libpath
9283 else
9284 if ${lt_cv_aix_libpath_+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86419288 /* end confdefs.h. */
86429289
86439290 int
86509297 _ACEOF
86519298 if ac_fn_c_try_link "$LINENO"; then :
86529299
8653 lt_aix_libpath_sed='
8654 /Import File Strings/,/^$/ {
8655 /^0/ {
8656 s/^0 *\(.*\)$/\1/
8657 p
8658 }
8659 }'
8660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8661 # Check for a 64-bit object if we didn't find anything.
8662 if test -z "$aix_libpath"; then
8663 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8664 fi
9300 lt_aix_libpath_sed='
9301 /Import File Strings/,/^$/ {
9302 /^0/ {
9303 s/^0 *\([^ ]*\) *$/\1/
9304 p
9305 }
9306 }'
9307 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9308 # Check for a 64-bit object if we didn't find anything.
9309 if test -z "$lt_cv_aix_libpath_"; then
9310 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9311 fi
86659312 fi
86669313 rm -f core conftest.err conftest.$ac_objext \
86679314 conftest$ac_exeext conftest.$ac_ext
8668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315 if test -z "$lt_cv_aix_libpath_"; then
9316 lt_cv_aix_libpath_="/usr/lib:/lib"
9317 fi
9318
9319 fi
9320
9321 aix_libpath=$lt_cv_aix_libpath_
9322 fi
86699323
86709324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8671 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9325 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
86729326 else
86739327 if test "$host_cpu" = ia64; then
86749328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
86779331 else
86789332 # Determine the default libpath from the value encoded in an
86799333 # empty executable.
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 if test "${lt_cv_aix_libpath+set}" = set; then
9335 aix_libpath=$lt_cv_aix_libpath
9336 else
9337 if ${lt_cv_aix_libpath_+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86819341 /* end confdefs.h. */
86829342
86839343 int
86909350 _ACEOF
86919351 if ac_fn_c_try_link "$LINENO"; then :
86929352
8693 lt_aix_libpath_sed='
8694 /Import File Strings/,/^$/ {
8695 /^0/ {
8696 s/^0 *\(.*\)$/\1/
8697 p
8698 }
8699 }'
8700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8701 # Check for a 64-bit object if we didn't find anything.
8702 if test -z "$aix_libpath"; then
8703 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8704 fi
9353 lt_aix_libpath_sed='
9354 /Import File Strings/,/^$/ {
9355 /^0/ {
9356 s/^0 *\([^ ]*\) *$/\1/
9357 p
9358 }
9359 }'
9360 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9361 # Check for a 64-bit object if we didn't find anything.
9362 if test -z "$lt_cv_aix_libpath_"; then
9363 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9364 fi
87059365 fi
87069366 rm -f core conftest.err conftest.$ac_objext \
87079367 conftest$ac_exeext conftest.$ac_ext
8708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9368 if test -z "$lt_cv_aix_libpath_"; then
9369 lt_cv_aix_libpath_="/usr/lib:/lib"
9370 fi
9371
9372 fi
9373
9374 aix_libpath=$lt_cv_aix_libpath_
9375 fi
87099376
87109377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
87119378 # Warning - without using the other run time loading flags,
87129379 # -berok will link without error, but may produce a broken library.
87139380 no_undefined_flag=' ${wl}-bernotok'
87149381 allow_undefined_flag=' ${wl}-berok'
8715 # Exported symbols can be pulled into shared objects from archives
8716 whole_archive_flag_spec='$convenience'
9382 if test "$with_gnu_ld" = yes; then
9383 # We only use this code for GNU lds that support --whole-archive.
9384 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9385 else
9386 # Exported symbols can be pulled into shared objects from archives
9387 whole_archive_flag_spec='$convenience'
9388 fi
87179389 archive_cmds_need_lc=yes
87189390 # This is similar to how AIX traditionally builds its shared libraries.
87199391 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
87459417 # Microsoft Visual C++.
87469418 # hardcode_libdir_flag_spec is actually meaningless, as there is
87479419 # no search path for DLLs.
8748 hardcode_libdir_flag_spec=' '
8749 allow_undefined_flag=unsupported
8750 # Tell ltmain to make .lib files, not .a files.
8751 libext=lib
8752 # Tell ltmain to make .dll files, not .so files.
8753 shrext_cmds=".dll"
8754 # FIXME: Setting linknames here is a bad hack.
8755 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8756 # The linker will automatically build a .lib file if we build a DLL.
8757 old_archive_from_new_cmds='true'
8758 # FIXME: Should let the user specify the lib program.
8759 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8760 fix_srcfile_path='`cygpath -w "$srcfile"`'
8761 enable_shared_with_static_runtimes=yes
9420 case $cc_basename in
9421 cl*)
9422 # Native MSVC
9423 hardcode_libdir_flag_spec=' '
9424 allow_undefined_flag=unsupported
9425 always_export_symbols=yes
9426 file_list_spec='@'
9427 # Tell ltmain to make .lib files, not .a files.
9428 libext=lib
9429 # Tell ltmain to make .dll files, not .so files.
9430 shrext_cmds=".dll"
9431 # FIXME: Setting linknames here is a bad hack.
9432 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9433 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9434 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9435 else
9436 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9437 fi~
9438 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9439 linknames='
9440 # The linker will not automatically build a static lib if we build a DLL.
9441 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9442 enable_shared_with_static_runtimes=yes
9443 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9445 # Don't use ranlib
9446 old_postinstall_cmds='chmod 644 $oldlib'
9447 postlink_cmds='lt_outputfile="@OUTPUT@"~
9448 lt_tool_outputfile="@TOOL_OUTPUT@"~
9449 case $lt_outputfile in
9450 *.exe|*.EXE) ;;
9451 *)
9452 lt_outputfile="$lt_outputfile.exe"
9453 lt_tool_outputfile="$lt_tool_outputfile.exe"
9454 ;;
9455 esac~
9456 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9457 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9458 $RM "$lt_outputfile.manifest";
9459 fi'
9460 ;;
9461 *)
9462 # Assume MSVC wrapper
9463 hardcode_libdir_flag_spec=' '
9464 allow_undefined_flag=unsupported
9465 # Tell ltmain to make .lib files, not .a files.
9466 libext=lib
9467 # Tell ltmain to make .dll files, not .so files.
9468 shrext_cmds=".dll"
9469 # FIXME: Setting linknames here is a bad hack.
9470 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9471 # The linker will automatically build a .lib file if we build a DLL.
9472 old_archive_from_new_cmds='true'
9473 # FIXME: Should let the user specify the lib program.
9474 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9475 enable_shared_with_static_runtimes=yes
9476 ;;
9477 esac
87629478 ;;
87639479
87649480 darwin* | rhapsody*)
87689484 hardcode_direct=no
87699485 hardcode_automatic=yes
87709486 hardcode_shlibpath_var=unsupported
8771 whole_archive_flag_spec=''
9487 if test "$lt_cv_ld_force_load" = "yes"; then
9488 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9489
9490 else
9491 whole_archive_flag_spec=''
9492 fi
87729493 link_all_deplibs=yes
87739494 allow_undefined_flag="$_lt_dar_allow_undefined"
87749495 case $cc_basename in
87769497 *) _lt_dar_can_shared=$GCC ;;
87779498 esac
87789499 if test "$_lt_dar_can_shared" = "yes"; then
8779 output_verbose_link_cmd=echo
9500 output_verbose_link_cmd=func_echo_all
87809501 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
87819502 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
87829503 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
87929513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
87939514 hardcode_libdir_flag_spec='-L$libdir'
87949515 hardcode_shlibpath_var=no
8795 ;;
8796
8797 freebsd1*)
8798 ld_shlibs=no
87999516 ;;
88009517
88019518 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
88109527 ;;
88119528
88129529 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8813 freebsd2*)
9530 freebsd2.*)
88149531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
88159532 hardcode_direct=yes
88169533 hardcode_minus_L=yes
88199536
88209537 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
88219538 freebsd* | dragonfly*)
8822 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
88239540 hardcode_libdir_flag_spec='-R$libdir'
88249541 hardcode_direct=yes
88259542 hardcode_shlibpath_var=no
88279544
88289545 hpux9*)
88299546 if test "$GCC" = yes; then
8830 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9547 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
88319548 else
88329549 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
88339550 fi
88429559 ;;
88439560
88449561 hpux10*)
8845 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8846 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9562 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9563 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
88479564 else
88489565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
88499566 fi
88509567 if test "$with_gnu_ld" = no; then
88519568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8852 hardcode_libdir_flag_spec_ld='+b $libdir'
88539569 hardcode_libdir_separator=:
88549570 hardcode_direct=yes
88559571 hardcode_direct_absolute=yes
88619577 ;;
88629578
88639579 hpux11*)
8864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9580 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
88659581 case $host_cpu in
88669582 hppa*64*)
88679583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
88689584 ;;
88699585 ia64*)
8870 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9586 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
88719587 ;;
88729588 *)
8873 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
88749590 ;;
88759591 esac
88769592 else
88829598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
88839599 ;;
88849600 *)
8885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9601
9602 # Older versions of the 11.00 compiler do not understand -b yet
9603 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9605 $as_echo_n "checking if $CC understands -b... " >&6; }
9606 if ${lt_cv_prog_compiler__b+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 lt_cv_prog_compiler__b=no
9610 save_LDFLAGS="$LDFLAGS"
9611 LDFLAGS="$LDFLAGS -b"
9612 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9613 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9614 # The linker can only warn and ignore the option if not recognized
9615 # So say no if there are warnings
9616 if test -s conftest.err; then
9617 # Append any errors to the config.log.
9618 cat conftest.err 1>&5
9619 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9621 if diff conftest.exp conftest.er2 >/dev/null; then
9622 lt_cv_prog_compiler__b=yes
9623 fi
9624 else
9625 lt_cv_prog_compiler__b=yes
9626 fi
9627 fi
9628 $RM -r conftest*
9629 LDFLAGS="$save_LDFLAGS"
9630
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9633 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9634
9635 if test x"$lt_cv_prog_compiler__b" = xyes; then
9636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9637 else
9638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9639 fi
9640
88869641 ;;
88879642 esac
88889643 fi
89109665
89119666 irix5* | irix6* | nonstopux*)
89129667 if test "$GCC" = yes; then
8913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
89149669 # Try to use the -exported_symbol ld option, if it does not
89159670 # work, assume that -exports_file does not work either and
89169671 # implicitly export all symbols.
8917 save_LDFLAGS="$LDFLAGS"
8918 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 # This should be the same for all languages, so no per-tag cache variable.
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9674 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9675 if ${lt_cv_irix_exported_symbol+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 save_LDFLAGS="$LDFLAGS"
9679 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89209681 /* end confdefs.h. */
8921 int foo(void) {}
9682 int foo (void) { return 0; }
89229683 _ACEOF
89239684 if ac_fn_c_try_link "$LINENO"; then :
8924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8925
9685 lt_cv_irix_exported_symbol=yes
9686 else
9687 lt_cv_irix_exported_symbol=no
89269688 fi
89279689 rm -f core conftest.err conftest.$ac_objext \
89289690 conftest$ac_exeext conftest.$ac_ext
8929 LDFLAGS="$save_LDFLAGS"
9691 LDFLAGS="$save_LDFLAGS"
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9694 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9695 if test "$lt_cv_irix_exported_symbol" = yes; then
9696 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9697 fi
89309698 else
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
89339701 fi
89349702 archive_cmds_need_lc='no'
89359703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
89919759 hardcode_libdir_flag_spec='-L$libdir'
89929760 hardcode_minus_L=yes
89939761 allow_undefined_flag=unsupported
8994 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9762 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
89959763 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
89969764 ;;
89979765
89989766 osf3*)
89999767 if test "$GCC" = yes; then
90009768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9001 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9769 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
90029770 else
90039771 allow_undefined_flag=' -expect_unresolved \*'
9004 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9772 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
90059773 fi
90069774 archive_cmds_need_lc='no'
90079775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
90119779 osf4* | osf5*) # as osf3* with the addition of -msym flag
90129780 if test "$GCC" = yes; then
90139781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9014 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9782 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
90159783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
90169784 else
90179785 allow_undefined_flag=' -expect_unresolved \*'
9018 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9786 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
90199787 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9020 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9788 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
90219789
90229790 # Both c and cxx compiler support -rpath directly
90239791 hardcode_libdir_flag_spec='-rpath $libdir'
90309798 no_undefined_flag=' -z defs'
90319799 if test "$GCC" = yes; then
90329800 wlarc='${wl}'
9033 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
90349802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9035 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9803 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
90369804 else
90379805 case `$CC -V 2>&1` in
90389806 *"Compilers 5.0"*)
92209988 # to ld, don't add -lc before -lgcc.
92219989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
92229990 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9223 $RM conftest*
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225
9226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9991 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 $RM conftest*
9995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9996
9997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
92279998 (eval $ac_compile) 2>&5
92289999 ac_status=$?
922910000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
923010001 test $ac_status = 0; } 2>conftest.err; then
9231 soname=conftest
9232 lib=conftest
9233 libobjs=conftest.$ac_objext
9234 deplibs=
9235 wl=$lt_prog_compiler_wl
9236 pic_flag=$lt_prog_compiler_pic
9237 compiler_flags=-v
9238 linker_flags=-v
9239 verstring=
9240 output_objdir=.
9241 libname=conftest
9242 lt_save_allow_undefined_flag=$allow_undefined_flag
9243 allow_undefined_flag=
9244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10002 soname=conftest
10003 lib=conftest
10004 libobjs=conftest.$ac_objext
10005 deplibs=
10006 wl=$lt_prog_compiler_wl
10007 pic_flag=$lt_prog_compiler_pic
10008 compiler_flags=-v
10009 linker_flags=-v
10010 verstring=
10011 output_objdir=.
10012 libname=conftest
10013 lt_save_allow_undefined_flag=$allow_undefined_flag
10014 allow_undefined_flag=
10015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
924510016 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
924610017 ac_status=$?
924710018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
924810019 test $ac_status = 0; }
9249 then
9250 archive_cmds_need_lc=no
9251 else
9252 archive_cmds_need_lc=yes
9253 fi
9254 allow_undefined_flag=$lt_save_allow_undefined_flag
9255 else
9256 cat conftest.err 1>&5
9257 fi
9258 $RM conftest*
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9260 $as_echo "$archive_cmds_need_lc" >&6; }
10020 then
10021 lt_cv_archive_cmds_need_lc=no
10022 else
10023 lt_cv_archive_cmds_need_lc=yes
10024 fi
10025 allow_undefined_flag=$lt_save_allow_undefined_flag
10026 else
10027 cat conftest.err 1>&5
10028 fi
10029 $RM conftest*
10030
10031 fi
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10033 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10034 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
926110035 ;;
926210036 esac
926310037 fi
941510189
941610190
941710191
9418
9419
9420
9421
9422
942310192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
942410193 $as_echo_n "checking dynamic linker characteristics... " >&6; }
942510194
942810197 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
942910198 *) lt_awk_arg="/^libraries:/" ;;
943010199 esac
9431 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9432 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10200 case $host_os in
10201 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10202 *) lt_sed_strip_eq="s,=/,/,g" ;;
10203 esac
10204 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10205 case $lt_search_path_spec in
10206 *\;*)
943310207 # if the path contains ";" then we assume it to be the separator
943410208 # otherwise default to the standard path separator (i.e. ":") - it is
943510209 # assumed that no part of a normal pathname contains ";" but that should
943610210 # okay in the real world where ";" in dirpaths is itself problematic.
9437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9438 else
9439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9440 fi
10211 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10212 ;;
10213 *)
10214 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10215 ;;
10216 esac
944110217 # Ok, now we have the path, separated by spaces, we can step through it
944210218 # and add multilib dir if necessary.
944310219 lt_tmp_lt_search_path_spec=
945010226 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
945110227 fi
945210228 done
9453 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10229 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
945410230 BEGIN {RS=" "; FS="/|\n";} {
945510231 lt_foo="";
945610232 lt_count=0;
947010246 if (lt_foo != "") { lt_freq[lt_foo]++; }
947110247 if (lt_freq[lt_foo] == 1) { print lt_foo; }
947210248 }'`
9473 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10249 # AWK program above erroneously prepends '/' to C:/dos/paths
10250 # for these hosts.
10251 case $host_os in
10252 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10253 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10254 esac
10255 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
947410256 else
947510257 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
947610258 fi
949610278
949710279 case $host_os in
949810280 aix3*)
9499 version_type=linux
10281 version_type=linux # correct to gnu/linux during the next big refactor
950010282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
950110283 shlibpath_var=LIBPATH
950210284
950510287 ;;
950610288
950710289 aix[4-9]*)
9508 version_type=linux
10290 version_type=linux # correct to gnu/linux during the next big refactor
950910291 need_lib_prefix=no
951010292 need_version=no
951110293 hardcode_into_libs=yes
955810340 m68k)
955910341 library_names_spec='$libname.ixlibrary $libname.a'
956010342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9561 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'
10343 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
956210344 ;;
956310345 esac
956410346 ;;
957010352 ;;
957110353
957210354 bsdi[45]*)
9573 version_type=linux
10355 version_type=linux # correct to gnu/linux during the next big refactor
957410356 need_version=no
957510357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
957610358 soname_spec='${libname}${release}${shared_ext}$major'
958910371 need_version=no
959010372 need_lib_prefix=no
959110373
9592 case $GCC,$host_os in
9593 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10374 case $GCC,$cc_basename in
10375 yes,*)
10376 # gcc
959410377 library_names_spec='$libname.dll.a'
959510378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
959610379 postinstall_cmds='base_file=`basename \${file}`~
961110394 cygwin*)
961210395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
961310396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9614 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10397
10398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
961510399 ;;
961610400 mingw* | cegcc*)
961710401 # MinGW DLLs use traditional 'lib' prefix
961810402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9619 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9620 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9621 # It is most probably a Windows format PATH printed by
9622 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9623 # path with ; separators, and with drive letters. We can handle the
9624 # drive letters (cygwin fileutils understands them), so leave them,
9625 # especially as we might pass files found there to a mingw objdump,
9626 # which wouldn't understand a cygwinified path. Ahh.
9627 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9628 else
9629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9630 fi
963110403 ;;
963210404 pw32*)
963310405 # pw32 DLLs use 'pw' prefix rather than 'lib'
963410406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
963510407 ;;
963610408 esac
10409 dynamic_linker='Win32 ld.exe'
963710410 ;;
963810411
10412 *,cl*)
10413 # Native MSVC
10414 libname_spec='$name'
10415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10416 library_names_spec='${libname}.dll.lib'
10417
10418 case $build_os in
10419 mingw*)
10420 sys_lib_search_path_spec=
10421 lt_save_ifs=$IFS
10422 IFS=';'
10423 for lt_path in $LIB
10424 do
10425 IFS=$lt_save_ifs
10426 # Let DOS variable expansion print the short 8.3 style file name.
10427 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10428 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10429 done
10430 IFS=$lt_save_ifs
10431 # Convert to MSYS style.
10432 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10433 ;;
10434 cygwin*)
10435 # Convert to unix form, then to dos form, then back to unix form
10436 # but this time dos style (no spaces!) so that the unix form looks
10437 # like /cygdrive/c/PROGRA~1:/cygdr...
10438 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10439 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10440 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10441 ;;
10442 *)
10443 sys_lib_search_path_spec="$LIB"
10444 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10445 # It is most probably a Windows format PATH.
10446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10447 else
10448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10449 fi
10450 # FIXME: find the short name or the path components, as spaces are
10451 # common. (e.g. "Program Files" -> "PROGRA~1")
10452 ;;
10453 esac
10454
10455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10456 postinstall_cmds='base_file=`basename \${file}`~
10457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10458 dldir=$destdir/`dirname \$dlpath`~
10459 test -d \$dldir || mkdir -p \$dldir~
10460 $install_prog $dir/$dlname \$dldir/$dlname'
10461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10462 dlpath=$dir/\$dldll~
10463 $RM \$dlpath'
10464 shlibpath_overrides_runpath=yes
10465 dynamic_linker='Win32 link.exe'
10466 ;;
10467
963910468 *)
10469 # Assume MSVC wrapper
964010470 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10471 dynamic_linker='Win32 ld.exe'
964110472 ;;
964210473 esac
9643 dynamic_linker='Win32 ld.exe'
964410474 # FIXME: first we should search . and the directory the executable is in
964510475 shlibpath_var=PATH
964610476 ;;
966110491 ;;
966210492
966310493 dgux*)
9664 version_type=linux
10494 version_type=linux # correct to gnu/linux during the next big refactor
966510495 need_lib_prefix=no
966610496 need_version=no
966710497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
966810498 soname_spec='${libname}${release}${shared_ext}$major'
966910499 shlibpath_var=LD_LIBRARY_PATH
9670 ;;
9671
9672 freebsd1*)
9673 dynamic_linker=no
967410500 ;;
967510501
967610502 freebsd* | dragonfly*)
968010506 objformat=`/usr/bin/objformat`
968110507 else
968210508 case $host_os in
9683 freebsd[123]*) objformat=aout ;;
10509 freebsd[23].*) objformat=aout ;;
968410510 *) objformat=elf ;;
968510511 esac
968610512 fi
969810524 esac
969910525 shlibpath_var=LD_LIBRARY_PATH
970010526 case $host_os in
9701 freebsd2*)
10527 freebsd2.*)
970210528 shlibpath_overrides_runpath=yes
970310529 ;;
970410530 freebsd3.[01]* | freebsdelf3.[01]*)
971810544 ;;
971910545
972010546 gnu*)
9721 version_type=linux
10547 version_type=linux # correct to gnu/linux during the next big refactor
972210548 need_lib_prefix=no
972310549 need_version=no
972410550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
972510551 soname_spec='${libname}${release}${shared_ext}$major'
972610552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=no
10554 hardcode_into_libs=yes
10555 ;;
10556
10557 haiku*)
10558 version_type=linux # correct to gnu/linux during the next big refactor
10559 need_lib_prefix=no
10560 need_version=no
10561 dynamic_linker="$host_os runtime_loader"
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10564 shlibpath_var=LIBRARY_PATH
10565 shlibpath_overrides_runpath=yes
10566 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
972710567 hardcode_into_libs=yes
972810568 ;;
972910569
976910609 soname_spec='${libname}${release}${shared_ext}$major'
977010610 ;;
977110611 esac
9772 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10612 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
977310613 postinstall_cmds='chmod 555 $lib'
10614 # or fails outright, so override atomically:
10615 install_override_mode=555
977410616 ;;
977510617
977610618 interix[3-9]*)
9777 version_type=linux
10619 version_type=linux # correct to gnu/linux during the next big refactor
977810620 need_lib_prefix=no
977910621 need_version=no
978010622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
979010632 nonstopux*) version_type=nonstopux ;;
979110633 *)
979210634 if test "$lt_cv_prog_gnu_ld" = yes; then
9793 version_type=linux
10635 version_type=linux # correct to gnu/linux during the next big refactor
979410636 else
979510637 version_type=irix
979610638 fi ;;
982710669 dynamic_linker=no
982810670 ;;
982910671
9830 # This must be Linux ELF.
10672 # This must be glibc/ELF.
983110673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9832 version_type=linux
10674 version_type=linux # correct to gnu/linux during the next big refactor
983310675 need_lib_prefix=no
983410676 need_version=no
983510677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
983710679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
983810680 shlibpath_var=LD_LIBRARY_PATH
983910681 shlibpath_overrides_runpath=no
10682
984010683 # Some binutils ld are patched to set DT_RUNPATH
9841 save_LDFLAGS=$LDFLAGS
9842 save_libdir=$libdir
9843 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9844 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 lt_cv_shlibpath_overrides_runpath=no
10688 save_LDFLAGS=$LDFLAGS
10689 save_libdir=$libdir
10690 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10691 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
984610693 /* end confdefs.h. */
984710694
984810695 int
985510702 _ACEOF
985610703 if ac_fn_c_try_link "$LINENO"; then :
985710704 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9858 shlibpath_overrides_runpath=yes
10705 lt_cv_shlibpath_overrides_runpath=yes
985910706 fi
986010707 fi
986110708 rm -f core conftest.err conftest.$ac_objext \
986210709 conftest$ac_exeext conftest.$ac_ext
9863 LDFLAGS=$save_LDFLAGS
9864 libdir=$save_libdir
10710 LDFLAGS=$save_LDFLAGS
10711 libdir=$save_libdir
10712
10713 fi
10714
10715 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
986510716
986610717 # This implies no fast_install, which is unacceptable.
986710718 # Some rework will be needed to allow for fast_install
987010721
987110722 # Append ld.so.conf contents to the search path
987210723 if test -f /etc/ld.so.conf; then
9873 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10724 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
987410725 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
987510726 fi
987610727
991410765 ;;
991510766
991610767 newsos6)
9917 version_type=linux
10768 version_type=linux # correct to gnu/linux during the next big refactor
991810769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
991910770 shlibpath_var=LD_LIBRARY_PATH
992010771 shlibpath_overrides_runpath=yes
998310834 ;;
998410835
998510836 solaris*)
9986 version_type=linux
10837 version_type=linux # correct to gnu/linux during the next big refactor
998710838 need_lib_prefix=no
998810839 need_version=no
998910840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1000810859 ;;
1000910860
1001010861 sysv4 | sysv4.3*)
10011 version_type=linux
10862 version_type=linux # correct to gnu/linux during the next big refactor
1001210863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1001310864 soname_spec='${libname}${release}${shared_ext}$major'
1001410865 shlibpath_var=LD_LIBRARY_PATH
1003210883
1003310884 sysv4*MP*)
1003410885 if test -d /usr/nec ;then
10035 version_type=linux
10886 version_type=linux # correct to gnu/linux during the next big refactor
1003610887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1003710888 soname_spec='$libname${shared_ext}.$major'
1003810889 shlibpath_var=LD_LIBRARY_PATH
1006310914
1006410915 tpf*)
1006510916 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10066 version_type=linux
10917 version_type=linux # correct to gnu/linux during the next big refactor
1006710918 need_lib_prefix=no
1006810919 need_version=no
1006910920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1007310924 ;;
1007410925
1007510926 uts4*)
10076 version_type=linux
10927 version_type=linux # correct to gnu/linux during the next big refactor
1007710928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1007810929 soname_spec='${libname}${release}${shared_ext}$major'
1007910930 shlibpath_var=LD_LIBRARY_PATH
1009810949 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1009910950 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1010010951 fi
10952
10953
10954
10955
10956
1010110957
1010210958
1010310959
1025711113 # if libdl is installed we need to link against it
1025811114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1025911115 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11116 if ${ac_cv_lib_dl_dlopen+:} false; then :
1026111117 $as_echo_n "(cached) " >&6
1026211118 else
1026311119 ac_check_lib_save_LIBS=$LIBS
1029111147 fi
1029211148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1029311149 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10294 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11150 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1029511151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1029611152 else
1029711153
1030511161
1030611162 *)
1030711163 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10308 if test "x$ac_cv_func_shl_load" = x""yes; then :
11164 if test "x$ac_cv_func_shl_load" = xyes; then :
1030911165 lt_cv_dlopen="shl_load"
1031011166 else
1031111167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1031211168 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10313 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11169 if ${ac_cv_lib_dld_shl_load+:} false; then :
1031411170 $as_echo_n "(cached) " >&6
1031511171 else
1031611172 ac_check_lib_save_LIBS=$LIBS
1034411200 fi
1034511201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1034611202 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10347 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11203 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1034811204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1034911205 else
1035011206 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10351 if test "x$ac_cv_func_dlopen" = x""yes; then :
11207 if test "x$ac_cv_func_dlopen" = xyes; then :
1035211208 lt_cv_dlopen="dlopen"
1035311209 else
1035411210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1035511211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11212 if ${ac_cv_lib_dl_dlopen+:} false; then :
1035711213 $as_echo_n "(cached) " >&6
1035811214 else
1035911215 ac_check_lib_save_LIBS=$LIBS
1038711243 fi
1038811244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1038911245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10390 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11246 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1039111247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1039211248 else
1039311249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1039411250 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10395 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11251 if ${ac_cv_lib_svld_dlopen+:} false; then :
1039611252 $as_echo_n "(cached) " >&6
1039711253 else
1039811254 ac_check_lib_save_LIBS=$LIBS
1042611282 fi
1042711283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1042811284 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10429 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11285 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1043011286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1043111287 else
1043211288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1043311289 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11290 if ${ac_cv_lib_dld_dld_link+:} false; then :
1043511291 $as_echo_n "(cached) " >&6
1043611292 else
1043711293 ac_check_lib_save_LIBS=$LIBS
1046511321 fi
1046611322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1046711323 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10468 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11324 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1046911325 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1047011326 fi
1047111327
1050611362
1050711363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1050811364 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10509 if test "${lt_cv_dlopen_self+set}" = set; then :
11365 if ${lt_cv_dlopen_self+:} false; then :
1051011366 $as_echo_n "(cached) " >&6
1051111367 else
1051211368 if test "$cross_compiling" = yes; then :
1051511371 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1051611372 lt_status=$lt_dlunknown
1051711373 cat > conftest.$ac_ext <<_LT_EOF
10518 #line 10519 "configure"
11374 #line $LINENO "configure"
1051911375 #include "confdefs.h"
1052011376
1052111377 #if HAVE_DLFCN_H
1055611412 # endif
1055711413 #endif
1055811414
10559 void fnord() { int i=42;}
11415 /* When -fvisbility=hidden is used, assume the code has been annotated
11416 correspondingly for the symbols needed. */
11417 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11418 int fnord () __attribute__((visibility("default")));
11419 #endif
11420
11421 int fnord () { return 42; }
1056011422 int main ()
1056111423 {
1056211424 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1056511427 if (self)
1056611428 {
1056711429 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10568 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11430 else
11431 {
11432 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11433 else puts (dlerror ());
11434 }
1056911435 /* dlclose (self); */
1057011436 }
1057111437 else
1060211468 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1060311469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1060411470 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10605 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11471 if ${lt_cv_dlopen_self_static+:} false; then :
1060611472 $as_echo_n "(cached) " >&6
1060711473 else
1060811474 if test "$cross_compiling" = yes; then :
1061111477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1061211478 lt_status=$lt_dlunknown
1061311479 cat > conftest.$ac_ext <<_LT_EOF
10614 #line 10615 "configure"
11480 #line $LINENO "configure"
1061511481 #include "confdefs.h"
1061611482
1061711483 #if HAVE_DLFCN_H
1065211518 # endif
1065311519 #endif
1065411520
10655 void fnord() { int i=42;}
11521 /* When -fvisbility=hidden is used, assume the code has been annotated
11522 correspondingly for the symbols needed. */
11523 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11524 int fnord () __attribute__((visibility("default")));
11525 #endif
11526
11527 int fnord () { return 42; }
1065611528 int main ()
1065711529 {
1065811530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1066111533 if (self)
1066211534 {
1066311535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11536 else
11537 {
11538 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11539 else puts (dlerror ());
11540 }
1066511541 /* dlclose (self); */
1066611542 }
1066711543 else
1083011706
1083111707
1083211708
11709
11710
1083311711 ac_config_commands="$ac_config_commands libtool"
1083411712
1083511713
1084311721 # soname version to use
1084411722 # goes by ‘current[:revision[:age]]’ with the soname ending up as
1084511723 # current.age.revision.
10846 VO_AACENC_VERSION=0:2:0
11724 VO_AACENC_VERSION=0:3:0
1084711725
1084811726
1084911727 ac_config_files="$ac_config_files Makefile vo-aacenc.pc"
1091211790 :end' >>confcache
1091311791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1091411792 if test -w "$cache_file"; then
10915 test "x$cache_file" != "x/dev/null" &&
11793 if test "x$cache_file" != "x/dev/null"; then
1091611794 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1091711795 $as_echo "$as_me: updating cache $cache_file" >&6;}
10918 cat confcache >$cache_file
11796 if test ! -f "$cache_file" || test -h "$cache_file"; then
11797 cat confcache >"$cache_file"
11798 else
11799 case $cache_file in #(
11800 */* | ?:*)
11801 mv -f confcache "$cache_file"$$ &&
11802 mv -f "$cache_file"$$ "$cache_file" ;; #(
11803 *)
11804 mv -f confcache "$cache_file" ;;
11805 esac
11806 fi
11807 fi
1091911808 else
1092011809 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1092111810 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1098311872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1098411873 fi
1098511874
10986 : ${CONFIG_STATUS=./config.status}
11875 : "${CONFIG_STATUS=./config.status}"
1098711876 ac_write_fail=0
1098811877 ac_clean_files_save=$ac_clean_files
1098911878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1108411973 IFS=" "" $as_nl"
1108511974
1108611975 # Find who we are. Look in the path if we contain no directory separator.
11976 as_myself=
1108711977 case $0 in #((
1108811978 *[\\/]* ) as_myself=$0 ;;
1108911979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1139012280 # report actual input values of CONFIG_FILES etc. instead of their
1139112281 # values after options handling.
1139212282 ac_log="
11393 This file was extended by vo-aacenc $as_me 0.1.1, which was
11394 generated by GNU Autoconf 2.67. Invocation command line was
12283 This file was extended by vo-aacenc $as_me 0.1.2, which was
12284 generated by GNU Autoconf 2.68. Invocation command line was
1139512285
1139612286 CONFIG_FILES = $CONFIG_FILES
1139712287 CONFIG_HEADERS = $CONFIG_HEADERS
1145612346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1145712347 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1145812348 ac_cs_version="\\
11459 vo-aacenc config.status 0.1.1
11460 configured by $0, generated by GNU Autoconf 2.67,
12349 vo-aacenc config.status 0.1.2
12350 configured by $0, generated by GNU Autoconf 2.68,
1146112351 with options \\"\$ac_cs_config\\"
1146212352
1146312353 Copyright (C) 2010 Free Software Foundation, Inc.
1158512475 sed_quote_subst='$sed_quote_subst'
1158612476 double_quote_subst='$double_quote_subst'
1158712477 delay_variable_subst='$delay_variable_subst'
11588 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11589 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11590 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11591 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11592 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11593 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11594 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11595 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11596 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11597 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11598 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11599 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11600 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11601 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11602 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11603 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11604 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11605 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11606 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11607 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11608 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11609 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11610 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11611 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11612 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11613 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11614 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11615 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11616 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11617 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11618 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11619 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11620 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11621 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11622 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11623 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11624 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11625 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11626 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11627 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11628 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11629 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11630 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11631 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11632 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11634 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11635 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11636 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11637 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11638 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11639 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11640 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11641 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11642 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11643 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11644 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11645 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11646 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11647 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11648 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11649 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11650 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11651 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11652 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11653 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11654 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11655 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11656 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11657 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11658 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11659 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11660 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11661 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11662 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11663 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11664 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11665 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11666 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11667 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11668 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11669 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11670 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11671 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11672 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11673 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11674 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11675 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11676 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11677 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11678 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11679 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11680 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11681 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11682 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11683 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11684 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11685 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11686 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11687 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11688 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11689 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11690 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11691 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11692 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11693 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11694 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11695 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11696 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11697 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11698 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11699 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11700 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11701 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11702 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11703 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11704 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11705 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12478 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12479 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12480 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12481 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12482 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12483 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12484 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12485 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12486 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12487 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12488 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12489 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12490 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12491 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12492 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12493 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12494 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12495 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12496 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12497 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12498 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12499 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12500 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12501 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12502 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12503 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12504 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12505 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12506 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12507 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12508 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12509 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12510 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12511 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12512 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12513 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12514 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12515 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12516 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12517 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12518 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12519 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12520 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12521 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12522 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12523 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12524 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12525 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12526 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12527 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12528 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12529 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12530 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12531 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12532 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12533 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12535 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12536 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12537 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12538 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12539 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12540 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12541 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12542 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12543 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12544 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12545 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12546 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12547 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12548 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12549 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12550 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12551 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12552 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12553 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12554 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12555 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12556 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12557 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12558 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12559 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12560 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12561 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12562 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12563 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12564 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12565 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12566 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12567 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12568 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12569 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12570 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12571 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12572 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12573 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12574 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12575 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12576 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12577 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12578 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12579 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12580 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12581 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12582 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12583 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12584 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12585 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12586 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12587 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12588 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12589 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12590 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12591 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12592 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12593 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12594 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12595 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12596 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12597 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12598 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12599 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12600 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12601 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12602 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12603 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12604 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12605 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12606 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12607 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1170612608
1170712609 LTCC='$LTCC'
1170812610 LTCFLAGS='$LTCFLAGS'
1170912611 compiler='$compiler_DEFAULT'
1171012612
12613 # A function that is used when there is no print builtin or printf.
12614 func_fallback_echo ()
12615 {
12616 eval 'cat <<_LTECHO_EOF
12617 \$1
12618 _LTECHO_EOF'
12619 }
12620
1171112621 # Quote evaled strings.
11712 for var in SED \
12622 for var in SHELL \
12623 ECHO \
12624 PATH_SEPARATOR \
12625 SED \
1171312626 GREP \
1171412627 EGREP \
1171512628 FGREP \
1172212635 OBJDUMP \
1172312636 deplibs_check_method \
1172412637 file_magic_cmd \
12638 file_magic_glob \
12639 want_nocaseglob \
12640 DLLTOOL \
12641 sharedlib_from_linklib_cmd \
1172512642 AR \
1172612643 AR_FLAGS \
12644 archiver_list_spec \
1172712645 STRIP \
1172812646 RANLIB \
1172912647 CC \
1173312651 lt_cv_sys_global_symbol_to_cdecl \
1173412652 lt_cv_sys_global_symbol_to_c_name_address \
1173512653 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11736 SHELL \
11737 ECHO \
12654 nm_file_list_spec \
1173812655 lt_prog_compiler_no_builtin_flag \
12656 lt_prog_compiler_pic \
1173912657 lt_prog_compiler_wl \
11740 lt_prog_compiler_pic \
1174112658 lt_prog_compiler_static \
1174212659 lt_cv_prog_compiler_c_o \
1174312660 need_locks \
12661 MANIFEST_TOOL \
1174412662 DSYMUTIL \
1174512663 NMEDIT \
1174612664 LIPO \
1175412672 allow_undefined_flag \
1175512673 no_undefined_flag \
1175612674 hardcode_libdir_flag_spec \
11757 hardcode_libdir_flag_spec_ld \
1175812675 hardcode_libdir_separator \
11759 fix_srcfile_path \
1176012676 exclude_expsyms \
1176112677 include_expsyms \
1176212678 file_list_spec \
1176412680 libname_spec \
1176512681 library_names_spec \
1176612682 soname_spec \
12683 install_override_mode \
1176712684 finish_eval \
1176812685 old_striplib \
1176912686 striplib; do
11770 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12687 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1177112688 *[\\\\\\\`\\"\\\$]*)
11772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1177312690 ;;
1177412691 *)
1177512692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1179112708 module_expsym_cmds \
1179212709 export_symbols_cmds \
1179312710 prelink_cmds \
12711 postlink_cmds \
1179412712 postinstall_cmds \
1179512713 postuninstall_cmds \
1179612714 finish_cmds \
1179712715 sys_lib_search_path_spec \
1179812716 sys_lib_dlsearch_path_spec; do
11799 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12717 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1180012718 *[\\\\\\\`\\"\\\$]*)
11801 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1180212720 ;;
1180312721 *)
1180412722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1180512723 ;;
1180612724 esac
1180712725 done
11808
11809 # Fix-up fallback echo if it was mangled by the above quoting rules.
11810 case \$lt_ECHO in
11811 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11812 ;;
11813 esac
1181412726
1181512727 ac_aux_dir='$ac_aux_dir'
1181612728 xsi_shell='$xsi_shell'
1184612758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1184712759 "vo-aacenc.pc") CONFIG_FILES="$CONFIG_FILES vo-aacenc.pc" ;;
1184812760
11849 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12761 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1185012762 esac
1185112763 done
1185212764
1186912781 # after its creation but before its name has been assigned to `$tmp'.
1187012782 $debug ||
1187112783 {
11872 tmp=
12784 tmp= ac_tmp=
1187312785 trap 'exit_status=$?
11874 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12786 : "${ac_tmp:=$tmp}"
12787 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1187512788 ' 0
1187612789 trap 'as_fn_exit 1' 1 2 13 15
1187712790 }
1187912792
1188012793 {
1188112794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11882 test -n "$tmp" && test -d "$tmp"
12795 test -d "$tmp"
1188312796 } ||
1188412797 {
1188512798 tmp=./conf$$-$RANDOM
1188612799 (umask 077 && mkdir "$tmp")
1188712800 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12801 ac_tmp=$tmp
1188812802
1188912803 # Set up the scripts for CONFIG_FILES section.
1189012804 # No need to generate them if there are no CONFIG_FILES.
1190612820 ac_cs_awk_cr=$ac_cr
1190712821 fi
1190812822
11909 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12823 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1191012824 _ACEOF
1191112825
1191212826
1193412848 rm -f conf$$subs.sh
1193512849
1193612850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11937 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12851 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1193812852 _ACEOF
1193912853 sed -n '
1194012854 h
1198212896 rm -f conf$$subs.awk
1198312897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1198412898 _ACAWK
11985 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12899 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1198612900 for (key in S) S_is_set[key] = 1
1198712901 FS = ""
1198812902
1201412928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1201512929 else
1201612930 cat
12017 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12931 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1201812932 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1201912933 _ACEOF
1202012934
1204812962 # No need to generate them if there are no CONFIG_HEADERS.
1204912963 # This happens for instance with `./config.status Makefile'.
1205012964 if test -n "$CONFIG_HEADERS"; then
12051 cat >"$tmp/defines.awk" <<\_ACAWK ||
12965 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1205212966 BEGIN {
1205312967 _ACEOF
1205412968
1206012974 # handling of long lines.
1206112975 ac_delim='%!_!# '
1206212976 for ac_last_try in false false :; do
12063 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12064 if test -z "$ac_t"; then
12977 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12978 if test -z "$ac_tt"; then
1206512979 break
1206612980 elif $ac_last_try; then
1206712981 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1216213076 esac
1216313077 case $ac_mode$ac_tag in
1216413078 :[FHL]*:*);;
12165 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13079 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1216613080 :[FH]-) ac_tag=-:-;;
1216713081 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1216813082 esac
1218113095 for ac_f
1218213096 do
1218313097 case $ac_f in
12184 -) ac_f="$tmp/stdin";;
13098 -) ac_f="$ac_tmp/stdin";;
1218513099 *) # Look for the file first in the build tree, then in the source tree
1218613100 # (if the path is not absolute). The absolute path cannot be DOS-style,
1218713101 # because $ac_f cannot contain `:'.
1219013104 [\\/$]*) false;;
1219113105 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1219213106 esac ||
12193 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13107 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1219413108 esac
1219513109 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1219613110 as_fn_append ac_file_inputs " '$ac_f'"
1221613130 esac
1221713131
1221813132 case $ac_tag in
12219 *:-:* | *:-) cat >"$tmp/stdin" \
12220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13133 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1222113135 esac
1222213136 ;;
1222313137 esac
1235313267 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1235413268 $ac_datarootdir_hack
1235513269 "
12356 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13270 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13271 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1235813272
1235913273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12360 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12361 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13274 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13276 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1236213277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1236313278 which seems to be undefined. Please make sure it is defined" >&5
1236413279 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1236513280 which seems to be undefined. Please make sure it is defined" >&2;}
1236613281
12367 rm -f "$tmp/stdin"
13282 rm -f "$ac_tmp/stdin"
1236813283 case $ac_file in
12369 -) cat "$tmp/out" && rm -f "$tmp/out";;
12370 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13284 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13285 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1237113286 esac \
1237213287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1237313288 ;;
1237813293 if test x"$ac_file" != x-; then
1237913294 {
1238013295 $as_echo "/* $configure_input */" \
12381 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12382 } >"$tmp/config.h" \
13296 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13297 } >"$ac_tmp/config.h" \
1238313298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12384 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13299 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1238513300 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1238613301 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1238713302 else
1238813303 rm -f "$ac_file"
12389 mv "$tmp/config.h" "$ac_file" \
13304 mv "$ac_tmp/config.h" "$ac_file" \
1239013305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1239113306 fi
1239213307 else
1239313308 $as_echo "/* $configure_input */" \
12394 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13309 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1239513310 || as_fn_error $? "could not create -" "$LINENO" 5
1239613311 fi
1239713312 # Compute "$ac_file"'s index in $config_headers.
1255313468 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1255413469 #
1255513470 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12556 # 2006, 2007, 2008 Free Software Foundation, Inc.
13471 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13472 # Foundation, Inc.
1255713473 # Written by Gordon Matzigkeit, 1996
1255813474 #
1255913475 # This file is part of GNU Libtool.
1260113517 # Whether or not to optimize for fast installation.
1260213518 fast_install=$enable_fast_install
1260313519
13520 # Shell to use when invoking shell scripts.
13521 SHELL=$lt_SHELL
13522
13523 # An echo program that protects backslashes.
13524 ECHO=$lt_ECHO
13525
13526 # The PATH separator for the build system.
13527 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13528
1260413529 # The host system.
1260513530 host_alias=$host_alias
1260613531 host=$host
1265013575 # turn newlines into spaces.
1265113576 NL2SP=$lt_lt_NL2SP
1265213577
12653 # How to create reloadable object files.
12654 reload_flag=$lt_reload_flag
12655 reload_cmds=$lt_reload_cmds
13578 # convert \$build file names to \$host format.
13579 to_host_file_cmd=$lt_cv_to_host_file_cmd
13580
13581 # convert \$build files to toolchain format.
13582 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1265613583
1265713584 # An object symbol dumper.
1265813585 OBJDUMP=$lt_OBJDUMP
1266013587 # Method to check whether dependent libraries are shared objects.
1266113588 deplibs_check_method=$lt_deplibs_check_method
1266213589
12663 # Command to use when deplibs_check_method == "file_magic".
13590 # Command to use when deplibs_check_method = "file_magic".
1266413591 file_magic_cmd=$lt_file_magic_cmd
13592
13593 # How to find potential files when deplibs_check_method = "file_magic".
13594 file_magic_glob=$lt_file_magic_glob
13595
13596 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13597 want_nocaseglob=$lt_want_nocaseglob
13598
13599 # DLL creation program.
13600 DLLTOOL=$lt_DLLTOOL
13601
13602 # Command to associate shared and link libraries.
13603 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1266513604
1266613605 # The archiver.
1266713606 AR=$lt_AR
13607
13608 # Flags to create an archive.
1266813609 AR_FLAGS=$lt_AR_FLAGS
13610
13611 # How to feed a file listing to the archiver.
13612 archiver_list_spec=$lt_archiver_list_spec
1266913613
1267013614 # A symbol stripping program.
1267113615 STRIP=$lt_STRIP
1267513619 old_postinstall_cmds=$lt_old_postinstall_cmds
1267613620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
1267713621
13622 # Whether to use a lock for old archive extraction.
13623 lock_old_archive_extraction=$lock_old_archive_extraction
13624
1267813625 # A C compiler.
1267913626 LTCC=$lt_CC
1268013627
1269313640 # Transform the output of nm in a C name address pair when lib prefix is needed.
1269413641 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1269513642
13643 # Specify filename containing input files for \$NM.
13644 nm_file_list_spec=$lt_nm_file_list_spec
13645
13646 # The root where to search for dependent libraries,and in which our libraries should be installed.
13647 lt_sysroot=$lt_sysroot
13648
1269613649 # The name of the directory that contains temporary libtool files.
1269713650 objdir=$objdir
1269813651
12699 # Shell to use when invoking shell scripts.
12700 SHELL=$lt_SHELL
12701
12702 # An echo program that does not interpret backslashes.
12703 ECHO=$lt_ECHO
12704
1270513652 # Used to examine libraries when file_magic_cmd begins with "file".
1270613653 MAGIC_CMD=$MAGIC_CMD
1270713654
1270813655 # Must we lock files when doing compilation?
1270913656 need_locks=$lt_need_locks
13657
13658 # Manifest tool.
13659 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1271013660
1271113661 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1271213662 DSYMUTIL=$lt_DSYMUTIL
1276413714 # The coded name of the library, if different from the real name.
1276513715 soname_spec=$lt_soname_spec
1276613716
13717 # Permission mode override for installation of shared libraries.
13718 install_override_mode=$lt_install_override_mode
13719
1276713720 # Command to use after installation of a shared archive.
1276813721 postinstall_cmds=$lt_postinstall_cmds
1276913722
1280313756 # The linker used to build libraries.
1280413757 LD=$lt_LD
1280513758
13759 # How to create reloadable object files.
13760 reload_flag=$lt_reload_flag
13761 reload_cmds=$lt_reload_cmds
13762
1280613763 # Commands used to build an old-style archive.
1280713764 old_archive_cmds=$lt_old_archive_cmds
1280813765
1281513772 # Compiler flag to turn off builtin functions.
1281613773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1281713774
13775 # Additional compiler flags for building library objects.
13776 pic_flag=$lt_lt_prog_compiler_pic
13777
1281813778 # How to pass a linker flag through the compiler.
1281913779 wl=$lt_lt_prog_compiler_wl
12820
12821 # Additional compiler flags for building library objects.
12822 pic_flag=$lt_lt_prog_compiler_pic
1282313780
1282413781 # Compiler flag to prevent dynamic linking.
1282513782 link_static_flag=$lt_lt_prog_compiler_static
1286913826 # Flag to hardcode \$libdir into a binary during linking.
1287013827 # This must work even if \$libdir does not exist
1287113828 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12872
12873 # If ld is used when linking, flag to hardcode \$libdir into a binary
12874 # during linking. This must work even if \$libdir does not exist.
12875 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1287613829
1287713830 # Whether we need a single "-rpath" flag with a separated argument.
1287813831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1290713860 # Whether libtool must link a program against all its dependency libraries.
1290813861 link_all_deplibs=$link_all_deplibs
1290913862
12910 # Fix the shell variable \$srcfile for the compiler.
12911 fix_srcfile_path=$lt_fix_srcfile_path
12912
1291313863 # Set to "yes" if exported symbols are required.
1291413864 always_export_symbols=$always_export_symbols
1291513865
1292413874
1292513875 # Commands necessary for linking programs (against libraries) with templates.
1292613876 prelink_cmds=$lt_prelink_cmds
13877
13878 # Commands necessary for finishing linking programs.
13879 postlink_cmds=$lt_postlink_cmds
1292713880
1292813881 # Specify filename containing input files.
1292913882 file_list_spec=$lt_file_list_spec
1295713910 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1295813911 # text mode, it properly converts lines to CR/LF. This bash problem
1295913912 # is reportedly fixed, but why not run on old versions too?
12960 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12961 || (rm -f "$cfgfile"; exit 1)
12962
12963 case $xsi_shell in
12964 yes)
12965 cat << \_LT_EOF >> "$cfgfile"
12966
12967 # func_dirname file append nondir_replacement
12968 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12969 # otherwise set result to NONDIR_REPLACEMENT.
12970 func_dirname ()
12971 {
12972 case ${1} in
12973 */*) func_dirname_result="${1%/*}${2}" ;;
12974 * ) func_dirname_result="${3}" ;;
12975 esac
12976 }
12977
12978 # func_basename file
12979 func_basename ()
12980 {
12981 func_basename_result="${1##*/}"
12982 }
12983
12984 # func_dirname_and_basename file append nondir_replacement
12985 # perform func_basename and func_dirname in a single function
12986 # call:
12987 # dirname: Compute the dirname of FILE. If nonempty,
12988 # add APPEND to the result, otherwise set result
12989 # to NONDIR_REPLACEMENT.
12990 # value returned in "$func_dirname_result"
12991 # basename: Compute filename of FILE.
12992 # value retuned in "$func_basename_result"
12993 # Implementation must be kept synchronized with func_dirname
12994 # and func_basename. For efficiency, we do not delegate to
12995 # those functions but instead duplicate the functionality here.
12996 func_dirname_and_basename ()
12997 {
12998 case ${1} in
12999 */*) func_dirname_result="${1%/*}${2}" ;;
13000 * ) func_dirname_result="${3}" ;;
13001 esac
13002 func_basename_result="${1##*/}"
13003 }
13004
13005 # func_stripname prefix suffix name
13006 # strip PREFIX and SUFFIX off of NAME.
13007 # PREFIX and SUFFIX must not contain globbing or regex special
13008 # characters, hashes, percent signs, but SUFFIX may contain a leading
13009 # dot (in which case that matches only a dot).
13010 func_stripname ()
13011 {
13012 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13013 # positional parameters, so assign one to ordinary parameter first.
13014 func_stripname_result=${3}
13015 func_stripname_result=${func_stripname_result#"${1}"}
13016 func_stripname_result=${func_stripname_result%"${2}"}
13017 }
13018
13019 # func_opt_split
13020 func_opt_split ()
13021 {
13022 func_opt_split_opt=${1%%=*}
13023 func_opt_split_arg=${1#*=}
13024 }
13025
13026 # func_lo2o object
13027 func_lo2o ()
13028 {
13029 case ${1} in
13030 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13031 *) func_lo2o_result=${1} ;;
13032 esac
13033 }
13034
13035 # func_xform libobj-or-source
13036 func_xform ()
13037 {
13038 func_xform_result=${1%.*}.lo
13039 }
13040
13041 # func_arith arithmetic-term...
13042 func_arith ()
13043 {
13044 func_arith_result=$(( $* ))
13045 }
13046
13047 # func_len string
13048 # STRING may not start with a hyphen.
13049 func_len ()
13050 {
13051 func_len_result=${#1}
13052 }
13053
13054 _LT_EOF
13055 ;;
13056 *) # Bourne compatible functions.
13057 cat << \_LT_EOF >> "$cfgfile"
13058
13059 # func_dirname file append nondir_replacement
13060 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13061 # otherwise set result to NONDIR_REPLACEMENT.
13062 func_dirname ()
13063 {
13064 # Extract subdirectory from the argument.
13065 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13066 if test "X$func_dirname_result" = "X${1}"; then
13067 func_dirname_result="${3}"
13068 else
13069 func_dirname_result="$func_dirname_result${2}"
13070 fi
13071 }
13072
13073 # func_basename file
13074 func_basename ()
13075 {
13076 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13077 }
13078
13079
13080 # func_stripname prefix suffix name
13081 # strip PREFIX and SUFFIX off of NAME.
13082 # PREFIX and SUFFIX must not contain globbing or regex special
13083 # characters, hashes, percent signs, but SUFFIX may contain a leading
13084 # dot (in which case that matches only a dot).
13085 # func_strip_suffix prefix name
13086 func_stripname ()
13087 {
13088 case ${2} in
13089 .*) func_stripname_result=`$ECHO "X${3}" \
13090 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13091 *) func_stripname_result=`$ECHO "X${3}" \
13092 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13093 esac
13094 }
13095
13096 # sed scripts:
13097 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13098 my_sed_long_arg='1s/^-[^=]*=//'
13099
13100 # func_opt_split
13101 func_opt_split ()
13102 {
13103 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13104 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13105 }
13106
13107 # func_lo2o object
13108 func_lo2o ()
13109 {
13110 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13111 }
13112
13113 # func_xform libobj-or-source
13114 func_xform ()
13115 {
13116 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13117 }
13118
13119 # func_arith arithmetic-term...
13120 func_arith ()
13121 {
13122 func_arith_result=`expr "$@"`
13123 }
13124
13125 # func_len string
13126 # STRING may not start with a hyphen.
13127 func_len ()
13128 {
13129 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13130 }
13131
13132 _LT_EOF
13133 esac
13134
13135 case $lt_shell_append in
13136 yes)
13137 cat << \_LT_EOF >> "$cfgfile"
13138
13139 # func_append var value
13140 # Append VALUE to the end of shell variable VAR.
13141 func_append ()
13142 {
13143 eval "$1+=\$2"
13144 }
13145 _LT_EOF
13146 ;;
13147 *)
13148 cat << \_LT_EOF >> "$cfgfile"
13149
13150 # func_append var value
13151 # Append VALUE to the end of shell variable VAR.
13152 func_append ()
13153 {
13154 eval "$1=\$$1\$2"
13155 }
13156
13157 _LT_EOF
13158 ;;
13159 esac
13160
13161
13162 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13163 || (rm -f "$cfgfile"; exit 1)
13164
13165 mv -f "$cfgfile" "$ofile" ||
13913 sed '$q' "$ltmain" >> "$cfgfile" \
13914 || (rm -f "$cfgfile"; exit 1)
13915
13916 if test x"$xsi_shell" = xyes; then
13917 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13918 func_dirname ()\
13919 {\
13920 \ case ${1} in\
13921 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13922 \ * ) func_dirname_result="${3}" ;;\
13923 \ esac\
13924 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13925 && mv -f "$cfgfile.tmp" "$cfgfile" \
13926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13927 test 0 -eq $? || _lt_function_replace_fail=:
13928
13929
13930 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13931 func_basename ()\
13932 {\
13933 \ func_basename_result="${1##*/}"\
13934 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13935 && mv -f "$cfgfile.tmp" "$cfgfile" \
13936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13937 test 0 -eq $? || _lt_function_replace_fail=:
13938
13939
13940 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13941 func_dirname_and_basename ()\
13942 {\
13943 \ case ${1} in\
13944 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13945 \ * ) func_dirname_result="${3}" ;;\
13946 \ esac\
13947 \ func_basename_result="${1##*/}"\
13948 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13949 && mv -f "$cfgfile.tmp" "$cfgfile" \
13950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13951 test 0 -eq $? || _lt_function_replace_fail=:
13952
13953
13954 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13955 func_stripname ()\
13956 {\
13957 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13958 \ # positional parameters, so assign one to ordinary parameter first.\
13959 \ func_stripname_result=${3}\
13960 \ func_stripname_result=${func_stripname_result#"${1}"}\
13961 \ func_stripname_result=${func_stripname_result%"${2}"}\
13962 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13963 && mv -f "$cfgfile.tmp" "$cfgfile" \
13964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13965 test 0 -eq $? || _lt_function_replace_fail=:
13966
13967
13968 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13969 func_split_long_opt ()\
13970 {\
13971 \ func_split_long_opt_name=${1%%=*}\
13972 \ func_split_long_opt_arg=${1#*=}\
13973 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13974 && mv -f "$cfgfile.tmp" "$cfgfile" \
13975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13976 test 0 -eq $? || _lt_function_replace_fail=:
13977
13978
13979 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13980 func_split_short_opt ()\
13981 {\
13982 \ func_split_short_opt_arg=${1#??}\
13983 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13984 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13985 && mv -f "$cfgfile.tmp" "$cfgfile" \
13986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13987 test 0 -eq $? || _lt_function_replace_fail=:
13988
13989
13990 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13991 func_lo2o ()\
13992 {\
13993 \ case ${1} in\
13994 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13995 \ *) func_lo2o_result=${1} ;;\
13996 \ esac\
13997 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13998 && mv -f "$cfgfile.tmp" "$cfgfile" \
13999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14000 test 0 -eq $? || _lt_function_replace_fail=:
14001
14002
14003 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14004 func_xform ()\
14005 {\
14006 func_xform_result=${1%.*}.lo\
14007 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14008 && mv -f "$cfgfile.tmp" "$cfgfile" \
14009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14010 test 0 -eq $? || _lt_function_replace_fail=:
14011
14012
14013 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14014 func_arith ()\
14015 {\
14016 func_arith_result=$(( $* ))\
14017 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14018 && mv -f "$cfgfile.tmp" "$cfgfile" \
14019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14020 test 0 -eq $? || _lt_function_replace_fail=:
14021
14022
14023 sed -e '/^func_len ()$/,/^} # func_len /c\
14024 func_len ()\
14025 {\
14026 func_len_result=${#1}\
14027 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14028 && mv -f "$cfgfile.tmp" "$cfgfile" \
14029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14030 test 0 -eq $? || _lt_function_replace_fail=:
14031
14032 fi
14033
14034 if test x"$lt_shell_append" = xyes; then
14035 sed -e '/^func_append ()$/,/^} # func_append /c\
14036 func_append ()\
14037 {\
14038 eval "${1}+=\\${2}"\
14039 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14040 && mv -f "$cfgfile.tmp" "$cfgfile" \
14041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14042 test 0 -eq $? || _lt_function_replace_fail=:
14043
14044
14045 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14046 func_append_quoted ()\
14047 {\
14048 \ func_quote_for_eval "${2}"\
14049 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14050 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14051 && mv -f "$cfgfile.tmp" "$cfgfile" \
14052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14053 test 0 -eq $? || _lt_function_replace_fail=:
14054
14055
14056 # Save a `func_append' function call where possible by direct use of '+='
14057 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14058 && mv -f "$cfgfile.tmp" "$cfgfile" \
14059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14060 test 0 -eq $? || _lt_function_replace_fail=:
14061 else
14062 # Save a `func_append' function call even when '+=' is not available
14063 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14064 && mv -f "$cfgfile.tmp" "$cfgfile" \
14065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14066 test 0 -eq $? || _lt_function_replace_fail=:
14067 fi
14068
14069 if test x"$_lt_function_replace_fail" = x":"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14071 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14072 fi
14073
14074
14075 mv -f "$cfgfile" "$ofile" ||
1316614076 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1316714077 chmod +x "$ofile"
1316814078
00 # -*- Autoconf -*-
11 # Process this file with autoconf to produce a configure script.
22
3 AC_INIT([vo-aacenc], [0.1.1], [http://sourceforge.net/projects/opencore-amr/])
3 AC_INIT([vo-aacenc], [0.1.2], [http://sourceforge.net/projects/opencore-amr/])
44 AC_CONFIG_AUX_DIR(.)
55 AC_CONFIG_MACRO_DIR([m4])
66 AM_INIT_AUTOMAKE([tar-ustar])
4343 # soname version to use
4444 # goes by ‘current[:revision[:age]]’ with the soname ending up as
4545 # current.age.revision.
46 VO_AACENC_VERSION=0:2:0
46 VO_AACENC_VERSION=0:3:0
4747 AC_SUBST(VO_AACENC_VERSION)
4848
4949 AC_CONFIG_FILES([Makefile
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2011-12-04.11; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011 Free Software Foundation, Inc.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
4343 object Object file output by `PROGRAMS ARGS'.
4444 DEPDIR directory where to store dependencies.
4545 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
46 tmpdepfile Temporary file to use when outputting dependencies.
4747 libtool Whether libtool is used (yes/no).
4848
4949 Report bugs to <bug-automake@gnu.org>.
8989 # This is just like msvisualcpp but w/o cygpath translation.
9090 # Just convert the backslash-escaped backslashes to single forward
9191 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
92 cygpath_u='sed s,\\\\,/,g'
9393 depmode=msvisualcpp
94 fi
95
96 if test "$depmode" = msvc7msys; then
97 # This is just like msvc7 but w/o cygpath translation.
98 # Just convert the backslash-escaped backslashes to single forward
99 # slashes to satisfy depend.m4
100 cygpath_u='sed s,\\\\,/,g'
101 depmode=msvc7
94102 fi
95103
96104 case "$depmode" in
157165 ' < "$tmpdepfile" |
158166 ## Some versions of gcc put a space before the `:'. On the theory
159167 ## that the space means something, we add a space to the output as
160 ## well.
168 ## well. hp depmode also adds that space, but also prefixes the VPATH
169 ## to the object. Take care to not repeat it in the output.
161170 ## Some versions of the HPUX 10.20 sed can't process this invocation
162171 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
172 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
173 | sed -e 's/$/ :/' >> "$depfile"
164174 rm -f "$tmpdepfile"
165175 ;;
166176
404414 rm -f "$tmpdepfile"
405415 ;;
406416
417 msvc7)
418 if test "$libtool" = yes; then
419 showIncludes=-Wc,-showIncludes
420 else
421 showIncludes=-showIncludes
422 fi
423 "$@" $showIncludes > "$tmpdepfile"
424 stat=$?
425 grep -v '^Note: including file: ' "$tmpdepfile"
426 if test "$stat" = 0; then :
427 else
428 rm -f "$tmpdepfile"
429 exit $stat
430 fi
431 rm -f "$depfile"
432 echo "$object : \\" > "$depfile"
433 # The first sed program below extracts the file names and escapes
434 # backslashes for cygpath. The second sed program outputs the file
435 # name when reading, but also accumulates all include files in the
436 # hold buffer in order to output them again at the end. This only
437 # works with sed implementations that can handle large buffers.
438 sed < "$tmpdepfile" -n '
439 /^Note: including file: *\(.*\)/ {
440 s//\1/
441 s/\\/\\\\/g
442 p
443 }' | $cygpath_u | sort -u | sed -n '
444 s/ /\\ /g
445 s/\(.*\)/ \1 \\/p
446 s/.\(.*\) \\/\1:/
447 H
448 $ {
449 s/.*/ /
450 G
451 p
452 }' >> "$depfile"
453 rm -f "$tmpdepfile"
454 ;;
455
456 msvc7msys)
457 # This case exists only to let depend.m4 do its work. It works by
458 # looking at the text of this script. This case will never be run,
459 # since it is checked for above.
460 exit 1
461 ;;
462
407463 #nosideeffect)
408464 # This comment above is used by automake to tell side-effect
409465 # dependency tracking mechanisms from slower ones.
502558 touch "$tmpdepfile"
503559 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504560 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
561 # makedepend may prepend the VPATH from the source file name to the object.
562 # No need to regex-escape $object, excess matching of '.' is harmless.
563 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
506564 sed '1,2d' "$tmpdepfile" | tr ' ' '
507565 ' | \
508566 ## Some versions of the HPUX 10.20 sed can't process this invocation
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-01-19.21; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for `test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
158162 shift;;
159163
160164 -T) no_target_directory=true;;
185189 fi
186190 shift # arg
187191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
188196 done
189197 fi
190198
199207 fi
200208
201209 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
203215
204216 # Set umask so as not to create temps with too-generous modes.
205217 # However, 'strip' requires both read and write access to temps.
227239
228240 for src
229241 do
230 # Protect names starting with `-'.
242 # Protect names problematic for `test' and other utilities.
231243 case $src in
232 -*) src=./$src;;
244 -* | [=\(\)!]) src=./$src;;
233245 esac
234246
235247 if test -n "$dir_arg"; then
251263 echo "$0: no destination specified." >&2
252264 exit 1
253265 fi
254
255266 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260267
261268 # If destination is a directory, append the input filename; won't work
262269 # if double slashes aren't ignored.
384391
385392 case $dstdir in
386393 /*) prefix='/';;
387 -*) prefix='./';;
394 [-=\(\)!]*) prefix='./';;
388395 *) prefix='';;
389396 esac
390397
402409
403410 for d
404411 do
405 test -z "$d" && continue
412 test X"$d" = X && continue
406413
407414 prefix=$prefix$d
408415 if test -d "$prefix"; then
+2790
-1542
ltmain.sh less more
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6b
0
1 # libtool (GNU libtool) 2.4.2
32 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
43
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
66 # This is free software; see the source for copying conditions. There is NO
77 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
88
3131 #
3232 # Provide generalized library-building support services.
3333 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
4549 #
4650 # MODE must be one of the following:
4751 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
5559 #
56 # MODE-ARGS vary depending on the MODE.
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
5762 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
5863 #
5964 # When reporting a bug, please describe a test case to reproduce it and
6065 # include the following information:
6166 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2
68 # automake: $automake_version
69 # autoconf: $autoconf_version
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1
73 # automake: $automake_version
74 # autoconf: $autoconf_version
7075 #
7176 # Report bugs to <bug-libtool@gnu.org>.
72
73 PROGRAM=ltmain.sh
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
79
80 PROGRAM=libtool
7481 PACKAGE=libtool
75 VERSION="2.2.6b Debian-2.2.6b-2"
82 VERSION="2.4.2 Debian-2.4.2-1"
7683 TIMESTAMP=""
77 package_revision=1.3017
84 package_revision=1.3337
7885
7986 # Be Bourne compatible
8087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9097 BIN_SH=xpg4; export BIN_SH # for Tru64
9198 DUALCASE=1; export DUALCASE # for MKS sh
9299
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
93108 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97109 lt_user_locale=
98110 lt_safe_locale=
99111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
106118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107119 fi"
108120 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
109124
110125 $lt_unset CDPATH
111126
112127
128 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129 # is ksh but when the shell is invoked as "sh" and the current value of
130 # the _XPG environment variable is not equal to 1 (one), the special
131 # positional parameter $0, within a function call, is the name of the
132 # function.
133 progpath="$0"
113134
114135
115136
116137 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
122139 : ${MAKE="make"}
123140 : ${MKDIR="mkdir"}
124141 : ${MV="mv -f"}
125142 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128144 : ${Xsed="$SED -e 1s/^X//"}
129145
142158
143159 dirname="s,/[^/]*$,,"
144160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
163 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
145182
146183 # func_dirname_and_basename file append nondir_replacement
147184 # perform func_basename and func_dirname in a single function
157194 # those functions but instead duplicate the functionality here.
158195 func_dirname_and_basename ()
159196 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
201 else
202 func_dirname_result="$func_dirname_result${2}"
203 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
232
233 # func_normal_abspath PATH
234 # Remove doubled-up and trailing slashes, "." path components,
235 # and cancel out any ".." path components in PATH after making
236 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238 func_normal_abspath ()
239 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
287 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
337 fi
338 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
166360 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
178370
179371 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182372 func_dirname_and_basename "$progpath"
183373 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187374
188375 # Make sure we have an absolute path for reexecution:
189376 case $progpath in
195382 ;;
196383 *)
197384 save_IFS="$IFS"
198 IFS=:
385 IFS=${PATH_SEPARATOR-:}
199386 for progdir in $PATH; do
200387 IFS="$save_IFS"
201388 test -x "$progdir/$progname" && break
213400
214401 # Same as above, but do not quote variable references.
215402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
216412
217413 # Re-`\' parameter expansions in output of double_quote_subst that were
218414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
242438 # name if it has been set yet.
243439 func_echo ()
244440 {
245 $ECHO "$progname${mode+: }$mode: $*"
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
246442 }
247443
248444 # func_verbose arg...
257453 :
258454 }
259455
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
260463 # func_error arg...
261464 # Echo program name prefixed message to standard error.
262465 func_error ()
263466 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
265468 }
266469
267470 # func_warning arg...
268471 # Echo program name prefixed warning message to standard error.
269472 func_warning ()
270473 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
272475
273476 # bash bug again:
274477 :
325528 case $my_directory_path in */*) ;; *) break ;; esac
326529
327530 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
329532 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
331534
332535 save_mkdir_p_IFS="$IFS"; IFS=':'
333536 for my_dir in $my_dir_list; do
377580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378581 fi
379582
380 $ECHO "X$my_tmpdir" | $Xsed
583 $ECHO "$my_tmpdir"
381584 }
382585
383586
391594 {
392595 case $1 in
393596 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
395598 *)
396599 func_quote_for_eval_unquoted_result="$1" ;;
397600 esac
418621 {
419622 case $1 in
420623 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
624 my_arg=`$ECHO "$1" | $SED \
422625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423626 *)
424627 my_arg="$1" ;;
487690 fi
488691 }
489692
490
491
693 # func_tr_sh
694 # Turn $1 into a string suitable for a shell variable name.
695 # Result is stored in $func_tr_sh_result. All characters
696 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
697 # if $1 begins with a digit, a '_' is prepended as well.
698 func_tr_sh ()
699 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
492709
493710
494711 # func_version
495712 # Echo version message to standard output and exit.
496713 func_version ()
497714 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
499726 s/^# //
500727 s/^# *$//
501728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
508735 # Echo short help message to standard output and exit.
509736 func_usage ()
510737 {
511 $SED -n '/^# Usage:/,/# -h/ {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
512741 s/^# //
513742 s/^# *$//
514743 s/\$progname/'$progname'/
515744 p
516745 }' < "$progpath"
517 $ECHO
746 echo
518747 $ECHO "run \`$progname --help | more' for full usage"
519748 exit $?
520749 }
521750
522 # func_help
523 # Echo long help message to standard output and exit.
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
524754 func_help ()
525755 {
756 $opt_debug
757
526758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
527760 s/^# //
528761 s/^# *$//
529762 s*\$progname*'$progname'*
533766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534767 s*\$LD*'"$LD"'*
535768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
538771 p
539 }' < "$progpath"
540 exit $?
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
541781 }
542782
543783 # func_missing_arg argname
545785 # exit_cmd.
546786 func_missing_arg ()
547787 {
548 func_error "missing argument for $1"
788 $opt_debug
789
790 func_error "missing argument for $1."
549791 exit_cmd=exit
550792 }
551793
794
795 # func_split_short_opt shortopt
796 # Set func_split_short_opt_name and func_split_short_opt_arg shell
797 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
552820 exit_cmd=:
553821
554822
555823
556824
557
558 # Check that we have a working $ECHO.
559 if test "X$1" = X--no-reexec; then
560 # Discard the --no-reexec flag, and continue.
561 shift
562 elif test "X$1" = X--fallback-echo; then
563 # Avoid inline document here, it may be left over
564 :
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
567 :
568 else
569 # Restart under the correct shell, and then maybe $ECHO will work.
570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
571 fi
572
573 if test "X$1" = X--fallback-echo; then
574 # used as fallback echo
575 shift
576 cat <<EOF
577 $*
578 EOF
579 exit $EXIT_SUCCESS
580 fi
581825
582826 magic="%%%MAGIC variable%%%"
583827 magic_exe="%%%MAGIC EXE variable%%%"
584828
585829 # Global variables.
586 # $mode is unset
587830 nonopt=
588 execute_dlfiles=
589831 preserve_args=
590832 lo2o="s/\\.lo\$/.${objext}/"
591833 o2lo="s/\\.${objext}\$/.lo/"
592834 extracted_archives=
593835 extracted_serial=0
594836
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600837 # If this variable is set in any of the actions, the command in it
601838 # will be execed at the end. This prevents here-documents from being
602839 # left over by shells.
603840 exec_cmd=
604841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
605888 # func_fatal_configuration arg...
606889 # Echo program name prefixed message to standard error, followed by
607890 # a configuration failure hint, and exit.
635918 # Display the features supported by this script.
636919 func_features ()
637920 {
638 $ECHO "host: $host"
921 echo "host: $host"
639922 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
923 echo "enable shared libraries"
641924 else
642 $ECHO "disable shared libraries"
925 echo "disable shared libraries"
643926 fi
644927 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
928 echo "enable static libraries"
646929 else
647 $ECHO "disable static libraries"
930 echo "disable static libraries"
648931 fi
649932
650933 exit $?
689972 fi
690973 ;;
691974 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819975 }
820976
821977 # func_check_version_match
8541010 }
8551011
8561012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
1197 fi
1198
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
1219
1220
1221
8571222 ## ----------- ##
8581223 ## Main. ##
8591224 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
8881225
8891226 # func_lalib_p file
8901227 # True iff FILE is a libtool `.la' library or `.lo' object file.
9491286 # temporary ltwrapper_script.
9501287 func_ltwrapper_scriptname ()
9511288 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
1289 func_dirname_and_basename "$1" "" "."
1290 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
9581292 }
9591293
9601294 # func_ltwrapper_p file
10001334 }
10011335
10021336
1337 # func_resolve_sysroot PATH
1338 # Replace a leading = in PATH with a sysroot. Store the result into
1339 # func_resolve_sysroot_result
1340 func_resolve_sysroot ()
1341 {
1342 func_resolve_sysroot_result=$1
1343 case $func_resolve_sysroot_result in
1344 =*)
1345 func_stripname '=' '' "$func_resolve_sysroot_result"
1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1347 ;;
1348 esac
1349 }
1350
1351 # func_replace_sysroot PATH
1352 # If PATH begins with the sysroot, replace it with = and
1353 # store the result into func_replace_sysroot_result.
1354 func_replace_sysroot ()
1355 {
1356 case "$lt_sysroot:$1" in
1357 ?*:"$lt_sysroot"*)
1358 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
1360 ;;
1361 *)
1362 # Including no sysroot.
1363 func_replace_sysroot_result=$1
1364 ;;
1365 esac
1366 }
1367
10031368 # func_infer_tag arg
10041369 # Infer tagged configuration to use if any are available and
10051370 # if one wasn't chosen via the "--tag" command line option.
10121377 if test -n "$available_tags" && test -z "$tagname"; then
10131378 CC_quoted=
10141379 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1380 func_append_quoted CC_quoted "$arg"
10171381 done
1382 CC_expanded=`func_echo_all $CC`
1383 CC_quoted_expanded=`func_echo_all $CC_quoted`
10181384 case $@ in
10191385 # Blanks in the command may have been stripped by the calling shell,
10201386 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
10221389 # Blanks at the start of $base_compile will cause this to fail
10231390 # if we don't check for them as well.
10241391 *)
10291396 CC_quoted=
10301397 for arg in $CC; do
10311398 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1399 func_append_quoted CC_quoted "$arg"
10341400 done
1401 CC_expanded=`func_echo_all $CC`
1402 CC_quoted_expanded=`func_echo_all $CC_quoted`
10351403 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
10371406 # The compiler in the base compile command matches
10381407 # the one in the tagged configuration.
10391408 # Assume this is the tagged configuration we want.
10961465 }
10971466 }
10981467
1468
1469 ##################################################
1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1471 ##################################################
1472
1473 # func_convert_core_file_wine_to_w32 ARG
1474 # Helper function used by file name conversion functions when $build is *nix,
1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1476 # correctly configured wine environment available, with the winepath program
1477 # in $build's $PATH.
1478 #
1479 # ARG is the $build file name to be converted to w32 format.
1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1481 # be empty on error (or when ARG is empty)
1482 func_convert_core_file_wine_to_w32 ()
1483 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1488 # are forced to check the contents of stdout. On the other hand, if the
1489 # command is not found, the shell will set an exit code of 127 and print
1490 # *an error message* to stdout. So we must check for both error code of
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
1496 else
1497 func_convert_core_file_wine_to_w32_result=
1498 fi
1499 fi
1500 }
1501 # end: func_convert_core_file_wine_to_w32
1502
1503
1504 # func_convert_core_path_wine_to_w32 ARG
1505 # Helper function used by path conversion functions when $build is *nix, and
1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1507 # configured wine environment available, with the winepath program in $build's
1508 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1509 #
1510 # ARG is path to be converted from $build format to win32.
1511 # Result is available in $func_convert_core_path_wine_to_w32_result.
1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1513 # are convertible, then the result may be empty.
1514 func_convert_core_path_wine_to_w32 ()
1515 {
1516 $opt_debug
1517 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
1519 if test -n "$1"; then
1520 oldIFS=$IFS
1521 IFS=:
1522 for func_convert_core_path_wine_to_w32_f in $1; do
1523 IFS=$oldIFS
1524 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1528 else
1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1530 fi
1531 fi
1532 done
1533 IFS=$oldIFS
1534 fi
1535 }
1536 # end: func_convert_core_path_wine_to_w32
1537
1538
1539 # func_cygpath ARGS...
1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1544 # file name or path is assumed to be in w32 format, as previously converted
1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1546 # or path in func_cygpath_result (input file name or path is assumed to be in
1547 # Cygwin format). Returns an empty string on error.
1548 #
1549 # ARGS are passed to cygpath, with the last one being the file name or path to
1550 # be converted.
1551 #
1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1553 # environment variable; do not put it in $PATH.
1554 func_cygpath ()
1555 {
1556 $opt_debug
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1559 if test "$?" -ne 0; then
1560 # on failure, ensure result is empty
1561 func_cygpath_result=
1562 fi
1563 else
1564 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1566 fi
1567 }
1568 #end: func_cygpath
1569
1570
1571 # func_convert_core_msys_to_w32 ARG
1572 # Convert file name or path ARG from MSYS format to w32 format. Return
1573 # result in func_convert_core_msys_to_w32_result.
1574 func_convert_core_msys_to_w32 ()
1575 {
1576 $opt_debug
1577 # awkward: cmd appends spaces to result
1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1580 }
1581 #end: func_convert_core_msys_to_w32
1582
1583
1584 # func_convert_file_check ARG1 ARG2
1585 # Verify that ARG1 (a file name in $build format) was converted to $host
1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1587 # func_to_host_file_result to ARG1).
1588 func_convert_file_check ()
1589 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
1592 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
1594 func_error "Continuing, but uninstalled executables may not work."
1595 # Fallback:
1596 func_to_host_file_result="$1"
1597 fi
1598 }
1599 # end func_convert_file_check
1600
1601
1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1603 # Verify that FROM_PATH (a path in $build format) was converted to $host
1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1605 # func_to_host_file_result to a simplistic fallback value (see below).
1606 func_convert_path_check ()
1607 {
1608 $opt_debug
1609 if test -z "$4" && test -n "$3"; then
1610 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
1612 func_error "Continuing, but uninstalled executables may not work."
1613 # Fallback. This is a deliberately simplistic "conversion" and
1614 # should not be "improved". See libtool.info.
1615 if test "x$1" != "x$2"; then
1616 lt_replace_pathsep_chars="s|$1|$2|g"
1617 func_to_host_path_result=`echo "$3" |
1618 $SED -e "$lt_replace_pathsep_chars"`
1619 else
1620 func_to_host_path_result="$3"
1621 fi
1622 fi
1623 }
1624 # end func_convert_path_check
1625
1626
1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1629 # and appending REPL if ORIG matches BACKPAT.
1630 func_convert_path_front_back_pathsep ()
1631 {
1632 $opt_debug
1633 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1635 ;;
1636 esac
1637 case $4 in
1638 $2 ) func_append func_to_host_path_result "$3"
1639 ;;
1640 esac
1641 }
1642 # end func_convert_path_front_back_pathsep
1643
1644
1645 ##################################################
1646 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1647 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
1649 #
1650 # In each case, ARG is the path to be converted from $build to $host format.
1651 # Result will be available in $func_to_host_file_result.
1652
1653
1654 # func_to_host_file ARG
1655 # Converts the file name ARG from $build format to $host format. Return result
1656 # in func_to_host_file_result.
1657 func_to_host_file ()
1658 {
1659 $opt_debug
1660 $to_host_file_cmd "$1"
1661 }
1662 # end func_to_host_file
1663
1664
1665 # func_to_tool_file ARG LAZY
1666 # converts the file name ARG from $build format to toolchain format. Return
1667 # result in func_to_tool_file_result. If the conversion in use is listed
1668 # in (the comma separated) LAZY, no conversion takes place.
1669 func_to_tool_file ()
1670 {
1671 $opt_debug
1672 case ,$2, in
1673 *,"$to_tool_file_cmd",*)
1674 func_to_tool_file_result=$1
1675 ;;
1676 *)
1677 $to_tool_file_cmd "$1"
1678 func_to_tool_file_result=$func_to_host_file_result
1679 ;;
1680 esac
1681 }
1682 # end func_to_tool_file
1683
1684
1685 # func_convert_file_noop ARG
1686 # Copy ARG to func_to_host_file_result.
1687 func_convert_file_noop ()
1688 {
1689 func_to_host_file_result="$1"
1690 }
1691 # end func_convert_file_noop
1692
1693
1694 # func_convert_file_msys_to_w32 ARG
1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1696 # conversion to w32 is not available inside the cwrapper. Returns result in
1697 # func_to_host_file_result.
1698 func_convert_file_msys_to_w32 ()
1699 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
1702 if test -n "$1"; then
1703 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1705 fi
1706 func_convert_file_check "$1" "$func_to_host_file_result"
1707 }
1708 # end func_convert_file_msys_to_w32
1709
1710
1711 # func_convert_file_cygwin_to_w32 ARG
1712 # Convert file name ARG from Cygwin to w32 format. Returns result in
1713 # func_to_host_file_result.
1714 func_convert_file_cygwin_to_w32 ()
1715 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
1718 if test -n "$1"; then
1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1720 # LT_CYGPATH in this case.
1721 func_to_host_file_result=`cygpath -m "$1"`
1722 fi
1723 func_convert_file_check "$1" "$func_to_host_file_result"
1724 }
1725 # end func_convert_file_cygwin_to_w32
1726
1727
1728 # func_convert_file_nix_to_w32 ARG
1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1730 # and a working winepath. Returns result in func_to_host_file_result.
1731 func_convert_file_nix_to_w32 ()
1732 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
1735 if test -n "$1"; then
1736 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1738 fi
1739 func_convert_file_check "$1" "$func_to_host_file_result"
1740 }
1741 # end func_convert_file_nix_to_w32
1742
1743
1744 # func_convert_file_msys_to_cygwin ARG
1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1746 # Returns result in func_to_host_file_result.
1747 func_convert_file_msys_to_cygwin ()
1748 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
1751 if test -n "$1"; then
1752 func_convert_core_msys_to_w32 "$1"
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
1755 fi
1756 func_convert_file_check "$1" "$func_to_host_file_result"
1757 }
1758 # end func_convert_file_msys_to_cygwin
1759
1760
1761 # func_convert_file_nix_to_cygwin ARG
1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1764 # in func_to_host_file_result.
1765 func_convert_file_nix_to_cygwin ()
1766 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
1769 if test -n "$1"; then
1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1771 func_convert_core_file_wine_to_w32 "$1"
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
1774 fi
1775 func_convert_file_check "$1" "$func_to_host_file_result"
1776 }
1777 # end func_convert_file_nix_to_cygwin
1778
1779
1780 #############################################
1781 # $build to $host PATH CONVERSION FUNCTIONS #
1782 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
1784 #
1785 # In each case, ARG is the path to be converted from $build to $host format.
1786 # The result will be available in $func_to_host_path_result.
1787 #
1788 # Path separators are also converted from $build format to $host format. If
1789 # ARG begins or ends with a path separator character, it is preserved (but
1790 # converted to $host format) on output.
1791 #
1792 # All path conversion functions are named using the following convention:
1793 # file name conversion function : func_convert_file_X_to_Y ()
1794 # path conversion function : func_convert_path_X_to_Y ()
1795 # where, for any given $build/$host combination the 'X_to_Y' value is the
1796 # same. If conversion functions are added for new $build/$host combinations,
1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1798 # will break.
1799
1800
1801 # func_init_to_host_path_cmd
1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1803 # appropriate value, based on the value of $to_host_file_cmd.
1804 to_host_path_cmd=
1805 func_init_to_host_path_cmd ()
1806 {
1807 $opt_debug
1808 if test -z "$to_host_path_cmd"; then
1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1811 fi
1812 }
1813
1814
1815 # func_to_host_path ARG
1816 # Converts the path ARG from $build format to $host format. Return result
1817 # in func_to_host_path_result.
1818 func_to_host_path ()
1819 {
1820 $opt_debug
1821 func_init_to_host_path_cmd
1822 $to_host_path_cmd "$1"
1823 }
1824 # end func_to_host_path
1825
1826
1827 # func_convert_path_noop ARG
1828 # Copy ARG to func_to_host_path_result.
1829 func_convert_path_noop ()
1830 {
1831 func_to_host_path_result="$1"
1832 }
1833 # end func_convert_path_noop
1834
1835
1836 # func_convert_path_msys_to_w32 ARG
1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1838 # conversion to w32 is not available inside the cwrapper. Returns result in
1839 # func_to_host_path_result.
1840 func_convert_path_msys_to_w32 ()
1841 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
1844 if test -n "$1"; then
1845 # Remove leading and trailing path separator characters from ARG. MSYS
1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1847 # and winepath ignores them completely.
1848 func_stripname : : "$1"
1849 func_to_host_path_tmp1=$func_stripname_result
1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1852 func_convert_path_check : ";" \
1853 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1855 fi
1856 }
1857 # end func_convert_path_msys_to_w32
1858
1859
1860 # func_convert_path_cygwin_to_w32 ARG
1861 # Convert path ARG from Cygwin to w32 format. Returns result in
1862 # func_to_host_file_result.
1863 func_convert_path_cygwin_to_w32 ()
1864 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
1867 if test -n "$1"; then
1868 # See func_convert_path_msys_to_w32:
1869 func_stripname : : "$1"
1870 func_to_host_path_tmp1=$func_stripname_result
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1872 func_convert_path_check : ";" \
1873 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1875 fi
1876 }
1877 # end func_convert_path_cygwin_to_w32
1878
1879
1880 # func_convert_path_nix_to_w32 ARG
1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1882 # a working winepath. Returns result in func_to_host_file_result.
1883 func_convert_path_nix_to_w32 ()
1884 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
1887 if test -n "$1"; then
1888 # See func_convert_path_msys_to_w32:
1889 func_stripname : : "$1"
1890 func_to_host_path_tmp1=$func_stripname_result
1891 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1893 func_convert_path_check : ";" \
1894 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1896 fi
1897 }
1898 # end func_convert_path_nix_to_w32
1899
1900
1901 # func_convert_path_msys_to_cygwin ARG
1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1903 # Returns result in func_to_host_file_result.
1904 func_convert_path_msys_to_cygwin ()
1905 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
1908 if test -n "$1"; then
1909 # See func_convert_path_msys_to_w32:
1910 func_stripname : : "$1"
1911 func_to_host_path_tmp1=$func_stripname_result
1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
1915 func_convert_path_check : : \
1916 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1918 fi
1919 }
1920 # end func_convert_path_msys_to_cygwin
1921
1922
1923 # func_convert_path_nix_to_cygwin ARG
1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1926 # func_to_host_file_result.
1927 func_convert_path_nix_to_cygwin ()
1928 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
1931 if test -n "$1"; then
1932 # Remove leading and trailing path separator characters from
1933 # ARG. msys behavior is inconsistent here, cygpath turns them
1934 # into '.;' and ';.', and winepath ignores them completely.
1935 func_stripname : : "$1"
1936 func_to_host_path_tmp1=$func_stripname_result
1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
1940 func_convert_path_check : : \
1941 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1943 fi
1944 }
1945 # end func_convert_path_nix_to_cygwin
1946
1947
10991948 # func_mode_compile arg...
11001949 func_mode_compile ()
11011950 {
11361985 ;;
11371986
11381987 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1988 func_append pie_flag " $arg"
11401989 continue
11411990 ;;
11421991
11431992 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1993 func_append later " $arg"
11451994 continue
11461995 ;;
11471996
11622011 save_ifs="$IFS"; IFS=','
11632012 for arg in $args; do
11642013 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
2014 func_append_quoted lastarg "$arg"
11672015 done
11682016 IFS="$save_ifs"
11692017 func_stripname ' ' '' "$lastarg"
11702018 lastarg=$func_stripname_result
11712019
11722020 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
2021 func_append base_compile " $lastarg"
11742022 continue
11752023 ;;
11762024
11862034 esac # case $arg_mode
11872035
11882036 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
2037 func_append_quoted base_compile "$lastarg"
11912038 done # for arg
11922039
11932040 case $arg_mode in
12122059 *.[cCFSifmso] | \
12132060 *.ada | *.adb | *.ads | *.asm | \
12142061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
12162063 func_xform "$libobj"
12172064 libobj=$func_xform_result
12182065 ;;
12872134 # Calculate the filename of the output object if compiler does
12882135 # not support -o with -c
12892136 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
12912138 lockfile="$output_obj.lock"
12922139 else
12932140 output_obj=
13182165 $opt_dry_run || $RM $removelist
13192166 exit $EXIT_FAILURE
13202167 fi
1321 removelist="$removelist $output_obj"
2168 func_append removelist " $output_obj"
13222169 $ECHO "$srcfile" > "$lockfile"
13232170 fi
13242171
13252172 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
2173 func_append removelist " $lockfile"
13272174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
13282175
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
13322178 func_quote_for_eval "$srcfile"
13332179 qsrcfile=$func_quote_for_eval_result
13342180
13482194
13492195 if test -z "$output_obj"; then
13502196 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
2197 func_append command " -o $lobj"
13522198 fi
13532199
13542200 func_show_eval_locale "$command" \
13952241 command="$base_compile $qsrcfile $pic_flag"
13962242 fi
13972243 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
2244 func_append command " -o $obj"
13992245 fi
14002246
14012247 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
2248 func_append command "$suppress_output"
14032249 func_show_eval_locale "$command" \
14042250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
14052251
14442290 }
14452291
14462292 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
14482294 }
14492295
14502296 func_mode_help ()
14512297 {
14522298 # We need to display help for each of the modes.
1453 case $mode in
2299 case $opt_mode in
14542300 "")
14552301 # Generic help is extracted from the usage comments
14562302 # at the start of this file.
14812327
14822328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
14832329 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
14862332 -shared do not build a \`.o' file suitable for static linking
14872333 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
14882335
14892336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
14902337 from the given SOURCEFILE.
15372384
15382385 The following components of INSTALL-COMMAND are treated specially:
15392386
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
15412388
15422389 The rest of the components are interpreted as arguments to that command (only
15432390 BSD-compatible install options are recognized)."
15572404
15582405 -all-static do not do any dynamic linking at all
15592406 -avoid-version do not add a version suffix if possible
2407 -bindir BINDIR specify path to binaries directory (for systems where
2408 libraries must be found in the PATH setting at runtime)
15602409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
15612410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
15622411 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
15852434 -version-info CURRENT[:REVISION[:AGE]]
15862435 specify library version info [each variable defaults to 0]
15872436 -weak LIBNAME declare that the target provides the LIBNAME interface
2437 -Wc,FLAG
2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2439 -Wl,FLAG
2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
15882442
15892443 All other options (arguments beginning with \`-') are ignored.
15902444
16182472 ;;
16192473
16202474 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
16222476 ;;
16232477 esac
16242478
1625 $ECHO
2479 echo
16262480 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
2481 }
2482
2483 # Now that we've collected a possible --mode arg, show help if necessary
2484 if $opt_help; then
2485 if test "$opt_help" = :; then
2486 func_mode_help
2487 else
2488 {
2489 func_help noexit
2490 for opt_mode in compile link execute install finish uninstall clean; do
2491 func_mode_help
2492 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2494 {
2495 func_help noexit
2496 for opt_mode in compile link execute install finish uninstall clean; do
2497 echo
2498 func_mode_help
2499 done
2500 } |
2501 sed '1d
2502 /^When reporting/,/^Report/{
2503 H
2504 d
2505 }
2506 $x
2507 /information about other modes/d
2508 /more detailed .*MODE/d
2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2510 fi
2511 exit $?
2512 fi
16332513
16342514
16352515 # func_mode_execute arg...
16422522 func_fatal_help "you must specify a COMMAND"
16432523
16442524 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
2525 for file in $opt_dlopen; do
16462526 test -f "$file" \
16472527 || func_fatal_help "\`$file' is not a file"
16482528
16492529 dir=
16502530 case $file in
16512531 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
16522535 # Check to see that this really is a libtool archive.
16532536 func_lalib_unsafe_p "$file" \
16542537 || func_fatal_help "\`$lib' is not a valid libtool archive"
16702553 dir="$func_dirname_result"
16712554
16722555 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
2556 func_append dir "/$objdir"
16742557 else
16752558 if test ! -f "$dir/$dlname"; then
16762559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
17112594 for file
17122595 do
17132596 case $file in
1714 -*) ;;
2597 -* | *.la | *.lo ) ;;
17152598 *)
17162599 # Do a test to see if this is really a libtool program.
17172600 if func_ltwrapper_script_p "$file"; then
17272610 ;;
17282611 esac
17292612 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
2613 func_append_quoted args "$file"
17322614 done
17332615
17342616 if test "X$opt_dry_run" = Xfalse; then
17532635 # Display what would be done.
17542636 if test -n "$shlibpath_var"; then
17552637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
2638 echo "export $shlibpath_var"
17572639 fi
17582640 $ECHO "$cmd$args"
17592641 exit $EXIT_SUCCESS
17602642 fi
17612643 }
17622644
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
17642646
17652647
17662648 # func_mode_finish arg...
17672649 func_mode_finish ()
17682650 {
17692651 $opt_debug
1770 libdirs="$nonopt"
2652 libs=
2653 libdirs=
17712654 admincmds=
17722655
2656 for opt in "$nonopt" ${1+"$@"}
2657 do
2658 if test -d "$opt"; then
2659 func_append libdirs " $opt"
2660
2661 elif test -f "$opt"; then
2662 if func_lalib_unsafe_p "$opt"; then
2663 func_append libs " $opt"
2664 else
2665 func_warning "\`$opt' is not a valid libtool archive"
2666 fi
2667
2668 else
2669 func_fatal_error "invalid argument \`$opt'"
2670 fi
2671 done
2672
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2677 else
2678 sysroot_cmd=
2679 fi
2680
2681 # Remove sysroot references
2682 if $opt_dry_run; then
2683 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2685 done
2686 else
2687 tmpdir=`func_mktempdir`
2688 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2692 done
2693 ${RM}r "$tmpdir"
2694 fi
2695 fi
2696
17732697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
17792698 for libdir in $libdirs; do
17802699 if test -n "$finish_cmds"; then
17812700 # Do each command in the finish commands.
17852704 if test -n "$finish_eval"; then
17862705 # Do the single finish_eval.
17872706 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
17892708 $cmds"
17902709 fi
17912710 done
17942713 # Exit here if they wanted silent mode.
17952714 $opt_silent && exit $EXIT_SUCCESS
17962715
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2718 echo "Libraries have been installed in:"
2719 for libdir in $libdirs; do
2720 $ECHO " $libdir"
2721 done
2722 echo
2723 echo "If you ever happen to want to link against installed libraries"
2724 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2726 echo "flag during linking and do at least one of the following:"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2729 echo " during execution"
2730 fi
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2733 echo " during linking"
2734 fi
2735 if test -n "$hardcode_libdir_flag_spec"; then
2736 libdir=LIBDIR
2737 eval flag=\"$hardcode_libdir_flag_spec\"
2738
2739 $ECHO " - use the \`$flag' linker flag"
2740 fi
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2743 fi
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2746 fi
2747 echo
2748
2749 echo "See any operating system documentation about shared libraries for"
2750 case $host in
2751 solaris2.[6789]|solaris2.1[0-9])
2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2753 echo "pages."
2754 ;;
2755 *)
2756 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2757 ;;
2758 esac
2759 echo "----------------------------------------------------------------------"
18102760 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
18402761 exit $EXIT_SUCCESS
18412762 }
18422763
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
18442765
18452766
18462767 # func_mode_install arg...
18512772 # install_prog (especially on Windows NT).
18522773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
18532774 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
18552776 # Aesthetically quote it.
18562777 func_quote_for_eval "$nonopt"
18572778 install_prog="$func_quote_for_eval_result "
18652786 # The real first argument should be the name of the installation program.
18662787 # Aesthetically quote it.
18672788 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
2789 func_append install_prog "$func_quote_for_eval_result"
2790 install_shared_prog=$install_prog
2791 case " $install_prog " in
2792 *[\\\ /]cp\ *) install_cp=: ;;
2793 *) install_cp=false ;;
2794 esac
18692795
18702796 # We need to accept at least all the BSD install flags.
18712797 dest=
18752801 install_type=
18762802 isdir=no
18772803 stripme=
2804 no_mode=:
18782805 for arg
18792806 do
2807 arg2=
18802808 if test -n "$dest"; then
1881 files="$files $dest"
2809 func_append files " $dest"
18822810 dest=$arg
18832811 continue
18842812 fi
18862814 case $arg in
18872815 -d) isdir=yes ;;
18882816 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
2817 if $install_cp; then :; else
2818 prev=$arg
2819 fi
18932820 ;;
18942821 -g | -m | -o)
18952822 prev=$arg
19032830 *)
19042831 # If the previous option needed an argument, then skip it.
19052832 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2834 arg2=$install_override_mode
2835 no_mode=false
2836 fi
19062837 prev=
19072838 else
19082839 dest=$arg
19132844
19142845 # Aesthetically quote the argument.
19152846 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
2847 func_append install_prog " $func_quote_for_eval_result"
2848 if test -n "$arg2"; then
2849 func_quote_for_eval "$arg2"
2850 fi
2851 func_append install_shared_prog " $func_quote_for_eval_result"
19172852 done
19182853
19192854 test -z "$install_prog" && \
19212856
19222857 test -n "$prev" && \
19232858 func_fatal_help "the \`$prev' option requires an argument"
2859
2860 if test -n "$install_override_mode" && $no_mode; then
2861 if $install_cp; then :; else
2862 func_quote_for_eval "$install_override_mode"
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
2864 fi
2865 fi
19242866
19252867 if test -z "$files"; then
19262868 if test -z "$dest"; then
19762918 case $file in
19772919 *.$libext)
19782920 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
2921 func_append staticlibs " $file"
19802922 ;;
19812923
19822924 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
19832928 # Check to see that this really is a libtool archive.
19842929 func_lalib_unsafe_p "$file" \
19852930 || func_fatal_help "\`$file' is not a valid libtool archive"
19932938 if test "X$destdir" = "X$libdir"; then
19942939 case "$current_libdirs " in
19952940 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
2941 *) func_append current_libdirs " $libdir" ;;
19972942 esac
19982943 else
19992944 # Note the libdir as a future libdir.
20002945 case "$future_libdirs " in
20012946 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2947 *) func_append future_libdirs " $libdir" ;;
20032948 esac
20042949 fi
20052950
20062951 func_dirname "$file" "/" ""
20072952 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2953 func_append dir "$objdir"
20092954
20102955 if test -n "$relink_command"; then
20112956 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
20132958
20142959 # Don't allow the user to place us outside of our expected
20152960 # location b/c this prevents finding dependent libraries that
20222967
20232968 if test -n "$inst_prefix_dir"; then
20242969 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
20262971 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
20282973 fi
20292974
20302975 func_warning "relinking \`$file'"
20422987 test -n "$relink_command" && srcname="$realname"T
20432988
20442989 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
20462991 'exit $?'
20472992 tstripme="$stripme"
20482993 case $host_os in
20823027 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
20833028
20843029 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
20863031 ;;
20873032
20883033 *.lo)
21823127 if test -f "$lib"; then
21833128 func_source "$lib"
21843129 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
21863131 if test -n "$libdir" && test ! -f "$libfile"; then
21873132 func_warning "\`$lib' has not been installed in \`$libdir'"
21883133 finalize=no
22013146 file="$func_basename_result"
22023147 outputname="$tmpdir/$file"
22033148 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
22053150
22063151 $opt_silent || {
22073152 func_quote_for_expand "$relink_command"
22203165 }
22213166 else
22223167 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
22243169 fi
22253170 fi
22263171
22563201
22573202 # Set up the ranlib parameters.
22583203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
22593206
22603207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
22613208
22623209 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
22643211 fi
22653212
22663213 # Do each command in the postinstall commands.
22793226 fi
22803227 }
22813228
2282 test "$mode" = install && func_mode_install ${1+"$@"}
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
22833230
22843231
22853232 # func_generate_dlsyms outputname originator pic_p
23223269 extern \"C\" {
23233270 #endif
23243271
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3273 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3274 #endif
3275
3276 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3279 relocations are performed -- see ld's documentation on pseudo-relocs. */
3280 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
3282 /* This system does not cope well with relocations in const data. */
3283 # define LT_DLSYM_CONST
3284 #else
3285 # define LT_DLSYM_CONST const
3286 #endif
3287
23253288 /* External symbol declarations for the compiler. */\
23263289 "
23273290
23313294 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
23323295
23333296 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
23353298 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
3299 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3301 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
23383302 done
23393303
23403304 if test -n "$exclude_expsyms"; then
23703334 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
23713335 eval '$MV "$nlist"T "$nlist"'
23723336 case $host in
2373 *cygwin | *mingw* | *cegcc* )
3337 *cygwin* | *mingw* | *cegcc* )
23743338 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
23753339 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
23763340 ;;
23833347 func_verbose "extracting global C symbols from \`$dlprefile'"
23843348 func_basename "$dlprefile"
23853349 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
3350 case $host in
3351 *cygwin* | *mingw* | *cegcc* )
3352 # if an import library, we need to obtain dlname
3353 if func_win32_import_lib_p "$dlprefile"; then
3354 func_tr_sh "$dlprefile"
3355 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
3357 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 # Use subshell, to avoid clobbering current variable values
3359 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
3361 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
3363 else
3364 # no lafile. user explicitly requested -dlpreopen <import library>.
3365 $sharedlib_from_linklib_cmd "$dlprefile"
3366 dlprefile_dlbasename=$sharedlib_from_linklib_result
3367 fi
3368 fi
3369 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
3371 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3372 else
3373 func_warning "Could not compute DLL name from $name"
3374 eval '$ECHO ": $name " >> "$nlist"'
3375 fi
3376 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3377 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3378 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3379 }
3380 else # not an import lib
3381 $opt_dry_run || {
3382 eval '$ECHO ": $name " >> "$nlist"'
3383 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3384 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3385 }
3386 fi
3387 ;;
3388 *)
3389 $opt_dry_run || {
3390 eval '$ECHO ": $name " >> "$nlist"'
3391 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3392 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3393 }
3394 ;;
3395 esac
23903396 done
23913397
23923398 $opt_dry_run || {
24143420 if test -f "$nlist"S; then
24153421 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
24163422 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
3423 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
24183424 fi
24193425
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
3426 echo >> "$output_objdir/$my_dlsyms" "\
24213427
24223428 /* The mapping between symbol names and symbols. */
24233429 typedef struct {
24243430 const char *name;
24253431 void *address;
24263432 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
3433 extern LT_DLSYM_CONST lt_dlsymlist
24453434 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
3435 LT_DLSYM_CONST lt_dlsymlist
24473436 lt_${my_prefix}_LTX_preloaded_symbols[] =
24483437 {\
24493438 { \"$my_originator\", (void *) 0 },"
24563445 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
24573446 ;;
24583447 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
3448 echo >> "$output_objdir/$my_dlsyms" "\
24603449 {0, (void *) 0}
24613450 };
24623451
24833472 # linked before any other PIC object. But we must not use
24843473 # pic_flag when linking with -static. The problem exists in
24853474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
24873476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
24883477 *-*-hpux*)
24893478 pic_flag_for_symtable=" $pic_flag" ;;
24993488 for arg in $LTCFLAGS; do
25003489 case $arg in
25013490 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
3491 *) func_append symtab_cflags " $arg" ;;
25033492 esac
25043493 done
25053494
25143503 case $host in
25153504 *cygwin* | *mingw* | *cegcc* )
25163505 if test -f "$output_objdir/$my_outputname.def"; then
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3506 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3507 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
25193508 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3509 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3510 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25223511 fi
25233512 ;;
25243513 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3514 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3515 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25273516 ;;
25283517 esac
25293518 ;;
25373526 # really was required.
25383527
25393528 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
3529 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3530 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
25423531 fi
25433532 }
25443533
25483537 # Need a lot of goo to handle *both* DLLs and import libs
25493538 # Has to be a shell function in order to 'eat' the argument
25503539 # that is supplied when $file_magic_command is called.
3540 # Despite the name, also deal with 64 bit binaries.
25513541 func_win32_libid ()
25523542 {
25533543 $opt_debug
25583548 win32_libid_type="x86 archive import"
25593549 ;;
25603550 *ar\ archive*) # could be an import, or static
3551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
25613552 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
3553 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
25643556 $SED -n -e '
25653557 1,100{
25663558 / I /{
25893581 $ECHO "$win32_libid_type"
25903582 }
25913583
3584 # func_cygming_dll_for_implib ARG
3585 #
3586 # Platform-specific function to extract the
3587 # name of the DLL associated with the specified
3588 # import library ARG.
3589 # Invoked by eval'ing the libtool variable
3590 # $sharedlib_from_linklib_cmd
3591 # Result is available in the variable
3592 # $sharedlib_from_linklib_result
3593 func_cygming_dll_for_implib ()
3594 {
3595 $opt_debug
3596 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3597 }
3598
3599 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3600 #
3601 # The is the core of a fallback implementation of a
3602 # platform-specific function to extract the name of the
3603 # DLL associated with the specified import library LIBNAME.
3604 #
3605 # SECTION_NAME is either .idata$6 or .idata$7, depending
3606 # on the platform and compiler that created the implib.
3607 #
3608 # Echos the name of the DLL associated with the
3609 # specified import library.
3610 func_cygming_dll_for_implib_fallback_core ()
3611 {
3612 $opt_debug
3613 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3614 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3615 $SED '/^Contents of section '"$match_literal"':/{
3616 # Place marker at beginning of archive member dllname section
3617 s/.*/====MARK====/
3618 p
3619 d
3620 }
3621 # These lines can sometimes be longer than 43 characters, but
3622 # are always uninteresting
3623 /:[ ]*file format pe[i]\{,1\}-/d
3624 /^In archive [^:]*:/d
3625 # Ensure marker is printed
3626 /^====MARK====/p
3627 # Remove all lines with less than 43 characters
3628 /^.\{43\}/!d
3629 # From remaining lines, remove first 43 characters
3630 s/^.\{43\}//' |
3631 $SED -n '
3632 # Join marker and all lines until next marker into a single line
3633 /^====MARK====/ b para
3634 H
3635 $ b para
3636 b
3637 :para
3638 x
3639 s/\n//g
3640 # Remove the marker
3641 s/^====MARK====//
3642 # Remove trailing dots and whitespace
3643 s/[\. \t]*$//
3644 # Print
3645 /./p' |
3646 # we now have a list, one entry per line, of the stringified
3647 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
3650 # a '.' (that is, objdump's representation of an unprintable
3651 # character.) This should work for all archives with less than
3652 # 0x302f exports -- but will fail for DLLs whose name actually
3653 # begins with a literal '.' or a single character followed by
3654 # a '.'.
3655 #
3656 # Of those that remain, print the first one.
3657 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
3682 }
3683
3684 # func_cygming_dll_for_implib_fallback ARG
3685 # Platform-specific function to extract the
3686 # name of the DLL associated with the specified
3687 # import library ARG.
3688 #
3689 # This fallback implementation is for use when $DLLTOOL
3690 # does not support the --identify-strict option.
3691 # Invoked by eval'ing the libtool variable
3692 # $sharedlib_from_linklib_cmd
3693 # Result is available in the variable
3694 # $sharedlib_from_linklib_result
3695 func_cygming_dll_for_implib_fallback ()
3696 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
3699 # binutils import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
3702 # ms-generated import library
3703 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3704 else
3705 # unknown
3706 sharedlib_from_linklib_result=""
3707 fi
3708 }
25923709
25933710
25943711 # func_extract_an_archive dir oldlib
25973714 $opt_debug
25983715 f_ex_an_ar_dir="$1"; shift
25993716 f_ex_an_ar_oldlib="$1"
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
3717 if test "$lock_old_archive_extraction" = yes; then
3718 lockfile=$f_ex_an_ar_oldlib.lock
3719 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3720 func_echo "Waiting for $lockfile to be removed"
3721 sleep 2
3722 done
3723 fi
3724 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
3725 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
3727 $opt_dry_run || rm -f "$lockfile"
3728 fi
26013729 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
26023730 :
26033731 else
26683796 darwin_file=
26693797 darwin_files=
26703798 for darwin_file in $darwin_filelist; do
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
3799 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
26723800 $LIPO -create -output "$darwin_file" $darwin_files
26733801 done # $darwin_filelist
26743802 $RM -rf unfat-$$
26833811 func_extract_an_archive "$my_xdir" "$my_xabs"
26843812 ;;
26853813 esac
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3814 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
26873815 done
26883816
26893817 func_extract_archives_result="$my_oldobjs"
26903818 }
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
2782 esac
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
2802 fi
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
2813 fi
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
2818 esac
2819 fi
2820
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
2909 ;;
2910 esac
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
2921 fi
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
29263819
29273820
29283821 # func_emit_wrapper [arg=no]
29413834 # behavior.
29423835 func_emit_wrapper ()
29433836 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2947 fi
2948
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
2953 }
2954
2955
2956 # func_to_host_path arg
3837 func_emit_wrapper_arg1=${1-no}
3838
3839 $ECHO "\
3840 #! $SHELL
3841
3842 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
29573844 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
3845 # The $output program cannot be directly executed until all the libtool
3846 # libraries that it depends on are installed.
29733847 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
2992 ;;
2993 *cygwin* )
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
3848 # This wrapper script should never be moved out of the build directory.
3849 # If it is, it will not operate correctly.
3850
3851 # Sed substitution that helps us do robust quoting. It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 sed_quote_subst='$sed_quote_subst'
3854
3855 # Be Bourne compatible
3856 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3857 emulate sh
3858 NULLCMD=:
3859 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
3860 # is contrary to our usage. Disable this feature.
3861 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3862 setopt NO_GLOB_SUBST
3863 else
3864 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3865 fi
3866 BIN_SH=xpg4; export BIN_SH # for Tru64
3867 DUALCASE=1; export DUALCASE # for MKS sh
3868
3869 # The HP-UX ksh and POSIX shell print the target directory to stdout
3870 # if CDPATH is set.
3871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3872
3873 relink_command=\"$relink_command\"
3874
3875 # This environment variable determines our operation mode.
3876 if test \"\$libtool_install_magic\" = \"$magic\"; then
3877 # install mode needs the following variables:
3878 generated_by_libtool_version='$macro_version'
3879 notinst_deplibs='$notinst_deplibs'
3880 else
3881 # When we are sourced in execute mode, \$file and \$ECHO are already set.
3882 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3883 file=\"\$0\""
3884
3885 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
3886 $ECHO "\
3887
3888 # A function that is used when there is no print builtin or printf.
3889 func_fallback_echo ()
3890 {
3891 eval 'cat <<_LTECHO_EOF
3892 \$1
3893 _LTECHO_EOF'
3894 }
3895 ECHO=\"$qECHO\"
3896 fi
3897
3898 # Very basic option parsing. These options are (a) specific to
3899 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
3901 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
3903 # this pattern).
3904 #
3905 # There are only two supported options: --lt-debug and
3906 # --lt-dump-script. There is, deliberately, no --lt-help.
3907 #
3908 # The first argument to this parsing function should be the
3909 # script's $0 value, followed by "$@".
3910 lt_option_debug=
3911 func_parse_lt_options ()
3912 {
3913 lt_script_arg0=\$0
3914 shift
3915 for lt_opt
3916 do
3917 case \"\$lt_opt\" in
3918 --lt-debug) lt_option_debug=1 ;;
3919 --lt-dump-script)
3920 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3921 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3922 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3923 cat \"\$lt_dump_D/\$lt_dump_F\"
3924 exit 0
3925 ;;
3926 --lt-*)
3927 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3928 exit 1
3929 ;;
3930 esac
3931 done
3932
3933 # Print the debug banner immediately:
3934 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3936 fi
3937 }
3938
3939 # Used when --lt-debug. Prints its arguments to stdout
3940 # (redirection is the responsibility of the caller)
3941 func_lt_dump_args ()
3942 {
3943 lt_dump_args_N=1;
3944 for lt_arg
3945 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3947 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3948 done
3949 }
3950
3951 # Core function for launching the target application
3952 func_exec_program_core ()
3953 {
3954 "
3955 case $host in
3956 # Backslashes separate directories on plain windows
3957 *-*-mingw | *-*-os2* | *-cegcc*)
3958 $ECHO "\
3959 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3961 func_lt_dump_args \${1+\"\$@\"} 1>&2
3962 fi
3963 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3964 "
3965 ;;
3966
3967 *)
3968 $ECHO "\
3969 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3971 func_lt_dump_args \${1+\"\$@\"} 1>&2
3972 fi
3973 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3974 "
3975 ;;
3976 esac
3977 $ECHO "\
3978 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3979 exit 1
3980 }
3981
3982 # A function to encapsulate launching the target application
3983 # Strips options in the --lt-* namespace from \$@ and
3984 # launches target application with the remaining arguments.
3985 func_exec_program ()
3986 {
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
3998 func_exec_program_core \${1+\"\$@\"}
3999 }
4000
4001 # Parse options
4002 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
4003
4004 # Find the directory that this script lives in.
4005 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4006 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4007
4008 # Follow symbolic links until we get to the real thisdir.
4009 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4010 while test -n \"\$file\"; do
4011 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4012
4013 # If there was a directory component, then change thisdir.
4014 if test \"x\$destdir\" != \"x\$file\"; then
4015 case \"\$destdir\" in
4016 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4017 *) thisdir=\"\$thisdir/\$destdir\" ;;
4018 esac
4019 fi
4020
4021 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4022 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4023 done
4024
4025 # Usually 'no', except on cygwin/mingw when embedded into
4026 # the cwrapper.
4027 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4028 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4029 # special case for '.'
4030 if test \"\$thisdir\" = \".\"; then
4031 thisdir=\`pwd\`
4032 fi
4033 # remove .libs from thisdir
4034 case \"\$thisdir\" in
4035 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4036 $objdir ) thisdir=. ;;
30244037 esac
30254038 fi
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
3071 ;;
3072 *cygwin* )
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
4039
4040 # Try to get the absolute directory name.
4041 absdir=\`cd \"\$thisdir\" && pwd\`
4042 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4043 "
4044
4045 if test "$fast_install" = yes; then
4046 $ECHO "\
4047 program=lt-'$outputname'$exeext
4048 progdir=\"\$thisdir/$objdir\"
4049
4050 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4052 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4053
4054 file=\"\$\$-\$program\"
4055
4056 if test ! -d \"\$progdir\"; then
4057 $MKDIR \"\$progdir\"
4058 else
4059 $RM \"\$progdir/\$file\"
4060 fi"
4061
4062 $ECHO "\
4063
4064 # relink executable if necessary
4065 if test -n \"\$relink_command\"; then
4066 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4067 else
4068 $ECHO \"\$relink_command_output\" >&2
4069 $RM \"\$progdir/\$file\"
4070 exit 1
4071 fi
4072 fi
4073
4074 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4075 { $RM \"\$progdir/\$program\";
4076 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4077 $RM \"\$progdir/\$file\"
4078 fi"
4079 else
4080 $ECHO "\
4081 program='$outputname'
4082 progdir=\"\$thisdir/$objdir\"
4083 "
4084 fi
4085
4086 $ECHO "\
4087
4088 if test -f \"\$progdir/\$program\"; then"
4089
4090 # fixup the dll searchpath if we need to.
4091 #
4092 # Fix the DLL searchpath if we need to. Do this before prepending
4093 # to shlibpath, because on Windows, both are PATH and uninstalled
4094 # libraries must come first.
4095 if test -n "$dllsearchpath"; then
4096 $ECHO "\
4097 # Add the dll search path components to the executable PATH
4098 PATH=$dllsearchpath:\$PATH
4099 "
4100 fi
4101
4102 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4104 $ECHO "\
4105 # Add our own library path to $shlibpath_var
4106 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4107
4108 # Some systems cannot cope with colon-terminated $shlibpath_var
4109 # The second colon is a workaround for a bug in BeOS R4 sed
4110 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4111
4112 export $shlibpath_var
4113 "
4114 fi
4115
4116 $ECHO "\
4117 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4118 # Run the actual program with our arguments.
4119 func_exec_program \${1+\"\$@\"}
4120 fi
4121 else
4122 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4124 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4125 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4126 exit 1
31234127 fi
3124 }
3125 # end: func_to_host_pathlist
4128 fi\
4129 "
4130 }
4131
31264132
31274133 # func_emit_cwrapperexe_src
31284134 # emit the source code for a wrapper executable on stdout
31404146
31414147 This wrapper executable should never be moved out of the build directory.
31424148 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
31474149 */
31484150 EOF
31494151 cat <<"EOF"
4152 #ifdef _MSC_VER
4153 # define _CRT_SECURE_NO_DEPRECATE 1
4154 #endif
31504155 #include <stdio.h>
31514156 #include <stdlib.h>
31524157 #ifdef _MSC_VER
31534158 # include <direct.h>
31544159 # include <process.h>
31554160 # include <io.h>
3156 # define setmode _setmode
31574161 #else
31584162 # include <unistd.h>
31594163 # include <stdint.h>
31604164 # ifdef __CYGWIN__
31614165 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
31684166 # endif
31694167 #endif
31704168 #include <malloc.h>
31764174 #include <fcntl.h>
31774175 #include <sys/stat.h>
31784176
4177 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
4179 # ifdef __STRICT_ANSI__
4180 int _putenv (const char *);
4181 # endif
4182 #elif defined(__CYGWIN__)
4183 # ifdef __STRICT_ANSI__
4184 char *realpath (const char *, char *);
4185 int putenv (char *);
4186 int setenv (const char *, const char *, int);
4187 # endif
4188 /* #elif defined (other platforms) ... */
4189 #endif
4190
4191 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
4193 # define setmode _setmode
4194 # define stat _stat
4195 # define chmod _chmod
4196 # define getcwd _getcwd
4197 # define putenv _putenv
4198 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
4204 # define setmode _setmode
4205 # define stat _stat
4206 # define chmod _chmod
4207 # define getcwd _getcwd
4208 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
4210 # define HAVE_SETENV
4211 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
4213 #endif
4214
31794215 #if defined(PATH_MAX)
31804216 # define LT_PATHMAX PATH_MAX
31814217 #elif defined(MAXPATHLEN)
31914227 # define S_IXGRP 0
31924228 #endif
31934229
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
4230 /* path handling portability macros */
32024231 #ifndef DIR_SEPARATOR
32034232 # define DIR_SEPARATOR '/'
32044233 # define PATH_SEPARATOR ':'
32294258 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
32304259 #endif /* PATH_SEPARATOR_2 */
32314260
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
32364261 #ifndef FOPEN_WB
32374262 # define FOPEN_WB "w"
32384263 #endif
32454270 if (stale) { free ((void *) stale); stale = 0; } \
32464271 } while (0)
32474272
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
4273 #if defined(LT_DEBUGWRAPPER)
4274 static int lt_debug = 1;
32594275 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
4276 static int lt_debug = 0;
32614277 #endif
32624278
3263 const char *program_name = NULL;
4279 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
32644280
32654281 void *xmalloc (size_t num);
32664282 char *xstrdup (const char *string);
32704286 int make_executable (const char *path);
32714287 int check_executable (const char *path);
32724288 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
4289 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4290 void lt_fatal (const char *file, int line, const char *message, ...);
4291 static const char *nonnull (const char *s);
4292 static const char *nonempty (const char *s);
32744293 void lt_setenv (const char *name, const char *value);
32754294 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
32804295 void lt_update_exe_path (const char *name, const char *value);
32814296 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
4297 char **prepare_spawn (char **argv);
4298 void lt_dump_script (FILE *f);
32844299 EOF
32854300
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
32904301 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
4302 volatile const char * MAGIC_EXE = "$magic_exe";
33014303 const char * LIB_PATH_VARNAME = "$shlibpath_var";
33024304 EOF
33034305
33044306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
4307 func_to_host_path "$temp_rpath"
33064308 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
33084310 EOF
33094311 else
33104312 cat <<"EOF"
33134315 fi
33144316
33154317 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
4318 func_to_host_path "$dllsearchpath:"
33174319 cat <<EOF
33184320 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
33204322 EOF
33214323 else
33224324 cat <<"EOF"
33394341 cat <<"EOF"
33404342
33414343 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
4344
33454345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
33474346 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
4347 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
33604348
33614349 int
33624350 main (int argc, char *argv[])
33734361 int i;
33744362
33754363 program_name = (char *) xstrdup (base_name (argv[0]));
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
4364 newargz = XMALLOC (char *, argc + 1);
4365
4366 /* very simple arg parsing; don't want to rely on getopt
4367 * also, copy all non cwrapper options to newargz, except
4368 * argz[0], which is handled differently
4369 */
4370 newargc=0;
33804371 for (i = 1; i < argc; i++)
33814372 {
33824373 if (strcmp (argv[i], dumpscript_opt) == 0)
33904381 esac
33914382
33924383 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
4384 lt_dump_script (stdout);
33954385 return 0;
33964386 }
4387 if (strcmp (argv[i], debug_opt) == 0)
4388 {
4389 lt_debug = 1;
4390 continue;
4391 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4393 {
4394 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4395 namespace, but it is not one of the ones we know about and
4396 have already dealt with, above (inluding dump-script), then
4397 report an error. Otherwise, targets might begin to believe
4398 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4399 namespace. The first time any user complains about this, we'll
4400 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4401 or a configure.ac-settable value.
4402 */
4403 lt_fatal (__FILE__, __LINE__,
4404 "unrecognized %s option: '%s'",
4405 ltwrapper_option_prefix, argv[i]);
4406 }
4407 /* otherwise ... */
4408 newargz[++newargc] = xstrdup (argv[i]);
33974409 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
4410 newargz[++newargc] = NULL;
4411
4412 EOF
4413 cat <<EOF
4414 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4416 EOF
4417 cat <<"EOF"
4418 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4419 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4420
34004421 tmp_pathspec = find_executable (argv[0]);
34014422 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
4423 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4424 lt_debugprintf (__FILE__, __LINE__,
4425 "(main) found exe (before symlink chase) at: %s\n",
4426 tmp_pathspec);
34054427
34064428 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
4429 lt_debugprintf (__FILE__, __LINE__,
4430 "(main) found exe (after symlink chase) at: %s\n",
4431 actual_cwrapper_path);
34094432 XFREE (tmp_pathspec);
34104433
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
4434 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
34124435 strendzap (actual_cwrapper_path, actual_cwrapper_name);
34134436
34144437 /* wrapper name transforms */
34264449 target_name = tmp_pathspec;
34274450 tmp_pathspec = 0;
34284451
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
4452 lt_debugprintf (__FILE__, __LINE__,
4453 "(main) libtool target name: %s\n",
4454 target_name);
34314455 EOF
34324456
34334457 cat <<EOF
34774501
34784502 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
34794503 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4504 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4505 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4506 because on Windows, both *_VARNAMEs are PATH but uninstalled
4507 libraries must come first. */
4508 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
34804509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
4510
4511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4512 nonnull (lt_argv_zero));
35514513 for (i = 0; i < newargc; i++)
35524514 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
4515 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4516 i, nonnull (newargz[i]));
35544517 }
35554518
35564519 EOF
35594522 mingw*)
35604523 cat <<"EOF"
35614524 /* execv doesn't actually work on mingw as expected on unix */
4525 newargz = prepare_spawn (newargz);
35624526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
35634527 if (rval == -1)
35644528 {
35654529 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
4530 lt_debugprintf (__FILE__, __LINE__,
4531 "(main) failed to launch target \"%s\": %s\n",
4532 lt_argv_zero, nonnull (strerror (errno)));
35674533 return 127;
35684534 }
35694535 return rval;
35854551 {
35864552 void *p = (void *) malloc (num);
35874553 if (!p)
3588 lt_fatal ("Memory exhausted");
4554 lt_fatal (__FILE__, __LINE__, "memory exhausted");
35894555
35904556 return p;
35914557 }
36194585 {
36204586 struct stat st;
36214587
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
4588 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4589 nonempty (path));
36244590 if ((!path) || (!*path))
36254591 return 0;
36264592
36374603 int rval = 0;
36384604 struct stat st;
36394605
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
4606 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4607 nonempty (path));
36424608 if ((!path) || (!*path))
36434609 return 0;
36444610
36644630 int tmp_len;
36654631 char *concat_name;
36664632
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
4633 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4634 nonempty (wrapper));
36694635
36704636 if ((wrapper == NULL) || (*wrapper == '\0'))
36714637 return NULL;
37184684 {
37194685 /* empty path: current directory */
37204686 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
4687 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4688 nonnull (strerror (errno)));
37224689 tmp_len = strlen (tmp);
37234690 concat_name =
37244691 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37434710 }
37444711 /* Relative path | not found in path: prepend cwd */
37454712 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
4713 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4714 nonnull (strerror (errno)));
37474715 tmp_len = strlen (tmp);
37484716 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37494717 memcpy (concat_name, tmp, tmp_len);
37694737 int has_symlinks = 0;
37704738 while (strlen (tmp_pathspec) && !has_symlinks)
37714739 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
4740 lt_debugprintf (__FILE__, __LINE__,
4741 "checking path component for symlinks: %s\n",
4742 tmp_pathspec);
37744743 if (lstat (tmp_pathspec, &s) == 0)
37754744 {
37764745 if (S_ISLNK (s.st_mode) != 0)
37924761 }
37934762 else
37944763 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
4764 lt_fatal (__FILE__, __LINE__,
4765 "error accessing file \"%s\": %s",
4766 tmp_pathspec, nonnull (strerror (errno)));
37974767 }
37984768 }
37994769 XFREE (tmp_pathspec);
38064776 tmp_pathspec = realpath (pathspec, buf);
38074777 if (tmp_pathspec == 0)
38084778 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
4779 lt_fatal (__FILE__, __LINE__,
4780 "could not follow symlinks for %s", pathspec);
38104781 }
38114782 return xstrdup (tmp_pathspec);
38124783 #endif
38324803 return str;
38334804 }
38344805
4806 void
4807 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4808 {
4809 va_list args;
4810 if (lt_debug)
4811 {
4812 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4813 va_start (args, fmt);
4814 (void) vfprintf (stderr, fmt, args);
4815 va_end (args);
4816 }
4817 }
4818
38354819 static void
3836 lt_error_core (int exit_status, const char *mode,
4820 lt_error_core (int exit_status, const char *file,
4821 int line, const char *mode,
38374822 const char *message, va_list ap)
38384823 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
4824 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
38404825 vfprintf (stderr, message, ap);
38414826 fprintf (stderr, ".\n");
38424827
38454830 }
38464831
38474832 void
3848 lt_fatal (const char *message, ...)
4833 lt_fatal (const char *file, int line, const char *message, ...)
38494834 {
38504835 va_list ap;
38514836 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
4837 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
38534838 va_end (ap);
4839 }
4840
4841 static const char *
4842 nonnull (const char *s)
4843 {
4844 return s ? s : "(null)";
4845 }
4846
4847 static const char *
4848 nonempty (const char *s)
4849 {
4850 return (s && !*s) ? "(empty)" : nonnull (s);
38544851 }
38554852
38564853 void
38574854 lt_setenv (const char *name, const char *value)
38584855 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
4856 lt_debugprintf (__FILE__, __LINE__,
4857 "(lt_setenv) setting '%s' to '%s'\n",
4858 nonnull (name), nonnull (value));
38624859 {
38634860 #ifdef HAVE_SETENV
38644861 /* always make a copy, for consistency with !HAVE_SETENV */
39034900 return new_value;
39044901 }
39054902
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
39894903 void
39904904 lt_update_exe_path (const char *name, const char *value)
39914905 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
4906 lt_debugprintf (__FILE__, __LINE__,
4907 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4908 nonnull (name), nonnull (value));
39954909
39964910 if (name && *name && value && *value)
39974911 {
40104924 void
40114925 lt_update_lib_path (const char *name, const char *value)
40124926 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4927 lt_debugprintf (__FILE__, __LINE__,
4928 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4929 nonnull (name), nonnull (value));
40164930
40174931 if (name && *name && value && *value)
40184932 {
40224936 }
40234937 }
40244938
4025
40264939 EOF
4940 case $host_os in
4941 mingw*)
4942 cat <<"EOF"
4943
4944 /* Prepares an argument vector before calling spawn().
4945 Note that spawn() does not by itself call the command interpreter
4946 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4947 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4948 GetVersionEx(&v);
4949 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4950 }) ? "cmd.exe" : "command.com").
4951 Instead it simply concatenates the arguments, separated by ' ', and calls
4952 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4953 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4954 special way:
4955 - Space and tab are interpreted as delimiters. They are not treated as
4956 delimiters if they are surrounded by double quotes: "...".
4957 - Unescaped double quotes are removed from the input. Their only effect is
4958 that within double quotes, space and tab are treated like normal
4959 characters.
4960 - Backslashes not followed by double quotes are not special.
4961 - But 2*n+1 backslashes followed by a double quote become
4962 n backslashes followed by a double quote (n >= 0):
4963 \" -> "
4964 \\\" -> \"
4965 \\\\\" -> \\"
4966 */
4967 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4968 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4969 char **
4970 prepare_spawn (char **argv)
4971 {
4972 size_t argc;
4973 char **new_argv;
4974 size_t i;
4975
4976 /* Count number of arguments. */
4977 for (argc = 0; argv[argc] != NULL; argc++)
4978 ;
4979
4980 /* Allocate new argument vector. */
4981 new_argv = XMALLOC (char *, argc + 1);
4982
4983 /* Put quoted arguments into the new argument vector. */
4984 for (i = 0; i < argc; i++)
4985 {
4986 const char *string = argv[i];
4987
4988 if (string[0] == '\0')
4989 new_argv[i] = xstrdup ("\"\"");
4990 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4991 {
4992 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4993 size_t length;
4994 unsigned int backslashes;
4995 const char *s;
4996 char *quoted_string;
4997 char *p;
4998
4999 length = 0;
5000 backslashes = 0;
5001 if (quote_around)
5002 length++;
5003 for (s = string; *s != '\0'; s++)
5004 {
5005 char c = *s;
5006 if (c == '"')
5007 length += backslashes + 1;
5008 length++;
5009 if (c == '\\')
5010 backslashes++;
5011 else
5012 backslashes = 0;
5013 }
5014 if (quote_around)
5015 length += backslashes + 1;
5016
5017 quoted_string = XMALLOC (char, length + 1);
5018
5019 p = quoted_string;
5020 backslashes = 0;
5021 if (quote_around)
5022 *p++ = '"';
5023 for (s = string; *s != '\0'; s++)
5024 {
5025 char c = *s;
5026 if (c == '"')
5027 {
5028 unsigned int j;
5029 for (j = backslashes + 1; j > 0; j--)
5030 *p++ = '\\';
5031 }
5032 *p++ = c;
5033 if (c == '\\')
5034 backslashes++;
5035 else
5036 backslashes = 0;
5037 }
5038 if (quote_around)
5039 {
5040 unsigned int j;
5041 for (j = backslashes; j > 0; j--)
5042 *p++ = '\\';
5043 *p++ = '"';
5044 }
5045 *p = '\0';
5046
5047 new_argv[i] = quoted_string;
5048 }
5049 else
5050 new_argv[i] = (char *) string;
5051 }
5052 new_argv[argc] = NULL;
5053
5054 return new_argv;
5055 }
5056 EOF
5057 ;;
5058 esac
5059
5060 cat <<"EOF"
5061 void lt_dump_script (FILE* f)
5062 {
5063 EOF
5064 func_emit_wrapper yes |
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
5074 cat <<"EOF"
5075 }
5076 EOF
40275077 }
40285078 # end: func_emit_cwrapperexe_src
5079
5080 # func_win32_import_lib_p ARG
5081 # True if ARG is an import lib, as indicated by $file_magic_cmd
5082 func_win32_import_lib_p ()
5083 {
5084 $opt_debug
5085 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5086 *import*) : ;;
5087 *) false ;;
5088 esac
5089 }
40295090
40305091 # func_mode_link arg...
40315092 func_mode_link ()
40715132 new_inherited_linker_flags=
40725133
40735134 avoid_version=no
5135 bindir=
40745136 dlfiles=
40755137 dlprefiles=
40765138 dlself=no
41635225 esac
41645226
41655227 case $prev in
5228 bindir)
5229 bindir="$arg"
5230 prev=
5231 continue
5232 ;;
41665233 dlfiles|dlprefiles)
41675234 if test "$preload" = no; then
41685235 # Add the symbol object into the linking commands.
41945261 ;;
41955262 *)
41965263 if test "$prev" = dlfiles; then
4197 dlfiles="$dlfiles $arg"
5264 func_append dlfiles " $arg"
41985265 else
4199 dlprefiles="$dlprefiles $arg"
5266 func_append dlprefiles " $arg"
42005267 fi
42015268 prev=
42025269 continue
42205287 *-*-darwin*)
42215288 case "$deplibs " in
42225289 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
42245291 ;;
42255292 esac
42265293 ;;
42395306 moreargs=
42405307 for fil in `cat "$save_arg"`
42415308 do
4242 # moreargs="$moreargs $fil"
5309 # func_append moreargs " $fil"
42435310 arg=$fil
42445311 # A libtool-controlled object.
42455312
42685335
42695336 if test "$prev" = dlfiles; then
42705337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
5338 func_append dlfiles " $pic_object"
42725339 prev=
42735340 continue
42745341 else
42805347 # CHECK ME: I think I busted this. -Ossama
42815348 if test "$prev" = dlprefiles; then
42825349 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
5350 func_append dlprefiles " $pic_object"
42845351 prev=
42855352 fi
42865353
43505417 if test "$prev" = rpath; then
43515418 case "$rpath " in
43525419 *" $arg "*) ;;
4353 *) rpath="$rpath $arg" ;;
5420 *) func_append rpath " $arg" ;;
43545421 esac
43555422 else
43565423 case "$xrpath " in
43575424 *" $arg "*) ;;
4358 *) xrpath="$xrpath $arg" ;;
5425 *) func_append xrpath " $arg" ;;
43595426 esac
43605427 fi
43615428 prev=
43675434 continue
43685435 ;;
43695436 weak)
4370 weak_libs="$weak_libs $arg"
5437 func_append weak_libs " $arg"
43715438 prev=
43725439 continue
43735440 ;;
43745441 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
43775444 prev=
43785445 func_append compile_command " $qarg"
43795446 func_append finalize_command " $qarg"
43805447 continue
43815448 ;;
43825449 xcompiler)
4383 compiler_flags="$compiler_flags $qarg"
5450 func_append compiler_flags " $qarg"
43845451 prev=
43855452 func_append compile_command " $qarg"
43865453 func_append finalize_command " $qarg"
43875454 continue
43885455 ;;
43895456 xlinker)
4390 linker_flags="$linker_flags $qarg"
4391 compiler_flags="$compiler_flags $wl$qarg"
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
43925459 prev=
43935460 func_append compile_command " $wl$qarg"
43945461 func_append finalize_command " $wl$qarg"
44245491 continue
44255492 ;;
44265493
5494 -bindir)
5495 prev=bindir
5496 continue
5497 ;;
5498
44275499 -dlopen)
44285500 prev=dlfiles
44295501 continue
44745546 ;;
44755547
44765548 -L*)
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
44805551 if test "$#" -gt 0; then
44815552 func_fatal_error "require no space between \`-L' and \`$1'"
44825553 else
44835554 func_fatal_error "need path for \`-L' option"
44845555 fi
44855556 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
44865559 # We need an absolute path.
44875560 case $dir in
44885561 [\\/]* | [A-Za-z]:[\\/]*) ;;
44945567 ;;
44955568 esac
44965569 case "$deplibs " in
4497 *" -L$dir "*) ;;
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
44985573 *)
4499 deplibs="$deplibs -L$dir"
4500 lib_search_path="$lib_search_path $dir"
5574 # Preserve sysroot, but never include relative directories
5575 case $dir in
5576 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5577 *) func_append deplibs " -L$dir" ;;
5578 esac
5579 func_append lib_search_path " $dir"
45015580 ;;
45025581 esac
45035582 case $host in
45045583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
5584 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
45065585 case :$dllsearchpath: in
45075586 *":$dir:"*) ;;
45085587 ::) dllsearchpath=$dir;;
4509 *) dllsearchpath="$dllsearchpath:$dir";;
5588 *) func_append dllsearchpath ":$dir";;
45105589 esac
45115590 case :$dllsearchpath: in
45125591 *":$testbindir:"*) ;;
45135592 ::) dllsearchpath=$testbindir;;
4514 *) dllsearchpath="$dllsearchpath:$testbindir";;
5593 *) func_append dllsearchpath ":$testbindir";;
45155594 esac
45165595 ;;
45175596 esac
45215600 -l*)
45225601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
45235602 case $host in
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
5603 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
45255604 # These systems don't actually have a C or math library (as such)
45265605 continue
45275606 ;;
45355614 ;;
45365615 *-*-rhapsody* | *-*-darwin1.[012])
45375616 # Rhapsody C and math libraries are in the System framework
4538 deplibs="$deplibs System.ltframework"
5617 func_append deplibs " System.ltframework"
45395618 continue
45405619 ;;
45415620 *-*-sco3.2v5* | *-*-sco5v6*)
45555634 ;;
45565635 esac
45575636 fi
4558 deplibs="$deplibs $arg"
5637 func_append deplibs " $arg"
45595638 continue
45605639 ;;
45615640
45675646 # Tru64 UNIX uses -model [arg] to determine the layout of C++
45685647 # classes, name mangling, and exception handling.
45695648 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
45725651 func_append compile_command " $arg"
45735652 func_append finalize_command " $arg"
45745653 prev=xcompiler
45755654 continue
45765655 ;;
45775656
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
45805660 func_append compile_command " $arg"
45815661 func_append finalize_command " $arg"
45825662 case "$new_inherited_linker_flags " in
45835663 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
45855665 esac
45865666 continue
45875667 ;;
46485728 # We need an absolute path.
46495729 case $dir in
46505730 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
46515735 *)
46525736 func_fatal_error "only absolute run-paths are allowed"
46535737 ;;
46545738 esac
46555739 case "$xrpath " in
46565740 *" $dir "*) ;;
4657 *) xrpath="$xrpath $dir" ;;
5741 *) func_append xrpath " $dir" ;;
46585742 esac
46595743 continue
46605744 ;;
47075791 for flag in $args; do
47085792 IFS="$save_ifs"
47095793 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
47125796 done
47135797 IFS="$save_ifs"
47145798 func_stripname ' ' '' "$arg"
47235807 for flag in $args; do
47245808 IFS="$save_ifs"
47255809 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
5810 func_append arg " $wl$func_quote_for_eval_result"
5811 func_append compiler_flags " $wl$func_quote_for_eval_result"
5812 func_append linker_flags " $func_quote_for_eval_result"
47295813 done
47305814 IFS="$save_ifs"
47315815 func_stripname ' ' '' "$arg"
47535837 arg="$func_quote_for_eval_result"
47545838 ;;
47555839
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
5840 # Flags to be passed through unchanged, with rationale:
5841 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5842 # -r[0-9][0-9]* specify processor for the SGI compiler
5843 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5844 # +DA*, +DD* enable 64-bit mode for the HP compiler
5845 # -q* compiler args for the IBM compiler
5846 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5847 # -F/path path to uninstalled frameworks, gcc on darwin
5848 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5849 # @file GCC response files
5850 # -tp=* Portland pgcc target processor selection
5851 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
47665853 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
47685856 func_quote_for_eval "$arg"
47695857 arg="$func_quote_for_eval_result"
47705858 func_append compile_command " $arg"
47715859 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
5860 func_append compiler_flags " $arg"
47735861 continue
47745862 ;;
47755863
47815869
47825870 *.$objext)
47835871 # A standard object.
4784 objs="$objs $arg"
5872 func_append objs " $arg"
47855873 ;;
47865874
47875875 *.lo)
48125900
48135901 if test "$prev" = dlfiles; then
48145902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4815 dlfiles="$dlfiles $pic_object"
5903 func_append dlfiles " $pic_object"
48165904 prev=
48175905 continue
48185906 else
48245912 # CHECK ME: I think I busted this. -Ossama
48255913 if test "$prev" = dlprefiles; then
48265914 # Preload the old-style object.
4827 dlprefiles="$dlprefiles $pic_object"
5915 func_append dlprefiles " $pic_object"
48285916 prev=
48295917 fi
48305918
48695957
48705958 *.$libext)
48715959 # An archive.
4872 deplibs="$deplibs $arg"
4873 old_deplibs="$old_deplibs $arg"
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
48745962 continue
48755963 ;;
48765964
48775965 *.la)
48785966 # A libtool-controlled library.
48795967
5968 func_resolve_sysroot "$arg"
48805969 if test "$prev" = dlfiles; then
48815970 # This library was specified with -dlopen.
4882 dlfiles="$dlfiles $arg"
5971 func_append dlfiles " $func_resolve_sysroot_result"
48835972 prev=
48845973 elif test "$prev" = dlprefiles; then
48855974 # The library was specified with -dlpreopen.
4886 dlprefiles="$dlprefiles $arg"
5975 func_append dlprefiles " $func_resolve_sysroot_result"
48875976 prev=
48885977 else
4889 deplibs="$deplibs $arg"
5978 func_append deplibs " $func_resolve_sysroot_result"
48905979 fi
48915980 continue
48925981 ;;
49246013
49256014 if test -n "$shlibpath_var"; then
49266015 # get the directories listed in $shlibpath_var
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
49286017 else
49296018 shlib_search_path=
49306019 fi
49336022
49346023 func_dirname "$output" "/" ""
49356024 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
49366027 # Create the object directory.
49376028 func_mkdir_p "$output_objdir"
49386029
49536044 # Find all interdependent deplibs by searching for libraries
49546045 # that are linked more than once (e.g. -la -lb -la)
49556046 for deplib in $deplibs; do
4956 if $opt_duplicate_deps ; then
6047 if $opt_preserve_dup_deps ; then
49576048 case "$libs " in
4958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
49596050 esac
49606051 fi
4961 libs="$libs $deplib"
6052 func_append libs " $deplib"
49626053 done
49636054
49646055 if test "$linkmode" = lib; then
49716062 if $opt_duplicate_compiler_generated_deps; then
49726063 for pre_post_dep in $predeps $postdeps; do
49736064 case "$pre_post_deps " in
4974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
49756066 esac
4976 pre_post_deps="$pre_post_deps $pre_post_dep"
6067 func_append pre_post_deps " $pre_post_dep"
49776068 done
49786069 fi
49796070 pre_post_deps=
50436134 for lib in $dlprefiles; do
50446135 # Ignore non-libtool-libs
50456136 dependency_libs=
6137 func_resolve_sysroot "$lib"
50466138 case $lib in
5047 *.la) func_source "$lib" ;;
6139 *.la) func_source "$func_resolve_sysroot_result" ;;
50486140 esac
50496141
50506142 # Collect preopened libtool deplibs, except any this library
50516143 # has declared as weak libs
50526144 for deplib in $dependency_libs; do
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
6145 func_basename "$deplib"
6146 deplib_base=$func_basename_result
50546147 case " $weak_libs " in
50556148 *" $deplib_base "*) ;;
5056 *) deplibs="$deplibs $deplib" ;;
6149 *) func_append deplibs " $deplib" ;;
50576150 esac
50586151 done
50596152 done
50696162 lib=
50706163 found=no
50716164 case $deplib in
5072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6165 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6166 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
50736167 if test "$linkmode,$pass" = "prog,link"; then
50746168 compile_deplibs="$deplib $compile_deplibs"
50756169 finalize_deplibs="$deplib $finalize_deplibs"
50766170 else
5077 compiler_flags="$compiler_flags $deplib"
6171 func_append compiler_flags " $deplib"
50786172 if test "$linkmode" = lib ; then
50796173 case "$new_inherited_linker_flags " in
50806174 *" $deplib "*) ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6175 * ) func_append new_inherited_linker_flags " $deplib" ;;
50826176 esac
50836177 fi
50846178 fi
51636257 if test "$linkmode" = lib ; then
51646258 case "$new_inherited_linker_flags " in
51656259 *" $deplib "*) ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6260 * ) func_append new_inherited_linker_flags " $deplib" ;;
51676261 esac
51686262 fi
51696263 fi
51766270 test "$pass" = conv && continue
51776271 newdependency_libs="$deplib $newdependency_libs"
51786272 func_stripname '-L' '' "$deplib"
5179 newlib_search_path="$newlib_search_path $func_stripname_result"
6273 func_resolve_sysroot "$func_stripname_result"
6274 func_append newlib_search_path " $func_resolve_sysroot_result"
51806275 ;;
51816276 prog)
51826277 if test "$pass" = conv; then
51906285 finalize_deplibs="$deplib $finalize_deplibs"
51916286 fi
51926287 func_stripname '-L' '' "$deplib"
5193 newlib_search_path="$newlib_search_path $func_stripname_result"
6288 func_resolve_sysroot "$func_stripname_result"
6289 func_append newlib_search_path " $func_resolve_sysroot_result"
51946290 ;;
51956291 *)
51966292 func_warning "\`-L' is ignored for archives/objects"
52016297 -R*)
52026298 if test "$pass" = link; then
52036299 func_stripname '-R' '' "$deplib"
5204 dir=$func_stripname_result
6300 func_resolve_sysroot "$func_stripname_result"
6301 dir=$func_resolve_sysroot_result
52056302 # Make sure the xrpath contains only unique directories.
52066303 case "$xrpath " in
52076304 *" $dir "*) ;;
5208 *) xrpath="$xrpath $dir" ;;
6305 *) func_append xrpath " $dir" ;;
52096306 esac
52106307 fi
52116308 deplibs="$deplib $deplibs"
52126309 continue
52136310 ;;
5214 *.la) lib="$deplib" ;;
6311 *.la)
6312 func_resolve_sysroot "$deplib"
6313 lib=$func_resolve_sysroot_result
6314 ;;
52156315 *.$libext)
52166316 if test "$pass" = conv; then
52176317 deplibs="$deplib $deplibs"
52296329 match_pattern*)
52306330 set dummy $deplibs_check_method; shift
52316331 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
6332 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
52336333 | $EGREP "$match_pattern_regex" > /dev/null; then
52346334 valid_a_lib=yes
52356335 fi
52396339 ;;
52406340 esac
52416341 if test "$valid_a_lib" != yes; then
5242 $ECHO
6342 echo
52436343 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5244 $ECHO "*** I have the capability to make that library automatically link in when"
5245 $ECHO "*** you link to this library. But I can only do this if you have a"
5246 $ECHO "*** shared version of the library, which you do not appear to have"
5247 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5248 $ECHO "*** that it is just a static archive that I should not use here."
6344 echo "*** I have the capability to make that library automatically link in when"
6345 echo "*** you link to this library. But I can only do this if you have a"
6346 echo "*** shared version of the library, which you do not appear to have"
6347 echo "*** because the file extensions .$libext of this argument makes me believe"
6348 echo "*** that it is just a static archive that I should not use here."
52496349 else
5250 $ECHO
6350 echo
52516351 $ECHO "*** Warning: Linking the shared library $output against the"
52526352 $ECHO "*** static library $deplib is not portable!"
52536353 deplibs="$deplib $deplibs"
52746374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
52756375 # If there is no dlopen support or we're linking statically,
52766376 # we need to preload.
5277 newdlprefiles="$newdlprefiles $deplib"
6377 func_append newdlprefiles " $deplib"
52786378 compile_deplibs="$deplib $compile_deplibs"
52796379 finalize_deplibs="$deplib $finalize_deplibs"
52806380 else
5281 newdlfiles="$newdlfiles $deplib"
6381 func_append newdlfiles " $deplib"
52826382 fi
52836383 fi
52846384 continue
53206420
53216421 # Convert "-framework foo" to "foo.ltframework"
53226422 if test -n "$inherited_linker_flags"; then
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
6423 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
53246424 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
53256425 case " $new_inherited_linker_flags " in
53266426 *" $tmp_inherited_linker_flag "*) ;;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6427 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
53286428 esac
53296429 done
53306430 fi
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6431 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
53326432 if test "$linkmode,$pass" = "lib,link" ||
53336433 test "$linkmode,$pass" = "prog,scan" ||
53346434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5335 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5336 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6435 test -n "$dlopen" && func_append dlfiles " $dlopen"
6436 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
53376437 fi
53386438
53396439 if test "$pass" = conv; then
53446444 func_fatal_error "cannot find name of link library for \`$lib'"
53456445 fi
53466446 # It is a libtool convenience library, so add in its objects.
5347 convenience="$convenience $ladir/$objdir/$old_library"
5348 old_convenience="$old_convenience $ladir/$objdir/$old_library"
6447 func_append convenience " $ladir/$objdir/$old_library"
6448 func_append old_convenience " $ladir/$objdir/$old_library"
53496449 tmp_libs=
53506450 for deplib in $dependency_libs; do
53516451 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
6452 if $opt_preserve_dup_deps ; then
53536453 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
53556455 esac
53566456 fi
5357 tmp_libs="$tmp_libs $deplib"
6457 func_append tmp_libs " $deplib"
53586458 done
53596459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
53606460 func_fatal_error "\`$lib' is not a convenience library"
53656465
53666466 # Get the name of the library we link against.
53676467 linklib=
5368 for l in $old_library $library_names; do
5369 linklib="$l"
5370 done
6468 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
6471 linklib=$old_library
6472 else
6473 for l in $old_library $library_names; do
6474 linklib="$l"
6475 done
6476 fi
53716477 if test -z "$linklib"; then
53726478 func_fatal_error "cannot find name of link library for \`$lib'"
53736479 fi
53846490 # statically, we need to preload. We also need to preload any
53856491 # dependent libraries so libltdl's deplib preloader doesn't
53866492 # bomb out in the load deplibs phase.
5387 dlprefiles="$dlprefiles $lib $dependency_libs"
6493 func_append dlprefiles " $lib $dependency_libs"
53886494 else
5389 newdlfiles="$newdlfiles $lib"
6495 func_append newdlfiles " $lib"
53906496 fi
53916497 continue
53926498 fi # $pass = dlopen
54086514
54096515 # Find the relevant object directory and library name.
54106516 if test "X$installed" = Xyes; then
5411 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6517 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
54126518 func_warning "library \`$lib' was moved."
54136519 dir="$ladir"
54146520 absdir="$abs_ladir"
54156521 libdir="$abs_ladir"
54166522 else
5417 dir="$libdir"
5418 absdir="$libdir"
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
54196525 fi
54206526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
54216527 else
54236529 dir="$ladir"
54246530 absdir="$abs_ladir"
54256531 # Remove this search path later
5426 notinst_path="$notinst_path $abs_ladir"
6532 func_append notinst_path " $abs_ladir"
54276533 else
54286534 dir="$ladir/$objdir"
54296535 absdir="$abs_ladir/$objdir"
54306536 # Remove this search path later
5431 notinst_path="$notinst_path $abs_ladir"
6537 func_append notinst_path " $abs_ladir"
54326538 fi
54336539 fi # $installed = yes
54346540 func_stripname 'lib' '.la' "$laname"
54396545 if test -z "$libdir" && test "$linkmode" = prog; then
54406546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
54416547 fi
5442 # Prefer using a static library (so that no silly _DYNAMIC symbols
5443 # are required to link).
5444 if test -n "$old_library"; then
5445 newdlprefiles="$newdlprefiles $dir/$old_library"
5446 # Keep a list of preopened convenience libraries to check
5447 # that they are being used correctly in the link pass.
5448 test -z "$libdir" && \
5449 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5450 # Otherwise, use the dlname, so that lt_dlopen finds it.
5451 elif test -n "$dlname"; then
5452 newdlprefiles="$newdlprefiles $dir/$dlname"
5453 else
5454 newdlprefiles="$newdlprefiles $dir/$linklib"
5455 fi
6548 case "$host" in
6549 # special handling for platforms with PE-DLLs.
6550 *cygwin* | *mingw* | *cegcc* )
6551 # Linker will automatically link against shared library if both
6552 # static and shared are present. Therefore, ensure we extract
6553 # symbols from the import library if a shared library is present
6554 # (otherwise, the dlopen module name will be incorrect). We do
6555 # this by putting the import library name into $newdlprefiles.
6556 # We recover the dlopen module name by 'saving' the la file
6557 # name in a special purpose variable, and (later) extracting the
6558 # dlname from the la file.
6559 if test -n "$dlname"; then
6560 func_tr_sh "$dir/$linklib"
6561 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6562 func_append newdlprefiles " $dir/$linklib"
6563 else
6564 func_append newdlprefiles " $dir/$old_library"
6565 # Keep a list of preopened convenience libraries to check
6566 # that they are being used correctly in the link pass.
6567 test -z "$libdir" && \
6568 func_append dlpreconveniencelibs " $dir/$old_library"
6569 fi
6570 ;;
6571 * )
6572 # Prefer using a static library (so that no silly _DYNAMIC symbols
6573 # are required to link).
6574 if test -n "$old_library"; then
6575 func_append newdlprefiles " $dir/$old_library"
6576 # Keep a list of preopened convenience libraries to check
6577 # that they are being used correctly in the link pass.
6578 test -z "$libdir" && \
6579 func_append dlpreconveniencelibs " $dir/$old_library"
6580 # Otherwise, use the dlname, so that lt_dlopen finds it.
6581 elif test -n "$dlname"; then
6582 func_append newdlprefiles " $dir/$dlname"
6583 else
6584 func_append newdlprefiles " $dir/$linklib"
6585 fi
6586 ;;
6587 esac
54566588 fi # $pass = dlpreopen
54576589
54586590 if test -z "$libdir"; then
54706602
54716603
54726604 if test "$linkmode" = prog && test "$pass" != link; then
5473 newlib_search_path="$newlib_search_path $ladir"
6605 func_append newlib_search_path " $ladir"
54746606 deplibs="$lib $deplibs"
54756607
54766608 linkalldeplibs=no
54836615 for deplib in $dependency_libs; do
54846616 case $deplib in
54856617 -L*) func_stripname '-L' '' "$deplib"
5486 newlib_search_path="$newlib_search_path $func_stripname_result"
6618 func_resolve_sysroot "$func_stripname_result"
6619 func_append newlib_search_path " $func_resolve_sysroot_result"
54876620 ;;
54886621 esac
54896622 # Need to link against all dependency_libs?
54946627 # or/and link against static libraries
54956628 newdependency_libs="$deplib $newdependency_libs"
54966629 fi
5497 if $opt_duplicate_deps ; then
6630 if $opt_preserve_dup_deps ; then
54986631 case "$tmp_libs " in
5499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6632 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
55006633 esac
55016634 fi
5502 tmp_libs="$tmp_libs $deplib"
6635 func_append tmp_libs " $deplib"
55036636 done # for deplib
55046637 continue
55056638 fi # $linkmode = prog...
55146647 # Make sure the rpath contains only unique directories.
55156648 case "$temp_rpath:" in
55166649 *"$absdir:"*) ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
6650 *) func_append temp_rpath "$absdir:" ;;
55186651 esac
55196652 fi
55206653
55266659 *)
55276660 case "$compile_rpath " in
55286661 *" $absdir "*) ;;
5529 *) compile_rpath="$compile_rpath $absdir"
6662 *) func_append compile_rpath " $absdir" ;;
55306663 esac
55316664 ;;
55326665 esac
55356668 *)
55366669 case "$finalize_rpath " in
55376670 *" $libdir "*) ;;
5538 *) finalize_rpath="$finalize_rpath $libdir"
6671 *) func_append finalize_rpath " $libdir" ;;
55396672 esac
55406673 ;;
55416674 esac
55606693 case $host in
55616694 *cygwin* | *mingw* | *cegcc*)
55626695 # No point in relinking DLLs because paths are not encoded
5563 notinst_deplibs="$notinst_deplibs $lib"
6696 func_append notinst_deplibs " $lib"
55646697 need_relink=no
55656698 ;;
55666699 *)
55676700 if test "$installed" = no; then
5568 notinst_deplibs="$notinst_deplibs $lib"
6701 func_append notinst_deplibs " $lib"
55696702 need_relink=yes
55706703 fi
55716704 ;;
55826715 fi
55836716 done
55846717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5585 $ECHO
6718 echo
55866719 if test "$linkmode" = prog; then
55876720 $ECHO "*** Warning: Linking the executable $output against the loadable module"
55886721 else
56006733 *)
56016734 case "$compile_rpath " in
56026735 *" $absdir "*) ;;
5603 *) compile_rpath="$compile_rpath $absdir"
6736 *) func_append compile_rpath " $absdir" ;;
56046737 esac
56056738 ;;
56066739 esac
56096742 *)
56106743 case "$finalize_rpath " in
56116744 *" $libdir "*) ;;
5612 *) finalize_rpath="$finalize_rpath $libdir"
6745 *) func_append finalize_rpath " $libdir" ;;
56136746 esac
56146747 ;;
56156748 esac
56636796 linklib=$newlib
56646797 fi # test -n "$old_archive_from_expsyms_cmds"
56656798
5666 if test "$linkmode" = prog || test "$mode" != relink; then
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
56676800 add_shlibpath=
56686801 add_dir=
56696802 add=
56856818 if test "X$dlopenmodule" != "X$lib"; then
56866819 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
56876820 if test -z "$old_library" ; then
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
6821 echo
6822 echo "*** And there doesn't seem to be a static archive available"
6823 echo "*** The link will probably fail, sorry"
56916824 else
56926825 add="$dir/$old_library"
56936826 fi
57146847 test "$hardcode_direct_absolute" = no; then
57156848 add="$dir/$linklib"
57166849 elif test "$hardcode_minus_L" = yes; then
5717 add_dir="-L$dir"
6850 add_dir="-L$absdir"
57186851 # Try looking first in the location we're being installed to.
57196852 if test -n "$inst_prefix_dir"; then
57206853 case $libdir in
57216854 [\\/]*)
5722 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6855 func_append add_dir " -L$inst_prefix_dir$libdir"
57236856 ;;
57246857 esac
57256858 fi
57416874 if test -n "$add_shlibpath"; then
57426875 case :$compile_shlibpath: in
57436876 *":$add_shlibpath:"*) ;;
5744 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6877 *) func_append compile_shlibpath "$add_shlibpath:" ;;
57456878 esac
57466879 fi
57476880 if test "$linkmode" = prog; then
57556888 test "$hardcode_shlibpath_var" = yes; then
57566889 case :$finalize_shlibpath: in
57576890 *":$libdir:"*) ;;
5758 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6891 *) func_append finalize_shlibpath "$libdir:" ;;
57596892 esac
57606893 fi
57616894 fi
57626895 fi
57636896
5764 if test "$linkmode" = prog || test "$mode" = relink; then
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
57656898 add_shlibpath=
57666899 add_dir=
57676900 add=
57756908 elif test "$hardcode_shlibpath_var" = yes; then
57766909 case :$finalize_shlibpath: in
57776910 *":$libdir:"*) ;;
5778 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6911 *) func_append finalize_shlibpath "$libdir:" ;;
57796912 esac
57806913 add="-l$name"
57816914 elif test "$hardcode_automatic" = yes; then
57926925 if test -n "$inst_prefix_dir"; then
57936926 case $libdir in
57946927 [\\/]*)
5795 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6928 func_append add_dir " -L$inst_prefix_dir$libdir"
57966929 ;;
57976930 esac
57986931 fi
58276960
58286961 # Just print a warning and add the library to dependency_libs so
58296962 # that the program can be linked against the static library.
5830 $ECHO
6963 echo
58316964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5832 $ECHO "*** I have the capability to make that library automatically link in when"
5833 $ECHO "*** you link to this library. But I can only do this if you have a"
5834 $ECHO "*** shared version of the library, which you do not appear to have."
6965 echo "*** I have the capability to make that library automatically link in when"
6966 echo "*** you link to this library. But I can only do this if you have a"
6967 echo "*** shared version of the library, which you do not appear to have."
58356968 if test "$module" = yes; then
5836 $ECHO "*** But as you try to build a module library, libtool will still create "
5837 $ECHO "*** a static module, that should work as long as the dlopening application"
5838 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
6969 echo "*** But as you try to build a module library, libtool will still create "
6970 echo "*** a static module, that should work as long as the dlopening application"
6971 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
58396972 if test -z "$global_symbol_pipe"; then
5840 $ECHO
5841 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5842 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5843 $ECHO "*** not find such a program. So, this module is probably useless."
5844 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
6973 echo
6974 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6976 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
58456978 fi
58466979 if test "$build_old_libs" = no; then
58476980 build_libtool_libs=module
58697002 temp_xrpath=$func_stripname_result
58707003 case " $xrpath " in
58717004 *" $temp_xrpath "*) ;;
5872 *) xrpath="$xrpath $temp_xrpath";;
7005 *) func_append xrpath " $temp_xrpath";;
58737006 esac;;
5874 *) temp_deplibs="$temp_deplibs $libdir";;
7007 *) func_append temp_deplibs " $libdir";;
58757008 esac
58767009 done
58777010 dependency_libs="$temp_deplibs"
58787011 fi
58797012
5880 newlib_search_path="$newlib_search_path $absdir"
7013 func_append newlib_search_path " $absdir"
58817014 # Link against this library
58827015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
58837016 # ... and its dependency_libs
58847017 tmp_libs=
58857018 for deplib in $dependency_libs; do
58867019 newdependency_libs="$deplib $newdependency_libs"
5887 if $opt_duplicate_deps ; then
7020 case $deplib in
7021 -L*) func_stripname '-L' '' "$deplib"
7022 func_resolve_sysroot "$func_stripname_result";;
7023 *) func_resolve_sysroot "$deplib" ;;
7024 esac
7025 if $opt_preserve_dup_deps ; then
58887026 case "$tmp_libs " in
5889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7027 *" $func_resolve_sysroot_result "*)
7028 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
58907029 esac
58917030 fi
5892 tmp_libs="$tmp_libs $deplib"
7031 func_append tmp_libs " $func_resolve_sysroot_result"
58937032 done
58947033
58957034 if test "$link_all_deplibs" != no; then
58997038 case $deplib in
59007039 -L*) path="$deplib" ;;
59017040 *.la)
7041 func_resolve_sysroot "$deplib"
7042 deplib=$func_resolve_sysroot_result
59027043 func_dirname "$deplib" "" "."
5903 dir="$func_dirname_result"
7044 dir=$func_dirname_result
59047045 # We need an absolute path.
59057046 case $dir in
59067047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
59277068 if test -z "$darwin_install_name"; then
59287069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
59297070 fi
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
59327073 path=
59337074 fi
59347075 fi
59617102 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
59627103 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
59637104 else
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7105 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
59657106 fi
59667107 fi
59677108 dependency_libs="$newdependency_libs"
59787119 for dir in $newlib_search_path; do
59797120 case "$lib_search_path " in
59807121 *" $dir "*) ;;
5981 *) lib_search_path="$lib_search_path $dir" ;;
7122 *) func_append lib_search_path " $dir" ;;
59827123 esac
59837124 done
59847125 newlib_search_path=
60367177 -L*)
60377178 case " $tmp_libs " in
60387179 *" $deplib "*) ;;
6039 *) tmp_libs="$tmp_libs $deplib" ;;
7180 *) func_append tmp_libs " $deplib" ;;
60407181 esac
60417182 ;;
6042 *) tmp_libs="$tmp_libs $deplib" ;;
7183 *) func_append tmp_libs " $deplib" ;;
60437184 esac
60447185 done
60457186 eval $var=\"$tmp_libs\"
60557196 ;;
60567197 esac
60577198 if test -n "$i" ; then
6058 tmp_libs="$tmp_libs $i"
7199 func_append tmp_libs " $i"
60597200 fi
60607201 done
60617202 dependency_libs=$tmp_libs
60967237 # Now set the variables for building old libraries.
60977238 build_libtool_libs=no
60987239 oldlibs="$output"
6099 objs="$objs$old_deplibs"
7240 func_append objs "$old_deplibs"
61007241 ;;
61017242
61027243 lib)
61297270 if test "$deplibs_check_method" != pass_all; then
61307271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
61317272 else
6132 $ECHO
7273 echo
61337274 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
61347275 $ECHO "*** objects $objs is not portable!"
6135 libobjs="$libobjs $objs"
7276 func_append libobjs " $objs"
61367277 fi
61377278 fi
61387279
61917332 # which has an extra 1 added just for fun
61927333 #
61937334 case $version_type in
7335 # correct linux to gnu/linux during the next big refactor
61947336 darwin|linux|osf|windows|none)
61957337 func_arith $number_major + $number_minor
61967338 current=$func_arith_result
61977339 age="$number_minor"
61987340 revision="$number_revision"
61997341 ;;
6200 freebsd-aout|freebsd-elf|sunos)
7342 freebsd-aout|freebsd-elf|qnx|sunos)
62017343 current="$number_major"
62027344 revision="$number_minor"
62037345 age="0"
63107452 versuffix="$major.$revision"
63117453 ;;
63127454
6313 linux)
7455 linux) # correct to gnu/linux during the next big refactor
63147456 func_arith $current - $age
63157457 major=.$func_arith_result
63167458 versuffix="$major.$age.$revision"
63337475 done
63347476
63357477 # Make executables depend on our current version.
6336 verstring="$verstring:${current}.0"
7478 func_append verstring ":${current}.0"
63377479 ;;
63387480
63397481 qnx)
64017543 fi
64027544
64037545 func_generate_dlsyms "$libname" "$libname" "yes"
6404 libobjs="$libobjs $symfileobj"
7546 func_append libobjs " $symfileobj"
64057547 test "X$libobjs" = "X " && libobjs=
64067548
6407 if test "$mode" != relink; then
7549 if test "$opt_mode" != relink; then
64087550 # Remove our outputs, but don't remove object files since they
64097551 # may have been created when compiling PIC objects.
64107552 removelist=
64207562 continue
64217563 fi
64227564 fi
6423 removelist="$removelist $p"
7565 func_append removelist " $p"
64247566 ;;
64257567 *) ;;
64267568 esac
64317573
64327574 # Now set the variables for building old libraries.
64337575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7576 func_append oldlibs " $output_objdir/$libname.$libext"
64357577
64367578 # Transform .lo files to .o files.
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
64387580 fi
64397581
64407582 # Eliminate all temporary directories.
64417583 #for path in $notinst_path; do
6442 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6443 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6444 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
7584 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
7585 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7586 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
64457587 #done
64467588
64477589 if test -n "$xrpath"; then
64487590 # If the user specified any rpath flags, then add them.
64497591 temp_xrpath=
64507592 for libdir in $xrpath; do
6451 temp_xrpath="$temp_xrpath -R$libdir"
7593 func_replace_sysroot "$libdir"
7594 func_append temp_xrpath " -R$func_replace_sysroot_result"
64527595 case "$finalize_rpath " in
64537596 *" $libdir "*) ;;
6454 *) finalize_rpath="$finalize_rpath $libdir" ;;
7597 *) func_append finalize_rpath " $libdir" ;;
64557598 esac
64567599 done
64577600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
64657608 for lib in $old_dlfiles; do
64667609 case " $dlprefiles $dlfiles " in
64677610 *" $lib "*) ;;
6468 *) dlfiles="$dlfiles $lib" ;;
7611 *) func_append dlfiles " $lib" ;;
64697612 esac
64707613 done
64717614
64757618 for lib in $old_dlprefiles; do
64767619 case "$dlprefiles " in
64777620 *" $lib "*) ;;
6478 *) dlprefiles="$dlprefiles $lib" ;;
7621 *) func_append dlprefiles " $lib" ;;
64797622 esac
64807623 done
64817624
64827625 if test "$build_libtool_libs" = yes; then
64837626 if test -n "$rpath"; then
64847627 case $host in
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
7628 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
64867629 # these systems don't actually have a c library (as such)!
64877630 ;;
64887631 *-*-rhapsody* | *-*-darwin1.[012])
64897632 # Rhapsody C library is in the System framework
6490 deplibs="$deplibs System.ltframework"
7633 func_append deplibs " System.ltframework"
64917634 ;;
64927635 *-*-netbsd*)
64937636 # Don't link with libc until the a.out ld.so is fixed.
65047647 *)
65057648 # Add libc to deplibs on all other systems if necessary.
65067649 if test "$build_libtool_need_lc" = "yes"; then
6507 deplibs="$deplibs -lc"
7650 func_append deplibs " -lc"
65087651 fi
65097652 ;;
65107653 esac
65537696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65547697 case " $predeps $postdeps " in
65557698 *" $i "*)
6556 newdeplibs="$newdeplibs $i"
7699 func_append newdeplibs " $i"
65577700 i=""
65587701 ;;
65597702 esac
65647707 set dummy $deplib_matches; shift
65657708 deplib_match=$1
65667709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6567 newdeplibs="$newdeplibs $i"
7710 func_append newdeplibs " $i"
65687711 else
65697712 droppeddeps=yes
6570 $ECHO
7713 echo
65717714 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6572 $ECHO "*** I have the capability to make that library automatically link in when"
6573 $ECHO "*** you link to this library. But I can only do this if you have a"
6574 $ECHO "*** shared version of the library, which I believe you do not have"
6575 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6576 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
7715 echo "*** I have the capability to make that library automatically link in when"
7716 echo "*** you link to this library. But I can only do this if you have a"
7717 echo "*** shared version of the library, which I believe you do not have"
7718 echo "*** because a test_compile did reveal that the linker did not use it for"
7719 echo "*** its dynamic dependency list that programs get resolved with at runtime."
65777720 fi
65787721 fi
65797722 ;;
65807723 *)
6581 newdeplibs="$newdeplibs $i"
7724 func_append newdeplibs " $i"
65827725 ;;
65837726 esac
65847727 done
65967739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65977740 case " $predeps $postdeps " in
65987741 *" $i "*)
6599 newdeplibs="$newdeplibs $i"
7742 func_append newdeplibs " $i"
66007743 i=""
66017744 ;;
66027745 esac
66077750 set dummy $deplib_matches; shift
66087751 deplib_match=$1
66097752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6610 newdeplibs="$newdeplibs $i"
7753 func_append newdeplibs " $i"
66117754 else
66127755 droppeddeps=yes
6613 $ECHO
7756 echo
66147757 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6615 $ECHO "*** I have the capability to make that library automatically link in when"
6616 $ECHO "*** you link to this library. But I can only do this if you have a"
6617 $ECHO "*** shared version of the library, which you do not appear to have"
6618 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6619 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
7758 echo "*** I have the capability to make that library automatically link in when"
7759 echo "*** you link to this library. But I can only do this if you have a"
7760 echo "*** shared version of the library, which you do not appear to have"
7761 echo "*** because a test_compile did reveal that the linker did not use this one"
7762 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
66207763 fi
66217764 fi
66227765 else
66237766 droppeddeps=yes
6624 $ECHO
7767 echo
66257768 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6626 $ECHO "*** make it link in! You will probably need to install it or some"
6627 $ECHO "*** library that it depends on before this library will be fully"
6628 $ECHO "*** functional. Installing it before continuing would be even better."
7769 echo "*** make it link in! You will probably need to install it or some"
7770 echo "*** library that it depends on before this library will be fully"
7771 echo "*** functional. Installing it before continuing would be even better."
66297772 fi
66307773 ;;
66317774 *)
6632 newdeplibs="$newdeplibs $i"
7775 func_append newdeplibs " $i"
66337776 ;;
66347777 esac
66357778 done
66467789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
66477790 case " $predeps $postdeps " in
66487791 *" $a_deplib "*)
6649 newdeplibs="$newdeplibs $a_deplib"
7792 func_append newdeplibs " $a_deplib"
66507793 a_deplib=""
66517794 ;;
66527795 esac
66537796 fi
66547797 if test -n "$a_deplib" ; then
66557798 libname=`eval "\\$ECHO \"$libname_spec\""`
7799 if test -n "$file_magic_glob"; then
7800 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7801 else
7802 libnameglob=$libname
7803 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
66567805 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7806 if test "$want_nocaseglob" = yes; then
7807 shopt -s nocaseglob
7808 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7809 $nocaseglob
7810 else
7811 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7812 fi
66587813 for potent_lib in $potential_libs; do
66597814 # Follow soft links.
66607815 if ls -lLd "$potent_lib" 2>/dev/null |
66717826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
66727827 case $potliblink in
66737828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
66757830 esac
66767831 done
66777832 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
66787833 $SED -e 10q |
66797834 $EGREP "$file_magic_regex" > /dev/null; then
6680 newdeplibs="$newdeplibs $a_deplib"
7835 func_append newdeplibs " $a_deplib"
66817836 a_deplib=""
66827837 break 2
66837838 fi
66867841 fi
66877842 if test -n "$a_deplib" ; then
66887843 droppeddeps=yes
6689 $ECHO
7844 echo
66907845 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6691 $ECHO "*** I have the capability to make that library automatically link in when"
6692 $ECHO "*** you link to this library. But I can only do this if you have a"
6693 $ECHO "*** shared version of the library, which you do not appear to have"
6694 $ECHO "*** because I did check the linker path looking for a file starting"
7846 echo "*** I have the capability to make that library automatically link in when"
7847 echo "*** you link to this library. But I can only do this if you have a"
7848 echo "*** shared version of the library, which you do not appear to have"
7849 echo "*** because I did check the linker path looking for a file starting"
66957850 if test -z "$potlib" ; then
66967851 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
66977852 else
67027857 ;;
67037858 *)
67047859 # Add a -L argument.
6705 newdeplibs="$newdeplibs $a_deplib"
7860 func_append newdeplibs " $a_deplib"
67067861 ;;
67077862 esac
67087863 done # Gone through all deplibs.
67187873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67197874 case " $predeps $postdeps " in
67207875 *" $a_deplib "*)
6721 newdeplibs="$newdeplibs $a_deplib"
7876 func_append newdeplibs " $a_deplib"
67227877 a_deplib=""
67237878 ;;
67247879 esac
67297884 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
67307885 for potent_lib in $potential_libs; do
67317886 potlib="$potent_lib" # see symlink-check above in file_magic test
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
7887 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
67337888 $EGREP "$match_pattern_regex" > /dev/null; then
6734 newdeplibs="$newdeplibs $a_deplib"
7889 func_append newdeplibs " $a_deplib"
67357890 a_deplib=""
67367891 break 2
67377892 fi
67407895 fi
67417896 if test -n "$a_deplib" ; then
67427897 droppeddeps=yes
6743 $ECHO
7898 echo
67447899 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6745 $ECHO "*** I have the capability to make that library automatically link in when"
6746 $ECHO "*** you link to this library. But I can only do this if you have a"
6747 $ECHO "*** shared version of the library, which you do not appear to have"
6748 $ECHO "*** because I did check the linker path looking for a file starting"
7900 echo "*** I have the capability to make that library automatically link in when"
7901 echo "*** you link to this library. But I can only do this if you have a"
7902 echo "*** shared version of the library, which you do not appear to have"
7903 echo "*** because I did check the linker path looking for a file starting"
67497904 if test -z "$potlib" ; then
67507905 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
67517906 else
67567911 ;;
67577912 *)
67587913 # Add a -L argument.
6759 newdeplibs="$newdeplibs $a_deplib"
7914 func_append newdeplibs " $a_deplib"
67607915 ;;
67617916 esac
67627917 done # Gone through all deplibs.
67637918 ;;
67647919 none | unknown | *)
67657920 newdeplibs=""
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
7921 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
67687922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67697923 for i in $predeps $postdeps ; do
67707924 # can't use Xsed below, because $i might contain '/'
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
67727926 done
67737927 fi
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
7928 case $tmp_deplibs in
7929 *[!\ \ ]*)
7930 echo
67777931 if test "X$deplibs_check_method" = "Xnone"; then
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
7932 echo "*** Warning: inter-library dependencies are not supported in this platform."
67797933 else
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
7934 echo "*** Warning: inter-library dependencies are not known to be supported."
67817935 fi
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
7936 echo "*** All declared inter-library dependencies are being dropped."
67837937 droppeddeps=yes
6784 fi
7938 ;;
7939 esac
67857940 ;;
67867941 esac
67877942 versuffix=$versuffix_save
67937948 case $host in
67947949 *-*-rhapsody* | *-*-darwin1.[012])
67957950 # On Rhapsody replace the C library with the System framework
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7951 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
67977952 ;;
67987953 esac
67997954
68007955 if test "$droppeddeps" = yes; then
68017956 if test "$module" = yes; then
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
7957 echo
7958 echo "*** Warning: libtool could not satisfy all declared inter-library"
68047959 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
7960 echo "*** a static module, that should work as long as the dlopening"
7961 echo "*** application is linked with the -dlopen flag."
68077962 if test -z "$global_symbol_pipe"; then
6808 $ECHO
6809 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6810 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6811 $ECHO "*** not find such a program. So, this module is probably useless."
6812 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
7963 echo
7964 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7966 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
68137968 fi
68147969 if test "$build_old_libs" = no; then
68157970 oldlibs="$output_objdir/$libname.$libext"
68197974 build_libtool_libs=no
68207975 fi
68217976 else
6822 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6823 $ECHO "*** automatically added whenever a program is linked with this library"
6824 $ECHO "*** or is declared to -dlopen it."
7977 echo "*** The inter-library dependencies that have been dropped here will be"
7978 echo "*** automatically added whenever a program is linked with this library"
7979 echo "*** or is declared to -dlopen it."
68257980
68267981 if test "$allow_undefined" = no; then
6827 $ECHO
6828 $ECHO "*** Since this library must not contain undefined symbols,"
6829 $ECHO "*** because either the platform does not support them or"
6830 $ECHO "*** it was explicitly requested with -no-undefined,"
6831 $ECHO "*** libtool will only create a static version of it."
7982 echo
7983 echo "*** Since this library must not contain undefined symbols,"
7984 echo "*** because either the platform does not support them or"
7985 echo "*** it was explicitly requested with -no-undefined,"
7986 echo "*** libtool will only create a static version of it."
68327987 if test "$build_old_libs" = no; then
68337988 oldlibs="$output_objdir/$libname.$libext"
68347989 build_libtool_libs=module
68458000 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
68468001 case $host in
68478002 *-*-darwin*)
6848 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6849 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6850 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8003 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8004 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8005 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
68518006 ;;
68528007 esac
68538008
68608015 *)
68618016 case " $deplibs " in
68628017 *" -L$path/$objdir "*)
6863 new_libs="$new_libs -L$path/$objdir" ;;
8018 func_append new_libs " -L$path/$objdir" ;;
68648019 esac
68658020 ;;
68668021 esac
68708025 -L*)
68718026 case " $new_libs " in
68728027 *" $deplib "*) ;;
6873 *) new_libs="$new_libs $deplib" ;;
8028 *) func_append new_libs " $deplib" ;;
68748029 esac
68758030 ;;
6876 *) new_libs="$new_libs $deplib" ;;
8031 *) func_append new_libs " $deplib" ;;
68778032 esac
68788033 done
68798034 deplibs="$new_libs"
68858040
68868041 # Test again, we may have decided not to build it any more
68878042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
8044 # FIXME: should test the right _cmds variable.
8045 case $archive_cmds in
8046 *\$LD\ *) wl= ;;
8047 esac
68888048 if test "$hardcode_into_libs" = yes; then
68898049 # Hardcode the library paths
68908050 hardcode_libdirs=
68918051 dep_rpath=
68928052 rpath="$finalize_rpath"
6893 test "$mode" != relink && rpath="$compile_rpath$rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
68948054 for libdir in $rpath; do
68958055 if test -n "$hardcode_libdir_flag_spec"; then
68968056 if test -n "$hardcode_libdir_separator"; then
8057 func_replace_sysroot "$libdir"
8058 libdir=$func_replace_sysroot_result
68978059 if test -z "$hardcode_libdirs"; then
68988060 hardcode_libdirs="$libdir"
68998061 else
69028064 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
69038065 ;;
69048066 *)
6905 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8067 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
69068068 ;;
69078069 esac
69088070 fi
69098071 else
69108072 eval flag=\"$hardcode_libdir_flag_spec\"
6911 dep_rpath="$dep_rpath $flag"
8073 func_append dep_rpath " $flag"
69128074 fi
69138075 elif test -n "$runpath_var"; then
69148076 case "$perm_rpath " in
69158077 *" $libdir "*) ;;
6916 *) perm_rpath="$perm_rpath $libdir" ;;
8078 *) func_append perm_rpath " $libdir" ;;
69178079 esac
69188080 fi
69198081 done
69218083 if test -n "$hardcode_libdir_separator" &&
69228084 test -n "$hardcode_libdirs"; then
69238085 libdir="$hardcode_libdirs"
6924 if test -n "$hardcode_libdir_flag_spec_ld"; then
6925 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6926 else
6927 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6928 fi
8086 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
69298087 fi
69308088 if test -n "$runpath_var" && test -n "$perm_rpath"; then
69318089 # We should set the runpath_var.
69328090 rpath=
69338091 for dir in $perm_rpath; do
6934 rpath="$rpath$dir:"
8092 func_append rpath "$dir:"
69358093 done
69368094 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
69378095 fi
69398097 fi
69408098
69418099 shlibpath="$finalize_shlibpath"
6942 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
69438101 if test -n "$shlibpath"; then
69448102 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
69458103 fi
69658123 linknames=
69668124 for link
69678125 do
6968 linknames="$linknames $link"
8126 func_append linknames " $link"
69698127 done
69708128
69718129 # Use standard objects if they are pic
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8130 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
69738131 test "X$libobjs" = "X " && libobjs=
69748132
69758133 delfiles=
69768134 if test -n "$export_symbols" && test -n "$include_expsyms"; then
69778135 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
69788136 export_symbols="$output_objdir/$libname.uexp"
6979 delfiles="$delfiles $export_symbols"
8137 func_append delfiles " $export_symbols"
69808138 fi
69818139
69828140 orig_export_symbols=
70078165 $opt_dry_run || $RM $export_symbols
70088166 cmds=$export_symbols_cmds
70098167 save_ifs="$IFS"; IFS='~'
7010 for cmd in $cmds; do
8168 for cmd1 in $cmds; do
70118169 IFS="$save_ifs"
7012 eval cmd=\"$cmd\"
7013 func_len " $cmd"
7014 len=$func_len_result
7015 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8170 # Take the normal branch if the nm_file_list_spec branch
8171 # doesn't work or if tool conversion is not needed.
8172 case $nm_file_list_spec~$to_tool_file_cmd in
8173 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8174 try_normal_branch=yes
8175 eval cmd=\"$cmd1\"
8176 func_len " $cmd"
8177 len=$func_len_result
8178 ;;
8179 *)
8180 try_normal_branch=no
8181 ;;
8182 esac
8183 if test "$try_normal_branch" = yes \
8184 && { test "$len" -lt "$max_cmd_len" \
8185 || test "$max_cmd_len" -le -1; }
8186 then
70168187 func_show_eval "$cmd" 'exit $?'
8188 skipped_export=false
8189 elif test -n "$nm_file_list_spec"; then
8190 func_basename "$output"
8191 output_la=$func_basename_result
8192 save_libobjs=$libobjs
8193 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
8195 func_to_tool_file "$output"
8196 libobjs=$nm_file_list_spec$func_to_tool_file_result
8197 func_append delfiles " $output"
8198 func_verbose "creating $NM input file list: $output"
8199 for obj in $save_libobjs; do
8200 func_to_tool_file "$obj"
8201 $ECHO "$func_to_tool_file_result"
8202 done > "$output"
8203 eval cmd=\"$cmd1\"
8204 func_show_eval "$cmd" 'exit $?'
8205 output=$save_output
8206 libobjs=$save_libobjs
70178207 skipped_export=false
70188208 else
70198209 # The command line is too long to execute in one step.
70358225 if test -n "$export_symbols" && test -n "$include_expsyms"; then
70368226 tmp_export_symbols="$export_symbols"
70378227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8228 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
70398229 fi
70408230
70418231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
70478237 # global variables. join(1) would be nice here, but unfortunately
70488238 # isn't a blessed tool.
70498239 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8240 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
70518241 export_symbols=$output_objdir/$libname.def
70528242 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
70538243 fi
70578247 case " $convenience " in
70588248 *" $test_deplib "*) ;;
70598249 *)
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
8250 func_append tmp_deplibs " $test_deplib"
70618251 ;;
70628252 esac
70638253 done
70778267 test "X$libobjs" = "X " && libobjs=
70788268 else
70798269 gentop="$output_objdir/${outputname}x"
7080 generated="$generated $gentop"
8270 func_append generated " $gentop"
70818271
70828272 func_extract_archives $gentop $convenience
7083 libobjs="$libobjs $func_extract_archives_result"
8273 func_append libobjs " $func_extract_archives_result"
70848274 test "X$libobjs" = "X " && libobjs=
70858275 fi
70868276 fi
70878277
70888278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
70898279 eval flag=\"$thread_safe_flag_spec\"
7090 linker_flags="$linker_flags $flag"
8280 func_append linker_flags " $flag"
70918281 fi
70928282
70938283 # Make a backup of the uninstalled library when relinking
7094 if test "$mode" = relink; then
8284 if test "$opt_mode" = relink; then
70958285 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
70968286 fi
70978287
71368326 save_libobjs=$libobjs
71378327 fi
71388328 save_output=$output
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
8329 func_basename "$output"
8330 output_la=$func_basename_result
71408331
71418332 # Clear the reloadable object creation command queue and
71428333 # initialize k to one.
71498340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
71508341 output=${output_objdir}/${output_la}.lnkscript
71518342 func_verbose "creating GNU ld script: $output"
7152 $ECHO 'INPUT (' > $output
8343 echo 'INPUT (' > $output
71538344 for obj in $save_libobjs
71548345 do
7155 $ECHO "$obj" >> $output
8346 func_to_tool_file "$obj"
8347 $ECHO "$func_to_tool_file_result" >> $output
71568348 done
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
8349 echo ')' >> $output
8350 func_append delfiles " $output"
8351 func_to_tool_file "$output"
8352 output=$func_to_tool_file_result
71598353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
71608354 output=${output_objdir}/${output_la}.lnk
71618355 func_verbose "creating linker input file list: $output"
71698363 fi
71708364 for obj
71718365 do
7172 $ECHO "$obj" >> $output
8366 func_to_tool_file "$obj"
8367 $ECHO "$func_to_tool_file_result" >> $output
71738368 done
7174 delfiles="$delfiles $output"
7175 output=$firstobj\"$file_list_spec$output\"
8369 func_append delfiles " $output"
8370 func_to_tool_file "$output"
8371 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
71768372 else
71778373 if test -n "$save_libobjs"; then
71788374 func_verbose "creating reloadable object files..."
71968392 # command to the queue.
71978393 if test "$k" -eq 1 ; then
71988394 # The first file doesn't have a previous command to add.
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
8395 reload_objs=$objlist
8396 eval concat_cmds=\"$reload_cmds\"
72008397 else
72018398 # All subsequent reloadable object files will link in
72028399 # the last one created.
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
8400 reload_objs="$objlist $last_robj"
8401 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
72048402 fi
72058403 last_robj=$output_objdir/$output_la-${k}.$objext
72068404 func_arith $k + 1
72078405 k=$func_arith_result
72088406 output=$output_objdir/$output_la-${k}.$objext
7209 objlist=$obj
8407 objlist=" $obj"
72108408 func_len " $last_robj"
72118409 func_arith $len0 + $func_len_result
72128410 len=$func_arith_result
72168414 # reloadable object file. All subsequent reloadable object
72178415 # files will link in the last one created.
72188416 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
8417 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
72208419 if test -n "$last_robj"; then
72218420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
72228421 fi
7223 delfiles="$delfiles $output"
8422 func_append delfiles " $output"
72248423
72258424 else
72268425 output=
72548453 lt_exit=$?
72558454
72568455 # Restore the uninstalled library and exit
7257 if test "$mode" = relink; then
8456 if test "$opt_mode" = relink; then
72588457 ( cd "$output_objdir" && \
72598458 $RM "${realname}T" && \
72608459 $MV "${realname}U" "$realname" )
72758474 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72768475 tmp_export_symbols="$export_symbols"
72778476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8477 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
72798478 fi
72808479
72818480 if test -n "$orig_export_symbols"; then
72878486 # global variables. join(1) would be nice here, but unfortunately
72888487 # isn't a blessed tool.
72898488 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8489 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
72918490 export_symbols=$output_objdir/$libname.def
72928491 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
72938492 fi
73288527 # Add any objects from preloaded convenience libraries
73298528 if test -n "$dlprefiles"; then
73308529 gentop="$output_objdir/${outputname}x"
7331 generated="$generated $gentop"
8530 func_append generated " $gentop"
73328531
73338532 func_extract_archives $gentop $dlprefiles
7334 libobjs="$libobjs $func_extract_archives_result"
8533 func_append libobjs " $func_extract_archives_result"
73358534 test "X$libobjs" = "X " && libobjs=
73368535 fi
73378536
73478546 lt_exit=$?
73488547
73498548 # Restore the uninstalled library and exit
7350 if test "$mode" = relink; then
8549 if test "$opt_mode" = relink; then
73518550 ( cd "$output_objdir" && \
73528551 $RM "${realname}T" && \
73538552 $MV "${realname}U" "$realname" )
73598558 IFS="$save_ifs"
73608559
73618560 # Restore the uninstalled library and exit
7362 if test "$mode" = relink; then
8561 if test "$opt_mode" = relink; then
73638562 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
73648563
73658564 if test -n "$convenience"; then
74408639 if test -n "$convenience"; then
74418640 if test -n "$whole_archive_flag_spec"; then
74428641 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
74448643 else
74458644 gentop="$output_objdir/${obj}x"
7446 generated="$generated $gentop"
8645 func_append generated " $gentop"
74478646
74488647 func_extract_archives $gentop $convenience
74498648 reload_conv_objs="$reload_objs $func_extract_archives_result"
74508649 fi
74518650 fi
74528651
8652 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
8654
74538655 # Create the old-style object.
7454 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
74558657
74568658 output="$obj"
74578659 func_execute_cmds "$reload_cmds" 'exit $?'
75118713 case $host in
75128714 *-*-rhapsody* | *-*-darwin1.[012])
75138715 # On Rhapsody replace the C library is the System framework
7514 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7515 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
8716 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8717 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
75168718 ;;
75178719 esac
75188720
75238725 if test "$tagname" = CXX ; then
75248726 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
75258727 10.[0123])
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 finalize_command="$finalize_command ${wl}-bind_at_load"
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
75288730 ;;
75298731 esac
75308732 fi
75318733 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7532 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7533 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8734 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8735 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
75348736 ;;
75358737 esac
75368738
75448746 *)
75458747 case " $compile_deplibs " in
75468748 *" -L$path/$objdir "*)
7547 new_libs="$new_libs -L$path/$objdir" ;;
8749 func_append new_libs " -L$path/$objdir" ;;
75488750 esac
75498751 ;;
75508752 esac
75548756 -L*)
75558757 case " $new_libs " in
75568758 *" $deplib "*) ;;
7557 *) new_libs="$new_libs $deplib" ;;
8759 *) func_append new_libs " $deplib" ;;
75588760 esac
75598761 ;;
7560 *) new_libs="$new_libs $deplib" ;;
8762 *) func_append new_libs " $deplib" ;;
75618763 esac
75628764 done
75638765 compile_deplibs="$new_libs"
75648766
75658767
7566 compile_command="$compile_command $compile_deplibs"
7567 finalize_command="$finalize_command $finalize_deplibs"
8768 func_append compile_command " $compile_deplibs"
8769 func_append finalize_command " $finalize_deplibs"
75688770
75698771 if test -n "$rpath$xrpath"; then
75708772 # If the user specified any rpath flags, then add them.
75728774 # This is the magic to use -rpath.
75738775 case "$finalize_rpath " in
75748776 *" $libdir "*) ;;
7575 *) finalize_rpath="$finalize_rpath $libdir" ;;
8777 *) func_append finalize_rpath " $libdir" ;;
75768778 esac
75778779 done
75788780 fi
75918793 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
75928794 ;;
75938795 *)
7594 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8796 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
75958797 ;;
75968798 esac
75978799 fi
75988800 else
75998801 eval flag=\"$hardcode_libdir_flag_spec\"
7600 rpath="$rpath $flag"
8802 func_append rpath " $flag"
76018803 fi
76028804 elif test -n "$runpath_var"; then
76038805 case "$perm_rpath " in
76048806 *" $libdir "*) ;;
7605 *) perm_rpath="$perm_rpath $libdir" ;;
8807 *) func_append perm_rpath " $libdir" ;;
76068808 esac
76078809 fi
76088810 case $host in
76118813 case :$dllsearchpath: in
76128814 *":$libdir:"*) ;;
76138815 ::) dllsearchpath=$libdir;;
7614 *) dllsearchpath="$dllsearchpath:$libdir";;
8816 *) func_append dllsearchpath ":$libdir";;
76158817 esac
76168818 case :$dllsearchpath: in
76178819 *":$testbindir:"*) ;;
76188820 ::) dllsearchpath=$testbindir;;
7619 *) dllsearchpath="$dllsearchpath:$testbindir";;
8821 *) func_append dllsearchpath ":$testbindir";;
76208822 esac
76218823 ;;
76228824 esac
76428844 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
76438845 ;;
76448846 *)
7645 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8847 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
76468848 ;;
76478849 esac
76488850 fi
76498851 else
76508852 eval flag=\"$hardcode_libdir_flag_spec\"
7651 rpath="$rpath $flag"
8853 func_append rpath " $flag"
76528854 fi
76538855 elif test -n "$runpath_var"; then
76548856 case "$finalize_perm_rpath " in
76558857 *" $libdir "*) ;;
7656 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8858 *) func_append finalize_perm_rpath " $libdir" ;;
76578859 esac
76588860 fi
76598861 done
76678869
76688870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
76698871 # Transform all the library objects into standard objects.
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8872 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8873 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
76728874 fi
76738875
76748876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
76808882
76818883 wrappers_required=yes
76828884 case $host in
8885 *cegcc* | *mingw32ce*)
8886 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
8888 ;;
76838889 *cygwin* | *mingw* )
76848890 if test "$build_libtool_libs" != yes; then
76858891 wrappers_required=no
76868892 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
76918893 ;;
76928894 *)
76938895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
76978899 esac
76988900 if test "$wrappers_required" = no; then
76998901 # Replace the output file specification.
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8902 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77018903 link_command="$compile_command$compile_rpath"
77028904
77038905 # We have no uninstalled library dependencies, so finalize right now.
77048906 exit_status=0
77058907 func_show_eval "$link_command" 'exit_status=$?'
8908
8909 if test -n "$postlink_cmds"; then
8910 func_to_tool_file "$output"
8911 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8912 func_execute_cmds "$postlink_cmds" 'exit $?'
8913 fi
77068914
77078915 # Delete the generated files.
77088916 if test -f "$output_objdir/${outputname}S.${objext}"; then
77268934 # We should set the runpath_var.
77278935 rpath=
77288936 for dir in $perm_rpath; do
7729 rpath="$rpath$dir:"
8937 func_append rpath "$dir:"
77308938 done
77318939 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
77328940 fi
77348942 # We should set the runpath_var.
77358943 rpath=
77368944 for dir in $finalize_perm_rpath; do
7737 rpath="$rpath$dir:"
8945 func_append rpath "$dir:"
77388946 done
77398947 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
77408948 fi
77448952 # We don't need to create a wrapper script.
77458953 link_command="$compile_var$compile_command$compile_rpath"
77468954 # Replace the output file specification.
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8955 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77488956 # Delete the old output file.
77498957 $opt_dry_run || $RM $output
77508958 # Link the executable and exit
77518959 func_show_eval "$link_command" 'exit $?'
8960
8961 if test -n "$postlink_cmds"; then
8962 func_to_tool_file "$output"
8963 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8964 func_execute_cmds "$postlink_cmds" 'exit $?'
8965 fi
8966
77528967 exit $EXIT_SUCCESS
77538968 fi
77548969
77638978 if test "$fast_install" != no; then
77648979 link_command="$finalize_var$compile_command$finalize_rpath"
77658980 if test "$fast_install" = yes; then
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
77678982 else
77688983 # fast_install is set to needless
77698984 relink_command=
77758990 fi
77768991
77778992 # Replace the output file specification.
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8993 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
77798994
77808995 # Delete the old output files.
77818996 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
77828997
77838998 func_show_eval "$link_command" 'exit $?'
8999
9000 if test -n "$postlink_cmds"; then
9001 func_to_tool_file "$output_objdir/$outputname"
9002 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
9003 func_execute_cmds "$postlink_cmds" 'exit $?'
9004 fi
77849005
77859006 # Now create the wrapper script.
77869007 func_verbose "creating $output"
77999020 fi
78009021 done
78019022 relink_command="(cd `pwd`; $relink_command)"
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7803 fi
7804
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7807 case $progpath in
7808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7810 esac
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7812 else
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
9023 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
78149024 fi
78159025
78169026 # Only actually do things if not in dry run mode.
78909100 else
78919101 oldobjs="$old_deplibs $non_pic_objects"
78929102 if test "$preload" = yes && test -f "$symfileobj"; then
7893 oldobjs="$oldobjs $symfileobj"
9103 func_append oldobjs " $symfileobj"
78949104 fi
78959105 fi
78969106 addlibs="$old_convenience"
78989108
78999109 if test -n "$addlibs"; then
79009110 gentop="$output_objdir/${outputname}x"
7901 generated="$generated $gentop"
9111 func_append generated " $gentop"
79029112
79039113 func_extract_archives $gentop $addlibs
7904 oldobjs="$oldobjs $func_extract_archives_result"
9114 func_append oldobjs " $func_extract_archives_result"
79059115 fi
79069116
79079117 # Do each command in the archive commands.
79129122 # Add any objects from preloaded convenience libraries
79139123 if test -n "$dlprefiles"; then
79149124 gentop="$output_objdir/${outputname}x"
7915 generated="$generated $gentop"
9125 func_append generated " $gentop"
79169126
79179127 func_extract_archives $gentop $dlprefiles
7918 oldobjs="$oldobjs $func_extract_archives_result"
9128 func_append oldobjs " $func_extract_archives_result"
79199129 fi
79209130
79219131 # POSIX demands no paths to be encoded in archives. We have
79319141 done | sort | sort -uc >/dev/null 2>&1); then
79329142 :
79339143 else
7934 $ECHO "copying selected object files to avoid basename conflicts..."
9144 echo "copying selected object files to avoid basename conflicts..."
79359145 gentop="$output_objdir/${outputname}x"
7936 generated="$generated $gentop"
9146 func_append generated " $gentop"
79379147 func_mkdir_p "$gentop"
79389148 save_oldobjs=$oldobjs
79399149 oldobjs=
79579167 esac
79589168 done
79599169 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7960 oldobjs="$oldobjs $gentop/$newobj"
9170 func_append oldobjs " $gentop/$newobj"
79619171 ;;
7962 *) oldobjs="$oldobjs $obj" ;;
9172 *) func_append oldobjs " $obj" ;;
79639173 esac
79649174 done
79659175 fi
9176 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9177 tool_oldlib=$func_to_tool_file_result
79669178 eval cmds=\"$old_archive_cmds\"
79679179
79689180 func_len " $cmds"
79699181 len=$func_len_result
79709182 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9183 cmds=$old_archive_cmds
9184 elif test -n "$archiver_list_spec"; then
9185 func_verbose "using command file archive linking..."
9186 for obj in $oldobjs
9187 do
9188 func_to_tool_file "$obj"
9189 $ECHO "$func_to_tool_file_result"
9190 done > $output_objdir/$libname.libcmd
9191 func_to_tool_file "$output_objdir/$libname.libcmd"
9192 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
79719193 cmds=$old_archive_cmds
79729194 else
79739195 # the command line is too long to link in one step, link in parts
80429264 done
80439265 # Quote the link command for shipping.
80449266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9267 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
80469268 if test "$hardcode_automatic" = yes ; then
80479269 relink_command=
80489270 fi
80629284 *.la)
80639285 func_basename "$deplib"
80649286 name="$func_basename_result"
8065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9287 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
80669289 test -z "$libdir" && \
80679290 func_fatal_error "\`$deplib' is not a valid libtool archive"
8068 newdependency_libs="$newdependency_libs $libdir/$name"
9291 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
80699292 ;;
8070 *) newdependency_libs="$newdependency_libs $deplib" ;;
9293 -L*)
9294 func_stripname -L '' "$deplib"
9295 func_replace_sysroot "$func_stripname_result"
9296 func_append newdependency_libs " -L$func_replace_sysroot_result"
9297 ;;
9298 -R*)
9299 func_stripname -R '' "$deplib"
9300 func_replace_sysroot "$func_stripname_result"
9301 func_append newdependency_libs " -R$func_replace_sysroot_result"
9302 ;;
9303 *) func_append newdependency_libs " $deplib" ;;
80719304 esac
80729305 done
80739306 dependency_libs="$newdependency_libs"
80819314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
80829315 test -z "$libdir" && \
80839316 func_fatal_error "\`$lib' is not a valid libtool archive"
8084 newdlfiles="$newdlfiles $libdir/$name"
9317 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
80859318 ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
9319 *) func_append newdlfiles " $lib" ;;
80879320 esac
80889321 done
80899322 dlfiles="$newdlfiles"
81009333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
81019334 test -z "$libdir" && \
81029335 func_fatal_error "\`$lib' is not a valid libtool archive"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
9336 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
81049337 ;;
81059338 esac
81069339 done
81129345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81139346 *) abs=`pwd`"/$lib" ;;
81149347 esac
8115 newdlfiles="$newdlfiles $abs"
9348 func_append newdlfiles " $abs"
81169349 done
81179350 dlfiles="$newdlfiles"
81189351 newdlprefiles=
81219354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81229355 *) abs=`pwd`"/$lib" ;;
81239356 esac
8124 newdlprefiles="$newdlprefiles $abs"
9357 func_append newdlprefiles " $abs"
81259358 done
81269359 dlprefiles="$newdlprefiles"
81279360 fi
81289361 $RM $output
81299362 # place dlname in correct position for cygwin
9363 # In fact, it would be nice if we could use this code for all target
9364 # systems that can't hard-code library paths into their executables
9365 # and that have no shared library path variable independent of PATH,
9366 # but it turns out we can't easily determine that from inspecting
9367 # libtool variables, so we have to hard-code the OSs to which it
9368 # applies here; at the moment, that means platforms that use the PE
9369 # object format with DLL files. See the long comment at the top of
9370 # tests/bindir.at for full details.
81309371 tdlname=$dlname
81319372 case $host,$output,$installed,$module,$dlname in
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
9373 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9374 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
9377 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
9379 else
9380 # Otherwise fall back on heuristic.
9381 tdlname=../bin/$dlname
9382 fi
9383 ;;
81339384 esac
81349385 $ECHO > $output "\
81359386 # $outputname - a libtool library file
81889439 exit $EXIT_SUCCESS
81899440 }
81909441
8191 { test "$mode" = link || test "$mode" = relink; } &&
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
81929443 func_mode_link ${1+"$@"}
81939444
81949445
82089459 for arg
82099460 do
82109461 case $arg in
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
8213 *) files="$files $arg" ;;
9462 -f) func_append RM " $arg"; rmforce=yes ;;
9463 -*) func_append RM " $arg" ;;
9464 *) func_append files " $arg" ;;
82149465 esac
82159466 done
82169467
82199470
82209471 rmdirs=
82219472
8222 origobjdir="$objdir"
82239473 for file in $files; do
82249474 func_dirname "$file" "" "."
82259475 dir="$func_dirname_result"
82269476 if test "X$dir" = X.; then
8227 objdir="$origobjdir"
9477 odir="$objdir"
82289478 else
8229 objdir="$dir/$origobjdir"
9479 odir="$dir/$objdir"
82309480 fi
82319481 func_basename "$file"
82329482 name="$func_basename_result"
8233 test "$mode" = uninstall && objdir="$dir"
8234
8235 # Remember objdir for removal later, being careful to avoid duplicates
8236 if test "$mode" = clean; then
9483 test "$opt_mode" = uninstall && odir="$dir"
9484
9485 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
82379487 case " $rmdirs " in
8238 *" $objdir "*) ;;
8239 *) rmdirs="$rmdirs $objdir" ;;
9488 *" $odir "*) ;;
9489 *) func_append rmdirs " $odir" ;;
82409490 esac
82419491 fi
82429492
82629512
82639513 # Delete the libtool libraries and symlinks.
82649514 for n in $library_names; do
8265 rmfiles="$rmfiles $objdir/$n"
9515 func_append rmfiles " $odir/$n"
82669516 done
8267 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8268
8269 case "$mode" in
9517 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9518
9519 case "$opt_mode" in
82709520 clean)
8271 case " $library_names " in
8272 # " " in the beginning catches empty $dlname
9521 case " $library_names " in
82739522 *" $dlname "*) ;;
8274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9523 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
82759524 esac
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9525 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
82779526 ;;
82789527 uninstall)
82799528 if test -n "$library_names"; then
83019550 # Add PIC object to the list of files to remove.
83029551 if test -n "$pic_object" &&
83039552 test "$pic_object" != none; then
8304 rmfiles="$rmfiles $dir/$pic_object"
9553 func_append rmfiles " $dir/$pic_object"
83059554 fi
83069555
83079556 # Add non-PIC object to the list of files to remove.
83089557 if test -n "$non_pic_object" &&
83099558 test "$non_pic_object" != none; then
8310 rmfiles="$rmfiles $dir/$non_pic_object"
9559 func_append rmfiles " $dir/$non_pic_object"
83119560 fi
83129561 fi
83139562 ;;
83149563
83159564 *)
8316 if test "$mode" = clean ; then
9565 if test "$opt_mode" = clean ; then
83179566 noexename=$name
83189567 case $file in
83199568 *.exe)
83239572 noexename=$func_stripname_result
83249573 # $file with .exe has already been added to rmfiles,
83259574 # add $file without .exe
8326 rmfiles="$rmfiles $file"
9575 func_append rmfiles " $file"
83279576 ;;
83289577 esac
83299578 # Do a test to see if this is a libtool program.
83329581 func_ltwrapper_scriptname "$file"
83339582 relink_command=
83349583 func_source $func_ltwrapper_scriptname_result
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9584 func_append rmfiles " $func_ltwrapper_scriptname_result"
83369585 else
83379586 relink_command=
83389587 func_source $dir/$noexename
83409589
83419590 # note $name still contains .exe if it was in $file originally
83429591 # as does the version of $file that was added into $rmfiles
8343 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
83449593 if test "$fast_install" = yes && test -n "$relink_command"; then
8345 rmfiles="$rmfiles $objdir/lt-$name"
9594 func_append rmfiles " $odir/lt-$name"
83469595 fi
83479596 if test "X$noexename" != "X$name" ; then
8348 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9597 func_append rmfiles " $odir/lt-${noexename}.c"
83499598 fi
83509599 fi
83519600 fi
83539602 esac
83549603 func_show_eval "$RM $rmfiles" 'exit_status=1'
83559604 done
8356 objdir="$origobjdir"
83579605
83589606 # Try to remove the ${objdir}s in the directories where we deleted files
83599607 for dir in $rmdirs; do
83659613 exit $exit_status
83669614 }
83679615
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
83699617 func_mode_uninstall ${1+"$@"}
83709618
8371 test -z "$mode" && {
9619 test -z "$opt_mode" && {
83729620 help="$generic_help"
83739621 func_fatal_help "you must specify a MODE"
83749622 }
83759623
83769624 test -z "$exec_cmd" && \
8377 func_fatal_help "invalid operation mode \`$mode'"
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
83789626
83799627 if test -n "$exec_cmd"; then
83809628 eval exec "$exec_cmd"
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008 Free Software Foundation, Inc.
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
45 # Written by Gordon Matzigkeit, 1996
56 #
67 # This file is free software; the Free Software Foundation gives
910
1011 m4_define([_LT_COPYING], [dnl
1112 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12 # 2006, 2007, 2008 Free Software Foundation, Inc.
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
1315 # Written by Gordon Matzigkeit, 1996
1416 #
1517 # This file is part of GNU Libtool.
3638 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3739 ])
3840
39 # serial 56 LT_INIT
41 # serial 57 LT_INIT
4042
4143
4244 # LT_PREREQ(VERSION)
6567 # ------------------
6668 AC_DEFUN([LT_INIT],
6769 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
70 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
6871 AC_BEFORE([$0], [LT_LANG])dnl
6972 AC_BEFORE([$0], [LT_OUTPUT])dnl
7073 AC_BEFORE([$0], [LTDL_INIT])dnl
8083 AC_REQUIRE([LTVERSION_VERSION])dnl
8184 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
8285 m4_require([_LT_PROG_LTMAIN])dnl
86
87 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
8388
8489 dnl Parse OPTIONS
8590 _LT_SET_OPTIONS([$0], [$1])
117122 *) break;;
118123 esac
119124 done
120 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
121126 ])
122127
123128
137142 m4_defun([_LT_SETUP],
138143 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
139144 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
145 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
146 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
147
148 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
149 dnl
140150 _LT_DECL([], [host_alias], [0], [The host system])dnl
141151 _LT_DECL([], [host], [0])dnl
142152 _LT_DECL([], [host_os], [0])dnl
159169 dnl
160170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
161171 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
172 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
162173 m4_require([_LT_CMD_RELOAD])dnl
163174 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
175 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
164176 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
165177 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178 m4_require([_LT_WITH_SYSROOT])dnl
166179
167180 _LT_CONFIG_LIBTOOL_INIT([
168181 # See if we are running on zsh, and set the options which allow our
178191 _LT_CHECK_OBJDIR
179192
180193 m4_require([_LT_TAG_COMPILER])dnl
181 _LT_PROG_ECHO_BACKSLASH
182194
183195 case $host_os in
184196 aix3*)
192204 ;;
193205 esac
194206
195 # Sed substitution that helps us do robust quoting. It backslashifies
196 # metacharacters that are still active within double-quoted strings.
197 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
198
199 # Same as above, but do not quote variable references.
200 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
201
202 # Sed substitution to delay expansion of an escaped shell variable in a
203 # double_quote_subst'ed string.
204 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
205
206 # Sed substitution to delay expansion of an escaped single quote.
207 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
208
209 # Sed substitution to avoid accidental globbing in evaled expressions
210 no_glob_subst='s/\*/\\\*/g'
211
212207 # Global variables:
213208 ofile=libtool
214209 can_build_shared=yes
248243 _LT_CONFIG_COMMANDS
249244 ])# _LT_SETUP
250245
246
247 # _LT_PREPARE_SED_QUOTE_VARS
248 # --------------------------
249 # Define a few sed substitution that help us do robust quoting.
250 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
251 [# Backslashify metacharacters that are still active within
252 # double-quoted strings.
253 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
254
255 # Same as above, but do not quote variable references.
256 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
257
258 # Sed substitution to delay expansion of an escaped shell variable in a
259 # double_quote_subst'ed string.
260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
261
262 # Sed substitution to delay expansion of an escaped single quote.
263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
264
265 # Sed substitution to avoid accidental globbing in evaled expressions
266 no_glob_subst='s/\*/\\\*/g'
267 ])
251268
252269 # _LT_PROG_LTMAIN
253270 # ---------------
407424 # declaration there will have the same value as in `configure'. VARNAME
408425 # must have a single quote delimited value for this to work.
409426 m4_define([_LT_CONFIG_STATUS_DECLARE],
410 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
427 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
411428
412429
413430 # _LT_CONFIG_STATUS_DECLARATIONS
417434 # embedded single quotes properly. In configure, this macro expands
418435 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
419436 #
420 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
437 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
421438 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
422439 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
423440 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
516533 LTCFLAGS='$LTCFLAGS'
517534 compiler='$compiler_DEFAULT'
518535
536 # A function that is used when there is no print builtin or printf.
537 func_fallback_echo ()
538 {
539 eval 'cat <<_LTECHO_EOF
540 \$[]1
541 _LTECHO_EOF'
542 }
543
519544 # Quote evaled strings.
520545 for var in lt_decl_all_varnames([[ \
521546 ]], lt_decl_quote_varnames); do
522 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
523548 *[[\\\\\\\`\\"\\\$]]*)
524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
525550 ;;
526551 *)
527552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
532557 # Double-quote double-evaled strings.
533558 for var in lt_decl_all_varnames([[ \
534559 ]], lt_decl_dquote_varnames); do
535 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
536561 *[[\\\\\\\`\\"\\\$]]*)
537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
538563 ;;
539564 *)
540565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
542567 esac
543568 done
544569
545 # Fix-up fallback echo if it was mangled by the above quoting rules.
546 case \$lt_ECHO in
547 *'\\\[$]0 --fallback-echo"')dnl "
548 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
549 ;;
550 esac
551
552570 _LT_OUTPUT_LIBTOOL_INIT
553571 ])
554572
573 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
574 # ------------------------------------
575 # Generate a child script FILE with all initialization necessary to
576 # reuse the environment learned by the parent script, and make the
577 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
579 # macro, additional text can be appended to FILE to form the body of
580 # the child script. The macro ends with non-zero status if the
581 # file could not be fully written (such as if the disk is full).
582 m4_ifdef([AS_INIT_GENERATED],
583 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
584 [m4_defun([_LT_GENERATED_FILE_INIT],
585 [m4_require([AS_PREPARE])]dnl
586 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
587 [lt_write_fail=0
588 cat >$1 <<_ASEOF || lt_write_fail=1
589 #! $SHELL
590 # Generated by $as_me.
591 $2
592 SHELL=\${CONFIG_SHELL-$SHELL}
593 export SHELL
594 _ASEOF
595 cat >>$1 <<\_ASEOF || lt_write_fail=1
596 AS_SHELL_SANITIZE
597 _AS_PREPARE
598 exec AS_MESSAGE_FD>&1
599 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
601 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
555602
556603 # LT_OUTPUT
557604 # ---------
561608 AC_DEFUN([LT_OUTPUT],
562609 [: ${CONFIG_LT=./config.lt}
563610 AC_MSG_NOTICE([creating $CONFIG_LT])
564 cat >"$CONFIG_LT" <<_LTEOF
565 #! $SHELL
566 # Generated by $as_me.
567 # Run this file to recreate a libtool stub with the current configuration.
568
611 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
612 [# Run this file to recreate a libtool stub with the current configuration.])
613
614 cat >>"$CONFIG_LT" <<\_LTEOF
569615 lt_cl_silent=false
570 SHELL=\${CONFIG_SHELL-$SHELL}
571 _LTEOF
572
573 cat >>"$CONFIG_LT" <<\_LTEOF
574 AS_SHELL_SANITIZE
575 _AS_PREPARE
576
577 exec AS_MESSAGE_FD>&1
578616 exec AS_MESSAGE_LOG_FD>>config.log
579617 {
580618 echo
600638 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
601639 configured by $[0], generated by m4_PACKAGE_STRING.
602640
603 Copyright (C) 2008 Free Software Foundation, Inc.
641 Copyright (C) 2011 Free Software Foundation, Inc.
604642 This config.lt script is free software; the Free Software Foundation
605643 gives unlimited permision to copy, distribute and modify it."
606644
645683 # appending to config.log, which fails on DOS, as config.log is still kept
646684 # open by configure. Here we exec the FD to /dev/null, effectively closing
647685 # config.log, so it can be properly (re)opened and appended to by config.lt.
648 if test "$no_create" != yes; then
649 lt_cl_success=:
650 test "$silent" = yes &&
651 lt_config_lt_args="$lt_config_lt_args --quiet"
652 exec AS_MESSAGE_LOG_FD>/dev/null
653 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
654 exec AS_MESSAGE_LOG_FD>>config.log
655 $lt_cl_success || AS_EXIT(1)
656 fi
686 lt_cl_success=:
687 test "$silent" = yes &&
688 lt_config_lt_args="$lt_config_lt_args --quiet"
689 exec AS_MESSAGE_LOG_FD>/dev/null
690 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 $lt_cl_success || AS_EXIT(1)
657693 ])# LT_OUTPUT
658694
659695
716752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
717753 # text mode, it properly converts lines to CR/LF. This bash problem
718754 # is reportedly fixed, but why not run on old versions too?
719 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
720 || (rm -f "$cfgfile"; exit 1)
721
722 _LT_PROG_XSI_SHELLFNS
723
724 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
725 || (rm -f "$cfgfile"; exit 1)
726
727 mv -f "$cfgfile" "$ofile" ||
755 sed '$q' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759
760 mv -f "$cfgfile" "$ofile" ||
728761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
729762 chmod +x "$ofile"
730763 ],
769802 m4_case([$1],
770803 [C], [_LT_LANG(C)],
771804 [C++], [_LT_LANG(CXX)],
805 [Go], [_LT_LANG(GO)],
772806 [Java], [_LT_LANG(GCJ)],
773807 [Fortran 77], [_LT_LANG(F77)],
774808 [Fortran], [_LT_LANG(FC)],
788822 m4_define([_LT_LANG_]$1[_enabled], [])dnl
789823 _LT_LANG_$1_CONFIG($1)])dnl
790824 ])# _LT_LANG
825
826
827 m4_ifndef([AC_PROG_GO], [
828 ############################################################
829 # NOTE: This macro has been submitted for inclusion into #
830 # GNU Autoconf as AC_PROG_GO. When it is available in #
831 # a released version of Autoconf we should remove this #
832 # macro and use it instead. #
833 ############################################################
834 m4_defun([AC_PROG_GO],
835 [AC_LANG_PUSH(Go)dnl
836 AC_ARG_VAR([GOC], [Go compiler command])dnl
837 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
838 _AC_ARG_VAR_LDFLAGS()dnl
839 AC_CHECK_TOOL(GOC, gccgo)
840 if test -z "$GOC"; then
841 if test -n "$ac_tool_prefix"; then
842 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
843 fi
844 fi
845 if test -z "$GOC"; then
846 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
847 fi
848 ])#m4_defun
849 ])#m4_ifndef
791850
792851
793852 # _LT_LANG_DEFAULT_CONFIG
820879 m4_ifdef([LT_PROG_GCJ],
821880 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
822881
882 AC_PROVIDE_IFELSE([AC_PROG_GO],
883 [LT_LANG(GO)],
884 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
885
823886 AC_PROVIDE_IFELSE([LT_PROG_RC],
824887 [LT_LANG(RC)],
825888 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
830893 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
831894 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
832895 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
896 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
833897 dnl aclocal-1.4 backwards compatibility:
834898 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
835899 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
836900 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
837901 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
902 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
838903
839904
840905 # _LT_TAG_COMPILER
920985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
921986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
922987 _lt_result=$?
923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
988 # If there is a non-empty error log, and "single_module"
989 # appears in it, assume the flag caused a linker warning
990 if test -s conftest.err && $GREP single_module conftest.err; then
991 cat conftest.err >&AS_MESSAGE_LOG_FD
992 # Otherwise, if the output was created with a 0 exit code from
993 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
924995 lt_cv_apple_cc_single_mod=yes
925996 else
926997 cat conftest.err >&AS_MESSAGE_LOG_FD
928999 rm -rf libconftest.dylib*
9291000 rm -f conftest.*
9301001 fi])
1002
9311003 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9321004 [lt_cv_ld_exported_symbols_list],
9331005 [lt_cv_ld_exported_symbols_list=no
9381010 [lt_cv_ld_exported_symbols_list=yes],
9391011 [lt_cv_ld_exported_symbols_list=no])
9401012 LDFLAGS="$save_LDFLAGS"
1013 ])
1014
1015 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1016 [lt_cv_ld_force_load=no
1017 cat > conftest.c << _LT_EOF
1018 int forced_loaded() { return 2;}
1019 _LT_EOF
1020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1024 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1025 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1026 cat > conftest.c << _LT_EOF
1027 int main() { return 0;}
1028 _LT_EOF
1029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1031 _lt_result=$?
1032 if test -s conftest.err && $GREP force_load conftest.err; then
1033 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1035 lt_cv_ld_force_load=yes
1036 else
1037 cat conftest.err >&AS_MESSAGE_LOG_FD
1038 fi
1039 rm -f conftest.err libconftest.a conftest conftest.c
1040 rm -rf conftest.dSYM
9411041 ])
9421042 case $host_os in
9431043 rhapsody* | darwin1.[[012]])
9661066 else
9671067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9681068 fi
969 if test "$DSYMUTIL" != ":"; then
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9701070 _lt_dsymutil='~$DSYMUTIL $lib || :'
9711071 else
9721072 _lt_dsymutil=
9761076 ])
9771077
9781078
979 # _LT_DARWIN_LINKER_FEATURES
980 # --------------------------
1079 # _LT_DARWIN_LINKER_FEATURES([TAG])
1080 # ---------------------------------
9811081 # Checks for linker and compiler features on darwin
9821082 m4_defun([_LT_DARWIN_LINKER_FEATURES],
9831083 [
9861086 _LT_TAGVAR(hardcode_direct, $1)=no
9871087 _LT_TAGVAR(hardcode_automatic, $1)=yes
9881088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
989 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1091 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1092 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1093 else
1094 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1095 fi
9901096 _LT_TAGVAR(link_all_deplibs, $1)=yes
9911097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
9921098 case $cc_basename in
9941100 *) _lt_dar_can_shared=$GCC ;;
9951101 esac
9961102 if test "$_lt_dar_can_shared" = "yes"; then
997 output_verbose_link_cmd=echo
1103 output_verbose_link_cmd=func_echo_all
9981104 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9991105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10001106 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10101116 fi
10111117 ])
10121118
1013 # _LT_SYS_MODULE_PATH_AIX
1014 # -----------------------
1119 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1120 # ----------------------------------
10151121 # Links a minimal program and checks the executable
10161122 # for the system default hardcoded library path. In most cases,
10171123 # this is /usr/lib:/lib, but when the MPI compilers are used
10181124 # the location of the communication and MPI libs are included too.
10191125 # If we don't find anything, use the default library path according
10201126 # to the aix ld manual.
1127 # Store the results from the different compilers for each TAGNAME.
1128 # Allow to override them for all tags through lt_cv_aix_libpath.
10211129 m4_defun([_LT_SYS_MODULE_PATH_AIX],
10221130 [m4_require([_LT_DECL_SED])dnl
1023 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1024 lt_aix_libpath_sed='
1025 /Import File Strings/,/^$/ {
1026 /^0/ {
1027 s/^0 *\(.*\)$/\1/
1028 p
1029 }
1030 }'
1031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1032 # Check for a 64-bit object if we didn't find anything.
1033 if test -z "$aix_libpath"; then
1034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1035 fi],[])
1036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1132 aix_libpath=$lt_cv_aix_libpath
1133 else
1134 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1135 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1136 lt_aix_libpath_sed='[
1137 /Import File Strings/,/^$/ {
1138 /^0/ {
1139 s/^0 *\([^ ]*\) *$/\1/
1140 p
1141 }
1142 }]'
1143 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1144 # Check for a 64-bit object if we didn't find anything.
1145 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1146 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1147 fi],[])
1148 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1150 fi
1151 ])
1152 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1153 fi
10371154 ])# _LT_SYS_MODULE_PATH_AIX
10381155
10391156
10401157 # _LT_SHELL_INIT(ARG)
10411158 # -------------------
10421159 m4_define([_LT_SHELL_INIT],
1043 [ifdef([AC_DIVERSION_NOTICE],
1044 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1045 [AC_DIVERT_PUSH(NOTICE)])
1046 $1
1047 AC_DIVERT_POP
1048 ])# _LT_SHELL_INIT
1160 [m4_divert_text([M4SH-INIT], [$1
1161 ])])# _LT_SHELL_INIT
1162
10491163
10501164
10511165 # _LT_PROG_ECHO_BACKSLASH
10521166 # -----------------------
1053 # Add some code to the start of the generated configure script which
1054 # will find an echo command which doesn't interpret backslashes.
1167 # Find how we can fake an echo command that does not interpret backslash.
1168 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
10551171 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1056 [_LT_SHELL_INIT([
1057 # Check that we are running under the correct shell.
1058 SHELL=${CONFIG_SHELL-/bin/sh}
1059
1060 case X$lt_ECHO in
1061 X*--fallback-echo)
1062 # Remove one level of quotation (which was required for Make).
1063 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1064 ;;
1172 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1175
1176 AC_MSG_CHECKING([how to print strings])
1177 # Test print first, because it will be a builtin if present.
1178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1180 ECHO='print -r --'
1181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1182 ECHO='printf %s\n'
1183 else
1184 # Use this function as a fallback that always works.
1185 func_fallback_echo ()
1186 {
1187 eval 'cat <<_LTECHO_EOF
1188 $[]1
1189 _LTECHO_EOF'
1190 }
1191 ECHO='func_fallback_echo'
1192 fi
1193
1194 # func_echo_all arg...
1195 # Invoke $ECHO with all args, space-separated.
1196 func_echo_all ()
1197 {
1198 $ECHO "$*"
1199 }
1200
1201 case "$ECHO" in
1202 printf*) AC_MSG_RESULT([printf]) ;;
1203 print*) AC_MSG_RESULT([print -r]) ;;
1204 *) AC_MSG_RESULT([cat]) ;;
10651205 esac
10661206
1067 ECHO=${lt_ECHO-echo}
1068 if test "X[$]1" = X--no-reexec; then
1069 # Discard the --no-reexec flag, and continue.
1070 shift
1071 elif test "X[$]1" = X--fallback-echo; then
1072 # Avoid inline document here, it may be left over
1073 :
1074 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1075 # Yippee, $ECHO works!
1076 :
1077 else
1078 # Restart under the correct shell.
1079 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1080 fi
1081
1082 if test "X[$]1" = X--fallback-echo; then
1083 # used as fallback echo
1084 shift
1085 cat <<_LT_EOF
1086 [$]*
1087 _LT_EOF
1088 exit 0
1089 fi
1090
1091 # The HP-UX ksh and POSIX shell print the target directory to stdout
1092 # if CDPATH is set.
1093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1094
1095 if test -z "$lt_ECHO"; then
1096 if test "X${echo_test_string+set}" != Xset; then
1097 # find a string as large as possible, as long as the shell can cope with it
1098 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1099 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1100 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1101 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1102 then
1103 break
1104 fi
1105 done
1106 fi
1107
1108 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1109 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1110 test "X$echo_testing_string" = "X$echo_test_string"; then
1111 :
1112 else
1113 # The Solaris, AIX, and Digital Unix default echo programs unquote
1114 # backslashes. This makes it impossible to quote backslashes using
1115 # echo "$something" | sed 's/\\/\\\\/g'
1116 #
1117 # So, first we look for a working echo in the user's PATH.
1118
1119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1120 for dir in $PATH /usr/ucb; do
1121 IFS="$lt_save_ifs"
1122 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1123 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 ECHO="$dir/echo"
1127 break
1128 fi
1129 done
1130 IFS="$lt_save_ifs"
1131
1132 if test "X$ECHO" = Xecho; then
1133 # We didn't find a better echo, so look for alternatives.
1134 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1135 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1136 test "X$echo_testing_string" = "X$echo_test_string"; then
1137 # This shell has a builtin print -r that does the trick.
1138 ECHO='print -r'
1139 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1140 test "X$CONFIG_SHELL" != X/bin/ksh; then
1141 # If we have ksh, try running configure again with it.
1142 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1143 export ORIGINAL_CONFIG_SHELL
1144 CONFIG_SHELL=/bin/ksh
1145 export CONFIG_SHELL
1146 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1147 else
1148 # Try using printf.
1149 ECHO='printf %s\n'
1150 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1151 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1152 test "X$echo_testing_string" = "X$echo_test_string"; then
1153 # Cool, printf works
1154 :
1155 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1156 test "X$echo_testing_string" = 'X\t' &&
1157 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1158 test "X$echo_testing_string" = "X$echo_test_string"; then
1159 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1160 export CONFIG_SHELL
1161 SHELL="$CONFIG_SHELL"
1162 export SHELL
1163 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1164 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1165 test "X$echo_testing_string" = 'X\t' &&
1166 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1169 else
1170 # maybe with a smaller string...
1171 prev=:
1172
1173 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1174 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1175 then
1176 break
1177 fi
1178 prev="$cmd"
1179 done
1180
1181 if test "$prev" != 'sed 50q "[$]0"'; then
1182 echo_test_string=`eval $prev`
1183 export echo_test_string
1184 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1185 else
1186 # Oops. We lost completely, so just stick with echo.
1187 ECHO=echo
1188 fi
1189 fi
1190 fi
1191 fi
1192 fi
1193 fi
1194
1195 # Copy echo and quote the copy suitably for passing to libtool from
1196 # the Makefile, instead of quoting the original, which is used later.
1197 lt_ECHO=$ECHO
1198 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1199 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1200 fi
1201
1202 AC_SUBST(lt_ECHO)
1203 ])
1207 m4_ifdef([_AS_DETECT_SUGGESTED],
1208 [_AS_DETECT_SUGGESTED([
1209 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1213 PATH=/empty FPATH=/empty; export PATH FPATH
1214 test "X`printf %s $ECHO`" = "X$ECHO" \
1215 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1216
12041217 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1205 _LT_DECL([], [ECHO], [1],
1206 [An echo program that does not interpret backslashes])
1218 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
12071219 ])# _LT_PROG_ECHO_BACKSLASH
12081220
1221
1222 # _LT_WITH_SYSROOT
1223 # ----------------
1224 AC_DEFUN([_LT_WITH_SYSROOT],
1225 [AC_MSG_CHECKING([for sysroot])
1226 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1229 [], [with_sysroot=no])
1230
1231 dnl lt_sysroot will always be passed unquoted. We quote it here
1232 dnl in case the user passed a directory name.
1233 lt_sysroot=
1234 case ${with_sysroot} in #(
1235 yes)
1236 if test "$GCC" = yes; then
1237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1238 fi
1239 ;; #(
1240 /*)
1241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1242 ;; #(
1243 no|'')
1244 ;; #(
1245 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1247 AC_MSG_ERROR([The sysroot must be an absolute path.])
1248 ;;
1249 esac
1250
1251 AC_MSG_RESULT([${lt_sysroot:-no}])
1252 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
12091254
12101255 # _LT_ENABLE_LOCK
12111256 # ---------------
12351280 ;;
12361281 *-*-irix6*)
12371282 # Find out which ABI we are using.
1238 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12391284 if AC_TRY_EVAL(ac_compile); then
12401285 if test "$lt_cv_prog_gnu_ld" = yes; then
12411286 case `/usr/bin/file conftest.$ac_objext` in
13281373 CFLAGS="$SAVE_CFLAGS"
13291374 fi
13301375 ;;
1331 sparc*-*solaris*)
1376 *-*solaris*)
13321377 # Find out which ABI we are using.
13331378 echo 'int i;' > conftest.$ac_ext
13341379 if AC_TRY_EVAL(ac_compile); then
13351380 case `/usr/bin/file conftest.o` in
13361381 *64-bit*)
13371382 case $lt_cv_prog_gnu_ld in
1338 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1383 yes*)
1384 case $host in
1385 i?86-*-solaris*)
1386 LD="${LD-ld} -m elf_x86_64"
1387 ;;
1388 sparc*-*-solaris*)
1389 LD="${LD-ld} -m elf64_sparc"
1390 ;;
1391 esac
1392 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1393 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1394 LD="${LD-ld}_sol2"
1395 fi
1396 ;;
13391397 *)
13401398 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13411399 LD="${LD-ld} -64"
13531411 ])# _LT_ENABLE_LOCK
13541412
13551413
1414 # _LT_PROG_AR
1415 # -----------
1416 m4_defun([_LT_PROG_AR],
1417 [AC_CHECK_TOOLS(AR, [ar], false)
1418 : ${AR=ar}
1419 : ${AR_FLAGS=cru}
1420 _LT_DECL([], [AR], [1], [The archiver])
1421 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1422
1423 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1424 [lt_cv_ar_at_file=no
1425 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1426 [echo conftest.$ac_objext > conftest.lst
1427 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1428 AC_TRY_EVAL([lt_ar_try])
1429 if test "$ac_status" -eq 0; then
1430 # Ensure the archiver fails upon bogus file names.
1431 rm -f conftest.$ac_objext libconftest.a
1432 AC_TRY_EVAL([lt_ar_try])
1433 if test "$ac_status" -ne 0; then
1434 lt_cv_ar_at_file=@
1435 fi
1436 fi
1437 rm -f conftest.* libconftest.a
1438 ])
1439 ])
1440
1441 if test "x$lt_cv_ar_at_file" = xno; then
1442 archiver_list_spec=
1443 else
1444 archiver_list_spec=$lt_cv_ar_at_file
1445 fi
1446 _LT_DECL([], [archiver_list_spec], [1],
1447 [How to feed a file listing to the archiver])
1448 ])# _LT_PROG_AR
1449
1450
13561451 # _LT_CMD_OLD_ARCHIVE
13571452 # -------------------
13581453 m4_defun([_LT_CMD_OLD_ARCHIVE],
1359 [AC_CHECK_TOOL(AR, ar, false)
1360 test -z "$AR" && AR=ar
1361 test -z "$AR_FLAGS" && AR_FLAGS=cru
1362 _LT_DECL([], [AR], [1], [The archiver])
1363 _LT_DECL([], [AR_FLAGS], [1])
1454 [_LT_PROG_AR
13641455
13651456 AC_CHECK_TOOL(STRIP, strip, :)
13661457 test -z "$STRIP" && STRIP=:
13791470 if test -n "$RANLIB"; then
13801471 case $host_os in
13811472 openbsd*)
1382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13831474 ;;
13841475 *)
1385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13861477 ;;
13871478 esac
1388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1479 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13891480 fi
1481
1482 case $host_os in
1483 darwin*)
1484 lock_old_archive_extraction=yes ;;
1485 *)
1486 lock_old_archive_extraction=no ;;
1487 esac
13901488 _LT_DECL([], [old_postinstall_cmds], [2])
13911489 _LT_DECL([], [old_postuninstall_cmds], [2])
13921490 _LT_TAGDECL([], [old_archive_cmds], [2],
13931491 [Commands used to build an old-style archive])
1492 _LT_DECL([], [lock_old_archive_extraction], [0],
1493 [Whether to use a lock for old archive extraction])
13941494 ])# _LT_CMD_OLD_ARCHIVE
13951495
13961496
14151515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161516 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14171517 -e 's:$: $lt_compiler_flag:'`
1418 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14191519 (eval "$lt_compile" 2>conftest.err)
14201520 ac_status=$?
14211521 cat conftest.err >&AS_MESSAGE_LOG_FD
1422 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1522 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14231523 if (exit $ac_status) && test -s "$ac_outfile"; then
14241524 # The compiler can only warn and ignore the option if not recognized
14251525 # So say no if there are warnings other than the usual output.
1426 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14271527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14291529 $2=yes
14631563 if test -s conftest.err; then
14641564 # Append any errors to the config.log.
14651565 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1466 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14671567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14681568 if diff conftest.exp conftest.er2 >/dev/null; then
14691569 $2=yes
15231623 # the test eventually succeeds (with a max line length of 256k).
15241624 # Instead, let's just punt: use the minimum linelength reported by
15251625 # all of the supported platforms: 8192 (on NT/2K/XP).
1626 lt_cv_sys_max_cmd_len=8192;
1627 ;;
1628
1629 mint*)
1630 # On MiNT this can take a long time and run out of memory.
15261631 lt_cv_sys_max_cmd_len=8192;
15271632 ;;
15281633
15491654 interix*)
15501655 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15511656 lt_cv_sys_max_cmd_len=196608
1657 ;;
1658
1659 os2*)
1660 # The test takes a long time on OS/2.
1661 lt_cv_sys_max_cmd_len=8192
15521662 ;;
15531663
15541664 osf*)
15901700 # If test is not a shell built-in, we'll probably end up computing a
15911701 # maximum length that is only half of the actual maximum length, but
15921702 # we can't tell.
1593 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1594 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1703 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1704 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15951705 test $i != 17 # 1/2 MB should be enough
15961706 do
15971707 i=`expr $i + 1`
16421752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16431753 lt_status=$lt_dlunknown
16441754 cat > conftest.$ac_ext <<_LT_EOF
1645 [#line __oline__ "configure"
1755 [#line $LINENO "configure"
16461756 #include "confdefs.h"
16471757
16481758 #if HAVE_DLFCN_H
16831793 # endif
16841794 #endif
16851795
1686 void fnord() { int i=42;}
1796 /* When -fvisbility=hidden is used, assume the code has been annotated
1797 correspondingly for the symbols needed. */
1798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1799 int fnord () __attribute__((visibility("default")));
1800 #endif
1801
1802 int fnord () { return 42; }
16871803 int main ()
16881804 {
16891805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16921808 if (self)
16931809 {
16941810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1811 else
1812 {
1813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1814 else puts (dlerror ());
1815 }
16961816 /* dlclose (self); */
16971817 }
16981818 else
18681988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18691989 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18701990 -e 's:$: $lt_compiler_flag:'`
1871 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18721992 (eval "$lt_compile" 2>out/conftest.err)
18731993 ac_status=$?
18741994 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1875 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18761996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18771997 then
18781998 # The compiler can only warn and ignore the option if not recognized
18791999 # So say no if there are warnings
1880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18812001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18822002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18832003 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
20362156 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20372157 m4_require([_LT_DECL_OBJDUMP])dnl
20382158 m4_require([_LT_DECL_SED])dnl
2159 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
20392160 AC_MSG_CHECKING([dynamic linker characteristics])
20402161 m4_if([$1],
20412162 [], [
20442165 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20452166 *) lt_awk_arg="/^libraries:/" ;;
20462167 esac
2047 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2048 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2168 case $host_os in
2169 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2170 *) lt_sed_strip_eq="s,=/,/,g" ;;
2171 esac
2172 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2173 case $lt_search_path_spec in
2174 *\;*)
20492175 # if the path contains ";" then we assume it to be the separator
20502176 # otherwise default to the standard path separator (i.e. ":") - it is
20512177 # assumed that no part of a normal pathname contains ";" but that should
20522178 # okay in the real world where ";" in dirpaths is itself problematic.
2053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2054 else
2055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2056 fi
2179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2180 ;;
2181 *)
2182 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2183 ;;
2184 esac
20572185 # Ok, now we have the path, separated by spaces, we can step through it
20582186 # and add multilib dir if necessary.
20592187 lt_tmp_lt_search_path_spec=
20662194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20672195 fi
20682196 done
2069 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2197 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20702198 BEGIN {RS=" "; FS="/|\n";} {
20712199 lt_foo="";
20722200 lt_count=0;
20862214 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
20872215 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
20882216 }'`
2089 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2217 # AWK program above erroneously prepends '/' to C:/dos/paths
2218 # for these hosts.
2219 case $host_os in
2220 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2221 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2222 esac
2223 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20902224 else
20912225 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20922226 fi])
21122246
21132247 case $host_os in
21142248 aix3*)
2115 version_type=linux
2249 version_type=linux # correct to gnu/linux during the next big refactor
21162250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21172251 shlibpath_var=LIBPATH
21182252
21212255 ;;
21222256
21232257 aix[[4-9]]*)
2124 version_type=linux
2258 version_type=linux # correct to gnu/linux during the next big refactor
21252259 need_lib_prefix=no
21262260 need_version=no
21272261 hardcode_into_libs=yes
21742308 m68k)
21752309 library_names_spec='$libname.ixlibrary $libname.a'
21762310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2177 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'
2311 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
21782312 ;;
21792313 esac
21802314 ;;
21862320 ;;
21872321
21882322 bsdi[[45]]*)
2189 version_type=linux
2323 version_type=linux # correct to gnu/linux during the next big refactor
21902324 need_version=no
21912325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21922326 soname_spec='${libname}${release}${shared_ext}$major'
22052339 need_version=no
22062340 need_lib_prefix=no
22072341
2208 case $GCC,$host_os in
2209 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2342 case $GCC,$cc_basename in
2343 yes,*)
2344 # gcc
22102345 library_names_spec='$libname.dll.a'
22112346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22122347 postinstall_cmds='base_file=`basename \${file}`~
22272362 cygwin*)
22282363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22292364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2365 m4_if([$1], [],[
2366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
22312367 ;;
22322368 mingw* | cegcc*)
22332369 # MinGW DLLs use traditional 'lib' prefix
22342370 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2235 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2236 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2237 # It is most probably a Windows format PATH printed by
2238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2239 # path with ; separators, and with drive letters. We can handle the
2240 # drive letters (cygwin fileutils understands them), so leave them,
2241 # especially as we might pass files found there to a mingw objdump,
2242 # which wouldn't understand a cygwinified path. Ahh.
2243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2244 else
2245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2246 fi
22472371 ;;
22482372 pw32*)
22492373 # pw32 DLLs use 'pw' prefix rather than 'lib'
22502374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22512375 ;;
22522376 esac
2377 dynamic_linker='Win32 ld.exe'
22532378 ;;
22542379
2380 *,cl*)
2381 # Native MSVC
2382 libname_spec='$name'
2383 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2384 library_names_spec='${libname}.dll.lib'
2385
2386 case $build_os in
2387 mingw*)
2388 sys_lib_search_path_spec=
2389 lt_save_ifs=$IFS
2390 IFS=';'
2391 for lt_path in $LIB
2392 do
2393 IFS=$lt_save_ifs
2394 # Let DOS variable expansion print the short 8.3 style file name.
2395 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2396 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2397 done
2398 IFS=$lt_save_ifs
2399 # Convert to MSYS style.
2400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2401 ;;
2402 cygwin*)
2403 # Convert to unix form, then to dos form, then back to unix form
2404 # but this time dos style (no spaces!) so that the unix form looks
2405 # like /cygdrive/c/PROGRA~1:/cygdr...
2406 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2407 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2408 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2409 ;;
2410 *)
2411 sys_lib_search_path_spec="$LIB"
2412 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2413 # It is most probably a Windows format PATH.
2414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2415 else
2416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2417 fi
2418 # FIXME: find the short name or the path components, as spaces are
2419 # common. (e.g. "Program Files" -> "PROGRA~1")
2420 ;;
2421 esac
2422
2423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2424 postinstall_cmds='base_file=`basename \${file}`~
2425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2426 dldir=$destdir/`dirname \$dlpath`~
2427 test -d \$dldir || mkdir -p \$dldir~
2428 $install_prog $dir/$dlname \$dldir/$dlname'
2429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2430 dlpath=$dir/\$dldll~
2431 $RM \$dlpath'
2432 shlibpath_overrides_runpath=yes
2433 dynamic_linker='Win32 link.exe'
2434 ;;
2435
22552436 *)
2437 # Assume MSVC wrapper
22562438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2439 dynamic_linker='Win32 ld.exe'
22572440 ;;
22582441 esac
2259 dynamic_linker='Win32 ld.exe'
22602442 # FIXME: first we should search . and the directory the executable is in
22612443 shlibpath_var=PATH
22622444 ;;
22772459 ;;
22782460
22792461 dgux*)
2280 version_type=linux
2462 version_type=linux # correct to gnu/linux during the next big refactor
22812463 need_lib_prefix=no
22822464 need_version=no
22832465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22842466 soname_spec='${libname}${release}${shared_ext}$major'
22852467 shlibpath_var=LD_LIBRARY_PATH
2286 ;;
2287
2288 freebsd1*)
2289 dynamic_linker=no
22902468 ;;
22912469
22922470 freebsd* | dragonfly*)
22962474 objformat=`/usr/bin/objformat`
22972475 else
22982476 case $host_os in
2299 freebsd[[123]]*) objformat=aout ;;
2477 freebsd[[23]].*) objformat=aout ;;
23002478 *) objformat=elf ;;
23012479 esac
23022480 fi
23142492 esac
23152493 shlibpath_var=LD_LIBRARY_PATH
23162494 case $host_os in
2317 freebsd2*)
2495 freebsd2.*)
23182496 shlibpath_overrides_runpath=yes
23192497 ;;
23202498 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
23342512 ;;
23352513
23362514 gnu*)
2337 version_type=linux
2515 version_type=linux # correct to gnu/linux during the next big refactor
23382516 need_lib_prefix=no
23392517 need_version=no
23402518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23412519 soname_spec='${libname}${release}${shared_ext}$major'
23422520 shlibpath_var=LD_LIBRARY_PATH
2521 shlibpath_overrides_runpath=no
2522 hardcode_into_libs=yes
2523 ;;
2524
2525 haiku*)
2526 version_type=linux # correct to gnu/linux during the next big refactor
2527 need_lib_prefix=no
2528 need_version=no
2529 dynamic_linker="$host_os runtime_loader"
2530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2531 soname_spec='${libname}${release}${shared_ext}$major'
2532 shlibpath_var=LIBRARY_PATH
2533 shlibpath_overrides_runpath=yes
2534 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23432535 hardcode_into_libs=yes
23442536 ;;
23452537
23852577 soname_spec='${libname}${release}${shared_ext}$major'
23862578 ;;
23872579 esac
2388 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2580 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
23892581 postinstall_cmds='chmod 555 $lib'
2582 # or fails outright, so override atomically:
2583 install_override_mode=555
23902584 ;;
23912585
23922586 interix[[3-9]]*)
2393 version_type=linux
2587 version_type=linux # correct to gnu/linux during the next big refactor
23942588 need_lib_prefix=no
23952589 need_version=no
23962590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24062600 nonstopux*) version_type=nonstopux ;;
24072601 *)
24082602 if test "$lt_cv_prog_gnu_ld" = yes; then
2409 version_type=linux
2603 version_type=linux # correct to gnu/linux during the next big refactor
24102604 else
24112605 version_type=irix
24122606 fi ;;
24432637 dynamic_linker=no
24442638 ;;
24452639
2446 # This must be Linux ELF.
2640 # This must be glibc/ELF.
24472641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2448 version_type=linux
2642 version_type=linux # correct to gnu/linux during the next big refactor
24492643 need_lib_prefix=no
24502644 need_version=no
24512645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24532647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24542648 shlibpath_var=LD_LIBRARY_PATH
24552649 shlibpath_overrides_runpath=no
2650
24562651 # Some binutils ld are patched to set DT_RUNPATH
2457 save_LDFLAGS=$LDFLAGS
2458 save_libdir=$libdir
2459 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2460 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2461 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2462 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2463 [shlibpath_overrides_runpath=yes])])
2464 LDFLAGS=$save_LDFLAGS
2465 libdir=$save_libdir
2652 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2653 [lt_cv_shlibpath_overrides_runpath=no
2654 save_LDFLAGS=$LDFLAGS
2655 save_libdir=$libdir
2656 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2657 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2658 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2659 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2660 [lt_cv_shlibpath_overrides_runpath=yes])])
2661 LDFLAGS=$save_LDFLAGS
2662 libdir=$save_libdir
2663 ])
2664 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24662665
24672666 # This implies no fast_install, which is unacceptable.
24682667 # Some rework will be needed to allow for fast_install
24712670
24722671 # Append ld.so.conf contents to the search path
24732672 if test -f /etc/ld.so.conf; then
2474 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2673 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
24752674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24762675 fi
24772676
25152714 ;;
25162715
25172716 newsos6)
2518 version_type=linux
2717 version_type=linux # correct to gnu/linux during the next big refactor
25192718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25202719 shlibpath_var=LD_LIBRARY_PATH
25212720 shlibpath_overrides_runpath=yes
25842783 ;;
25852784
25862785 solaris*)
2587 version_type=linux
2786 version_type=linux # correct to gnu/linux during the next big refactor
25882787 need_lib_prefix=no
25892788 need_version=no
25902789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26092808 ;;
26102809
26112810 sysv4 | sysv4.3*)
2612 version_type=linux
2811 version_type=linux # correct to gnu/linux during the next big refactor
26132812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26142813 soname_spec='${libname}${release}${shared_ext}$major'
26152814 shlibpath_var=LD_LIBRARY_PATH
26332832
26342833 sysv4*MP*)
26352834 if test -d /usr/nec ;then
2636 version_type=linux
2835 version_type=linux # correct to gnu/linux during the next big refactor
26372836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26382837 soname_spec='$libname${shared_ext}.$major'
26392838 shlibpath_var=LD_LIBRARY_PATH
26642863
26652864 tpf*)
26662865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2667 version_type=linux
2866 version_type=linux # correct to gnu/linux during the next big refactor
26682867 need_lib_prefix=no
26692868 need_version=no
26702869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26742873 ;;
26752874
26762875 uts4*)
2677 version_type=linux
2876 version_type=linux # correct to gnu/linux during the next big refactor
26782877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26792878 soname_spec='${libname}${release}${shared_ext}$major'
26802879 shlibpath_var=LD_LIBRARY_PATH
27162915 The last name is the one that the linker finds with -lNAME]])
27172916 _LT_DECL([], [soname_spec], [1],
27182917 [[The coded name of the library, if different from the real name]])
2918 _LT_DECL([], [install_override_mode], [1],
2919 [Permission mode override for installation of shared libraries])
27192920 _LT_DECL([], [postinstall_cmds], [2],
27202921 [Command to use after installation of a shared archive])
27212922 _LT_DECL([], [postuninstall_cmds], [2],
28283029 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
28293030 m4_require([_LT_DECL_SED])dnl
28303031 m4_require([_LT_DECL_EGREP])dnl
3032 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28313033
28323034 AC_ARG_WITH([gnu-ld],
28333035 [AS_HELP_STRING([--with-gnu-ld],
29493151 esac
29503152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
29513153 case $host_os in
3154 cygwin* | mingw* | pw32* | cegcc*)
3155 if test "$GCC" != yes; then
3156 reload_cmds=false
3157 fi
3158 ;;
29523159 darwin*)
29533160 if test "$GCC" = yes; then
29543161 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29573164 fi
29583165 ;;
29593166 esac
2960 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2961 _LT_DECL([], [reload_cmds], [2])dnl
3167 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3168 _LT_TAGDECL([], [reload_cmds], [2])dnl
29623169 ])# _LT_CMD_RELOAD
29633170
29643171
30103217 # Base MSYS/MinGW do not provide the 'file' command needed by
30113218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30123219 # unless we find 'file', for example because we are cross-compiling.
3013 if ( file / ) >/dev/null 2>&1; then
3220 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3221 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30143222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30153223 lt_cv_file_magic_cmd='func_win32_libid'
30163224 else
3017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3225 # Keep this pattern in sync with the one in func_win32_libid.
3226 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30183227 lt_cv_file_magic_cmd='$OBJDUMP -f'
30193228 fi
30203229 ;;
30213230
3022 cegcc)
3231 cegcc*)
30233232 # use the weaker test based on 'objdump'. See mingw*.
30243233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30253234 lt_cv_file_magic_cmd='$OBJDUMP -f'
30493258 lt_cv_deplibs_check_method=pass_all
30503259 ;;
30513260
3261 haiku*)
3262 lt_cv_deplibs_check_method=pass_all
3263 ;;
3264
30523265 hpux10.20* | hpux11*)
30533266 lt_cv_file_magic_cmd=/usr/bin/file
30543267 case $host_cpu in
30573270 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30583271 ;;
30593272 hppa*64*)
3060 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3273 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
30613274 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30623275 ;;
30633276 *)
3064 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3277 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
30653278 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30663279 ;;
30673280 esac
30823295 lt_cv_deplibs_check_method=pass_all
30833296 ;;
30843297
3085 # This must be Linux ELF.
3298 # This must be glibc/ELF.
30863299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30873300 lt_cv_deplibs_check_method=pass_all
30883301 ;;
31613374 ;;
31623375 esac
31633376 ])
3377
3378 file_magic_glob=
3379 want_nocaseglob=no
3380 if test "$build" = "$host"; then
3381 case $host_os in
3382 mingw* | pw32*)
3383 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3384 want_nocaseglob=yes
3385 else
3386 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3387 fi
3388 ;;
3389 esac
3390 fi
3391
31643392 file_magic_cmd=$lt_cv_file_magic_cmd
31653393 deplibs_check_method=$lt_cv_deplibs_check_method
31663394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
31683396 _LT_DECL([], [deplibs_check_method], [1],
31693397 [Method to check whether dependent libraries are shared objects])
31703398 _LT_DECL([], [file_magic_cmd], [1],
3171 [Command to use when deplibs_check_method == "file_magic"])
3399 [Command to use when deplibs_check_method = "file_magic"])
3400 _LT_DECL([], [file_magic_glob], [1],
3401 [How to find potential files when deplibs_check_method = "file_magic"])
3402 _LT_DECL([], [want_nocaseglob], [1],
3403 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
31723404 ])# _LT_CHECK_MAGIC_METHOD
31733405
31743406
32253457 NM="$lt_cv_path_NM"
32263458 else
32273459 # Didn't find any BSD compatible name lister, look for dumpbin.
3228 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3460 if test -n "$DUMPBIN"; then :
3461 # Let the user override the test.
3462 else
3463 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3464 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3465 *COFF*)
3466 DUMPBIN="$DUMPBIN -symbols"
3467 ;;
3468 *)
3469 DUMPBIN=:
3470 ;;
3471 esac
3472 fi
32293473 AC_SUBST([DUMPBIN])
32303474 if test "$DUMPBIN" != ":"; then
32313475 NM="$DUMPBIN"
32383482 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
32393483 [lt_cv_nm_interface="BSD nm"
32403484 echo "int some_variable = 0;" > conftest.$ac_ext
3241 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
32423486 (eval "$ac_compile" 2>conftest.err)
32433487 cat conftest.err >&AS_MESSAGE_LOG_FD
3244 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3488 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
32453489 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32463490 cat conftest.err >&AS_MESSAGE_LOG_FD
3247 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3491 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
32483492 cat conftest.out >&AS_MESSAGE_LOG_FD
32493493 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32503494 lt_cv_nm_interface="MS dumpbin"
32583502 dnl aclocal-1.4 backwards compatibility:
32593503 dnl AC_DEFUN([AM_PROG_NM], [])
32603504 dnl AC_DEFUN([AC_PROG_NM], [])
3505
3506 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3507 # --------------------------------
3508 # how to determine the name of the shared library
3509 # associated with a specific link library.
3510 # -- PORTME fill in with the dynamic library characteristics
3511 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3512 [m4_require([_LT_DECL_EGREP])
3513 m4_require([_LT_DECL_OBJDUMP])
3514 m4_require([_LT_DECL_DLLTOOL])
3515 AC_CACHE_CHECK([how to associate runtime and link libraries],
3516 lt_cv_sharedlib_from_linklib_cmd,
3517 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3518
3519 case $host_os in
3520 cygwin* | mingw* | pw32* | cegcc*)
3521 # two different shell functions defined in ltmain.sh
3522 # decide which to use based on capabilities of $DLLTOOL
3523 case `$DLLTOOL --help 2>&1` in
3524 *--identify-strict*)
3525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3526 ;;
3527 *)
3528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3529 ;;
3530 esac
3531 ;;
3532 *)
3533 # fallback: assume linklib IS sharedlib
3534 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3535 ;;
3536 esac
3537 ])
3538 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3539 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3540
3541 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3542 [Command to associate shared and link libraries])
3543 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3544
3545
3546 # _LT_PATH_MANIFEST_TOOL
3547 # ----------------------
3548 # locate the manifest tool
3549 m4_defun([_LT_PATH_MANIFEST_TOOL],
3550 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3551 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3552 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3553 [lt_cv_path_mainfest_tool=no
3554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3556 cat conftest.err >&AS_MESSAGE_LOG_FD
3557 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3558 lt_cv_path_mainfest_tool=yes
3559 fi
3560 rm -f conftest*])
3561 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3562 MANIFEST_TOOL=:
3563 fi
3564 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3565 ])# _LT_PATH_MANIFEST_TOOL
32613566
32623567
32633568 # LT_LIB_M
32673572 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
32683573 LIBM=
32693574 case $host in
3270 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3575 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
32713576 # These system don't have libm, or don't need it
32723577 ;;
32733578 *-ncr-sysv4.3*)
32953600 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
32963601
32973602 if test "$GCC" = yes; then
3298 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3603 case $cc_basename in
3604 nvcc*)
3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3606 *)
3607 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3608 esac
32993609
33003610 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33013611 lt_cv_prog_compiler_rtti_exceptions,
33123622 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
33133623 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
33143624 AC_REQUIRE([AC_PROG_CC])dnl
3625 AC_REQUIRE([AC_PROG_AWK])dnl
33153626 AC_REQUIRE([LT_PATH_NM])dnl
33163627 AC_REQUIRE([LT_PATH_LD])dnl
33173628 m4_require([_LT_DECL_SED])dnl
33793690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33803691
33813692 # Transform an extracted symbol line into symbol name and symbol address
3382 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3693 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3694 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
33843695
33853696 # Handle CRLF in mingw tool chain
33863697 opt_cr=
34043715 # which start with @ or ?.
34053716 lt_cv_sys_global_symbol_pipe="$AWK ['"\
34063717 " {last_section=section; section=\$ 3};"\
3718 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
34073719 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
34083720 " \$ 0!~/External *\|/{next};"\
34093721 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
34163728 else
34173729 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34183730 fi
3731 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34193732
34203733 # Check to see that the pipe works correctly.
34213734 pipe_works=no
34373750 if AC_TRY_EVAL(ac_compile); then
34383751 # Now try to grab the symbols.
34393752 nlist=conftest.nm
3440 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3753 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
34413754 # Try sorting and uniquifying the output.
34423755 if sort "$nlist" | uniq > "$nlist"T; then
34433756 mv -f "$nlist"T "$nlist"
34493762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34503763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34513764 cat <<_LT_EOF > conftest.$ac_ext
3765 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3766 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3767 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3768 relocations are performed -- see ld's documentation on pseudo-relocs. */
3769 # define LT@&t@_DLSYM_CONST
3770 #elif defined(__osf__)
3771 /* This system does not cope well with relocations in const data. */
3772 # define LT@&t@_DLSYM_CONST
3773 #else
3774 # define LT@&t@_DLSYM_CONST const
3775 #endif
3776
34523777 #ifdef __cplusplus
34533778 extern "C" {
34543779 #endif
34603785 cat <<_LT_EOF >> conftest.$ac_ext
34613786
34623787 /* The mapping between symbol names and symbols. */
3463 const struct {
3788 LT@&t@_DLSYM_CONST struct {
34643789 const char *name;
34653790 void *address;
34663791 }
34863811 _LT_EOF
34873812 # Now try linking the two files.
34883813 mv conftest.$ac_objext conftstm.$ac_objext
3489 lt_save_LIBS="$LIBS"
3490 lt_save_CFLAGS="$CFLAGS"
3814 lt_globsym_save_LIBS=$LIBS
3815 lt_globsym_save_CFLAGS=$CFLAGS
34913816 LIBS="conftstm.$ac_objext"
34923817 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
34933818 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
34943819 pipe_works=yes
34953820 fi
3496 LIBS="$lt_save_LIBS"
3497 CFLAGS="$lt_save_CFLAGS"
3821 LIBS=$lt_globsym_save_LIBS
3822 CFLAGS=$lt_globsym_save_CFLAGS
34983823 else
34993824 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35003825 fi
35273852 AC_MSG_RESULT(ok)
35283853 fi
35293854
3855 # Response file support.
3856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3857 nm_file_list_spec='@'
3858 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3859 nm_file_list_spec='@'
3860 fi
3861
35303862 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35313863 [Take the output of nm and produce a listing of raw symbols and C names])
35323864 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
35373869 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35383870 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35393871 [Transform the output of nm in a C name address pair when lib prefix is needed])
3872 _LT_DECL([], [nm_file_list_spec], [1],
3873 [Specify filename containing input files for $NM])
35403874 ]) # _LT_CMD_GLOBAL_SYMBOLS
35413875
35423876
35483882 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
35493883 _LT_TAGVAR(lt_prog_compiler_static, $1)=
35503884
3551 AC_MSG_CHECKING([for $compiler option to produce PIC])
35523885 m4_if([$1], [CXX], [
35533886 # C++ specific cases for pic, static, wl, etc.
35543887 if test "$GXX" = yes; then
35983931 *djgpp*)
35993932 # DJGPP does not support shared libraries at all
36003933 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3934 ;;
3935 haiku*)
3936 # PIC is the default for Haiku.
3937 # The "-static" flag exists, but is broken.
3938 _LT_TAGVAR(lt_prog_compiler_static, $1)=
36013939 ;;
36023940 interix[[3-9]]*)
36033941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36473985 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
36483986 ;;
36493987 esac
3988 ;;
3989 mingw* | cygwin* | os2* | pw32* | cegcc*)
3990 # This hack is so that the source file can tell whether it is being
3991 # built for inclusion in a dll (and should export symbols for example).
3992 m4_if([$1], [GCJ], [],
3993 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36503994 ;;
36513995 dgux*)
36523996 case $cc_basename in
37374081 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
37384082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37394083 ;;
3740 xlc* | xlC*)
3741 # IBM XL 8.0 on PPC
4084 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4085 # IBM XL 8.0, 9.0 on PPC and BlueGene
37424086 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37434087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
37444088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
38004144 ;;
38014145 solaris*)
38024146 case $cc_basename in
3803 CC*)
4147 CC* | sunCC*)
38044148 # Sun C++ 4.2, 5.x and Centerline C++
38054149 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38064150 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39044248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39054249 ;;
39064250
4251 haiku*)
4252 # PIC is the default for Haiku.
4253 # The "-static" flag exists, but is broken.
4254 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4255 ;;
4256
39074257 hpux*)
39084258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39094259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
39444294
39454295 *)
39464296 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4297 ;;
4298 esac
4299
4300 case $cc_basename in
4301 nvcc*) # Cuda Compiler Driver 2.2
4302 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4303 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4304 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4305 fi
39474306 ;;
39484307 esac
39494308 else
40094368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40104369 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40114370 ;;
4012 pgcc* | pgf77* | pgf90* | pgf95*)
4371 nagfor*)
4372 # NAG Fortran compiler
4373 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4375 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4376 ;;
4377 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40134378 # Portland Group compilers (*not* the Pentium gcc compiler,
40144379 # which looks to be a dead project)
40154380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40214386 # All Alpha code is PIC.
40224387 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40234388 ;;
4024 xl*)
4025 # IBM XL C 8.0/Fortran 10.1 on PPC
4389 xl* | bgxl* | bgf* | mpixl*)
4390 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
40264391 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40274392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
40284393 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
40294394 ;;
40304395 *)
40314396 case `$CC -V 2>&1 | sed 5q` in
4397 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4398 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4401 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4402 ;;
4403 *Sun\ F* | *Sun*Fortran*)
4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4406 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4407 ;;
40324408 *Sun\ C*)
40334409 # Sun C 5.9
40344410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40354411 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40364412 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40374413 ;;
4038 *Sun\ F*)
4039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4040 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4414 *Intel*\ [[CF]]*Compiler*)
4415 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4416 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4417 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4418 ;;
4419 *Portland\ Group*)
4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4421 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
40414422 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
40434423 ;;
40444424 esac
40454425 ;;
40714451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40724452 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40734453 case $cc_basename in
4074 f77* | f90* | f95*)
4454 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
40754455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
40764456 *)
40774457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
41284508 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41294509 ;;
41304510 esac
4131 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4132 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4133 [How to pass a linker flag through the compiler])
4511
4512 AC_CACHE_CHECK([for $compiler option to produce PIC],
4513 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4514 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4515 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
41344516
41354517 #
41364518 # Check to make sure the PIC flag actually works.
41494531 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
41504532 [Additional compiler flags for building library objects])
41514533
4534 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4535 [How to pass a linker flag through the compiler])
41524536 #
41534537 # Check to make sure the static flag actually works.
41544538 #
41694553 m4_defun([_LT_LINKER_SHLIBS],
41704554 [AC_REQUIRE([LT_PATH_LD])dnl
41714555 AC_REQUIRE([LT_PATH_NM])dnl
4556 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
41724557 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
41734558 m4_require([_LT_DECL_EGREP])dnl
41744559 m4_require([_LT_DECL_SED])dnl
41774562 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
41784563 m4_if([$1], [CXX], [
41794564 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4565 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
41804566 case $host_os in
41814567 aix[[4-9]]*)
41824568 # If we're using GNU nm, then we don't want the "-C" option.
41834569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4570 # Also, AIX nm treats weak defined symbols like other global defined
4571 # symbols, whereas GNU nm marks them as "W".
41844572 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4185 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4573 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
41864574 else
41874575 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
41884576 fi
41894577 ;;
41904578 pw32*)
41914579 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4192 ;;
4580 ;;
41934581 cygwin* | mingw* | cegcc*)
4194 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4195 ;;
4196 linux* | k*bsd*-gnu)
4582 case $cc_basename in
4583 cl*)
4584 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4585 ;;
4586 *)
4587 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4588 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4589 ;;
4590 esac
4591 ;;
4592 linux* | k*bsd*-gnu | gnu*)
41974593 _LT_TAGVAR(link_all_deplibs, $1)=no
4198 ;;
4594 ;;
41994595 *)
42004596 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4201 ;;
4597 ;;
42024598 esac
4203 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42044599 ], [
42054600 runpath_var=
42064601 _LT_TAGVAR(allow_undefined_flag, $1)=
42154610 _LT_TAGVAR(hardcode_direct, $1)=no
42164611 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
42174612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4218 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
42194613 _LT_TAGVAR(hardcode_libdir_separator, $1)=
42204614 _LT_TAGVAR(hardcode_minus_L, $1)=no
42214615 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
42604654 openbsd*)
42614655 with_gnu_ld=no
42624656 ;;
4263 linux* | k*bsd*-gnu)
4657 linux* | k*bsd*-gnu | gnu*)
42644658 _LT_TAGVAR(link_all_deplibs, $1)=no
42654659 ;;
42664660 esac
42674661
42684662 _LT_TAGVAR(ld_shlibs, $1)=yes
4663
4664 # On some targets, GNU ld is compatible enough with the native linker
4665 # that we're better off using the native interface for both.
4666 lt_use_gnu_ld_interface=no
42694667 if test "$with_gnu_ld" = yes; then
4668 case $host_os in
4669 aix*)
4670 # The AIX port of GNU ld has always aspired to compatibility
4671 # with the native linker. However, as the warning in the GNU ld
4672 # block says, versions before 2.19.5* couldn't really create working
4673 # shared libraries, regardless of the interface used.
4674 case `$LD -v 2>&1` in
4675 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4676 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4677 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4678 *)
4679 lt_use_gnu_ld_interface=yes
4680 ;;
4681 esac
4682 ;;
4683 *)
4684 lt_use_gnu_ld_interface=yes
4685 ;;
4686 esac
4687 fi
4688
4689 if test "$lt_use_gnu_ld_interface" = yes; then
42704690 # If archive_cmds runs LD, not CC, wlarc should be empty
42714691 wlarc='${wl}'
42724692
43004720 _LT_TAGVAR(ld_shlibs, $1)=no
43014721 cat <<_LT_EOF 1>&2
43024722
4303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4723 *** Warning: the GNU linker, at least up to release 2.19, is reported
43044724 *** to be unable to reliably create shared libraries on AIX.
43054725 *** Therefore, libtool is disabling shared libraries support. If you
4306 *** really care for shared libraries, you may want to modify your PATH
4307 *** so that a non-GNU linker is found, and then restart.
4726 *** really care for shared libraries, you may want to install binutils
4727 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4728 *** You will then need to restart the configuration process.
43084729
43094730 _LT_EOF
43104731 fi
43404761 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
43414762 # as there is no search path for DLLs.
43424763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4764 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
43434765 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43444766 _LT_TAGVAR(always_export_symbols, $1)=no
43454767 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4346 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4768 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4769 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
43474770
43484771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43494772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43614784 fi
43624785 ;;
43634786
4787 haiku*)
4788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4789 _LT_TAGVAR(link_all_deplibs, $1)=yes
4790 ;;
4791
43644792 interix[[3-9]]*)
43654793 _LT_TAGVAR(hardcode_direct, $1)=no
43664794 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43864814 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
43874815 && test "$tmp_diet" = no
43884816 then
4389 tmp_addflag=
4817 tmp_addflag=' $pic_flag'
43904818 tmp_sharedflag='-shared'
43914819 case $cc_basename,$host_cpu in
43924820 pgcc*) # Portland Group C compiler
4393 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4821 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
43944822 tmp_addflag=' $pic_flag'
43954823 ;;
4396 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4397 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4824 pgf77* | pgf90* | pgf95* | pgfortran*)
4825 # Portland Group f77 and f90 compilers
4826 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
43984827 tmp_addflag=' $pic_flag -Mnomain' ;;
43994828 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
44004829 tmp_addflag=' -i_dynamic' ;;
44054834 lf95*) # Lahey Fortran 8.1
44064835 _LT_TAGVAR(whole_archive_flag_spec, $1)=
44074836 tmp_sharedflag='--shared' ;;
4408 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4837 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
44094838 tmp_sharedflag='-qmkshrobj'
44104839 tmp_addflag= ;;
4840 nvcc*) # Cuda Compiler Driver 2.2
4841 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4842 _LT_TAGVAR(compiler_needs_object, $1)=yes
4843 ;;
44114844 esac
44124845 case `$CC -V 2>&1 | sed 5q` in
44134846 *Sun\ C*) # Sun C 5.9
4414 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4847 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
44154848 _LT_TAGVAR(compiler_needs_object, $1)=yes
44164849 tmp_sharedflag='-G' ;;
44174850 *Sun\ F*) # Sun Fortran 8.3
44274860 fi
44284861
44294862 case $cc_basename in
4430 xlf*)
4863 xlf* | bgf* | bgxlf* | mpixlf*)
44314864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
44324865 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4434 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4435 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4867 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
44364868 if test "x$supports_anon_versioning" = xyes; then
44374869 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44384870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44394871 echo "local: *; };" >> $output_objdir/$libname.ver~
4440 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4872 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
44414873 fi
44424874 ;;
44434875 esac
44514883 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
44524884 wlarc=
44534885 else
4454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4455 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4886 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4887 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44564888 fi
44574889 ;;
44584890
44704902
44714903 _LT_EOF
44724904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4474 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4906 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44754907 else
44764908 _LT_TAGVAR(ld_shlibs, $1)=no
44774909 fi
45174949
45184950 *)
45194951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4520 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4521 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4952 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4953 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45224954 else
45234955 _LT_TAGVAR(ld_shlibs, $1)=no
45244956 fi
45584990 else
45594991 # If we're using GNU nm, then we don't want the "-C" option.
45604992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4993 # Also, AIX nm treats weak defined symbols like other global
4994 # defined symbols, whereas GNU nm marks them as "W".
45614995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4562 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4996 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45634997 else
45644998 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45654999 fi
46475081 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
46485082 # Determine the default libpath from the value encoded in an
46495083 # empty executable.
4650 _LT_SYS_MODULE_PATH_AIX
5084 _LT_SYS_MODULE_PATH_AIX([$1])
46515085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4652 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5086 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
46535087 else
46545088 if test "$host_cpu" = ia64; then
46555089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
46585092 else
46595093 # Determine the default libpath from the value encoded in an
46605094 # empty executable.
4661 _LT_SYS_MODULE_PATH_AIX
5095 _LT_SYS_MODULE_PATH_AIX([$1])
46625096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
46635097 # Warning - without using the other run time loading flags,
46645098 # -berok will link without error, but may produce a broken library.
46655099 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
46665100 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4667 # Exported symbols can be pulled into shared objects from archives
4668 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5101 if test "$with_gnu_ld" = yes; then
5102 # We only use this code for GNU lds that support --whole-archive.
5103 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5104 else
5105 # Exported symbols can be pulled into shared objects from archives
5106 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5107 fi
46695108 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
46705109 # This is similar to how AIX traditionally builds its shared libraries.
46715110 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
46975136 # Microsoft Visual C++.
46985137 # hardcode_libdir_flag_spec is actually meaningless, as there is
46995138 # no search path for DLLs.
4700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4701 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4702 # Tell ltmain to make .lib files, not .a files.
4703 libext=lib
4704 # Tell ltmain to make .dll files, not .so files.
4705 shrext_cmds=".dll"
4706 # FIXME: Setting linknames here is a bad hack.
4707 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4708 # The linker will automatically build a .lib file if we build a DLL.
4709 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4710 # FIXME: Should let the user specify the lib program.
4711 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4712 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4713 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5139 case $cc_basename in
5140 cl*)
5141 # Native MSVC
5142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5143 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5144 _LT_TAGVAR(always_export_symbols, $1)=yes
5145 _LT_TAGVAR(file_list_spec, $1)='@'
5146 # Tell ltmain to make .lib files, not .a files.
5147 libext=lib
5148 # Tell ltmain to make .dll files, not .so files.
5149 shrext_cmds=".dll"
5150 # FIXME: Setting linknames here is a bad hack.
5151 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5152 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5153 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5154 else
5155 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5156 fi~
5157 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5158 linknames='
5159 # The linker will not automatically build a static lib if we build a DLL.
5160 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5163 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5164 # Don't use ranlib
5165 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5166 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5167 lt_tool_outputfile="@TOOL_OUTPUT@"~
5168 case $lt_outputfile in
5169 *.exe|*.EXE) ;;
5170 *)
5171 lt_outputfile="$lt_outputfile.exe"
5172 lt_tool_outputfile="$lt_tool_outputfile.exe"
5173 ;;
5174 esac~
5175 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5176 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5177 $RM "$lt_outputfile.manifest";
5178 fi'
5179 ;;
5180 *)
5181 # Assume MSVC wrapper
5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5183 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5184 # Tell ltmain to make .lib files, not .a files.
5185 libext=lib
5186 # Tell ltmain to make .dll files, not .so files.
5187 shrext_cmds=".dll"
5188 # FIXME: Setting linknames here is a bad hack.
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5190 # The linker will automatically build a .lib file if we build a DLL.
5191 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5192 # FIXME: Should let the user specify the lib program.
5193 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5194 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5195 ;;
5196 esac
47145197 ;;
47155198
47165199 darwin* | rhapsody*)
47215204 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
47225205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
47235206 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4724 ;;
4725
4726 freebsd1*)
4727 _LT_TAGVAR(ld_shlibs, $1)=no
47285207 ;;
47295208
47305209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
47395218 ;;
47405219
47415220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4742 freebsd2*)
5221 freebsd2.*)
47435222 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47445223 _LT_TAGVAR(hardcode_direct, $1)=yes
47455224 _LT_TAGVAR(hardcode_minus_L, $1)=yes
47485227
47495228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
47505229 freebsd* | dragonfly*)
4751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47525231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
47535232 _LT_TAGVAR(hardcode_direct, $1)=yes
47545233 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47565235
47575236 hpux9*)
47585237 if test "$GCC" = yes; then
4759 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5238 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47605239 else
47615240 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47625241 fi
47715250 ;;
47725251
47735252 hpux10*)
4774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4775 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5253 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47765255 else
47775256 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47785257 fi
47795258 if test "$with_gnu_ld" = no; then
47805259 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4781 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
47825260 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
47835261 _LT_TAGVAR(hardcode_direct, $1)=yes
47845262 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
47905268 ;;
47915269
47925270 hpux11*)
4793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
47945272 case $host_cpu in
47955273 hppa*64*)
47965274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47975275 ;;
47985276 ia64*)
4799 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48005278 ;;
48015279 *)
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5280 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48035281 ;;
48045282 esac
48055283 else
48115289 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48125290 ;;
48135291 *)
4814 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5292 m4_if($1, [], [
5293 # Older versions of the 11.00 compiler do not understand -b yet
5294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5295 _LT_LINKER_OPTION([if $CC understands -b],
5296 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5297 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5298 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5299 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
48155300 ;;
48165301 esac
48175302 fi
48395324
48405325 irix5* | irix6* | nonstopux*)
48415326 if test "$GCC" = yes; then
4842 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48435328 # Try to use the -exported_symbol ld option, if it does not
48445329 # work, assume that -exports_file does not work either and
48455330 # implicitly export all symbols.
4846 save_LDFLAGS="$LDFLAGS"
4847 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4848 AC_LINK_IFELSE(int foo(void) {},
4849 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4850 )
4851 LDFLAGS="$save_LDFLAGS"
5331 # This should be the same for all languages, so no per-tag cache variable.
5332 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5333 [lt_cv_irix_exported_symbol],
5334 [save_LDFLAGS="$LDFLAGS"
5335 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5336 AC_LINK_IFELSE(
5337 [AC_LANG_SOURCE(
5338 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5339 [C++], [[int foo (void) { return 0; }]],
5340 [Fortran 77], [[
5341 subroutine foo
5342 end]],
5343 [Fortran], [[
5344 subroutine foo
5345 end]])])],
5346 [lt_cv_irix_exported_symbol=yes],
5347 [lt_cv_irix_exported_symbol=no])
5348 LDFLAGS="$save_LDFLAGS"])
5349 if test "$lt_cv_irix_exported_symbol" = yes; then
5350 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5351 fi
48525352 else
4853 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4854 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5354 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
48555355 fi
48565356 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
48575357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49135413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
49145414 _LT_TAGVAR(hardcode_minus_L, $1)=yes
49155415 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4916 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5416 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
49175417 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49185418 ;;
49195419
49205420 osf3*)
49215421 if test "$GCC" = yes; then
49225422 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4923 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5423 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49245424 else
49255425 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49275427 fi
49285428 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
49295429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49335433 osf4* | osf5*) # as osf3* with the addition of -msym flag
49345434 if test "$GCC" = yes; then
49355435 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4936 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49375437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49385438 else
49395439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4940 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49415441 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4942 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5442 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
49435443
49445444 # Both c and cxx compiler support -rpath directly
49455445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
49525452 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
49535453 if test "$GCC" = yes; then
49545454 wlarc='${wl}'
4955 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5455 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
49565456 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4957 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5457 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
49585458 else
49595459 case `$CC -V 2>&1` in
49605460 *"Compilers 5.0"*)
51305630 # Test whether the compiler implicitly links with -lc since on some
51315631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
51325632 # to ld, don't add -lc before -lgcc.
5133 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5134 $RM conftest*
5135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5136
5137 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5138 soname=conftest
5139 lib=conftest
5140 libobjs=conftest.$ac_objext
5141 deplibs=
5142 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5143 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5144 compiler_flags=-v
5145 linker_flags=-v
5146 verstring=
5147 output_objdir=.
5148 libname=conftest
5149 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5150 _LT_TAGVAR(allow_undefined_flag, $1)=
5151 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5152 then
5153 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5154 else
5155 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5156 fi
5157 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5158 else
5159 cat conftest.err 1>&5
5160 fi
5161 $RM conftest*
5162 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5633 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5634 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5635 [$RM conftest*
5636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5637
5638 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5639 soname=conftest
5640 lib=conftest
5641 libobjs=conftest.$ac_objext
5642 deplibs=
5643 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5644 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5645 compiler_flags=-v
5646 linker_flags=-v
5647 verstring=
5648 output_objdir=.
5649 libname=conftest
5650 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5651 _LT_TAGVAR(allow_undefined_flag, $1)=
5652 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5653 then
5654 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5655 else
5656 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5657 fi
5658 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5659 else
5660 cat conftest.err 1>&5
5661 fi
5662 $RM conftest*
5663 ])
5664 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
51635665 ;;
51645666 esac
51655667 fi
51965698 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
51975699 [Flag to hardcode $libdir into a binary during linking.
51985700 This must work even if $libdir does not exist])
5199 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5200 [[If ld is used when linking, flag to hardcode $libdir into a binary
5201 during linking. This must work even if $libdir does not exist]])
52025701 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
52035702 [Whether we need a single "-rpath" flag with a separated argument])
52045703 _LT_TAGDECL([], [hardcode_direct], [0],
52245723 to runtime path list])
52255724 _LT_TAGDECL([], [link_all_deplibs], [0],
52265725 [Whether libtool must link a program against all its dependency libraries])
5227 _LT_TAGDECL([], [fix_srcfile_path], [1],
5228 [Fix the shell variable $srcfile for the compiler])
52295726 _LT_TAGDECL([], [always_export_symbols], [0],
52305727 [Set to "yes" if exported symbols are required])
52315728 _LT_TAGDECL([], [export_symbols_cmds], [2],
52365733 [Symbols that must always be exported])
52375734 _LT_TAGDECL([], [prelink_cmds], [2],
52385735 [Commands necessary for linking programs (against libraries) with templates])
5736 _LT_TAGDECL([], [postlink_cmds], [2],
5737 [Commands necessary for finishing linking programs])
52395738 _LT_TAGDECL([], [file_list_spec], [1],
52405739 [Specify filename containing input files])
52415740 dnl FIXME: Not yet implemented
53295828 ])# _LT_LANG_C_CONFIG
53305829
53315830
5332 # _LT_PROG_CXX
5333 # ------------
5334 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5335 # compiler, we have our own version here.
5336 m4_defun([_LT_PROG_CXX],
5337 [
5338 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5339 AC_PROG_CXX
5831 # _LT_LANG_CXX_CONFIG([TAG])
5832 # --------------------------
5833 # Ensure that the configuration variables for a C++ compiler are suitably
5834 # defined. These variables are subsequently used by _LT_CONFIG to write
5835 # the compiler configuration to `libtool'.
5836 m4_defun([_LT_LANG_CXX_CONFIG],
5837 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5838 m4_require([_LT_DECL_EGREP])dnl
5839 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
53405840 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
53415841 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
53425842 (test "X$CXX" != "Xg++"))) ; then
53445844 else
53455845 _lt_caught_CXX_error=yes
53465846 fi
5347 popdef([AC_MSG_ERROR])
5348 ])# _LT_PROG_CXX
5349
5350 dnl aclocal-1.4 backwards compatibility:
5351 dnl AC_DEFUN([_LT_PROG_CXX], [])
5352
5353
5354 # _LT_LANG_CXX_CONFIG([TAG])
5355 # --------------------------
5356 # Ensure that the configuration variables for a C++ compiler are suitably
5357 # defined. These variables are subsequently used by _LT_CONFIG to write
5358 # the compiler configuration to `libtool'.
5359 m4_defun([_LT_LANG_CXX_CONFIG],
5360 [AC_REQUIRE([_LT_PROG_CXX])dnl
5361 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5362 m4_require([_LT_DECL_EGREP])dnl
53635847
53645848 AC_LANG_PUSH(C++)
53655849 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
53715855 _LT_TAGVAR(hardcode_direct, $1)=no
53725856 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
53735857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5374 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
53755858 _LT_TAGVAR(hardcode_libdir_separator, $1)=
53765859 _LT_TAGVAR(hardcode_minus_L, $1)=no
53775860 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
53815864 _LT_TAGVAR(module_expsym_cmds, $1)=
53825865 _LT_TAGVAR(link_all_deplibs, $1)=unknown
53835866 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5867 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5868 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
53845869 _LT_TAGVAR(no_undefined_flag, $1)=
53855870 _LT_TAGVAR(whole_archive_flag_spec, $1)=
53865871 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
54125897
54135898 # Allow CC to be a program name with arguments.
54145899 lt_save_CC=$CC
5900 lt_save_CFLAGS=$CFLAGS
54155901 lt_save_LD=$LD
54165902 lt_save_GCC=$GCC
54175903 GCC=$GXX
54295915 fi
54305916 test -z "${LDCXX+set}" || LD=$LDCXX
54315917 CC=${CXX-"c++"}
5918 CFLAGS=$CXXFLAGS
54325919 compiler=$CC
54335920 _LT_TAGVAR(compiler, $1)=$CC
54345921 _LT_CC_BASENAME([$compiler])
54505937 # Check if GNU C++ uses GNU ld as the underlying linker, since the
54515938 # archiving commands below assume that GNU ld is being used.
54525939 if test "$with_gnu_ld" = yes; then
5453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5454 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5940 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5941 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
54555942
54565943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54575944 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
54835970 # Commands to make compiler produce verbose output that lists
54845971 # what "hidden" libraries, object files and flags are used when
54855972 # linking a shared library.
5486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
54875974
54885975 else
54895976 GXX=no
55926079 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
55936080 # Determine the default libpath from the value encoded in an empty
55946081 # executable.
5595 _LT_SYS_MODULE_PATH_AIX
6082 _LT_SYS_MODULE_PATH_AIX([$1])
55966083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
55976084
5598 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6085 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
55996086 else
56006087 if test "$host_cpu" = ia64; then
56016088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
56046091 else
56056092 # Determine the default libpath from the value encoded in an
56066093 # empty executable.
5607 _LT_SYS_MODULE_PATH_AIX
6094 _LT_SYS_MODULE_PATH_AIX([$1])
56086095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56096096 # Warning - without using the other run time loading flags,
56106097 # -berok will link without error, but may produce a broken library.
56116098 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
56126099 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5613 # Exported symbols can be pulled into shared objects from archives
5614 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6100 if test "$with_gnu_ld" = yes; then
6101 # We only use this code for GNU lds that support --whole-archive.
6102 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6103 else
6104 # Exported symbols can be pulled into shared objects from archives
6105 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6106 fi
56156107 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56166108 # This is similar to how AIX traditionally builds its shared
56176109 # libraries.
56416133 ;;
56426134
56436135 cygwin* | mingw* | pw32* | cegcc*)
5644 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5645 # as there is no search path for DLLs.
5646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5647 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5648 _LT_TAGVAR(always_export_symbols, $1)=no
5649 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5650
5651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5652 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5653 # If the export-symbols file already is a .def file (1st line
5654 # is EXPORTS), use it as is; otherwise, prepend...
5655 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5656 cp $export_symbols $output_objdir/$soname.def;
5657 else
5658 echo EXPORTS > $output_objdir/$soname.def;
5659 cat $export_symbols >> $output_objdir/$soname.def;
5660 fi~
5661 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5662 else
5663 _LT_TAGVAR(ld_shlibs, $1)=no
5664 fi
5665 ;;
6136 case $GXX,$cc_basename in
6137 ,cl* | no,cl*)
6138 # Native MSVC
6139 # hardcode_libdir_flag_spec is actually meaningless, as there is
6140 # no search path for DLLs.
6141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6142 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6143 _LT_TAGVAR(always_export_symbols, $1)=yes
6144 _LT_TAGVAR(file_list_spec, $1)='@'
6145 # Tell ltmain to make .lib files, not .a files.
6146 libext=lib
6147 # Tell ltmain to make .dll files, not .so files.
6148 shrext_cmds=".dll"
6149 # FIXME: Setting linknames here is a bad hack.
6150 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6151 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6152 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6153 else
6154 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6155 fi~
6156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6157 linknames='
6158 # The linker will not automatically build a static lib if we build a DLL.
6159 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6160 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6161 # Don't use ranlib
6162 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6163 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6164 lt_tool_outputfile="@TOOL_OUTPUT@"~
6165 case $lt_outputfile in
6166 *.exe|*.EXE) ;;
6167 *)
6168 lt_outputfile="$lt_outputfile.exe"
6169 lt_tool_outputfile="$lt_tool_outputfile.exe"
6170 ;;
6171 esac~
6172 func_to_tool_file "$lt_outputfile"~
6173 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6174 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6175 $RM "$lt_outputfile.manifest";
6176 fi'
6177 ;;
6178 *)
6179 # g++
6180 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6181 # as there is no search path for DLLs.
6182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6183 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6184 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6185 _LT_TAGVAR(always_export_symbols, $1)=no
6186 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6187
6188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6189 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6190 # If the export-symbols file already is a .def file (1st line
6191 # is EXPORTS), use it as is; otherwise, prepend...
6192 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6193 cp $export_symbols $output_objdir/$soname.def;
6194 else
6195 echo EXPORTS > $output_objdir/$soname.def;
6196 cat $export_symbols >> $output_objdir/$soname.def;
6197 fi~
6198 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6199 else
6200 _LT_TAGVAR(ld_shlibs, $1)=no
6201 fi
6202 ;;
6203 esac
6204 ;;
56666205 darwin* | rhapsody*)
56676206 _LT_DARWIN_LINKER_FEATURES($1)
56686207 ;;
56856224 esac
56866225 ;;
56876226
5688 freebsd[[12]]*)
6227 freebsd2.*)
56896228 # C++ shared libraries reported to be fairly broken before
56906229 # switch to ELF
56916230 _LT_TAGVAR(ld_shlibs, $1)=no
57026241 ;;
57036242
57046243 gnu*)
6244 ;;
6245
6246 haiku*)
6247 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6248 _LT_TAGVAR(link_all_deplibs, $1)=yes
57056249 ;;
57066250
57076251 hpux9*)
57286272 # explicitly linking system object files so we need to strip them
57296273 # from the output so that they don't get included in the library
57306274 # dependencies.
5731 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6275 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
57326276 ;;
57336277 *)
57346278 if test "$GXX" = yes; then
5735 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6279 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
57366280 else
57376281 # FIXME: insert proper C++ library support
57386282 _LT_TAGVAR(ld_shlibs, $1)=no
57936337 # explicitly linking system object files so we need to strip them
57946338 # from the output so that they don't get included in the library
57956339 # dependencies.
5796 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6340 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
57976341 ;;
57986342 *)
57996343 if test "$GXX" = yes; then
58036347 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58046348 ;;
58056349 ia64*)
5806 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6350 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58076351 ;;
58086352 *)
5809 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58106354 ;;
58116355 esac
58126356 fi
58366380 case $cc_basename in
58376381 CC*)
58386382 # SGI C++
5839 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6383 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
58406384
58416385 # Archives containing C++ object files must be created using
58426386 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
58476391 *)
58486392 if test "$GXX" = yes; then
58496393 if test "$with_gnu_ld" = no; then
5850 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6394 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
58516395 else
5852 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6396 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
58536397 fi
58546398 fi
58556399 _LT_TAGVAR(link_all_deplibs, $1)=yes
58786422 # explicitly linking system object files so we need to strip them
58796423 # from the output so that they don't get included in the library
58806424 # dependencies.
5881 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6425 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
58826426
58836427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
58846428 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59156459 pgCC* | pgcpp*)
59166460 # Portland Group C++ compiler
59176461 case `$CC -V` in
5918 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6462 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
59196463 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
59206464 rm -rf $tpldir~
59216465 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5922 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6466 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
59236467 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
59246468 rm -rf $tpldir~
59256469 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5926 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6470 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
59276471 $RANLIB $oldlib'
59286472 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
59296473 rm -rf $tpldir~
59306474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5931 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59326476 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
59336477 rm -rf $tpldir~
59346478 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5935 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6479 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
59366480 ;;
5937 *) # Version 6 will use weak symbols
6481 *) # Version 6 and above use weak symbols
59386482 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59396483 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
59406484 ;;
59426486
59436487 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
59446488 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5945 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6489 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59466490 ;;
59476491 cxx*)
59486492 # Compaq C++
59616505 # explicitly linking system object files so we need to strip them
59626506 # from the output so that they don't get included in the library
59636507 # dependencies.
5964 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6508 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
59656509 ;;
5966 xl*)
6510 xl* | mpixl* | bgxl*)
59676511 # IBM XL 8.0 on PPC, with GNU ld
59686512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59696513 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59836527 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59846528 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
59856529 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5986 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6530 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59876531 _LT_TAGVAR(compiler_needs_object, $1)=yes
59886532
59896533 # Not sure whether something based on
59906534 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
59916535 # would be better.
5992 output_verbose_link_cmd='echo'
6536 output_verbose_link_cmd='func_echo_all'
59936537
59946538 # Archives containing C++ object files must be created using
59956539 # "CC -xar", where "CC" is the Sun C++ compiler. This is
60586602 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60596603 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
60606604 fi
6061 output_verbose_link_cmd=echo
6605 output_verbose_link_cmd=func_echo_all
60626606 else
60636607 _LT_TAGVAR(ld_shlibs, $1)=no
60646608 fi
60936637 case $host in
60946638 osf3*)
60956639 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6640 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
60976641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60986642 ;;
60996643 *)
61006644 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6101 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6645 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
61026646 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
61036647 echo "-hidden">> $lib.exp~
6104 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6648 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
61056649 $RM $lib.exp'
61066650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
61076651 ;;
61176661 # explicitly linking system object files so we need to strip them
61186662 # from the output so that they don't get included in the library
61196663 # dependencies.
6120 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6664 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
61216665 ;;
61226666 *)
61236667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
61246668 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
61256669 case $host in
61266670 osf3*)
6127 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6671 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61286672 ;;
61296673 *)
6130 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6674 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61316675 ;;
61326676 esac
61336677
61376681 # Commands to make compiler produce verbose output that lists
61386682 # what "hidden" libraries, object files and flags are used when
61396683 # linking a shared library.
6140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
61416685
61426686 else
61436687 # FIXME: insert proper C++ library support
61736717
61746718 solaris*)
61756719 case $cc_basename in
6176 CC*)
6720 CC* | sunCC*)
61776721 # Sun C++ 4.2, 5.x and Centerline C++
61786722 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
61796723 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
61946738 esac
61956739 _LT_TAGVAR(link_all_deplibs, $1)=yes
61966740
6197 output_verbose_link_cmd='echo'
6741 output_verbose_link_cmd='func_echo_all'
61986742
61996743 # Archives containing C++ object files must be created using
62006744 # "CC -xar", where "CC" is the Sun C++ compiler. This is
62146758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
62156759 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
62166760 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6217 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6761 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
62186762 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6219 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6763 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
62206764
62216765 # Commands to make compiler produce verbose output that lists
62226766 # what "hidden" libraries, object files and flags are used when
62236767 # linking a shared library.
6224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62256769 else
62266770 # g++ 2.7 appears to require `-G' NOT `-shared' on this
62276771 # platform.
62326776 # Commands to make compiler produce verbose output that lists
62336777 # what "hidden" libraries, object files and flags are used when
62346778 # linking a shared library.
6235 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6779 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62366780 fi
62376781
62386782 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
62866830 CC*)
62876831 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62886832 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6833 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6834 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6835 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6836 '"$_LT_TAGVAR(reload_cmds, $1)"
62896837 ;;
62906838 *)
62916839 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63416889 fi # test -n "$compiler"
63426890
63436891 CC=$lt_save_CC
6892 CFLAGS=$lt_save_CFLAGS
63446893 LDCXX=$LD
63456894 LD=$lt_save_LD
63466895 GCC=$lt_save_GCC
63556904 ])# _LT_LANG_CXX_CONFIG
63566905
63576906
6907 # _LT_FUNC_STRIPNAME_CNF
6908 # ----------------------
6909 # func_stripname_cnf prefix suffix name
6910 # strip PREFIX and SUFFIX off of NAME.
6911 # PREFIX and SUFFIX must not contain globbing or regex special
6912 # characters, hashes, percent signs, but SUFFIX may contain a leading
6913 # dot (in which case that matches only a dot).
6914 #
6915 # This function is identical to the (non-XSI) version of func_stripname,
6916 # except this one can be used by m4 code that may be executed by configure,
6917 # rather than the libtool script.
6918 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6919 AC_REQUIRE([_LT_DECL_SED])
6920 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6921 func_stripname_cnf ()
6922 {
6923 case ${2} in
6924 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6925 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6926 esac
6927 } # func_stripname_cnf
6928 ])# _LT_FUNC_STRIPNAME_CNF
6929
63586930 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
63596931 # ---------------------------------
63606932 # Figure out "hidden" library dependencies from verbose
63636935 # objects, libraries and library flags.
63646936 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
63656937 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6938 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
63666939 # Dependencies to place before and after the object being linked:
63676940 _LT_TAGVAR(predep_objects, $1)=
63686941 _LT_TAGVAR(postdep_objects, $1)=
64126985 }
64136986 };
64146987 _LT_EOF
6988 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6989 package foo
6990 func foo() {
6991 }
6992 _LT_EOF
64156993 ])
6994
6995 _lt_libdeps_save_CFLAGS=$CFLAGS
6996 case "$CC $CFLAGS " in #(
6997 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6998 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6999 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7000 esac
7001
64167002 dnl Parse the compiler output and extract the necessary
64177003 dnl objects, libraries and library flags.
64187004 if AC_TRY_EVAL(ac_compile); then
64247010 pre_test_object_deps_done=no
64257011
64267012 for p in `eval "$output_verbose_link_cmd"`; do
6427 case $p in
7013 case ${prev}${p} in
64287014
64297015 -L* | -R* | -l*)
64307016 # Some compilers place space between "-{L,R}" and the path.
64337019 test $p = "-R"; then
64347020 prev=$p
64357021 continue
6436 else
6437 prev=
64387022 fi
64397023
7024 # Expand the sysroot to ease extracting the directories later.
7025 if test -z "$prev"; then
7026 case $p in
7027 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7028 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7029 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7030 esac
7031 fi
7032 case $p in
7033 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7034 esac
64407035 if test "$pre_test_object_deps_done" = no; then
6441 case $p in
6442 -L* | -R*)
7036 case ${prev} in
7037 -L | -R)
64437038 # Internal compiler library paths should come after those
64447039 # provided the user. The postdeps already come after the
64457040 # user supplied libs so there is no need to process them.
64597054 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
64607055 fi
64617056 fi
7057 prev=
64627058 ;;
64637059
7060 *.lto.$objext) ;; # Ignore GCC LTO objects
64647061 *.$objext)
64657062 # This assumes that the test object file only shows up
64667063 # once in the compiler output.
64967093 fi
64977094
64987095 $RM -f confest.$objext
7096 CFLAGS=$_lt_libdeps_save_CFLAGS
64997097
65007098 # PORTME: override above test on systems where it is broken
65017099 m4_if([$1], [CXX],
65327130
65337131 solaris*)
65347132 case $cc_basename in
6535 CC*)
7133 CC* | sunCC*)
65367134 # The more standards-conforming stlport4 library is
65377135 # incompatible with the Cstd library. Avoid specifying
65387136 # it if it's in CXXFLAGS. Ignore libCrun as
65767174 ])# _LT_SYS_HIDDEN_LIBDEPS
65777175
65787176
6579 # _LT_PROG_F77
6580 # ------------
6581 # Since AC_PROG_F77 is broken, in that it returns the empty string
6582 # if there is no fortran compiler, we have our own version here.
6583 m4_defun([_LT_PROG_F77],
6584 [
6585 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6586 AC_PROG_F77
6587 if test -z "$F77" || test "X$F77" = "Xno"; then
6588 _lt_disable_F77=yes
6589 fi
6590 popdef([AC_MSG_ERROR])
6591 ])# _LT_PROG_F77
6592
6593 dnl aclocal-1.4 backwards compatibility:
6594 dnl AC_DEFUN([_LT_PROG_F77], [])
6595
6596
65977177 # _LT_LANG_F77_CONFIG([TAG])
65987178 # --------------------------
65997179 # Ensure that the configuration variables for a Fortran 77 compiler are
66007180 # suitably defined. These variables are subsequently used by _LT_CONFIG
66017181 # to write the compiler configuration to `libtool'.
66027182 m4_defun([_LT_LANG_F77_CONFIG],
6603 [AC_REQUIRE([_LT_PROG_F77])dnl
6604 AC_LANG_PUSH(Fortran 77)
7183 [AC_LANG_PUSH(Fortran 77)
7184 if test -z "$F77" || test "X$F77" = "Xno"; then
7185 _lt_disable_F77=yes
7186 fi
66057187
66067188 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
66077189 _LT_TAGVAR(allow_undefined_flag, $1)=
66117193 _LT_TAGVAR(hardcode_direct, $1)=no
66127194 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
66137195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6614 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
66157196 _LT_TAGVAR(hardcode_libdir_separator, $1)=
66167197 _LT_TAGVAR(hardcode_minus_L, $1)=no
66177198 _LT_TAGVAR(hardcode_automatic, $1)=no
66207201 _LT_TAGVAR(module_expsym_cmds, $1)=
66217202 _LT_TAGVAR(link_all_deplibs, $1)=unknown
66227203 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7204 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7205 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
66237206 _LT_TAGVAR(no_undefined_flag, $1)=
66247207 _LT_TAGVAR(whole_archive_flag_spec, $1)=
66257208 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
66597242 # Allow CC to be a program name with arguments.
66607243 lt_save_CC="$CC"
66617244 lt_save_GCC=$GCC
7245 lt_save_CFLAGS=$CFLAGS
66627246 CC=${F77-"f77"}
7247 CFLAGS=$FFLAGS
66637248 compiler=$CC
66647249 _LT_TAGVAR(compiler, $1)=$CC
66657250 _LT_CC_BASENAME([$compiler])
67137298
67147299 GCC=$lt_save_GCC
67157300 CC="$lt_save_CC"
7301 CFLAGS="$lt_save_CFLAGS"
67167302 fi # test "$_lt_disable_F77" != yes
67177303
67187304 AC_LANG_POP
67197305 ])# _LT_LANG_F77_CONFIG
6720
6721
6722 # _LT_PROG_FC
6723 # -----------
6724 # Since AC_PROG_FC is broken, in that it returns the empty string
6725 # if there is no fortran compiler, we have our own version here.
6726 m4_defun([_LT_PROG_FC],
6727 [
6728 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6729 AC_PROG_FC
6730 if test -z "$FC" || test "X$FC" = "Xno"; then
6731 _lt_disable_FC=yes
6732 fi
6733 popdef([AC_MSG_ERROR])
6734 ])# _LT_PROG_FC
6735
6736 dnl aclocal-1.4 backwards compatibility:
6737 dnl AC_DEFUN([_LT_PROG_FC], [])
67387306
67397307
67407308 # _LT_LANG_FC_CONFIG([TAG])
67437311 # suitably defined. These variables are subsequently used by _LT_CONFIG
67447312 # to write the compiler configuration to `libtool'.
67457313 m4_defun([_LT_LANG_FC_CONFIG],
6746 [AC_REQUIRE([_LT_PROG_FC])dnl
6747 AC_LANG_PUSH(Fortran)
7314 [AC_LANG_PUSH(Fortran)
7315
7316 if test -z "$FC" || test "X$FC" = "Xno"; then
7317 _lt_disable_FC=yes
7318 fi
67487319
67497320 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67507321 _LT_TAGVAR(allow_undefined_flag, $1)=
67547325 _LT_TAGVAR(hardcode_direct, $1)=no
67557326 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
67567327 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6757 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
67587328 _LT_TAGVAR(hardcode_libdir_separator, $1)=
67597329 _LT_TAGVAR(hardcode_minus_L, $1)=no
67607330 _LT_TAGVAR(hardcode_automatic, $1)=no
67637333 _LT_TAGVAR(module_expsym_cmds, $1)=
67647334 _LT_TAGVAR(link_all_deplibs, $1)=unknown
67657335 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7336 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7337 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
67667338 _LT_TAGVAR(no_undefined_flag, $1)=
67677339 _LT_TAGVAR(whole_archive_flag_spec, $1)=
67687340 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
68027374 # Allow CC to be a program name with arguments.
68037375 lt_save_CC="$CC"
68047376 lt_save_GCC=$GCC
7377 lt_save_CFLAGS=$CFLAGS
68057378 CC=${FC-"f95"}
7379 CFLAGS=$FCFLAGS
68067380 compiler=$CC
68077381 GCC=$ac_cv_fc_compiler_gnu
68087382
68587432 fi # test -n "$compiler"
68597433
68607434 GCC=$lt_save_GCC
6861 CC="$lt_save_CC"
7435 CC=$lt_save_CC
7436 CFLAGS=$lt_save_CFLAGS
68627437 fi # test "$_lt_disable_FC" != yes
68637438
68647439 AC_LANG_POP
68957470 _LT_LINKER_BOILERPLATE
68967471
68977472 # Allow CC to be a program name with arguments.
6898 lt_save_CC="$CC"
7473 lt_save_CC=$CC
7474 lt_save_CFLAGS=$CFLAGS
68997475 lt_save_GCC=$GCC
69007476 GCC=yes
69017477 CC=${GCJ-"gcj"}
7478 CFLAGS=$GCJFLAGS
69027479 compiler=$CC
69037480 _LT_TAGVAR(compiler, $1)=$CC
69047481 _LT_TAGVAR(LD, $1)="$LD"
69087485 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
69097486
69107487 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7488 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7489 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69117490
69127491 ## CAVEAT EMPTOR:
69137492 ## There is no encapsulation within the following macros, do not change
69277506 AC_LANG_RESTORE
69287507
69297508 GCC=$lt_save_GCC
6930 CC="$lt_save_CC"
7509 CC=$lt_save_CC
7510 CFLAGS=$lt_save_CFLAGS
69317511 ])# _LT_LANG_GCJ_CONFIG
7512
7513
7514 # _LT_LANG_GO_CONFIG([TAG])
7515 # --------------------------
7516 # Ensure that the configuration variables for the GNU Go compiler
7517 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7518 # to write the compiler configuration to `libtool'.
7519 m4_defun([_LT_LANG_GO_CONFIG],
7520 [AC_REQUIRE([LT_PROG_GO])dnl
7521 AC_LANG_SAVE
7522
7523 # Source file extension for Go test sources.
7524 ac_ext=go
7525
7526 # Object file extension for compiled Go test sources.
7527 objext=o
7528 _LT_TAGVAR(objext, $1)=$objext
7529
7530 # Code to be used in simple compile tests
7531 lt_simple_compile_test_code="package main; func main() { }"
7532
7533 # Code to be used in simple link tests
7534 lt_simple_link_test_code='package main; func main() { }'
7535
7536 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7537 _LT_TAG_COMPILER
7538
7539 # save warnings/boilerplate of simple test code
7540 _LT_COMPILER_BOILERPLATE
7541 _LT_LINKER_BOILERPLATE
7542
7543 # Allow CC to be a program name with arguments.
7544 lt_save_CC=$CC
7545 lt_save_CFLAGS=$CFLAGS
7546 lt_save_GCC=$GCC
7547 GCC=yes
7548 CC=${GOC-"gccgo"}
7549 CFLAGS=$GOFLAGS
7550 compiler=$CC
7551 _LT_TAGVAR(compiler, $1)=$CC
7552 _LT_TAGVAR(LD, $1)="$LD"
7553 _LT_CC_BASENAME([$compiler])
7554
7555 # Go did not exist at the time GCC didn't implicitly link libc in.
7556 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7557
7558 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7559 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7560 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7561
7562 ## CAVEAT EMPTOR:
7563 ## There is no encapsulation within the following macros, do not change
7564 ## the running order or otherwise move them around unless you know exactly
7565 ## what you are doing...
7566 if test -n "$compiler"; then
7567 _LT_COMPILER_NO_RTTI($1)
7568 _LT_COMPILER_PIC($1)
7569 _LT_COMPILER_C_O($1)
7570 _LT_COMPILER_FILE_LOCKS($1)
7571 _LT_LINKER_SHLIBS($1)
7572 _LT_LINKER_HARDCODE_LIBPATH($1)
7573
7574 _LT_CONFIG($1)
7575 fi
7576
7577 AC_LANG_RESTORE
7578
7579 GCC=$lt_save_GCC
7580 CC=$lt_save_CC
7581 CFLAGS=$lt_save_CFLAGS
7582 ])# _LT_LANG_GO_CONFIG
69327583
69337584
69347585 # _LT_LANG_RC_CONFIG([TAG])
69627613
69637614 # Allow CC to be a program name with arguments.
69647615 lt_save_CC="$CC"
7616 lt_save_CFLAGS=$CFLAGS
69657617 lt_save_GCC=$GCC
69667618 GCC=
69677619 CC=${RC-"windres"}
7620 CFLAGS=
69687621 compiler=$CC
69697622 _LT_TAGVAR(compiler, $1)=$CC
69707623 _LT_CC_BASENAME([$compiler])
69777630
69787631 GCC=$lt_save_GCC
69797632 AC_LANG_RESTORE
6980 CC="$lt_save_CC"
7633 CC=$lt_save_CC
7634 CFLAGS=$lt_save_CFLAGS
69817635 ])# _LT_LANG_RC_CONFIG
69827636
69837637
69957649 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
69967650 dnl aclocal-1.4 backwards compatibility:
69977651 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7652
7653
7654 # LT_PROG_GO
7655 # ----------
7656 AC_DEFUN([LT_PROG_GO],
7657 [AC_CHECK_TOOL(GOC, gccgo,)
7658 ])
69987659
69997660
70007661 # LT_PROG_RC
70367697 AC_SUBST([OBJDUMP])
70377698 ])
70387699
7700 # _LT_DECL_DLLTOOL
7701 # ----------------
7702 # Ensure DLLTOOL variable is set.
7703 m4_defun([_LT_DECL_DLLTOOL],
7704 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7705 test -z "$DLLTOOL" && DLLTOOL=dlltool
7706 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7707 AC_SUBST([DLLTOOL])
7708 ])
70397709
70407710 # _LT_DECL_SED
70417711 # ------------
71297799 # Try some XSI features
71307800 xsi_shell=no
71317801 ( _lt_dummy="a/b/c"
7132 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7133 = c,a/b,, \
7802 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7803 = c,a/b,b/c, \
71347804 && eval 'test $(( 1 + 1 )) -eq 2 \
71357805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
71367806 && xsi_shell=yes
71697839 ])# _LT_CHECK_SHELL_FEATURES
71707840
71717841
7172 # _LT_PROG_XSI_SHELLFNS
7173 # ---------------------
7174 # Bourne and XSI compatible variants of some useful shell functions.
7175 m4_defun([_LT_PROG_XSI_SHELLFNS],
7176 [case $xsi_shell in
7177 yes)
7178 cat << \_LT_EOF >> "$cfgfile"
7179
7180 # func_dirname file append nondir_replacement
7181 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7182 # otherwise set result to NONDIR_REPLACEMENT.
7183 func_dirname ()
7184 {
7185 case ${1} in
7186 */*) func_dirname_result="${1%/*}${2}" ;;
7187 * ) func_dirname_result="${3}" ;;
7188 esac
7189 }
7190
7191 # func_basename file
7192 func_basename ()
7193 {
7194 func_basename_result="${1##*/}"
7195 }
7196
7197 # func_dirname_and_basename file append nondir_replacement
7198 # perform func_basename and func_dirname in a single function
7199 # call:
7200 # dirname: Compute the dirname of FILE. If nonempty,
7201 # add APPEND to the result, otherwise set result
7202 # to NONDIR_REPLACEMENT.
7203 # value returned in "$func_dirname_result"
7204 # basename: Compute filename of FILE.
7205 # value retuned in "$func_basename_result"
7206 # Implementation must be kept synchronized with func_dirname
7207 # and func_basename. For efficiency, we do not delegate to
7208 # those functions but instead duplicate the functionality here.
7209 func_dirname_and_basename ()
7210 {
7211 case ${1} in
7212 */*) func_dirname_result="${1%/*}${2}" ;;
7213 * ) func_dirname_result="${3}" ;;
7214 esac
7215 func_basename_result="${1##*/}"
7216 }
7217
7218 # func_stripname prefix suffix name
7219 # strip PREFIX and SUFFIX off of NAME.
7220 # PREFIX and SUFFIX must not contain globbing or regex special
7221 # characters, hashes, percent signs, but SUFFIX may contain a leading
7222 # dot (in which case that matches only a dot).
7223 func_stripname ()
7224 {
7225 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7226 # positional parameters, so assign one to ordinary parameter first.
7227 func_stripname_result=${3}
7228 func_stripname_result=${func_stripname_result#"${1}"}
7229 func_stripname_result=${func_stripname_result%"${2}"}
7230 }
7231
7232 # func_opt_split
7233 func_opt_split ()
7234 {
7235 func_opt_split_opt=${1%%=*}
7236 func_opt_split_arg=${1#*=}
7237 }
7238
7239 # func_lo2o object
7240 func_lo2o ()
7241 {
7242 case ${1} in
7243 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7244 *) func_lo2o_result=${1} ;;
7245 esac
7246 }
7247
7248 # func_xform libobj-or-source
7249 func_xform ()
7250 {
7251 func_xform_result=${1%.*}.lo
7252 }
7253
7254 # func_arith arithmetic-term...
7255 func_arith ()
7256 {
7257 func_arith_result=$(( $[*] ))
7258 }
7259
7260 # func_len string
7261 # STRING may not start with a hyphen.
7262 func_len ()
7263 {
7264 func_len_result=${#1}
7265 }
7266
7267 _LT_EOF
7842 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7843 # ------------------------------------------------------
7844 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7845 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7846 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7847 [dnl {
7848 sed -e '/^$1 ()$/,/^} # $1 /c\
7849 $1 ()\
7850 {\
7851 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7852 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7853 && mv -f "$cfgfile.tmp" "$cfgfile" \
7854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7855 test 0 -eq $? || _lt_function_replace_fail=:
7856 ])
7857
7858
7859 # _LT_PROG_REPLACE_SHELLFNS
7860 # -------------------------
7861 # Replace existing portable implementations of several shell functions with
7862 # equivalent extended shell implementations where those features are available..
7863 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7864 [if test x"$xsi_shell" = xyes; then
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac])
7870
7871 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7872 func_basename_result="${1##*/}"])
7873
7874 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7875 case ${1} in
7876 */*) func_dirname_result="${1%/*}${2}" ;;
7877 * ) func_dirname_result="${3}" ;;
7878 esac
7879 func_basename_result="${1##*/}"])
7880
7881 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7882 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7883 # positional parameters, so assign one to ordinary parameter first.
7884 func_stripname_result=${3}
7885 func_stripname_result=${func_stripname_result#"${1}"}
7886 func_stripname_result=${func_stripname_result%"${2}"}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7889 func_split_long_opt_name=${1%%=*}
7890 func_split_long_opt_arg=${1#*=}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7893 func_split_short_opt_arg=${1#??}
7894 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7895
7896 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7897 case ${1} in
7898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7899 *) func_lo2o_result=${1} ;;
7900 esac])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7903
7904 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7905
7906 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7907 fi
7908
7909 if test x"$lt_shell_append" = xyes; then
7910 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7911
7912 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7913 func_quote_for_eval "${2}"
7914 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7915 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7916
7917 # Save a `func_append' function call where possible by direct use of '+='
7918 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7919 && mv -f "$cfgfile.tmp" "$cfgfile" \
7920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7921 test 0 -eq $? || _lt_function_replace_fail=:
7922 else
7923 # Save a `func_append' function call even when '+=' is not available
7924 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7925 && mv -f "$cfgfile.tmp" "$cfgfile" \
7926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7927 test 0 -eq $? || _lt_function_replace_fail=:
7928 fi
7929
7930 if test x"$_lt_function_replace_fail" = x":"; then
7931 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7932 fi
7933 ])
7934
7935 # _LT_PATH_CONVERSION_FUNCTIONS
7936 # -----------------------------
7937 # Determine which file name conversion functions should be used by
7938 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7939 # for certain cross-compile configurations and native mingw.
7940 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7941 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7942 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7943 AC_MSG_CHECKING([how to convert $build file names to $host format])
7944 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7945 [case $host in
7946 *-*-mingw* )
7947 case $build in
7948 *-*-mingw* ) # actually msys
7949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7950 ;;
7951 *-*-cygwin* )
7952 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7953 ;;
7954 * ) # otherwise, assume *nix
7955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7956 ;;
7957 esac
72687958 ;;
7269 *) # Bourne compatible functions.
7270 cat << \_LT_EOF >> "$cfgfile"
7271
7272 # func_dirname file append nondir_replacement
7273 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7274 # otherwise set result to NONDIR_REPLACEMENT.
7275 func_dirname ()
7276 {
7277 # Extract subdirectory from the argument.
7278 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7279 if test "X$func_dirname_result" = "X${1}"; then
7280 func_dirname_result="${3}"
7281 else
7282 func_dirname_result="$func_dirname_result${2}"
7283 fi
7284 }
7285
7286 # func_basename file
7287 func_basename ()
7288 {
7289 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7290 }
7291
7292 dnl func_dirname_and_basename
7293 dnl A portable version of this function is already defined in general.m4sh
7294 dnl so there is no need for it here.
7295
7296 # func_stripname prefix suffix name
7297 # strip PREFIX and SUFFIX off of NAME.
7298 # PREFIX and SUFFIX must not contain globbing or regex special
7299 # characters, hashes, percent signs, but SUFFIX may contain a leading
7300 # dot (in which case that matches only a dot).
7301 # func_strip_suffix prefix name
7302 func_stripname ()
7303 {
7304 case ${2} in
7305 .*) func_stripname_result=`$ECHO "X${3}" \
7306 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7307 *) func_stripname_result=`$ECHO "X${3}" \
7308 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7309 esac
7310 }
7311
7312 # sed scripts:
7313 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7314 my_sed_long_arg='1s/^-[[^=]]*=//'
7315
7316 # func_opt_split
7317 func_opt_split ()
7318 {
7319 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7320 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7321 }
7322
7323 # func_lo2o object
7324 func_lo2o ()
7325 {
7326 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7327 }
7328
7329 # func_xform libobj-or-source
7330 func_xform ()
7331 {
7332 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7333 }
7334
7335 # func_arith arithmetic-term...
7336 func_arith ()
7337 {
7338 func_arith_result=`expr "$[@]"`
7339 }
7340
7341 # func_len string
7342 # STRING may not start with a hyphen.
7343 func_len ()
7344 {
7345 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7346 }
7347
7348 _LT_EOF
7959 *-*-cygwin* )
7960 case $build in
7961 *-*-mingw* ) # actually msys
7962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7963 ;;
7964 *-*-cygwin* )
7965 lt_cv_to_host_file_cmd=func_convert_file_noop
7966 ;;
7967 * ) # otherwise, assume *nix
7968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7969 ;;
7970 esac
7971 ;;
7972 * ) # unhandled hosts (and "normal" native builds)
7973 lt_cv_to_host_file_cmd=func_convert_file_noop
7974 ;;
73497975 esac
7350
7351 case $lt_shell_append in
7352 yes)
7353 cat << \_LT_EOF >> "$cfgfile"
7354
7355 # func_append var value
7356 # Append VALUE to the end of shell variable VAR.
7357 func_append ()
7358 {
7359 eval "$[1]+=\$[2]"
7360 }
7361 _LT_EOF
7976 ])
7977 to_host_file_cmd=$lt_cv_to_host_file_cmd
7978 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7979 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7980 [0], [convert $build file names to $host format])dnl
7981
7982 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7983 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7984 [#assume ordinary cross tools, or native build.
7985 lt_cv_to_tool_file_cmd=func_convert_file_noop
7986 case $host in
7987 *-*-mingw* )
7988 case $build in
7989 *-*-mingw* ) # actually msys
7990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7991 ;;
7992 esac
73627993 ;;
7363 *)
7364 cat << \_LT_EOF >> "$cfgfile"
7365
7366 # func_append var value
7367 # Append VALUE to the end of shell variable VAR.
7368 func_append ()
7369 {
7370 eval "$[1]=\$$[1]\$[2]"
7371 }
7372
7373 _LT_EOF
7374 ;;
7375 esac
7994 esac
73767995 ])
7996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7997 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7998 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7999 [0], [convert $build files to toolchain format])dnl
8000 ])# _LT_PATH_CONVERSION_FUNCTIONS
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
34 # Written by Gary V. Vaughan, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
67 # unlimited permission to copy and/or distribute it, with or without
78 # modifications, as long as this notice is preserved.
89
9 # serial 6 ltoptions.m4
10 # serial 7 ltoptions.m4
1011
1112 # This is to help aclocal find these macros, as it can't see m4_define.
1213 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
124125 [enable_win32_dll=yes
125126
126127 case $host in
127 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
128129 AC_CHECK_TOOL(AS, as, false)
129130 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
130131 AC_CHECK_TOOL(OBJDUMP, objdump, false)
132133 esac
133134
134135 test -z "$AS" && AS=as
135 _LT_DECL([], [AS], [0], [Assembler program])dnl
136 _LT_DECL([], [AS], [1], [Assembler program])dnl
136137
137138 test -z "$DLLTOOL" && DLLTOOL=dlltool
138 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
139 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
139140
140141 test -z "$OBJDUMP" && OBJDUMP=objdump
141 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
142 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
142143 ])# win32-dll
143144
144145 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
324325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
325326 m4_define([_LT_WITH_PIC],
326327 [AC_ARG_WITH([pic],
327 [AS_HELP_STRING([--with-pic],
328 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
328329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
329 [pic_mode="$withval"],
330 [lt_p=${PACKAGE-default}
331 case $withval in
332 yes|no) pic_mode=$withval ;;
333 *)
334 pic_mode=default
335 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
339 if test "X$lt_pkg" = "X$lt_p"; then
340 pic_mode=yes
341 fi
342 done
343 IFS="$lt_save_ifs"
344 ;;
345 esac],
330346 [pic_mode=default])
331347
332348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
66 # unlimited permission to copy and/or distribute it, with or without
77 # modifications, as long as this notice is preserved.
88
9 # Generated from ltversion.in.
9 # @configure_input@
1010
11 # serial 3017 ltversion.m4
11 # serial 3337 ltversion.m4
1212 # This file is part of GNU Libtool
1313
14 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
15 m4_define([LT_PACKAGE_REVISION], [1.3017])
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
1616
1717 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.2.6b'
19 macro_revision='1.3017'
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
2020 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2121 _LT_DECL(, macro_revision, 0)
2222 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
33 # Written by Scott James Remnant, 2004.
44 #
55 # This file is free software; the Free Software Foundation gives
66 # unlimited permission to copy and/or distribute it, with or without
77 # modifications, as long as this notice is preserved.
88
9 # serial 4 lt~obsolete.m4
9 # serial 5 lt~obsolete.m4
1010
1111 # These exist entirely to fool aclocal when bootstrapping libtool.
1212 #
2424 # included after everything else. This provides aclocal with the
2525 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
2626 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
2828 #
2929 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3030 # Yes, that means every name once taken will need to remain here until
7676 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7777 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7878 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8079 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8180 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8281 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8988 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9089 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9190 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
91 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
92 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
93 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
94 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
95 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
96 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
97 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2012-01-06.13; # UTC
44
55 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
6 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
99 # This program is free software; you can redistribute it and/or modify
8383 help2man touch the output file
8484 lex create \`lex.yy.c', if possible, from existing .c
8585 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
8786 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
8887
8988 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
119118 case $1 in
120119 lex*|yacc*)
121120 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131121 ;;
132122
133123 *)
225215 \`Bison' from any GNU archive site."
226216 rm -f y.tab.c y.tab.h
227217 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
218 eval LASTARG=\${$#}
229219 case $LASTARG in
230220 *.y)
231221 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
255245 \`Flex' from any GNU archive site."
256246 rm -f lex.yy.c
257247 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
248 eval LASTARG=\${$#}
259249 case $LASTARG in
260250 *.l)
261251 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
317307 touch $file
318308 ;;
319309
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355310 *)
356311 echo 1>&2 "\
357312 WARNING: \`$1' is needed, and is $msg.
0 voGetAACEncAPI
1 cmnMemAlloc
2 cmnMemFree
3 cmnMemSet
4 cmnMemCopy
5 cmnMemCheck
6 cmnMemCompare
7 cmnMemMove