Codebase list libgeotiff / upstream/1.4.2_rc1
Imported Upstream version 1.4.2~rc1 Bas Couwenberg 7 years ago
42 changed file(s) with 7081 addition(s) and 10643 deletion(s). Raw diff Collapse all Expand all
1919 # Version information
2020 set(PROJECT_VERSION_MAJOR 1)
2121 set(PROJECT_VERSION_MINOR 4)
22 set(PROJECT_VERSION_PATCH 1)
22 set(PROJECT_VERSION_PATCH 2)
2323 set(PROJECT_VERSION
2424 "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
2525 set(GeoTIFF_VERSION ${PROJECT_VERSION})
2626
2727 # Set library version to match that of autoconf:
2828 # libgeotiff.so -> libgeotiff.so.2.1.1
29 # libgeotiff.so.2 -> libgeotiff.so.2.1.1
30 # libgeotiff.so.2.1.1
29 # libgeotiff.so.2 -> libgeotiff.so.2.1.2
30 # libgeotiff.so.2.1.2
3131 set(LINK_SOVERSION "2")
32 set(LINK_VERSION "2.1.1")
32 set(LINK_VERSION "2.1.2")
3333
3434 string (TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
3535 string (TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER)
106106 CHECK_INCLUDE_FILES(stdio.h HAVE_STDIO_H)
107107 CHECK_INCLUDE_FILES(stdlib.h HAVE_STDLIB_H)
108108 CHECK_INCLUDE_FILES(string.h HAVE_STRING_H)
109 CHECK_INCLUDE_FILES(strings.h HAVE_STRINGS_H)
109110
110111 ###############################################################################
111112 # User-defined build settings
0 2016-08-16 Even Rouault <even dot rouault at spatialys dot com>
1
2 * Preparing 1.4.2 release.
3
4 2016-08-16 Even Rouault <even dot rouault at spatialys dot com>
5 * Fix warning about strcasecmp not found in -std=c99/cmake build
6
7 2016-01-13 Even Rouault <even dot rouault at spatialys dot com>
8 * Upgrade to EPSG database v8.8
9
10 2016-01-11 Even Rouault <even dot rouault at spatialys dot com>
11 * geo_normalize.c: remove dead code (KS CID 138299)
12
13 2016-01-08 Even Rouault <even dot rouault at spatialys dot com>
14 * libgeotiff: fix likely false-positive null-ptr use
15 (KS CID 138459), remove useless null ptr chec(KS CID 138299), add dummy
16 checks for return value of GTIFKeyGetDOUBLE() (KS CID 138174),
17 leak in error code path (KS CID 138952)
18
19 2016-01-07 Even Rouault <even dot rouault at spatialys dot com>
20 *geo_print.c: a bit refactoring to avoid false positive warning from
21 Coverity Scan about cast of negative value
22
23 2015-12-30 Even Rouault <even dot rouault at spatialys dot com>
24 * ReadKey(): discard double key with invalid offset/count to prevent
25 out-of-bounds read in GTIFKeyGet()
26
27 2015-12-21 Even Rouault <even dot rouault at spatialys dot com>
28 *geo_simpletags.c: avoid Clang Static Analyzer warnings about potential
29 malloc(0)
30
31 2015-12-20 Even Rouault <even dot rouault at spatialys dot com>
32 * geo_print.c: comment out dead assignment with explicit FIXME
33
34 2015-12-20 Even Rouault <even dot rouault at spatialys dot com>
35 * geo_write.c: fix mostly false positive warnings reported by clang static
36 analyzer, except a missed check on return of _GTIFcalloc()
37
38 2015-12-06 Even Rouault <even dot rouault at spatialys dot com>
39 * Constify static arrays
40
41 2015-11-26 Even Rouault <even dot rouault at spatialys dot com>
42 * Remove leading double underscores in header inclusion guards
43
44 2015-11-22 Even Rouault <even dot rouault at spatialys dot com>
45 * Fix typos in comments (patch by Kurt Schwehr)
46
47 2015-11-22 Even Rouault <even dot rouault at spatialys dot com>
48 * ReadKey(): fix MSVC warning for TYPE_SHORT and count > 1 (although this
49 is completely untested)
50
51 2015-11-18 Even Rouault <even dot rouault at spatialys dot com>
52 * Fix clang -Wshorten-64-to-32 warnings
53
54 2015-11-18 Even Rouault <even dot rouault at spatialys dot com>
55 * Fix MSVC warnings
56
57 2015-11-02 Even Rouault <even dot rouault at spatialys dot com>
58 * GTIFGetPCSInfo(): correctly assign KvUserDefined to *pnProjOp in case
59 of failure (reported by Clang static analyzer)
60
61 2015-10-28 Even Rouault <even dot rouault at spatialys dot com>
62 * Fixes to suppress ''no previous declaration/prototype' warnings
63
64 2015-10-17 Even Rouault <even dot rouault at spatialys dot com>
65 * geo_normalize.c: use M_PI when available
66
67 2015-10-17 Even Rouault <even dot rouault at spatialys dot com>
68 * Fix -Wshadow warnings
69
70 2015-09-30 Even Rouault <even dot rouault at spatialys dot com>
71 * configure.ac: prepend JPEG library directory to LIBS (#71)
72
73 2015-09-29 Even Rouault <even dot rouault at spatialys dot com>
74 * Fix warning about unknown symbol _GTIFFree
75
76 2015-09-29 Even Rouault <even dot rouault at spatialys dot com>
77 * Free cdata on error in TYPE_ASCII. (GDAL CID 138951, patch by
78 Kurt Schwehr)
79
80 2015-05-02 Even Rouault <even dot rouault at spatialys dot com>
81 * GTIFGetProj4Defn(): add case to deal with
82 CT_HotineObliqueMercatorAzimuthCenter (except RSO variant that will
83 need further fix)
84
85 2015-04-01 Even Rouault <even dot rouault at spatialys dot com>
86 * geotiff_proj4.c: use CPLStrdup() instead of strdup() to avoid issues
87 with newer MSVC versions (GDAL #5907)
88
89 2015-03-01 Even Rouault <even dot rouault at spatialys dot com>
90 * csv/build_pcs.py, csv/csv_tools.py, csv/add_esri_column.py,
91 csv/pg_to_csv.py: add Python3 compatibility and pyflakes fixes
92
93 2015-03-01 Even Rouault <even dot rouault at spatialys dot com>
94 * csv/build_pcs.py: when converting rotational values for TOWGS84 clause
95 from other units into arc-seconds, do not output them with too big
96 accuracy.
97 * csv/datum_shift.csv, csv/gcs.csv: regenerated with above change.
98
99 2015-02-07 Even Rouault <even dot rouault at spatialys dot com>
100 * libgeotiff/geo_new.c, libgeotiff/geo_write.c, libgeotiff/geo_print.c:
101 Fix warnings about strict-aliasing issues
102
103 2014-12-27 Even Rouault <even dot rouault at spatialys dot com>
104 * libgeotiff/geo_normalize.c: GTIFGetDefn(): deal with Polyconic and
105 Equirectangular when reading PCS code only
106
107 2014-12-27 Even Rouault <even dot rouault at spatialys dot com>
108 * libgeotiff/geotiff_proj4.c: handle (as better as we can without a
109 proper CT_ constant) Mercator 2SP (#72)
110
111 2014-12-27 Even Rouault <even dot rouault at spatialys dot com>
112 * libgeotiff/geo_normalize.c: GTIFGetDefn():
113 fix for handling Mercator_2SP when reading PCS code only (#72)
114
115 2014-12-27 Even Rouault <even dot rouault at spatialys dot com>
116 * libgeotiff/cpl_serv.c, libgeotiff/geo_normalize.c: GTIFGetDefn():
117 issue a CE_Warning if .csv files cannot be found (GDAL #956)
118
119 2014-12-27 Even Rouault <even dot rouault at spatialys dot com>
120 * libgeotiff/geo_normalize.c: GTIFGetDefn(): fix decoding of Polar
121 Stereographic Variant B (EPSG 9829) (GDAL #3220)
122
123 2014-12-25 Even Rouault <even dot rouault at spatialys dot com>
124 * libgeotiff/geo_new.c, libgeotiff/geo_print.c, libgeotiff/geo_set.c:
125 Upstream compiler warnings fixes of libgeotiff from GDAL
126 (http://trac.osgeo.org/gdal/changeset/27745, GDAL #5414)
127
128 2014-12-23 Even Rouault <even dot rouault at spatialys dot com>
129 * libgeotiff/geo_normalize.c: GTIFGetDefn(): secure calls to
130 GTIFKeyGet() by checking that the type of the stored key matches the
131 expected type
132
133 2014-12-23 Even Rouault <even dot rouault at spatialys dot com>
134 * listgeo: fix/workaround a crash on a corrupted image generated by afl
135
0136 2014-09-13 Howard Butler <howard@hobu.co>
1137
2138 * CMake: Fix up SONAME and VERSION to better
109109 csv/unit_of_measure.c
110110 endif
111111
112 libgeotiff_la_LDFLAGS = -version-info 3:1:1
112 libgeotiff_la_LDFLAGS = -version-info 3:2:1
113113
114114 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
115115
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
4647
4748
4849 VPATH = @srcdir@
49 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
50 am__make_running_with_option = \
51 case $${target_option-} in \
52 ?) ;; \
53 *) echo "am__make_running_with_option: internal error: invalid" \
54 "target option '$${target_option-}' specified" >&2; \
55 exit 1;; \
56 esac; \
57 has_opt=no; \
58 sane_makeflags=$$MAKEFLAGS; \
59 if $(am__is_gnu_make); then \
60 sane_makeflags=$$MFLAGS; \
61 else \
62 case $$MAKEFLAGS in \
63 *\\[\ \ ]*) \
64 bs=\\; \
65 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
66 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
67 esac; \
68 fi; \
69 skip_next=no; \
70 strip_trailopt () \
71 { \
72 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
73 }; \
74 for flg in $$sane_makeflags; do \
75 test $$skip_next = yes && { skip_next=no; continue; }; \
76 case $$flg in \
77 *=*|--*) continue;; \
78 -*I) strip_trailopt 'I'; skip_next=yes;; \
79 -*I?*) strip_trailopt 'I';; \
80 -*O) strip_trailopt 'O'; skip_next=yes;; \
81 -*O?*) strip_trailopt 'O';; \
82 -*l) strip_trailopt 'l'; skip_next=yes;; \
83 -*l?*) strip_trailopt 'l';; \
84 -[dEDm]) skip_next=yes;; \
85 -[JT]) skip_next=yes;; \
86 esac; \
87 case $$flg in \
88 *$$target_option*) has_opt=yes; break;; \
89 esac; \
90 done; \
91 test $$has_opt = yes
92 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
93 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
9450 pkgdatadir = $(datadir)/@PACKAGE@
9551 pkgincludedir = $(includedir)/@PACKAGE@
9652 pkglibdir = $(libdir)/@PACKAGE@
10965 POST_UNINSTALL = :
11066 build_triplet = @build@
11167 host_triplet = @host@
112 DIST_COMMON = $(top_srcdir)/m4/doxygen.am INSTALL NEWS README AUTHORS \
113 ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
114 $(top_srcdir)/configure $(am__configure_deps) \
115 $(srcdir)/geo_config.h.in depcomp $(dist_csv_DATA) \
116 $(include_HEADERS) COPYING compile config.guess config.sub \
117 install-sh missing ltmain.sh
68 DIST_COMMON = README $(am__configure_deps) $(dist_csv_DATA) \
69 $(include_HEADERS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
70 $(srcdir)/geo_config.h.in $(top_srcdir)/configure \
71 $(top_srcdir)/m4/doxygen.am AUTHORS COPYING ChangeLog INSTALL \
72 NEWS config.guess config.sub depcomp install-sh ltmain.sh \
73 missing
11874 @PROJ_IS_CONFIG_TRUE@am__append_1 = @PROJ_INC@ -DHAVE_LIBPROJ=1
11975 @PROJECTS_H_IS_CONFIG_TRUE@am__append_2 = -DHAVE_PROJECTS_H=1
12076 @CSV_IS_CONFIG_TRUE@am__append_3 = csv/datum.c \
158114 am__base_list = \
159115 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
160116 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
161 am__uninstall_files_from_dir = { \
162 test -z "$$files" \
163 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
164 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
165 $(am__cd) "$$dir" && rm -f $$files; }; \
166 }
167117 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(csvdir)" \
168118 "$(DESTDIR)$(includedir)"
169119 LTLIBRARIES = $(lib_LTLIBRARIES)
183133 geo_tiffp.lo geo_trans.lo geo_write.lo geo_strtod.lo \
184134 geotiff_proj4.lo $(am__objects_1)
185135 libgeotiff_la_OBJECTS = $(am_libgeotiff_la_OBJECTS)
186 AM_V_lt = $(am__v_lt_@AM_V@)
187 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
188 am__v_lt_0 = --silent
189 am__v_lt_1 =
190 libgeotiff_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
136 libgeotiff_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
191137 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
192138 $(libgeotiff_la_LDFLAGS) $(LDFLAGS) -o $@
193 AM_V_P = $(am__v_P_@AM_V@)
194 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
195 am__v_P_0 = false
196 am__v_P_1 = :
197 AM_V_GEN = $(am__v_GEN_@AM_V@)
198 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
199 am__v_GEN_0 = @echo " GEN " $@;
200 am__v_GEN_1 =
201 AM_V_at = $(am__v_at_@AM_V@)
202 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
203 am__v_at_0 = @
204 am__v_at_1 =
205139 DEFAULT_INCLUDES = -I.@am__isrc@
206140 depcomp = $(SHELL) $(top_srcdir)/depcomp
207141 am__depfiles_maybe = depfiles
208142 am__mv = mv -f
209143 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
210144 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
211 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
212 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
213 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
214 $(AM_CFLAGS) $(CFLAGS)
215 AM_V_CC = $(am__v_CC_@AM_V@)
216 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
217 am__v_CC_0 = @echo " CC " $@;
218 am__v_CC_1 =
145 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
146 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
147 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
219148 CCLD = $(CC)
220 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
221 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
222 $(AM_LDFLAGS) $(LDFLAGS) -o $@
223 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
224 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
225 am__v_CCLD_0 = @echo " CCLD " $@;
226 am__v_CCLD_1 =
149 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
150 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
151 $(LDFLAGS) -o $@
227152 SOURCES = $(libgeotiff_la_SOURCES)
228153 DIST_SOURCES = $(am__libgeotiff_la_SOURCES_DIST)
229 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
230 ctags-recursive dvi-recursive html-recursive info-recursive \
231 install-data-recursive install-dvi-recursive \
232 install-exec-recursive install-html-recursive \
233 install-info-recursive install-pdf-recursive \
234 install-ps-recursive install-recursive installcheck-recursive \
235 installdirs-recursive pdf-recursive ps-recursive \
236 tags-recursive uninstall-recursive
237 am__can_run_installinfo = \
238 case $$AM_UPDATE_INFO_DIR in \
239 n|no|NO) false;; \
240 *) (install-info --version) >/dev/null 2>&1;; \
241 esac
154 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
155 html-recursive info-recursive install-data-recursive \
156 install-dvi-recursive install-exec-recursive \
157 install-html-recursive install-info-recursive \
158 install-pdf-recursive install-ps-recursive install-recursive \
159 installcheck-recursive installdirs-recursive pdf-recursive \
160 ps-recursive uninstall-recursive
242161 DATA = $(dist_csv_DATA)
243162 HEADERS = $(include_HEADERS)
244163 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
245164 distclean-recursive maintainer-clean-recursive
246 am__recursive_targets = \
247 $(RECURSIVE_TARGETS) \
248 $(RECURSIVE_CLEAN_TARGETS) \
249 $(am__extra_recursive_targets)
250 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
251 cscope distdir dist dist-all distcheck
252 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
253 $(LISP)geo_config.h.in
254 # Read a list of newline-separated strings from the standard input,
255 # and print each of them once, without duplicates. Input order is
256 # *not* preserved.
257 am__uniquify_input = $(AWK) '\
258 BEGIN { nonempty = 0; } \
259 { items[$$0] = 1; nonempty = 1; } \
260 END { if (nonempty) { for (i in items) print i; }; } \
261 '
262 # Make sure the list of sources is unique. This is necessary because,
263 # e.g., the same source file might be shared among _SOURCES variables
264 # for different programs/libraries.
265 am__define_uniq_tagged_files = \
266 list='$(am__tagged_files)'; \
267 unique=`for i in $$list; do \
268 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
269 done | $(am__uniquify_input)`
165 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
166 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
167 distdir dist dist-all distcheck
270168 ETAGS = etags
271169 CTAGS = ctags
272 CSCOPE = cscope
273170 DIST_SUBDIRS = $(SUBDIRS)
274171 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
275172 distdir = $(PACKAGE)-$(VERSION)
276173 top_distdir = $(distdir)
277174 am__remove_distdir = \
278 if test -d "$(distdir)"; then \
279 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
280 && rm -rf "$(distdir)" \
281 || { sleep 5 && rm -rf "$(distdir)"; }; \
282 else :; fi
283 am__post_remove_distdir = $(am__remove_distdir)
175 { test ! -d "$(distdir)" \
176 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
177 && rm -fr "$(distdir)"; }; }
284178 am__relativize = \
285179 dir0=`pwd`; \
286180 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
308202 reldir="$$dir2"
309203 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).zip
310204 GZIP_ENV = --best
311 DIST_TARGETS = dist-gzip dist-zip
312205 distuninstallcheck_listfiles = find . -type f -print
313 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
314 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
315206 distcleancheck_listfiles = find . -type f -print
316207 ACLOCAL = @ACLOCAL@
317208 AMTAR = @AMTAR@
318 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
319209 AR = @AR@
320210 AUTOCONF = @AUTOCONF@
321211 AUTOHEADER = @AUTOHEADER@
333223 CYGPATH_W = @CYGPATH_W@
334224 DEFS = @DEFS@
335225 DEPDIR = @DEPDIR@
336 DLLTOOL = @DLLTOOL@
337226 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
338227 DSYMUTIL = @DSYMUTIL@
339228 DUMPBIN = @DUMPBIN@
386275 LTLIBOBJS = @LTLIBOBJS@
387276 MAINT = @MAINT@
388277 MAKEINFO = @MAKEINFO@
389 MANIFEST_TOOL = @MANIFEST_TOOL@
390278 MKDIR_P = @MKDIR_P@
391279 NM = @NM@
392280 NMEDIT = @NMEDIT@
418306 abs_srcdir = @abs_srcdir@
419307 abs_top_builddir = @abs_top_builddir@
420308 abs_top_srcdir = @abs_top_srcdir@
421 ac_ct_AR = @ac_ct_AR@
422309 ac_ct_CC = @ac_ct_CC@
423310 ac_ct_CXX = @ac_ct_CXX@
424311 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
452339 libexecdir = @libexecdir@
453340 localedir = @localedir@
454341 localstatedir = @localstatedir@
342 lt_ECHO = @lt_ECHO@
455343 mandir = @mandir@
456344 mkdir_p = @mkdir_p@
457345 oldincludedir = @oldincludedir@
562450 geo_get.c geo_names.c geo_new.c geo_normalize.c geo_print.c \
563451 geo_set.c geo_simpletags.c geo_tiffp.c geo_trans.c geo_write.c \
564452 geo_strtod.c geotiff_proj4.c $(am__append_3)
565 libgeotiff_la_LDFLAGS = -version-info 3:1:1
453 libgeotiff_la_LDFLAGS = -version-info 3:2:1
566454 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
567455 lib_LTLIBRARIES = libgeotiff.la
568456 EXTRA_DIST = makefile.vc \
582470
583471 .SUFFIXES:
584472 .SUFFIXES: .c .lo .o .obj
585 am--refresh: Makefile
473 am--refresh:
586474 @:
587475 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/m4/doxygen.am $(am__configure_deps)
588476 @for dep in $?; do \
607495 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
608496 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
609497 esac;
610 $(top_srcdir)/m4/doxygen.am:
611498
612499 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
613500 $(SHELL) ./config.status --recheck
619506 $(am__aclocal_m4_deps):
620507
621508 geo_config.h: stamp-h1
622 @test -f $@ || rm -f stamp-h1
623 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
509 @if test ! -f $@; then \
510 rm -f stamp-h1; \
511 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
512 else :; fi
624513
625514 stamp-h1: $(srcdir)/geo_config.h.in $(top_builddir)/config.status
626515 @rm -f stamp-h1
632521
633522 distclean-hdr:
634523 -rm -f geo_config.h stamp-h1
635
636524 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
637525 @$(NORMAL_INSTALL)
526 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
638527 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
639528 list2=; for p in $$list; do \
640529 if test -f $$p; then \
642531 else :; fi; \
643532 done; \
644533 test -z "$$list2" || { \
645 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
646 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
647534 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
648535 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
649536 }
659546
660547 clean-libLTLIBRARIES:
661548 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
662 @list='$(lib_LTLIBRARIES)'; \
663 locs=`for p in $$list; do echo $$p; done | \
664 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
665 sort -u`; \
666 test -z "$$locs" || { \
667 echo rm -f $${locs}; \
668 rm -f $${locs}; \
669 }
670
671 libgeotiff.la: $(libgeotiff_la_OBJECTS) $(libgeotiff_la_DEPENDENCIES) $(EXTRA_libgeotiff_la_DEPENDENCIES)
672 $(AM_V_CCLD)$(libgeotiff_la_LINK) -rpath $(libdir) $(libgeotiff_la_OBJECTS) $(libgeotiff_la_LIBADD) $(LIBS)
549 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
550 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
551 test "$$dir" != "$$p" || dir=.; \
552 echo "rm -f \"$${dir}/so_locations\""; \
553 rm -f "$${dir}/so_locations"; \
554 done
555 libgeotiff.la: $(libgeotiff_la_OBJECTS) $(libgeotiff_la_DEPENDENCIES)
556 $(libgeotiff_la_LINK) -rpath $(libdir) $(libgeotiff_la_OBJECTS) $(libgeotiff_la_LIBADD) $(LIBS)
673557
674558 mostlyclean-compile:
675559 -rm -f *.$(OBJEXT)
702586 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unit_of_measure.Plo@am__quote@
703587
704588 .c.o:
705 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
706 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
707 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
589 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
590 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
591 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
708592 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
709 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
593 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
710594
711595 .c.obj:
712 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
713 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
714 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
596 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
597 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
598 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
715599 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
716 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
600 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
717601
718602 .c.lo:
719 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
720 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
721 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
603 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
604 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
605 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
722606 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
723 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
607 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
724608
725609 datum.lo: csv/datum.c
726 @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 datum.lo -MD -MP -MF $(DEPDIR)/datum.Tpo -c -o datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
727 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/datum.Tpo $(DEPDIR)/datum.Plo
728 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/datum.c' object='datum.lo' libtool=yes @AMDEPBACKSLASH@
610 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT datum.lo -MD -MP -MF $(DEPDIR)/datum.Tpo -c -o datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
611 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/datum.Tpo $(DEPDIR)/datum.Plo
612 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/datum.c' object='datum.lo' libtool=yes @AMDEPBACKSLASH@
729613 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
730 @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 datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
614 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
731615
732616 ellipsoid.lo: csv/ellipsoid.c
733 @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 ellipsoid.lo -MD -MP -MF $(DEPDIR)/ellipsoid.Tpo -c -o ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
734 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ellipsoid.Tpo $(DEPDIR)/ellipsoid.Plo
735 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/ellipsoid.c' object='ellipsoid.lo' libtool=yes @AMDEPBACKSLASH@
617 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ellipsoid.lo -MD -MP -MF $(DEPDIR)/ellipsoid.Tpo -c -o ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
618 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ellipsoid.Tpo $(DEPDIR)/ellipsoid.Plo
619 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/ellipsoid.c' object='ellipsoid.lo' libtool=yes @AMDEPBACKSLASH@
736620 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
737 @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 ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
621 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
738622
739623 gcs.lo: csv/gcs.c
740 @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 gcs.lo -MD -MP -MF $(DEPDIR)/gcs.Tpo -c -o gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
741 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gcs.Tpo $(DEPDIR)/gcs.Plo
742 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/gcs.c' object='gcs.lo' libtool=yes @AMDEPBACKSLASH@
624 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gcs.lo -MD -MP -MF $(DEPDIR)/gcs.Tpo -c -o gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
625 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gcs.Tpo $(DEPDIR)/gcs.Plo
626 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/gcs.c' object='gcs.lo' libtool=yes @AMDEPBACKSLASH@
743627 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
744 @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 gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
628 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
745629
746630 pcs.lo: csv/pcs.c
747 @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 pcs.lo -MD -MP -MF $(DEPDIR)/pcs.Tpo -c -o pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
748 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pcs.Tpo $(DEPDIR)/pcs.Plo
749 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/pcs.c' object='pcs.lo' libtool=yes @AMDEPBACKSLASH@
631 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pcs.lo -MD -MP -MF $(DEPDIR)/pcs.Tpo -c -o pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
632 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcs.Tpo $(DEPDIR)/pcs.Plo
633 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/pcs.c' object='pcs.lo' libtool=yes @AMDEPBACKSLASH@
750634 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
751 @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 pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
635 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
752636
753637 prime_meridian.lo: csv/prime_meridian.c
754 @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 prime_meridian.lo -MD -MP -MF $(DEPDIR)/prime_meridian.Tpo -c -o prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
755 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/prime_meridian.Tpo $(DEPDIR)/prime_meridian.Plo
756 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/prime_meridian.c' object='prime_meridian.lo' libtool=yes @AMDEPBACKSLASH@
638 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT prime_meridian.lo -MD -MP -MF $(DEPDIR)/prime_meridian.Tpo -c -o prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
639 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/prime_meridian.Tpo $(DEPDIR)/prime_meridian.Plo
640 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/prime_meridian.c' object='prime_meridian.lo' libtool=yes @AMDEPBACKSLASH@
757641 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
758 @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 prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
642 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
759643
760644 projop_wparm.lo: csv/projop_wparm.c
761 @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 projop_wparm.lo -MD -MP -MF $(DEPDIR)/projop_wparm.Tpo -c -o projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
762 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/projop_wparm.Tpo $(DEPDIR)/projop_wparm.Plo
763 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/projop_wparm.c' object='projop_wparm.lo' libtool=yes @AMDEPBACKSLASH@
645 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT projop_wparm.lo -MD -MP -MF $(DEPDIR)/projop_wparm.Tpo -c -o projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
646 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/projop_wparm.Tpo $(DEPDIR)/projop_wparm.Plo
647 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/projop_wparm.c' object='projop_wparm.lo' libtool=yes @AMDEPBACKSLASH@
764648 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
765 @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 projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
649 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
766650
767651 unit_of_measure.lo: csv/unit_of_measure.c
768 @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 unit_of_measure.lo -MD -MP -MF $(DEPDIR)/unit_of_measure.Tpo -c -o unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
769 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/unit_of_measure.Tpo $(DEPDIR)/unit_of_measure.Plo
770 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/unit_of_measure.c' object='unit_of_measure.lo' libtool=yes @AMDEPBACKSLASH@
652 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT unit_of_measure.lo -MD -MP -MF $(DEPDIR)/unit_of_measure.Tpo -c -o unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
653 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/unit_of_measure.Tpo $(DEPDIR)/unit_of_measure.Plo
654 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/unit_of_measure.c' object='unit_of_measure.lo' libtool=yes @AMDEPBACKSLASH@
771655 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
772 @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 unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
656 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
773657
774658 mostlyclean-libtool:
775659 -rm -f *.lo
781665 -rm -f libtool config.lt
782666 install-dist_csvDATA: $(dist_csv_DATA)
783667 @$(NORMAL_INSTALL)
668 test -z "$(csvdir)" || $(MKDIR_P) "$(DESTDIR)$(csvdir)"
784669 @list='$(dist_csv_DATA)'; test -n "$(csvdir)" || list=; \
785 if test -n "$$list"; then \
786 echo " $(MKDIR_P) '$(DESTDIR)$(csvdir)'"; \
787 $(MKDIR_P) "$(DESTDIR)$(csvdir)" || exit 1; \
788 fi; \
789670 for p in $$list; do \
790671 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
791672 echo "$$d$$p"; \
799680 @$(NORMAL_UNINSTALL)
800681 @list='$(dist_csv_DATA)'; test -n "$(csvdir)" || list=; \
801682 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
802 dir='$(DESTDIR)$(csvdir)'; $(am__uninstall_files_from_dir)
683 test -n "$$files" || exit 0; \
684 echo " ( cd '$(DESTDIR)$(csvdir)' && rm -f" $$files ")"; \
685 cd "$(DESTDIR)$(csvdir)" && rm -f $$files
803686 install-includeHEADERS: $(include_HEADERS)
804687 @$(NORMAL_INSTALL)
688 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
805689 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
806 if test -n "$$list"; then \
807 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
808 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
809 fi; \
810690 for p in $$list; do \
811691 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
812692 echo "$$d$$p"; \
820700 @$(NORMAL_UNINSTALL)
821701 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
822702 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
823 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
703 test -n "$$files" || exit 0; \
704 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
705 cd "$(DESTDIR)$(includedir)" && rm -f $$files
824706
825707 # This directory's subdirectories are mostly independent; you can cd
826 # into them and run 'make' without going through this Makefile.
827 # To change the values of 'make' variables: instead of editing Makefiles,
828 # (1) if the variable is set in 'config.status', edit 'config.status'
829 # (which will cause the Makefiles to be regenerated when you run 'make');
830 # (2) otherwise, pass the desired values on the 'make' command line.
831 $(am__recursive_targets):
832 @fail=; \
833 if $(am__make_keepgoing); then \
834 failcom='fail=yes'; \
835 else \
836 failcom='exit 1'; \
837 fi; \
708 # into them and run `make' without going through this Makefile.
709 # To change the values of `make' variables: instead of editing Makefiles,
710 # (1) if the variable is set in `config.status', edit `config.status'
711 # (which will cause the Makefiles to be regenerated when you run `make');
712 # (2) otherwise, pass the desired values on the `make' command line.
713 $(RECURSIVE_TARGETS):
714 @fail= failcom='exit 1'; \
715 for f in x $$MAKEFLAGS; do \
716 case $$f in \
717 *=* | --[!k]*);; \
718 *k*) failcom='fail=yes';; \
719 esac; \
720 done; \
838721 dot_seen=no; \
839722 target=`echo $@ | sed s/-recursive//`; \
840 case "$@" in \
841 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
842 *) list='$(SUBDIRS)' ;; \
843 esac; \
844 for subdir in $$list; do \
723 list='$(SUBDIRS)'; for subdir in $$list; do \
845724 echo "Making $$target in $$subdir"; \
846725 if test "$$subdir" = "."; then \
847726 dot_seen=yes; \
856735 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
857736 fi; test -z "$$fail"
858737
859 ID: $(am__tagged_files)
860 $(am__define_uniq_tagged_files); mkid -fID $$unique
861 tags: tags-recursive
862 TAGS: tags
863
864 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
738 $(RECURSIVE_CLEAN_TARGETS):
739 @fail= failcom='exit 1'; \
740 for f in x $$MAKEFLAGS; do \
741 case $$f in \
742 *=* | --[!k]*);; \
743 *k*) failcom='fail=yes';; \
744 esac; \
745 done; \
746 dot_seen=no; \
747 case "$@" in \
748 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
749 *) list='$(SUBDIRS)' ;; \
750 esac; \
751 rev=''; for subdir in $$list; do \
752 if test "$$subdir" = "."; then :; else \
753 rev="$$subdir $$rev"; \
754 fi; \
755 done; \
756 rev="$$rev ."; \
757 target=`echo $@ | sed s/-recursive//`; \
758 for subdir in $$rev; do \
759 echo "Making $$target in $$subdir"; \
760 if test "$$subdir" = "."; then \
761 local_target="$$target-am"; \
762 else \
763 local_target="$$target"; \
764 fi; \
765 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
766 || eval $$failcom; \
767 done && test -z "$$fail"
768 tags-recursive:
769 list='$(SUBDIRS)'; for subdir in $$list; do \
770 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
771 done
772 ctags-recursive:
773 list='$(SUBDIRS)'; for subdir in $$list; do \
774 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
775 done
776
777 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
778 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
779 unique=`for i in $$list; do \
780 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
781 done | \
782 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
783 END { if (nonempty) { for (i in files) print i; }; }'`; \
784 mkid -fID $$unique
785 tags: TAGS
786
787 TAGS: tags-recursive $(HEADERS) $(SOURCES) geo_config.h.in $(TAGS_DEPENDENCIES) \
788 $(TAGS_FILES) $(LISP)
865789 set x; \
866790 here=`pwd`; \
867791 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
877801 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
878802 fi; \
879803 done; \
880 $(am__define_uniq_tagged_files); \
804 list='$(SOURCES) $(HEADERS) geo_config.h.in $(LISP) $(TAGS_FILES)'; \
805 unique=`for i in $$list; do \
806 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
807 done | \
808 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
809 END { if (nonempty) { for (i in files) print i; }; }'`; \
881810 shift; \
882811 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
883812 test -n "$$unique" || unique=$$empty_fix; \
889818 $$unique; \
890819 fi; \
891820 fi
892 ctags: ctags-recursive
893
894 CTAGS: ctags
895 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
896 $(am__define_uniq_tagged_files); \
821 ctags: CTAGS
822 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) geo_config.h.in $(TAGS_DEPENDENCIES) \
823 $(TAGS_FILES) $(LISP)
824 list='$(SOURCES) $(HEADERS) geo_config.h.in $(LISP) $(TAGS_FILES)'; \
825 unique=`for i in $$list; do \
826 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
827 done | \
828 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
829 END { if (nonempty) { for (i in files) print i; }; }'`; \
897830 test -z "$(CTAGS_ARGS)$$unique" \
898831 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
899832 $$unique
902835 here=`$(am__cd) $(top_builddir) && pwd` \
903836 && $(am__cd) $(top_srcdir) \
904837 && gtags -i $(GTAGS_ARGS) "$$here"
905 cscope: cscope.files
906 test ! -s cscope.files \
907 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
908 clean-cscope:
909 -rm -f cscope.files
910 cscope.files: clean-cscope cscopelist
911 cscopelist: cscopelist-recursive
912
913 cscopelist-am: $(am__tagged_files)
914 list='$(am__tagged_files)'; \
915 case "$(srcdir)" in \
916 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
917 *) sdir=$(subdir)/$(srcdir) ;; \
918 esac; \
919 for i in $$list; do \
920 if test -f "$$i"; then \
921 echo "$(subdir)/$$i"; \
922 else \
923 echo "$$sdir/$$i"; \
924 fi; \
925 done >> $(top_builddir)/cscope.files
926838
927839 distclean-tags:
928840 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
929 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
930841
931842 distdir: $(DISTFILES)
932843 $(am__remove_distdir)
962873 done
963874 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
964875 if test "$$subdir" = .; then :; else \
965 $(am__make_dryrun) \
966 || test -d "$(distdir)/$$subdir" \
967 || $(MKDIR_P) "$(distdir)/$$subdir" \
968 || exit 1; \
876 test -d "$(distdir)/$$subdir" \
877 || $(MKDIR_P) "$(distdir)/$$subdir" \
878 || exit 1; \
879 fi; \
880 done
881 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
882 if test "$$subdir" = .; then :; else \
969883 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
970884 $(am__relativize); \
971885 new_distdir=$$reldir; \
994908 || chmod -R a+r "$(distdir)"
995909 dist-gzip: distdir
996910 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
997 $(am__post_remove_distdir)
911 $(am__remove_distdir)
998912
999913 dist-bzip2: distdir
1000 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
1001 $(am__post_remove_distdir)
1002
1003 dist-lzip: distdir
1004 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
1005 $(am__post_remove_distdir)
914 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
915 $(am__remove_distdir)
916
917 dist-lzma: distdir
918 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
919 $(am__remove_distdir)
1006920
1007921 dist-xz: distdir
1008 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
1009 $(am__post_remove_distdir)
922 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
923 $(am__remove_distdir)
1010924
1011925 dist-tarZ: distdir
1012 @echo WARNING: "Support for shar distribution archives is" \
1013 "deprecated." >&2
1014 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1015926 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1016 $(am__post_remove_distdir)
927 $(am__remove_distdir)
1017928
1018929 dist-shar: distdir
1019 @echo WARNING: "Support for distribution archives compressed with" \
1020 "legacy program 'compress' is deprecated." >&2
1021 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1022930 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1023 $(am__post_remove_distdir)
931 $(am__remove_distdir)
1024932 dist-zip: distdir
1025933 -rm -f $(distdir).zip
1026934 zip -rq $(distdir).zip $(distdir)
1027 $(am__post_remove_distdir)
1028
1029 dist dist-all:
1030 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
1031 $(am__post_remove_distdir)
935 $(am__remove_distdir)
936
937 dist dist-all: distdir
938 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
939 -rm -f $(distdir).zip
940 zip -rq $(distdir).zip $(distdir)
941 $(am__remove_distdir)
1032942
1033943 # This target untars the dist file and tries a VPATH configuration. Then
1034944 # it guarantees that the distribution is self-contained by making another
1039949 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
1040950 *.tar.bz2*) \
1041951 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1042 *.tar.lz*) \
1043 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
952 *.tar.lzma*) \
953 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
1044954 *.tar.xz*) \
1045955 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1046956 *.tar.Z*) \
1050960 *.zip*) \
1051961 unzip $(distdir).zip ;;\
1052962 esac
1053 chmod -R a-w $(distdir)
1054 chmod u+w $(distdir)
1055 mkdir $(distdir)/_build $(distdir)/_inst
963 chmod -R a-w $(distdir); chmod a+w $(distdir)
964 mkdir $(distdir)/_build
965 mkdir $(distdir)/_inst
1056966 chmod a-w $(distdir)
1057967 test -d $(distdir)/_build || exit 0; \
1058968 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1059969 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1060970 && am__cwd=`pwd` \
1061971 && $(am__cd) $(distdir)/_build \
1062 && ../configure \
1063 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
972 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1064973 $(DISTCHECK_CONFIGURE_FLAGS) \
1065 --srcdir=.. --prefix="$$dc_install_base" \
1066974 && $(MAKE) $(AM_MAKEFLAGS) \
1067975 && $(MAKE) $(AM_MAKEFLAGS) dvi \
1068976 && $(MAKE) $(AM_MAKEFLAGS) check \
1085993 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1086994 && cd "$$am__cwd" \
1087995 || exit 1
1088 $(am__post_remove_distdir)
996 $(am__remove_distdir)
1089997 @(echo "$(distdir) archives ready for distribution: "; \
1090998 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1091999 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
10921000 distuninstallcheck:
1093 @test -n '$(distuninstallcheck_dir)' || { \
1094 echo 'ERROR: trying to run $@ with an empty' \
1095 '$$(distuninstallcheck_dir)' >&2; \
1096 exit 1; \
1097 }; \
1098 $(am__cd) '$(distuninstallcheck_dir)' || { \
1099 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
1100 exit 1; \
1101 }; \
1102 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
1001 @$(am__cd) '$(distuninstallcheck_dir)' \
1002 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
11031003 || { echo "ERROR: files left after uninstall:" ; \
11041004 if test -n "$(DESTDIR)"; then \
11051005 echo " (check DESTDIR support)"; \
11331033
11341034 installcheck: installcheck-recursive
11351035 install-strip:
1136 if test -z '$(STRIP)'; then \
1137 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1138 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1139 install; \
1140 else \
1141 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1142 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1143 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1144 fi
1036 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1037 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1038 `test -z '$(STRIP)' || \
1039 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
11451040 mostlyclean-generic:
11461041 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
11471042
12291124 uninstall-am: uninstall-dist_csvDATA uninstall-includeHEADERS \
12301125 uninstall-libLTLIBRARIES
12311126
1232 .MAKE: $(am__recursive_targets) all install-am install-strip
1233
1234 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1235 am--refresh check check-am clean clean-cscope clean-generic \
1236 clean-libLTLIBRARIES clean-libtool cscope cscopelist-am ctags \
1237 ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \
1238 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
1239 distclean-compile distclean-generic distclean-hdr \
1240 distclean-libtool distclean-tags distcleancheck distdir \
1241 distuninstallcheck dvi dvi-am html html-am info info-am \
1242 install install-am install-data install-data-am \
1243 install-dist_csvDATA install-dvi install-dvi-am install-exec \
1244 install-exec-am install-html install-html-am \
1245 install-includeHEADERS install-info install-info-am \
1246 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
1247 install-ps install-ps-am install-strip installcheck \
1248 installcheck-am installdirs installdirs-am maintainer-clean \
1249 maintainer-clean-generic mostlyclean mostlyclean-compile \
1250 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1251 tags tags-am uninstall uninstall-am uninstall-dist_csvDATA \
1252 uninstall-includeHEADERS uninstall-libLTLIBRARIES
1127 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
1128 ctags-recursive install-am install-strip tags-recursive
1129
1130 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
1131 all all-am am--refresh check check-am clean clean-generic \
1132 clean-libLTLIBRARIES clean-libtool ctags ctags-recursive dist \
1133 dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
1134 dist-xz dist-zip distcheck distclean distclean-compile \
1135 distclean-generic distclean-hdr distclean-libtool \
1136 distclean-tags distcleancheck distdir distuninstallcheck dvi \
1137 dvi-am html html-am info info-am install install-am \
1138 install-data install-data-am install-dist_csvDATA install-dvi \
1139 install-dvi-am install-exec install-exec-am install-html \
1140 install-html-am install-includeHEADERS install-info \
1141 install-info-am install-libLTLIBRARIES install-man install-pdf \
1142 install-pdf-am install-ps install-ps-am install-strip \
1143 installcheck installcheck-am installdirs installdirs-am \
1144 maintainer-clean maintainer-clean-generic mostlyclean \
1145 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1146 pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
1147 uninstall-dist_csvDATA uninstall-includeHEADERS \
1148 uninstall-libLTLIBRARIES
12531149
12541150
12551151 @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
+1129
-1959
aclocal.m4 less more
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1413 m4_ifndef([AC_AUTOCONF_VERSION],
1514 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
16 [m4_warning([this file was generated for autoconf 2.65.
1817 You have another version of autoconf. It may work, but is not guaranteed to.
1918 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
2120
2221 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2322 #
2423 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26 # Foundation, Inc.
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
2725 # Written by Gordon Matzigkeit, 1996
2826 #
2927 # This file is free software; the Free Software Foundation gives
3230
3331 m4_define([_LT_COPYING], [dnl
3432 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36 # Foundation, Inc.
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
3734 # Written by Gordon Matzigkeit, 1996
3835 #
3936 # This file is part of GNU Libtool.
6057 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6158 ])
6259
63 # serial 57 LT_INIT
60 # serial 56 LT_INIT
6461
6562
6663 # LT_PREREQ(VERSION)
8986 # ------------------
9087 AC_DEFUN([LT_INIT],
9188 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
92 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9389 AC_BEFORE([$0], [LT_LANG])dnl
9490 AC_BEFORE([$0], [LT_OUTPUT])dnl
9591 AC_BEFORE([$0], [LTDL_INIT])dnl
105101 AC_REQUIRE([LTVERSION_VERSION])dnl
106102 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
107103 m4_require([_LT_PROG_LTMAIN])dnl
108
109 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
110104
111105 dnl Parse OPTIONS
112106 _LT_SET_OPTIONS([$0], [$1])
144138 *) break;;
145139 esac
146140 done
147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
148142 ])
149143
150144
164158 m4_defun([_LT_SETUP],
165159 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
166160 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
167 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
168 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
169
170 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
171 dnl
172161 _LT_DECL([], [host_alias], [0], [The host system])dnl
173162 _LT_DECL([], [host], [0])dnl
174163 _LT_DECL([], [host_os], [0])dnl
191180 dnl
192181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
193182 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
194 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
195183 m4_require([_LT_CMD_RELOAD])dnl
196184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
197 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
198185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
199186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
200 m4_require([_LT_WITH_SYSROOT])dnl
201187
202188 _LT_CONFIG_LIBTOOL_INIT([
203189 # See if we are running on zsh, and set the options which allow our
213199 _LT_CHECK_OBJDIR
214200
215201 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
216203
217204 case $host_os in
218205 aix3*)
226213 ;;
227214 esac
228215
216 # Sed substitution that helps us do robust quoting. It backslashifies
217 # metacharacters that are still active within double-quoted strings.
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
219
220 # Same as above, but do not quote variable references.
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
222
223 # Sed substitution to delay expansion of an escaped shell variable in a
224 # double_quote_subst'ed string.
225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
230 # Sed substitution to avoid accidental globbing in evaled expressions
231 no_glob_subst='s/\*/\\\*/g'
232
229233 # Global variables:
230234 ofile=libtool
231235 can_build_shared=yes
265269 _LT_CONFIG_COMMANDS
266270 ])# _LT_SETUP
267271
268
269 # _LT_PREPARE_SED_QUOTE_VARS
270 # --------------------------
271 # Define a few sed substitution that help us do robust quoting.
272 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
273 [# Backslashify metacharacters that are still active within
274 # double-quoted strings.
275 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
276
277 # Same as above, but do not quote variable references.
278 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
279
280 # Sed substitution to delay expansion of an escaped shell variable in a
281 # double_quote_subst'ed string.
282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
283
284 # Sed substitution to delay expansion of an escaped single quote.
285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
286
287 # Sed substitution to avoid accidental globbing in evaled expressions
288 no_glob_subst='s/\*/\\\*/g'
289 ])
290272
291273 # _LT_PROG_LTMAIN
292274 # ---------------
440422 # declaration there will have the same value as in `configure'. VARNAME
441423 # must have a single quote delimited value for this to work.
442424 m4_define([_LT_CONFIG_STATUS_DECLARE],
443 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
444426
445427
446428 # _LT_CONFIG_STATUS_DECLARATIONS
450432 # embedded single quotes properly. In configure, this macro expands
451433 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
452434 #
453 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
454436 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
455437 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
456438 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
549531 LTCFLAGS='$LTCFLAGS'
550532 compiler='$compiler_DEFAULT'
551533
552 # A function that is used when there is no print builtin or printf.
553 func_fallback_echo ()
554 {
555 eval 'cat <<_LTECHO_EOF
556 \$[]1
557 _LTECHO_EOF'
558 }
559
560534 # Quote evaled strings.
561535 for var in lt_decl_all_varnames([[ \
562536 ]], lt_decl_quote_varnames); do
563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
564538 *[[\\\\\\\`\\"\\\$]]*)
565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
566540 ;;
567541 *)
568542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
573547 # Double-quote double-evaled strings.
574548 for var in lt_decl_all_varnames([[ \
575549 ]], lt_decl_dquote_varnames); do
576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
577551 *[[\\\\\\\`\\"\\\$]]*)
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
579553 ;;
580554 *)
581555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
583557 esac
584558 done
585559
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
586567 _LT_OUTPUT_LIBTOOL_INIT
587568 ])
588569
589 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
590 # ------------------------------------
591 # Generate a child script FILE with all initialization necessary to
592 # reuse the environment learned by the parent script, and make the
593 # file executable. If COMMENT is supplied, it is inserted after the
594 # `#!' sequence but before initialization text begins. After this
595 # macro, additional text can be appended to FILE to form the body of
596 # the child script. The macro ends with non-zero status if the
597 # file could not be fully written (such as if the disk is full).
598 m4_ifdef([AS_INIT_GENERATED],
599 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
600 [m4_defun([_LT_GENERATED_FILE_INIT],
601 [m4_require([AS_PREPARE])]dnl
602 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
603 [lt_write_fail=0
604 cat >$1 <<_ASEOF || lt_write_fail=1
605 #! $SHELL
606 # Generated by $as_me.
607 $2
608 SHELL=\${CONFIG_SHELL-$SHELL}
609 export SHELL
610 _ASEOF
611 cat >>$1 <<\_ASEOF || lt_write_fail=1
612 AS_SHELL_SANITIZE
613 _AS_PREPARE
614 exec AS_MESSAGE_FD>&1
615 _ASEOF
616 test $lt_write_fail = 0 && chmod +x $1[]dnl
617 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
618570
619571 # LT_OUTPUT
620572 # ---------
624576 AC_DEFUN([LT_OUTPUT],
625577 [: ${CONFIG_LT=./config.lt}
626578 AC_MSG_NOTICE([creating $CONFIG_LT])
627 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
628 [# Run this file to recreate a libtool stub with the current configuration.])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
584 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
629587
630588 cat >>"$CONFIG_LT" <<\_LTEOF
631 lt_cl_silent=false
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
632593 exec AS_MESSAGE_LOG_FD>>config.log
633594 {
634595 echo
654615 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
655616 configured by $[0], generated by m4_PACKAGE_STRING.
656617
657 Copyright (C) 2011 Free Software Foundation, Inc.
618 Copyright (C) 2008 Free Software Foundation, Inc.
658619 This config.lt script is free software; the Free Software Foundation
659620 gives unlimited permision to copy, distribute and modify it."
660621
699660 # appending to config.log, which fails on DOS, as config.log is still kept
700661 # open by configure. Here we exec the FD to /dev/null, effectively closing
701662 # config.log, so it can be properly (re)opened and appended to by config.lt.
702 lt_cl_success=:
703 test "$silent" = yes &&
704 lt_config_lt_args="$lt_config_lt_args --quiet"
705 exec AS_MESSAGE_LOG_FD>/dev/null
706 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
707 exec AS_MESSAGE_LOG_FD>>config.log
708 $lt_cl_success || AS_EXIT(1)
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
709672 ])# LT_OUTPUT
710673
711674
768731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
769732 # text mode, it properly converts lines to CR/LF. This bash problem
770733 # is reportedly fixed, but why not run on old versions too?
771 sed '$q' "$ltmain" >> "$cfgfile" \
772 || (rm -f "$cfgfile"; exit 1)
773
774 _LT_PROG_REPLACE_SHELLFNS
775
776 mv -f "$cfgfile" "$ofile" ||
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
777743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
778744 chmod +x "$ofile"
779745 ],
818784 m4_case([$1],
819785 [C], [_LT_LANG(C)],
820786 [C++], [_LT_LANG(CXX)],
821 [Go], [_LT_LANG(GO)],
822787 [Java], [_LT_LANG(GCJ)],
823788 [Fortran 77], [_LT_LANG(F77)],
824789 [Fortran], [_LT_LANG(FC)],
838803 m4_define([_LT_LANG_]$1[_enabled], [])dnl
839804 _LT_LANG_$1_CONFIG($1)])dnl
840805 ])# _LT_LANG
841
842
843 m4_ifndef([AC_PROG_GO], [
844 # NOTE: This macro has been submitted for inclusion into #
845 # GNU Autoconf as AC_PROG_GO. When it is available in #
846 # a released version of Autoconf we should remove this #
847 # macro and use it instead. #
848 m4_defun([AC_PROG_GO],
849 [AC_LANG_PUSH(Go)dnl
850 AC_ARG_VAR([GOC], [Go compiler command])dnl
851 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
852 _AC_ARG_VAR_LDFLAGS()dnl
853 AC_CHECK_TOOL(GOC, gccgo)
854 if test -z "$GOC"; then
855 if test -n "$ac_tool_prefix"; then
856 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
857 fi
858 fi
859 if test -z "$GOC"; then
860 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
861 fi
862 ])#m4_defun
863 ])#m4_ifndef
864806
865807
866808 # _LT_LANG_DEFAULT_CONFIG
893835 m4_ifdef([LT_PROG_GCJ],
894836 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
895837
896 AC_PROVIDE_IFELSE([AC_PROG_GO],
897 [LT_LANG(GO)],
898 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
899
900838 AC_PROVIDE_IFELSE([LT_PROG_RC],
901839 [LT_LANG(RC)],
902840 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
907845 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
908846 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
909847 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
910 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
911848 dnl aclocal-1.4 backwards compatibility:
912849 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
913850 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
914851 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
915852 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
916 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
917853
918854
919855 # _LT_TAG_COMPILER
999935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1000936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1001937 _lt_result=$?
1002 # If there is a non-empty error log, and "single_module"
1003 # appears in it, assume the flag caused a linker warning
1004 if test -s conftest.err && $GREP single_module conftest.err; then
1005 cat conftest.err >&AS_MESSAGE_LOG_FD
1006 # Otherwise, if the output was created with a 0 exit code from
1007 # the compiler, it worked.
1008 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1009939 lt_cv_apple_cc_single_mod=yes
1010940 else
1011941 cat conftest.err >&AS_MESSAGE_LOG_FD
1013943 rm -rf libconftest.dylib*
1014944 rm -f conftest.*
1015945 fi])
1016
1017946 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1018947 [lt_cv_ld_exported_symbols_list],
1019948 [lt_cv_ld_exported_symbols_list=no
1024953 [lt_cv_ld_exported_symbols_list=yes],
1025954 [lt_cv_ld_exported_symbols_list=no])
1026955 LDFLAGS="$save_LDFLAGS"
1027 ])
1028
1029 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1030 [lt_cv_ld_force_load=no
1031 cat > conftest.c << _LT_EOF
1032 int forced_loaded() { return 2;}
1033 _LT_EOF
1034 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1035 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1036 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1037 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1038 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1039 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1040 cat > conftest.c << _LT_EOF
1041 int main() { return 0;}
1042 _LT_EOF
1043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1045 _lt_result=$?
1046 if test -s conftest.err && $GREP force_load conftest.err; then
1047 cat conftest.err >&AS_MESSAGE_LOG_FD
1048 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1049 lt_cv_ld_force_load=yes
1050 else
1051 cat conftest.err >&AS_MESSAGE_LOG_FD
1052 fi
1053 rm -f conftest.err libconftest.a conftest conftest.c
1054 rm -rf conftest.dSYM
1055956 ])
1056957 case $host_os in
1057958 rhapsody* | darwin1.[[012]])
1080981 else
1081982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1082983 fi
1083 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
984 if test "$DSYMUTIL" != ":"; then
1084985 _lt_dsymutil='~$DSYMUTIL $lib || :'
1085986 else
1086987 _lt_dsymutil=
1090991 ])
1091992
1092993
1093 # _LT_DARWIN_LINKER_FEATURES([TAG])
1094 # ---------------------------------
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
1095996 # Checks for linker and compiler features on darwin
1096997 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1097998 [
11001001 _LT_TAGVAR(hardcode_direct, $1)=no
11011002 _LT_TAGVAR(hardcode_automatic, $1)=yes
11021003 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1103 if test "$lt_cv_ld_force_load" = "yes"; then
1104 _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\"`'
1105 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1106 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1107 else
1108 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1109 fi
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
11101005 _LT_TAGVAR(link_all_deplibs, $1)=yes
11111006 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
11121007 case $cc_basename in
11141009 *) _lt_dar_can_shared=$GCC ;;
11151010 esac
11161011 if test "$_lt_dar_can_shared" = "yes"; then
1117 output_verbose_link_cmd=func_echo_all
1012 output_verbose_link_cmd=echo
11181013 _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}"
11191014 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11201015 _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}"
11301025 fi
11311026 ])
11321027
1133 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1134 # ----------------------------------
1028 # _LT_SYS_MODULE_PATH_AIX
1029 # -----------------------
11351030 # Links a minimal program and checks the executable
11361031 # for the system default hardcoded library path. In most cases,
11371032 # this is /usr/lib:/lib, but when the MPI compilers are used
11381033 # the location of the communication and MPI libs are included too.
11391034 # If we don't find anything, use the default library path according
11401035 # to the aix ld manual.
1141 # Store the results from the different compilers for each TAGNAME.
1142 # Allow to override them for all tags through lt_cv_aix_libpath.
11431036 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11441037 [m4_require([_LT_DECL_SED])dnl
1145 if test "${lt_cv_aix_libpath+set}" = set; then
1146 aix_libpath=$lt_cv_aix_libpath
1147 else
1148 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1149 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1150 lt_aix_libpath_sed='[
1151 /Import File Strings/,/^$/ {
1152 /^0/ {
1153 s/^0 *\([^ ]*\) *$/\1/
1154 p
1155 }
1156 }]'
1157 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1158 # Check for a 64-bit object if we didn't find anything.
1159 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1160 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1161 fi],[])
1162 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1164 fi
1165 ])
1166 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1167 fi
1038 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1039 lt_aix_libpath_sed='
1040 /Import File Strings/,/^$/ {
1041 /^0/ {
1042 s/^0 *\(.*\)$/\1/
1043 p
1044 }
1045 }'
1046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1047 # Check for a 64-bit object if we didn't find anything.
1048 if test -z "$aix_libpath"; then
1049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1050 fi],[])
1051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11681052 ])# _LT_SYS_MODULE_PATH_AIX
11691053
11701054
11711055 # _LT_SHELL_INIT(ARG)
11721056 # -------------------
11731057 m4_define([_LT_SHELL_INIT],
1174 [m4_divert_text([M4SH-INIT], [$1
1175 ])])# _LT_SHELL_INIT
1176
1058 [ifdef([AC_DIVERSION_NOTICE],
1059 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1060 [AC_DIVERT_PUSH(NOTICE)])
1061 $1
1062 AC_DIVERT_POP
1063 ])# _LT_SHELL_INIT
11771064
11781065
11791066 # _LT_PROG_ECHO_BACKSLASH
11801067 # -----------------------
1181 # Find how we can fake an echo command that does not interpret backslash.
1182 # In particular, with Autoconf 2.60 or later we add some code to the start
1183 # of the generated configure script which will find a shell with a builtin
1184 # printf (which we can use as an echo command).
1068 # Add some code to the start of the generated configure script which
1069 # will find an echo command which doesn't interpret backslashes.
11851070 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1186 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1189
1190 AC_MSG_CHECKING([how to print strings])
1191 # Test print first, because it will be a builtin if present.
1192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1194 ECHO='print -r --'
1195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1196 ECHO='printf %s\n'
1071 [_LT_SHELL_INIT([
1072 # Check that we are running under the correct shell.
1073 SHELL=${CONFIG_SHELL-/bin/sh}
1074
1075 case X$lt_ECHO in
1076 X*--fallback-echo)
1077 # Remove one level of quotation (which was required for Make).
1078 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1079 ;;
1080 esac
1081
1082 ECHO=${lt_ECHO-echo}
1083 if test "X[$]1" = X--no-reexec; then
1084 # Discard the --no-reexec flag, and continue.
1085 shift
1086 elif test "X[$]1" = X--fallback-echo; then
1087 # Avoid inline document here, it may be left over
1088 :
1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1090 # Yippee, $ECHO works!
1091 :
11971092 else
1198 # Use this function as a fallback that always works.
1199 func_fallback_echo ()
1200 {
1201 eval 'cat <<_LTECHO_EOF
1202 $[]1
1203 _LTECHO_EOF'
1204 }
1205 ECHO='func_fallback_echo'
1093 # Restart under the correct shell.
1094 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
12061095 fi
12071096
1208 # func_echo_all arg...
1209 # Invoke $ECHO with all args, space-separated.
1210 func_echo_all ()
1211 {
1212 $ECHO "$*"
1213 }
1214
1215 case "$ECHO" in
1216 printf*) AC_MSG_RESULT([printf]) ;;
1217 print*) AC_MSG_RESULT([print -r]) ;;
1218 *) AC_MSG_RESULT([cat]) ;;
1219 esac
1220
1221 m4_ifdef([_AS_DETECT_SUGGESTED],
1222 [_AS_DETECT_SUGGESTED([
1223 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1227 PATH=/empty FPATH=/empty; export PATH FPATH
1228 test "X`printf %s $ECHO`" = "X$ECHO" \
1229 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1230
1097 if test "X[$]1" = X--fallback-echo; then
1098 # used as fallback echo
1099 shift
1100 cat <<_LT_EOF
1101 [$]*
1102 _LT_EOF
1103 exit 0
1104 fi
1105
1106 # The HP-UX ksh and POSIX shell print the target directory to stdout
1107 # if CDPATH is set.
1108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1109
1110 if test -z "$lt_ECHO"; then
1111 if test "X${echo_test_string+set}" != Xset; then
1112 # find a string as large as possible, as long as the shell can cope with it
1113 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1114 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1115 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1116 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1117 then
1118 break
1119 fi
1120 done
1121 fi
1122
1123 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 :
1127 else
1128 # The Solaris, AIX, and Digital Unix default echo programs unquote
1129 # backslashes. This makes it impossible to quote backslashes using
1130 # echo "$something" | sed 's/\\/\\\\/g'
1131 #
1132 # So, first we look for a working echo in the user's PATH.
1133
1134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1135 for dir in $PATH /usr/ucb; do
1136 IFS="$lt_save_ifs"
1137 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1138 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1139 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1140 test "X$echo_testing_string" = "X$echo_test_string"; then
1141 ECHO="$dir/echo"
1142 break
1143 fi
1144 done
1145 IFS="$lt_save_ifs"
1146
1147 if test "X$ECHO" = Xecho; then
1148 # We didn't find a better echo, so look for alternatives.
1149 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1150 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1151 test "X$echo_testing_string" = "X$echo_test_string"; then
1152 # This shell has a builtin print -r that does the trick.
1153 ECHO='print -r'
1154 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1155 test "X$CONFIG_SHELL" != X/bin/ksh; then
1156 # If we have ksh, try running configure again with it.
1157 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1158 export ORIGINAL_CONFIG_SHELL
1159 CONFIG_SHELL=/bin/ksh
1160 export CONFIG_SHELL
1161 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1162 else
1163 # Try using printf.
1164 ECHO='printf %s\n'
1165 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1166 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 # Cool, printf works
1169 :
1170 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1175 export CONFIG_SHELL
1176 SHELL="$CONFIG_SHELL"
1177 export SHELL
1178 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1179 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1180 test "X$echo_testing_string" = 'X\t' &&
1181 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1182 test "X$echo_testing_string" = "X$echo_test_string"; then
1183 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1184 else
1185 # maybe with a smaller string...
1186 prev=:
1187
1188 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1189 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1190 then
1191 break
1192 fi
1193 prev="$cmd"
1194 done
1195
1196 if test "$prev" != 'sed 50q "[$]0"'; then
1197 echo_test_string=`eval $prev`
1198 export echo_test_string
1199 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1200 else
1201 # Oops. We lost completely, so just stick with echo.
1202 ECHO=echo
1203 fi
1204 fi
1205 fi
1206 fi
1207 fi
1208 fi
1209
1210 # Copy echo and quote the copy suitably for passing to libtool from
1211 # the Makefile, instead of quoting the original, which is used later.
1212 lt_ECHO=$ECHO
1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1214 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1215 fi
1216
1217 AC_SUBST(lt_ECHO)
1218 ])
12311219 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1232 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1220 _LT_DECL([], [ECHO], [1],
1221 [An echo program that does not interpret backslashes])
12331222 ])# _LT_PROG_ECHO_BACKSLASH
12341223
1235
1236 # _LT_WITH_SYSROOT
1237 # ----------------
1238 AC_DEFUN([_LT_WITH_SYSROOT],
1239 [AC_MSG_CHECKING([for sysroot])
1240 AC_ARG_WITH([sysroot],
1241 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242 (or the compiler's sysroot if not specified).],
1243 [], [with_sysroot=no])
1244
1245 dnl lt_sysroot will always be passed unquoted. We quote it here
1246 dnl in case the user passed a directory name.
1247 lt_sysroot=
1248 case ${with_sysroot} in #(
1249 yes)
1250 if test "$GCC" = yes; then
1251 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1252 fi
1253 ;; #(
1254 /*)
1255 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1256 ;; #(
1257 no|'')
1258 ;; #(
1259 *)
1260 AC_MSG_RESULT([${with_sysroot}])
1261 AC_MSG_ERROR([The sysroot must be an absolute path.])
1262 ;;
1263 esac
1264
1265 AC_MSG_RESULT([${lt_sysroot:-no}])
1266 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267 [dependent libraries, and in which our libraries should be installed.])])
12681224
12691225 # _LT_ENABLE_LOCK
12701226 # ---------------
12941250 ;;
12951251 *-*-irix6*)
12961252 # Find out which ABI we are using.
1297 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1253 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
12981254 if AC_TRY_EVAL(ac_compile); then
12991255 if test "$lt_cv_prog_gnu_ld" = yes; then
13001256 case `/usr/bin/file conftest.$ac_objext` in
13251281 rm -rf conftest*
13261282 ;;
13271283
1328 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13291285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13301286 # Find out which ABI we are using.
13311287 echo 'int i;' > conftest.$ac_ext
13371293 LD="${LD-ld} -m elf_i386_fbsd"
13381294 ;;
13391295 x86_64-*linux*)
1340 case `/usr/bin/file conftest.o` in
1341 *x86-64*)
1342 LD="${LD-ld} -m elf32_x86_64"
1343 ;;
1344 *)
1345 LD="${LD-ld} -m elf_i386"
1346 ;;
1347 esac
1296 LD="${LD-ld} -m elf_i386"
13481297 ;;
1349 powerpc64le-*)
1350 LD="${LD-ld} -m elf32lppclinux"
1351 ;;
1352 powerpc64-*)
1298 ppc64-*linux*|powerpc64-*linux*)
13531299 LD="${LD-ld} -m elf32ppclinux"
13541300 ;;
13551301 s390x-*linux*)
13681314 x86_64-*linux*)
13691315 LD="${LD-ld} -m elf_x86_64"
13701316 ;;
1371 powerpcle-*)
1372 LD="${LD-ld} -m elf64lppc"
1373 ;;
1374 powerpc-*)
1317 ppc*-*linux*|powerpc*-*linux*)
13751318 LD="${LD-ld} -m elf64ppc"
13761319 ;;
13771320 s390*-*linux*|s390*-*tpf*)
14001343 CFLAGS="$SAVE_CFLAGS"
14011344 fi
14021345 ;;
1403 *-*solaris*)
1346 sparc*-*solaris*)
14041347 # Find out which ABI we are using.
14051348 echo 'int i;' > conftest.$ac_ext
14061349 if AC_TRY_EVAL(ac_compile); then
14071350 case `/usr/bin/file conftest.o` in
14081351 *64-bit*)
14091352 case $lt_cv_prog_gnu_ld in
1410 yes*)
1411 case $host in
1412 i?86-*-solaris*)
1413 LD="${LD-ld} -m elf_x86_64"
1414 ;;
1415 sparc*-*-solaris*)
1416 LD="${LD-ld} -m elf64_sparc"
1417 ;;
1418 esac
1419 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1420 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1421 LD="${LD-ld}_sol2"
1422 fi
1423 ;;
1353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14241354 *)
14251355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14261356 LD="${LD-ld} -64"
14381368 ])# _LT_ENABLE_LOCK
14391369
14401370
1441 # _LT_PROG_AR
1442 # -----------
1443 m4_defun([_LT_PROG_AR],
1444 [AC_CHECK_TOOLS(AR, [ar], false)
1445 : ${AR=ar}
1446 : ${AR_FLAGS=cru}
1447 _LT_DECL([], [AR], [1], [The archiver])
1448 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1449
1450 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1451 [lt_cv_ar_at_file=no
1452 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1453 [echo conftest.$ac_objext > conftest.lst
1454 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1455 AC_TRY_EVAL([lt_ar_try])
1456 if test "$ac_status" -eq 0; then
1457 # Ensure the archiver fails upon bogus file names.
1458 rm -f conftest.$ac_objext libconftest.a
1459 AC_TRY_EVAL([lt_ar_try])
1460 if test "$ac_status" -ne 0; then
1461 lt_cv_ar_at_file=@
1462 fi
1463 fi
1464 rm -f conftest.* libconftest.a
1465 ])
1466 ])
1467
1468 if test "x$lt_cv_ar_at_file" = xno; then
1469 archiver_list_spec=
1470 else
1471 archiver_list_spec=$lt_cv_ar_at_file
1472 fi
1473 _LT_DECL([], [archiver_list_spec], [1],
1474 [How to feed a file listing to the archiver])
1475 ])# _LT_PROG_AR
1476
1477
14781371 # _LT_CMD_OLD_ARCHIVE
14791372 # -------------------
14801373 m4_defun([_LT_CMD_OLD_ARCHIVE],
1481 [_LT_PROG_AR
1374 [AC_CHECK_TOOL(AR, ar, false)
1375 test -z "$AR" && AR=ar
1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
1377 _LT_DECL([], [AR], [1], [The archiver])
1378 _LT_DECL([], [AR_FLAGS], [1])
14821379
14831380 AC_CHECK_TOOL(STRIP, strip, :)
14841381 test -z "$STRIP" && STRIP=:
14971394 if test -n "$RANLIB"; then
14981395 case $host_os in
14991396 openbsd*)
1500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15011398 ;;
15021399 *)
1503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15041401 ;;
15051402 esac
1506 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15071404 fi
1508
1509 case $host_os in
1510 darwin*)
1511 lock_old_archive_extraction=yes ;;
1512 *)
1513 lock_old_archive_extraction=no ;;
1514 esac
15151405 _LT_DECL([], [old_postinstall_cmds], [2])
15161406 _LT_DECL([], [old_postuninstall_cmds], [2])
15171407 _LT_TAGDECL([], [old_archive_cmds], [2],
15181408 [Commands used to build an old-style archive])
1519 _LT_DECL([], [lock_old_archive_extraction], [0],
1520 [Whether to use a lock for old archive extraction])
15211409 ])# _LT_CMD_OLD_ARCHIVE
15221410
15231411
15421430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431431 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
15441432 -e 's:$: $lt_compiler_flag:'`
1545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1433 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
15461434 (eval "$lt_compile" 2>conftest.err)
15471435 ac_status=$?
15481436 cat conftest.err >&AS_MESSAGE_LOG_FD
1549 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1437 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
15501438 if (exit $ac_status) && test -s "$ac_outfile"; then
15511439 # The compiler can only warn and ignore the option if not recognized
15521440 # So say no if there are warnings other than the usual output.
1553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15541442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15551443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15561444 $2=yes
15901478 if test -s conftest.err; then
15911479 # Append any errors to the config.log.
15921480 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1481 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15941482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15951483 if diff conftest.exp conftest.er2 >/dev/null; then
15961484 $2=yes
16501538 # the test eventually succeeds (with a max line length of 256k).
16511539 # Instead, let's just punt: use the minimum linelength reported by
16521540 # all of the supported platforms: 8192 (on NT/2K/XP).
1653 lt_cv_sys_max_cmd_len=8192;
1654 ;;
1655
1656 mint*)
1657 # On MiNT this can take a long time and run out of memory.
16581541 lt_cv_sys_max_cmd_len=8192;
16591542 ;;
16601543
16811564 interix*)
16821565 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16831566 lt_cv_sys_max_cmd_len=196608
1684 ;;
1685
1686 os2*)
1687 # The test takes a long time on OS/2.
1688 lt_cv_sys_max_cmd_len=8192
16891567 ;;
16901568
16911569 osf*)
17141592 ;;
17151593 *)
17161594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1717 if test -n "$lt_cv_sys_max_cmd_len" && \
1718 test undefined != "$lt_cv_sys_max_cmd_len"; then
1595 if test -n "$lt_cv_sys_max_cmd_len"; then
17191596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
17201597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
17211598 else
17281605 # If test is not a shell built-in, we'll probably end up computing a
17291606 # maximum length that is only half of the actual maximum length, but
17301607 # we can't tell.
1731 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1732 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1608 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1609 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
17331610 test $i != 17 # 1/2 MB should be enough
17341611 do
17351612 i=`expr $i + 1`
17801657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17811658 lt_status=$lt_dlunknown
17821659 cat > conftest.$ac_ext <<_LT_EOF
1783 [#line $LINENO "configure"
1660 [#line __oline__ "configure"
17841661 #include "confdefs.h"
17851662
17861663 #if HAVE_DLFCN_H
18211698 # endif
18221699 #endif
18231700
1824 /* When -fvisbility=hidden is used, assume the code has been annotated
1825 correspondingly for the symbols needed. */
1826 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1827 int fnord () __attribute__((visibility("default")));
1828 #endif
1829
1830 int fnord () { return 42; }
1701 void fnord() { int i=42;}
18311702 int main ()
18321703 {
18331704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18361707 if (self)
18371708 {
18381709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1839 else
1840 {
1841 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1842 else puts (dlerror ());
1843 }
1710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18441711 /* dlclose (self); */
18451712 }
18461713 else
20161883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20171884 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
20181885 -e 's:$: $lt_compiler_flag:'`
2019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1886 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
20201887 (eval "$lt_compile" 2>out/conftest.err)
20211888 ac_status=$?
20221889 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1890 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
20241891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20251892 then
20261893 # The compiler can only warn and ignore the option if not recognized
20271894 # So say no if there are warnings
2028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20291896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20301897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20311898 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
21842051 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
21852052 m4_require([_LT_DECL_OBJDUMP])dnl
21862053 m4_require([_LT_DECL_SED])dnl
2187 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
21882054 AC_MSG_CHECKING([dynamic linker characteristics])
21892055 m4_if([$1],
21902056 [], [
21932059 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
21942060 *) lt_awk_arg="/^libraries:/" ;;
21952061 esac
2196 case $host_os in
2197 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2198 *) lt_sed_strip_eq="s,=/,/,g" ;;
2199 esac
2200 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2201 case $lt_search_path_spec in
2202 *\;*)
2062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2063 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
22032064 # if the path contains ";" then we assume it to be the separator
22042065 # otherwise default to the standard path separator (i.e. ":") - it is
22052066 # assumed that no part of a normal pathname contains ";" but that should
22062067 # okay in the real world where ";" in dirpaths is itself problematic.
2207 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2208 ;;
2209 *)
2210 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2211 ;;
2212 esac
2068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2069 else
2070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2071 fi
22132072 # Ok, now we have the path, separated by spaces, we can step through it
22142073 # and add multilib dir if necessary.
22152074 lt_tmp_lt_search_path_spec=
22222081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22232082 fi
22242083 done
2225 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2084 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
22262085 BEGIN {RS=" "; FS="/|\n";} {
22272086 lt_foo="";
22282087 lt_count=0;
22422101 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
22432102 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
22442103 }'`
2245 # AWK program above erroneously prepends '/' to C:/dos/paths
2246 # for these hosts.
2247 case $host_os in
2248 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2249 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2250 esac
2251 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2104 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
22522105 else
22532106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22542107 fi])
22742127
22752128 case $host_os in
22762129 aix3*)
2277 version_type=linux # correct to gnu/linux during the next big refactor
2130 version_type=linux
22782131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22792132 shlibpath_var=LIBPATH
22802133
22832136 ;;
22842137
22852138 aix[[4-9]]*)
2286 version_type=linux # correct to gnu/linux during the next big refactor
2139 version_type=linux
22872140 need_lib_prefix=no
22882141 need_version=no
22892142 hardcode_into_libs=yes
23362189 m68k)
23372190 library_names_spec='$libname.ixlibrary $libname.a'
23382191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2339 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'
2192 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'
23402193 ;;
23412194 esac
23422195 ;;
23482201 ;;
23492202
23502203 bsdi[[45]]*)
2351 version_type=linux # correct to gnu/linux during the next big refactor
2204 version_type=linux
23522205 need_version=no
23532206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23542207 soname_spec='${libname}${release}${shared_ext}$major'
23672220 need_version=no
23682221 need_lib_prefix=no
23692222
2370 case $GCC,$cc_basename in
2371 yes,*)
2372 # gcc
2223 case $GCC,$host_os in
2224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
23732225 library_names_spec='$libname.dll.a'
23742226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23752227 postinstall_cmds='base_file=`basename \${file}`~
23902242 cygwin*)
23912243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23922244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2393 m4_if([$1], [],[
2394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23952246 ;;
23962247 mingw* | cegcc*)
23972248 # MinGW DLLs use traditional 'lib' prefix
23982249 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2250 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2251 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2252 # It is most probably a Windows format PATH printed by
2253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2254 # path with ; separators, and with drive letters. We can handle the
2255 # drive letters (cygwin fileutils understands them), so leave them,
2256 # especially as we might pass files found there to a mingw objdump,
2257 # which wouldn't understand a cygwinified path. Ahh.
2258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2259 else
2260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2261 fi
23992262 ;;
24002263 pw32*)
24012264 # pw32 DLLs use 'pw' prefix rather than 'lib'
24022265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
24032266 ;;
24042267 esac
2405 dynamic_linker='Win32 ld.exe'
24062268 ;;
24072269
2408 *,cl*)
2409 # Native MSVC
2410 libname_spec='$name'
2411 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2412 library_names_spec='${libname}.dll.lib'
2413
2414 case $build_os in
2415 mingw*)
2416 sys_lib_search_path_spec=
2417 lt_save_ifs=$IFS
2418 IFS=';'
2419 for lt_path in $LIB
2420 do
2421 IFS=$lt_save_ifs
2422 # Let DOS variable expansion print the short 8.3 style file name.
2423 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2424 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2425 done
2426 IFS=$lt_save_ifs
2427 # Convert to MSYS style.
2428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2429 ;;
2430 cygwin*)
2431 # Convert to unix form, then to dos form, then back to unix form
2432 # but this time dos style (no spaces!) so that the unix form looks
2433 # like /cygdrive/c/PROGRA~1:/cygdr...
2434 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2435 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2436 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2437 ;;
2438 *)
2439 sys_lib_search_path_spec="$LIB"
2440 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2441 # It is most probably a Windows format PATH.
2442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2443 else
2444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2445 fi
2446 # FIXME: find the short name or the path components, as spaces are
2447 # common. (e.g. "Program Files" -> "PROGRA~1")
2448 ;;
2449 esac
2450
2451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2452 postinstall_cmds='base_file=`basename \${file}`~
2453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2454 dldir=$destdir/`dirname \$dlpath`~
2455 test -d \$dldir || mkdir -p \$dldir~
2456 $install_prog $dir/$dlname \$dldir/$dlname'
2457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2458 dlpath=$dir/\$dldll~
2459 $RM \$dlpath'
2460 shlibpath_overrides_runpath=yes
2461 dynamic_linker='Win32 link.exe'
2462 ;;
2463
24642270 *)
2465 # Assume MSVC wrapper
24662271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2467 dynamic_linker='Win32 ld.exe'
24682272 ;;
24692273 esac
2274 dynamic_linker='Win32 ld.exe'
24702275 # FIXME: first we should search . and the directory the executable is in
24712276 shlibpath_var=PATH
24722277 ;;
24872292 ;;
24882293
24892294 dgux*)
2490 version_type=linux # correct to gnu/linux during the next big refactor
2295 version_type=linux
24912296 need_lib_prefix=no
24922297 need_version=no
24932298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24942299 soname_spec='${libname}${release}${shared_ext}$major'
24952300 shlibpath_var=LD_LIBRARY_PATH
2301 ;;
2302
2303 freebsd1*)
2304 dynamic_linker=no
24962305 ;;
24972306
24982307 freebsd* | dragonfly*)
25022311 objformat=`/usr/bin/objformat`
25032312 else
25042313 case $host_os in
2505 freebsd[[23]].*) objformat=aout ;;
2314 freebsd[[123]]*) objformat=aout ;;
25062315 *) objformat=elf ;;
25072316 esac
25082317 fi
25202329 esac
25212330 shlibpath_var=LD_LIBRARY_PATH
25222331 case $host_os in
2523 freebsd2.*)
2332 freebsd2*)
25242333 shlibpath_overrides_runpath=yes
25252334 ;;
25262335 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
25392348 esac
25402349 ;;
25412350
2542 haiku*)
2543 version_type=linux # correct to gnu/linux during the next big refactor
2351 gnu*)
2352 version_type=linux
25442353 need_lib_prefix=no
25452354 need_version=no
2546 dynamic_linker="$host_os runtime_loader"
25472355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25482356 soname_spec='${libname}${release}${shared_ext}$major'
2549 shlibpath_var=LIBRARY_PATH
2550 shlibpath_overrides_runpath=yes
2551 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2357 shlibpath_var=LD_LIBRARY_PATH
25522358 hardcode_into_libs=yes
25532359 ;;
25542360
25942400 soname_spec='${libname}${release}${shared_ext}$major'
25952401 ;;
25962402 esac
2597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25982404 postinstall_cmds='chmod 555 $lib'
2599 # or fails outright, so override atomically:
2600 install_override_mode=555
26012405 ;;
26022406
26032407 interix[[3-9]]*)
2604 version_type=linux # correct to gnu/linux during the next big refactor
2408 version_type=linux
26052409 need_lib_prefix=no
26062410 need_version=no
26072411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26172421 nonstopux*) version_type=nonstopux ;;
26182422 *)
26192423 if test "$lt_cv_prog_gnu_ld" = yes; then
2620 version_type=linux # correct to gnu/linux during the next big refactor
2424 version_type=linux
26212425 else
26222426 version_type=irix
26232427 fi ;;
26542458 dynamic_linker=no
26552459 ;;
26562460
2657 # This must be glibc/ELF.
2658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2659 version_type=linux # correct to gnu/linux during the next big refactor
2461 # This must be Linux ELF.
2462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2463 version_type=linux
26602464 need_lib_prefix=no
26612465 need_version=no
26622466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26642468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26652469 shlibpath_var=LD_LIBRARY_PATH
26662470 shlibpath_overrides_runpath=no
2667
26682471 # Some binutils ld are patched to set DT_RUNPATH
2669 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2670 [lt_cv_shlibpath_overrides_runpath=no
2671 save_LDFLAGS=$LDFLAGS
2672 save_libdir=$libdir
2673 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2674 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2675 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2676 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2677 [lt_cv_shlibpath_overrides_runpath=yes])])
2678 LDFLAGS=$save_LDFLAGS
2679 libdir=$save_libdir
2680 ])
2681 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2472 save_LDFLAGS=$LDFLAGS
2473 save_libdir=$libdir
2474 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2475 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2476 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2477 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2478 [shlibpath_overrides_runpath=yes])])
2479 LDFLAGS=$save_LDFLAGS
2480 libdir=$save_libdir
26822481
26832482 # This implies no fast_install, which is unacceptable.
26842483 # Some rework will be needed to allow for fast_install
26872486
26882487 # Append ld.so.conf contents to the search path
26892488 if test -f /etc/ld.so.conf; then
2690 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' ' '`
2489 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' ' '`
26912490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26922491 fi
26932492
27312530 ;;
27322531
27332532 newsos6)
2734 version_type=linux # correct to gnu/linux during the next big refactor
2533 version_type=linux
27352534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27362535 shlibpath_var=LD_LIBRARY_PATH
27372536 shlibpath_overrides_runpath=yes
28002599 ;;
28012600
28022601 solaris*)
2803 version_type=linux # correct to gnu/linux during the next big refactor
2602 version_type=linux
28042603 need_lib_prefix=no
28052604 need_version=no
28062605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28252624 ;;
28262625
28272626 sysv4 | sysv4.3*)
2828 version_type=linux # correct to gnu/linux during the next big refactor
2627 version_type=linux
28292628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28302629 soname_spec='${libname}${release}${shared_ext}$major'
28312630 shlibpath_var=LD_LIBRARY_PATH
28492648
28502649 sysv4*MP*)
28512650 if test -d /usr/nec ;then
2852 version_type=linux # correct to gnu/linux during the next big refactor
2651 version_type=linux
28532652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28542653 soname_spec='$libname${shared_ext}.$major'
28552654 shlibpath_var=LD_LIBRARY_PATH
28802679
28812680 tpf*)
28822681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2883 version_type=linux # correct to gnu/linux during the next big refactor
2682 version_type=linux
28842683 need_lib_prefix=no
28852684 need_version=no
28862685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28902689 ;;
28912690
28922691 uts4*)
2893 version_type=linux # correct to gnu/linux during the next big refactor
2692 version_type=linux
28942693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28952694 soname_spec='${libname}${release}${shared_ext}$major'
28962695 shlibpath_var=LD_LIBRARY_PATH
29322731 The last name is the one that the linker finds with -lNAME]])
29332732 _LT_DECL([], [soname_spec], [1],
29342733 [[The coded name of the library, if different from the real name]])
2935 _LT_DECL([], [install_override_mode], [1],
2936 [Permission mode override for installation of shared libraries])
29372734 _LT_DECL([], [postinstall_cmds], [2],
29382735 [Command to use after installation of a shared archive])
29392736 _LT_DECL([], [postuninstall_cmds], [2],
30462843 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
30472844 m4_require([_LT_DECL_SED])dnl
30482845 m4_require([_LT_DECL_EGREP])dnl
3049 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
30502846
30512847 AC_ARG_WITH([gnu-ld],
30522848 [AS_HELP_STRING([--with-gnu-ld],
31682964 esac
31692965 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31702966 case $host_os in
3171 cygwin* | mingw* | pw32* | cegcc*)
3172 if test "$GCC" != yes; then
3173 reload_cmds=false
3174 fi
3175 ;;
31762967 darwin*)
31772968 if test "$GCC" = yes; then
31782969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
31812972 fi
31822973 ;;
31832974 esac
3184 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3185 _LT_TAGDECL([], [reload_cmds], [2])dnl
2975 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2976 _LT_DECL([], [reload_cmds], [2])dnl
31862977 ])# _LT_CMD_RELOAD
31872978
31882979
32343025 # Base MSYS/MinGW do not provide the 'file' command needed by
32353026 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32363027 # unless we find 'file', for example because we are cross-compiling.
3237 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3238 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3028 if ( file / ) >/dev/null 2>&1; then
32393029 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32403030 lt_cv_file_magic_cmd='func_win32_libid'
32413031 else
3242 # Keep this pattern in sync with the one in func_win32_libid.
3243 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3032 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
32443033 lt_cv_file_magic_cmd='$OBJDUMP -f'
32453034 fi
32463035 ;;
32473036
3248 cegcc*)
3037 cegcc)
32493038 # use the weaker test based on 'objdump'. See mingw*.
32503039 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
32513040 lt_cv_file_magic_cmd='$OBJDUMP -f'
32713060 fi
32723061 ;;
32733062
3274 haiku*)
3063 gnu*)
32753064 lt_cv_deplibs_check_method=pass_all
32763065 ;;
32773066
32833072 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
32843073 ;;
32853074 hppa*64*)
3286 [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]']
3075 [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]']
32873076 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
32883077 ;;
32893078 *)
3290 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3079 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
32913080 lt_cv_file_magic_test_file=/usr/lib/libc.sl
32923081 ;;
32933082 esac
33083097 lt_cv_deplibs_check_method=pass_all
33093098 ;;
33103099
3311 # This must be glibc/ELF.
3312 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3100 # This must be Linux ELF.
3101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
33133102 lt_cv_deplibs_check_method=pass_all
33143103 ;;
33153104
33873176 ;;
33883177 esac
33893178 ])
3390
3391 file_magic_glob=
3392 want_nocaseglob=no
3393 if test "$build" = "$host"; then
3394 case $host_os in
3395 mingw* | pw32*)
3396 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3397 want_nocaseglob=yes
3398 else
3399 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3400 fi
3401 ;;
3402 esac
3403 fi
3404
34053179 file_magic_cmd=$lt_cv_file_magic_cmd
34063180 deplibs_check_method=$lt_cv_deplibs_check_method
34073181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
34093183 _LT_DECL([], [deplibs_check_method], [1],
34103184 [Method to check whether dependent libraries are shared objects])
34113185 _LT_DECL([], [file_magic_cmd], [1],
3412 [Command to use when deplibs_check_method = "file_magic"])
3413 _LT_DECL([], [file_magic_glob], [1],
3414 [How to find potential files when deplibs_check_method = "file_magic"])
3415 _LT_DECL([], [want_nocaseglob], [1],
3416 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3186 [Command to use when deplibs_check_method == "file_magic"])
34173187 ])# _LT_CHECK_MAGIC_METHOD
34183188
34193189
34703240 NM="$lt_cv_path_NM"
34713241 else
34723242 # Didn't find any BSD compatible name lister, look for dumpbin.
3473 if test -n "$DUMPBIN"; then :
3474 # Let the user override the test.
3475 else
3476 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3477 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3478 *COFF*)
3479 DUMPBIN="$DUMPBIN -symbols"
3480 ;;
3481 *)
3482 DUMPBIN=:
3483 ;;
3484 esac
3485 fi
3243 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
34863244 AC_SUBST([DUMPBIN])
34873245 if test "$DUMPBIN" != ":"; then
34883246 NM="$DUMPBIN"
34953253 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
34963254 [lt_cv_nm_interface="BSD nm"
34973255 echo "int some_variable = 0;" > conftest.$ac_ext
3498 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3256 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
34993257 (eval "$ac_compile" 2>conftest.err)
35003258 cat conftest.err >&AS_MESSAGE_LOG_FD
3501 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3259 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
35023260 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
35033261 cat conftest.err >&AS_MESSAGE_LOG_FD
3504 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3262 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
35053263 cat conftest.out >&AS_MESSAGE_LOG_FD
35063264 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
35073265 lt_cv_nm_interface="MS dumpbin"
35153273 dnl aclocal-1.4 backwards compatibility:
35163274 dnl AC_DEFUN([AM_PROG_NM], [])
35173275 dnl AC_DEFUN([AC_PROG_NM], [])
3518
3519 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3520 # --------------------------------
3521 # how to determine the name of the shared library
3522 # associated with a specific link library.
3523 # -- PORTME fill in with the dynamic library characteristics
3524 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3525 [m4_require([_LT_DECL_EGREP])
3526 m4_require([_LT_DECL_OBJDUMP])
3527 m4_require([_LT_DECL_DLLTOOL])
3528 AC_CACHE_CHECK([how to associate runtime and link libraries],
3529 lt_cv_sharedlib_from_linklib_cmd,
3530 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3531
3532 case $host_os in
3533 cygwin* | mingw* | pw32* | cegcc*)
3534 # two different shell functions defined in ltmain.sh
3535 # decide which to use based on capabilities of $DLLTOOL
3536 case `$DLLTOOL --help 2>&1` in
3537 *--identify-strict*)
3538 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3539 ;;
3540 *)
3541 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3542 ;;
3543 esac
3544 ;;
3545 *)
3546 # fallback: assume linklib IS sharedlib
3547 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3548 ;;
3549 esac
3550 ])
3551 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3552 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3553
3554 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3555 [Command to associate shared and link libraries])
3556 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3557
3558
3559 # _LT_PATH_MANIFEST_TOOL
3560 # ----------------------
3561 # locate the manifest tool
3562 m4_defun([_LT_PATH_MANIFEST_TOOL],
3563 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3564 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3565 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3566 [lt_cv_path_mainfest_tool=no
3567 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3568 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3569 cat conftest.err >&AS_MESSAGE_LOG_FD
3570 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3571 lt_cv_path_mainfest_tool=yes
3572 fi
3573 rm -f conftest*])
3574 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3575 MANIFEST_TOOL=:
3576 fi
3577 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3578 ])# _LT_PATH_MANIFEST_TOOL
35793276
35803277
35813278 # LT_LIB_M
35853282 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
35863283 LIBM=
35873284 case $host in
3588 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3285 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
35893286 # These system don't have libm, or don't need it
35903287 ;;
35913288 *-ncr-sysv4.3*)
36133310 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
36143311
36153312 if test "$GCC" = yes; then
3616 case $cc_basename in
3617 nvcc*)
3618 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3619 *)
3620 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3621 esac
3313 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
36223314
36233315 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
36243316 lt_cv_prog_compiler_rtti_exceptions,
36353327 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
36363328 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
36373329 AC_REQUIRE([AC_PROG_CC])dnl
3638 AC_REQUIRE([AC_PROG_AWK])dnl
36393330 AC_REQUIRE([LT_PATH_NM])dnl
36403331 AC_REQUIRE([LT_PATH_LD])dnl
36413332 m4_require([_LT_DECL_SED])dnl
37033394 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
37043395
37053396 # Transform an extracted symbol line into symbol name and symbol address
3706 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3707 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'"
3397 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3398 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'"
37083399
37093400 # Handle CRLF in mingw tool chain
37103401 opt_cr=
37283419 # which start with @ or ?.
37293420 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37303421 " {last_section=section; section=\$ 3};"\
3731 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37323422 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
37333423 " \$ 0!~/External *\|/{next};"\
37343424 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37413431 else
37423432 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37433433 fi
3744 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
37453434
37463435 # Check to see that the pipe works correctly.
37473436 pipe_works=no
37633452 if AC_TRY_EVAL(ac_compile); then
37643453 # Now try to grab the symbols.
37653454 nlist=conftest.nm
3766 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3455 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
37673456 # Try sorting and uniquifying the output.
37683457 if sort "$nlist" | uniq > "$nlist"T; then
37693458 mv -f "$nlist"T "$nlist"
37753464 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
37763465 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37773466 cat <<_LT_EOF > conftest.$ac_ext
3778 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3779 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3780 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3781 relocations are performed -- see ld's documentation on pseudo-relocs. */
3782 # define LT@&t@_DLSYM_CONST
3783 #elif defined(__osf__)
3784 /* This system does not cope well with relocations in const data. */
3785 # define LT@&t@_DLSYM_CONST
3786 #else
3787 # define LT@&t@_DLSYM_CONST const
3788 #endif
3789
37903467 #ifdef __cplusplus
37913468 extern "C" {
37923469 #endif
37983475 cat <<_LT_EOF >> conftest.$ac_ext
37993476
38003477 /* The mapping between symbol names and symbols. */
3801 LT@&t@_DLSYM_CONST struct {
3478 const struct {
38023479 const char *name;
38033480 void *address;
38043481 }
38243501 _LT_EOF
38253502 # Now try linking the two files.
38263503 mv conftest.$ac_objext conftstm.$ac_objext
3827 lt_globsym_save_LIBS=$LIBS
3828 lt_globsym_save_CFLAGS=$CFLAGS
3504 lt_save_LIBS="$LIBS"
3505 lt_save_CFLAGS="$CFLAGS"
38293506 LIBS="conftstm.$ac_objext"
38303507 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
38313508 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
38323509 pipe_works=yes
38333510 fi
3834 LIBS=$lt_globsym_save_LIBS
3835 CFLAGS=$lt_globsym_save_CFLAGS
3511 LIBS="$lt_save_LIBS"
3512 CFLAGS="$lt_save_CFLAGS"
38363513 else
38373514 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
38383515 fi
38653542 AC_MSG_RESULT(ok)
38663543 fi
38673544
3868 # Response file support.
3869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3870 nm_file_list_spec='@'
3871 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3872 nm_file_list_spec='@'
3873 fi
3874
38753545 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
38763546 [Take the output of nm and produce a listing of raw symbols and C names])
38773547 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38823552 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38833553 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38843554 [Transform the output of nm in a C name address pair when lib prefix is needed])
3885 _LT_DECL([], [nm_file_list_spec], [1],
3886 [Specify filename containing input files for $NM])
38873555 ]) # _LT_CMD_GLOBAL_SYMBOLS
38883556
38893557
38953563 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
38963564 _LT_TAGVAR(lt_prog_compiler_static, $1)=
38973565
3566 AC_MSG_CHECKING([for $compiler option to produce PIC])
38983567 m4_if([$1], [CXX], [
38993568 # C++ specific cases for pic, static, wl, etc.
39003569 if test "$GXX" = yes; then
39443613 *djgpp*)
39453614 # DJGPP does not support shared libraries at all
39463615 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3947 ;;
3948 haiku*)
3949 # PIC is the default for Haiku.
3950 # The "-static" flag exists, but is broken.
3951 _LT_TAGVAR(lt_prog_compiler_static, $1)=
39523616 ;;
39533617 interix[[3-9]]*)
39543618 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39983662 # _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"
39993663 ;;
40003664 esac
4001 ;;
4002 mingw* | cygwin* | os2* | pw32* | cegcc*)
4003 # This hack is so that the source file can tell whether it is being
4004 # built for inclusion in a dll (and should export symbols for example).
4005 m4_if([$1], [GCJ], [],
4006 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
40073665 ;;
40083666 dgux*)
40093667 case $cc_basename in
40613719 ;;
40623720 esac
40633721 ;;
4064 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
40653723 case $cc_basename in
40663724 KCC*)
40673725 # KAI C++ Compiler
40943752 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
40953753 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40963754 ;;
4097 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4098 # IBM XL 8.0, 9.0 on PPC and BlueGene
3755 xlc* | xlC*)
3756 # IBM XL 8.0 on PPC
40993757 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
41003758 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
41013759 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
41573815 ;;
41583816 solaris*)
41593817 case $cc_basename in
4160 CC* | sunCC*)
3818 CC*)
41613819 # Sun C++ 4.2, 5.x and Centerline C++
41623820 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
41633821 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42613919 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
42623920 ;;
42633921
4264 haiku*)
4265 # PIC is the default for Haiku.
4266 # The "-static" flag exists, but is broken.
4267 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4268 ;;
4269
42703922 hpux*)
42713923 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
42723924 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
43073959
43083960 *)
43093961 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4310 ;;
4311 esac
4312
4313 case $cc_basename in
4314 nvcc*) # Cuda Compiler Driver 2.2
4315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4316 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4317 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4318 fi
43193962 ;;
43203963 esac
43213964 else
43604003 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
43614004 ;;
43624005
4363 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4006 linux* | k*bsd*-gnu | kopensolaris*-gnu)
43644007 case $cc_basename in
43654008 # old Intel for x86_64 which still supported -KPIC.
43664009 ecc*)
43814024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
43824025 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
43834026 ;;
4384 nagfor*)
4385 # NAG Fortran compiler
4386 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4387 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4388 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4389 ;;
4390 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4027 pgcc* | pgf77* | pgf90* | pgf95*)
43914028 # Portland Group compilers (*not* the Pentium gcc compiler,
43924029 # which looks to be a dead project)
43934030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43994036 # All Alpha code is PIC.
44004037 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
44014038 ;;
4402 xl* | bgxl* | bgf* | mpixl*)
4403 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4039 xl*)
4040 # IBM XL C 8.0/Fortran 10.1 on PPC
44044041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
44054042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
44064043 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
44074044 ;;
44084045 *)
44094046 case `$CC -V 2>&1 | sed 5q` in
4410 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4411 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4414 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4415 ;;
4416 *Sun\ F* | *Sun*Fortran*)
4417 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4419 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4420 ;;
44214047 *Sun\ C*)
44224048 # Sun C 5.9
44234049 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
44244050 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44254051 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
44264052 ;;
4427 *Intel*\ [[CF]]*Compiler*)
4428 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4429 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4430 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4431 ;;
4432 *Portland\ Group*)
4433 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4434 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4053 *Sun\ F*)
4054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
44354056 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4057 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
44364058 ;;
44374059 esac
44384060 ;;
44644086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
44654087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44664088 case $cc_basename in
4467 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4089 f77* | f90* | f95*)
44684090 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
44694091 *)
44704092 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
45214143 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
45224144 ;;
45234145 esac
4524
4525 AC_CACHE_CHECK([for $compiler option to produce PIC],
4526 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4527 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4528 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4146 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4147 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4148 [How to pass a linker flag through the compiler])
45294149
45304150 #
45314151 # Check to make sure the PIC flag actually works.
45444164 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
45454165 [Additional compiler flags for building library objects])
45464166
4547 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4548 [How to pass a linker flag through the compiler])
45494167 #
45504168 # Check to make sure the static flag actually works.
45514169 #
45664184 m4_defun([_LT_LINKER_SHLIBS],
45674185 [AC_REQUIRE([LT_PATH_LD])dnl
45684186 AC_REQUIRE([LT_PATH_NM])dnl
4569 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
45704187 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
45714188 m4_require([_LT_DECL_EGREP])dnl
45724189 m4_require([_LT_DECL_SED])dnl
45754192 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
45764193 m4_if([$1], [CXX], [
45774194 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4578 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
45794195 case $host_os in
45804196 aix[[4-9]]*)
45814197 # If we're using GNU nm, then we don't want the "-C" option.
45824198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4583 # Also, AIX nm treats weak defined symbols like other global defined
4584 # symbols, whereas GNU nm marks them as "W".
45854199 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4586 _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'
4200 _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'
45874201 else
45884202 _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'
45894203 fi
45904204 ;;
45914205 pw32*)
45924206 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4593 ;;
4207 ;;
45944208 cygwin* | mingw* | cegcc*)
4595 case $cc_basename in
4596 cl*)
4597 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4598 ;;
4599 *)
4600 _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'
4601 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4602 ;;
4603 esac
4604 ;;
4605 linux* | k*bsd*-gnu | gnu*)
4209 _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'
4210 ;;
4211 linux* | k*bsd*-gnu)
46064212 _LT_TAGVAR(link_all_deplibs, $1)=no
4607 ;;
4213 ;;
46084214 *)
46094215 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4610 ;;
4216 ;;
46114217 esac
4218 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46124219 ], [
46134220 runpath_var=
46144221 _LT_TAGVAR(allow_undefined_flag, $1)=
46234230 _LT_TAGVAR(hardcode_direct, $1)=no
46244231 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
46254232 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4233 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
46264234 _LT_TAGVAR(hardcode_libdir_separator, $1)=
46274235 _LT_TAGVAR(hardcode_minus_L, $1)=no
46284236 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
46674275 openbsd*)
46684276 with_gnu_ld=no
46694277 ;;
4670 linux* | k*bsd*-gnu | gnu*)
4278 linux* | k*bsd*-gnu)
46714279 _LT_TAGVAR(link_all_deplibs, $1)=no
46724280 ;;
46734281 esac
46744282
46754283 _LT_TAGVAR(ld_shlibs, $1)=yes
4676
4677 # On some targets, GNU ld is compatible enough with the native linker
4678 # that we're better off using the native interface for both.
4679 lt_use_gnu_ld_interface=no
46804284 if test "$with_gnu_ld" = yes; then
4681 case $host_os in
4682 aix*)
4683 # The AIX port of GNU ld has always aspired to compatibility
4684 # with the native linker. However, as the warning in the GNU ld
4685 # block says, versions before 2.19.5* couldn't really create working
4686 # shared libraries, regardless of the interface used.
4687 case `$LD -v 2>&1` in
4688 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4689 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4690 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4691 *)
4692 lt_use_gnu_ld_interface=yes
4693 ;;
4694 esac
4695 ;;
4696 *)
4697 lt_use_gnu_ld_interface=yes
4698 ;;
4699 esac
4700 fi
4701
4702 if test "$lt_use_gnu_ld_interface" = yes; then
47034285 # If archive_cmds runs LD, not CC, wlarc should be empty
47044286 wlarc='${wl}'
47054287
47334315 _LT_TAGVAR(ld_shlibs, $1)=no
47344316 cat <<_LT_EOF 1>&2
47354317
4736 *** Warning: the GNU linker, at least up to release 2.19, is reported
4318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
47374319 *** to be unable to reliably create shared libraries on AIX.
47384320 *** Therefore, libtool is disabling shared libraries support. If you
4739 *** really care for shared libraries, you may want to install binutils
4740 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4741 *** You will then need to restart the configuration process.
4321 *** really care for shared libraries, you may want to modify your PATH
4322 *** so that a non-GNU linker is found, and then restart.
47424323
47434324 _LT_EOF
47444325 fi
47744355 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47754356 # as there is no search path for DLLs.
47764357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4777 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
47784358 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47794359 _LT_TAGVAR(always_export_symbols, $1)=no
47804360 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4781 _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'
4782 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4361 _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'
47834362
47844363 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
47854364 _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'
47974376 fi
47984377 ;;
47994378
4800 haiku*)
4801 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4802 _LT_TAGVAR(link_all_deplibs, $1)=yes
4803 ;;
4804
48054379 interix[[3-9]]*)
48064380 _LT_TAGVAR(hardcode_direct, $1)=no
48074381 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48274401 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
48284402 && test "$tmp_diet" = no
48294403 then
4830 tmp_addflag=' $pic_flag'
4404 tmp_addflag=
48314405 tmp_sharedflag='-shared'
48324406 case $cc_basename,$host_cpu in
48334407 pgcc*) # Portland Group C compiler
4834 _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'
4408 _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'
48354409 tmp_addflag=' $pic_flag'
48364410 ;;
4837 pgf77* | pgf90* | pgf95* | pgfortran*)
4838 # Portland Group f77 and f90 compilers
4839 _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'
4411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4412 _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'
48404413 tmp_addflag=' $pic_flag -Mnomain' ;;
48414414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48424415 tmp_addflag=' -i_dynamic' ;;
48474420 lf95*) # Lahey Fortran 8.1
48484421 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48494422 tmp_sharedflag='--shared' ;;
4850 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4423 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48514424 tmp_sharedflag='-qmkshrobj'
48524425 tmp_addflag= ;;
4853 nvcc*) # Cuda Compiler Driver 2.2
4854 _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'
4855 _LT_TAGVAR(compiler_needs_object, $1)=yes
4856 ;;
48574426 esac
48584427 case `$CC -V 2>&1 | sed 5q` in
48594428 *Sun\ C*) # Sun C 5.9
4860 _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'
4429 _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'
48614430 _LT_TAGVAR(compiler_needs_object, $1)=yes
48624431 tmp_sharedflag='-G' ;;
48634432 *Sun\ F*) # Sun Fortran 8.3
48734442 fi
48744443
48754444 case $cc_basename in
4876 xlf* | bgf* | bgxlf* | mpixlf*)
4445 xlf*)
48774446 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48784447 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4880 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4448 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4449 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4450 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
48814451 if test "x$supports_anon_versioning" = xyes; then
48824452 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
48834453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
48844454 echo "local: *; };" >> $output_objdir/$libname.ver~
4885 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4455 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48864456 fi
48874457 ;;
48884458 esac
48964466 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48974467 wlarc=
48984468 else
4899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4900 _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'
4469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4470 _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'
49014471 fi
49024472 ;;
49034473
49154485
49164486 _LT_EOF
49174487 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4919 _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'
4488 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4489 _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'
49204490 else
49214491 _LT_TAGVAR(ld_shlibs, $1)=no
49224492 fi
49624532
49634533 *)
49644534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4965 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4966 _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'
4535 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4536 _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'
49674537 else
49684538 _LT_TAGVAR(ld_shlibs, $1)=no
49694539 fi
50034573 else
50044574 # If we're using GNU nm, then we don't want the "-C" option.
50054575 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5006 # Also, AIX nm treats weak defined symbols like other global
5007 # defined symbols, whereas GNU nm marks them as "W".
50084576 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5009 _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'
4577 _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'
50104578 else
50114579 _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'
50124580 fi
50944662 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50954663 # Determine the default libpath from the value encoded in an
50964664 # empty executable.
5097 _LT_SYS_MODULE_PATH_AIX([$1])
4665 _LT_SYS_MODULE_PATH_AIX
50984666 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5099 _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"
4667 _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"
51004668 else
51014669 if test "$host_cpu" = ia64; then
51024670 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
51054673 else
51064674 # Determine the default libpath from the value encoded in an
51074675 # empty executable.
5108 _LT_SYS_MODULE_PATH_AIX([$1])
4676 _LT_SYS_MODULE_PATH_AIX
51094677 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
51104678 # Warning - without using the other run time loading flags,
51114679 # -berok will link without error, but may produce a broken library.
51124680 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
51134681 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5114 if test "$with_gnu_ld" = yes; then
5115 # We only use this code for GNU lds that support --whole-archive.
5116 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5117 else
5118 # Exported symbols can be pulled into shared objects from archives
5119 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5120 fi
4682 # Exported symbols can be pulled into shared objects from archives
4683 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
51214684 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
51224685 # This is similar to how AIX traditionally builds its shared libraries.
51234686 _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'
51494712 # Microsoft Visual C++.
51504713 # hardcode_libdir_flag_spec is actually meaningless, as there is
51514714 # no search path for DLLs.
5152 case $cc_basename in
5153 cl*)
5154 # Native MSVC
5155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5156 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5157 _LT_TAGVAR(always_export_symbols, $1)=yes
5158 _LT_TAGVAR(file_list_spec, $1)='@'
5159 # Tell ltmain to make .lib files, not .a files.
5160 libext=lib
5161 # Tell ltmain to make .dll files, not .so files.
5162 shrext_cmds=".dll"
5163 # FIXME: Setting linknames here is a bad hack.
5164 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5165 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5166 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5167 else
5168 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5169 fi~
5170 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5171 linknames='
5172 # The linker will not automatically build a static lib if we build a DLL.
5173 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5174 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5175 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5176 _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'
5177 # Don't use ranlib
5178 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5179 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5180 lt_tool_outputfile="@TOOL_OUTPUT@"~
5181 case $lt_outputfile in
5182 *.exe|*.EXE) ;;
5183 *)
5184 lt_outputfile="$lt_outputfile.exe"
5185 lt_tool_outputfile="$lt_tool_outputfile.exe"
5186 ;;
5187 esac~
5188 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5189 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5190 $RM "$lt_outputfile.manifest";
5191 fi'
5192 ;;
5193 *)
5194 # Assume MSVC wrapper
5195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5196 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5197 # Tell ltmain to make .lib files, not .a files.
5198 libext=lib
5199 # Tell ltmain to make .dll files, not .so files.
5200 shrext_cmds=".dll"
5201 # FIXME: Setting linknames here is a bad hack.
5202 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5203 # The linker will automatically build a .lib file if we build a DLL.
5204 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5205 # FIXME: Should let the user specify the lib program.
5206 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5207 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5208 ;;
5209 esac
4715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4716 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4717 # Tell ltmain to make .lib files, not .a files.
4718 libext=lib
4719 # Tell ltmain to make .dll files, not .so files.
4720 shrext_cmds=".dll"
4721 # FIXME: Setting linknames here is a bad hack.
4722 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4723 # The linker will automatically build a .lib file if we build a DLL.
4724 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4725 # FIXME: Should let the user specify the lib program.
4726 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4727 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4728 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
52104729 ;;
52114730
52124731 darwin* | rhapsody*)
52174736 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
52184737 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
52194738 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4739 ;;
4740
4741 freebsd1*)
4742 _LT_TAGVAR(ld_shlibs, $1)=no
52204743 ;;
52214744
52224745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
52314754 ;;
52324755
52334756 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5234 freebsd2.*)
4757 freebsd2*)
52354758 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
52364759 _LT_TAGVAR(hardcode_direct, $1)=yes
52374760 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52404763
52414764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
52424765 freebsd* | dragonfly*)
5243 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
52444767 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
52454768 _LT_TAGVAR(hardcode_direct, $1)=yes
52464769 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
52484771
52494772 hpux9*)
52504773 if test "$GCC" = yes; then
5251 _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'
4774 _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'
52524775 else
52534776 _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'
52544777 fi
52634786 ;;
52644787
52654788 hpux10*)
5266 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5267 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4790 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52684791 else
52694792 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52704793 fi
52714794 if test "$with_gnu_ld" = no; then
52724795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4796 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
52734797 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52744798 _LT_TAGVAR(hardcode_direct, $1)=yes
52754799 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
52814805 ;;
52824806
52834807 hpux11*)
5284 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
52854809 case $host_cpu in
52864810 hppa*64*)
52874811 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
52884812 ;;
52894813 ia64*)
5290 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4814 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52914815 ;;
52924816 *)
5293 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52944818 ;;
52954819 esac
52964820 else
53024826 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
53034827 ;;
53044828 *)
5305 m4_if($1, [], [
5306 # Older versions of the 11.00 compiler do not understand -b yet
5307 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5308 _LT_LINKER_OPTION([if $CC understands -b],
5309 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5310 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5311 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5312 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4829 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
53134830 ;;
53144831 esac
53154832 fi
53374854
53384855 irix5* | irix6* | nonstopux*)
53394856 if test "$GCC" = yes; then
5340 _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'
4857 _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'
53414858 # Try to use the -exported_symbol ld option, if it does not
53424859 # work, assume that -exports_file does not work either and
53434860 # implicitly export all symbols.
5344 # This should be the same for all languages, so no per-tag cache variable.
5345 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5346 [lt_cv_irix_exported_symbol],
5347 [save_LDFLAGS="$LDFLAGS"
5348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5349 AC_LINK_IFELSE(
5350 [AC_LANG_SOURCE(
5351 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5352 [C++], [[int foo (void) { return 0; }]],
5353 [Fortran 77], [[
5354 subroutine foo
5355 end]],
5356 [Fortran], [[
5357 subroutine foo
5358 end]])])],
5359 [lt_cv_irix_exported_symbol=yes],
5360 [lt_cv_irix_exported_symbol=no])
5361 LDFLAGS="$save_LDFLAGS"])
5362 if test "$lt_cv_irix_exported_symbol" = yes; then
5363 _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'
5364 fi
4861 save_LDFLAGS="$LDFLAGS"
4862 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4863 AC_LINK_IFELSE(int foo(void) {},
4864 _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'
4865 )
4866 LDFLAGS="$save_LDFLAGS"
53654867 else
5366 _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'
5367 _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'
4868 _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'
4869 _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'
53684870 fi
53694871 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
53704872 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54264928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
54274929 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54284930 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5429 _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'
4931 _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'
54304932 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
54314933 ;;
54324934
54334935 osf3*)
54344936 if test "$GCC" = yes; then
54354937 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5436 _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'
4938 _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'
54374939 else
54384940 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5439 _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'
4941 _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'
54404942 fi
54414943 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
54424944 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54464948 osf4* | osf5*) # as osf3* with the addition of -msym flag
54474949 if test "$GCC" = yes; then
54484950 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5449 _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'
4951 _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'
54504952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54514953 else
54524954 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5453 _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'
4955 _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'
54544956 _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~
5455 $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'
4957 $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'
54564958
54574959 # Both c and cxx compiler support -rpath directly
54584960 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54654967 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
54664968 if test "$GCC" = yes; then
54674969 wlarc='${wl}'
5468 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4970 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
54694971 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5470 $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'
4972 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54714973 else
54724974 case `$CC -V 2>&1` in
54734975 *"Compilers 5.0"*)
56435145 # Test whether the compiler implicitly links with -lc since on some
56445146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
56455147 # to ld, don't add -lc before -lgcc.
5646 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5647 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5648 [$RM conftest*
5649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5650
5651 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5652 soname=conftest
5653 lib=conftest
5654 libobjs=conftest.$ac_objext
5655 deplibs=
5656 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5657 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5658 compiler_flags=-v
5659 linker_flags=-v
5660 verstring=
5661 output_objdir=.
5662 libname=conftest
5663 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5664 _LT_TAGVAR(allow_undefined_flag, $1)=
5665 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5666 then
5667 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5668 else
5669 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5670 fi
5671 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5672 else
5673 cat conftest.err 1>&5
5674 fi
5675 $RM conftest*
5676 ])
5677 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5148 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5149 $RM conftest*
5150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5151
5152 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5153 soname=conftest
5154 lib=conftest
5155 libobjs=conftest.$ac_objext
5156 deplibs=
5157 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5158 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5159 compiler_flags=-v
5160 linker_flags=-v
5161 verstring=
5162 output_objdir=.
5163 libname=conftest
5164 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5165 _LT_TAGVAR(allow_undefined_flag, $1)=
5166 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5167 then
5168 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5169 else
5170 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5171 fi
5172 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5173 else
5174 cat conftest.err 1>&5
5175 fi
5176 $RM conftest*
5177 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
56785178 ;;
56795179 esac
56805180 fi
57115211 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
57125212 [Flag to hardcode $libdir into a binary during linking.
57135213 This must work even if $libdir does not exist])
5214 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5215 [[If ld is used when linking, flag to hardcode $libdir into a binary
5216 during linking. This must work even if $libdir does not exist]])
57145217 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
57155218 [Whether we need a single "-rpath" flag with a separated argument])
57165219 _LT_TAGDECL([], [hardcode_direct], [0],
57365239 to runtime path list])
57375240 _LT_TAGDECL([], [link_all_deplibs], [0],
57385241 [Whether libtool must link a program against all its dependency libraries])
5242 _LT_TAGDECL([], [fix_srcfile_path], [1],
5243 [Fix the shell variable $srcfile for the compiler])
57395244 _LT_TAGDECL([], [always_export_symbols], [0],
57405245 [Set to "yes" if exported symbols are required])
57415246 _LT_TAGDECL([], [export_symbols_cmds], [2],
57465251 [Symbols that must always be exported])
57475252 _LT_TAGDECL([], [prelink_cmds], [2],
57485253 [Commands necessary for linking programs (against libraries) with templates])
5749 _LT_TAGDECL([], [postlink_cmds], [2],
5750 [Commands necessary for finishing linking programs])
57515254 _LT_TAGDECL([], [file_list_spec], [1],
57525255 [Specify filename containing input files])
57535256 dnl FIXME: Not yet implemented
58375340 ])# _LT_LANG_C_CONFIG
58385341
58395342
5840 # _LT_LANG_CXX_CONFIG([TAG])
5841 # --------------------------
5842 # Ensure that the configuration variables for a C++ compiler are suitably
5843 # defined. These variables are subsequently used by _LT_CONFIG to write
5844 # the compiler configuration to `libtool'.
5845 m4_defun([_LT_LANG_CXX_CONFIG],
5846 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5847 m4_require([_LT_DECL_EGREP])dnl
5848 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5343 # _LT_PROG_CXX
5344 # ------------
5345 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5346 # compiler, we have our own version here.
5347 m4_defun([_LT_PROG_CXX],
5348 [
5349 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5350 AC_PROG_CXX
58495351 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
58505352 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
58515353 (test "X$CXX" != "Xg++"))) ; then
58535355 else
58545356 _lt_caught_CXX_error=yes
58555357 fi
5358 popdef([AC_MSG_ERROR])
5359 ])# _LT_PROG_CXX
5360
5361 dnl aclocal-1.4 backwards compatibility:
5362 dnl AC_DEFUN([_LT_PROG_CXX], [])
5363
5364
5365 # _LT_LANG_CXX_CONFIG([TAG])
5366 # --------------------------
5367 # Ensure that the configuration variables for a C++ compiler are suitably
5368 # defined. These variables are subsequently used by _LT_CONFIG to write
5369 # the compiler configuration to `libtool'.
5370 m4_defun([_LT_LANG_CXX_CONFIG],
5371 [AC_REQUIRE([_LT_PROG_CXX])dnl
5372 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5373 m4_require([_LT_DECL_EGREP])dnl
58565374
58575375 AC_LANG_PUSH(C++)
58585376 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
58645382 _LT_TAGVAR(hardcode_direct, $1)=no
58655383 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
58665384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5385 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
58675386 _LT_TAGVAR(hardcode_libdir_separator, $1)=
58685387 _LT_TAGVAR(hardcode_minus_L, $1)=no
58695388 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
58735392 _LT_TAGVAR(module_expsym_cmds, $1)=
58745393 _LT_TAGVAR(link_all_deplibs, $1)=unknown
58755394 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5876 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5877 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
58785395 _LT_TAGVAR(no_undefined_flag, $1)=
58795396 _LT_TAGVAR(whole_archive_flag_spec, $1)=
58805397 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
59065423
59075424 # Allow CC to be a program name with arguments.
59085425 lt_save_CC=$CC
5909 lt_save_CFLAGS=$CFLAGS
59105426 lt_save_LD=$LD
59115427 lt_save_GCC=$GCC
59125428 GCC=$GXX
59245440 fi
59255441 test -z "${LDCXX+set}" || LD=$LDCXX
59265442 CC=${CXX-"c++"}
5927 CFLAGS=$CXXFLAGS
59285443 compiler=$CC
59295444 _LT_TAGVAR(compiler, $1)=$CC
59305445 _LT_CC_BASENAME([$compiler])
59465461 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59475462 # archiving commands below assume that GNU ld is being used.
59485463 if test "$with_gnu_ld" = yes; then
5949 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5950 _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'
5464 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5465 _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'
59515466
59525467 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59535468 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59795494 # Commands to make compiler produce verbose output that lists
59805495 # what "hidden" libraries, object files and flags are used when
59815496 # linking a shared library.
5982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
59835498
59845499 else
59855500 GXX=no
60885603 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
60895604 # Determine the default libpath from the value encoded in an empty
60905605 # executable.
6091 _LT_SYS_MODULE_PATH_AIX([$1])
5606 _LT_SYS_MODULE_PATH_AIX
60925607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
60935608
6094 _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"
5609 _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"
60955610 else
60965611 if test "$host_cpu" = ia64; then
60975612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
61005615 else
61015616 # Determine the default libpath from the value encoded in an
61025617 # empty executable.
6103 _LT_SYS_MODULE_PATH_AIX([$1])
5618 _LT_SYS_MODULE_PATH_AIX
61045619 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
61055620 # Warning - without using the other run time loading flags,
61065621 # -berok will link without error, but may produce a broken library.
61075622 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
61085623 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6109 if test "$with_gnu_ld" = yes; then
6110 # We only use this code for GNU lds that support --whole-archive.
6111 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6112 else
6113 # Exported symbols can be pulled into shared objects from archives
6114 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6115 fi
5624 # Exported symbols can be pulled into shared objects from archives
5625 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
61165626 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
61175627 # This is similar to how AIX traditionally builds its shared
61185628 # libraries.
61425652 ;;
61435653
61445654 cygwin* | mingw* | pw32* | cegcc*)
6145 case $GXX,$cc_basename in
6146 ,cl* | no,cl*)
6147 # Native MSVC
6148 # hardcode_libdir_flag_spec is actually meaningless, as there is
6149 # no search path for DLLs.
6150 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6151 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6152 _LT_TAGVAR(always_export_symbols, $1)=yes
6153 _LT_TAGVAR(file_list_spec, $1)='@'
6154 # Tell ltmain to make .lib files, not .a files.
6155 libext=lib
6156 # Tell ltmain to make .dll files, not .so files.
6157 shrext_cmds=".dll"
6158 # FIXME: Setting linknames here is a bad hack.
6159 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6160 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6161 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6162 else
6163 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6164 fi~
6165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6166 linknames='
6167 # The linker will not automatically build a static lib if we build a DLL.
6168 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6169 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6170 # Don't use ranlib
6171 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6172 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6173 lt_tool_outputfile="@TOOL_OUTPUT@"~
6174 case $lt_outputfile in
6175 *.exe|*.EXE) ;;
6176 *)
6177 lt_outputfile="$lt_outputfile.exe"
6178 lt_tool_outputfile="$lt_tool_outputfile.exe"
6179 ;;
6180 esac~
6181 func_to_tool_file "$lt_outputfile"~
6182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6184 $RM "$lt_outputfile.manifest";
6185 fi'
6186 ;;
6187 *)
6188 # g++
6189 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6190 # as there is no search path for DLLs.
6191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6192 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6193 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6194 _LT_TAGVAR(always_export_symbols, $1)=no
6195 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6196
6197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6198 _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'
6199 # If the export-symbols file already is a .def file (1st line
6200 # is EXPORTS), use it as is; otherwise, prepend...
6201 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6202 cp $export_symbols $output_objdir/$soname.def;
6203 else
6204 echo EXPORTS > $output_objdir/$soname.def;
6205 cat $export_symbols >> $output_objdir/$soname.def;
6206 fi~
6207 $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'
6208 else
6209 _LT_TAGVAR(ld_shlibs, $1)=no
6210 fi
6211 ;;
6212 esac
6213 ;;
5655 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5656 # as there is no search path for DLLs.
5657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5658 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5659 _LT_TAGVAR(always_export_symbols, $1)=no
5660 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5661
5662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5663 _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'
5664 # If the export-symbols file already is a .def file (1st line
5665 # is EXPORTS), use it as is; otherwise, prepend...
5666 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5667 cp $export_symbols $output_objdir/$soname.def;
5668 else
5669 echo EXPORTS > $output_objdir/$soname.def;
5670 cat $export_symbols >> $output_objdir/$soname.def;
5671 fi~
5672 $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'
5673 else
5674 _LT_TAGVAR(ld_shlibs, $1)=no
5675 fi
5676 ;;
62145677 darwin* | rhapsody*)
62155678 _LT_DARWIN_LINKER_FEATURES($1)
62165679 ;;
62335696 esac
62345697 ;;
62355698
6236 freebsd2.*)
5699 freebsd[[12]]*)
62375700 # C++ shared libraries reported to be fairly broken before
62385701 # switch to ELF
62395702 _LT_TAGVAR(ld_shlibs, $1)=no
62495712 _LT_TAGVAR(ld_shlibs, $1)=yes
62505713 ;;
62515714
6252 haiku*)
6253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6254 _LT_TAGVAR(link_all_deplibs, $1)=yes
5715 gnu*)
62555716 ;;
62565717
62575718 hpux9*)
62785739 # explicitly linking system object files so we need to strip them
62795740 # from the output so that they don't get included in the library
62805741 # dependencies.
6281 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"'
5742 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'
62825743 ;;
62835744 *)
62845745 if test "$GXX" = yes; then
6285 _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'
5746 _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'
62865747 else
62875748 # FIXME: insert proper C++ library support
62885749 _LT_TAGVAR(ld_shlibs, $1)=no
63435804 # explicitly linking system object files so we need to strip them
63445805 # from the output so that they don't get included in the library
63455806 # dependencies.
6346 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"'
5807 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'
63475808 ;;
63485809 *)
63495810 if test "$GXX" = yes; then
63535814 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63545815 ;;
63555816 ia64*)
6356 _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'
5817 _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'
63575818 ;;
63585819 *)
6359 _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'
5820 _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'
63605821 ;;
63615822 esac
63625823 fi
63865847 case $cc_basename in
63875848 CC*)
63885849 # SGI C++
6389 _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'
5850 _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'
63905851
63915852 # Archives containing C++ object files must be created using
63925853 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63975858 *)
63985859 if test "$GXX" = yes; then
63995860 if test "$with_gnu_ld" = no; then
6400 _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'
5861 _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'
64015862 else
6402 _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'
5863 _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'
64035864 fi
64045865 fi
64055866 _LT_TAGVAR(link_all_deplibs, $1)=yes
64105871 _LT_TAGVAR(inherit_rpath, $1)=yes
64115872 ;;
64125873
6413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5874 linux* | k*bsd*-gnu | kopensolaris*-gnu)
64145875 case $cc_basename in
64155876 KCC*)
64165877 # Kuck and Associates, Inc. (KAI) C++ Compiler
64285889 # explicitly linking system object files so we need to strip them
64295890 # from the output so that they don't get included in the library
64305891 # dependencies.
6431 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"'
5892 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'
64325893
64335894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
64345895 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
64655926 pgCC* | pgcpp*)
64665927 # Portland Group C++ compiler
64675928 case `$CC -V` in
6468 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5929 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
64695930 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
64705931 rm -rf $tpldir~
64715932 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6472 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5933 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
64735934 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
64745935 rm -rf $tpldir~
64755936 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6476 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5937 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
64775938 $RANLIB $oldlib'
64785939 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
64795940 rm -rf $tpldir~
64805941 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6481 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5942 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
64825943 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
64835944 rm -rf $tpldir~
64845945 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6485 $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'
5946 $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'
64865947 ;;
6487 *) # Version 6 and above use weak symbols
5948 *) # Version 6 will use weak symbols
64885949 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
64895950 _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'
64905951 ;;
64925953
64935954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
64945955 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6495 _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'
5956 _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'
64965957 ;;
64975958 cxx*)
64985959 # Compaq C++
65115972 # explicitly linking system object files so we need to strip them
65125973 # from the output so that they don't get included in the library
65135974 # dependencies.
6514 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'
5975 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'
65155976 ;;
6516 xl* | mpixl* | bgxl*)
5977 xl*)
65175978 # IBM XL 8.0 on PPC, with GNU ld
65185979 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
65195980 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
65335994 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
65345995 _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'
65355996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6536 _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'
5997 _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'
65375998 _LT_TAGVAR(compiler_needs_object, $1)=yes
65385999
65396000 # Not sure whether something based on
65406001 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
65416002 # would be better.
6542 output_verbose_link_cmd='func_echo_all'
6003 output_verbose_link_cmd='echo'
65436004
65446005 # Archives containing C++ object files must be created using
65456006 # "CC -xar", where "CC" is the Sun C++ compiler. This is
66086069 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
66096070 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
66106071 fi
6611 output_verbose_link_cmd=func_echo_all
6072 output_verbose_link_cmd=echo
66126073 else
66136074 _LT_TAGVAR(ld_shlibs, $1)=no
66146075 fi
66436104 case $host in
66446105 osf3*)
66456106 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6646 _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'
6107 _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'
66476108 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
66486109 ;;
66496110 *)
66506111 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6651 _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'
6112 _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'
66526113 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
66536114 echo "-hidden">> $lib.exp~
6654 $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~
6115 $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~
66556116 $RM $lib.exp'
66566117 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66576118 ;;
66676128 # explicitly linking system object files so we need to strip them
66686129 # from the output so that they don't get included in the library
66696130 # dependencies.
6670 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"'
6131 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'
66716132 ;;
66726133 *)
66736134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
66746135 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
66756136 case $host in
66766137 osf3*)
6677 _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'
6138 _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'
66786139 ;;
66796140 *)
6680 _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'
6141 _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'
66816142 ;;
66826143 esac
66836144
66876148 # Commands to make compiler produce verbose output that lists
66886149 # what "hidden" libraries, object files and flags are used when
66896150 # linking a shared library.
6690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
66916152
66926153 else
66936154 # FIXME: insert proper C++ library support
67236184
67246185 solaris*)
67256186 case $cc_basename in
6726 CC* | sunCC*)
6187 CC*)
67276188 # Sun C++ 4.2, 5.x and Centerline C++
67286189 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67296190 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
67446205 esac
67456206 _LT_TAGVAR(link_all_deplibs, $1)=yes
67466207
6747 output_verbose_link_cmd='func_echo_all'
6208 output_verbose_link_cmd='echo'
67486209
67496210 # Archives containing C++ object files must be created using
67506211 # "CC -xar", where "CC" is the Sun C++ compiler. This is
67646225 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
67656226 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
67666227 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6767 _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'
6228 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
67686229 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6769 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6230 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67706231
67716232 # Commands to make compiler produce verbose output that lists
67726233 # what "hidden" libraries, object files and flags are used when
67736234 # linking a shared library.
6774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
67756236 else
67766237 # g++ 2.7 appears to require `-G' NOT `-shared' on this
67776238 # platform.
67826243 # Commands to make compiler produce verbose output that lists
67836244 # what "hidden" libraries, object files and flags are used when
67846245 # linking a shared library.
6785 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6246 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
67866247 fi
67876248
67886249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
68366297 CC*)
68376298 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68386299 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6839 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6840 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6841 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6842 '"$_LT_TAGVAR(reload_cmds, $1)"
68436300 ;;
68446301 *)
68456302 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68956352 fi # test -n "$compiler"
68966353
68976354 CC=$lt_save_CC
6898 CFLAGS=$lt_save_CFLAGS
68996355 LDCXX=$LD
69006356 LD=$lt_save_LD
69016357 GCC=$lt_save_GCC
69106366 ])# _LT_LANG_CXX_CONFIG
69116367
69126368
6913 # _LT_FUNC_STRIPNAME_CNF
6914 # ----------------------
6915 # func_stripname_cnf prefix suffix name
6916 # strip PREFIX and SUFFIX off of NAME.
6917 # PREFIX and SUFFIX must not contain globbing or regex special
6918 # characters, hashes, percent signs, but SUFFIX may contain a leading
6919 # dot (in which case that matches only a dot).
6920 #
6921 # This function is identical to the (non-XSI) version of func_stripname,
6922 # except this one can be used by m4 code that may be executed by configure,
6923 # rather than the libtool script.
6924 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6925 AC_REQUIRE([_LT_DECL_SED])
6926 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6927 func_stripname_cnf ()
6928 {
6929 case ${2} in
6930 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6931 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6932 esac
6933 } # func_stripname_cnf
6934 ])# _LT_FUNC_STRIPNAME_CNF
6935
69366369 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69376370 # ---------------------------------
69386371 # Figure out "hidden" library dependencies from verbose
69416374 # objects, libraries and library flags.
69426375 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
69436376 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6944 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
69456377 # Dependencies to place before and after the object being linked:
69466378 _LT_TAGVAR(predep_objects, $1)=
69476379 _LT_TAGVAR(postdep_objects, $1)=
69916423 }
69926424 };
69936425 _LT_EOF
6994 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6995 package foo
6996 func foo() {
6997 }
6998 _LT_EOF
69996426 ])
7000
7001 _lt_libdeps_save_CFLAGS=$CFLAGS
7002 case "$CC $CFLAGS " in #(
7003 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7004 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7005 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7006 esac
7007
70086427 dnl Parse the compiler output and extract the necessary
70096428 dnl objects, libraries and library flags.
70106429 if AC_TRY_EVAL(ac_compile); then
70166435 pre_test_object_deps_done=no
70176436
70186437 for p in `eval "$output_verbose_link_cmd"`; do
7019 case ${prev}${p} in
6438 case $p in
70206439
70216440 -L* | -R* | -l*)
70226441 # Some compilers place space between "-{L,R}" and the path.
70256444 test $p = "-R"; then
70266445 prev=$p
70276446 continue
6447 else
6448 prev=
70286449 fi
70296450
7030 # Expand the sysroot to ease extracting the directories later.
7031 if test -z "$prev"; then
7032 case $p in
7033 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7034 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7035 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7036 esac
7037 fi
7038 case $p in
7039 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7040 esac
70416451 if test "$pre_test_object_deps_done" = no; then
7042 case ${prev} in
7043 -L | -R)
6452 case $p in
6453 -L* | -R*)
70446454 # Internal compiler library paths should come after those
70456455 # provided the user. The postdeps already come after the
70466456 # user supplied libs so there is no need to process them.
70606470 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
70616471 fi
70626472 fi
7063 prev=
70646473 ;;
70656474
7066 *.lto.$objext) ;; # Ignore GCC LTO objects
70676475 *.$objext)
70686476 # This assumes that the test object file only shows up
70696477 # once in the compiler output.
70996507 fi
71006508
71016509 $RM -f confest.$objext
7102 CFLAGS=$_lt_libdeps_save_CFLAGS
71036510
71046511 # PORTME: override above test on systems where it is broken
71056512 m4_if([$1], [CXX],
71366543
71376544 solaris*)
71386545 case $cc_basename in
7139 CC* | sunCC*)
6546 CC*)
71406547 # The more standards-conforming stlport4 library is
71416548 # incompatible with the Cstd library. Avoid specifying
71426549 # it if it's in CXXFLAGS. Ignore libCrun as
71806587 ])# _LT_SYS_HIDDEN_LIBDEPS
71816588
71826589
6590 # _LT_PROG_F77
6591 # ------------
6592 # Since AC_PROG_F77 is broken, in that it returns the empty string
6593 # if there is no fortran compiler, we have our own version here.
6594 m4_defun([_LT_PROG_F77],
6595 [
6596 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6597 AC_PROG_F77
6598 if test -z "$F77" || test "X$F77" = "Xno"; then
6599 _lt_disable_F77=yes
6600 fi
6601 popdef([AC_MSG_ERROR])
6602 ])# _LT_PROG_F77
6603
6604 dnl aclocal-1.4 backwards compatibility:
6605 dnl AC_DEFUN([_LT_PROG_F77], [])
6606
6607
71836608 # _LT_LANG_F77_CONFIG([TAG])
71846609 # --------------------------
71856610 # Ensure that the configuration variables for a Fortran 77 compiler are
71866611 # suitably defined. These variables are subsequently used by _LT_CONFIG
71876612 # to write the compiler configuration to `libtool'.
71886613 m4_defun([_LT_LANG_F77_CONFIG],
7189 [AC_LANG_PUSH(Fortran 77)
7190 if test -z "$F77" || test "X$F77" = "Xno"; then
7191 _lt_disable_F77=yes
7192 fi
6614 [AC_REQUIRE([_LT_PROG_F77])dnl
6615 AC_LANG_PUSH(Fortran 77)
71936616
71946617 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
71956618 _LT_TAGVAR(allow_undefined_flag, $1)=
71996622 _LT_TAGVAR(hardcode_direct, $1)=no
72006623 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
72016624 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6625 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
72026626 _LT_TAGVAR(hardcode_libdir_separator, $1)=
72036627 _LT_TAGVAR(hardcode_minus_L, $1)=no
72046628 _LT_TAGVAR(hardcode_automatic, $1)=no
72076631 _LT_TAGVAR(module_expsym_cmds, $1)=
72086632 _LT_TAGVAR(link_all_deplibs, $1)=unknown
72096633 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7210 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7211 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
72126634 _LT_TAGVAR(no_undefined_flag, $1)=
72136635 _LT_TAGVAR(whole_archive_flag_spec, $1)=
72146636 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
72486670 # Allow CC to be a program name with arguments.
72496671 lt_save_CC="$CC"
72506672 lt_save_GCC=$GCC
7251 lt_save_CFLAGS=$CFLAGS
72526673 CC=${F77-"f77"}
7253 CFLAGS=$FFLAGS
72546674 compiler=$CC
72556675 _LT_TAGVAR(compiler, $1)=$CC
72566676 _LT_CC_BASENAME([$compiler])
73046724
73056725 GCC=$lt_save_GCC
73066726 CC="$lt_save_CC"
7307 CFLAGS="$lt_save_CFLAGS"
73086727 fi # test "$_lt_disable_F77" != yes
73096728
73106729 AC_LANG_POP
73116730 ])# _LT_LANG_F77_CONFIG
6731
6732
6733 # _LT_PROG_FC
6734 # -----------
6735 # Since AC_PROG_FC is broken, in that it returns the empty string
6736 # if there is no fortran compiler, we have our own version here.
6737 m4_defun([_LT_PROG_FC],
6738 [
6739 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6740 AC_PROG_FC
6741 if test -z "$FC" || test "X$FC" = "Xno"; then
6742 _lt_disable_FC=yes
6743 fi
6744 popdef([AC_MSG_ERROR])
6745 ])# _LT_PROG_FC
6746
6747 dnl aclocal-1.4 backwards compatibility:
6748 dnl AC_DEFUN([_LT_PROG_FC], [])
73126749
73136750
73146751 # _LT_LANG_FC_CONFIG([TAG])
73176754 # suitably defined. These variables are subsequently used by _LT_CONFIG
73186755 # to write the compiler configuration to `libtool'.
73196756 m4_defun([_LT_LANG_FC_CONFIG],
7320 [AC_LANG_PUSH(Fortran)
7321
7322 if test -z "$FC" || test "X$FC" = "Xno"; then
7323 _lt_disable_FC=yes
7324 fi
6757 [AC_REQUIRE([_LT_PROG_FC])dnl
6758 AC_LANG_PUSH(Fortran)
73256759
73266760 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
73276761 _LT_TAGVAR(allow_undefined_flag, $1)=
73316765 _LT_TAGVAR(hardcode_direct, $1)=no
73326766 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
73336767 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6768 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
73346769 _LT_TAGVAR(hardcode_libdir_separator, $1)=
73356770 _LT_TAGVAR(hardcode_minus_L, $1)=no
73366771 _LT_TAGVAR(hardcode_automatic, $1)=no
73396774 _LT_TAGVAR(module_expsym_cmds, $1)=
73406775 _LT_TAGVAR(link_all_deplibs, $1)=unknown
73416776 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7342 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7343 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
73446777 _LT_TAGVAR(no_undefined_flag, $1)=
73456778 _LT_TAGVAR(whole_archive_flag_spec, $1)=
73466779 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
73806813 # Allow CC to be a program name with arguments.
73816814 lt_save_CC="$CC"
73826815 lt_save_GCC=$GCC
7383 lt_save_CFLAGS=$CFLAGS
73846816 CC=${FC-"f95"}
7385 CFLAGS=$FCFLAGS
73866817 compiler=$CC
73876818 GCC=$ac_cv_fc_compiler_gnu
73886819
74386869 fi # test -n "$compiler"
74396870
74406871 GCC=$lt_save_GCC
7441 CC=$lt_save_CC
7442 CFLAGS=$lt_save_CFLAGS
6872 CC="$lt_save_CC"
74436873 fi # test "$_lt_disable_FC" != yes
74446874
74456875 AC_LANG_POP
74766906 _LT_LINKER_BOILERPLATE
74776907
74786908 # Allow CC to be a program name with arguments.
7479 lt_save_CC=$CC
7480 lt_save_CFLAGS=$CFLAGS
6909 lt_save_CC="$CC"
74816910 lt_save_GCC=$GCC
74826911 GCC=yes
74836912 CC=${GCJ-"gcj"}
7484 CFLAGS=$GCJFLAGS
74856913 compiler=$CC
74866914 _LT_TAGVAR(compiler, $1)=$CC
74876915 _LT_TAGVAR(LD, $1)="$LD"
74916919 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
74926920
74936921 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7494 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7495 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
74966922
74976923 if test -n "$compiler"; then
74986924 _LT_COMPILER_NO_RTTI($1)
75086934 AC_LANG_RESTORE
75096935
75106936 GCC=$lt_save_GCC
7511 CC=$lt_save_CC
7512 CFLAGS=$lt_save_CFLAGS
6937 CC="$lt_save_CC"
75136938 ])# _LT_LANG_GCJ_CONFIG
7514
7515
7516 # _LT_LANG_GO_CONFIG([TAG])
7517 # --------------------------
7518 # Ensure that the configuration variables for the GNU Go compiler
7519 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7520 # to write the compiler configuration to `libtool'.
7521 m4_defun([_LT_LANG_GO_CONFIG],
7522 [AC_REQUIRE([LT_PROG_GO])dnl
7523 AC_LANG_SAVE
7524
7525 # Source file extension for Go test sources.
7526 ac_ext=go
7527
7528 # Object file extension for compiled Go test sources.
7529 objext=o
7530 _LT_TAGVAR(objext, $1)=$objext
7531
7532 # Code to be used in simple compile tests
7533 lt_simple_compile_test_code="package main; func main() { }"
7534
7535 # Code to be used in simple link tests
7536 lt_simple_link_test_code='package main; func main() { }'
7537
7538 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7539 _LT_TAG_COMPILER
7540
7541 # save warnings/boilerplate of simple test code
7542 _LT_COMPILER_BOILERPLATE
7543 _LT_LINKER_BOILERPLATE
7544
7545 # Allow CC to be a program name with arguments.
7546 lt_save_CC=$CC
7547 lt_save_CFLAGS=$CFLAGS
7548 lt_save_GCC=$GCC
7549 GCC=yes
7550 CC=${GOC-"gccgo"}
7551 CFLAGS=$GOFLAGS
7552 compiler=$CC
7553 _LT_TAGVAR(compiler, $1)=$CC
7554 _LT_TAGVAR(LD, $1)="$LD"
7555 _LT_CC_BASENAME([$compiler])
7556
7557 # Go did not exist at the time GCC didn't implicitly link libc in.
7558 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7559
7560 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7561 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7562 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7563
7564 if test -n "$compiler"; then
7565 _LT_COMPILER_NO_RTTI($1)
7566 _LT_COMPILER_PIC($1)
7567 _LT_COMPILER_C_O($1)
7568 _LT_COMPILER_FILE_LOCKS($1)
7569 _LT_LINKER_SHLIBS($1)
7570 _LT_LINKER_HARDCODE_LIBPATH($1)
7571
7572 _LT_CONFIG($1)
7573 fi
7574
7575 AC_LANG_RESTORE
7576
7577 GCC=$lt_save_GCC
7578 CC=$lt_save_CC
7579 CFLAGS=$lt_save_CFLAGS
7580 ])# _LT_LANG_GO_CONFIG
75816939
75826940
75836941 # _LT_LANG_RC_CONFIG([TAG])
76116969
76126970 # Allow CC to be a program name with arguments.
76136971 lt_save_CC="$CC"
7614 lt_save_CFLAGS=$CFLAGS
76156972 lt_save_GCC=$GCC
76166973 GCC=
76176974 CC=${RC-"windres"}
7618 CFLAGS=
76196975 compiler=$CC
76206976 _LT_TAGVAR(compiler, $1)=$CC
76216977 _LT_CC_BASENAME([$compiler])
76286984
76296985 GCC=$lt_save_GCC
76306986 AC_LANG_RESTORE
7631 CC=$lt_save_CC
7632 CFLAGS=$lt_save_CFLAGS
6987 CC="$lt_save_CC"
76336988 ])# _LT_LANG_RC_CONFIG
76346989
76356990
76477002 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
76487003 dnl aclocal-1.4 backwards compatibility:
76497004 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7650
7651
7652 # LT_PROG_GO
7653 # ----------
7654 AC_DEFUN([LT_PROG_GO],
7655 [AC_CHECK_TOOL(GOC, gccgo,)
7656 ])
76577005
76587006
76597007 # LT_PROG_RC
76957043 AC_SUBST([OBJDUMP])
76967044 ])
76977045
7698 # _LT_DECL_DLLTOOL
7699 # ----------------
7700 # Ensure DLLTOOL variable is set.
7701 m4_defun([_LT_DECL_DLLTOOL],
7702 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7703 test -z "$DLLTOOL" && DLLTOOL=dlltool
7704 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7705 AC_SUBST([DLLTOOL])
7706 ])
77077046
77087047 # _LT_DECL_SED
77097048 # ------------
77957134 # Try some XSI features
77967135 xsi_shell=no
77977136 ( _lt_dummy="a/b/c"
7798 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7799 = c,a/b,b/c, \
7137 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7138 = c,a/b,, \
78007139 && eval 'test $(( 1 + 1 )) -eq 2 \
78017140 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
78027141 && xsi_shell=yes
78357174 ])# _LT_CHECK_SHELL_FEATURES
78367175
78377176
7838 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7839 # ------------------------------------------------------
7840 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7841 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7842 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7843 [dnl {
7844 sed -e '/^$1 ()$/,/^} # $1 /c\
7845 $1 ()\
7846 {\
7847 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7848 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7849 && mv -f "$cfgfile.tmp" "$cfgfile" \
7850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7851 test 0 -eq $? || _lt_function_replace_fail=:
7177 # _LT_PROG_XSI_SHELLFNS
7178 # ---------------------
7179 # Bourne and XSI compatible variants of some useful shell functions.
7180 m4_defun([_LT_PROG_XSI_SHELLFNS],
7181 [case $xsi_shell in
7182 yes)
7183 cat << \_LT_EOF >> "$cfgfile"
7184
7185 # func_dirname file append nondir_replacement
7186 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7187 # otherwise set result to NONDIR_REPLACEMENT.
7188 func_dirname ()
7189 {
7190 case ${1} in
7191 */*) func_dirname_result="${1%/*}${2}" ;;
7192 * ) func_dirname_result="${3}" ;;
7193 esac
7194 }
7195
7196 # func_basename file
7197 func_basename ()
7198 {
7199 func_basename_result="${1##*/}"
7200 }
7201
7202 # func_dirname_and_basename file append nondir_replacement
7203 # perform func_basename and func_dirname in a single function
7204 # call:
7205 # dirname: Compute the dirname of FILE. If nonempty,
7206 # add APPEND to the result, otherwise set result
7207 # to NONDIR_REPLACEMENT.
7208 # value returned in "$func_dirname_result"
7209 # basename: Compute filename of FILE.
7210 # value retuned in "$func_basename_result"
7211 # Implementation must be kept synchronized with func_dirname
7212 # and func_basename. For efficiency, we do not delegate to
7213 # those functions but instead duplicate the functionality here.
7214 func_dirname_and_basename ()
7215 {
7216 case ${1} in
7217 */*) func_dirname_result="${1%/*}${2}" ;;
7218 * ) func_dirname_result="${3}" ;;
7219 esac
7220 func_basename_result="${1##*/}"
7221 }
7222
7223 # func_stripname prefix suffix name
7224 # strip PREFIX and SUFFIX off of NAME.
7225 # PREFIX and SUFFIX must not contain globbing or regex special
7226 # characters, hashes, percent signs, but SUFFIX may contain a leading
7227 # dot (in which case that matches only a dot).
7228 func_stripname ()
7229 {
7230 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7231 # positional parameters, so assign one to ordinary parameter first.
7232 func_stripname_result=${3}
7233 func_stripname_result=${func_stripname_result#"${1}"}
7234 func_stripname_result=${func_stripname_result%"${2}"}
7235 }
7236
7237 # func_opt_split
7238 func_opt_split ()
7239 {
7240 func_opt_split_opt=${1%%=*}
7241 func_opt_split_arg=${1#*=}
7242 }
7243
7244 # func_lo2o object
7245 func_lo2o ()
7246 {
7247 case ${1} in
7248 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7249 *) func_lo2o_result=${1} ;;
7250 esac
7251 }
7252
7253 # func_xform libobj-or-source
7254 func_xform ()
7255 {
7256 func_xform_result=${1%.*}.lo
7257 }
7258
7259 # func_arith arithmetic-term...
7260 func_arith ()
7261 {
7262 func_arith_result=$(( $[*] ))
7263 }
7264
7265 # func_len string
7266 # STRING may not start with a hyphen.
7267 func_len ()
7268 {
7269 func_len_result=${#1}
7270 }
7271
7272 _LT_EOF
7273 ;;
7274 *) # Bourne compatible functions.
7275 cat << \_LT_EOF >> "$cfgfile"
7276
7277 # func_dirname file append nondir_replacement
7278 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7279 # otherwise set result to NONDIR_REPLACEMENT.
7280 func_dirname ()
7281 {
7282 # Extract subdirectory from the argument.
7283 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7284 if test "X$func_dirname_result" = "X${1}"; then
7285 func_dirname_result="${3}"
7286 else
7287 func_dirname_result="$func_dirname_result${2}"
7288 fi
7289 }
7290
7291 # func_basename file
7292 func_basename ()
7293 {
7294 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7295 }
7296
7297 dnl func_dirname_and_basename
7298 dnl A portable version of this function is already defined in general.m4sh
7299 dnl so there is no need for it here.
7300
7301 # func_stripname prefix suffix name
7302 # strip PREFIX and SUFFIX off of NAME.
7303 # PREFIX and SUFFIX must not contain globbing or regex special
7304 # characters, hashes, percent signs, but SUFFIX may contain a leading
7305 # dot (in which case that matches only a dot).
7306 # func_strip_suffix prefix name
7307 func_stripname ()
7308 {
7309 case ${2} in
7310 .*) func_stripname_result=`$ECHO "X${3}" \
7311 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7312 *) func_stripname_result=`$ECHO "X${3}" \
7313 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7314 esac
7315 }
7316
7317 # sed scripts:
7318 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7319 my_sed_long_arg='1s/^-[[^=]]*=//'
7320
7321 # func_opt_split
7322 func_opt_split ()
7323 {
7324 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7325 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7326 }
7327
7328 # func_lo2o object
7329 func_lo2o ()
7330 {
7331 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7332 }
7333
7334 # func_xform libobj-or-source
7335 func_xform ()
7336 {
7337 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7338 }
7339
7340 # func_arith arithmetic-term...
7341 func_arith ()
7342 {
7343 func_arith_result=`expr "$[@]"`
7344 }
7345
7346 # func_len string
7347 # STRING may not start with a hyphen.
7348 func_len ()
7349 {
7350 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7351 }
7352
7353 _LT_EOF
7354 esac
7355
7356 case $lt_shell_append in
7357 yes)
7358 cat << \_LT_EOF >> "$cfgfile"
7359
7360 # func_append var value
7361 # Append VALUE to the end of shell variable VAR.
7362 func_append ()
7363 {
7364 eval "$[1]+=\$[2]"
7365 }
7366 _LT_EOF
7367 ;;
7368 *)
7369 cat << \_LT_EOF >> "$cfgfile"
7370
7371 # func_append var value
7372 # Append VALUE to the end of shell variable VAR.
7373 func_append ()
7374 {
7375 eval "$[1]=\$$[1]\$[2]"
7376 }
7377
7378 _LT_EOF
7379 ;;
7380 esac
78527381 ])
7853
7854
7855 # _LT_PROG_REPLACE_SHELLFNS
7856 # -------------------------
7857 # Replace existing portable implementations of several shell functions with
7858 # equivalent extended shell implementations where those features are available..
7859 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7860 [if test x"$xsi_shell" = xyes; then
7861 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7862 case ${1} in
7863 */*) func_dirname_result="${1%/*}${2}" ;;
7864 * ) func_dirname_result="${3}" ;;
7865 esac])
7866
7867 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7868 func_basename_result="${1##*/}"])
7869
7870 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7871 case ${1} in
7872 */*) func_dirname_result="${1%/*}${2}" ;;
7873 * ) func_dirname_result="${3}" ;;
7874 esac
7875 func_basename_result="${1##*/}"])
7876
7877 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7878 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7879 # positional parameters, so assign one to ordinary parameter first.
7880 func_stripname_result=${3}
7881 func_stripname_result=${func_stripname_result#"${1}"}
7882 func_stripname_result=${func_stripname_result%"${2}"}])
7883
7884 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7885 func_split_long_opt_name=${1%%=*}
7886 func_split_long_opt_arg=${1#*=}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7889 func_split_short_opt_arg=${1#??}
7890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7893 case ${1} in
7894 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7895 *) func_lo2o_result=${1} ;;
7896 esac])
7897
7898 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7899
7900 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7903 fi
7904
7905 if test x"$lt_shell_append" = xyes; then
7906 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7907
7908 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7909 func_quote_for_eval "${2}"
7910 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7911 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7912
7913 # Save a `func_append' function call where possible by direct use of '+='
7914 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7915 && mv -f "$cfgfile.tmp" "$cfgfile" \
7916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7917 test 0 -eq $? || _lt_function_replace_fail=:
7918 else
7919 # Save a `func_append' function call even when '+=' is not available
7920 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7921 && mv -f "$cfgfile.tmp" "$cfgfile" \
7922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7923 test 0 -eq $? || _lt_function_replace_fail=:
7924 fi
7925
7926 if test x"$_lt_function_replace_fail" = x":"; then
7927 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7928 fi
7929 ])
7930
7931 # _LT_PATH_CONVERSION_FUNCTIONS
7932 # -----------------------------
7933 # Determine which file name conversion functions should be used by
7934 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7935 # for certain cross-compile configurations and native mingw.
7936 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7937 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7938 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7939 AC_MSG_CHECKING([how to convert $build file names to $host format])
7940 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7941 [case $host in
7942 *-*-mingw* )
7943 case $build in
7944 *-*-mingw* ) # actually msys
7945 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7946 ;;
7947 *-*-cygwin* )
7948 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7949 ;;
7950 * ) # otherwise, assume *nix
7951 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7952 ;;
7953 esac
7954 ;;
7955 *-*-cygwin* )
7956 case $build in
7957 *-*-mingw* ) # actually msys
7958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7959 ;;
7960 *-*-cygwin* )
7961 lt_cv_to_host_file_cmd=func_convert_file_noop
7962 ;;
7963 * ) # otherwise, assume *nix
7964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7965 ;;
7966 esac
7967 ;;
7968 * ) # unhandled hosts (and "normal" native builds)
7969 lt_cv_to_host_file_cmd=func_convert_file_noop
7970 ;;
7971 esac
7972 ])
7973 to_host_file_cmd=$lt_cv_to_host_file_cmd
7974 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7975 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7976 [0], [convert $build file names to $host format])dnl
7977
7978 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7979 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7980 [#assume ordinary cross tools, or native build.
7981 lt_cv_to_tool_file_cmd=func_convert_file_noop
7982 case $host in
7983 *-*-mingw* )
7984 case $build in
7985 *-*-mingw* ) # actually msys
7986 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7987 ;;
7988 esac
7989 ;;
7990 esac
7991 ])
7992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7993 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7994 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7995 [0], [convert $build files to toolchain format])dnl
7996 ])# _LT_PATH_CONVERSION_FUNCTIONS
79977382
79987383 # Helper functions for option handling. -*- Autoconf -*-
79997384 #
8000 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8001 # Inc.
7385 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
80027386 # Written by Gary V. Vaughan, 2004
80037387 #
80047388 # This file is free software; the Free Software Foundation gives
80057389 # unlimited permission to copy and/or distribute it, with or without
80067390 # modifications, as long as this notice is preserved.
80077391
8008 # serial 7 ltoptions.m4
7392 # serial 6 ltoptions.m4
80097393
80107394 # This is to help aclocal find these macros, as it can't see m4_define.
80117395 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
81207504 [enable_win32_dll=yes
81217505
81227506 case $host in
8123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7507 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
81247508 AC_CHECK_TOOL(AS, as, false)
81257509 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
81267510 AC_CHECK_TOOL(OBJDUMP, objdump, false)
81287512 esac
81297513
81307514 test -z "$AS" && AS=as
8131 _LT_DECL([], [AS], [1], [Assembler program])dnl
7515 _LT_DECL([], [AS], [0], [Assembler program])dnl
81327516
81337517 test -z "$DLLTOOL" && DLLTOOL=dlltool
8134 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
7518 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
81357519
81367520 test -z "$OBJDUMP" && OBJDUMP=objdump
8137 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7521 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
81387522 ])# win32-dll
81397523
81407524 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
83207704 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
83217705 m4_define([_LT_WITH_PIC],
83227706 [AC_ARG_WITH([pic],
8323 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
7707 [AS_HELP_STRING([--with-pic],
83247708 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8325 [lt_p=${PACKAGE-default}
8326 case $withval in
8327 yes|no) pic_mode=$withval ;;
8328 *)
8329 pic_mode=default
8330 # Look at the argument we got. We use all the common list separators.
8331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8332 for lt_pkg in $withval; do
8333 IFS="$lt_save_ifs"
8334 if test "X$lt_pkg" = "X$lt_p"; then
8335 pic_mode=yes
8336 fi
8337 done
8338 IFS="$lt_save_ifs"
8339 ;;
8340 esac],
7709 [pic_mode="$withval"],
83417710 [pic_mode=default])
83427711
83437712 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
85077876 # unlimited permission to copy and/or distribute it, with or without
85087877 # modifications, as long as this notice is preserved.
85097878
8510 # @configure_input@
8511
8512 # serial 3337 ltversion.m4
7879 # Generated from ltversion.in.
7880
7881 # serial 3017 ltversion.m4
85137882 # This file is part of GNU Libtool
85147883
8515 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8516 m4_define([LT_PACKAGE_REVISION], [1.3337])
7884 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7885 m4_define([LT_PACKAGE_REVISION], [1.3017])
85177886
85187887 AC_DEFUN([LTVERSION_VERSION],
8519 [macro_version='2.4.2'
8520 macro_revision='1.3337'
7888 [macro_version='2.2.6b'
7889 macro_revision='1.3017'
85217890 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
85227891 _LT_DECL(, macro_revision, 0)
85237892 ])
85247893
85257894 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
85267895 #
8527 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7896 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
85287897 # Written by Scott James Remnant, 2004.
85297898 #
85307899 # This file is free software; the Free Software Foundation gives
85317900 # unlimited permission to copy and/or distribute it, with or without
85327901 # modifications, as long as this notice is preserved.
85337902
8534 # serial 5 lt~obsolete.m4
7903 # serial 4 lt~obsolete.m4
85357904
85367905 # These exist entirely to fool aclocal when bootstrapping libtool.
85377906 #
86017970 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
86027971 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
86037972 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7973 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
86047974 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
86057975 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
86067976 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
86137983 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
86147984 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
86157985 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8616 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8617 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8618 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8619 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8620 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8621 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8622 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8623
8624 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
7986
7987 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
86257988 #
86267989 # This file is free software; the Free Software Foundation
86277990 # gives unlimited permission to copy and/or distribute it,
86337996 # generated from the m4 files accompanying Automake X.Y.
86347997 # (This private macro should not be called outside this file.)
86357998 AC_DEFUN([AM_AUTOMAKE_VERSION],
8636 [am__api_version='1.14'
7999 [am__api_version='1.11'
86378000 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
86388001 dnl require some minimum version. Point them to the right macro.
8639 m4_if([$1], [1.14.1], [],
8002 m4_if([$1], [1.11.1], [],
86408003 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
86418004 ])
86428005
86528015 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
86538016 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
86548017 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8655 [AM_AUTOMAKE_VERSION([1.14.1])dnl
8018 [AM_AUTOMAKE_VERSION([1.11.1])dnl
86568019 m4_ifndef([AC_AUTOCONF_VERSION],
86578020 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
86588021 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
86598022
86608023 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
86618024
8662 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
8025 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
86638026 #
86648027 # This file is free software; the Free Software Foundation
86658028 # gives unlimited permission to copy and/or distribute it,
86668029 # with or without modifications, as long as this notice is preserved.
86678030
86688031 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8669 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
8670 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
8032 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8033 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
86718034 #
86728035 # Of course, Automake must honor this variable whenever it calls a
86738036 # tool from the auxiliary directory. The problem is that $srcdir (and
86868049 #
86878050 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86888051 # are both prefixed by $srcdir. In an in-source build this is usually
8689 # harmless because $srcdir is '.', but things will broke when you
8052 # harmless because $srcdir is `.', but things will broke when you
86908053 # start a VPATH build or use an absolute $srcdir.
86918054 #
86928055 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
87128075
87138076 # AM_CONDITIONAL -*- Autoconf -*-
87148077
8715 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
8078 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8079 # Free Software Foundation, Inc.
87168080 #
87178081 # This file is free software; the Free Software Foundation
87188082 # gives unlimited permission to copy and/or distribute it,
87198083 # with or without modifications, as long as this notice is preserved.
87208084
8085 # serial 9
8086
87218087 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
87228088 # -------------------------------------
87238089 # Define a conditional.
87248090 AC_DEFUN([AM_CONDITIONAL],
8725 [AC_PREREQ([2.52])dnl
8726 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8727 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8091 [AC_PREREQ(2.52)dnl
8092 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8093 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
87288094 AC_SUBST([$1_TRUE])dnl
87298095 AC_SUBST([$1_FALSE])dnl
87308096 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
87438109 Usually this means the macro was only invoked conditionally.]])
87448110 fi])])
87458111
8746 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
8112 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8113 # Free Software Foundation, Inc.
87478114 #
87488115 # This file is free software; the Free Software Foundation
87498116 # gives unlimited permission to copy and/or distribute it,
87508117 # with or without modifications, as long as this notice is preserved.
87518118
8752
8753 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
8119 # serial 10
8120
8121 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
87548122 # written in clear, in which case automake, when reading aclocal.m4,
87558123 # will think it sees a *use*, and therefore will trigger all it's
87568124 # C support machinery. Also note that it means that autoscan, seeing
87608128 # _AM_DEPENDENCIES(NAME)
87618129 # ----------------------
87628130 # See how the compiler implements dependency checking.
8763 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
8131 # NAME is "CC", "CXX", "GCJ", or "OBJC".
87648132 # We try a few techniques and use that to set a single cache variable.
87658133 #
87668134 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
87738141 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
87748142 AC_REQUIRE([AM_DEP_TRACK])dnl
87758143
8776 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
8777 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
8778 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8779 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
8780 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
8781 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8782 [depcc="$$1" am_compiler_list=])
8144 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8145 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8146 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8147 [$1], UPC, [depcc="$UPC" am_compiler_list=],
8148 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8149 [depcc="$$1" am_compiler_list=])
87838150
87848151 AC_CACHE_CHECK([dependency style of $depcc],
87858152 [am_cv_$1_dependencies_compiler_type],
87878154 # We make a subdir and do the tests there. Otherwise we can end up
87888155 # making bogus files that we don't know about and never remove. For
87898156 # instance it was reported that on HP-UX the gcc test will end up
8790 # making a dummy file named 'D' -- because '-MD' means "put the output
8791 # in D".
8792 rm -rf conftest.dir
8157 # making a dummy file named `D' -- because `-MD' means `put the output
8158 # in D'.
87938159 mkdir conftest.dir
87948160 # Copy depcomp to subdir because otherwise we won't find it if we're
87958161 # using a relative directory.
88288194 : > sub/conftest.c
88298195 for i in 1 2 3 4 5 6; do
88308196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8831 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8832 # Solaris 10 /bin/sh.
8833 echo '/* dummy */' > sub/conftst$i.h
8197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8198 # Solaris 8's {/usr,}/bin/sh.
8199 touch sub/conftst$i.h
88348200 done
88358201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
88368202
8837 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8203 # We check with `-c' and `-o' for the sake of the "dashmstdout"
88388204 # mode. It turns out that the SunPro C++ compiler does not properly
8839 # handle '-M -o', and we need to detect this. Also, some Intel
8840 # versions had trouble with output in subdirs.
8205 # handle `-M -o', and we need to detect this. Also, some Intel
8206 # versions had trouble with output in subdirs
88418207 am__obj=sub/conftest.${OBJEXT-o}
88428208 am__minus_obj="-o $am__obj"
88438209 case $depmode in
88468212 test "$am__universal" = false || continue
88478213 ;;
88488214 nosideeffect)
8849 # After this tag, mechanisms are not by side-effect, so they'll
8850 # only be used when explicitly requested.
8215 # after this tag, mechanisms are not by side-effect, so they'll
8216 # only be used when explicitly requested
88518217 if test "x$enable_dependency_tracking" = xyes; then
88528218 continue
88538219 else
88548220 break
88558221 fi
88568222 ;;
8857 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8858 # This compiler won't grok '-c -o', but also, the minuso test has
8223 msvisualcpp | msvcmsys)
8224 # This compiler won't grok `-c -o', but also, the minuso test has
88598225 # not run yet. These depmodes are late enough in the game, and
88608226 # so weak that their functioning should not be impacted.
88618227 am__obj=conftest.${OBJEXT-o}
89038269 # AM_SET_DEPDIR
89048270 # -------------
89058271 # Choose a directory name for dependency files.
8906 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
8272 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
89078273 AC_DEFUN([AM_SET_DEPDIR],
89088274 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
89098275 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
89138279 # AM_DEP_TRACK
89148280 # ------------
89158281 AC_DEFUN([AM_DEP_TRACK],
8916 [AC_ARG_ENABLE([dependency-tracking], [dnl
8917 AS_HELP_STRING(
8918 [--enable-dependency-tracking],
8919 [do not reject slow dependency extractors])
8920 AS_HELP_STRING(
8921 [--disable-dependency-tracking],
8922 [speeds up one-time build])])
8282 [AC_ARG_ENABLE(dependency-tracking,
8283 [ --disable-dependency-tracking speeds up one-time build
8284 --enable-dependency-tracking do not reject slow dependency extractors])
89238285 if test "x$enable_dependency_tracking" != xno; then
89248286 am_depcomp="$ac_aux_dir/depcomp"
89258287 AMDEPBACKSLASH='\'
8926 am__nodep='_no'
89278288 fi
89288289 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
89298290 AC_SUBST([AMDEPBACKSLASH])dnl
89308291 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8931 AC_SUBST([am__nodep])dnl
8932 _AM_SUBST_NOTMAKE([am__nodep])dnl
89338292 ])
89348293
89358294 # Generate code to set up dependency tracking. -*- Autoconf -*-
89368295
8937 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
8296 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8297 # Free Software Foundation, Inc.
89388298 #
89398299 # This file is free software; the Free Software Foundation
89408300 # gives unlimited permission to copy and/or distribute it,
89418301 # with or without modifications, as long as this notice is preserved.
89428302
8303 #serial 5
89438304
89448305 # _AM_OUTPUT_DEPENDENCY_COMMANDS
89458306 # ------------------------------
89468307 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
89478308 [{
8948 # Older Autoconf quotes --file arguments for eval, but not when files
8309 # Autoconf 2.62 quotes --file arguments for eval, but not when files
89498310 # are listed without --file. Let's play safe and only enable the eval
89508311 # if we detect the quoting.
89518312 case $CONFIG_FILES in
89588319 # Strip MF so we end up with the name of the file.
89598320 mf=`echo "$mf" | sed -e 's/:.*$//'`
89608321 # Check whether this is an Automake generated Makefile or not.
8961 # We used to match only the files named 'Makefile.in', but
8322 # We used to match only the files named `Makefile.in', but
89628323 # some people rename them; so instead we look at the file content.
89638324 # Grep'ing the first line is not enough: some people post-process
89648325 # each Makefile.in and add a new line on top of each file to say so.
89708331 continue
89718332 fi
89728333 # Extract the definition of DEPDIR, am__include, and am__quote
8973 # from the Makefile without running 'make'.
8334 # from the Makefile without running `make'.
89748335 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
89758336 test -z "$DEPDIR" && continue
89768337 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8977 test -z "$am__include" && continue
8338 test -z "am__include" && continue
89788339 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8340 # When using ansi2knr, U may be empty or an underscore; expand it
8341 U=`sed -n 's/^U = //p' < "$mf"`
89798342 # Find all dependency output files, they are included files with
89808343 # $(DEPDIR) in their names. We invoke sed twice because it is the
89818344 # simplest approach to changing $(DEPDIR) to its actual value in the
89828345 # expansion.
89838346 for file in `sed -n "
89848347 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8985 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8348 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
89868349 # Make sure the directory exists.
89878350 test -f "$dirpart/$file" && continue
89888351 fdir=`AS_DIRNAME(["$file"])`
90008363 # This macro should only be invoked once -- use via AC_REQUIRE.
90018364 #
90028365 # This code is only required when automatic dependency tracking
9003 # is enabled. FIXME. This creates each '.P' file that we will
8366 # is enabled. FIXME. This creates each `.P' file that we will
90048367 # need in order to bootstrap the dependency handling code.
90058368 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
90068369 [AC_CONFIG_COMMANDS([depfiles],
90108373
90118374 # Do all the work for Automake. -*- Autoconf -*-
90128375
9013 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
8376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8377 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
90148378 #
90158379 # This file is free software; the Free Software Foundation
90168380 # gives unlimited permission to copy and/or distribute it,
90178381 # with or without modifications, as long as this notice is preserved.
90188382
8383 # serial 16
8384
90198385 # This macro actually does too much. Some checks are only needed if
90208386 # your package does certain things. But this isn't really a big deal.
9021
9022 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9023 m4_define([AC_PROG_CC],
9024 m4_defn([AC_PROG_CC])
9025 [_AM_PROG_CC_C_O
9026 ])
90278387
90288388 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
90298389 # AM_INIT_AUTOMAKE([OPTIONS])
90378397 # arguments mandatory, and then we can depend on a new Autoconf
90388398 # release and drop the old call support.
90398399 AC_DEFUN([AM_INIT_AUTOMAKE],
9040 [AC_PREREQ([2.65])dnl
8400 [AC_PREREQ([2.62])dnl
90418401 dnl Autoconf wants to disallow AM_ names. We explicitly allow
90428402 dnl the ones we care about.
90438403 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
90668426 # Define the identity of the package.
90678427 dnl Distinguish between old-style and new-style calls.
90688428 m4_ifval([$2],
9069 [AC_DIAGNOSE([obsolete],
9070 [$0: two- and three-arguments forms are deprecated.])
9071 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
8429 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
90728430 AC_SUBST([PACKAGE], [$1])dnl
90738431 AC_SUBST([VERSION], [$2])],
90748432 [_AM_SET_OPTIONS([$1])dnl
90758433 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9076 m4_if(
9077 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
9078 [ok:ok],,
8434 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
90798435 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
90808436 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
90818437 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
90828438
90838439 _AM_IF_OPTION([no-define],,
9084 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
9085 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
8440 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
8441 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
90868442
90878443 # Some tools Automake needs.
90888444 AC_REQUIRE([AM_SANITY_CHECK])dnl
90898445 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9090 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9091 AM_MISSING_PROG([AUTOCONF], [autoconf])
9092 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9093 AM_MISSING_PROG([AUTOHEADER], [autoheader])
9094 AM_MISSING_PROG([MAKEINFO], [makeinfo])
8446 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
8447 AM_MISSING_PROG(AUTOCONF, autoconf)
8448 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
8449 AM_MISSING_PROG(AUTOHEADER, autoheader)
8450 AM_MISSING_PROG(MAKEINFO, makeinfo)
90958451 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
90968452 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9097 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9098 # For better backward compatibility. To be removed once Automake 1.9.x
9099 # dies out for good. For more background, see:
9100 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9101 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9102 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
8453 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
91038454 # We need awk for the "check" target. The system "awk" is bad on
91048455 # some platforms.
91058456 AC_REQUIRE([AC_PROG_AWK])dnl
91108461 [_AM_PROG_TAR([v7])])])
91118462 _AM_IF_OPTION([no-dependencies],,
91128463 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9113 [_AM_DEPENDENCIES([CC])],
9114 [m4_define([AC_PROG_CC],
9115 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
8464 [_AM_DEPENDENCIES(CC)],
8465 [define([AC_PROG_CC],
8466 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
91168467 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9117 [_AM_DEPENDENCIES([CXX])],
9118 [m4_define([AC_PROG_CXX],
9119 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
8468 [_AM_DEPENDENCIES(CXX)],
8469 [define([AC_PROG_CXX],
8470 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
91208471 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9121 [_AM_DEPENDENCIES([OBJC])],
9122 [m4_define([AC_PROG_OBJC],
9123 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9124 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9125 [_AM_DEPENDENCIES([OBJCXX])],
9126 [m4_define([AC_PROG_OBJCXX],
9127 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
8472 [_AM_DEPENDENCIES(OBJC)],
8473 [define([AC_PROG_OBJC],
8474 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
91288475 ])
9129 AC_REQUIRE([AM_SILENT_RULES])dnl
9130 dnl The testsuite driver may need to know about EXEEXT, so add the
9131 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
9132 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
8476 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
8477 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
8478 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
8479 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
91338480 AC_CONFIG_COMMANDS_PRE(dnl
91348481 [m4_provide_if([_AM_COMPILER_EXEEXT],
91358482 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9136
9137 # POSIX will say in a future version that running "rm -f" with no argument
9138 # is OK; and we want to be able to make that assumption in our Makefile
9139 # recipes. So use an aggressive probe to check that the usage we want is
9140 # actually supported "in the wild" to an acceptable degree.
9141 # See automake bug#10828.
9142 # To make any issue more visible, cause the running configure to be aborted
9143 # by default if the 'rm' program in use doesn't match our expectations; the
9144 # user can still override this though.
9145 if rm -f && rm -fr && rm -rf; then : OK; else
9146 cat >&2 <<'END'
9147 Oops!
9148
9149 Your 'rm' program seems unable to run without file operands specified
9150 on the command line, even when the '-f' option is present. This is contrary
9151 to the behaviour of most rm programs out there, and not conforming with
9152 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9153
9154 Please tell bug-automake@gnu.org about your system, including the value
9155 of your $PATH and any error possibly output before this message. This
9156 can help us improve future automake versions.
9157
9158 END
9159 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9160 echo 'Configuration will proceed anyway, since you have set the' >&2
9161 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9162 echo >&2
9163 else
9164 cat >&2 <<'END'
9165 Aborting the configuration process, to ensure you take notice of the issue.
9166
9167 You can download and install GNU coreutils to get an 'rm' implementation
9168 that behaves properly: <http://www.gnu.org/software/coreutils/>.
9169
9170 If you want to complete the configuration process using your problematic
9171 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9172 to "yes", and re-run configure.
9173
9174 END
9175 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9176 fi
9177 fi])
9178
9179 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
8483 ])
8484
8485 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
91808486 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
91818487 dnl mangled by Autoconf and run in a shell conditional statement.
91828488 m4_define([_AC_COMPILER_EXEEXT],
91838489 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
8490
91848491
91858492 # When config.status generates a header, we must update the stamp-h file.
91868493 # This file resides in the same directory as the config header
92038510 done
92048511 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
92058512
9206 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
8513 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
92078514 #
92088515 # This file is free software; the Free Software Foundation
92098516 # gives unlimited permission to copy and/or distribute it,
92228529 install_sh="\${SHELL} $am_aux_dir/install-sh"
92238530 esac
92248531 fi
9225 AC_SUBST([install_sh])])
9226
9227 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
8532 AC_SUBST(install_sh)])
8533
8534 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
92288535 #
92298536 # This file is free software; the Free Software Foundation
92308537 # gives unlimited permission to copy and/or distribute it,
92318538 # with or without modifications, as long as this notice is preserved.
8539
8540 # serial 2
92328541
92338542 # Check whether the underlying file-system supports filenames
92348543 # with a leading dot. For instance MS-DOS doesn't.
92468555 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
92478556 # From Jim Meyering
92488557
9249 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
8558 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8559 # Free Software Foundation, Inc.
92508560 #
92518561 # This file is free software; the Free Software Foundation
92528562 # gives unlimited permission to copy and/or distribute it,
92538563 # with or without modifications, as long as this notice is preserved.
92548564
8565 # serial 5
8566
92558567 # AM_MAINTAINER_MODE([DEFAULT-MODE])
92568568 # ----------------------------------
92578569 # Control maintainer-specific portions of Makefiles.
9258 # Default is to disable them, unless 'enable' is passed literally.
9259 # For symmetry, 'disable' may be passed as well. Anyway, the user
8570 # Default is to disable them, unless `enable' is passed literally.
8571 # For symmetry, `disable' may be passed as well. Anyway, the user
92608572 # can override the default with the --enable/--disable switch.
92618573 AC_DEFUN([AM_MAINTAINER_MODE],
92628574 [m4_case(m4_default([$1], [disable]),
92648576 [disable], [m4_define([am_maintainer_other], [enable])],
92658577 [m4_define([am_maintainer_other], [enable])
92668578 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9267 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8579 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
92688580 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
92698581 AC_ARG_ENABLE([maintainer-mode],
9270 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
9271 am_maintainer_other[ make rules and dependencies not useful
9272 (and sometimes confusing) to the casual installer])],
9273 [USE_MAINTAINER_MODE=$enableval],
9274 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
8582 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
8583 (and sometimes confusing) to the casual installer],
8584 [USE_MAINTAINER_MODE=$enableval],
8585 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
92758586 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
92768587 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
92778588 MAINT=$MAINTAINER_MODE_TRUE
92798590 ]
92808591 )
92818592
8593 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8594
92828595 # Check to see how 'make' treats includes. -*- Autoconf -*-
92838596
9284 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
8597 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
92858598 #
92868599 # This file is free software; the Free Software Foundation
92878600 # gives unlimited permission to copy and/or distribute it,
92888601 # with or without modifications, as long as this notice is preserved.
8602
8603 # serial 4
92898604
92908605 # AM_MAKE_INCLUDE()
92918606 # -----------------
93048619 _am_result=none
93058620 # First try GNU make style include.
93068621 echo "include confinc" > confmf
9307 # Ignore all kinds of additional output from 'make'.
8622 # Ignore all kinds of additional output from `make'.
93088623 case `$am_make -s -f confmf 2> /dev/null` in #(
93098624 *the\ am__doit\ target*)
93108625 am__include=include
93318646
93328647 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
93338648
9334 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
8649 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
8650 # Free Software Foundation, Inc.
93358651 #
93368652 # This file is free software; the Free Software Foundation
93378653 # gives unlimited permission to copy and/or distribute it,
93388654 # with or without modifications, as long as this notice is preserved.
8655
8656 # serial 6
93398657
93408658 # AM_MISSING_PROG(NAME, PROGRAM)
93418659 # ------------------------------
93448662 $1=${$1-"${am_missing_run}$2"}
93458663 AC_SUBST($1)])
93468664
8665
93478666 # AM_MISSING_HAS_RUN
93488667 # ------------------
9349 # Define MISSING if not defined so far and test if it is modern enough.
9350 # If it is, set am_missing_run to use it, otherwise, to nothing.
8668 # Define MISSING if not defined so far and test if it supports --run.
8669 # If it does, set am_missing_run to use it, otherwise, to nothing.
93518670 AC_DEFUN([AM_MISSING_HAS_RUN],
93528671 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
93538672 AC_REQUIRE_AUX_FILE([missing])dnl
93608679 esac
93618680 fi
93628681 # Use eval to expand $SHELL
9363 if eval "$MISSING --is-lightweight"; then
9364 am_missing_run="$MISSING "
8682 if eval "$MISSING --run true"; then
8683 am_missing_run="$MISSING --run "
93658684 else
93668685 am_missing_run=
9367 AC_MSG_WARN(['missing' script is too old or missing])
8686 AC_MSG_WARN([`missing' script is too old or missing])
93688687 fi
93698688 ])
93708689
9371 # Helper functions for option handling. -*- Autoconf -*-
9372
9373 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
8690 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
93748691 #
93758692 # This file is free software; the Free Software Foundation
93768693 # gives unlimited permission to copy and/or distribute it,
93778694 # with or without modifications, as long as this notice is preserved.
93788695
8696 # AM_PROG_MKDIR_P
8697 # ---------------
8698 # Check for `mkdir -p'.
8699 AC_DEFUN([AM_PROG_MKDIR_P],
8700 [AC_PREREQ([2.60])dnl
8701 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8702 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8703 dnl while keeping a definition of mkdir_p for backward compatibility.
8704 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8705 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8706 dnl Makefile.ins that do not define MKDIR_P, so we do our own
8707 dnl adjustment using top_builddir (which is defined more often than
8708 dnl MKDIR_P).
8709 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8710 case $mkdir_p in
8711 [[\\/$]]* | ?:[[\\/]]*) ;;
8712 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8713 esac
8714 ])
8715
8716 # Helper functions for option handling. -*- Autoconf -*-
8717
8718 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
8719 #
8720 # This file is free software; the Free Software Foundation
8721 # gives unlimited permission to copy and/or distribute it,
8722 # with or without modifications, as long as this notice is preserved.
8723
8724 # serial 4
8725
93798726 # _AM_MANGLE_OPTION(NAME)
93808727 # -----------------------
93818728 AC_DEFUN([_AM_MANGLE_OPTION],
93828729 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
93838730
93848731 # _AM_SET_OPTION(NAME)
9385 # --------------------
8732 # ------------------------------
93868733 # Set option NAME. Presently that only means defining a flag for this option.
93878734 AC_DEFUN([_AM_SET_OPTION],
9388 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
8735 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
93898736
93908737 # _AM_SET_OPTIONS(OPTIONS)
9391 # ------------------------
8738 # ----------------------------------
93928739 # OPTIONS is a space-separated list of Automake options.
93938740 AC_DEFUN([_AM_SET_OPTIONS],
93948741 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
93998746 AC_DEFUN([_AM_IF_OPTION],
94008747 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
94018748
9402 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
8749 # Check to make sure that the build environment is sane. -*- Autoconf -*-
8750
8751 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
8752 # Free Software Foundation, Inc.
94038753 #
94048754 # This file is free software; the Free Software Foundation
94058755 # gives unlimited permission to copy and/or distribute it,
94068756 # with or without modifications, as long as this notice is preserved.
94078757
9408 # _AM_PROG_CC_C_O
9409 # ---------------
9410 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
9411 # to automatically call this.
9412 AC_DEFUN([_AM_PROG_CC_C_O],
9413 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9414 AC_REQUIRE_AUX_FILE([compile])dnl
9415 AC_LANG_PUSH([C])dnl
9416 AC_CACHE_CHECK(
9417 [whether $CC understands -c and -o together],
9418 [am_cv_prog_cc_c_o],
9419 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9420 # Make sure it works both with $CC and with simple cc.
9421 # Following AC_PROG_CC_C_O, we do the test twice because some
9422 # compilers refuse to overwrite an existing .o file with -o,
9423 # though they will create one.
9424 am_cv_prog_cc_c_o=yes
9425 for am_i in 1 2; do
9426 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9427 && test -f conftest2.$ac_objext; then
9428 : OK
9429 else
9430 am_cv_prog_cc_c_o=no
9431 break
9432 fi
9433 done
9434 rm -f core conftest*
9435 unset am_i])
9436 if test "$am_cv_prog_cc_c_o" != yes; then
9437 # Losing compiler, so override with the script.
9438 # FIXME: It is wrong to rewrite CC.
9439 # But if we don't then we get into trouble of one sort or another.
9440 # A longer-term fix would be to have automake use am__CC in this case,
9441 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9442 CC="$am_aux_dir/compile $CC"
9443 fi
9444 AC_LANG_POP([C])])
9445
9446 # For backward compatibility.
9447 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9448
9449 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9450 #
9451 # This file is free software; the Free Software Foundation
9452 # gives unlimited permission to copy and/or distribute it,
9453 # with or without modifications, as long as this notice is preserved.
9454
9455 # AM_RUN_LOG(COMMAND)
9456 # -------------------
9457 # Run COMMAND, save the exit status in ac_status, and log it.
9458 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9459 AC_DEFUN([AM_RUN_LOG],
9460 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9461 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9464 (exit $ac_status); }])
9465
9466 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9467
9468 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
9469 #
9470 # This file is free software; the Free Software Foundation
9471 # gives unlimited permission to copy and/or distribute it,
9472 # with or without modifications, as long as this notice is preserved.
8758 # serial 5
94738759
94748760 # AM_SANITY_CHECK
94758761 # ---------------
94768762 AC_DEFUN([AM_SANITY_CHECK],
94778763 [AC_MSG_CHECKING([whether build environment is sane])
8764 # Just in case
8765 sleep 1
8766 echo timestamp > conftest.file
94788767 # Reject unsafe characters in $srcdir or the absolute working directory
94798768 # name. Accept space and tab only in the latter.
94808769 am_lf='
94858774 esac
94868775 case $srcdir in
94878776 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9488 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
8777 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
94898778 esac
94908779
9491 # Do 'set' in a subshell so we don't clobber the current shell's
8780 # Do `set' in a subshell so we don't clobber the current shell's
94928781 # arguments. Must try -L first in case configure is actually a
94938782 # symlink; some systems play weird games with the mod time of symlinks
94948783 # (eg FreeBSD returns the mod time of the symlink's containing
94958784 # directory).
94968785 if (
9497 am_has_slept=no
9498 for am_try in 1 2; do
9499 echo "timestamp, slept: $am_has_slept" > conftest.file
9500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9501 if test "$[*]" = "X"; then
9502 # -L didn't work.
9503 set X `ls -t "$srcdir/configure" conftest.file`
9504 fi
9505 if test "$[*]" != "X $srcdir/configure conftest.file" \
9506 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9507
9508 # If neither matched, then we have a broken ls. This can happen
9509 # if, for instance, CONFIG_SHELL is bash and it inherits a
9510 # broken ls alias from the environment. This has actually
9511 # happened. Such a system could not be considered "sane".
9512 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9513 alias in your environment])
9514 fi
9515 if test "$[2]" = conftest.file || test $am_try -eq 2; then
9516 break
9517 fi
9518 # Just in case.
9519 sleep 1
9520 am_has_slept=yes
9521 done
8786 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8787 if test "$[*]" = "X"; then
8788 # -L didn't work.
8789 set X `ls -t "$srcdir/configure" conftest.file`
8790 fi
8791 rm -f conftest.file
8792 if test "$[*]" != "X $srcdir/configure conftest.file" \
8793 && test "$[*]" != "X conftest.file $srcdir/configure"; then
8794
8795 # If neither matched, then we have a broken ls. This can happen
8796 # if, for instance, CONFIG_SHELL is bash and it inherits a
8797 # broken ls alias from the environment. This has actually
8798 # happened. Such a system could not be considered "sane".
8799 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8800 alias in your environment])
8801 fi
8802
95228803 test "$[2]" = conftest.file
95238804 )
95248805 then
95288809 AC_MSG_ERROR([newly created file is older than distributed files!
95298810 Check your system clock])
95308811 fi
9531 AC_MSG_RESULT([yes])
9532 # If we didn't sleep, we still need to ensure time stamps of config.status and
9533 # generated files are strictly newer.
9534 am_sleep_pid=
9535 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
9536 ( sleep 1 ) &
9537 am_sleep_pid=$!
9538 fi
9539 AC_CONFIG_COMMANDS_PRE(
9540 [AC_MSG_CHECKING([that generated files are newer than configure])
9541 if test -n "$am_sleep_pid"; then
9542 # Hide warnings about reused PIDs.
9543 wait $am_sleep_pid 2>/dev/null
9544 fi
9545 AC_MSG_RESULT([done])])
9546 rm -f conftest.file
9547 ])
9548
9549 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
8812 AC_MSG_RESULT(yes)])
8813
8814 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
95508815 #
95518816 # This file is free software; the Free Software Foundation
95528817 # gives unlimited permission to copy and/or distribute it,
95538818 # with or without modifications, as long as this notice is preserved.
95548819
9555 # AM_SILENT_RULES([DEFAULT])
9556 # --------------------------
9557 # Enable less verbose build rules; with the default set to DEFAULT
9558 # ("yes" being less verbose, "no" or empty being verbose).
9559 AC_DEFUN([AM_SILENT_RULES],
9560 [AC_ARG_ENABLE([silent-rules], [dnl
9561 AS_HELP_STRING(
9562 [--enable-silent-rules],
9563 [less verbose build output (undo: "make V=1")])
9564 AS_HELP_STRING(
9565 [--disable-silent-rules],
9566 [verbose build output (undo: "make V=0")])dnl
9567 ])
9568 case $enable_silent_rules in @%:@ (((
9569 yes) AM_DEFAULT_VERBOSITY=0;;
9570 no) AM_DEFAULT_VERBOSITY=1;;
9571 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9572 esac
9573 dnl
9574 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
9575 dnl do not support nested variable expansions.
9576 dnl See automake bug#9928 and bug#10237.
9577 am_make=${MAKE-make}
9578 AC_CACHE_CHECK([whether $am_make supports nested variables],
9579 [am_cv_make_support_nested_variables],
9580 [if AS_ECHO([['TRUE=$(BAR$(V))
9581 BAR0=false
9582 BAR1=true
9583 V=1
9584 am__doit:
9585 @$(TRUE)
9586 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9587 am_cv_make_support_nested_variables=yes
9588 else
9589 am_cv_make_support_nested_variables=no
9590 fi])
9591 if test $am_cv_make_support_nested_variables = yes; then
9592 dnl Using '$V' instead of '$(V)' breaks IRIX make.
9593 AM_V='$(V)'
9594 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9595 else
9596 AM_V=$AM_DEFAULT_VERBOSITY
9597 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9598 fi
9599 AC_SUBST([AM_V])dnl
9600 AM_SUBST_NOTMAKE([AM_V])dnl
9601 AC_SUBST([AM_DEFAULT_V])dnl
9602 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9603 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9604 AM_BACKSLASH='\'
9605 AC_SUBST([AM_BACKSLASH])dnl
9606 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9607 ])
9608
9609 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9610 #
9611 # This file is free software; the Free Software Foundation
9612 # gives unlimited permission to copy and/or distribute it,
9613 # with or without modifications, as long as this notice is preserved.
9614
96158820 # AM_PROG_INSTALL_STRIP
96168821 # ---------------------
9617 # One issue with vendor 'install' (even GNU) is that you can't
8822 # One issue with vendor `install' (even GNU) is that you can't
96188823 # specify the program used to strip binaries. This is especially
96198824 # annoying in cross-compiling environments, where the build's strip
96208825 # is unlikely to handle the host's binaries.
96218826 # Fortunately install-sh will honor a STRIPPROG variable, so we
9622 # always use install-sh in "make install-strip", and initialize
8827 # always use install-sh in `make install-strip', and initialize
96238828 # STRIPPROG with the value of the STRIP variable (set by the user).
96248829 AC_DEFUN([AM_PROG_INSTALL_STRIP],
96258830 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9626 # Installed binaries are usually stripped using 'strip' when the user
9627 # run "make install-strip". However 'strip' might not be the right
8831 # Installed binaries are usually stripped using `strip' when the user
8832 # run `make install-strip'. However `strip' might not be the right
96288833 # tool to use in cross-compilation environments, therefore Automake
9629 # will honor the 'STRIP' environment variable to overrule this program.
9630 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
8834 # will honor the `STRIP' environment variable to overrule this program.
8835 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
96318836 if test "$cross_compiling" != no; then
96328837 AC_CHECK_TOOL([STRIP], [strip], :)
96338838 fi
96348839 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
96358840 AC_SUBST([INSTALL_STRIP_PROGRAM])])
96368841
9637 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
8842 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
96388843 #
96398844 # This file is free software; the Free Software Foundation
96408845 # gives unlimited permission to copy and/or distribute it,
96418846 # with or without modifications, as long as this notice is preserved.
8847
8848 # serial 2
96428849
96438850 # _AM_SUBST_NOTMAKE(VARIABLE)
96448851 # ---------------------------
96478854 AC_DEFUN([_AM_SUBST_NOTMAKE])
96488855
96498856 # AM_SUBST_NOTMAKE(VARIABLE)
9650 # --------------------------
8857 # ---------------------------
96518858 # Public sister of _AM_SUBST_NOTMAKE.
96528859 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
96538860
96548861 # Check how to create a tarball. -*- Autoconf -*-
96558862
9656 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
8863 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
96578864 #
96588865 # This file is free software; the Free Software Foundation
96598866 # gives unlimited permission to copy and/or distribute it,
96608867 # with or without modifications, as long as this notice is preserved.
96618868
8869 # serial 2
8870
96628871 # _AM_PROG_TAR(FORMAT)
96638872 # --------------------
96648873 # Check how to create a tarball in format FORMAT.
9665 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
8874 # FORMAT should be one of `v7', `ustar', or `pax'.
96668875 #
96678876 # Substitute a variable $(am__tar) that is a command
96688877 # writing to stdout a FORMAT-tarball containing the directory
96728881 # Substitute a variable $(am__untar) that extract such
96738882 # a tarball read from stdin.
96748883 # $(am__untar) < result.tar
9675 #
96768884 AC_DEFUN([_AM_PROG_TAR],
9677 [# Always define AMTAR for backward compatibility. Yes, it's still used
9678 # in the wild :-( We should find a proper way to deprecate it ...
9679 AC_SUBST([AMTAR], ['$${TAR-tar}'])
9680
9681 # We'll loop over all known methods to create a tar archive until one works.
8885 [# Always define AMTAR for backward compatibility.
8886 AM_MISSING_PROG([AMTAR], [tar])
8887 m4_if([$1], [v7],
8888 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8889 [m4_case([$1], [ustar],, [pax],,
8890 [m4_fatal([Unknown tar format])])
8891 AC_MSG_CHECKING([how to create a $1 tar archive])
8892 # Loop over all known methods to create a tar archive until one works.
96828893 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9683
9684 m4_if([$1], [v7],
9685 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9686
9687 [m4_case([$1],
9688 [ustar],
9689 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
9690 # There is notably a 21 bits limit for the UID and the GID. In fact,
9691 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9692 # and bug#13588).
9693 am_max_uid=2097151 # 2^21 - 1
9694 am_max_gid=$am_max_uid
9695 # The $UID and $GID variables are not portable, so we need to resort
9696 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9697 # below are definitely unexpected, so allow the users to see them
9698 # (that is, avoid stderr redirection).
9699 am_uid=`id -u || echo unknown`
9700 am_gid=`id -g || echo unknown`
9701 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
9702 if test $am_uid -le $am_max_uid; then
9703 AC_MSG_RESULT([yes])
9704 else
9705 AC_MSG_RESULT([no])
9706 _am_tools=none
9707 fi
9708 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
9709 if test $am_gid -le $am_max_gid; then
9710 AC_MSG_RESULT([yes])
9711 else
9712 AC_MSG_RESULT([no])
9713 _am_tools=none
9714 fi],
9715
9716 [pax],
9717 [],
9718
9719 [m4_fatal([Unknown tar format])])
9720
9721 AC_MSG_CHECKING([how to create a $1 tar archive])
9722
9723 # Go ahead even if we have the value already cached. We do so because we
9724 # need to set the values for the 'am__tar' and 'am__untar' variables.
9725 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9726
9727 for _am_tool in $_am_tools; do
9728 case $_am_tool in
9729 gnutar)
9730 for _am_tar in tar gnutar gtar; do
9731 AM_RUN_LOG([$_am_tar --version]) && break
9732 done
9733 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9734 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9735 am__untar="$_am_tar -xf -"
9736 ;;
9737 plaintar)
9738 # Must skip GNU tar: if it does not support --format= it doesn't create
9739 # ustar tarball either.
9740 (tar --version) >/dev/null 2>&1 && continue
9741 am__tar='tar chf - "$$tardir"'
9742 am__tar_='tar chf - "$tardir"'
9743 am__untar='tar xf -'
9744 ;;
9745 pax)
9746 am__tar='pax -L -x $1 -w "$$tardir"'
9747 am__tar_='pax -L -x $1 -w "$tardir"'
9748 am__untar='pax -r'
9749 ;;
9750 cpio)
9751 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9752 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9753 am__untar='cpio -i -H $1 -d'
9754 ;;
9755 none)
9756 am__tar=false
9757 am__tar_=false
9758 am__untar=false
9759 ;;
9760 esac
9761
9762 # If the value was cached, stop now. We just wanted to have am__tar
9763 # and am__untar set.
9764 test -n "${am_cv_prog_tar_$1}" && break
9765
9766 # tar/untar a dummy directory, and stop if the command works.
9767 rm -rf conftest.dir
9768 mkdir conftest.dir
9769 echo GrepMe > conftest.dir/file
9770 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9771 rm -rf conftest.dir
9772 if test -s conftest.tar; then
9773 AM_RUN_LOG([$am__untar <conftest.tar])
9774 AM_RUN_LOG([cat conftest.dir/file])
9775 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9776 fi
9777 done
8894 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
8895 # Do not fold the above two line into one, because Tru64 sh and
8896 # Solaris sh will not grok spaces in the rhs of `-'.
8897 for _am_tool in $_am_tools
8898 do
8899 case $_am_tool in
8900 gnutar)
8901 for _am_tar in tar gnutar gtar;
8902 do
8903 AM_RUN_LOG([$_am_tar --version]) && break
8904 done
8905 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8906 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8907 am__untar="$_am_tar -xf -"
8908 ;;
8909 plaintar)
8910 # Must skip GNU tar: if it does not support --format= it doesn't create
8911 # ustar tarball either.
8912 (tar --version) >/dev/null 2>&1 && continue
8913 am__tar='tar chf - "$$tardir"'
8914 am__tar_='tar chf - "$tardir"'
8915 am__untar='tar xf -'
8916 ;;
8917 pax)
8918 am__tar='pax -L -x $1 -w "$$tardir"'
8919 am__tar_='pax -L -x $1 -w "$tardir"'
8920 am__untar='pax -r'
8921 ;;
8922 cpio)
8923 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8924 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8925 am__untar='cpio -i -H $1 -d'
8926 ;;
8927 none)
8928 am__tar=false
8929 am__tar_=false
8930 am__untar=false
8931 ;;
8932 esac
8933
8934 # If the value was cached, stop now. We just wanted to have am__tar
8935 # and am__untar set.
8936 test -n "${am_cv_prog_tar_$1}" && break
8937
8938 # tar/untar a dummy directory, and stop if the command works
97788939 rm -rf conftest.dir
9779
9780 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9781 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9782
8940 mkdir conftest.dir
8941 echo GrepMe > conftest.dir/file
8942 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8943 rm -rf conftest.dir
8944 if test -s conftest.tar; then
8945 AM_RUN_LOG([$am__untar <conftest.tar])
8946 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8947 fi
8948 done
8949 rm -rf conftest.dir
8950
8951 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8952 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
97838953 AC_SUBST([am__tar])
97848954 AC_SUBST([am__untar])
97858955 ]) # _AM_PROG_TAR
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516
1617 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
6218 pkgdatadir = $(datadir)/@PACKAGE@
6319 pkgincludedir = $(includedir)/@PACKAGE@
6420 pkglibdir = $(libdir)/@PACKAGE@
8036 bin_PROGRAMS = makegeo$(EXEEXT) geotifcp$(EXEEXT) listgeo$(EXEEXT) \
8137 applygeo$(EXEEXT)
8238 subdir = bin
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/depcomp
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
8540 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8641 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
8742 $(top_srcdir)/configure.ac
9752 applygeo_OBJECTS = $(am_applygeo_OBJECTS)
9853 applygeo_LDADD = $(LDADD)
9954 applygeo_DEPENDENCIES = ../libgeotiff.la
100 AM_V_lt = $(am__v_lt_@AM_V@)
101 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
102 am__v_lt_0 = --silent
103 am__v_lt_1 =
10455 am_geotifcp_OBJECTS = geotifcp.$(OBJEXT)
10556 geotifcp_OBJECTS = $(am_geotifcp_OBJECTS)
10657 geotifcp_LDADD = $(LDADD)
11364 makegeo_OBJECTS = $(am_makegeo_OBJECTS)
11465 makegeo_LDADD = $(LDADD)
11566 makegeo_DEPENDENCIES = ../libgeotiff.la
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
12867 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
12968 depcomp = $(SHELL) $(top_srcdir)/depcomp
13069 am__depfiles_maybe = depfiles
13170 am__mv = mv -f
13271 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
13372 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
134 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
135 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
136 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
137 $(AM_CFLAGS) $(CFLAGS)
138 AM_V_CC = $(am__v_CC_@AM_V@)
139 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
140 am__v_CC_0 = @echo " CC " $@;
141 am__v_CC_1 =
73 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
75 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
14276 CCLD = $(CC)
143 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
144 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
145 $(AM_LDFLAGS) $(LDFLAGS) -o $@
146 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
147 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
148 am__v_CCLD_0 = @echo " CCLD " $@;
149 am__v_CCLD_1 =
77 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
79 $(LDFLAGS) -o $@
15080 SOURCES = $(applygeo_SOURCES) $(geotifcp_SOURCES) $(listgeo_SOURCES) \
15181 $(makegeo_SOURCES)
15282 DIST_SOURCES = $(applygeo_SOURCES) $(geotifcp_SOURCES) \
15383 $(listgeo_SOURCES) $(makegeo_SOURCES)
154 am__can_run_installinfo = \
155 case $$AM_UPDATE_INFO_DIR in \
156 n|no|NO) false;; \
157 *) (install-info --version) >/dev/null 2>&1;; \
158 esac
159 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
160 # Read a list of newline-separated strings from the standard input,
161 # and print each of them once, without duplicates. Input order is
162 # *not* preserved.
163 am__uniquify_input = $(AWK) '\
164 BEGIN { nonempty = 0; } \
165 { items[$$0] = 1; nonempty = 1; } \
166 END { if (nonempty) { for (i in items) print i; }; } \
167 '
168 # Make sure the list of sources is unique. This is necessary because,
169 # e.g., the same source file might be shared among _SOURCES variables
170 # for different programs/libraries.
171 am__define_uniq_tagged_files = \
172 list='$(am__tagged_files)'; \
173 unique=`for i in $$list; do \
174 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
175 done | $(am__uniquify_input)`
17684 ETAGS = etags
17785 CTAGS = ctags
17886 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
17987 ACLOCAL = @ACLOCAL@
18088 AMTAR = @AMTAR@
181 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
18289 AR = @AR@
18390 AUTOCONF = @AUTOCONF@
18491 AUTOHEADER = @AUTOHEADER@
196103 CYGPATH_W = @CYGPATH_W@
197104 DEFS = @DEFS@
198105 DEPDIR = @DEPDIR@
199 DLLTOOL = @DLLTOOL@
200106 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
201107 DSYMUTIL = @DSYMUTIL@
202108 DUMPBIN = @DUMPBIN@
249155 LTLIBOBJS = @LTLIBOBJS@
250156 MAINT = @MAINT@
251157 MAKEINFO = @MAKEINFO@
252 MANIFEST_TOOL = @MANIFEST_TOOL@
253158 MKDIR_P = @MKDIR_P@
254159 NM = @NM@
255160 NMEDIT = @NMEDIT@
281186 abs_srcdir = @abs_srcdir@
282187 abs_top_builddir = @abs_top_builddir@
283188 abs_top_srcdir = @abs_top_srcdir@
284 ac_ct_AR = @ac_ct_AR@
285189 ac_ct_CC = @ac_ct_CC@
286190 ac_ct_CXX = @ac_ct_CXX@
287191 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
315219 libexecdir = @libexecdir@
316220 localedir = @localedir@
317221 localstatedir = @localstatedir@
222 lt_ECHO = @lt_ECHO@
318223 mandir = @mandir@
319224 mkdir_p = @mkdir_p@
320225 oldincludedir = @oldincludedir@
374279 $(am__aclocal_m4_deps):
375280 install-binPROGRAMS: $(bin_PROGRAMS)
376281 @$(NORMAL_INSTALL)
282 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
377283 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
378 if test -n "$$list"; then \
379 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
380 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
381 fi; \
382284 for p in $$list; do echo "$$p $$p"; done | \
383285 sed 's/$(EXEEXT)$$//' | \
384 while read p p1; do if test -f $$p \
385 || test -f $$p1 \
386 ; then echo "$$p"; echo "$$p"; else :; fi; \
286 while read p p1; do if test -f $$p || test -f $$p1; \
287 then echo "$$p"; echo "$$p"; else :; fi; \
387288 done | \
388 sed -e 'p;s,.*/,,;n;h' \
389 -e 's|.*|.|' \
289 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
390290 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
391291 sed 'N;N;N;s,\n, ,g' | \
392292 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
407307 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
408308 files=`for p in $$list; do echo "$$p"; done | \
409309 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
410 -e 's/$$/$(EXEEXT)/' \
411 `; \
310 -e 's/$$/$(EXEEXT)/' `; \
412311 test -n "$$list" || exit 0; \
413312 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
414313 cd "$(DESTDIR)$(bindir)" && rm -f $$files
421320 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
422321 echo " rm -f" $$list; \
423322 rm -f $$list
424
425 applygeo$(EXEEXT): $(applygeo_OBJECTS) $(applygeo_DEPENDENCIES) $(EXTRA_applygeo_DEPENDENCIES)
323 applygeo$(EXEEXT): $(applygeo_OBJECTS) $(applygeo_DEPENDENCIES)
426324 @rm -f applygeo$(EXEEXT)
427 $(AM_V_CCLD)$(LINK) $(applygeo_OBJECTS) $(applygeo_LDADD) $(LIBS)
428
429 geotifcp$(EXEEXT): $(geotifcp_OBJECTS) $(geotifcp_DEPENDENCIES) $(EXTRA_geotifcp_DEPENDENCIES)
325 $(LINK) $(applygeo_OBJECTS) $(applygeo_LDADD) $(LIBS)
326 geotifcp$(EXEEXT): $(geotifcp_OBJECTS) $(geotifcp_DEPENDENCIES)
430327 @rm -f geotifcp$(EXEEXT)
431 $(AM_V_CCLD)$(LINK) $(geotifcp_OBJECTS) $(geotifcp_LDADD) $(LIBS)
432
433 listgeo$(EXEEXT): $(listgeo_OBJECTS) $(listgeo_DEPENDENCIES) $(EXTRA_listgeo_DEPENDENCIES)
328 $(LINK) $(geotifcp_OBJECTS) $(geotifcp_LDADD) $(LIBS)
329 listgeo$(EXEEXT): $(listgeo_OBJECTS) $(listgeo_DEPENDENCIES)
434330 @rm -f listgeo$(EXEEXT)
435 $(AM_V_CCLD)$(LINK) $(listgeo_OBJECTS) $(listgeo_LDADD) $(LIBS)
436
437 makegeo$(EXEEXT): $(makegeo_OBJECTS) $(makegeo_DEPENDENCIES) $(EXTRA_makegeo_DEPENDENCIES)
331 $(LINK) $(listgeo_OBJECTS) $(listgeo_LDADD) $(LIBS)
332 makegeo$(EXEEXT): $(makegeo_OBJECTS) $(makegeo_DEPENDENCIES)
438333 @rm -f makegeo$(EXEEXT)
439 $(AM_V_CCLD)$(LINK) $(makegeo_OBJECTS) $(makegeo_LDADD) $(LIBS)
334 $(LINK) $(makegeo_OBJECTS) $(makegeo_LDADD) $(LIBS)
440335
441336 mostlyclean-compile:
442337 -rm -f *.$(OBJEXT)
450345 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makegeo.Po@am__quote@
451346
452347 .c.o:
453 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
454 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
455 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
348 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
349 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
456351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
457 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
352 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
458353
459354 .c.obj:
460 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
461 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
462 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
355 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
356 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
357 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
463358 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
464 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
359 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
465360
466361 .c.lo:
467 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
468 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
469 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
362 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
363 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
364 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
470365 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
471 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
366 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
472367
473368 mostlyclean-libtool:
474369 -rm -f *.lo
476371 clean-libtool:
477372 -rm -rf .libs _libs
478373
479 ID: $(am__tagged_files)
480 $(am__define_uniq_tagged_files); mkid -fID $$unique
481 tags: tags-am
482 TAGS: tags
483
484 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
374 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 mkid -fID $$unique
382 tags: TAGS
383
384 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
385 $(TAGS_FILES) $(LISP)
485386 set x; \
486387 here=`pwd`; \
487 $(am__define_uniq_tagged_files); \
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
488394 shift; \
489395 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
490396 test -n "$$unique" || unique=$$empty_fix; \
496402 $$unique; \
497403 fi; \
498404 fi
499 ctags: ctags-am
500
501 CTAGS: ctags
502 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
503 $(am__define_uniq_tagged_files); \
405 ctags: CTAGS
406 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
407 $(TAGS_FILES) $(LISP)
408 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | \
412 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413 END { if (nonempty) { for (i in files) print i; }; }'`; \
504414 test -z "$(CTAGS_ARGS)$$unique" \
505415 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
506416 $$unique
509419 here=`$(am__cd) $(top_builddir) && pwd` \
510420 && $(am__cd) $(top_srcdir) \
511421 && gtags -i $(GTAGS_ARGS) "$$here"
512 cscopelist: cscopelist-am
513
514 cscopelist-am: $(am__tagged_files)
515 list='$(am__tagged_files)'; \
516 case "$(srcdir)" in \
517 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
518 *) sdir=$(subdir)/$(srcdir) ;; \
519 esac; \
520 for i in $$list; do \
521 if test -f "$$i"; then \
522 echo "$(subdir)/$$i"; \
523 else \
524 echo "$$sdir/$$i"; \
525 fi; \
526 done >> $(top_builddir)/cscope.files
527422
528423 distclean-tags:
529424 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
575470
576471 installcheck: installcheck-am
577472 install-strip:
578 if test -z '$(STRIP)'; then \
579 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
580 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
581 install; \
582 else \
583 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
584 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
585 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
586 fi
473 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
474 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
475 `test -z '$(STRIP)' || \
476 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
587477 mostlyclean-generic:
588478
589479 clean-generic:
667557
668558 .MAKE: install-am install-strip
669559
670 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
671 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
672 ctags ctags-am distclean distclean-compile distclean-generic \
673 distclean-libtool distclean-tags distdir dvi dvi-am html \
674 html-am info info-am install install-am install-binPROGRAMS \
675 install-data install-data-am install-dvi install-dvi-am \
676 install-exec install-exec-am install-html install-html-am \
677 install-info install-info-am install-man install-pdf \
678 install-pdf-am install-ps install-ps-am install-strip \
679 installcheck installcheck-am installdirs maintainer-clean \
680 maintainer-clean-generic mostlyclean mostlyclean-compile \
681 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
682 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
560 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
561 clean-generic clean-libtool ctags distclean distclean-compile \
562 distclean-generic distclean-libtool distclean-tags distdir dvi \
563 dvi-am html html-am info info-am install install-am \
564 install-binPROGRAMS install-data install-data-am install-dvi \
565 install-dvi-am install-exec install-exec-am install-html \
566 install-html-am install-info install-info-am install-man \
567 install-pdf install-pdf-am install-ps install-ps-am \
568 install-strip installcheck installcheck-am installdirs \
569 maintainer-clean maintainer-clean-generic mostlyclean \
570 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
571 pdf pdf-am ps ps-am tags uninstall uninstall-am \
572 uninstall-binPROGRAMS
683573
684574
685575 # Tell versions [3.59,3.63) of GNU make to not export all variables.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1314
1415 @SET_MAKE@
1516 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
6117 pkgdatadir = $(datadir)/@PACKAGE@
6218 pkgincludedir = $(includedir)/@PACKAGE@
6319 pkglibdir = $(libdir)/@PACKAGE@
7733 build_triplet = @build@
7834 host_triplet = @host@
7935 subdir = cmake
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
8137 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8238 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
8339 $(top_srcdir)/configure.ac
8743 CONFIG_HEADER = $(top_builddir)/geo_config.h
8844 CONFIG_CLEAN_FILES =
8945 CONFIG_CLEAN_VPATH_FILES =
90 AM_V_P = $(am__v_P_@AM_V@)
91 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
92 am__v_P_0 = false
93 am__v_P_1 = :
94 AM_V_GEN = $(am__v_GEN_@AM_V@)
95 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
96 am__v_GEN_0 = @echo " GEN " $@;
97 am__v_GEN_1 =
98 AM_V_at = $(am__v_at_@AM_V@)
99 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
100 am__v_at_0 = @
101 am__v_at_1 =
10246 SOURCES =
10347 DIST_SOURCES =
104 am__can_run_installinfo = \
105 case $$AM_UPDATE_INFO_DIR in \
106 n|no|NO) false;; \
107 *) (install-info --version) >/dev/null 2>&1;; \
108 esac
109 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
11048 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
11149 ACLOCAL = @ACLOCAL@
11250 AMTAR = @AMTAR@
113 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
11451 AR = @AR@
11552 AUTOCONF = @AUTOCONF@
11653 AUTOHEADER = @AUTOHEADER@
12865 CYGPATH_W = @CYGPATH_W@
12966 DEFS = @DEFS@
13067 DEPDIR = @DEPDIR@
131 DLLTOOL = @DLLTOOL@
13268 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
13369 DSYMUTIL = @DSYMUTIL@
13470 DUMPBIN = @DUMPBIN@
181117 LTLIBOBJS = @LTLIBOBJS@
182118 MAINT = @MAINT@
183119 MAKEINFO = @MAKEINFO@
184 MANIFEST_TOOL = @MANIFEST_TOOL@
185120 MKDIR_P = @MKDIR_P@
186121 NM = @NM@
187122 NMEDIT = @NMEDIT@
213148 abs_srcdir = @abs_srcdir@
214149 abs_top_builddir = @abs_top_builddir@
215150 abs_top_srcdir = @abs_top_srcdir@
216 ac_ct_AR = @ac_ct_AR@
217151 ac_ct_CC = @ac_ct_CC@
218152 ac_ct_CXX = @ac_ct_CXX@
219153 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
247181 libexecdir = @libexecdir@
248182 localedir = @localedir@
249183 localstatedir = @localstatedir@
184 lt_ECHO = @lt_ECHO@
250185 mandir = @mandir@
251186 mkdir_p = @mkdir_p@
252187 oldincludedir = @oldincludedir@
308243
309244 clean-libtool:
310245 -rm -rf .libs _libs
311 tags TAGS:
312
313 ctags CTAGS:
314
315 cscope cscopelist:
246 tags: TAGS
247 TAGS:
248
249 ctags: CTAGS
250 CTAGS:
316251
317252
318253 distdir: $(DISTFILES)
359294
360295 installcheck: installcheck-am
361296 install-strip:
362 if test -z '$(STRIP)'; then \
363 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
364 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
365 install; \
366 else \
367 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
368 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
369 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
370 fi
297 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
298 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
299 `test -z '$(STRIP)' || \
300 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
371301 mostlyclean-generic:
372302
373303 clean-generic:
448378 .MAKE: install-am install-strip
449379
450380 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
451 cscopelist-am ctags-am distclean distclean-generic \
452 distclean-libtool distdir dvi dvi-am html html-am info info-am \
453 install install-am install-data install-data-am install-dvi \
454 install-dvi-am install-exec install-exec-am install-html \
455 install-html-am install-info install-info-am install-man \
456 install-pdf install-pdf-am install-ps install-ps-am \
457 install-strip installcheck installcheck-am installdirs \
458 maintainer-clean maintainer-clean-generic mostlyclean \
459 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
460 tags-am uninstall uninstall-am
381 distclean distclean-generic distclean-libtool distdir dvi \
382 dvi-am html html-am info info-am install install-am \
383 install-data install-data-am install-dvi install-dvi-am \
384 install-exec install-exec-am install-html install-html-am \
385 install-info install-info-am install-man install-pdf \
386 install-pdf-am install-ps install-ps-am install-strip \
387 installcheck installcheck-am installdirs maintainer-clean \
388 maintainer-clean-generic mostlyclean mostlyclean-generic \
389 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
461390
462391
463392 # Tell versions [3.59,3.63) of GNU make to not export all variables.
77 #cmakedefine HAVE_STRING_H
88
99 /* Define if you have the <strings.h> header file. */
10 #cmakedefine HAVE_STRING_H
10 #cmakedefine HAVE_STRINGS_H
1111
1212 #cmakedefine GEO_NORMALIZE_DISABLE_TOWGS84
1313
+0
-347
compile less more
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-06-10'
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-06-10'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
10 # the Free Software Foundation; either version 2 of the License, or
911 # (at your option) any later version.
1012 #
1113 # This program is distributed in the hope that it will be useful, but
1416 # General Public License for more details.
1517 #
1618 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
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.
1822 #
1923 # As a special exception to the GNU General Public License, if you
2024 # distribute this file as part of a program that contains a
2125 # configuration script generated by Autoconf, you may include it under
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
2532 #
26 # Originally written by Per Bothner.
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
2736 #
28 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
32
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
3339
3440 me=`echo "$0" | sed -e 's,.*/,,'`
3541
4955 GNU config.guess ($timestamp)
5056
5157 Originally written by Per Bothner.
52 Copyright 1992-2013 Free Software Foundation, Inc.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5360
5461 This is free software; see the source for copying conditions. There is NO
5562 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
131138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133140
134 case "${UNAME_SYSTEM}" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
152 ;;
153 esac
154
155141 # Note: order is significant - the case branches are not exclusive.
156142
157143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
158144 *:NetBSD:*:*)
159145 # NetBSD (nbsd) targets should (where applicable) match one or
160 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
161147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
162148 # switched to ELF, *-*-netbsd* would select the old
163149 # object file format. This provides both forward
193179 fi
194180 ;;
195181 *)
196 os=netbsd
182 os=netbsd
197183 ;;
198184 esac
199185 # The OS release
214200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215201 echo "${machine}-${os}${release}"
216202 exit ;;
217 *:Bitrig:*:*)
218 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
220 exit ;;
221203 *:OpenBSD:*:*)
222204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
223205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
240222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
241223 ;;
242224 *5.*)
243 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
244226 ;;
245227 esac
246228 # According to Compaq, /usr/sbin/psrinfo has been available on
286268 # A Xn.n version is an unreleased experimental baselevel.
287269 # 1.2 uses "1.2" for uname -r.
288270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
289 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290 exitcode=$?
291 trap '' 0
292 exit $exitcode ;;
271 exit ;;
293272 Alpha\ *:Windows_NT*:*)
294273 # How do we know it's Interix rather than the generic POSIX subsystem?
295274 # Should we change UNAME_MACHINE based on the output of uname instead
315294 echo s390-ibm-zvmoe
316295 exit ;;
317296 *:OS400:*:*)
318 echo powerpc-ibm-os400
297 echo powerpc-ibm-os400
319298 exit ;;
320299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
321300 echo arm-acorn-riscix${UNAME_RELEASE}
322301 exit ;;
323 arm*:riscos:*:*|arm*:RISCOS:*:*)
302 arm:riscos:*:*|arm:RISCOS:*:*)
324303 echo arm-unknown-riscos
325304 exit ;;
326305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
352331 exit ;;
353332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
354333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
355 exit ;;
356 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
357 echo i386-pc-auroraux${UNAME_RELEASE}
358334 exit ;;
359335 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
360336 eval $set_cc_for_build
414390 # MiNT. But MiNT is downward compatible to TOS, so this should
415391 # be no problem.
416392 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
417 echo m68k-atari-mint${UNAME_RELEASE}
393 echo m68k-atari-mint${UNAME_RELEASE}
418394 exit ;;
419395 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
420396 echo m68k-atari-mint${UNAME_RELEASE}
421 exit ;;
397 exit ;;
422398 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
423 echo m68k-atari-mint${UNAME_RELEASE}
399 echo m68k-atari-mint${UNAME_RELEASE}
424400 exit ;;
425401 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
426 echo m68k-milan-mint${UNAME_RELEASE}
427 exit ;;
402 echo m68k-milan-mint${UNAME_RELEASE}
403 exit ;;
428404 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
429 echo m68k-hades-mint${UNAME_RELEASE}
430 exit ;;
405 echo m68k-hades-mint${UNAME_RELEASE}
406 exit ;;
431407 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
432 echo m68k-unknown-mint${UNAME_RELEASE}
433 exit ;;
408 echo m68k-unknown-mint${UNAME_RELEASE}
409 exit ;;
434410 m68k:machten:*:*)
435411 echo m68k-apple-machten${UNAME_RELEASE}
436412 exit ;;
500476 echo m88k-motorola-sysv3
501477 exit ;;
502478 AViiON:dgux:*:*)
503 # DG/UX returns AViiON for all architectures
504 UNAME_PROCESSOR=`/usr/bin/uname -p`
479 # DG/UX returns AViiON for all architectures
480 UNAME_PROCESSOR=`/usr/bin/uname -p`
505481 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
506482 then
507483 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
514490 else
515491 echo i586-dg-dgux${UNAME_RELEASE}
516492 fi
517 exit ;;
493 exit ;;
518494 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
519495 echo m88k-dolphin-sysv3
520496 exit ;;
571547 echo rs6000-ibm-aix3.2
572548 fi
573549 exit ;;
574 *:AIX:*:[4567])
550 *:AIX:*:[456])
575551 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
576552 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
577553 IBM_ARCH=rs6000
614590 9000/[678][0-9][0-9])
615591 if [ -x /usr/bin/getconf ]; then
616592 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
617 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
618 case "${sc_cpu_version}" in
619 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
620 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
621 532) # CPU_PA_RISC2_0
622 case "${sc_kernel_bits}" in
623 32) HP_ARCH="hppa2.0n" ;;
624 64) HP_ARCH="hppa2.0w" ;;
593 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
594 case "${sc_cpu_version}" in
595 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
596 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
597 532) # CPU_PA_RISC2_0
598 case "${sc_kernel_bits}" in
599 32) HP_ARCH="hppa2.0n" ;;
600 64) HP_ARCH="hppa2.0w" ;;
625601 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
626 esac ;;
627 esac
602 esac ;;
603 esac
628604 fi
629605 if [ "${HP_ARCH}" = "" ]; then
630606 eval $set_cc_for_build
631 sed 's/^ //' << EOF >$dummy.c
632
633 #define _HPUX_SOURCE
634 #include <stdlib.h>
635 #include <unistd.h>
636
637 int main ()
638 {
639 #if defined(_SC_KERNEL_BITS)
640 long bits = sysconf(_SC_KERNEL_BITS);
641 #endif
642 long cpu = sysconf (_SC_CPU_VERSION);
643
644 switch (cpu)
645 {
646 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
647 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
648 case CPU_PA_RISC2_0:
649 #if defined(_SC_KERNEL_BITS)
650 switch (bits)
651 {
652 case 64: puts ("hppa2.0w"); break;
653 case 32: puts ("hppa2.0n"); break;
654 default: puts ("hppa2.0"); break;
655 } break;
656 #else /* !defined(_SC_KERNEL_BITS) */
657 puts ("hppa2.0"); break;
658 #endif
659 default: puts ("hppa1.0"); break;
660 }
661 exit (0);
662 }
607 sed 's/^ //' << EOF >$dummy.c
608
609 #define _HPUX_SOURCE
610 #include <stdlib.h>
611 #include <unistd.h>
612
613 int main ()
614 {
615 #if defined(_SC_KERNEL_BITS)
616 long bits = sysconf(_SC_KERNEL_BITS);
617 #endif
618 long cpu = sysconf (_SC_CPU_VERSION);
619
620 switch (cpu)
621 {
622 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
623 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
624 case CPU_PA_RISC2_0:
625 #if defined(_SC_KERNEL_BITS)
626 switch (bits)
627 {
628 case 64: puts ("hppa2.0w"); break;
629 case 32: puts ("hppa2.0n"); break;
630 default: puts ("hppa2.0"); break;
631 } break;
632 #else /* !defined(_SC_KERNEL_BITS) */
633 puts ("hppa2.0"); break;
634 #endif
635 default: puts ("hppa1.0"); break;
636 }
637 exit (0);
638 }
663639 EOF
664640 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
665641 test -z "$HP_ARCH" && HP_ARCH=hppa
750726 exit ;;
751727 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
752728 echo c1-convex-bsd
753 exit ;;
729 exit ;;
754730 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
755731 if getsysinfo -f scalar_acc
756732 then echo c32-convex-bsd
757733 else echo c2-convex-bsd
758734 fi
759 exit ;;
735 exit ;;
760736 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
761737 echo c34-convex-bsd
762 exit ;;
738 exit ;;
763739 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
764740 echo c38-convex-bsd
765 exit ;;
741 exit ;;
766742 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
767743 echo c4-convex-bsd
768 exit ;;
744 exit ;;
769745 CRAY*Y-MP:*:*:*)
770746 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
771747 exit ;;
789765 exit ;;
790766 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
791767 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
792 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
793 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
794 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
795 exit ;;
768 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
769 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
770 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
771 exit ;;
796772 5000:UNIX_System_V:4.*:*)
797 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
798 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
799 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
775 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
800776 exit ;;
801777 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
802778 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
808784 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
809785 exit ;;
810786 *:FreeBSD:*:*)
811 UNAME_PROCESSOR=`/usr/bin/uname -p`
812 case ${UNAME_PROCESSOR} in
787 case ${UNAME_MACHINE} in
788 pc98)
789 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
813790 amd64)
814791 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
815792 *)
816 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
793 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
817794 esac
818795 exit ;;
819796 i*:CYGWIN*:*)
820797 echo ${UNAME_MACHINE}-pc-cygwin
821798 exit ;;
822 *:MINGW64*:*)
823 echo ${UNAME_MACHINE}-pc-mingw64
824 exit ;;
825799 *:MINGW*:*)
826800 echo ${UNAME_MACHINE}-pc-mingw32
827801 exit ;;
828 i*:MSYS*:*)
829 echo ${UNAME_MACHINE}-pc-msys
830 exit ;;
831802 i*:windows32*:*)
832 # uname -m includes "-pc" on this system.
833 echo ${UNAME_MACHINE}-mingw32
803 # uname -m includes "-pc" on this system.
804 echo ${UNAME_MACHINE}-mingw32
834805 exit ;;
835806 i*:PW*:*)
836807 echo ${UNAME_MACHINE}-pc-pw32
837808 exit ;;
838 *:Interix*:*)
839 case ${UNAME_MACHINE} in
809 *:Interix*:[3456]*)
810 case ${UNAME_MACHINE} in
840811 x86)
841812 echo i586-pc-interix${UNAME_RELEASE}
842813 exit ;;
843 authenticamd | genuineintel | EM64T)
814 EM64T | authenticamd | genuineintel)
844815 echo x86_64-unknown-interix${UNAME_RELEASE}
845816 exit ;;
846817 IA64)
873844 exit ;;
874845 *:GNU:*:*)
875846 # the GNU system
876 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
847 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
877848 exit ;;
878849 *:GNU/*:*:*)
879850 # other systems with GNU libc and userland
880 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
851 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
881852 exit ;;
882853 i*86:Minix:*:*)
883854 echo ${UNAME_MACHINE}-pc-minix
884 exit ;;
885 aarch64:Linux:*:*)
886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
887 exit ;;
888 aarch64_be:Linux:*:*)
889 UNAME_MACHINE=aarch64_be
890 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
891 exit ;;
892 alpha:Linux:*:*)
893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894 EV5) UNAME_MACHINE=alphaev5 ;;
895 EV56) UNAME_MACHINE=alphaev56 ;;
896 PCA56) UNAME_MACHINE=alphapca56 ;;
897 PCA57) UNAME_MACHINE=alphapca56 ;;
898 EV6) UNAME_MACHINE=alphaev6 ;;
899 EV67) UNAME_MACHINE=alphaev67 ;;
900 EV68*) UNAME_MACHINE=alphaev68 ;;
901 esac
902 objdump --private-headers /bin/sh | grep -q ld.so.1
903 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
905 exit ;;
906 arc:Linux:*:* | arceb:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
908855 exit ;;
909856 arm*:Linux:*:*)
910857 eval $set_cc_for_build
911858 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
912859 | grep -q __ARM_EABI__
913860 then
914 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
861 echo ${UNAME_MACHINE}-unknown-linux-gnu
915862 else
916 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
917 | grep -q __ARM_PCS_VFP
918 then
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
920 else
921 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
922 fi
863 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
923864 fi
924865 exit ;;
925866 avr32*:Linux:*:*)
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
867 echo ${UNAME_MACHINE}-unknown-linux-gnu
927868 exit ;;
928869 cris:Linux:*:*)
929 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
870 echo cris-axis-linux-gnu
930871 exit ;;
931872 crisv32:Linux:*:*)
932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
873 echo crisv32-axis-linux-gnu
933874 exit ;;
934875 frv:Linux:*:*)
935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
936 exit ;;
937 hexagon:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
939 exit ;;
940 i*86:Linux:*:*)
941 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
876 echo frv-unknown-linux-gnu
942877 exit ;;
943878 ia64:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
945880 exit ;;
946881 m32r*:Linux:*:*)
947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
882 echo ${UNAME_MACHINE}-unknown-linux-gnu
948883 exit ;;
949884 m68*:Linux:*:*)
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
885 echo ${UNAME_MACHINE}-unknown-linux-gnu
951886 exit ;;
952887 mips:Linux:*:* | mips64:Linux:*:*)
953888 eval $set_cc_for_build
965900 #endif
966901 #endif
967902 EOF
968 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
969 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
903 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
904 /^CPU/{
905 s: ::g
906 p
907 }'`"
908 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
970909 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
974910 or32:Linux:*:*)
975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
911 echo or32-unknown-linux-gnu
912 exit ;;
913 ppc:Linux:*:*)
914 echo powerpc-unknown-linux-gnu
915 exit ;;
916 ppc64:Linux:*:*)
917 echo powerpc64-unknown-linux-gnu
918 exit ;;
919 alpha:Linux:*:*)
920 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
921 EV5) UNAME_MACHINE=alphaev5 ;;
922 EV56) UNAME_MACHINE=alphaev56 ;;
923 PCA56) UNAME_MACHINE=alphapca56 ;;
924 PCA57) UNAME_MACHINE=alphapca56 ;;
925 EV6) UNAME_MACHINE=alphaev6 ;;
926 EV67) UNAME_MACHINE=alphaev67 ;;
927 EV68*) UNAME_MACHINE=alphaev68 ;;
928 esac
929 objdump --private-headers /bin/sh | grep -q ld.so.1
930 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
931 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
976932 exit ;;
977933 padre:Linux:*:*)
978 echo sparc-unknown-linux-${LIBC}
979 exit ;;
980 parisc64:Linux:*:* | hppa64:Linux:*:*)
981 echo hppa64-unknown-linux-${LIBC}
934 echo sparc-unknown-linux-gnu
982935 exit ;;
983936 parisc:Linux:*:* | hppa:Linux:*:*)
984937 # Look for CPU level
985938 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
986 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
987 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
988 *) echo hppa-unknown-linux-${LIBC} ;;
939 PA7*) echo hppa1.1-unknown-linux-gnu ;;
940 PA8*) echo hppa2.0-unknown-linux-gnu ;;
941 *) echo hppa-unknown-linux-gnu ;;
989942 esac
990943 exit ;;
991 ppc64:Linux:*:*)
992 echo powerpc64-unknown-linux-${LIBC}
993 exit ;;
994 ppc:Linux:*:*)
995 echo powerpc-unknown-linux-${LIBC}
996 exit ;;
997 ppc64le:Linux:*:*)
998 echo powerpc64le-unknown-linux-${LIBC}
999 exit ;;
1000 ppcle:Linux:*:*)
1001 echo powerpcle-unknown-linux-${LIBC}
944 parisc64:Linux:*:* | hppa64:Linux:*:*)
945 echo hppa64-unknown-linux-gnu
1002946 exit ;;
1003947 s390:Linux:*:* | s390x:Linux:*:*)
1004 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
948 echo ${UNAME_MACHINE}-ibm-linux
1005949 exit ;;
1006950 sh64*:Linux:*:*)
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
951 echo ${UNAME_MACHINE}-unknown-linux-gnu
1008952 exit ;;
1009953 sh*:Linux:*:*)
1010 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
954 echo ${UNAME_MACHINE}-unknown-linux-gnu
1011955 exit ;;
1012956 sparc:Linux:*:* | sparc64:Linux:*:*)
1013 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1014 exit ;;
1015 tile*:Linux:*:*)
1016 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
957 echo ${UNAME_MACHINE}-unknown-linux-gnu
1017958 exit ;;
1018959 vax:Linux:*:*)
1019 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
960 echo ${UNAME_MACHINE}-dec-linux-gnu
1020961 exit ;;
1021962 x86_64:Linux:*:*)
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
963 echo x86_64-unknown-linux-gnu
1023964 exit ;;
1024965 xtensa*:Linux:*:*)
1025 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1026 exit ;;
966 echo ${UNAME_MACHINE}-unknown-linux-gnu
967 exit ;;
968 i*86:Linux:*:*)
969 # The BFD linker knows what the default object file format is, so
970 # first see if it will tell us. cd to the root directory to prevent
971 # problems with other programs or directories called `ld' in the path.
972 # Set LC_ALL=C to ensure ld outputs messages in English.
973 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
974 | sed -ne '/supported targets:/!d
975 s/[ ][ ]*/ /g
976 s/.*supported targets: *//
977 s/ .*//
978 p'`
979 case "$ld_supported_targets" in
980 elf32-i386)
981 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
982 ;;
983 esac
984 # Determine whether the default compiler is a.out or elf
985 eval $set_cc_for_build
986 sed 's/^ //' << EOF >$dummy.c
987 #include <features.h>
988 #ifdef __ELF__
989 # ifdef __GLIBC__
990 # if __GLIBC__ >= 2
991 LIBC=gnu
992 # else
993 LIBC=gnulibc1
994 # endif
995 # else
996 LIBC=gnulibc1
997 # endif
998 #else
999 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1000 LIBC=gnu
1001 #else
1002 LIBC=gnuaout
1003 #endif
1004 #endif
1005 #ifdef __dietlibc__
1006 LIBC=dietlibc
1007 #endif
1008 EOF
1009 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1010 /^LIBC/{
1011 s: ::g
1012 p
1013 }'`"
1014 test x"${LIBC}" != x && {
1015 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1016 exit
1017 }
1018 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1019 ;;
10271020 i*86:DYNIX/ptx:4*:*)
10281021 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10291022 # earlier versions are messed up and put the nodename in both
10311024 echo i386-sequent-sysv4
10321025 exit ;;
10331026 i*86:UNIX_SV:4.2MP:2.*)
1034 # Unixware is an offshoot of SVR4, but it has its own version
1035 # number series starting with 2...
1036 # I am not positive that other SVR4 systems won't match this,
1027 # Unixware is an offshoot of SVR4, but it has its own version
1028 # number series starting with 2...
1029 # I am not positive that other SVR4 systems won't match this,
10371030 # I just have to hope. -- rms.
1038 # Use sysv4.2uw... so that sysv4* matches it.
1031 # Use sysv4.2uw... so that sysv4* matches it.
10391032 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
10401033 exit ;;
10411034 i*86:OS/2:*:*)
10671060 fi
10681061 exit ;;
10691062 i*86:*:5:[678]*)
1070 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1063 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10711064 case `/bin/uname -X | grep "^Machine"` in
10721065 *486*) UNAME_MACHINE=i486 ;;
10731066 *Pentium) UNAME_MACHINE=i586 ;;
10951088 exit ;;
10961089 pc:*:*:*)
10971090 # Left here for compatibility:
1098 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1099 # the processor, so we play safe by assuming i586.
1091 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1092 # the processor, so we play safe by assuming i586.
11001093 # Note: whatever this is, it MUST be the same as what config.sub
11011094 # prints for the "djgpp" host, or else GDB configury will decide that
11021095 # this is a cross-build.
11031096 echo i586-pc-msdosdjgpp
1104 exit ;;
1097 exit ;;
11051098 Intel:Mach:3*:*)
11061099 echo i386-pc-mach3
11071100 exit ;;
11361129 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
11371130 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11381131 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1139 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1140 && { echo i486-ncr-sysv4; exit; } ;;
1132 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133 && { echo i486-ncr-sysv4; exit; } ;;
11411134 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
11421135 OS_REL='.3'
11431136 test -r /etc/.relid \
11801173 echo ns32k-sni-sysv
11811174 fi
11821175 exit ;;
1183 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1184 # says <Richard.M.Bartel@ccMail.Census.GOV>
1185 echo i586-unisys-sysv4
1186 exit ;;
1176 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1177 # says <Richard.M.Bartel@ccMail.Census.GOV>
1178 echo i586-unisys-sysv4
1179 exit ;;
11871180 *:UNIX_System_V:4*:FTX*)
11881181 # From Gerald Hewes <hewes@openmarket.com>.
11891182 # How about differentiating between stratus architectures? -djm
12091202 exit ;;
12101203 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12111204 if [ -d /usr/nec ]; then
1212 echo mips-nec-sysv${UNAME_RELEASE}
1205 echo mips-nec-sysv${UNAME_RELEASE}
12131206 else
1214 echo mips-unknown-sysv${UNAME_RELEASE}
1215 fi
1216 exit ;;
1207 echo mips-unknown-sysv${UNAME_RELEASE}
1208 fi
1209 exit ;;
12171210 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12181211 echo powerpc-be-beos
12191212 exit ;;
12261219 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
12271220 echo i586-pc-haiku
12281221 exit ;;
1229 x86_64:Haiku:*:*)
1230 echo x86_64-unknown-haiku
1231 exit ;;
12321222 SX-4:SUPER-UX:*:*)
12331223 echo sx4-nec-superux${UNAME_RELEASE}
12341224 exit ;;
12551245 exit ;;
12561246 *:Darwin:*:*)
12571247 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1258 eval $set_cc_for_build
1259 if test "$UNAME_PROCESSOR" = unknown ; then
1260 UNAME_PROCESSOR=powerpc
1261 fi
1262 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1263 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265 grep IS_64BIT_ARCH >/dev/null
1266 then
1267 case $UNAME_PROCESSOR in
1268 i386) UNAME_PROCESSOR=x86_64 ;;
1269 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1270 esac
1271 fi
1272 fi
1248 case $UNAME_PROCESSOR in
1249 unknown) UNAME_PROCESSOR=powerpc ;;
1250 esac
12731251 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12741252 exit ;;
12751253 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12831261 *:QNX:*:4*)
12841262 echo i386-pc-qnx
12851263 exit ;;
1286 NEO-?:NONSTOP_KERNEL:*:*)
1287 echo neo-tandem-nsk${UNAME_RELEASE}
1288 exit ;;
1289 NSE-*:NONSTOP_KERNEL:*:*)
1264 NSE-?:NONSTOP_KERNEL:*:*)
12901265 echo nse-tandem-nsk${UNAME_RELEASE}
12911266 exit ;;
12921267 NSR-?:NONSTOP_KERNEL:*:*)
13311306 echo pdp10-unknown-its
13321307 exit ;;
13331308 SEI:*:*:SEIUX)
1334 echo mips-sei-seiux${UNAME_RELEASE}
1309 echo mips-sei-seiux${UNAME_RELEASE}
13351310 exit ;;
13361311 *:DragonFly:*:*)
13371312 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
13381313 exit ;;
13391314 *:*VMS:*:*)
1340 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1315 UNAME_MACHINE=`(uname -p) 2>/dev/null`
13411316 case "${UNAME_MACHINE}" in
13421317 A*) echo alpha-dec-vms ; exit ;;
13431318 I*) echo ia64-dec-vms ; exit ;;
13551330 i*86:AROS:*:*)
13561331 echo ${UNAME_MACHINE}-pc-aros
13571332 exit ;;
1358 x86_64:VMkernel:*:*)
1359 echo ${UNAME_MACHINE}-unknown-esx
1360 exit ;;
13611333 esac
1334
1335 #echo '(No uname command or uname output not recognized.)' 1>&2
1336 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13621337
13631338 eval $set_cc_for_build
13641339 cat >$dummy.c <<EOF
13771352 #include <sys/param.h>
13781353 printf ("m68k-sony-newsos%s\n",
13791354 #ifdef NEWSOS4
1380 "4"
1355 "4"
13811356 #else
1382 ""
1383 #endif
1384 ); exit (0);
1357 ""
1358 #endif
1359 ); exit (0);
13851360 #endif
13861361 #endif
13871362
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-08-10'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-06-11'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
915 # (at your option) any later version.
1016 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
1521 #
1622 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
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.
1826 #
1927 # As a special exception to the GNU General Public License, if you
2028 # distribute this file as part of a program that contains a
2129 # configuration script generated by Autoconf, you may include it under
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
2835 #
2936 # Configuration subroutine to validate and canonicalize a configuration type.
3037 # Supply the specified configuration type as an argument.
3138 # If it is invalid, we print an error message on stderr and exit with code 1.
3239 # Otherwise, we print the canonical config type on stdout and succeed.
33
34 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
3640
3741 # This file is supposed to be the same for all GNU packages
3842 # and recognize all the CPU types, system types and aliases
6771 version="\
6872 GNU config.sub ($timestamp)
6973
70 Copyright 1992-2013 Free Software Foundation, Inc.
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7176
7277 This is free software; see the source for copying conditions. There is NO
7378 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
114119 # Here we must recognize all the valid KERNEL-OS combinations.
115120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116121 case $maybe_os in
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
120124 kopensolaris*-gnu* | \
121125 storm-chaos* | os2-emx* | rtmk-nova*)
122126 os=-$maybe_os
123127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128128 ;;
129129 *)
130130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
148148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray | -microblaze*)
151 -apple | -axis | -knuth | -cray)
152152 os=
153153 basic_machine=$1
154154 ;;
155 -bluegene*)
156 os=-cnk
155 -bluegene*)
156 os=-cnk
157157 ;;
158158 -sim | -cisco | -oki | -wec | -winbond)
159159 os=
169169 os=-chorusos
170170 basic_machine=$1
171171 ;;
172 -chorusrdb)
173 os=-chorusrdb
172 -chorusrdb)
173 os=-chorusrdb
174174 basic_machine=$1
175 ;;
175 ;;
176176 -hiux*)
177177 os=-hiuxwe2
178178 ;;
216216 ;;
217217 -isc*)
218218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
225219 ;;
226220 -lynx*)
227221 os=-lynxos
247241 # Some are omitted here because they have special meanings below.
248242 1750a | 580 \
249243 | a29k \
250 | aarch64 | aarch64_be \
251244 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252245 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253246 | am33_2.0 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
247 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
258248 | bfin \
259 | c4x | c8051 | clipper \
249 | c4x | clipper \
260250 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262251 | fido | fr30 | frv \
263252 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264 | hexagon \
265253 | i370 | i860 | i960 | ia64 \
266254 | ip2k | iq2000 \
267 | le32 | le64 \
268255 | lm32 \
269256 | m32c | m32r | m32rle | m68000 | m68k | m88k \
270 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
257 | maxq | mb | microblaze | mcore | mep | metag \
271258 | mips | mipsbe | mipseb | mipsel | mipsle \
272259 | mips16 \
273260 | mips64 | mips64el \
285272 | mipsisa64r2 | mipsisa64r2el \
286273 | mipsisa64sb1 | mipsisa64sb1el \
287274 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
289275 | mipstx39 | mipstx39el \
290276 | mn10200 | mn10300 \
291277 | moxie \
292278 | mt \
293279 | msp430 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
280 | nios | nios2 \
296281 | ns16k | ns32k \
297 | open8 \
298 | or1k | or32 \
282 | or32 \
299283 | pdp10 | pdp11 | pj | pjl \
300 | powerpc | powerpc64 | powerpc64le | powerpcle \
284 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
301285 | pyramid \
302 | rl78 | rx \
303286 | score \
304287 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305288 | sh64 | sh64le \
306289 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
307290 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
308 | spu \
309 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
310 | ubicom32 \
311 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
291 | spu | strongarm \
292 | tahoe | thumb | tic4x | tic80 | tron \
293 | v850 | v850e \
312294 | we32k \
313 | x86 | xc16x | xstormy16 | xtensa \
295 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
314296 | z8k | z80)
315297 basic_machine=$basic_machine-unknown
316298 ;;
317 c54x)
318 basic_machine=tic54x-unknown
319 ;;
320 c55x)
321 basic_machine=tic55x-unknown
322 ;;
323 c6x)
324 basic_machine=tic6x-unknown
325 ;;
326 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
299 m6811 | m68hc11 | m6812 | m68hc12)
300 # Motorola 68HC11/12.
327301 basic_machine=$basic_machine-unknown
328302 os=-none
329303 ;;
331305 ;;
332306 ms1)
333307 basic_machine=mt-unknown
334 ;;
335
336 strongarm | thumb | xscale)
337 basic_machine=arm-unknown
338 ;;
339 xgate)
340 basic_machine=$basic_machine-unknown
341 os=-none
342 ;;
343 xscaleeb)
344 basic_machine=armeb-unknown
345 ;;
346
347 xscaleel)
348 basic_machine=armel-unknown
349308 ;;
350309
351310 # We use `pc' rather than `unknown'
362321 # Recognize the basic CPU types with company name.
363322 580-* \
364323 | a29k-* \
365 | aarch64-* | aarch64_be-* \
366324 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
367325 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
326 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
369327 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
370328 | avr-* | avr32-* \
371 | be32-* | be64-* \
372329 | bfin-* | bs2000-* \
373 | c[123]* | c30-* | [cjt]90-* | c4x-* \
374 | c8051-* | clipper-* | craynv-* | cydra-* \
330 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
331 | clipper-* | craynv-* | cydra-* \
375332 | d10v-* | d30v-* | dlx-* \
376333 | elxsi-* \
377334 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
378335 | h8300-* | h8500-* \
379336 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
380 | hexagon-* \
381337 | i*86-* | i860-* | i960-* | ia64-* \
382338 | ip2k-* | iq2000-* \
383 | le32-* | le64-* \
384339 | lm32-* \
385340 | m32c-* | m32r-* | m32rle-* \
386341 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
387342 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
388 | microblaze-* | microblazeel-* \
389343 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
390344 | mips16-* \
391345 | mips64-* | mips64el-* \
403357 | mipsisa64r2-* | mipsisa64r2el-* \
404358 | mipsisa64sb1-* | mipsisa64sb1el-* \
405359 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406 | mipsr5900-* | mipsr5900el-* \
407360 | mipstx39-* | mipstx39el-* \
408361 | mmix-* \
409362 | mt-* \
410363 | msp430-* \
411 | nds32-* | nds32le-* | nds32be-* \
412 | nios-* | nios2-* | nios2eb-* | nios2el-* \
364 | nios-* | nios2-* \
413365 | none-* | np1-* | ns16k-* | ns32k-* \
414 | open8-* \
415366 | orion-* \
416367 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
417 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
368 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
418369 | pyramid-* \
419 | rl78-* | romp-* | rs6000-* | rx-* \
370 | romp-* | rs6000-* \
420371 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
421372 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
422373 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
423374 | sparclite-* \
424 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
425 | tahoe-* \
426 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
427 | tile*-* \
375 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
376 | tahoe-* | thumb-* \
377 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
428378 | tron-* \
429 | ubicom32-* \
430 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
431 | vax-* \
379 | v850-* | v850e-* | vax-* \
432380 | we32k-* \
433 | x86-* | x86_64-* | xc16x-* | xps100-* \
381 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
434382 | xstormy16-* | xtensa*-* \
435383 | ymp-* \
436384 | z8k-* | z80-*)
455403 basic_machine=a29k-amd
456404 os=-udi
457405 ;;
458 abacus)
406 abacus)
459407 basic_machine=abacus-unknown
460408 ;;
461409 adobe68k)
525473 basic_machine=powerpc-ibm
526474 os=-cnk
527475 ;;
528 c54x-*)
529 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
530 ;;
531 c55x-*)
532 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
533 ;;
534 c6x-*)
535 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
536 ;;
537476 c90)
538477 basic_machine=c90-cray
539478 os=-unicos
540479 ;;
541 cegcc)
480 cegcc)
542481 basic_machine=arm-unknown
543482 os=-cegcc
544483 ;;
570509 basic_machine=craynv-cray
571510 os=-unicosmp
572511 ;;
573 cr16 | cr16-*)
512 cr16)
574513 basic_machine=cr16-unknown
575514 os=-elf
576515 ;;
728667 i370-ibm* | ibm*)
729668 basic_machine=i370-ibm
730669 ;;
670 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
731671 i*86v32)
732672 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
733673 os=-sysv32
785725 basic_machine=ns32k-utek
786726 os=-sysv
787727 ;;
788 microblaze*)
789 basic_machine=microblaze-xilinx
790 ;;
791 mingw64)
792 basic_machine=x86_64-pc
793 os=-mingw64
794 ;;
795728 mingw32)
796 basic_machine=i686-pc
729 basic_machine=i386-pc
797730 os=-mingw32
798731 ;;
799732 mingw32ce)
828761 ms1-*)
829762 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
830763 ;;
831 msys)
832 basic_machine=i686-pc
833 os=-msys
834 ;;
835764 mvs)
836765 basic_machine=i370-ibm
837766 os=-mvs
838 ;;
839 nacl)
840 basic_machine=le32-unknown
841 os=-nacl
842767 ;;
843768 ncr3000)
844769 basic_machine=i486-ncr
904829 np1)
905830 basic_machine=np1-gould
906831 ;;
907 neo-tandem)
908 basic_machine=neo-tandem
909 ;;
910 nse-tandem)
911 basic_machine=nse-tandem
912 ;;
913832 nsr-tandem)
914833 basic_machine=nsr-tandem
915834 ;;
992911 ;;
993912 power) basic_machine=power-ibm
994913 ;;
995 ppc | ppcbe) basic_machine=powerpc-unknown
996 ;;
997 ppc-* | ppcbe-*)
998 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
914 ppc) basic_machine=powerpc-unknown
915 ;;
916 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
999917 ;;
1000918 ppcle | powerpclittle | ppc-le | powerpc-little)
1001919 basic_machine=powerpcle-unknown
1020938 basic_machine=i586-unknown
1021939 os=-pw32
1022940 ;;
1023 rdos | rdos64)
1024 basic_machine=x86_64-pc
1025 os=-rdos
1026 ;;
1027 rdos32)
941 rdos)
1028942 basic_machine=i386-pc
1029943 os=-rdos
1030944 ;;
10931007 basic_machine=i860-stratus
10941008 os=-sysv4
10951009 ;;
1096 strongarm-* | thumb-*)
1097 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1098 ;;
10991010 sun2)
11001011 basic_machine=m68000-sun
11011012 ;;
11521063 basic_machine=t90-cray
11531064 os=-unicos
11541065 ;;
1066 tic54x | c54x*)
1067 basic_machine=tic54x-unknown
1068 os=-coff
1069 ;;
1070 tic55x | c55x*)
1071 basic_machine=tic55x-unknown
1072 os=-coff
1073 ;;
1074 tic6x | c6x*)
1075 basic_machine=tic6x-unknown
1076 os=-coff
1077 ;;
11551078 tile*)
1156 basic_machine=$basic_machine-unknown
1079 basic_machine=tile-unknown
11571080 os=-linux-gnu
11581081 ;;
11591082 tx39)
12221145 ;;
12231146 xps | xps100)
12241147 basic_machine=xps100-honeywell
1225 ;;
1226 xscale-* | xscalee[bl]-*)
1227 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
12281148 ;;
12291149 ymp)
12301150 basic_machine=ymp-cray
13231243 if [ x"$os" != x"" ]
13241244 then
13251245 case $os in
1326 # First match some system type aliases
1327 # that might get confused with valid system types.
1246 # First match some system type aliases
1247 # that might get confused with valid system types.
13281248 # -solaris* is a basic system type, with this one exception.
1329 -auroraux)
1330 os=-auroraux
1331 ;;
13321249 -solaris1 | -solaris1.*)
13331250 os=`echo $os | sed -e 's|solaris1|sunos4|'`
13341251 ;;
13501267 # -sysv* is not here because it comes later, after sysvr4.
13511268 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13521269 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1353 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1354 | -sym* | -kopensolaris* | -plan9* \
1270 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1271 | -kopensolaris* \
13551272 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
13561273 | -aos* | -aros* \
13571274 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13581275 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13591276 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1360 | -bitrig* | -openbsd* | -solidbsd* \
1277 | -openbsd* | -solidbsd* \
13611278 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13621279 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13631280 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13641281 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13651282 | -chorusos* | -chorusrdb* | -cegcc* \
1366 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1367 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1368 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1283 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1284 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
13691285 | -uxpv* | -beos* | -mpeix* | -udk* \
13701286 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13711287 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13731289 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13741290 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13751291 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1376 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1292 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
13771293 # Remember, each alternative MUST END IN *, to match a version number.
13781294 ;;
13791295 -qnx*)
14121328 -opened*)
14131329 os=-openedition
14141330 ;;
1415 -os400*)
1331 -os400*)
14161332 os=-os400
14171333 ;;
14181334 -wince*)
14611377 -sinix*)
14621378 os=-sysv4
14631379 ;;
1464 -tpf*)
1380 -tpf*)
14651381 os=-tpf
14661382 ;;
14671383 -triton*)
14971413 -aros*)
14981414 os=-aros
14991415 ;;
1416 -kaos*)
1417 os=-kaos
1418 ;;
15001419 -zvmoe)
15011420 os=-zvmoe
15021421 ;;
15031422 -dicos*)
15041423 os=-dicos
1505 ;;
1506 -nacl*)
15071424 ;;
15081425 -none)
15091426 ;;
15271444 # system, and we'll never get to this point.
15281445
15291446 case $basic_machine in
1530 score-*)
1447 score-*)
15311448 os=-elf
15321449 ;;
1533 spu-*)
1450 spu-*)
15341451 os=-elf
15351452 ;;
15361453 *-acorn)
15421459 arm*-semi)
15431460 os=-aout
15441461 ;;
1545 c4x-* | tic4x-*)
1546 os=-coff
1547 ;;
1548 c8051-*)
1549 os=-elf
1550 ;;
1551 hexagon-*)
1552 os=-elf
1553 ;;
1554 tic54x-*)
1555 os=-coff
1556 ;;
1557 tic55x-*)
1558 os=-coff
1559 ;;
1560 tic6x-*)
1561 os=-coff
1462 c4x-* | tic4x-*)
1463 os=-coff
15621464 ;;
15631465 # This must come before the *-dec entry.
15641466 pdp10-*)
15781480 ;;
15791481 m68000-sun)
15801482 os=-sunos3
1483 # This also exists in the configure program, but was not the
1484 # default.
1485 # os=-sunos4
15811486 ;;
15821487 m68*-cisco)
15831488 os=-aout
15841489 ;;
1585 mep-*)
1490 mep-*)
15861491 os=-elf
15871492 ;;
15881493 mips*-cisco)
15911496 mips*-*)
15921497 os=-elf
15931498 ;;
1594 or1k-*)
1595 os=-elf
1596 ;;
15971499 or32-*)
15981500 os=-coff
15991501 ;;
16121514 *-ibm)
16131515 os=-aix
16141516 ;;
1615 *-knuth)
1517 *-knuth)
16161518 os=-mmixware
16171519 ;;
16181520 *-wec)
+2290
-3192
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libgeotiff 1.4.1.
2 # Generated by GNU Autoconf 2.65 for libgeotiff 1.4.2.
33 #
44 # Report bugs to <warmerdam@pobox.com>.
55 #
66 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9 # Inc.
810 #
911 #
1012 # This configure script is free software; the Free Software Foundation
8890 IFS=" "" $as_nl"
8991
9092 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
9293 case $0 in #((
9394 *[\\/]* ) as_myself=$0 ;;
9495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133134 # CDPATH.
134135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135136
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161137 if test "x$CONFIG_SHELL" = x; then
162138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163139 emulate sh
191167 else
192168 exitcode=1; echo positional parameters were not saved.
193169 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
170 test x\$exitcode = x0 || exit 1"
196171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
208175 test \$(( 1 + 1 )) = 2 || exit 1"
209176 if (eval "$as_required") 2>/dev/null; then :
210177 as_have_required=yes
245212
246213
247214 if test "x$CONFIG_SHELL" != x; then :
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
267223 fi
268224
269225 if test x$as_have_required = xno; then :
362318 test -d "$as_dir" && break
363319 done
364320 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
366322
367323
368324 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377325 # as_fn_append VAR VALUE
378326 # ----------------------
379327 # Append the text in VALUE to the end of the definition contained in VAR. Take
410358 fi # as_fn_arith
411359
412360
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
415363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
365 # script with status $?, using 1 if that was 0.
418366 as_fn_error ()
419367 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
424372 fi
425 $as_echo "$as_me: error: $2" >&2
373 $as_echo "$as_me: error: $1" >&2
426374 as_fn_exit $as_status
427375 } # as_fn_error
428376
495443 chmod +x "$as_me.lineno" ||
496444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497445
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502446 # Don't try to exec as it changes $[0], causing all sort of problems
503447 # (the dirname of $[0] is not the place where we might find the
504448 # original and so on. Autoconf is especially sensitive to this).
533477 # ... but there are two gotchas:
534478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
480 # In both cases, we have to default to `cp -p'.
537481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
482 as_ln_s='cp -p'
539483 elif ln conf$$.file conf$$ 2>/dev/null; then
540484 as_ln_s=ln
541485 else
542 as_ln_s='cp -pR'
486 as_ln_s='cp -p'
543487 fi
544488 else
545 as_ln_s='cp -pR'
489 as_ln_s='cp -p'
546490 fi
547491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548492 rmdir conf$$.dir 2>/dev/null
554498 as_mkdir_p=false
555499 fi
556500
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
501 if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503 else
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
508 fi
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
520 '
521 fi
522 as_executable_p=$as_test_x
559523
560524 # Sed expression to map a string onto a valid CPP name.
561525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563527 # Sed expression to map a string onto a valid variable name.
564528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565529
530
531
532 # Check that we are running under the correct shell.
566533 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
567678
568679
569680 test -n "$DJDIR" || exec 7<&0 </dev/null
570681 exec 6>&1
571682
572683 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
684 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
574685 # so uname gets run too.
575686 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576687
589700 # Identity of this package.
590701 PACKAGE_NAME='libgeotiff'
591702 PACKAGE_TARNAME='libgeotiff'
592 PACKAGE_VERSION='1.4.1'
593 PACKAGE_STRING='libgeotiff 1.4.1'
703 PACKAGE_VERSION='1.4.2'
704 PACKAGE_STRING='libgeotiff 1.4.2'
594705 PACKAGE_BUGREPORT='warmerdam@pobox.com'
595706 PACKAGE_URL=''
596707
707818 LIPO
708819 NMEDIT
709820 DSYMUTIL
710 MANIFEST_TOOL
821 lt_ECHO
711822 RANLIB
712 ac_ct_AR
713823 AR
714 DLLTOOL
715824 OBJDUMP
716825 NM
717826 ac_ct_DUMPBIN
737846 am__fastdepCC_FALSE
738847 am__fastdepCC_TRUE
739848 CCDEPMODE
740 am__nodep
741849 AMDEPBACKSLASH
742850 AMDEP_FALSE
743851 AMDEP_TRUE
754862 MAINT
755863 MAINTAINER_MODE_FALSE
756864 MAINTAINER_MODE_TRUE
757 AM_BACKSLASH
758 AM_DEFAULT_VERBOSITY
759 AM_DEFAULT_V
760 AM_V
761865 am__untar
762866 am__tar
763867 AMTAR
827931 ac_subst_files=''
828932 ac_user_opts='
829933 enable_option_checking
830 enable_silent_rules
831934 enable_maintainer_mode
832935 enable_dependency_tracking
833936 enable_shared
835938 with_pic
836939 enable_fast_install
837940 with_gnu_ld
838 with_sysroot
839941 enable_libtool_lock
840942 enable_debug
841943 with_zip
9331035 fi
9341036
9351037 case $ac_option in
936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 *=) ac_optarg= ;;
938 *) ac_optarg=yes ;;
1038 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 *) ac_optarg=yes ;;
9391040 esac
9401041
9411042 # Accept the important Cygnus configure options, so we can diagnose typos.
9801081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9811082 # Reject names that are not valid shell variable names.
9821083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
1084 as_fn_error "invalid feature name: $ac_useropt"
9841085 ac_useropt_orig=$ac_useropt
9851086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9861087 case $ac_user_opts in
10061107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10071108 # Reject names that are not valid shell variable names.
10081109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1110 as_fn_error "invalid feature name: $ac_useropt"
10101111 ac_useropt_orig=$ac_useropt
10111112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10121113 case $ac_user_opts in
12101311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
12111312 # Reject names that are not valid shell variable names.
12121313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1314 as_fn_error "invalid package name: $ac_useropt"
12141315 ac_useropt_orig=$ac_useropt
12151316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12161317 case $ac_user_opts in
12261327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
12271328 # Reject names that are not valid shell variable names.
12281329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1330 as_fn_error "invalid package name: $ac_useropt"
12301331 ac_useropt_orig=$ac_useropt
12311332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12321333 case $ac_user_opts in
12561357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12571358 x_libraries=$ac_optarg ;;
12581359
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1360 -*) as_fn_error "unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information."
12611362 ;;
12621363
12631364 *=*)
12651366 # Reject names that are not valid shell variable names.
12661367 case $ac_envvar in #(
12671368 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
12691370 esac
12701371 eval $ac_envvar=\$ac_optarg
12711372 export $ac_envvar ;;
12751376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12761377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12771378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
12791380 ;;
12801381
12811382 esac
12831384
12841385 if test -n "$ac_prev"; then
12851386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1387 as_fn_error "missing argument to $ac_option"
12871388 fi
12881389
12891390 if test -n "$ac_unrecognized_opts"; then
12901391 case $enable_option_checking in
12911392 no) ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
12931394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12941395 esac
12951396 fi
13121413 [\\/$]* | ?:[\\/]* ) continue;;
13131414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
13141415 esac
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
13161417 done
13171418
13181419 # There might be people who depend on the old broken behavior: `$host'
13261427 if test "x$host_alias" != x; then
13271428 if test "x$build_alias" = x; then
13281429 cross_compiling=maybe
1430 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1431 If a cross compiler is detected then cross compile mode will be used." >&2
13291432 elif test "x$build_alias" != "x$host_alias"; then
13301433 cross_compiling=yes
13311434 fi
13401443 ac_pwd=`pwd` && test -n "$ac_pwd" &&
13411444 ac_ls_di=`ls -di .` &&
13421445 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1446 as_fn_error "working directory cannot be determined"
13441447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1448 as_fn_error "pwd does not report name of working directory"
13461449
13471450
13481451 # Find the source files, if location was not specified.
13811484 fi
13821485 if test ! -r "$srcdir/$ac_unique_file"; then
13831486 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1487 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
13851488 fi
13861489 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13871490 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1491 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
13891492 pwd)`
13901493 # When building in place, set srcdir=.
13911494 if test "$ac_abs_confdir" = "$ac_pwd"; then
14111514 # Omit some internal or obsolete options to make the list less imposing.
14121515 # This message is too long to be a string in the A/UX 3.1 sh.
14131516 cat <<_ACEOF
1414 \`configure' configures libgeotiff 1.4.1 to adapt to many kinds of systems.
1517 \`configure' configures libgeotiff 1.4.2 to adapt to many kinds of systems.
14151518
14161519 Usage: $0 [OPTION]... [VAR=VALUE]...
14171520
14251528 --help=short display options specific to this package
14261529 --help=recursive display the short help of all the included packages
14271530 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1531 -q, --quiet, --silent do not print \`checking...' messages
14291532 --cache-file=FILE cache test results in FILE [disabled]
14301533 -C, --config-cache alias for \`--cache-file=config.cache'
14311534 -n, --no-create do not create output files
14811584
14821585 if test -n "$ac_init_help"; then
14831586 case $ac_init_help in
1484 short | recursive ) echo "Configuration of libgeotiff 1.4.1:";;
1587 short | recursive ) echo "Configuration of libgeotiff 1.4.2:";;
14851588 esac
14861589 cat <<\_ACEOF
14871590
14891592 --disable-option-checking ignore unrecognized --enable/--with options
14901593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14911594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --enable-silent-rules less verbose build output (undo: "make V=1")
1493 --disable-silent-rules verbose build output (undo: "make V=0")
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
1595 --enable-maintainer-mode enable make rules and dependencies not useful
1596 (and sometimes confusing) to the casual installer
1597 --disable-dependency-tracking speeds up one-time build
1598 --enable-dependency-tracking do not reject slow dependency extractors
15011599 --enable-shared[=PKGS] build shared libraries [default=yes]
15021600 --enable-static[=PKGS] build static libraries [default=yes]
15031601 --enable-fast-install[=PKGS]
15221620 Optional Packages:
15231621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
15241622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1623 --with-pic try to use only PIC/non-PIC objects [default=use
15261624 both]
15271625 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-sysroot=DIR Search for dependent libraries within DIR
1529 (or the compiler's sysroot if not specified).
15301626 --with-zip=ARG zlib library to use (yes or path)
15311627 --with-zlib=ARG alias for --with-zip
15321628 --with-libz=ARG alias for --with-zip
16151711 test -n "$ac_init_help" && exit $ac_status
16161712 if $ac_init_version; then
16171713 cat <<\_ACEOF
1618 libgeotiff configure 1.4.1
1619 generated by GNU Autoconf 2.69
1620
1621 Copyright (C) 2012 Free Software Foundation, Inc.
1714 libgeotiff configure 1.4.2
1715 generated by GNU Autoconf 2.65
1716
1717 Copyright (C) 2009 Free Software Foundation, Inc.
16221718 This configure script is free software; the Free Software Foundation
16231719 gives unlimited permission to copy, distribute and modify it.
16241720 _ACEOF
16621758
16631759 ac_retval=1
16641760 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
16661762 as_fn_set_status $ac_retval
16671763
16681764 } # ac_fn_c_try_compile
17001796
17011797 ac_retval=1
17021798 fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17041800 as_fn_set_status $ac_retval
17051801
17061802 } # ac_fn_cxx_try_compile
17261822 mv -f conftest.er1 conftest.err
17271823 fi
17281824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } > conftest.i && {
1825 test $ac_status = 0; } >/dev/null && {
17301826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
17311827 test ! -s conftest.err
17321828 }; then :
17371833
17381834 ac_retval=1
17391835 fi
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17411837 as_fn_set_status $ac_retval
17421838
17431839 } # ac_fn_cxx_try_cpp
17691865 test ! -s conftest.err
17701866 } && test -s conftest$ac_exeext && {
17711867 test "$cross_compiling" = yes ||
1772 test -x conftest$ac_exeext
1868 $as_test_x conftest$ac_exeext
17731869 }; then :
17741870 ac_retval=0
17751871 else
17831879 # interfere with the next link command; also delete a directory that is
17841880 # left behind by Apple's compiler. We do this before executing the actions.
17851881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17871883 as_fn_set_status $ac_retval
17881884
17891885 } # ac_fn_c_try_link
17971893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17981894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17991895 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
18011897 $as_echo_n "(cached) " >&6
18021898 else
18031899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151911 eval ac_res=\$$3
18161912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18171913 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
18191915
18201916 } # ac_fn_c_check_header_compile
18211917
18401936 mv -f conftest.er1 conftest.err
18411937 fi
18421938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } > conftest.i && {
1939 test $ac_status = 0; } >/dev/null && {
18441940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18451941 test ! -s conftest.err
18461942 }; then :
18511947
18521948 ac_retval=1
18531949 fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
18551951 as_fn_set_status $ac_retval
18561952
18571953 } # ac_fn_c_try_cpp
18931989 ac_retval=$ac_status
18941990 fi
18951991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
18971993 as_fn_set_status $ac_retval
18981994
18991995 } # ac_fn_c_try_run
19062002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19072003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19082004 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
2005 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
19102006 $as_echo_n "(cached) " >&6
19112007 else
19122008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612057 eval ac_res=\$$3
19622058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19632059 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
19652061
19662062 } # ac_fn_c_check_func
19672063
19922088 test ! -s conftest.err
19932089 } && test -s conftest$ac_exeext && {
19942090 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
2091 $as_test_x conftest$ac_exeext
19962092 }; then :
19972093 ac_retval=0
19982094 else
20062102 # interfere with the next link command; also delete a directory that is
20072103 # left behind by Apple's compiler. We do this before executing the actions.
20082104 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
20102106 as_fn_set_status $ac_retval
20112107
20122108 } # ac_fn_cxx_try_link
20192115 ac_fn_c_check_header_mongrel ()
20202116 {
20212117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if eval \${$3+:} false; then :
2118 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
20232119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
20242120 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
20262122 $as_echo_n "(cached) " >&6
20272123 fi
20282124 eval ac_res=\$$3
20582154 else
20592155 ac_header_preproc=no
20602156 fi
2061 rm -f conftest.err conftest.i conftest.$ac_ext
2157 rm -f conftest.err conftest.$ac_ext
20622158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
20632159 $as_echo "$ac_header_preproc" >&6; }
20642160
20812177 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
20822178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
20832179 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084 ( $as_echo "## ---------------------------------- ##
2180 ( cat <<\_ASBOX
2181 ## ---------------------------------- ##
20852182 ## Report this to warmerdam@pobox.com ##
2086 ## ---------------------------------- ##"
2183 ## ---------------------------------- ##
2184 _ASBOX
20872185 ) | sed "s/^/$as_me: WARNING: /" >&2
20882186 ;;
20892187 esac
20902188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
20912189 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
20932191 $as_echo_n "(cached) " >&6
20942192 else
20952193 eval "$3=\$ac_header_compiler"
20982196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20992197 $as_echo "$ac_res" >&6; }
21002198 fi
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
21022200
21032201 } # ac_fn_c_check_header_mongrel
21042202 cat >config.log <<_ACEOF
21052203 This file contains any messages produced by compilers while
21062204 running configure, to aid debugging if configure makes a mistake.
21072205
2108 It was created by libgeotiff $as_me 1.4.1, which was
2109 generated by GNU Autoconf 2.69. Invocation command line was
2206 It was created by libgeotiff $as_me 1.4.2, which was
2207 generated by GNU Autoconf 2.65. Invocation command line was
21102208
21112209 $ $0 $@
21122210
22162314 {
22172315 echo
22182316
2219 $as_echo "## ---------------- ##
2317 cat <<\_ASBOX
2318 ## ---------------- ##
22202319 ## Cache variables. ##
2221 ## ---------------- ##"
2320 ## ---------------- ##
2321 _ASBOX
22222322 echo
22232323 # The following way of writing the cache mishandles newlines in values,
22242324 (
22522352 )
22532353 echo
22542354
2255 $as_echo "## ----------------- ##
2355 cat <<\_ASBOX
2356 ## ----------------- ##
22562357 ## Output variables. ##
2257 ## ----------------- ##"
2358 ## ----------------- ##
2359 _ASBOX
22582360 echo
22592361 for ac_var in $ac_subst_vars
22602362 do
22672369 echo
22682370
22692371 if test -n "$ac_subst_files"; then
2270 $as_echo "## ------------------- ##
2372 cat <<\_ASBOX
2373 ## ------------------- ##
22712374 ## File substitutions. ##
2272 ## ------------------- ##"
2375 ## ------------------- ##
2376 _ASBOX
22732377 echo
22742378 for ac_var in $ac_subst_files
22752379 do
22832387 fi
22842388
22852389 if test -s confdefs.h; then
2286 $as_echo "## ----------- ##
2390 cat <<\_ASBOX
2391 ## ----------- ##
22872392 ## confdefs.h. ##
2288 ## ----------- ##"
2393 ## ----------- ##
2394 _ASBOX
22892395 echo
22902396 cat confdefs.h
22912397 echo
23402446 ac_site_file1=NONE
23412447 ac_site_file2=NONE
23422448 if test -n "$CONFIG_SITE"; then
2343 # We do not want a PATH search for config.site.
2344 case $CONFIG_SITE in #((
2345 -*) ac_site_file1=./$CONFIG_SITE;;
2346 */*) ac_site_file1=$CONFIG_SITE;;
2347 *) ac_site_file1=./$CONFIG_SITE;;
2348 esac
2449 ac_site_file1=$CONFIG_SITE
23492450 elif test "x$prefix" != xNONE; then
23502451 ac_site_file1=$prefix/share/config.site
23512452 ac_site_file2=$prefix/etc/config.site
23602461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
23612462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
23622463 sed 's/^/| /' "$ac_site_file" >&5
2363 . "$ac_site_file" \
2364 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366 as_fn_error $? "failed to load site script $ac_site_file
2367 See \`config.log' for more details" "$LINENO" 5; }
2464 . "$ac_site_file"
23682465 fi
23692466 done
23702467
24402537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24412538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
24422539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2540 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
24442541 fi
24452542 ## -------------------- ##
24462543 ## Main body of script. ##
24552552
24562553 ac_aux_dir=
24572554 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458 if test -f "$ac_dir/install-sh"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/install-sh -c"
2461 break
2462 elif test -f "$ac_dir/install.sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install.sh -c"
2465 break
2466 elif test -f "$ac_dir/shtool"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/shtool install -c"
2469 break
2470 fi
2555 for ac_t in install-sh install.sh shtool; do
2556 if test -f "$ac_dir/$ac_t"; then
2557 ac_aux_dir=$ac_dir
2558 ac_install_sh="$ac_aux_dir/$ac_t -c"
2559 break 2
2560 fi
2561 done
24712562 done
24722563 if test -z "$ac_aux_dir"; then
2473 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2564 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
24742565 fi
24752566
24762567 # These three variables are undocumented and unsupported,
24842575
24852576 # Make sure we can run config.sub.
24862577 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2487 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2578 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
24882579
24892580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
24902581 $as_echo_n "checking build system type... " >&6; }
2491 if ${ac_cv_build+:} false; then :
2582 if test "${ac_cv_build+set}" = set; then :
24922583 $as_echo_n "(cached) " >&6
24932584 else
24942585 ac_build_alias=$build_alias
24952586 test "x$ac_build_alias" = x &&
24962587 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
24972588 test "x$ac_build_alias" = x &&
2498 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2589 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
24992590 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2591 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
25012592
25022593 fi
25032594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
25042595 $as_echo "$ac_cv_build" >&6; }
25052596 case $ac_cv_build in
25062597 *-*-*) ;;
2507 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2598 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
25082599 esac
25092600 build=$ac_cv_build
25102601 ac_save_IFS=$IFS; IFS='-'
25232614
25242615
25252616
2526 RELEASE_VERSION=1.4.1
2617 RELEASE_VERSION=1.4.2
25272618
25282619 ac_config_headers="$ac_config_headers geo_config.h"
25292620
25302621
25312622
2532 am__api_version='1.14'
2623 am__api_version='1.11'
25332624
25342625 # Find a good install program. We prefer a C program (faster),
25352626 # so one script is as good as another. But avoid the broken or
25482639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
25492640 $as_echo_n "checking for a BSD-compatible install... " >&6; }
25502641 if test -z "$INSTALL"; then
2551 if ${ac_cv_path_install+:} false; then :
2642 if test "${ac_cv_path_install+set}" = set; then :
25522643 $as_echo_n "(cached) " >&6
25532644 else
25542645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25682659 # by default.
25692660 for ac_prog in ginstall scoinst install; do
25702661 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2662 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
25722663 if test $ac_prog = install &&
25732664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25742665 # AIX install. It has an incompatible calling convention.
26262717
26272718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26282719 $as_echo_n "checking whether build environment is sane... " >&6; }
2720 # Just in case
2721 sleep 1
2722 echo timestamp > conftest.file
26292723 # Reject unsafe characters in $srcdir or the absolute working directory
26302724 # name. Accept space and tab only in the latter.
26312725 am_lf='
26322726 '
26332727 case `pwd` in
26342728 *[\\\"\#\$\&\'\`$am_lf]*)
2635 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2729 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
26362730 esac
26372731 case $srcdir in
26382732 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2639 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2733 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
26402734 esac
26412735
2642 # Do 'set' in a subshell so we don't clobber the current shell's
2736 # Do `set' in a subshell so we don't clobber the current shell's
26432737 # arguments. Must try -L first in case configure is actually a
26442738 # symlink; some systems play weird games with the mod time of symlinks
26452739 # (eg FreeBSD returns the mod time of the symlink's containing
26462740 # directory).
26472741 if (
2648 am_has_slept=no
2649 for am_try in 1 2; do
2650 echo "timestamp, slept: $am_has_slept" > conftest.file
2651 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2652 if test "$*" = "X"; then
2653 # -L didn't work.
2654 set X `ls -t "$srcdir/configure" conftest.file`
2655 fi
2656 if test "$*" != "X $srcdir/configure conftest.file" \
2657 && test "$*" != "X conftest.file $srcdir/configure"; then
2658
2659 # If neither matched, then we have a broken ls. This can happen
2660 # if, for instance, CONFIG_SHELL is bash and it inherits a
2661 # broken ls alias from the environment. This has actually
2662 # happened. Such a system could not be considered "sane".
2663 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2664 alias in your environment" "$LINENO" 5
2665 fi
2666 if test "$2" = conftest.file || test $am_try -eq 2; then
2667 break
2668 fi
2669 # Just in case.
2670 sleep 1
2671 am_has_slept=yes
2672 done
2742 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2743 if test "$*" = "X"; then
2744 # -L didn't work.
2745 set X `ls -t "$srcdir/configure" conftest.file`
2746 fi
2747 rm -f conftest.file
2748 if test "$*" != "X $srcdir/configure conftest.file" \
2749 && test "$*" != "X conftest.file $srcdir/configure"; then
2750
2751 # If neither matched, then we have a broken ls. This can happen
2752 # if, for instance, CONFIG_SHELL is bash and it inherits a
2753 # broken ls alias from the environment. This has actually
2754 # happened. Such a system could not be considered "sane".
2755 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2756 alias in your environment" "$LINENO" 5
2757 fi
2758
26732759 test "$2" = conftest.file
26742760 )
26752761 then
26762762 # Ok.
26772763 :
26782764 else
2679 as_fn_error $? "newly created file is older than distributed files!
2765 as_fn_error "newly created file is older than distributed files!
26802766 Check your system clock" "$LINENO" 5
26812767 fi
26822768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26832769 $as_echo "yes" >&6; }
2684 # If we didn't sleep, we still need to ensure time stamps of config.status and
2685 # generated files are strictly newer.
2686 am_sleep_pid=
2687 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2688 ( sleep 1 ) &
2689 am_sleep_pid=$!
2690 fi
2691
2692 rm -f conftest.file
2693
26942770 test "$program_prefix" != NONE &&
26952771 program_transform_name="s&^&$program_prefix&;$program_transform_name"
26962772 # Use a double $ so make ignores it.
27132789 esac
27142790 fi
27152791 # Use eval to expand $SHELL
2716 if eval "$MISSING --is-lightweight"; then
2717 am_missing_run="$MISSING "
2792 if eval "$MISSING --run true"; then
2793 am_missing_run="$MISSING --run "
27182794 else
27192795 am_missing_run=
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2721 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2797 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
27222798 fi
27232799
27242800 if test x"${install_sh}" != xset; then
27302806 esac
27312807 fi
27322808
2733 # Installed binaries are usually stripped using 'strip' when the user
2734 # run "make install-strip". However 'strip' might not be the right
2809 # Installed binaries are usually stripped using `strip' when the user
2810 # run `make install-strip'. However `strip' might not be the right
27352811 # tool to use in cross-compilation environments, therefore Automake
2736 # will honor the 'STRIP' environment variable to overrule this program.
2812 # will honor the `STRIP' environment variable to overrule this program.
27372813 if test "$cross_compiling" != no; then
27382814 if test -n "$ac_tool_prefix"; then
27392815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27402816 set dummy ${ac_tool_prefix}strip; ac_word=$2
27412817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27422818 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_STRIP+:} false; then :
2819 if test "${ac_cv_prog_STRIP+set}" = set; then :
27442820 $as_echo_n "(cached) " >&6
27452821 else
27462822 if test -n "$STRIP"; then
27522828 IFS=$as_save_IFS
27532829 test -z "$as_dir" && as_dir=.
27542830 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27562832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27572833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27582834 break 2
27802856 set dummy strip; ac_word=$2
27812857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27822858 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2859 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
27842860 $as_echo_n "(cached) " >&6
27852861 else
27862862 if test -n "$ac_ct_STRIP"; then
27922868 IFS=$as_save_IFS
27932869 test -z "$as_dir" && as_dir=.
27942870 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27962872 ac_cv_prog_ac_ct_STRIP="strip"
27972873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27982874 break 2
28332909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
28342910 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
28352911 if test -z "$MKDIR_P"; then
2836 if ${ac_cv_path_mkdir+:} false; then :
2912 if test "${ac_cv_path_mkdir+set}" = set; then :
28372913 $as_echo_n "(cached) " >&6
28382914 else
28392915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28432919 test -z "$as_dir" && as_dir=.
28442920 for ac_prog in mkdir gmkdir; do
28452921 for ac_exec_ext in '' $ac_executable_extensions; do
2846 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2922 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
28472923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
28482924 'mkdir (GNU coreutils) '* | \
28492925 'mkdir (coreutils) '* | \
28722948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
28732949 $as_echo "$MKDIR_P" >&6; }
28742950
2951 mkdir_p="$MKDIR_P"
2952 case $mkdir_p in
2953 [\\/$]* | ?:[\\/]*) ;;
2954 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2955 esac
2956
28752957 for ac_prog in gawk mawk nawk awk
28762958 do
28772959 # Extract the first word of "$ac_prog", so it can be a program name with args.
28782960 set dummy $ac_prog; ac_word=$2
28792961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28802962 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_AWK+:} false; then :
2963 if test "${ac_cv_prog_AWK+set}" = set; then :
28822964 $as_echo_n "(cached) " >&6
28832965 else
28842966 if test -n "$AWK"; then
28902972 IFS=$as_save_IFS
28912973 test -z "$as_dir" && as_dir=.
28922974 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28942976 ac_cv_prog_AWK="$ac_prog"
28952977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28962978 break 2
29183000 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29193001 set x ${MAKE-make}
29203002 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2921 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3003 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
29223004 $as_echo_n "(cached) " >&6
29233005 else
29243006 cat >conftest.make <<\_ACEOF
29263008 all:
29273009 @echo '@@@%%%=$(MAKE)=@@@%%%'
29283010 _ACEOF
2929 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29303012 case `${MAKE-make} -f conftest.make 2>/dev/null` in
29313013 *@@@%%%=?*=@@@%%%*)
29323014 eval ac_cv_prog_make_${ac_make}_set=yes;;
29543036 fi
29553037 rmdir .tst 2>/dev/null
29563038
2957 # Check whether --enable-silent-rules was given.
2958 if test "${enable_silent_rules+set}" = set; then :
2959 enableval=$enable_silent_rules;
2960 fi
2961
2962 case $enable_silent_rules in # (((
2963 yes) AM_DEFAULT_VERBOSITY=0;;
2964 no) AM_DEFAULT_VERBOSITY=1;;
2965 *) AM_DEFAULT_VERBOSITY=1;;
2966 esac
2967 am_make=${MAKE-make}
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2969 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2970 if ${am_cv_make_support_nested_variables+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if $as_echo 'TRUE=$(BAR$(V))
2974 BAR0=false
2975 BAR1=true
2976 V=1
2977 am__doit:
2978 @$(TRUE)
2979 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2980 am_cv_make_support_nested_variables=yes
2981 else
2982 am_cv_make_support_nested_variables=no
2983 fi
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2986 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2987 if test $am_cv_make_support_nested_variables = yes; then
2988 AM_V='$(V)'
2989 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2990 else
2991 AM_V=$AM_DEFAULT_VERBOSITY
2992 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2993 fi
2994 AM_BACKSLASH='\'
2995
29963039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
29973040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
29983041 # is not polluted with repeated "-I."
29993042 am__isrc=' -I$(srcdir)'
30003043 # test to see if srcdir already configured
30013044 if test -f $srcdir/config.status; then
3002 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3045 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
30033046 fi
30043047 fi
30053048
30153058
30163059 # Define the identity of the package.
30173060 PACKAGE='libgeotiff'
3018 VERSION='1.4.1'
3061 VERSION='1.4.2'
30193062
30203063
30213064 cat >>confdefs.h <<_ACEOF
30433086
30443087 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
30453088
3046 # For better backward compatibility. To be removed once Automake 1.9.x
3047 # dies out for good. For more background, see:
3048 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3049 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3050 mkdir_p='$(MKDIR_P)'
3051
30523089 # We need awk for the "check" target. The system "awk" is bad on
30533090 # some platforms.
3054 # Always define AMTAR for backward compatibility. Yes, it's still used
3055 # in the wild :-( We should find a proper way to deprecate it ...
3056 AMTAR='$${TAR-tar}'
3057
3058
3059 # We'll loop over all known methods to create a tar archive until one works.
3060 _am_tools='gnutar pax cpio none'
3061
3062 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3063
3064
3065
3066
3067
3068
3069 # POSIX will say in a future version that running "rm -f" with no argument
3070 # is OK; and we want to be able to make that assumption in our Makefile
3071 # recipes. So use an aggressive probe to check that the usage we want is
3072 # actually supported "in the wild" to an acceptable degree.
3073 # See automake bug#10828.
3074 # To make any issue more visible, cause the running configure to be aborted
3075 # by default if the 'rm' program in use doesn't match our expectations; the
3076 # user can still override this though.
3077 if rm -f && rm -fr && rm -rf; then : OK; else
3078 cat >&2 <<'END'
3079 Oops!
3080
3081 Your 'rm' program seems unable to run without file operands specified
3082 on the command line, even when the '-f' option is present. This is contrary
3083 to the behaviour of most rm programs out there, and not conforming with
3084 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3085
3086 Please tell bug-automake@gnu.org about your system, including the value
3087 of your $PATH and any error possibly output before this message. This
3088 can help us improve future automake versions.
3089
3090 END
3091 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3092 echo 'Configuration will proceed anyway, since you have set the' >&2
3093 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3094 echo >&2
3095 else
3096 cat >&2 <<'END'
3097 Aborting the configuration process, to ensure you take notice of the issue.
3098
3099 You can download and install GNU coreutils to get an 'rm' implementation
3100 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3101
3102 If you want to complete the configuration process using your problematic
3103 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3104 to "yes", and re-run configure.
3105
3106 END
3107 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3108 fi
3109 fi
3091 # Always define AMTAR for backward compatibility.
3092
3093 AMTAR=${AMTAR-"${am_missing_run}tar"}
3094
3095 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3096
3097
3098
3099
3100
31103101
31113102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31123103 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31403131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
31413132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31423133 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false; then :
3134 if test "${ac_cv_prog_CC+set}" = set; then :
31443135 $as_echo_n "(cached) " >&6
31453136 else
31463137 if test -n "$CC"; then
31523143 IFS=$as_save_IFS
31533144 test -z "$as_dir" && as_dir=.
31543145 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31563147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
31573148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31583149 break 2
31803171 set dummy gcc; ac_word=$2
31813172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31823173 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
31843175 $as_echo_n "(cached) " >&6
31853176 else
31863177 if test -n "$ac_ct_CC"; then
31923183 IFS=$as_save_IFS
31933184 test -z "$as_dir" && as_dir=.
31943185 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31963187 ac_cv_prog_ac_ct_CC="gcc"
31973188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31983189 break 2
32333224 set dummy ${ac_tool_prefix}cc; ac_word=$2
32343225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32353226 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_CC+:} false; then :
3227 if test "${ac_cv_prog_CC+set}" = set; then :
32373228 $as_echo_n "(cached) " >&6
32383229 else
32393230 if test -n "$CC"; then
32453236 IFS=$as_save_IFS
32463237 test -z "$as_dir" && as_dir=.
32473238 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32493240 ac_cv_prog_CC="${ac_tool_prefix}cc"
32503241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32513242 break 2
32733264 set dummy cc; ac_word=$2
32743265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32753266 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false; then :
3267 if test "${ac_cv_prog_CC+set}" = set; then :
32773268 $as_echo_n "(cached) " >&6
32783269 else
32793270 if test -n "$CC"; then
32863277 IFS=$as_save_IFS
32873278 test -z "$as_dir" && as_dir=.
32883279 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32903281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
32913282 ac_prog_rejected=yes
32923283 continue
33323323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33333324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33343325 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false; then :
3326 if test "${ac_cv_prog_CC+set}" = set; then :
33363327 $as_echo_n "(cached) " >&6
33373328 else
33383329 if test -n "$CC"; then
33443335 IFS=$as_save_IFS
33453336 test -z "$as_dir" && as_dir=.
33463337 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33483339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
33493340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33503341 break 2
33763367 set dummy $ac_prog; ac_word=$2
33773368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33783369 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
33803371 $as_echo_n "(cached) " >&6
33813372 else
33823373 if test -n "$ac_ct_CC"; then
33883379 IFS=$as_save_IFS
33893380 test -z "$as_dir" && as_dir=.
33903381 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33923383 ac_cv_prog_ac_ct_CC="$ac_prog"
33933384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33943385 break 2
34303421
34313422 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34323423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "no acceptable C compiler found in \$PATH
3434 See \`config.log' for more details" "$LINENO" 5; }
3424 as_fn_error "no acceptable C compiler found in \$PATH
3425 See \`config.log' for more details." "$LINENO" 5; }
34353426
34363427 # Provide some information about the compiler.
34373428 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
35453536
35463537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35473538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error 77 "C compiler cannot create executables
3549 See \`config.log' for more details" "$LINENO" 5; }
3539 { as_fn_set_status 77
3540 as_fn_error "C compiler cannot create executables
3541 See \`config.log' for more details." "$LINENO" 5; }; }
35503542 else
35513543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35523544 $as_echo "yes" >&6; }
35883580 else
35893581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35903582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3592 See \`config.log' for more details" "$LINENO" 5; }
3583 as_fn_error "cannot compute suffix of executables: cannot compile and link
3584 See \`config.log' for more details." "$LINENO" 5; }
35933585 fi
35943586 rm -f conftest conftest$ac_cv_exeext
35953587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
36463638 else
36473639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36483640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error $? "cannot run C compiled programs.
3641 as_fn_error "cannot run C compiled programs.
36503642 If you meant to cross compile, use \`--host'.
3651 See \`config.log' for more details" "$LINENO" 5; }
3643 See \`config.log' for more details." "$LINENO" 5; }
36523644 fi
36533645 fi
36543646 fi
36593651 ac_clean_files=$ac_clean_files_save
36603652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
36613653 $as_echo_n "checking for suffix of object files... " >&6; }
3662 if ${ac_cv_objext+:} false; then :
3654 if test "${ac_cv_objext+set}" = set; then :
36633655 $as_echo_n "(cached) " >&6
36643656 else
36653657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36993691
37003692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37013693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error $? "cannot compute suffix of object files: cannot compile
3703 See \`config.log' for more details" "$LINENO" 5; }
3694 as_fn_error "cannot compute suffix of object files: cannot compile
3695 See \`config.log' for more details." "$LINENO" 5; }
37043696 fi
37053697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
37063698 fi
37103702 ac_objext=$OBJEXT
37113703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
37123704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3713 if ${ac_cv_c_compiler_gnu+:} false; then :
3705 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
37143706 $as_echo_n "(cached) " >&6
37153707 else
37163708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37473739 ac_save_CFLAGS=$CFLAGS
37483740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
37493741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3750 if ${ac_cv_prog_cc_g+:} false; then :
3742 if test "${ac_cv_prog_cc_g+set}" = set; then :
37513743 $as_echo_n "(cached) " >&6
37523744 else
37533745 ac_save_c_werror_flag=$ac_c_werror_flag
38253817 fi
38263818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
38273819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3828 if ${ac_cv_prog_cc_c89+:} false; then :
3820 if test "${ac_cv_prog_cc_c89+set}" = set; then :
38293821 $as_echo_n "(cached) " >&6
38303822 else
38313823 ac_cv_prog_cc_c89=no
38343826 /* end confdefs.h. */
38353827 #include <stdarg.h>
38363828 #include <stdio.h>
3837 struct stat;
3829 #include <sys/types.h>
3830 #include <sys/stat.h>
38383831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
38393832 struct buf { int x; };
38403833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
39183911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39193912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39203913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3929 if ${am_cv_prog_cc_c_o+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main ()
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 # Make sure it works both with $CC and with simple cc.
3944 # Following AC_PROG_CC_C_O, we do the test twice because some
3945 # compilers refuse to overwrite an existing .o file with -o,
3946 # though they will create one.
3947 am_cv_prog_cc_c_o=yes
3948 for am_i in 1 2; do
3949 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3950 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } \
3954 && test -f conftest2.$ac_objext; then
3955 : OK
3956 else
3957 am_cv_prog_cc_c_o=no
3958 break
3959 fi
3960 done
3961 rm -f core conftest*
3962 unset am_i
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3966 if test "$am_cv_prog_cc_c_o" != yes; then
3967 # Losing compiler, so override with the script.
3968 # FIXME: It is wrong to rewrite CC.
3969 # But if we don't then we get into trouble of one sort or another.
3970 # A longer-term fix would be to have automake use am__CC in this case,
3971 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3972 CC="$am_aux_dir/compile $CC"
3973 fi
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
39803914 DEPDIR="${am__leading_dot}deps"
39813915
39823916 ac_config_commands="$ac_config_commands depfiles"
39963930 _am_result=none
39973931 # First try GNU make style include.
39983932 echo "include confinc" > confmf
3999 # Ignore all kinds of additional output from 'make'.
3933 # Ignore all kinds of additional output from `make'.
40003934 case `$am_make -s -f confmf 2> /dev/null` in #(
40013935 *the\ am__doit\ target*)
40023936 am__include=include
40293963 if test "x$enable_dependency_tracking" != xno; then
40303964 am_depcomp="$ac_aux_dir/depcomp"
40313965 AMDEPBACKSLASH='\'
4032 am__nodep='_no'
40333966 fi
40343967 if test "x$enable_dependency_tracking" != xno; then
40353968 AMDEP_TRUE=
40453978
40463979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
40473980 $as_echo_n "checking dependency style of $depcc... " >&6; }
4048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3981 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
40493982 $as_echo_n "(cached) " >&6
40503983 else
40513984 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
40523985 # We make a subdir and do the tests there. Otherwise we can end up
40533986 # making bogus files that we don't know about and never remove. For
40543987 # instance it was reported that on HP-UX the gcc test will end up
4055 # making a dummy file named 'D' -- because '-MD' means "put the output
4056 # in D".
4057 rm -rf conftest.dir
3988 # making a dummy file named `D' -- because `-MD' means `put the output
3989 # in D'.
40583990 mkdir conftest.dir
40593991 # Copy depcomp to subdir because otherwise we won't find it if we're
40603992 # using a relative directory.
40884020 : > sub/conftest.c
40894021 for i in 1 2 3 4 5 6; do
40904022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4091 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4092 # Solaris 10 /bin/sh.
4093 echo '/* dummy */' > sub/conftst$i.h
4023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024 # Solaris 8's {/usr,}/bin/sh.
4025 touch sub/conftst$i.h
40944026 done
40954027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
40964028
4097 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
40984030 # mode. It turns out that the SunPro C++ compiler does not properly
4099 # handle '-M -o', and we need to detect this. Also, some Intel
4100 # versions had trouble with output in subdirs.
4031 # handle `-M -o', and we need to detect this. Also, some Intel
4032 # versions had trouble with output in subdirs
41014033 am__obj=sub/conftest.${OBJEXT-o}
41024034 am__minus_obj="-o $am__obj"
41034035 case $depmode in
41064038 test "$am__universal" = false || continue
41074039 ;;
41084040 nosideeffect)
4109 # After this tag, mechanisms are not by side-effect, so they'll
4110 # only be used when explicitly requested.
4041 # after this tag, mechanisms are not by side-effect, so they'll
4042 # only be used when explicitly requested
41114043 if test "x$enable_dependency_tracking" = xyes; then
41124044 continue
41134045 else
41144046 break
41154047 fi
41164048 ;;
4117 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4118 # This compiler won't grok '-c -o', but also, the minuso test has
4049 msvisualcpp | msvcmsys)
4050 # This compiler won't grok `-c -o', but also, the minuso test has
41194051 # not run yet. These depmodes are late enough in the game, and
41204052 # so weak that their functioning should not be impacted.
41214053 am__obj=conftest.${OBJEXT-o}
41854117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
41864118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41874119 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_CXX+:} false; then :
4120 if test "${ac_cv_prog_CXX+set}" = set; then :
41894121 $as_echo_n "(cached) " >&6
41904122 else
41914123 if test -n "$CXX"; then
41974129 IFS=$as_save_IFS
41984130 test -z "$as_dir" && as_dir=.
41994131 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42014133 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
42024134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42034135 break 2
42294161 set dummy $ac_prog; ac_word=$2
42304162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42314163 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4164 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
42334165 $as_echo_n "(cached) " >&6
42344166 else
42354167 if test -n "$ac_ct_CXX"; then
42414173 IFS=$as_save_IFS
42424174 test -z "$as_dir" && as_dir=.
42434175 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42454177 ac_cv_prog_ac_ct_CXX="$ac_prog"
42464178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42474179 break 2
43074239
43084240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
43094241 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4310 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4242 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
43114243 $as_echo_n "(cached) " >&6
43124244 else
43134245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43444276 ac_save_CXXFLAGS=$CXXFLAGS
43454277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
43464278 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4347 if ${ac_cv_prog_cxx_g+:} false; then :
4279 if test "${ac_cv_prog_cxx_g+set}" = set; then :
43484280 $as_echo_n "(cached) " >&6
43494281 else
43504282 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
44304362
44314363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
44324364 $as_echo_n "checking dependency style of $depcc... " >&6; }
4433 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4365 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
44344366 $as_echo_n "(cached) " >&6
44354367 else
44364368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
44374369 # We make a subdir and do the tests there. Otherwise we can end up
44384370 # making bogus files that we don't know about and never remove. For
44394371 # instance it was reported that on HP-UX the gcc test will end up
4440 # making a dummy file named 'D' -- because '-MD' means "put the output
4441 # in D".
4442 rm -rf conftest.dir
4372 # making a dummy file named `D' -- because `-MD' means `put the output
4373 # in D'.
44434374 mkdir conftest.dir
44444375 # Copy depcomp to subdir because otherwise we won't find it if we're
44454376 # using a relative directory.
44734404 : > sub/conftest.c
44744405 for i in 1 2 3 4 5 6; do
44754406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4476 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4477 # Solaris 10 /bin/sh.
4478 echo '/* dummy */' > sub/conftst$i.h
4407 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4408 # Solaris 8's {/usr,}/bin/sh.
4409 touch sub/conftst$i.h
44794410 done
44804411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
44814412
4482 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
44834414 # mode. It turns out that the SunPro C++ compiler does not properly
4484 # handle '-M -o', and we need to detect this. Also, some Intel
4485 # versions had trouble with output in subdirs.
4415 # handle `-M -o', and we need to detect this. Also, some Intel
4416 # versions had trouble with output in subdirs
44864417 am__obj=sub/conftest.${OBJEXT-o}
44874418 am__minus_obj="-o $am__obj"
44884419 case $depmode in
44914422 test "$am__universal" = false || continue
44924423 ;;
44934424 nosideeffect)
4494 # After this tag, mechanisms are not by side-effect, so they'll
4495 # only be used when explicitly requested.
4425 # after this tag, mechanisms are not by side-effect, so they'll
4426 # only be used when explicitly requested
44964427 if test "x$enable_dependency_tracking" = xyes; then
44974428 continue
44984429 else
44994430 break
45004431 fi
45014432 ;;
4502 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4503 # This compiler won't grok '-c -o', but also, the minuso test has
4433 msvisualcpp | msvcmsys)
4434 # This compiler won't grok `-c -o', but also, the minuso test has
45044435 # not run yet. These depmodes are late enough in the game, and
45054436 # so weak that their functioning should not be impacted.
45064437 am__obj=conftest.${OBJEXT-o}
45624493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
45634494 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
45644495 if test -z "$CXXCPP"; then
4565 if ${ac_cv_prog_CXXCPP+:} false; then :
4496 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
45664497 $as_echo_n "(cached) " >&6
45674498 else
45684499 # Double quotes because CXXCPP needs to be expanded
45924523 # Broken: fails on valid input.
45934524 continue
45944525 fi
4595 rm -f conftest.err conftest.i conftest.$ac_ext
4526 rm -f conftest.err conftest.$ac_ext
45964527
45974528 # OK, works on sane cases. Now check whether nonexistent headers
45984529 # can be detected and how.
46084539 ac_preproc_ok=:
46094540 break
46104541 fi
4611 rm -f conftest.err conftest.i conftest.$ac_ext
4542 rm -f conftest.err conftest.$ac_ext
46124543
46134544 done
46144545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.i conftest.err conftest.$ac_ext
4546 rm -f conftest.err conftest.$ac_ext
46164547 if $ac_preproc_ok; then :
46174548 break
46184549 fi
46514582 # Broken: fails on valid input.
46524583 continue
46534584 fi
4654 rm -f conftest.err conftest.i conftest.$ac_ext
4585 rm -f conftest.err conftest.$ac_ext
46554586
46564587 # OK, works on sane cases. Now check whether nonexistent headers
46574588 # can be detected and how.
46674598 ac_preproc_ok=:
46684599 break
46694600 fi
4670 rm -f conftest.err conftest.i conftest.$ac_ext
4601 rm -f conftest.err conftest.$ac_ext
46714602
46724603 done
46734604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4674 rm -f conftest.i conftest.err conftest.$ac_ext
4605 rm -f conftest.err conftest.$ac_ext
46754606 if $ac_preproc_ok; then :
46764607
46774608 else
46784609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46794610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4681 See \`config.log' for more details" "$LINENO" 5; }
4611 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4612 See \`config.log' for more details." "$LINENO" 5; }
46824613 fi
46834614
46844615 ac_ext=c
47034634 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
47044635 set x ${MAKE-make}
47054636 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4706 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4637 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
47074638 $as_echo_n "(cached) " >&6
47084639 else
47094640 cat >conftest.make <<\_ACEOF
47114642 all:
47124643 @echo '@@@%%%=$(MAKE)=@@@%%%'
47134644 _ACEOF
4714 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4645 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47154646 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47164647 *@@@%%%=?*=@@@%%%*)
47174648 eval ac_cv_prog_make_${ac_make}_set=yes;;
47384669
47394670
47404671
4741 macro_version='2.4.2'
4742 macro_revision='1.3337'
4672 macro_version='2.2.6b'
4673 macro_revision='1.3017'
47434674
47444675
47454676
47574688
47584689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
47594690 $as_echo_n "checking host system type... " >&6; }
4760 if ${ac_cv_host+:} false; then :
4691 if test "${ac_cv_host+set}" = set; then :
47614692 $as_echo_n "(cached) " >&6
47624693 else
47634694 if test "x$host_alias" = x; then
47644695 ac_cv_host=$ac_cv_build
47654696 else
47664697 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4698 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
47684699 fi
47694700
47704701 fi
47724703 $as_echo "$ac_cv_host" >&6; }
47734704 case $ac_cv_host in
47744705 *-*-*) ;;
4775 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4706 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
47764707 esac
47774708 host=$ac_cv_host
47784709 ac_save_IFS=$IFS; IFS='-'
47884719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47894720
47904721
4791 # Backslashify metacharacters that are still active within
4792 # double-quoted strings.
4793 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4794
4795 # Same as above, but do not quote variable references.
4796 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4797
4798 # Sed substitution to delay expansion of an escaped shell variable in a
4799 # double_quote_subst'ed string.
4800 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4801
4802 # Sed substitution to delay expansion of an escaped single quote.
4803 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4804
4805 # Sed substitution to avoid accidental globbing in evaled expressions
4806 no_glob_subst='s/\*/\\\*/g'
4807
4808 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4810 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4813 $as_echo_n "checking how to print strings... " >&6; }
4814 # Test print first, because it will be a builtin if present.
4815 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4816 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4817 ECHO='print -r --'
4818 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4819 ECHO='printf %s\n'
4820 else
4821 # Use this function as a fallback that always works.
4822 func_fallback_echo ()
4823 {
4824 eval 'cat <<_LTECHO_EOF
4825 $1
4826 _LTECHO_EOF'
4827 }
4828 ECHO='func_fallback_echo'
4829 fi
4830
4831 # func_echo_all arg...
4832 # Invoke $ECHO with all args, space-separated.
4833 func_echo_all ()
4834 {
4835 $ECHO ""
4836 }
4837
4838 case "$ECHO" in
4839 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4840 $as_echo "printf" >&6; } ;;
4841 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4842 $as_echo "print -r" >&6; } ;;
4843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4844 $as_echo "cat" >&6; } ;;
4845 esac
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
48604722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
48614723 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4862 if ${ac_cv_path_SED+:} false; then :
4724 if test "${ac_cv_path_SED+set}" = set; then :
48634725 $as_echo_n "(cached) " >&6
48644726 else
48654727 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
48794741 for ac_prog in sed gsed; do
48804742 for ac_exec_ext in '' $ac_executable_extensions; do
48814743 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4882 as_fn_executable_p "$ac_path_SED" || continue
4744 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
48834745 # Check for GNU ac_path_SED and select it if it is found.
48844746 # Check for GNU $ac_path_SED
48854747 case `"$ac_path_SED" --version 2>&1` in
49144776 done
49154777 IFS=$as_save_IFS
49164778 if test -z "$ac_cv_path_SED"; then
4917 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4779 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
49184780 fi
49194781 else
49204782 ac_cv_path_SED=$SED
49414803
49424804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
49434805 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4944 if ${ac_cv_path_GREP+:} false; then :
4806 if test "${ac_cv_path_GREP+set}" = set; then :
49454807 $as_echo_n "(cached) " >&6
49464808 else
49474809 if test -z "$GREP"; then
49554817 for ac_prog in grep ggrep; do
49564818 for ac_exec_ext in '' $ac_executable_extensions; do
49574819 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4958 as_fn_executable_p "$ac_path_GREP" || continue
4820 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
49594821 # Check for GNU ac_path_GREP and select it if it is found.
49604822 # Check for GNU $ac_path_GREP
49614823 case `"$ac_path_GREP" --version 2>&1` in
49904852 done
49914853 IFS=$as_save_IFS
49924854 if test -z "$ac_cv_path_GREP"; then
4993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
49944856 fi
49954857 else
49964858 ac_cv_path_GREP=$GREP
50044866
50054867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
50064868 $as_echo_n "checking for egrep... " >&6; }
5007 if ${ac_cv_path_EGREP+:} false; then :
4869 if test "${ac_cv_path_EGREP+set}" = set; then :
50084870 $as_echo_n "(cached) " >&6
50094871 else
50104872 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
50214883 for ac_prog in egrep; do
50224884 for ac_exec_ext in '' $ac_executable_extensions; do
50234885 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5024 as_fn_executable_p "$ac_path_EGREP" || continue
4886 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
50254887 # Check for GNU ac_path_EGREP and select it if it is found.
50264888 # Check for GNU $ac_path_EGREP
50274889 case `"$ac_path_EGREP" --version 2>&1` in
50564918 done
50574919 IFS=$as_save_IFS
50584920 if test -z "$ac_cv_path_EGREP"; then
5059 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
50604922 fi
50614923 else
50624924 ac_cv_path_EGREP=$EGREP
50714933
50724934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
50734935 $as_echo_n "checking for fgrep... " >&6; }
5074 if ${ac_cv_path_FGREP+:} false; then :
4936 if test "${ac_cv_path_FGREP+set}" = set; then :
50754937 $as_echo_n "(cached) " >&6
50764938 else
50774939 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
50884950 for ac_prog in fgrep; do
50894951 for ac_exec_ext in '' $ac_executable_extensions; do
50904952 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5091 as_fn_executable_p "$ac_path_FGREP" || continue
4953 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
50924954 # Check for GNU ac_path_FGREP and select it if it is found.
50934955 # Check for GNU $ac_path_FGREP
50944956 case `"$ac_path_FGREP" --version 2>&1` in
51234985 done
51244986 IFS=$as_save_IFS
51254987 if test -z "$ac_cv_path_FGREP"; then
5126 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4988 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
51274989 fi
51284990 else
51294991 ac_cv_path_FGREP=$FGREP
52025064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
52035065 $as_echo_n "checking for non-GNU ld... " >&6; }
52045066 fi
5205 if ${lt_cv_path_LD+:} false; then :
5067 if test "${lt_cv_path_LD+set}" = set; then :
52065068 $as_echo_n "(cached) " >&6
52075069 else
52085070 if test -z "$LD"; then
52395101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52405102 $as_echo "no" >&6; }
52415103 fi
5242 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5104 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
52435105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
52445106 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5245 if ${lt_cv_prog_gnu_ld+:} false; then :
5107 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
52465108 $as_echo_n "(cached) " >&6
52475109 else
52485110 # I'd rather use --version here, but apparently some GNU lds only accept -v.
52695131
52705132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
52715133 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5272 if ${lt_cv_path_NM+:} false; then :
5134 if test "${lt_cv_path_NM+set}" = set; then :
52735135 $as_echo_n "(cached) " >&6
52745136 else
52755137 if test -n "$NM"; then
53225184 NM="$lt_cv_path_NM"
53235185 else
53245186 # Didn't find any BSD compatible name lister, look for dumpbin.
5325 if test -n "$DUMPBIN"; then :
5326 # Let the user override the test.
5327 else
5328 if test -n "$ac_tool_prefix"; then
5329 for ac_prog in dumpbin "link -dump"
5187 if test -n "$ac_tool_prefix"; then
5188 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
53305189 do
53315190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
53325191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
53335192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53345193 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_DUMPBIN+:} false; then :
5194 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
53365195 $as_echo_n "(cached) " >&6
53375196 else
53385197 if test -n "$DUMPBIN"; then
53445203 IFS=$as_save_IFS
53455204 test -z "$as_dir" && as_dir=.
53465205 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53485207 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
53495208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53505209 break 2
53705229 fi
53715230 if test -z "$DUMPBIN"; then
53725231 ac_ct_DUMPBIN=$DUMPBIN
5373 for ac_prog in dumpbin "link -dump"
5232 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
53745233 do
53755234 # Extract the first word of "$ac_prog", so it can be a program name with args.
53765235 set dummy $ac_prog; ac_word=$2
53775236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53785237 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5238 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
53805239 $as_echo_n "(cached) " >&6
53815240 else
53825241 if test -n "$ac_ct_DUMPBIN"; then
53885247 IFS=$as_save_IFS
53895248 test -z "$as_dir" && as_dir=.
53905249 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53925251 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
53935252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53945253 break 2
54255284 fi
54265285 fi
54275286
5428 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5429 *COFF*)
5430 DUMPBIN="$DUMPBIN -symbols"
5431 ;;
5432 *)
5433 DUMPBIN=:
5434 ;;
5435 esac
5436 fi
54375287
54385288 if test "$DUMPBIN" != ":"; then
54395289 NM="$DUMPBIN"
54485298
54495299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
54505300 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5451 if ${lt_cv_nm_interface+:} false; then :
5301 if test "${lt_cv_nm_interface+set}" = set; then :
54525302 $as_echo_n "(cached) " >&6
54535303 else
54545304 lt_cv_nm_interface="BSD nm"
54555305 echo "int some_variable = 0;" > conftest.$ac_ext
5456 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5306 (eval echo "\"\$as_me:5307: $ac_compile\"" >&5)
54575307 (eval "$ac_compile" 2>conftest.err)
54585308 cat conftest.err >&5
5459 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5309 (eval echo "\"\$as_me:5310: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
54605310 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
54615311 cat conftest.err >&5
5462 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5312 (eval echo "\"\$as_me:5313: output\"" >&5)
54635313 cat conftest.out >&5
54645314 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
54655315 lt_cv_nm_interface="MS dumpbin"
54725322 # find the maximum length of command line arguments
54735323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
54745324 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5475 if ${lt_cv_sys_max_cmd_len+:} false; then :
5325 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
54765326 $as_echo_n "(cached) " >&6
54775327 else
54785328 i=0
55025352 # the test eventually succeeds (with a max line length of 256k).
55035353 # Instead, let's just punt: use the minimum linelength reported by
55045354 # all of the supported platforms: 8192 (on NT/2K/XP).
5505 lt_cv_sys_max_cmd_len=8192;
5506 ;;
5507
5508 mint*)
5509 # On MiNT this can take a long time and run out of memory.
55105355 lt_cv_sys_max_cmd_len=8192;
55115356 ;;
55125357
55335378 interix*)
55345379 # We know the value 262144 and hardcode it with a safety zone (like BSD)
55355380 lt_cv_sys_max_cmd_len=196608
5536 ;;
5537
5538 os2*)
5539 # The test takes a long time on OS/2.
5540 lt_cv_sys_max_cmd_len=8192
55415381 ;;
55425382
55435383 osf*)
55665406 ;;
55675407 *)
55685408 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5569 if test -n "$lt_cv_sys_max_cmd_len" && \
5570 test undefined != "$lt_cv_sys_max_cmd_len"; then
5409 if test -n "$lt_cv_sys_max_cmd_len"; then
55715410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
55725411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
55735412 else
55805419 # If test is not a shell built-in, we'll probably end up computing a
55815420 # maximum length that is only half of the actual maximum length, but
55825421 # we can't tell.
5583 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5584 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5422 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5423 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
55855424 test $i != 17 # 1/2 MB should be enough
55865425 do
55875426 i=`expr $i + 1`
56235462 # Try some XSI features
56245463 xsi_shell=no
56255464 ( _lt_dummy="a/b/c"
5626 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5627 = c,a/b,b/c, \
5465 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5466 = c,a/b,, \
56285467 && eval 'test $(( 1 + 1 )) -eq 2 \
56295468 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
56305469 && xsi_shell=yes
56735512
56745513
56755514
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5677 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5678 if ${lt_cv_to_host_file_cmd+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 case $host in
5682 *-*-mingw* )
5683 case $build in
5684 *-*-mingw* ) # actually msys
5685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5686 ;;
5687 *-*-cygwin* )
5688 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5689 ;;
5690 * ) # otherwise, assume *nix
5691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5692 ;;
5693 esac
5694 ;;
5695 *-*-cygwin* )
5696 case $build in
5697 *-*-mingw* ) # actually msys
5698 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5699 ;;
5700 *-*-cygwin* )
5701 lt_cv_to_host_file_cmd=func_convert_file_noop
5702 ;;
5703 * ) # otherwise, assume *nix
5704 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5705 ;;
5706 esac
5707 ;;
5708 * ) # unhandled hosts (and "normal" native builds)
5709 lt_cv_to_host_file_cmd=func_convert_file_noop
5710 ;;
5711 esac
5712
5713 fi
5714
5715 to_host_file_cmd=$lt_cv_to_host_file_cmd
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5717 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5724 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5725 if ${lt_cv_to_tool_file_cmd+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 #assume ordinary cross tools, or native build.
5729 lt_cv_to_tool_file_cmd=func_convert_file_noop
5730 case $host in
5731 *-*-mingw* )
5732 case $build in
5733 *-*-mingw* ) # actually msys
5734 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5735 ;;
5736 esac
5737 ;;
5738 esac
5739
5740 fi
5741
5742 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5744 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5745
5746
5747
5748
5749
57505515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
57515516 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5752 if ${lt_cv_ld_reload_flag+:} false; then :
5517 if test "${lt_cv_ld_reload_flag+set}" = set; then :
57535518 $as_echo_n "(cached) " >&6
57545519 else
57555520 lt_cv_ld_reload_flag='-r'
57635528 esac
57645529 reload_cmds='$LD$reload_flag -o $output$reload_objs'
57655530 case $host_os in
5766 cygwin* | mingw* | pw32* | cegcc*)
5767 if test "$GCC" != yes; then
5768 reload_cmds=false
5769 fi
5770 ;;
57715531 darwin*)
57725532 if test "$GCC" = yes; then
57735533 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
57905550 set dummy ${ac_tool_prefix}objdump; ac_word=$2
57915551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57925552 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_OBJDUMP+:} false; then :
5553 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
57945554 $as_echo_n "(cached) " >&6
57955555 else
57965556 if test -n "$OBJDUMP"; then
58025562 IFS=$as_save_IFS
58035563 test -z "$as_dir" && as_dir=.
58045564 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58065566 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
58075567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
58085568 break 2
58305590 set dummy objdump; ac_word=$2
58315591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58325592 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5593 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
58345594 $as_echo_n "(cached) " >&6
58355595 else
58365596 if test -n "$ac_ct_OBJDUMP"; then
58425602 IFS=$as_save_IFS
58435603 test -z "$as_dir" && as_dir=.
58445604 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58465606 ac_cv_prog_ac_ct_OBJDUMP="objdump"
58475607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
58485608 break 2
58895649
58905650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
58915651 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5892 if ${lt_cv_deplibs_check_method+:} false; then :
5652 if test "${lt_cv_deplibs_check_method+set}" = set; then :
58935653 $as_echo_n "(cached) " >&6
58945654 else
58955655 lt_cv_file_magic_cmd='$MAGIC_CMD'
59315691 # Base MSYS/MinGW do not provide the 'file' command needed by
59325692 # func_win32_libid shell function, so use a weaker test based on 'objdump',
59335693 # unless we find 'file', for example because we are cross-compiling.
5934 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5935 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5694 if ( file / ) >/dev/null 2>&1; then
59365695 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
59375696 lt_cv_file_magic_cmd='func_win32_libid'
59385697 else
5939 # Keep this pattern in sync with the one in func_win32_libid.
5940 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5698 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
59415699 lt_cv_file_magic_cmd='$OBJDUMP -f'
59425700 fi
59435701 ;;
59445702
5945 cegcc*)
5703 cegcc)
59465704 # use the weaker test based on 'objdump'. See mingw*.
59475705 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
59485706 lt_cv_file_magic_cmd='$OBJDUMP -f'
59685726 fi
59695727 ;;
59705728
5971 haiku*)
5729 gnu*)
59725730 lt_cv_deplibs_check_method=pass_all
59735731 ;;
59745732
59805738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
59815739 ;;
59825740 hppa*64*)
5983 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]'
5741 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]'
59845742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
59855743 ;;
59865744 *)
5987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
59885746 lt_cv_file_magic_test_file=/usr/lib/libc.sl
59895747 ;;
59905748 esac
60055763 lt_cv_deplibs_check_method=pass_all
60065764 ;;
60075765
6008 # This must be glibc/ELF.
6009 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5766 # This must be Linux ELF.
5767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
60105768 lt_cv_deplibs_check_method=pass_all
60115769 ;;
60125770
60875845 fi
60885846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
60895847 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6090
6091 file_magic_glob=
6092 want_nocaseglob=no
6093 if test "$build" = "$host"; then
6094 case $host_os in
6095 mingw* | pw32*)
6096 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6097 want_nocaseglob=yes
6098 else
6099 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6100 fi
6101 ;;
6102 esac
6103 fi
6104
61055848 file_magic_cmd=$lt_cv_file_magic_cmd
61065849 deplibs_check_method=$lt_cv_deplibs_check_method
61075850 test -z "$deplibs_check_method" && deplibs_check_method=unknown
61175860
61185861
61195862
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
61305863 if test -n "$ac_tool_prefix"; then
6131 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6132 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5864 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5865 set dummy ${ac_tool_prefix}ar; ac_word=$2
61335866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61345867 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_DLLTOOL+:} false; then :
5868 if test "${ac_cv_prog_AR+set}" = set; then :
61365869 $as_echo_n "(cached) " >&6
61375870 else
6138 if test -n "$DLLTOOL"; then
6139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5871 if test -n "$AR"; then
5872 ac_cv_prog_AR="$AR" # Let the user override the test.
61405873 else
61415874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61425875 for as_dir in $PATH
61445877 IFS=$as_save_IFS
61455878 test -z "$as_dir" && as_dir=.
61465879 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_AR="${ac_tool_prefix}ar"
61495882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61505883 break 2
61515884 fi
61555888
61565889 fi
61575890 fi
6158 DLLTOOL=$ac_cv_prog_DLLTOOL
6159 if test -n "$DLLTOOL"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6161 $as_echo "$DLLTOOL" >&6; }
5891 AR=$ac_cv_prog_AR
5892 if test -n "$AR"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5894 $as_echo "$AR" >&6; }
61625895 else
61635896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61645897 $as_echo "no" >&6; }
61665899
61675900
61685901 fi
6169 if test -z "$ac_cv_prog_DLLTOOL"; then
6170 ac_ct_DLLTOOL=$DLLTOOL
6171 # Extract the first word of "dlltool", so it can be a program name with args.
6172 set dummy dlltool; ac_word=$2
5902 if test -z "$ac_cv_prog_AR"; then
5903 ac_ct_AR=$AR
5904 # Extract the first word of "ar", so it can be a program name with args.
5905 set dummy ar; ac_word=$2
61735906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61745907 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5908 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
61765909 $as_echo_n "(cached) " >&6
61775910 else
6178 if test -n "$ac_ct_DLLTOOL"; then
6179 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5911 if test -n "$ac_ct_AR"; then
5912 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
61805913 else
61815914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61825915 for as_dir in $PATH
61845917 IFS=$as_save_IFS
61855918 test -z "$as_dir" && as_dir=.
61865919 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_ac_ct_AR="ar"
61895922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61905923 break 2
61915924 fi
61955928
61965929 fi
61975930 fi
6198 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6199 if test -n "$ac_ct_DLLTOOL"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6201 $as_echo "$ac_ct_DLLTOOL" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207 if test "x$ac_ct_DLLTOOL" = x; then
6208 DLLTOOL="false"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216 DLLTOOL=$ac_ct_DLLTOOL
6217 fi
6218 else
6219 DLLTOOL="$ac_cv_prog_DLLTOOL"
6220 fi
6221
6222 test -z "$DLLTOOL" && DLLTOOL=dlltool
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6234 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6235 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 lt_cv_sharedlib_from_linklib_cmd='unknown'
6239
6240 case $host_os in
6241 cygwin* | mingw* | pw32* | cegcc*)
6242 # two different shell functions defined in ltmain.sh
6243 # decide which to use based on capabilities of $DLLTOOL
6244 case `$DLLTOOL --help 2>&1` in
6245 *--identify-strict*)
6246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6247 ;;
6248 *)
6249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6250 ;;
6251 esac
6252 ;;
6253 *)
6254 # fallback: assume linklib IS sharedlib
6255 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6256 ;;
6257 esac
6258
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6261 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6262 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6263 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6264
6265
6266
6267
6268
6269
6270
6271
6272 if test -n "$ac_tool_prefix"; then
6273 for ac_prog in ar
6274 do
6275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_AR+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$AR"; then
6283 ac_cv_prog_AR="$AR" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 AR=$ac_cv_prog_AR
6303 if test -n "$AR"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6305 $as_echo "$AR" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311
6312 test -n "$AR" && break
6313 done
6314 fi
6315 if test -z "$AR"; then
6316 ac_ct_AR=$AR
6317 for ac_prog in ar
6318 do
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320 set dummy $ac_prog; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$ac_ct_AR"; then
6327 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_ac_ct_AR="$ac_prog"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
63465931 ac_ct_AR=$ac_cv_prog_ac_ct_AR
63475932 if test -n "$ac_ct_AR"; then
63485933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
63515936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63525937 $as_echo "no" >&6; }
63535938 fi
6354
6355
6356 test -n "$ac_ct_AR" && break
6357 done
63585939
63595940 if test "x$ac_ct_AR" = x; then
63605941 AR="false"
63675948 esac
63685949 AR=$ac_ct_AR
63695950 fi
6370 fi
6371
6372 : ${AR=ar}
6373 : ${AR_FLAGS=cru}
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6386 $as_echo_n "checking for archiver @FILE support... " >&6; }
6387 if ${lt_cv_ar_at_file+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 lt_cv_ar_at_file=no
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393
6394 int
6395 main ()
6396 {
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403 echo conftest.$ac_objext > conftest.lst
6404 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6406 (eval $lt_ar_try) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }
6410 if test "$ac_status" -eq 0; then
6411 # Ensure the archiver fails upon bogus file names.
6412 rm -f conftest.$ac_objext libconftest.a
6413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6414 (eval $lt_ar_try) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }
6418 if test "$ac_status" -ne 0; then
6419 lt_cv_ar_at_file=@
6420 fi
6421 fi
6422 rm -f conftest.* libconftest.a
6423
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6429 $as_echo "$lt_cv_ar_at_file" >&6; }
6430
6431 if test "x$lt_cv_ar_at_file" = xno; then
6432 archiver_list_spec=
6433 else
6434 archiver_list_spec=$lt_cv_ar_at_file
6435 fi
5951 else
5952 AR="$ac_cv_prog_AR"
5953 fi
5954
5955 test -z "$AR" && AR=ar
5956 test -z "$AR_FLAGS" && AR_FLAGS=cru
5957
5958
5959
5960
64365961
64375962
64385963
64455970 set dummy ${ac_tool_prefix}strip; ac_word=$2
64465971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64475972 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_STRIP+:} false; then :
5973 if test "${ac_cv_prog_STRIP+set}" = set; then :
64495974 $as_echo_n "(cached) " >&6
64505975 else
64515976 if test -n "$STRIP"; then
64575982 IFS=$as_save_IFS
64585983 test -z "$as_dir" && as_dir=.
64595984 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64615986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
64625987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
64635988 break 2
64856010 set dummy strip; ac_word=$2
64866011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64876012 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6013 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
64896014 $as_echo_n "(cached) " >&6
64906015 else
64916016 if test -n "$ac_ct_STRIP"; then
64976022 IFS=$as_save_IFS
64986023 test -z "$as_dir" && as_dir=.
64996024 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
65016026 ac_cv_prog_ac_ct_STRIP="strip"
65026027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65036028 break 2
65446069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
65456070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65466071 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_RANLIB+:} false; then :
6072 if test "${ac_cv_prog_RANLIB+set}" = set; then :
65486073 $as_echo_n "(cached) " >&6
65496074 else
65506075 if test -n "$RANLIB"; then
65566081 IFS=$as_save_IFS
65576082 test -z "$as_dir" && as_dir=.
65586083 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
65606085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
65616086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65626087 break 2
65846109 set dummy ranlib; ac_word=$2
65856110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65866111 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
65886113 $as_echo_n "(cached) " >&6
65896114 else
65906115 if test -n "$ac_ct_RANLIB"; then
65966121 IFS=$as_save_IFS
65976122 test -z "$as_dir" && as_dir=.
65986123 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
66006125 ac_cv_prog_ac_ct_RANLIB="ranlib"
66016126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
66026127 break 2
66466171 if test -n "$RANLIB"; then
66476172 case $host_os in
66486173 openbsd*)
6649 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6174 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
66506175 ;;
66516176 *)
6652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
66536178 ;;
66546179 esac
6655 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6656 fi
6657
6658 case $host_os in
6659 darwin*)
6660 lock_old_archive_extraction=yes ;;
6661 *)
6662 lock_old_archive_extraction=no ;;
6663 esac
6664
6665
6666
6667
6668
6180 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6181 fi
66696182
66706183
66716184
67136226 # Check for command to grab the raw symbol name followed by C symbol from nm.
67146227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
67156228 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6716 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6229 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
67176230 $as_echo_n "(cached) " >&6
67186231 else
67196232
67746287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
67756288
67766289 # Transform an extracted symbol line into symbol name and symbol address
6777 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6778 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'"
6290 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6291 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'"
67796292
67806293 # Handle CRLF in mingw tool chain
67816294 opt_cr=
67996312 # which start with @ or ?.
68006313 lt_cv_sys_global_symbol_pipe="$AWK '"\
68016314 " {last_section=section; section=\$ 3};"\
6802 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
68036315 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
68046316 " \$ 0!~/External *\|/{next};"\
68056317 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
68126324 else
68136325 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
68146326 fi
6815 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
68166327
68176328 # Check to see that the pipe works correctly.
68186329 pipe_works=no
68386349 test $ac_status = 0; }; then
68396350 # Now try to grab the symbols.
68406351 nlist=conftest.nm
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6842 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
68436354 ac_status=$?
68446355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68456356 test $ac_status = 0; } && test -s "$nlist"; then
68546365 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
68556366 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
68566367 cat <<_LT_EOF > conftest.$ac_ext
6857 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6858 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6859 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6860 relocations are performed -- see ld's documentation on pseudo-relocs. */
6861 # define LT_DLSYM_CONST
6862 #elif defined(__osf__)
6863 /* This system does not cope well with relocations in const data. */
6864 # define LT_DLSYM_CONST
6865 #else
6866 # define LT_DLSYM_CONST const
6867 #endif
6868
68696368 #ifdef __cplusplus
68706369 extern "C" {
68716370 #endif
68776376 cat <<_LT_EOF >> conftest.$ac_ext
68786377
68796378 /* The mapping between symbol names and symbols. */
6880 LT_DLSYM_CONST struct {
6379 const struct {
68816380 const char *name;
68826381 void *address;
68836382 }
69036402 _LT_EOF
69046403 # Now try linking the two files.
69056404 mv conftest.$ac_objext conftstm.$ac_objext
6906 lt_globsym_save_LIBS=$LIBS
6907 lt_globsym_save_CFLAGS=$CFLAGS
6405 lt_save_LIBS="$LIBS"
6406 lt_save_CFLAGS="$CFLAGS"
69086407 LIBS="conftstm.$ac_objext"
69096408 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
69106409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
69146413 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
69156414 pipe_works=yes
69166415 fi
6917 LIBS=$lt_globsym_save_LIBS
6918 CFLAGS=$lt_globsym_save_CFLAGS
6416 LIBS="$lt_save_LIBS"
6417 CFLAGS="$lt_save_CFLAGS"
69196418 else
69206419 echo "cannot find nm_test_func in $nlist" >&5
69216420 fi
69526451 $as_echo "ok" >&6; }
69536452 fi
69546453
6955 # Response file support.
6956 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6957 nm_file_list_spec='@'
6958 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6959 nm_file_list_spec='@'
6960 fi
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6989 $as_echo_n "checking for sysroot... " >&6; }
6990
6991 # Check whether --with-sysroot was given.
6992 if test "${with_sysroot+set}" = set; then :
6993 withval=$with_sysroot;
6994 else
6995 with_sysroot=no
6996 fi
6997
6998
6999 lt_sysroot=
7000 case ${with_sysroot} in #(
7001 yes)
7002 if test "$GCC" = yes; then
7003 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7004 fi
7005 ;; #(
7006 /*)
7007 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7008 ;; #(
7009 no|'')
7010 ;; #(
7011 *)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7013 $as_echo "${with_sysroot}" >&6; }
7014 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7015 ;;
7016 esac
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7019 $as_echo "${lt_sysroot:-no}" >&6; }
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
70206471
70216472
70226473
70536504 ;;
70546505 *-*-irix6*)
70556506 # Find out which ABI we are using.
7056 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6507 echo '#line 6508 "configure"' > conftest.$ac_ext
70576508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
70586509 (eval $ac_compile) 2>&5
70596510 ac_status=$?
70886539 rm -rf conftest*
70896540 ;;
70906541
7091 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6542 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
70926543 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
70936544 # Find out which ABI we are using.
70946545 echo 'int i;' > conftest.$ac_ext
71046555 LD="${LD-ld} -m elf_i386_fbsd"
71056556 ;;
71066557 x86_64-*linux*)
7107 case `/usr/bin/file conftest.o` in
7108 *x86-64*)
7109 LD="${LD-ld} -m elf32_x86_64"
7110 ;;
7111 *)
7112 LD="${LD-ld} -m elf_i386"
7113 ;;
7114 esac
6558 LD="${LD-ld} -m elf_i386"
71156559 ;;
7116 powerpc64le-*)
7117 LD="${LD-ld} -m elf32lppclinux"
7118 ;;
7119 powerpc64-*)
6560 ppc64-*linux*|powerpc64-*linux*)
71206561 LD="${LD-ld} -m elf32ppclinux"
71216562 ;;
71226563 s390x-*linux*)
71356576 x86_64-*linux*)
71366577 LD="${LD-ld} -m elf_x86_64"
71376578 ;;
7138 powerpcle-*)
7139 LD="${LD-ld} -m elf64lppc"
7140 ;;
7141 powerpc-*)
6579 ppc*-*linux*|powerpc*-*linux*)
71426580 LD="${LD-ld} -m elf64ppc"
71436581 ;;
71446582 s390*-*linux*|s390*-*tpf*)
71606598 CFLAGS="$CFLAGS -belf"
71616599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
71626600 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7163 if ${lt_cv_cc_needs_belf+:} false; then :
6601 if test "${lt_cv_cc_needs_belf+set}" = set; then :
71646602 $as_echo_n "(cached) " >&6
71656603 else
71666604 ac_ext=c
72016639 CFLAGS="$SAVE_CFLAGS"
72026640 fi
72036641 ;;
7204 *-*solaris*)
6642 sparc*-*solaris*)
72056643 # Find out which ABI we are using.
72066644 echo 'int i;' > conftest.$ac_ext
72076645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
72126650 case `/usr/bin/file conftest.o` in
72136651 *64-bit*)
72146652 case $lt_cv_prog_gnu_ld in
7215 yes*)
7216 case $host in
7217 i?86-*-solaris*)
7218 LD="${LD-ld} -m elf_x86_64"
7219 ;;
7220 sparc*-*-solaris*)
7221 LD="${LD-ld} -m elf64_sparc"
7222 ;;
7223 esac
7224 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7225 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7226 LD="${LD-ld}_sol2"
7227 fi
7228 ;;
6653 yes*) LD="${LD-ld} -m elf64_sparc" ;;
72296654 *)
72306655 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
72316656 LD="${LD-ld} -64"
72416666
72426667 need_locks="$enable_libtool_lock"
72436668
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}mt; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$MANIFEST_TOOL"; then
7253 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7273 if test -n "$MANIFEST_TOOL"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7275 $as_echo "$MANIFEST_TOOL" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7284 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7285 # Extract the first word of "mt", so it can be a program name with args.
7286 set dummy mt; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$ac_ct_MANIFEST_TOOL"; then
7293 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7313 if test -n "$ac_ct_MANIFEST_TOOL"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7315 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7322 MANIFEST_TOOL=":"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7331 fi
7332 else
7333 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7334 fi
7335
7336 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7338 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7339 if ${lt_cv_path_mainfest_tool+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 lt_cv_path_mainfest_tool=no
7343 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7344 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7345 cat conftest.err >&5
7346 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7347 lt_cv_path_mainfest_tool=yes
7348 fi
7349 rm -f conftest*
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7352 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7353 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7354 MANIFEST_TOOL=:
7355 fi
7356
7357
7358
7359
7360
73616669
73626670 case $host_os in
73636671 rhapsody* | darwin*)
73666674 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
73676675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73686676 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6677 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
73706678 $as_echo_n "(cached) " >&6
73716679 else
73726680 if test -n "$DSYMUTIL"; then
73786686 IFS=$as_save_IFS
73796687 test -z "$as_dir" && as_dir=.
73806688 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73826690 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
73836691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73846692 break 2
74066714 set dummy dsymutil; ac_word=$2
74076715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
74086716 $as_echo_n "checking for $ac_word... " >&6; }
7409 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6717 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
74106718 $as_echo_n "(cached) " >&6
74116719 else
74126720 if test -n "$ac_ct_DSYMUTIL"; then
74186726 IFS=$as_save_IFS
74196727 test -z "$as_dir" && as_dir=.
74206728 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
74226730 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
74236731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
74246732 break 2
74586766 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
74596767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
74606768 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_prog_NMEDIT+:} false; then :
6769 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
74626770 $as_echo_n "(cached) " >&6
74636771 else
74646772 if test -n "$NMEDIT"; then
74706778 IFS=$as_save_IFS
74716779 test -z "$as_dir" && as_dir=.
74726780 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
74746782 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
74756783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
74766784 break 2
74986806 set dummy nmedit; ac_word=$2
74996807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
75006808 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6809 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
75026810 $as_echo_n "(cached) " >&6
75036811 else
75046812 if test -n "$ac_ct_NMEDIT"; then
75106818 IFS=$as_save_IFS
75116819 test -z "$as_dir" && as_dir=.
75126820 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75146822 ac_cv_prog_ac_ct_NMEDIT="nmedit"
75156823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75166824 break 2
75506858 set dummy ${ac_tool_prefix}lipo; ac_word=$2
75516859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
75526860 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_LIPO+:} false; then :
6861 if test "${ac_cv_prog_LIPO+set}" = set; then :
75546862 $as_echo_n "(cached) " >&6
75556863 else
75566864 if test -n "$LIPO"; then
75626870 IFS=$as_save_IFS
75636871 test -z "$as_dir" && as_dir=.
75646872 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75666874 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
75676875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75686876 break 2
75906898 set dummy lipo; ac_word=$2
75916899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
75926900 $as_echo_n "checking for $ac_word... " >&6; }
7593 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6901 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
75946902 $as_echo_n "(cached) " >&6
75956903 else
75966904 if test -n "$ac_ct_LIPO"; then
76026910 IFS=$as_save_IFS
76036911 test -z "$as_dir" && as_dir=.
76046912 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
76066914 ac_cv_prog_ac_ct_LIPO="lipo"
76076915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76086916 break 2
76426950 set dummy ${ac_tool_prefix}otool; ac_word=$2
76436951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
76446952 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_OTOOL+:} false; then :
6953 if test "${ac_cv_prog_OTOOL+set}" = set; then :
76466954 $as_echo_n "(cached) " >&6
76476955 else
76486956 if test -n "$OTOOL"; then
76546962 IFS=$as_save_IFS
76556963 test -z "$as_dir" && as_dir=.
76566964 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
76586966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
76596967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76606968 break 2
76826990 set dummy otool; ac_word=$2
76836991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
76846992 $as_echo_n "checking for $ac_word... " >&6; }
7685 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6993 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
76866994 $as_echo_n "(cached) " >&6
76876995 else
76886996 if test -n "$ac_ct_OTOOL"; then
76947002 IFS=$as_save_IFS
76957003 test -z "$as_dir" && as_dir=.
76967004 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
76987006 ac_cv_prog_ac_ct_OTOOL="otool"
76997007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77007008 break 2
77347042 set dummy ${ac_tool_prefix}otool64; ac_word=$2
77357043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
77367044 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_OTOOL64+:} false; then :
7045 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
77387046 $as_echo_n "(cached) " >&6
77397047 else
77407048 if test -n "$OTOOL64"; then
77467054 IFS=$as_save_IFS
77477055 test -z "$as_dir" && as_dir=.
77487056 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
77507058 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
77517059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77527060 break 2
77747082 set dummy otool64; ac_word=$2
77757083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
77767084 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7085 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
77787086 $as_echo_n "(cached) " >&6
77797087 else
77807088 if test -n "$ac_ct_OTOOL64"; then
77867094 IFS=$as_save_IFS
77877095 test -z "$as_dir" && as_dir=.
77887096 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
77907098 ac_cv_prog_ac_ct_OTOOL64="otool64"
77917099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77927100 break 2
78497157
78507158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
78517159 $as_echo_n "checking for -single_module linker flag... " >&6; }
7852 if ${lt_cv_apple_cc_single_mod+:} false; then :
7160 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
78537161 $as_echo_n "(cached) " >&6
78547162 else
78557163 lt_cv_apple_cc_single_mod=no
78657173 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
78667174 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
78677175 _lt_result=$?
7868 # If there is a non-empty error log, and "single_module"
7869 # appears in it, assume the flag caused a linker warning
7870 if test -s conftest.err && $GREP single_module conftest.err; then
7871 cat conftest.err >&5
7872 # Otherwise, if the output was created with a 0 exit code from
7873 # the compiler, it worked.
7874 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7176 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
78757177 lt_cv_apple_cc_single_mod=yes
78767178 else
78777179 cat conftest.err >&5
78827184 fi
78837185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
78847186 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7885
78867187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
78877188 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7888 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7189 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
78897190 $as_echo_n "(cached) " >&6
78907191 else
78917192 lt_cv_ld_exported_symbols_list=no
79157216 fi
79167217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
79177218 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7920 $as_echo_n "checking for -force_load linker flag... " >&6; }
7921 if ${lt_cv_ld_force_load+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 lt_cv_ld_force_load=no
7925 cat > conftest.c << _LT_EOF
7926 int forced_loaded() { return 2;}
7927 _LT_EOF
7928 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7929 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7930 echo "$AR cru libconftest.a conftest.o" >&5
7931 $AR cru libconftest.a conftest.o 2>&5
7932 echo "$RANLIB libconftest.a" >&5
7933 $RANLIB libconftest.a 2>&5
7934 cat > conftest.c << _LT_EOF
7935 int main() { return 0;}
7936 _LT_EOF
7937 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7938 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7939 _lt_result=$?
7940 if test -s conftest.err && $GREP force_load conftest.err; then
7941 cat conftest.err >&5
7942 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7943 lt_cv_ld_force_load=yes
7944 else
7945 cat conftest.err >&5
7946 fi
7947 rm -f conftest.err libconftest.a conftest conftest.c
7948 rm -rf conftest.dSYM
7949
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7952 $as_echo "$lt_cv_ld_force_load" >&6; }
79537219 case $host_os in
79547220 rhapsody* | darwin1.[012])
79557221 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
79777243 else
79787244 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
79797245 fi
7980 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7246 if test "$DSYMUTIL" != ":"; then
79817247 _lt_dsymutil='~$DSYMUTIL $lib || :'
79827248 else
79837249 _lt_dsymutil=
79977263 CPP=
79987264 fi
79997265 if test -z "$CPP"; then
8000 if ${ac_cv_prog_CPP+:} false; then :
7266 if test "${ac_cv_prog_CPP+set}" = set; then :
80017267 $as_echo_n "(cached) " >&6
80027268 else
80037269 # Double quotes because CPP needs to be expanded
80277293 # Broken: fails on valid input.
80287294 continue
80297295 fi
8030 rm -f conftest.err conftest.i conftest.$ac_ext
7296 rm -f conftest.err conftest.$ac_ext
80317297
80327298 # OK, works on sane cases. Now check whether nonexistent headers
80337299 # can be detected and how.
80437309 ac_preproc_ok=:
80447310 break
80457311 fi
8046 rm -f conftest.err conftest.i conftest.$ac_ext
7312 rm -f conftest.err conftest.$ac_ext
80477313
80487314 done
80497315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8050 rm -f conftest.i conftest.err conftest.$ac_ext
7316 rm -f conftest.err conftest.$ac_ext
80517317 if $ac_preproc_ok; then :
80527318 break
80537319 fi
80867352 # Broken: fails on valid input.
80877353 continue
80887354 fi
8089 rm -f conftest.err conftest.i conftest.$ac_ext
7355 rm -f conftest.err conftest.$ac_ext
80907356
80917357 # OK, works on sane cases. Now check whether nonexistent headers
80927358 # can be detected and how.
81027368 ac_preproc_ok=:
81037369 break
81047370 fi
8105 rm -f conftest.err conftest.i conftest.$ac_ext
7371 rm -f conftest.err conftest.$ac_ext
81067372
81077373 done
81087374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8109 rm -f conftest.i conftest.err conftest.$ac_ext
7375 rm -f conftest.err conftest.$ac_ext
81107376 if $ac_preproc_ok; then :
81117377
81127378 else
81137379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81147380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8115 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8116 See \`config.log' for more details" "$LINENO" 5; }
7381 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7382 See \`config.log' for more details." "$LINENO" 5; }
81177383 fi
81187384
81197385 ac_ext=c
81257391
81267392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
81277393 $as_echo_n "checking for ANSI C header files... " >&6; }
8128 if ${ac_cv_header_stdc+:} false; then :
7394 if test "${ac_cv_header_stdc+set}" = set; then :
81297395 $as_echo_n "(cached) " >&6
81307396 else
81317397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82427508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
82437509 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
82447510 "
8245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7511 eval as_val=\$$as_ac_Header
7512 if test "x$as_val" = x""yes; then :
82467513 cat >>confdefs.h <<_ACEOF
82477514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
82487515 _ACEOF
82567523 do :
82577524 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
82587525 "
8259 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7526 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
82607527 cat >>confdefs.h <<_ACEOF
82617528 #define HAVE_DLFCN_H 1
82627529 _ACEOF
82677534
82687535
82697536
8270
8271 func_stripname_cnf ()
7537 ac_ext=cpp
7538 ac_cpp='$CXXCPP $CPPFLAGS'
7539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7542 if test -z "$CXX"; then
7543 if test -n "$CCC"; then
7544 CXX=$CCC
7545 else
7546 if test -n "$ac_tool_prefix"; then
7547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7548 do
7549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_CXX+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$CXX"; then
7557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 CXX=$ac_cv_prog_CXX
7577 if test -n "$CXX"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7579 $as_echo "$CXX" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585
7586 test -n "$CXX" && break
7587 done
7588 fi
7589 if test -z "$CXX"; then
7590 ac_ct_CXX=$CXX
7591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7592 do
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$ac_ct_CXX"; then
7601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_ac_ct_CXX="$ac_prog"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7621 if test -n "$ac_ct_CXX"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7623 $as_echo "$ac_ct_CXX" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630 test -n "$ac_ct_CXX" && break
7631 done
7632
7633 if test "x$ac_ct_CXX" = x; then
7634 CXX="g++"
7635 else
7636 case $cross_compiling:$ac_tool_warned in
7637 yes:)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7641 esac
7642 CXX=$ac_ct_CXX
7643 fi
7644 fi
7645
7646 fi
7647 fi
7648 # Provide some information about the compiler.
7649 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7650 set X $ac_compile
7651 ac_compiler=$2
7652 for ac_option in --version -v -V -qversion; do
7653 { { ac_try="$ac_compiler $ac_option >&5"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7659 $as_echo "$ac_try_echo"; } >&5
7660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7661 ac_status=$?
7662 if test -s conftest.err; then
7663 sed '10a\
7664 ... rest of stderr output deleted ...
7665 10q' conftest.err >conftest.er1
7666 cat conftest.er1 >&5
7667 fi
7668 rm -f conftest.er1 conftest.err
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }
7671 done
7672
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7674 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680
7681 int
7682 main ()
82727683 {
8273 case ${2} in
8274 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8275 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8276 esac
8277 } # func_stripname_cnf
7684 #ifndef __GNUC__
7685 choke me
7686 #endif
7687
7688 ;
7689 return 0;
7690 }
7691 _ACEOF
7692 if ac_fn_cxx_try_compile "$LINENO"; then :
7693 ac_compiler_gnu=yes
7694 else
7695 ac_compiler_gnu=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7699
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7702 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7703 if test $ac_compiler_gnu = yes; then
7704 GXX=yes
7705 else
7706 GXX=
7707 fi
7708 ac_test_CXXFLAGS=${CXXFLAGS+set}
7709 ac_save_CXXFLAGS=$CXXFLAGS
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7711 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7712 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7716 ac_cxx_werror_flag=yes
7717 ac_cv_prog_cxx_g=no
7718 CXXFLAGS="-g"
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721
7722 int
7723 main ()
7724 {
7725
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_cxx_try_compile "$LINENO"; then :
7731 ac_cv_prog_cxx_g=yes
7732 else
7733 CXXFLAGS=""
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736
7737 int
7738 main ()
7739 {
7740
7741 ;
7742 return 0;
7743 }
7744 _ACEOF
7745 if ac_fn_cxx_try_compile "$LINENO"; then :
7746
7747 else
7748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7749 CXXFLAGS="-g"
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752
7753 int
7754 main ()
7755 {
7756
7757 ;
7758 return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_cxx_try_compile "$LINENO"; then :
7762 ac_cv_prog_cxx_g=yes
7763 fi
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7772 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7773 if test "$ac_test_CXXFLAGS" = set; then
7774 CXXFLAGS=$ac_save_CXXFLAGS
7775 elif test $ac_cv_prog_cxx_g = yes; then
7776 if test "$GXX" = yes; then
7777 CXXFLAGS="-g -O2"
7778 else
7779 CXXFLAGS="-g"
7780 fi
7781 else
7782 if test "$GXX" = yes; then
7783 CXXFLAGS="-O2"
7784 else
7785 CXXFLAGS=
7786 fi
7787 fi
7788 ac_ext=c
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793
7794 depcc="$CXX" am_compiler_list=
7795
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7797 $as_echo_n "checking dependency style of $depcc... " >&6; }
7798 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7802 # We make a subdir and do the tests there. Otherwise we can end up
7803 # making bogus files that we don't know about and never remove. For
7804 # instance it was reported that on HP-UX the gcc test will end up
7805 # making a dummy file named `D' -- because `-MD' means `put the output
7806 # in D'.
7807 mkdir conftest.dir
7808 # Copy depcomp to subdir because otherwise we won't find it if we're
7809 # using a relative directory.
7810 cp "$am_depcomp" conftest.dir
7811 cd conftest.dir
7812 # We will build objects and dependencies in a subdirectory because
7813 # it helps to detect inapplicable dependency modes. For instance
7814 # both Tru64's cc and ICC support -MD to output dependencies as a
7815 # side effect of compilation, but ICC will put the dependencies in
7816 # the current directory while Tru64 will put them in the object
7817 # directory.
7818 mkdir sub
7819
7820 am_cv_CXX_dependencies_compiler_type=none
7821 if test "$am_compiler_list" = ""; then
7822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7823 fi
7824 am__universal=false
7825 case " $depcc " in #(
7826 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7827 esac
7828
7829 for depmode in $am_compiler_list; do
7830 # Setup a source with many dependencies, because some compilers
7831 # like to wrap large dependency lists on column 80 (with \), and
7832 # we should not choose a depcomp mode which is confused by this.
7833 #
7834 # We need to recreate these files for each test, as the compiler may
7835 # overwrite some of them when testing with obscure command lines.
7836 # This happens at least with the AIX C compiler.
7837 : > sub/conftest.c
7838 for i in 1 2 3 4 5 6; do
7839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7840 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7841 # Solaris 8's {/usr,}/bin/sh.
7842 touch sub/conftst$i.h
7843 done
7844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7845
7846 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7847 # mode. It turns out that the SunPro C++ compiler does not properly
7848 # handle `-M -o', and we need to detect this. Also, some Intel
7849 # versions had trouble with output in subdirs
7850 am__obj=sub/conftest.${OBJEXT-o}
7851 am__minus_obj="-o $am__obj"
7852 case $depmode in
7853 gcc)
7854 # This depmode causes a compiler race in universal mode.
7855 test "$am__universal" = false || continue
7856 ;;
7857 nosideeffect)
7858 # after this tag, mechanisms are not by side-effect, so they'll
7859 # only be used when explicitly requested
7860 if test "x$enable_dependency_tracking" = xyes; then
7861 continue
7862 else
7863 break
7864 fi
7865 ;;
7866 msvisualcpp | msvcmsys)
7867 # This compiler won't grok `-c -o', but also, the minuso test has
7868 # not run yet. These depmodes are late enough in the game, and
7869 # so weak that their functioning should not be impacted.
7870 am__obj=conftest.${OBJEXT-o}
7871 am__minus_obj=
7872 ;;
7873 none) break ;;
7874 esac
7875 if depmode=$depmode \
7876 source=sub/conftest.c object=$am__obj \
7877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7878 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7879 >/dev/null 2>conftest.err &&
7880 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7881 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7882 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7883 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7884 # icc doesn't choke on unknown options, it will just issue warnings
7885 # or remarks (even with -Werror). So we grep stderr for any message
7886 # that says an option was ignored or not supported.
7887 # When given -MP, icc 7.0 and 7.1 complain thusly:
7888 # icc: Command line warning: ignoring option '-M'; no argument required
7889 # The diagnosis changed in icc 8.0:
7890 # icc: Command line remark: option '-MP' not supported
7891 if (grep 'ignoring option' conftest.err ||
7892 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7893 am_cv_CXX_dependencies_compiler_type=$depmode
7894 break
7895 fi
7896 fi
7897 done
7898
7899 cd ..
7900 rm -rf conftest.dir
7901 else
7902 am_cv_CXX_dependencies_compiler_type=none
7903 fi
7904
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7907 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7908 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7909
7910 if
7911 test "x$enable_dependency_tracking" != xno \
7912 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7913 am__fastdepCXX_TRUE=
7914 am__fastdepCXX_FALSE='#'
7915 else
7916 am__fastdepCXX_TRUE='#'
7917 am__fastdepCXX_FALSE=
7918 fi
7919
7920
7921 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7922 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7923 (test "X$CXX" != "Xg++"))) ; then
7924 ac_ext=cpp
7925 ac_cpp='$CXXCPP $CPPFLAGS'
7926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7930 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7931 if test -z "$CXXCPP"; then
7932 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 # Double quotes because CXXCPP needs to be expanded
7936 for CXXCPP in "$CXX -E" "/lib/cpp"
7937 do
7938 ac_preproc_ok=false
7939 for ac_cxx_preproc_warn_flag in '' yes
7940 do
7941 # Use a header file that comes with gcc, so configuring glibc
7942 # with a fresh cross-compiler works.
7943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7944 # <limits.h> exists even on freestanding compilers.
7945 # On the NeXT, cc -E runs the code through the compiler's parser,
7946 # not just through cpp. "Syntax error" is here to catch this case.
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 #ifdef __STDC__
7950 # include <limits.h>
7951 #else
7952 # include <assert.h>
7953 #endif
7954 Syntax error
7955 _ACEOF
7956 if ac_fn_cxx_try_cpp "$LINENO"; then :
7957
7958 else
7959 # Broken: fails on valid input.
7960 continue
7961 fi
7962 rm -f conftest.err conftest.$ac_ext
7963
7964 # OK, works on sane cases. Now check whether nonexistent headers
7965 # can be detected and how.
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968 #include <ac_nonexistent.h>
7969 _ACEOF
7970 if ac_fn_cxx_try_cpp "$LINENO"; then :
7971 # Broken: success on invalid input.
7972 continue
7973 else
7974 # Passes both tests.
7975 ac_preproc_ok=:
7976 break
7977 fi
7978 rm -f conftest.err conftest.$ac_ext
7979
7980 done
7981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7982 rm -f conftest.err conftest.$ac_ext
7983 if $ac_preproc_ok; then :
7984 break
7985 fi
7986
7987 done
7988 ac_cv_prog_CXXCPP=$CXXCPP
7989
7990 fi
7991 CXXCPP=$ac_cv_prog_CXXCPP
7992 else
7993 ac_cv_prog_CXXCPP=$CXXCPP
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7996 $as_echo "$CXXCPP" >&6; }
7997 ac_preproc_ok=false
7998 for ac_cxx_preproc_warn_flag in '' yes
7999 do
8000 # Use a header file that comes with gcc, so configuring glibc
8001 # with a fresh cross-compiler works.
8002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8003 # <limits.h> exists even on freestanding compilers.
8004 # On the NeXT, cc -E runs the code through the compiler's parser,
8005 # not just through cpp. "Syntax error" is here to catch this case.
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #ifdef __STDC__
8009 # include <limits.h>
8010 #else
8011 # include <assert.h>
8012 #endif
8013 Syntax error
8014 _ACEOF
8015 if ac_fn_cxx_try_cpp "$LINENO"; then :
8016
8017 else
8018 # Broken: fails on valid input.
8019 continue
8020 fi
8021 rm -f conftest.err conftest.$ac_ext
8022
8023 # OK, works on sane cases. Now check whether nonexistent headers
8024 # can be detected and how.
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #include <ac_nonexistent.h>
8028 _ACEOF
8029 if ac_fn_cxx_try_cpp "$LINENO"; then :
8030 # Broken: success on invalid input.
8031 continue
8032 else
8033 # Passes both tests.
8034 ac_preproc_ok=:
8035 break
8036 fi
8037 rm -f conftest.err conftest.$ac_ext
8038
8039 done
8040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8041 rm -f conftest.err conftest.$ac_ext
8042 if $ac_preproc_ok; then :
8043
8044 else
8045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8047 _lt_caught_CXX_error=yes; }
8048 fi
8049
8050 ac_ext=c
8051 ac_cpp='$CPP $CPPFLAGS'
8052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8055
8056 else
8057 _lt_caught_CXX_error=yes
8058 fi
82788059
82798060
82808061
83558136
83568137 # Check whether --with-pic was given.
83578138 if test "${with_pic+set}" = set; then :
8358 withval=$with_pic; lt_p=${PACKAGE-default}
8359 case $withval in
8360 yes|no) pic_mode=$withval ;;
8361 *)
8362 pic_mode=default
8363 # Look at the argument we got. We use all the common list separators.
8364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8365 for lt_pkg in $withval; do
8366 IFS="$lt_save_ifs"
8367 if test "X$lt_pkg" = "X$lt_p"; then
8368 pic_mode=yes
8369 fi
8370 done
8371 IFS="$lt_save_ifs"
8372 ;;
8373 esac
8139 withval=$with_pic; pic_mode="$withval"
83748140 else
83758141 pic_mode=default
83768142 fi
84478213
84488214
84498215
8450
8451
8452
8453
8454
84558216 test -z "$LN_S" && LN_S="ln -s"
84568217
84578218
84738234
84748235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
84758236 $as_echo_n "checking for objdir... " >&6; }
8476 if ${lt_cv_objdir+:} false; then :
8237 if test "${lt_cv_objdir+set}" = set; then :
84778238 $as_echo_n "(cached) " >&6
84788239 else
84798240 rm -f .libs 2>/dev/null
84978258 cat >>confdefs.h <<_ACEOF
84988259 #define LT_OBJDIR "$lt_cv_objdir/"
84998260 _ACEOF
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
85008274
85018275
85028276
85138287 ;;
85148288 esac
85158289
8290 # Sed substitution that helps us do robust quoting. It backslashifies
8291 # metacharacters that are still active within double-quoted strings.
8292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8293
8294 # Same as above, but do not quote variable references.
8295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8296
8297 # Sed substitution to delay expansion of an escaped shell variable in a
8298 # double_quote_subst'ed string.
8299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8300
8301 # Sed substitution to delay expansion of an escaped single quote.
8302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8303
8304 # Sed substitution to avoid accidental globbing in evaled expressions
8305 no_glob_subst='s/\*/\\\*/g'
8306
85168307 # Global variables:
85178308 ofile=libtool
85188309 can_build_shared=yes
85418332 *) break;;
85428333 esac
85438334 done
8544 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8335 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
85458336
85468337
85478338 # Only perform the check for file, if the check method requires it
85518342 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
85528343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
85538344 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8554 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8345 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
85558346 $as_echo_n "(cached) " >&6
85568347 else
85578348 case $MAGIC_CMD in
86178408 if test -n "$ac_tool_prefix"; then
86188409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
86198410 $as_echo_n "checking for file... " >&6; }
8620 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
86218412 $as_echo_n "(cached) " >&6
86228413 else
86238414 case $MAGIC_CMD in
87468537 lt_prog_compiler_no_builtin_flag=
87478538
87488539 if test "$GCC" = yes; then
8749 case $cc_basename in
8750 nvcc*)
8751 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8752 *)
8753 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8754 esac
8540 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
87558541
87568542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
87578543 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8758 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
87598545 $as_echo_n "(cached) " >&6
87608546 else
87618547 lt_cv_prog_compiler_rtti_exceptions=no
87718557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
87728558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
87738559 -e 's:$: $lt_compiler_flag:'`
8774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560 (eval echo "\"\$as_me:8561: $lt_compile\"" >&5)
87758561 (eval "$lt_compile" 2>conftest.err)
87768562 ac_status=$?
87778563 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 echo "$as_me:8565: \$? = $ac_status" >&5
87798565 if (exit $ac_status) && test -s "$ac_outfile"; then
87808566 # The compiler can only warn and ignore the option if not recognized
87818567 # So say no if there are warnings other than the usual output.
8782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
87838569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
87848570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
87858571 lt_cv_prog_compiler_rtti_exceptions=yes
88088594 lt_prog_compiler_pic=
88098595 lt_prog_compiler_static=
88108596
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8598 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
88118599
88128600 if test "$GCC" = yes; then
88138601 lt_prog_compiler_wl='-Wl,'
88558643 lt_prog_compiler_pic='-fno-common'
88568644 ;;
88578645
8858 haiku*)
8859 # PIC is the default for Haiku.
8860 # The "-static" flag exists, but is broken.
8861 lt_prog_compiler_static=
8862 ;;
8863
88648646 hpux*)
88658647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
88668648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
89018683
89028684 *)
89038685 lt_prog_compiler_pic='-fPIC'
8904 ;;
8905 esac
8906
8907 case $cc_basename in
8908 nvcc*) # Cuda Compiler Driver 2.2
8909 lt_prog_compiler_wl='-Xlinker '
8910 if test -n "$lt_prog_compiler_pic"; then
8911 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8912 fi
89138686 ;;
89148687 esac
89158688 else
89538726 lt_prog_compiler_static='-non_shared'
89548727 ;;
89558728
8956 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
89578730 case $cc_basename in
89588731 # old Intel for x86_64 which still supported -KPIC.
89598732 ecc*)
89748747 lt_prog_compiler_pic='--shared'
89758748 lt_prog_compiler_static='--static'
89768749 ;;
8977 nagfor*)
8978 # NAG Fortran compiler
8979 lt_prog_compiler_wl='-Wl,-Wl,,'
8980 lt_prog_compiler_pic='-PIC'
8981 lt_prog_compiler_static='-Bstatic'
8982 ;;
8983 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8750 pgcc* | pgf77* | pgf90* | pgf95*)
89848751 # Portland Group compilers (*not* the Pentium gcc compiler,
89858752 # which looks to be a dead project)
89868753 lt_prog_compiler_wl='-Wl,'
89928759 # All Alpha code is PIC.
89938760 lt_prog_compiler_static='-non_shared'
89948761 ;;
8995 xl* | bgxl* | bgf* | mpixl*)
8996 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8762 xl*)
8763 # IBM XL C 8.0/Fortran 10.1 on PPC
89978764 lt_prog_compiler_wl='-Wl,'
89988765 lt_prog_compiler_pic='-qpic'
89998766 lt_prog_compiler_static='-qstaticlink'
90008767 ;;
90018768 *)
90028769 case `$CC -V 2>&1 | sed 5q` in
9003 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9004 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9005 lt_prog_compiler_pic='-KPIC'
9006 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_wl=''
9008 ;;
9009 *Sun\ F* | *Sun*Fortran*)
9010 lt_prog_compiler_pic='-KPIC'
9011 lt_prog_compiler_static='-Bstatic'
9012 lt_prog_compiler_wl='-Qoption ld '
9013 ;;
90148770 *Sun\ C*)
90158771 # Sun C 5.9
90168772 lt_prog_compiler_pic='-KPIC'
90178773 lt_prog_compiler_static='-Bstatic'
90188774 lt_prog_compiler_wl='-Wl,'
90198775 ;;
9020 *Intel*\ [CF]*Compiler*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-fPIC'
9023 lt_prog_compiler_static='-static'
9024 ;;
9025 *Portland\ Group*)
9026 lt_prog_compiler_wl='-Wl,'
9027 lt_prog_compiler_pic='-fpic'
8776 *Sun\ F*)
8777 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8778 lt_prog_compiler_pic='-KPIC'
90288779 lt_prog_compiler_static='-Bstatic'
8780 lt_prog_compiler_wl=''
90298781 ;;
90308782 esac
90318783 ;;
90578809 lt_prog_compiler_pic='-KPIC'
90588810 lt_prog_compiler_static='-Bstatic'
90598811 case $cc_basename in
9060 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8812 f77* | f90* | f95*)
90618813 lt_prog_compiler_wl='-Qoption ld ';;
90628814 *)
90638815 lt_prog_compiler_wl='-Wl,';;
91148866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
91158867 ;;
91168868 esac
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9119 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9120 if ${lt_cv_prog_compiler_pic+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9126 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9127 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8870 $as_echo "$lt_prog_compiler_pic" >&6; }
8871
8872
8873
8874
8875
91288876
91298877 #
91308878 # Check to make sure the PIC flag actually works.
91328880 if test -n "$lt_prog_compiler_pic"; then
91338881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
91348882 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9135 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8883 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
91368884 $as_echo_n "(cached) " >&6
91378885 else
91388886 lt_cv_prog_compiler_pic_works=no
91488896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
91498897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
91508898 -e 's:$: $lt_compiler_flag:'`
9151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8899 (eval echo "\"\$as_me:8900: $lt_compile\"" >&5)
91528900 (eval "$lt_compile" 2>conftest.err)
91538901 ac_status=$?
91548902 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 echo "$as_me:8904: \$? = $ac_status" >&5
91568904 if (exit $ac_status) && test -s "$ac_outfile"; then
91578905 # The compiler can only warn and ignore the option if not recognized
91588906 # So say no if there are warnings other than the usual output.
9159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8907 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
91608908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
91618909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
91628910 lt_cv_prog_compiler_pic_works=yes
91858933
91868934
91878935
9188
9189
9190
9191
9192
91938936 #
91948937 # Check to make sure the static flag actually works.
91958938 #
91968939 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
91978940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
91988941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9199 if ${lt_cv_prog_compiler_static_works+:} false; then :
8942 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
92008943 $as_echo_n "(cached) " >&6
92018944 else
92028945 lt_cv_prog_compiler_static_works=no
92098952 if test -s conftest.err; then
92108953 # Append any errors to the config.log.
92118954 cat conftest.err 1>&5
9212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8955 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
92138956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
92148957 if diff conftest.exp conftest.er2 >/dev/null; then
92158958 lt_cv_prog_compiler_static_works=yes
92398982
92408983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
92418984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9242 if ${lt_cv_prog_compiler_c_o+:} false; then :
8985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
92438986 $as_echo_n "(cached) " >&6
92448987 else
92458988 lt_cv_prog_compiler_c_o=no
92589001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
92599002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
92609003 -e 's:$: $lt_compiler_flag:'`
9261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9004 (eval echo "\"\$as_me:9005: $lt_compile\"" >&5)
92629005 (eval "$lt_compile" 2>out/conftest.err)
92639006 ac_status=$?
92649007 cat out/conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 echo "$as_me:9009: \$? = $ac_status" >&5
92669009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
92679010 then
92689011 # The compiler can only warn and ignore the option if not recognized
92699012 # So say no if there are warnings
9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9013 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
92719014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
92729015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
92739016 lt_cv_prog_compiler_c_o=yes
92949037
92959038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
92969039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9297 if ${lt_cv_prog_compiler_c_o+:} false; then :
9040 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
92989041 $as_echo_n "(cached) " >&6
92999042 else
93009043 lt_cv_prog_compiler_c_o=no
93139056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
93149057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
93159058 -e 's:$: $lt_compiler_flag:'`
9316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9059 (eval echo "\"\$as_me:9060: $lt_compile\"" >&5)
93179060 (eval "$lt_compile" 2>out/conftest.err)
93189061 ac_status=$?
93199062 cat out/conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 echo "$as_me:9064: \$? = $ac_status" >&5
93219064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
93229065 then
93239066 # The compiler can only warn and ignore the option if not recognized
93249067 # So say no if there are warnings
9325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9068 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
93269069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
93279070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
93289071 lt_cv_prog_compiler_c_o=yes
93889131 hardcode_direct=no
93899132 hardcode_direct_absolute=no
93909133 hardcode_libdir_flag_spec=
9134 hardcode_libdir_flag_spec_ld=
93919135 hardcode_libdir_separator=
93929136 hardcode_minus_L=no
93939137 hardcode_shlibpath_var=unsupported
94319175 openbsd*)
94329176 with_gnu_ld=no
94339177 ;;
9434 linux* | k*bsd*-gnu | gnu*)
9178 linux* | k*bsd*-gnu)
94359179 link_all_deplibs=no
94369180 ;;
94379181 esac
94389182
94399183 ld_shlibs=yes
9440
9441 # On some targets, GNU ld is compatible enough with the native linker
9442 # that we're better off using the native interface for both.
9443 lt_use_gnu_ld_interface=no
94449184 if test "$with_gnu_ld" = yes; then
9445 case $host_os in
9446 aix*)
9447 # The AIX port of GNU ld has always aspired to compatibility
9448 # with the native linker. However, as the warning in the GNU ld
9449 # block says, versions before 2.19.5* couldn't really create working
9450 # shared libraries, regardless of the interface used.
9451 case `$LD -v 2>&1` in
9452 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9453 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9454 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9455 *)
9456 lt_use_gnu_ld_interface=yes
9457 ;;
9458 esac
9459 ;;
9460 *)
9461 lt_use_gnu_ld_interface=yes
9462 ;;
9463 esac
9464 fi
9465
9466 if test "$lt_use_gnu_ld_interface" = yes; then
94679185 # If archive_cmds runs LD, not CC, wlarc should be empty
94689186 wlarc='${wl}'
94699187
94979215 ld_shlibs=no
94989216 cat <<_LT_EOF 1>&2
94999217
9500 *** Warning: the GNU linker, at least up to release 2.19, is reported
9218 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
95019219 *** to be unable to reliably create shared libraries on AIX.
95029220 *** Therefore, libtool is disabling shared libraries support. If you
9503 *** really care for shared libraries, you may want to install binutils
9504 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9505 *** You will then need to restart the configuration process.
9221 *** really care for shared libraries, you may want to modify your PATH
9222 *** so that a non-GNU linker is found, and then restart.
95069223
95079224 _LT_EOF
95089225 fi
95389255 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
95399256 # as there is no search path for DLLs.
95409257 hardcode_libdir_flag_spec='-L$libdir'
9541 export_dynamic_flag_spec='${wl}--export-all-symbols'
95429258 allow_undefined_flag=unsupported
95439259 always_export_symbols=no
95449260 enable_shared_with_static_runtimes=yes
9545 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'
9546 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
95479262
95489263 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
95499264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
95619276 fi
95629277 ;;
95639278
9564 haiku*)
9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566 link_all_deplibs=yes
9567 ;;
9568
95699279 interix[3-9]*)
95709280 hardcode_direct=no
95719281 hardcode_shlibpath_var=no
95919301 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
95929302 && test "$tmp_diet" = no
95939303 then
9594 tmp_addflag=' $pic_flag'
9304 tmp_addflag=
95959305 tmp_sharedflag='-shared'
95969306 case $cc_basename,$host_cpu in
95979307 pgcc*) # Portland Group C compiler
9598 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'
9308 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'
95999309 tmp_addflag=' $pic_flag'
96009310 ;;
9601 pgf77* | pgf90* | pgf95* | pgfortran*)
9602 # Portland Group f77 and f90 compilers
9603 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'
9311 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9312 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'
96049313 tmp_addflag=' $pic_flag -Mnomain' ;;
96059314 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
96069315 tmp_addflag=' -i_dynamic' ;;
96119320 lf95*) # Lahey Fortran 8.1
96129321 whole_archive_flag_spec=
96139322 tmp_sharedflag='--shared' ;;
9614 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9323 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
96159324 tmp_sharedflag='-qmkshrobj'
96169325 tmp_addflag= ;;
9617 nvcc*) # Cuda Compiler Driver 2.2
9618 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'
9619 compiler_needs_object=yes
9620 ;;
96219326 esac
96229327 case `$CC -V 2>&1 | sed 5q` in
96239328 *Sun\ C*) # Sun C 5.9
9624 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'
9329 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'
96259330 compiler_needs_object=yes
96269331 tmp_sharedflag='-G' ;;
96279332 *Sun\ F*) # Sun Fortran 8.3
96379342 fi
96389343
96399344 case $cc_basename in
9640 xlf* | bgf* | bgxlf* | mpixlf*)
9345 xlf*)
96419346 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
96429347 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9644 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9348 hardcode_libdir_flag_spec=
9349 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9350 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
96459351 if test "x$supports_anon_versioning" = xyes; then
96469352 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
96479353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
96489354 echo "local: *; };" >> $output_objdir/$libname.ver~
9649 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9355 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
96509356 fi
96519357 ;;
96529358 esac
96609366 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
96619367 wlarc=
96629368 else
9663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
96659371 fi
96669372 ;;
96679373
96799385
96809386 _LT_EOF
96819387 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
96849390 else
96859391 ld_shlibs=no
96869392 fi
97269432
97279433 *)
97289434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
97319437 else
97329438 ld_shlibs=no
97339439 fi
97679473 else
97689474 # If we're using GNU nm, then we don't want the "-C" option.
97699475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9770 # Also, AIX nm treats weak defined symbols like other global
9771 # defined symbols, whereas GNU nm marks them as "W".
97729476 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9773 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'
9477 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'
97749478 else
97759479 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'
97769480 fi
98589562 allow_undefined_flag='-berok'
98599563 # Determine the default libpath from the value encoded in an
98609564 # empty executable.
9861 if test "${lt_cv_aix_libpath+set}" = set; then
9862 aix_libpath=$lt_cv_aix_libpath
9863 else
9864 if ${lt_cv_aix_libpath_+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98689566 /* end confdefs.h. */
98699567
98709568 int
98779575 _ACEOF
98789576 if ac_fn_c_try_link "$LINENO"; then :
98799577
9880 lt_aix_libpath_sed='
9881 /Import File Strings/,/^$/ {
9882 /^0/ {
9883 s/^0 *\([^ ]*\) *$/\1/
9884 p
9885 }
9886 }'
9887 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9888 # Check for a 64-bit object if we didn't find anything.
9889 if test -z "$lt_cv_aix_libpath_"; then
9890 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9891 fi
9578 lt_aix_libpath_sed='
9579 /Import File Strings/,/^$/ {
9580 /^0/ {
9581 s/^0 *\(.*\)$/\1/
9582 p
9583 }
9584 }'
9585 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586 # Check for a 64-bit object if we didn't find anything.
9587 if test -z "$aix_libpath"; then
9588 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589 fi
98929590 fi
98939591 rm -f core conftest.err conftest.$ac_objext \
98949592 conftest$ac_exeext conftest.$ac_ext
9895 if test -z "$lt_cv_aix_libpath_"; then
9896 lt_cv_aix_libpath_="/usr/lib:/lib"
9897 fi
9898
9899 fi
9900
9901 aix_libpath=$lt_cv_aix_libpath_
9902 fi
9593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
99039594
99049595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9905 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"
9596 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"
99069597 else
99079598 if test "$host_cpu" = ia64; then
99089599 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
99119602 else
99129603 # Determine the default libpath from the value encoded in an
99139604 # empty executable.
9914 if test "${lt_cv_aix_libpath+set}" = set; then
9915 aix_libpath=$lt_cv_aix_libpath
9916 else
9917 if ${lt_cv_aix_libpath_+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99219606 /* end confdefs.h. */
99229607
99239608 int
99309615 _ACEOF
99319616 if ac_fn_c_try_link "$LINENO"; then :
99329617
9933 lt_aix_libpath_sed='
9934 /Import File Strings/,/^$/ {
9935 /^0/ {
9936 s/^0 *\([^ ]*\) *$/\1/
9937 p
9938 }
9939 }'
9940 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9941 # Check for a 64-bit object if we didn't find anything.
9942 if test -z "$lt_cv_aix_libpath_"; then
9943 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9944 fi
9618 lt_aix_libpath_sed='
9619 /Import File Strings/,/^$/ {
9620 /^0/ {
9621 s/^0 *\(.*\)$/\1/
9622 p
9623 }
9624 }'
9625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626 # Check for a 64-bit object if we didn't find anything.
9627 if test -z "$aix_libpath"; then
9628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9629 fi
99459630 fi
99469631 rm -f core conftest.err conftest.$ac_objext \
99479632 conftest$ac_exeext conftest.$ac_ext
9948 if test -z "$lt_cv_aix_libpath_"; then
9949 lt_cv_aix_libpath_="/usr/lib:/lib"
9950 fi
9951
9952 fi
9953
9954 aix_libpath=$lt_cv_aix_libpath_
9955 fi
9633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
99569634
99579635 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
99589636 # Warning - without using the other run time loading flags,
99599637 # -berok will link without error, but may produce a broken library.
99609638 no_undefined_flag=' ${wl}-bernotok'
99619639 allow_undefined_flag=' ${wl}-berok'
9962 if test "$with_gnu_ld" = yes; then
9963 # We only use this code for GNU lds that support --whole-archive.
9964 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9965 else
9966 # Exported symbols can be pulled into shared objects from archives
9967 whole_archive_flag_spec='$convenience'
9968 fi
9640 # Exported symbols can be pulled into shared objects from archives
9641 whole_archive_flag_spec='$convenience'
99699642 archive_cmds_need_lc=yes
99709643 # This is similar to how AIX traditionally builds its shared libraries.
99719644 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'
99979670 # Microsoft Visual C++.
99989671 # hardcode_libdir_flag_spec is actually meaningless, as there is
99999672 # no search path for DLLs.
10000 case $cc_basename in
10001 cl*)
10002 # Native MSVC
10003 hardcode_libdir_flag_spec=' '
10004 allow_undefined_flag=unsupported
10005 always_export_symbols=yes
10006 file_list_spec='@'
10007 # Tell ltmain to make .lib files, not .a files.
10008 libext=lib
10009 # Tell ltmain to make .dll files, not .so files.
10010 shrext_cmds=".dll"
10011 # FIXME: Setting linknames here is a bad hack.
10012 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10013 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10014 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10015 else
10016 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10017 fi~
10018 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10019 linknames='
10020 # The linker will not automatically build a static lib if we build a DLL.
10021 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10022 enable_shared_with_static_runtimes=yes
10023 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10025 # Don't use ranlib
10026 old_postinstall_cmds='chmod 644 $oldlib'
10027 postlink_cmds='lt_outputfile="@OUTPUT@"~
10028 lt_tool_outputfile="@TOOL_OUTPUT@"~
10029 case $lt_outputfile in
10030 *.exe|*.EXE) ;;
10031 *)
10032 lt_outputfile="$lt_outputfile.exe"
10033 lt_tool_outputfile="$lt_tool_outputfile.exe"
10034 ;;
10035 esac~
10036 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10037 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10038 $RM "$lt_outputfile.manifest";
10039 fi'
10040 ;;
10041 *)
10042 # Assume MSVC wrapper
10043 hardcode_libdir_flag_spec=' '
10044 allow_undefined_flag=unsupported
10045 # Tell ltmain to make .lib files, not .a files.
10046 libext=lib
10047 # Tell ltmain to make .dll files, not .so files.
10048 shrext_cmds=".dll"
10049 # FIXME: Setting linknames here is a bad hack.
10050 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10051 # The linker will automatically build a .lib file if we build a DLL.
10052 old_archive_from_new_cmds='true'
10053 # FIXME: Should let the user specify the lib program.
10054 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10055 enable_shared_with_static_runtimes=yes
10056 ;;
10057 esac
9673 hardcode_libdir_flag_spec=' '
9674 allow_undefined_flag=unsupported
9675 # Tell ltmain to make .lib files, not .a files.
9676 libext=lib
9677 # Tell ltmain to make .dll files, not .so files.
9678 shrext_cmds=".dll"
9679 # FIXME: Setting linknames here is a bad hack.
9680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9681 # The linker will automatically build a .lib file if we build a DLL.
9682 old_archive_from_new_cmds='true'
9683 # FIXME: Should let the user specify the lib program.
9684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9685 fix_srcfile_path='`cygpath -w "$srcfile"`'
9686 enable_shared_with_static_runtimes=yes
100589687 ;;
100599688
100609689 darwin* | rhapsody*)
100649693 hardcode_direct=no
100659694 hardcode_automatic=yes
100669695 hardcode_shlibpath_var=unsupported
10067 if test "$lt_cv_ld_force_load" = "yes"; then
10068 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\"`'
10069
10070 else
10071 whole_archive_flag_spec=''
10072 fi
9696 whole_archive_flag_spec=''
100739697 link_all_deplibs=yes
100749698 allow_undefined_flag="$_lt_dar_allow_undefined"
100759699 case $cc_basename in
100779701 *) _lt_dar_can_shared=$GCC ;;
100789702 esac
100799703 if test "$_lt_dar_can_shared" = "yes"; then
10080 output_verbose_link_cmd=func_echo_all
9704 output_verbose_link_cmd=echo
100819705 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
100829706 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
100839707 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}"
100939717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
100949718 hardcode_libdir_flag_spec='-L$libdir'
100959719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 freebsd1*)
9723 ld_shlibs=no
100969724 ;;
100979725
100989726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
101079735 ;;
101089736
101099737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10110 freebsd2.*)
9738 freebsd2*)
101119739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
101129740 hardcode_direct=yes
101139741 hardcode_minus_L=yes
101169744
101179745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
101189746 freebsd* | dragonfly*)
10119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
101209748 hardcode_libdir_flag_spec='-R$libdir'
101219749 hardcode_direct=yes
101229750 hardcode_shlibpath_var=no
101249752
101259753 hpux9*)
101269754 if test "$GCC" = yes; then
10127 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'
9755 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'
101289756 else
101299757 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'
101309758 fi
101399767 ;;
101409768
101419769 hpux10*)
10142 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10143 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9770 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
101449772 else
101459773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
101469774 fi
101479775 if test "$with_gnu_ld" = no; then
101489776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9777 hardcode_libdir_flag_spec_ld='+b $libdir'
101499778 hardcode_libdir_separator=:
101509779 hardcode_direct=yes
101519780 hardcode_direct_absolute=yes
101579786 ;;
101589787
101599788 hpux11*)
10160 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
101619790 case $host_cpu in
101629791 hppa*64*)
101639792 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
101649793 ;;
101659794 ia64*)
10166 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
101679796 ;;
101689797 *)
10169 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
101709799 ;;
101719800 esac
101729801 else
101789807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
101799808 ;;
101809809 *)
10181
10182 # Older versions of the 11.00 compiler do not understand -b yet
10183 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10185 $as_echo_n "checking if $CC understands -b... " >&6; }
10186 if ${lt_cv_prog_compiler__b+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 lt_cv_prog_compiler__b=no
10190 save_LDFLAGS="$LDFLAGS"
10191 LDFLAGS="$LDFLAGS -b"
10192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10194 # The linker can only warn and ignore the option if not recognized
10195 # So say no if there are warnings
10196 if test -s conftest.err; then
10197 # Append any errors to the config.log.
10198 cat conftest.err 1>&5
10199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10201 if diff conftest.exp conftest.er2 >/dev/null; then
10202 lt_cv_prog_compiler__b=yes
10203 fi
10204 else
10205 lt_cv_prog_compiler__b=yes
10206 fi
10207 fi
10208 $RM -r conftest*
10209 LDFLAGS="$save_LDFLAGS"
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10213 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10214
10215 if test x"$lt_cv_prog_compiler__b" = xyes; then
10216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10217 else
10218 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10219 fi
10220
9810 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
102219811 ;;
102229812 esac
102239813 fi
102459835
102469836 irix5* | irix6* | nonstopux*)
102479837 if test "$GCC" = yes; then
10248 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'
9838 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'
102499839 # Try to use the -exported_symbol ld option, if it does not
102509840 # work, assume that -exports_file does not work either and
102519841 # implicitly export all symbols.
10252 # This should be the same for all languages, so no per-tag cache variable.
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10254 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10255 if ${lt_cv_irix_exported_symbol+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 save_LDFLAGS="$LDFLAGS"
10259 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 save_LDFLAGS="$LDFLAGS"
9843 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102619845 /* end confdefs.h. */
10262 int foo (void) { return 0; }
9846 int foo(void) {}
102639847 _ACEOF
102649848 if ac_fn_c_try_link "$LINENO"; then :
10265 lt_cv_irix_exported_symbol=yes
10266 else
10267 lt_cv_irix_exported_symbol=no
9849 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'
9850
102689851 fi
102699852 rm -f core conftest.err conftest.$ac_objext \
102709853 conftest$ac_exeext conftest.$ac_ext
10271 LDFLAGS="$save_LDFLAGS"
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10274 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10275 if test "$lt_cv_irix_exported_symbol" = yes; then
10276 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'
10277 fi
9854 LDFLAGS="$save_LDFLAGS"
102789855 else
10279 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'
10280 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'
9856 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'
9857 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'
102819858 fi
102829859 archive_cmds_need_lc='no'
102839860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
103399916 hardcode_libdir_flag_spec='-L$libdir'
103409917 hardcode_minus_L=yes
103419918 allow_undefined_flag=unsupported
10342 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'
9919 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'
103439920 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
103449921 ;;
103459922
103469923 osf3*)
103479924 if test "$GCC" = yes; then
103489925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10349 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'
9926 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'
103509927 else
103519928 allow_undefined_flag=' -expect_unresolved \*'
10352 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'
9929 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'
103539930 fi
103549931 archive_cmds_need_lc='no'
103559932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
103599936 osf4* | osf5*) # as osf3* with the addition of -msym flag
103609937 if test "$GCC" = yes; then
103619938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10362 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'
9939 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'
103639940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
103649941 else
103659942 allow_undefined_flag=' -expect_unresolved \*'
10366 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'
9943 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'
103679944 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~
10368 $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'
9945 $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'
103699946
103709947 # Both c and cxx compiler support -rpath directly
103719948 hardcode_libdir_flag_spec='-rpath $libdir'
103789955 no_undefined_flag=' -z defs'
103799956 if test "$GCC" = yes; then
103809957 wlarc='${wl}'
10381 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
103829959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10383 $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'
9960 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
103849961 else
103859962 case `$CC -V 2>&1` in
103869963 *"Compilers 5.0"*)
1056810145 # to ld, don't add -lc before -lgcc.
1056910146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1057010147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10571 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 $RM conftest*
10575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10576
10577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10148 $RM conftest*
10149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10150
10151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1057810152 (eval $ac_compile) 2>&5
1057910153 ac_status=$?
1058010154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1058110155 test $ac_status = 0; } 2>conftest.err; then
10582 soname=conftest
10583 lib=conftest
10584 libobjs=conftest.$ac_objext
10585 deplibs=
10586 wl=$lt_prog_compiler_wl
10587 pic_flag=$lt_prog_compiler_pic
10588 compiler_flags=-v
10589 linker_flags=-v
10590 verstring=
10591 output_objdir=.
10592 libname=conftest
10593 lt_save_allow_undefined_flag=$allow_undefined_flag
10594 allow_undefined_flag=
10595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10156 soname=conftest
10157 lib=conftest
10158 libobjs=conftest.$ac_objext
10159 deplibs=
10160 wl=$lt_prog_compiler_wl
10161 pic_flag=$lt_prog_compiler_pic
10162 compiler_flags=-v
10163 linker_flags=-v
10164 verstring=
10165 output_objdir=.
10166 libname=conftest
10167 lt_save_allow_undefined_flag=$allow_undefined_flag
10168 allow_undefined_flag=
10169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1059610170 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1059710171 ac_status=$?
1059810172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1059910173 test $ac_status = 0; }
10600 then
10601 lt_cv_archive_cmds_need_lc=no
10602 else
10603 lt_cv_archive_cmds_need_lc=yes
10604 fi
10605 allow_undefined_flag=$lt_save_allow_undefined_flag
10606 else
10607 cat conftest.err 1>&5
10608 fi
10609 $RM conftest*
10610
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10613 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10614 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10174 then
10175 archive_cmds_need_lc=no
10176 else
10177 archive_cmds_need_lc=yes
10178 fi
10179 allow_undefined_flag=$lt_save_allow_undefined_flag
10180 else
10181 cat conftest.err 1>&5
10182 fi
10183 $RM conftest*
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10185 $as_echo "$archive_cmds_need_lc" >&6; }
1061510186 ;;
1061610187 esac
1061710188 fi
1076910340
1077010341
1077110342
10343
10344
10345
10346
10347
1077210348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1077310349 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1077410350
1077710353 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1077810354 *) lt_awk_arg="/^libraries:/" ;;
1077910355 esac
10780 case $host_os in
10781 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10782 *) lt_sed_strip_eq="s,=/,/,g" ;;
10783 esac
10784 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10785 case $lt_search_path_spec in
10786 *\;*)
10356 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10357 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1078710358 # if the path contains ";" then we assume it to be the separator
1078810359 # otherwise default to the standard path separator (i.e. ":") - it is
1078910360 # assumed that no part of a normal pathname contains ";" but that should
1079010361 # okay in the real world where ";" in dirpaths is itself problematic.
10791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10792 ;;
10793 *)
10794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10795 ;;
10796 esac
10362 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10363 else
10364 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10365 fi
1079710366 # Ok, now we have the path, separated by spaces, we can step through it
1079810367 # and add multilib dir if necessary.
1079910368 lt_tmp_lt_search_path_spec=
1080610375 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1080710376 fi
1080810377 done
10809 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10378 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1081010379 BEGIN {RS=" "; FS="/|\n";} {
1081110380 lt_foo="";
1081210381 lt_count=0;
1082610395 if (lt_foo != "") { lt_freq[lt_foo]++; }
1082710396 if (lt_freq[lt_foo] == 1) { print lt_foo; }
1082810397 }'`
10829 # AWK program above erroneously prepends '/' to C:/dos/paths
10830 # for these hosts.
10831 case $host_os in
10832 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10833 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10834 esac
10835 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10398 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1083610399 else
1083710400 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1083810401 fi
1085810421
1085910422 case $host_os in
1086010423 aix3*)
10861 version_type=linux # correct to gnu/linux during the next big refactor
10424 version_type=linux
1086210425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1086310426 shlibpath_var=LIBPATH
1086410427
1086710430 ;;
1086810431
1086910432 aix[4-9]*)
10870 version_type=linux # correct to gnu/linux during the next big refactor
10433 version_type=linux
1087110434 need_lib_prefix=no
1087210435 need_version=no
1087310436 hardcode_into_libs=yes
1092010483 m68k)
1092110484 library_names_spec='$libname.ixlibrary $libname.a'
1092210485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10923 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'
10486 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'
1092410487 ;;
1092510488 esac
1092610489 ;;
1093210495 ;;
1093310496
1093410497 bsdi[45]*)
10935 version_type=linux # correct to gnu/linux during the next big refactor
10498 version_type=linux
1093610499 need_version=no
1093710500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1093810501 soname_spec='${libname}${release}${shared_ext}$major'
1095110514 need_version=no
1095210515 need_lib_prefix=no
1095310516
10954 case $GCC,$cc_basename in
10955 yes,*)
10956 # gcc
10517 case $GCC,$host_os in
10518 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1095710519 library_names_spec='$libname.dll.a'
1095810520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1095910521 postinstall_cmds='base_file=`basename \${file}`~
1097410536 cygwin*)
1097510537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1097610538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10977
10978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10539 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1097910540 ;;
1098010541 mingw* | cegcc*)
1098110542 # MinGW DLLs use traditional 'lib' prefix
1098210543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10545 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10546 # It is most probably a Windows format PATH printed by
10547 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10548 # path with ; separators, and with drive letters. We can handle the
10549 # drive letters (cygwin fileutils understands them), so leave them,
10550 # especially as we might pass files found there to a mingw objdump,
10551 # which wouldn't understand a cygwinified path. Ahh.
10552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10553 else
10554 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10555 fi
1098310556 ;;
1098410557 pw32*)
1098510558 # pw32 DLLs use 'pw' prefix rather than 'lib'
1098610559 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1098710560 ;;
1098810561 esac
10989 dynamic_linker='Win32 ld.exe'
1099010562 ;;
1099110563
10992 *,cl*)
10993 # Native MSVC
10994 libname_spec='$name'
10995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10996 library_names_spec='${libname}.dll.lib'
10997
10998 case $build_os in
10999 mingw*)
11000 sys_lib_search_path_spec=
11001 lt_save_ifs=$IFS
11002 IFS=';'
11003 for lt_path in $LIB
11004 do
11005 IFS=$lt_save_ifs
11006 # Let DOS variable expansion print the short 8.3 style file name.
11007 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11008 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11009 done
11010 IFS=$lt_save_ifs
11011 # Convert to MSYS style.
11012 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11013 ;;
11014 cygwin*)
11015 # Convert to unix form, then to dos form, then back to unix form
11016 # but this time dos style (no spaces!) so that the unix form looks
11017 # like /cygdrive/c/PROGRA~1:/cygdr...
11018 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11019 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11020 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11021 ;;
11022 *)
11023 sys_lib_search_path_spec="$LIB"
11024 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11025 # It is most probably a Windows format PATH.
11026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11027 else
11028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11029 fi
11030 # FIXME: find the short name or the path components, as spaces are
11031 # common. (e.g. "Program Files" -> "PROGRA~1")
11032 ;;
11033 esac
11034
11035 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11036 postinstall_cmds='base_file=`basename \${file}`~
11037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11038 dldir=$destdir/`dirname \$dlpath`~
11039 test -d \$dldir || mkdir -p \$dldir~
11040 $install_prog $dir/$dlname \$dldir/$dlname'
11041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11042 dlpath=$dir/\$dldll~
11043 $RM \$dlpath'
11044 shlibpath_overrides_runpath=yes
11045 dynamic_linker='Win32 link.exe'
11046 ;;
11047
1104810564 *)
11049 # Assume MSVC wrapper
1105010565 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11051 dynamic_linker='Win32 ld.exe'
1105210566 ;;
1105310567 esac
10568 dynamic_linker='Win32 ld.exe'
1105410569 # FIXME: first we should search . and the directory the executable is in
1105510570 shlibpath_var=PATH
1105610571 ;;
1107110586 ;;
1107210587
1107310588 dgux*)
11074 version_type=linux # correct to gnu/linux during the next big refactor
10589 version_type=linux
1107510590 need_lib_prefix=no
1107610591 need_version=no
1107710592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1107810593 soname_spec='${libname}${release}${shared_ext}$major'
1107910594 shlibpath_var=LD_LIBRARY_PATH
10595 ;;
10596
10597 freebsd1*)
10598 dynamic_linker=no
1108010599 ;;
1108110600
1108210601 freebsd* | dragonfly*)
1108610605 objformat=`/usr/bin/objformat`
1108710606 else
1108810607 case $host_os in
11089 freebsd[23].*) objformat=aout ;;
10608 freebsd[123]*) objformat=aout ;;
1109010609 *) objformat=elf ;;
1109110610 esac
1109210611 fi
1110410623 esac
1110510624 shlibpath_var=LD_LIBRARY_PATH
1110610625 case $host_os in
11107 freebsd2.*)
10626 freebsd2*)
1110810627 shlibpath_overrides_runpath=yes
1110910628 ;;
1111010629 freebsd3.[01]* | freebsdelf3.[01]*)
1112310642 esac
1112410643 ;;
1112510644
11126 haiku*)
11127 version_type=linux # correct to gnu/linux during the next big refactor
10645 gnu*)
10646 version_type=linux
1112810647 need_lib_prefix=no
1112910648 need_version=no
11130 dynamic_linker="$host_os runtime_loader"
1113110649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1113210650 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11135 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10651 shlibpath_var=LD_LIBRARY_PATH
1113610652 hardcode_into_libs=yes
1113710653 ;;
1113810654
1117810694 soname_spec='${libname}${release}${shared_ext}$major'
1117910695 ;;
1118010696 esac
11181 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10697 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1118210698 postinstall_cmds='chmod 555 $lib'
11183 # or fails outright, so override atomically:
11184 install_override_mode=555
1118510699 ;;
1118610700
1118710701 interix[3-9]*)
11188 version_type=linux # correct to gnu/linux during the next big refactor
10702 version_type=linux
1118910703 need_lib_prefix=no
1119010704 need_version=no
1119110705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1120110715 nonstopux*) version_type=nonstopux ;;
1120210716 *)
1120310717 if test "$lt_cv_prog_gnu_ld" = yes; then
11204 version_type=linux # correct to gnu/linux during the next big refactor
10718 version_type=linux
1120510719 else
1120610720 version_type=irix
1120710721 fi ;;
1123810752 dynamic_linker=no
1123910753 ;;
1124010754
11241 # This must be glibc/ELF.
11242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11243 version_type=linux # correct to gnu/linux during the next big refactor
10755 # This must be Linux ELF.
10756 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10757 version_type=linux
1124410758 need_lib_prefix=no
1124510759 need_version=no
1124610760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1124810762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1124910763 shlibpath_var=LD_LIBRARY_PATH
1125010764 shlibpath_overrides_runpath=no
11251
1125210765 # Some binutils ld are patched to set DT_RUNPATH
11253 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 lt_cv_shlibpath_overrides_runpath=no
11257 save_LDFLAGS=$LDFLAGS
11258 save_libdir=$libdir
11259 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11260 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 save_LDFLAGS=$LDFLAGS
10767 save_libdir=$libdir
10768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1126210771 /* end confdefs.h. */
1126310772
1126410773 int
1127110780 _ACEOF
1127210781 if ac_fn_c_try_link "$LINENO"; then :
1127310782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11274 lt_cv_shlibpath_overrides_runpath=yes
10783 shlibpath_overrides_runpath=yes
1127510784 fi
1127610785 fi
1127710786 rm -f core conftest.err conftest.$ac_objext \
1127810787 conftest$ac_exeext conftest.$ac_ext
11279 LDFLAGS=$save_LDFLAGS
11280 libdir=$save_libdir
11281
11282 fi
11283
11284 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10788 LDFLAGS=$save_LDFLAGS
10789 libdir=$save_libdir
1128510790
1128610791 # This implies no fast_install, which is unacceptable.
1128710792 # Some rework will be needed to allow for fast_install
1129010795
1129110796 # Append ld.so.conf contents to the search path
1129210797 if test -f /etc/ld.so.conf; then
11293 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' ' '`
10798 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' ' '`
1129410799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1129510800 fi
1129610801
1133410839 ;;
1133510840
1133610841 newsos6)
11337 version_type=linux # correct to gnu/linux during the next big refactor
10842 version_type=linux
1133810843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1133910844 shlibpath_var=LD_LIBRARY_PATH
1134010845 shlibpath_overrides_runpath=yes
1140310908 ;;
1140410909
1140510910 solaris*)
11406 version_type=linux # correct to gnu/linux during the next big refactor
10911 version_type=linux
1140710912 need_lib_prefix=no
1140810913 need_version=no
1140910914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1142810933 ;;
1142910934
1143010935 sysv4 | sysv4.3*)
11431 version_type=linux # correct to gnu/linux during the next big refactor
10936 version_type=linux
1143210937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1143310938 soname_spec='${libname}${release}${shared_ext}$major'
1143410939 shlibpath_var=LD_LIBRARY_PATH
1145210957
1145310958 sysv4*MP*)
1145410959 if test -d /usr/nec ;then
11455 version_type=linux # correct to gnu/linux during the next big refactor
10960 version_type=linux
1145610961 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1145710962 soname_spec='$libname${shared_ext}.$major'
1145810963 shlibpath_var=LD_LIBRARY_PATH
1148310988
1148410989 tpf*)
1148510990 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11486 version_type=linux # correct to gnu/linux during the next big refactor
10991 version_type=linux
1148710992 need_lib_prefix=no
1148810993 need_version=no
1148910994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1149310998 ;;
1149410999
1149511000 uts4*)
11496 version_type=linux # correct to gnu/linux during the next big refactor
11001 version_type=linux
1149711002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1149811003 soname_spec='${libname}${release}${shared_ext}$major'
1149911004 shlibpath_var=LD_LIBRARY_PATH
1151811023 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1151911024 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1152011025 fi
11521
11522
11523
11524
11525
1152611026
1152711027
1152811028
1168211182 # if libdl is installed we need to link against it
1168311183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1168411184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11685 if ${ac_cv_lib_dl_dlopen+:} false; then :
11185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
1168611186 $as_echo_n "(cached) " >&6
1168711187 else
1168811188 ac_check_lib_save_LIBS=$LIBS
1171611216 fi
1171711217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1171811218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11719 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11219 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1172011220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1172111221 else
1172211222
1173011230
1173111231 *)
1173211232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11733 if test "x$ac_cv_func_shl_load" = xyes; then :
11233 if test "x$ac_cv_func_shl_load" = x""yes; then :
1173411234 lt_cv_dlopen="shl_load"
1173511235 else
1173611236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1173711237 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11738 if ${ac_cv_lib_dld_shl_load+:} false; then :
11238 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
1173911239 $as_echo_n "(cached) " >&6
1174011240 else
1174111241 ac_check_lib_save_LIBS=$LIBS
1176911269 fi
1177011270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1177111271 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11772 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11272 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
1177311273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1177411274 else
1177511275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11776 if test "x$ac_cv_func_dlopen" = xyes; then :
11276 if test "x$ac_cv_func_dlopen" = x""yes; then :
1177711277 lt_cv_dlopen="dlopen"
1177811278 else
1177911279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1178011280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11781 if ${ac_cv_lib_dl_dlopen+:} false; then :
11281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
1178211282 $as_echo_n "(cached) " >&6
1178311283 else
1178411284 ac_check_lib_save_LIBS=$LIBS
1181211312 fi
1181311313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1181411314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11815 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11315 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1181611316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1181711317 else
1181811318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1181911319 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11820 if ${ac_cv_lib_svld_dlopen+:} false; then :
11320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
1182111321 $as_echo_n "(cached) " >&6
1182211322 else
1182311323 ac_check_lib_save_LIBS=$LIBS
1185111351 fi
1185211352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1185311353 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11854 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11354 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1185511355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1185611356 else
1185711357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1185811358 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11859 if ${ac_cv_lib_dld_dld_link+:} false; then :
11359 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
1186011360 $as_echo_n "(cached) " >&6
1186111361 else
1186211362 ac_check_lib_save_LIBS=$LIBS
1189011390 fi
1189111391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1189211392 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11893 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11393 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
1189411394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1189511395 fi
1189611396
1193111431
1193211432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1193311433 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11934 if ${lt_cv_dlopen_self+:} false; then :
11434 if test "${lt_cv_dlopen_self+set}" = set; then :
1193511435 $as_echo_n "(cached) " >&6
1193611436 else
1193711437 if test "$cross_compiling" = yes; then :
1194011440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1194111441 lt_status=$lt_dlunknown
1194211442 cat > conftest.$ac_ext <<_LT_EOF
11943 #line $LINENO "configure"
11443 #line 11444 "configure"
1194411444 #include "confdefs.h"
1194511445
1194611446 #if HAVE_DLFCN_H
1198111481 # endif
1198211482 #endif
1198311483
11984 /* When -fvisbility=hidden is used, assume the code has been annotated
11985 correspondingly for the symbols needed. */
11986 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11987 int fnord () __attribute__((visibility("default")));
11988 #endif
11989
11990 int fnord () { return 42; }
11484 void fnord() { int i=42;}
1199111485 int main ()
1199211486 {
1199311487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1199611490 if (self)
1199711491 {
1199811492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11999 else
12000 {
12001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12002 else puts (dlerror ());
12003 }
11493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1200411494 /* dlclose (self); */
1200511495 }
1200611496 else
1203711527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1203811528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1203911529 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12040 if ${lt_cv_dlopen_self_static+:} false; then :
11530 if test "${lt_cv_dlopen_self_static+set}" = set; then :
1204111531 $as_echo_n "(cached) " >&6
1204211532 else
1204311533 if test "$cross_compiling" = yes; then :
1204611536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1204711537 lt_status=$lt_dlunknown
1204811538 cat > conftest.$ac_ext <<_LT_EOF
12049 #line $LINENO "configure"
11539 #line 11540 "configure"
1205011540 #include "confdefs.h"
1205111541
1205211542 #if HAVE_DLFCN_H
1208711577 # endif
1208811578 #endif
1208911579
12090 /* When -fvisbility=hidden is used, assume the code has been annotated
12091 correspondingly for the symbols needed. */
12092 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12093 int fnord () __attribute__((visibility("default")));
12094 #endif
12095
12096 int fnord () { return 42; }
11580 void fnord() { int i=42;}
1209711581 int main ()
1209811582 {
1209911583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1210211586 if (self)
1210311587 {
1210411588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12105 else
12106 {
12107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12108 else puts (dlerror ());
12109 }
11589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1211011590 /* dlclose (self); */
1211111591 }
1211211592 else
1226311743
1226411744 CC="$lt_save_CC"
1226511745
12266 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12267 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12268 (test "X$CXX" != "Xg++"))) ; then
12269 ac_ext=cpp
12270 ac_cpp='$CXXCPP $CPPFLAGS'
12271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12275 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12276 if test -z "$CXXCPP"; then
12277 if ${ac_cv_prog_CXXCPP+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 # Double quotes because CXXCPP needs to be expanded
12281 for CXXCPP in "$CXX -E" "/lib/cpp"
12282 do
12283 ac_preproc_ok=false
12284 for ac_cxx_preproc_warn_flag in '' yes
12285 do
12286 # Use a header file that comes with gcc, so configuring glibc
12287 # with a fresh cross-compiler works.
12288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12289 # <limits.h> exists even on freestanding compilers.
12290 # On the NeXT, cc -E runs the code through the compiler's parser,
12291 # not just through cpp. "Syntax error" is here to catch this case.
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294 #ifdef __STDC__
12295 # include <limits.h>
12296 #else
12297 # include <assert.h>
12298 #endif
12299 Syntax error
12300 _ACEOF
12301 if ac_fn_cxx_try_cpp "$LINENO"; then :
12302
12303 else
12304 # Broken: fails on valid input.
12305 continue
12306 fi
12307 rm -f conftest.err conftest.i conftest.$ac_ext
12308
12309 # OK, works on sane cases. Now check whether nonexistent headers
12310 # can be detected and how.
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313 #include <ac_nonexistent.h>
12314 _ACEOF
12315 if ac_fn_cxx_try_cpp "$LINENO"; then :
12316 # Broken: success on invalid input.
12317 continue
12318 else
12319 # Passes both tests.
12320 ac_preproc_ok=:
12321 break
12322 fi
12323 rm -f conftest.err conftest.i conftest.$ac_ext
12324
12325 done
12326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12327 rm -f conftest.i conftest.err conftest.$ac_ext
12328 if $ac_preproc_ok; then :
12329 break
12330 fi
12331
12332 done
12333 ac_cv_prog_CXXCPP=$CXXCPP
12334
12335 fi
12336 CXXCPP=$ac_cv_prog_CXXCPP
12337 else
12338 ac_cv_prog_CXXCPP=$CXXCPP
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12341 $as_echo "$CXXCPP" >&6; }
12342 ac_preproc_ok=false
12343 for ac_cxx_preproc_warn_flag in '' yes
12344 do
12345 # Use a header file that comes with gcc, so configuring glibc
12346 # with a fresh cross-compiler works.
12347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12348 # <limits.h> exists even on freestanding compilers.
12349 # On the NeXT, cc -E runs the code through the compiler's parser,
12350 # not just through cpp. "Syntax error" is here to catch this case.
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353 #ifdef __STDC__
12354 # include <limits.h>
12355 #else
12356 # include <assert.h>
12357 #endif
12358 Syntax error
12359 _ACEOF
12360 if ac_fn_cxx_try_cpp "$LINENO"; then :
12361
12362 else
12363 # Broken: fails on valid input.
12364 continue
12365 fi
12366 rm -f conftest.err conftest.i conftest.$ac_ext
12367
12368 # OK, works on sane cases. Now check whether nonexistent headers
12369 # can be detected and how.
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372 #include <ac_nonexistent.h>
12373 _ACEOF
12374 if ac_fn_cxx_try_cpp "$LINENO"; then :
12375 # Broken: success on invalid input.
12376 continue
12377 else
12378 # Passes both tests.
12379 ac_preproc_ok=:
12380 break
12381 fi
12382 rm -f conftest.err conftest.i conftest.$ac_ext
12383
12384 done
12385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12386 rm -f conftest.i conftest.err conftest.$ac_ext
12387 if $ac_preproc_ok; then :
12388
12389 else
12390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12392 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12393 See \`config.log' for more details" "$LINENO" 5; }
12394 fi
12395
12396 ac_ext=c
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401
12402 else
12403 _lt_caught_CXX_error=yes
12404 fi
1240511746
1240611747 ac_ext=cpp
1240711748 ac_cpp='$CXXCPP $CPPFLAGS'
1241811759 hardcode_direct_CXX=no
1241911760 hardcode_direct_absolute_CXX=no
1242011761 hardcode_libdir_flag_spec_CXX=
11762 hardcode_libdir_flag_spec_ld_CXX=
1242111763 hardcode_libdir_separator_CXX=
1242211764 hardcode_minus_L_CXX=no
1242311765 hardcode_shlibpath_var_CXX=unsupported
1242711769 module_expsym_cmds_CXX=
1242811770 link_all_deplibs_CXX=unknown
1242911771 old_archive_cmds_CXX=$old_archive_cmds
12430 reload_flag_CXX=$reload_flag
12431 reload_cmds_CXX=$reload_cmds
1243211772 no_undefined_flag_CXX=
1243311773 whole_archive_flag_spec_CXX=
1243411774 enable_shared_with_static_runtimes_CXX=no
1248411824
1248511825 # Allow CC to be a program name with arguments.
1248611826 lt_save_CC=$CC
12487 lt_save_CFLAGS=$CFLAGS
1248811827 lt_save_LD=$LD
1248911828 lt_save_GCC=$GCC
1249011829 GCC=$GXX
1250211841 fi
1250311842 test -z "${LDCXX+set}" || LD=$LDCXX
1250411843 CC=${CXX-"c++"}
12505 CFLAGS=$CXXFLAGS
1250611844 compiler=$CC
1250711845 compiler_CXX=$CC
1250811846 for cc_temp in $compiler""; do
1251311851 *) break;;
1251411852 esac
1251511853 done
12516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11854 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1251711855
1251811856
1251911857 if test -n "$compiler"; then
1257611914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
1257711915 $as_echo_n "checking for non-GNU ld... " >&6; }
1257811916 fi
12579 if ${lt_cv_path_LD+:} false; then :
11917 if test "${lt_cv_path_LD+set}" = set; then :
1258011918 $as_echo_n "(cached) " >&6
1258111919 else
1258211920 if test -z "$LD"; then
1261311951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1261411952 $as_echo "no" >&6; }
1261511953 fi
12616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11954 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
1261711955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
1261811956 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12619 if ${lt_cv_prog_gnu_ld+:} false; then :
11957 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
1262011958 $as_echo_n "(cached) " >&6
1262111959 else
1262211960 # I'd rather use --version here, but apparently some GNU lds only accept -v.
1264211980 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1264311981 # archiving commands below assume that GNU ld is being used.
1264411982 if test "$with_gnu_ld" = yes; then
12645 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 archive_expsym_cmds_CXX='$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'
11983 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11984 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1264711985
1264811986 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1264911987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1267512013 # Commands to make compiler produce verbose output that lists
1267612014 # what "hidden" libraries, object files and flags are used when
1267712015 # linking a shared library.
12678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
1267912017
1268012018 else
1268112019 GXX=no
1278512123 allow_undefined_flag_CXX='-berok'
1278612124 # Determine the default libpath from the value encoded in an empty
1278712125 # executable.
12788 if test "${lt_cv_aix_libpath+set}" = set; then
12789 aix_libpath=$lt_cv_aix_libpath
12790 else
12791 if ${lt_cv_aix_libpath__CXX+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1279512127 /* end confdefs.h. */
1279612128
1279712129 int
1280412136 _ACEOF
1280512137 if ac_fn_cxx_try_link "$LINENO"; then :
1280612138
12807 lt_aix_libpath_sed='
12808 /Import File Strings/,/^$/ {
12809 /^0/ {
12810 s/^0 *\([^ ]*\) *$/\1/
12811 p
12812 }
12813 }'
12814 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12815 # Check for a 64-bit object if we didn't find anything.
12816 if test -z "$lt_cv_aix_libpath__CXX"; then
12817 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12818 fi
12139 lt_aix_libpath_sed='
12140 /Import File Strings/,/^$/ {
12141 /^0/ {
12142 s/^0 *\(.*\)$/\1/
12143 p
12144 }
12145 }'
12146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12147 # Check for a 64-bit object if we didn't find anything.
12148 if test -z "$aix_libpath"; then
12149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12150 fi
1281912151 fi
1282012152 rm -f core conftest.err conftest.$ac_objext \
1282112153 conftest$ac_exeext conftest.$ac_ext
12822 if test -z "$lt_cv_aix_libpath__CXX"; then
12823 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12824 fi
12825
12826 fi
12827
12828 aix_libpath=$lt_cv_aix_libpath__CXX
12829 fi
12154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1283012155
1283112156 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1283212157
12833 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12158 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1283412159 else
1283512160 if test "$host_cpu" = ia64; then
1283612161 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
1283912164 else
1284012165 # Determine the default libpath from the value encoded in an
1284112166 # empty executable.
12842 if test "${lt_cv_aix_libpath+set}" = set; then
12843 aix_libpath=$lt_cv_aix_libpath
12844 else
12845 if ${lt_cv_aix_libpath__CXX+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1284912168 /* end confdefs.h. */
1285012169
1285112170 int
1285812177 _ACEOF
1285912178 if ac_fn_cxx_try_link "$LINENO"; then :
1286012179
12861 lt_aix_libpath_sed='
12862 /Import File Strings/,/^$/ {
12863 /^0/ {
12864 s/^0 *\([^ ]*\) *$/\1/
12865 p
12866 }
12867 }'
12868 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12869 # Check for a 64-bit object if we didn't find anything.
12870 if test -z "$lt_cv_aix_libpath__CXX"; then
12871 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12872 fi
12180 lt_aix_libpath_sed='
12181 /Import File Strings/,/^$/ {
12182 /^0/ {
12183 s/^0 *\(.*\)$/\1/
12184 p
12185 }
12186 }'
12187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12188 # Check for a 64-bit object if we didn't find anything.
12189 if test -z "$aix_libpath"; then
12190 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12191 fi
1287312192 fi
1287412193 rm -f core conftest.err conftest.$ac_objext \
1287512194 conftest$ac_exeext conftest.$ac_ext
12876 if test -z "$lt_cv_aix_libpath__CXX"; then
12877 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12878 fi
12879
12880 fi
12881
12882 aix_libpath=$lt_cv_aix_libpath__CXX
12883 fi
12195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1288412196
1288512197 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1288612198 # Warning - without using the other run time loading flags,
1288712199 # -berok will link without error, but may produce a broken library.
1288812200 no_undefined_flag_CXX=' ${wl}-bernotok'
1288912201 allow_undefined_flag_CXX=' ${wl}-berok'
12890 if test "$with_gnu_ld" = yes; then
12891 # We only use this code for GNU lds that support --whole-archive.
12892 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12893 else
12894 # Exported symbols can be pulled into shared objects from archives
12895 whole_archive_flag_spec_CXX='$convenience'
12896 fi
12202 # Exported symbols can be pulled into shared objects from archives
12203 whole_archive_flag_spec_CXX='$convenience'
1289712204 archive_cmds_need_lc_CXX=yes
1289812205 # This is similar to how AIX traditionally builds its shared
1289912206 # libraries.
1292312230 ;;
1292412231
1292512232 cygwin* | mingw* | pw32* | cegcc*)
12926 case $GXX,$cc_basename in
12927 ,cl* | no,cl*)
12928 # Native MSVC
12929 # hardcode_libdir_flag_spec is actually meaningless, as there is
12930 # no search path for DLLs.
12931 hardcode_libdir_flag_spec_CXX=' '
12932 allow_undefined_flag_CXX=unsupported
12933 always_export_symbols_CXX=yes
12934 file_list_spec_CXX='@'
12935 # Tell ltmain to make .lib files, not .a files.
12936 libext=lib
12937 # Tell ltmain to make .dll files, not .so files.
12938 shrext_cmds=".dll"
12939 # FIXME: Setting linknames here is a bad hack.
12940 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12941 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12942 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12943 else
12944 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12945 fi~
12946 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12947 linknames='
12948 # The linker will not automatically build a static lib if we build a DLL.
12949 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12950 enable_shared_with_static_runtimes_CXX=yes
12951 # Don't use ranlib
12952 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12953 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12954 lt_tool_outputfile="@TOOL_OUTPUT@"~
12955 case $lt_outputfile in
12956 *.exe|*.EXE) ;;
12957 *)
12958 lt_outputfile="$lt_outputfile.exe"
12959 lt_tool_outputfile="$lt_tool_outputfile.exe"
12960 ;;
12961 esac~
12962 func_to_tool_file "$lt_outputfile"~
12963 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12964 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12965 $RM "$lt_outputfile.manifest";
12966 fi'
12967 ;;
12968 *)
12969 # g++
12970 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12971 # as there is no search path for DLLs.
12972 hardcode_libdir_flag_spec_CXX='-L$libdir'
12973 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12974 allow_undefined_flag_CXX=unsupported
12975 always_export_symbols_CXX=no
12976 enable_shared_with_static_runtimes_CXX=yes
12977
12978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12979 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12980 # If the export-symbols file already is a .def file (1st line
12981 # is EXPORTS), use it as is; otherwise, prepend...
12982 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12983 cp $export_symbols $output_objdir/$soname.def;
12984 else
12985 echo EXPORTS > $output_objdir/$soname.def;
12986 cat $export_symbols >> $output_objdir/$soname.def;
12987 fi~
12988 $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'
12989 else
12990 ld_shlibs_CXX=no
12991 fi
12992 ;;
12993 esac
12994 ;;
12233 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12234 # as there is no search path for DLLs.
12235 hardcode_libdir_flag_spec_CXX='-L$libdir'
12236 allow_undefined_flag_CXX=unsupported
12237 always_export_symbols_CXX=no
12238 enable_shared_with_static_runtimes_CXX=yes
12239
12240 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12241 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12242 # If the export-symbols file already is a .def file (1st line
12243 # is EXPORTS), use it as is; otherwise, prepend...
12244 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12245 cp $export_symbols $output_objdir/$soname.def;
12246 else
12247 echo EXPORTS > $output_objdir/$soname.def;
12248 cat $export_symbols >> $output_objdir/$soname.def;
12249 fi~
12250 $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'
12251 else
12252 ld_shlibs_CXX=no
12253 fi
12254 ;;
1299512255 darwin* | rhapsody*)
1299612256
1299712257
1299912259 hardcode_direct_CXX=no
1300012260 hardcode_automatic_CXX=yes
1300112261 hardcode_shlibpath_var_CXX=unsupported
13002 if test "$lt_cv_ld_force_load" = "yes"; then
13003 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13004
13005 else
13006 whole_archive_flag_spec_CXX=''
13007 fi
12262 whole_archive_flag_spec_CXX=''
1300812263 link_all_deplibs_CXX=yes
1300912264 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
1301012265 case $cc_basename in
1301212267 *) _lt_dar_can_shared=$GCC ;;
1301312268 esac
1301412269 if test "$_lt_dar_can_shared" = "yes"; then
13015 output_verbose_link_cmd=func_echo_all
12270 output_verbose_link_cmd=echo
1301612271 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1301712272 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1301812273 archive_expsym_cmds_CXX="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}"
1304612301 esac
1304712302 ;;
1304812303
13049 freebsd2.*)
12304 freebsd[12]*)
1305012305 # C++ shared libraries reported to be fairly broken before
1305112306 # switch to ELF
1305212307 ld_shlibs_CXX=no
1306212317 ld_shlibs_CXX=yes
1306312318 ;;
1306412319
13065 haiku*)
13066 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067 link_all_deplibs_CXX=yes
12320 gnu*)
1306812321 ;;
1306912322
1307012323 hpux9*)
1309112344 # explicitly linking system object files so we need to strip them
1309212345 # from the output so that they don't get included in the library
1309312346 # dependencies.
13094 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"'
12347 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'
1309512348 ;;
1309612349 *)
1309712350 if test "$GXX" = yes; then
13098 archive_cmds_CXX='$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'
12351 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1309912352 else
1310012353 # FIXME: insert proper C++ library support
1310112354 ld_shlibs_CXX=no
1315612409 # explicitly linking system object files so we need to strip them
1315712410 # from the output so that they don't get included in the library
1315812411 # dependencies.
13159 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"'
12412 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'
1316012413 ;;
1316112414 *)
1316212415 if test "$GXX" = yes; then
1316612419 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1316712420 ;;
1316812421 ia64*)
13169 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12422 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1317012423 ;;
1317112424 *)
13172 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12425 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1317312426 ;;
1317412427 esac
1317512428 fi
1319912452 case $cc_basename in
1320012453 CC*)
1320112454 # SGI C++
13202 archive_cmds_CXX='$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'
12455 archive_cmds_CXX='$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'
1320312456
1320412457 # Archives containing C++ object files must be created using
1320512458 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1321012463 *)
1321112464 if test "$GXX" = yes; then
1321212465 if test "$with_gnu_ld" = no; then
13213 archive_cmds_CXX='$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'
12466 archive_cmds_CXX='$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'
1321412467 else
13215 archive_cmds_CXX='$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'
12468 archive_cmds_CXX='$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'
1321612469 fi
1321712470 fi
1321812471 link_all_deplibs_CXX=yes
1322312476 inherit_rpath_CXX=yes
1322412477 ;;
1322512478
13226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12479 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1322712480 case $cc_basename in
1322812481 KCC*)
1322912482 # Kuck and Associates, Inc. (KAI) C++ Compiler
1324112494 # explicitly linking system object files so we need to strip them
1324212495 # from the output so that they don't get included in the library
1324312496 # dependencies.
13244 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"'
12497 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'
1324512498
1324612499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1324712500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1327812531 pgCC* | pgcpp*)
1327912532 # Portland Group C++ compiler
1328012533 case `$CC -V` in
13281 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12534 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
1328212535 prelink_cmds_CXX='tpldir=Template.dir~
1328312536 rm -rf $tpldir~
1328412537 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13285 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12538 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
1328612539 old_archive_cmds_CXX='tpldir=Template.dir~
1328712540 rm -rf $tpldir~
1328812541 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13289 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12542 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
1329012543 $RANLIB $oldlib'
1329112544 archive_cmds_CXX='tpldir=Template.dir~
1329212545 rm -rf $tpldir~
1329312546 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13294 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12547 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1329512548 archive_expsym_cmds_CXX='tpldir=Template.dir~
1329612549 rm -rf $tpldir~
1329712550 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13298 $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'
12551 $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'
1329912552 ;;
13300 *) # Version 6 and above use weak symbols
12553 *) # Version 6 will use weak symbols
1330112554 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1330212555 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1330312556 ;;
1330512558
1330612559 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
1330712560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13308 whole_archive_flag_spec_CXX='${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'
12561 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
1330912562 ;;
1331012563 cxx*)
1331112564 # Compaq C++
1332412577 # explicitly linking system object files so we need to strip them
1332512578 # from the output so that they don't get included in the library
1332612579 # dependencies.
13327 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'
12580 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'
1332812581 ;;
13329 xl* | mpixl* | bgxl*)
12582 xl*)
1333012583 # IBM XL 8.0 on PPC, with GNU ld
1333112584 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1333212585 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1334612599 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1334712600 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
1334812601 hardcode_libdir_flag_spec_CXX='-R$libdir'
13349 whole_archive_flag_spec_CXX='${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'
12602 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
1335012603 compiler_needs_object_CXX=yes
1335112604
1335212605 # Not sure whether something based on
1335312606 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
1335412607 # would be better.
13355 output_verbose_link_cmd='func_echo_all'
12608 output_verbose_link_cmd='echo'
1335612609
1335712610 # Archives containing C++ object files must be created using
1335812611 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1342112674 export_dynamic_flag_spec_CXX='${wl}-E'
1342212675 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1342312676 fi
13424 output_verbose_link_cmd=func_echo_all
12677 output_verbose_link_cmd=echo
1342512678 else
1342612679 ld_shlibs_CXX=no
1342712680 fi
1345612709 case $host in
1345712710 osf3*)
1345812711 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13459 archive_cmds_CXX='$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'
12712 archive_cmds_CXX='$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'
1346012713 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1346112714 ;;
1346212715 *)
1346312716 allow_undefined_flag_CXX=' -expect_unresolved \*'
13464 archive_cmds_CXX='$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'
12717 archive_cmds_CXX='$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'
1346512718 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1346612719 echo "-hidden">> $lib.exp~
13467 $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~
12720 $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~
1346812721 $RM $lib.exp'
1346912722 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1347012723 ;;
1348012733 # explicitly linking system object files so we need to strip them
1348112734 # from the output so that they don't get included in the library
1348212735 # dependencies.
13483 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"'
12736 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'
1348412737 ;;
1348512738 *)
1348612739 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1348712740 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1348812741 case $host in
1348912742 osf3*)
13490 archive_cmds_CXX='$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'
12743 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1349112744 ;;
1349212745 *)
13493 archive_cmds_CXX='$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'
12746 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1349412747 ;;
1349512748 esac
1349612749
1350012753 # Commands to make compiler produce verbose output that lists
1350112754 # what "hidden" libraries, object files and flags are used when
1350212755 # linking a shared library.
13503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12756 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
1350412757
1350512758 else
1350612759 # FIXME: insert proper C++ library support
1353612789
1353712790 solaris*)
1353812791 case $cc_basename in
13539 CC* | sunCC*)
12792 CC*)
1354012793 # Sun C++ 4.2, 5.x and Centerline C++
1354112794 archive_cmds_need_lc_CXX=yes
1354212795 no_undefined_flag_CXX=' -zdefs'
1355712810 esac
1355812811 link_all_deplibs_CXX=yes
1355912812
13560 output_verbose_link_cmd='func_echo_all'
12813 output_verbose_link_cmd='echo'
1356112814
1356212815 # Archives containing C++ object files must be created using
1356312816 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1357712830 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1357812831 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
1357912832 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13580 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12833 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1358112834 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13582 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12835 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1358312836
1358412837 # Commands to make compiler produce verbose output that lists
1358512838 # what "hidden" libraries, object files and flags are used when
1358612839 # linking a shared library.
13587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
1358812841 else
1358912842 # g++ 2.7 appears to require `-G' NOT `-shared' on this
1359012843 # platform.
1359512848 # Commands to make compiler produce verbose output that lists
1359612849 # what "hidden" libraries, object files and flags are used when
1359712850 # linking a shared library.
13598 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12851 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
1359912852 fi
1360012853
1360112854 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1364912902 CC*)
1365012903 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1365112904 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13653 '"$old_archive_cmds_CXX"
13654 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13655 '"$reload_cmds_CXX"
1365612905 ;;
1365712906 *)
1365812907 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1371412963 };
1371512964 _LT_EOF
1371612965
13717
13718 _lt_libdeps_save_CFLAGS=$CFLAGS
13719 case "$CC $CFLAGS " in #(
13720 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13721 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13722 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13723 esac
13724
1372512966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1372612967 (eval $ac_compile) 2>&5
1372712968 ac_status=$?
1373512976 pre_test_object_deps_done=no
1373612977
1373712978 for p in `eval "$output_verbose_link_cmd"`; do
13738 case ${prev}${p} in
12979 case $p in
1373912980
1374012981 -L* | -R* | -l*)
1374112982 # Some compilers place space between "-{L,R}" and the path.
1374412985 test $p = "-R"; then
1374512986 prev=$p
1374612987 continue
12988 else
12989 prev=
1374712990 fi
1374812991
13749 # Expand the sysroot to ease extracting the directories later.
13750 if test -z "$prev"; then
13751 case $p in
13752 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13753 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13754 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13755 esac
13756 fi
13757 case $p in
13758 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13759 esac
1376012992 if test "$pre_test_object_deps_done" = no; then
13761 case ${prev} in
13762 -L | -R)
12993 case $p in
12994 -L* | -R*)
1376312995 # Internal compiler library paths should come after those
1376412996 # provided the user. The postdeps already come after the
1376512997 # user supplied libs so there is no need to process them.
1377913011 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
1378013012 fi
1378113013 fi
13782 prev=
1378313014 ;;
1378413015
13785 *.lto.$objext) ;; # Ignore GCC LTO objects
1378613016 *.$objext)
1378713017 # This assumes that the test object file only shows up
1378813018 # once in the compiler output.
1381813048 fi
1381913049
1382013050 $RM -f confest.$objext
13821 CFLAGS=$_lt_libdeps_save_CFLAGS
1382213051
1382313052 # PORTME: override above test on systems where it is broken
1382413053 case $host_os in
1385413083
1385513084 solaris*)
1385613085 case $cc_basename in
13857 CC* | sunCC*)
13086 CC*)
1385813087 # The more standards-conforming stlport4 library is
1385913088 # incompatible with the Cstd library. Avoid specifying
1386013089 # it if it's in CXXFLAGS. Ignore libCrun as
1391913148 lt_prog_compiler_pic_CXX=
1392013149 lt_prog_compiler_static_CXX=
1392113150
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13152 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1392213153
1392313154 # C++ specific cases for pic, static, wl, etc.
1392413155 if test "$GXX" = yes; then
1396713198 *djgpp*)
1396813199 # DJGPP does not support shared libraries at all
1396913200 lt_prog_compiler_pic_CXX=
13970 ;;
13971 haiku*)
13972 # PIC is the default for Haiku.
13973 # The "-static" flag exists, but is broken.
13974 lt_prog_compiler_static_CXX=
1397513201 ;;
1397613202 interix[3-9]*)
1397713203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1402113247 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
1402213248 ;;
1402313249 esac
14024 ;;
14025 mingw* | cygwin* | os2* | pw32* | cegcc*)
14026 # This hack is so that the source file can tell whether it is being
14027 # built for inclusion in a dll (and should export symbols for example).
14028 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1402913250 ;;
1403013251 dgux*)
1403113252 case $cc_basename in
1408313304 ;;
1408413305 esac
1408513306 ;;
14086 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13307 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1408713308 case $cc_basename in
1408813309 KCC*)
1408913310 # KAI C++ Compiler
1411613337 lt_prog_compiler_pic_CXX=
1411713338 lt_prog_compiler_static_CXX='-non_shared'
1411813339 ;;
14119 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14120 # IBM XL 8.0, 9.0 on PPC and BlueGene
13340 xlc* | xlC*)
13341 # IBM XL 8.0 on PPC
1412113342 lt_prog_compiler_wl_CXX='-Wl,'
1412213343 lt_prog_compiler_pic_CXX='-qpic'
1412313344 lt_prog_compiler_static_CXX='-qstaticlink'
1417913400 ;;
1418013401 solaris*)
1418113402 case $cc_basename in
14182 CC* | sunCC*)
13403 CC*)
1418313404 # Sun C++ 4.2, 5.x and Centerline C++
1418413405 lt_prog_compiler_pic_CXX='-KPIC'
1418513406 lt_prog_compiler_static_CXX='-Bstatic'
1424413465 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1424513466 ;;
1424613467 esac
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14249 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14250 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14254 fi
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14256 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14257 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13469 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13470
13471
1425813472
1425913473 #
1426013474 # Check to make sure the PIC flag actually works.
1426213476 if test -n "$lt_prog_compiler_pic_CXX"; then
1426313477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
1426413478 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14265 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13479 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
1426613480 $as_echo_n "(cached) " >&6
1426713481 else
1426813482 lt_cv_prog_compiler_pic_works_CXX=no
1427813492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1427913493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1428013494 -e 's:$: $lt_compiler_flag:'`
14281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13495 (eval echo "\"\$as_me:13496: $lt_compile\"" >&5)
1428213496 (eval "$lt_compile" 2>conftest.err)
1428313497 ac_status=$?
1428413498 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 echo "$as_me:13500: \$? = $ac_status" >&5
1428613500 if (exit $ac_status) && test -s "$ac_outfile"; then
1428713501 # The compiler can only warn and ignore the option if not recognized
1428813502 # So say no if there are warnings other than the usual output.
14289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13503 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1429013504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1429113505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1429213506 lt_cv_prog_compiler_pic_works_CXX=yes
1431213526
1431313527
1431413528
14315
14316
1431713529 #
1431813530 # Check to make sure the static flag actually works.
1431913531 #
1432013532 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1432113533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1432213534 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14323 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13535 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
1432413536 $as_echo_n "(cached) " >&6
1432513537 else
1432613538 lt_cv_prog_compiler_static_works_CXX=no
1433313545 if test -s conftest.err; then
1433413546 # Append any errors to the config.log.
1433513547 cat conftest.err 1>&5
14336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13548 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1433713549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1433813550 if diff conftest.exp conftest.er2 >/dev/null; then
1433913551 lt_cv_prog_compiler_static_works_CXX=yes
1436013572
1436113573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1436213574 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14363 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13575 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
1436413576 $as_echo_n "(cached) " >&6
1436513577 else
1436613578 lt_cv_prog_compiler_c_o_CXX=no
1437913591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1438013592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1438113593 -e 's:$: $lt_compiler_flag:'`
14382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13594 (eval echo "\"\$as_me:13595: $lt_compile\"" >&5)
1438313595 (eval "$lt_compile" 2>out/conftest.err)
1438413596 ac_status=$?
1438513597 cat out/conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 echo "$as_me:13599: \$? = $ac_status" >&5
1438713599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1438813600 then
1438913601 # The compiler can only warn and ignore the option if not recognized
1439013602 # So say no if there are warnings
14391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13603 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1439213604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1439313605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1439413606 lt_cv_prog_compiler_c_o_CXX=yes
1441213624
1441313625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1441413626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14415 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13627 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
1441613628 $as_echo_n "(cached) " >&6
1441713629 else
1441813630 lt_cv_prog_compiler_c_o_CXX=no
1443113643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1443213644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1443313645 -e 's:$: $lt_compiler_flag:'`
14434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13646 (eval echo "\"\$as_me:13647: $lt_compile\"" >&5)
1443513647 (eval "$lt_compile" 2>out/conftest.err)
1443613648 ac_status=$?
1443713649 cat out/conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 echo "$as_me:13651: \$? = $ac_status" >&5
1443913651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1444013652 then
1444113653 # The compiler can only warn and ignore the option if not recognized
1444213654 # So say no if there are warnings
14443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13655 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1444413656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1444513657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1444613658 lt_cv_prog_compiler_c_o_CXX=yes
1449113703 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1449213704
1449313705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14494 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1449513706 case $host_os in
1449613707 aix[4-9]*)
1449713708 # If we're using GNU nm, then we don't want the "-C" option.
1449813709 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14499 # Also, AIX nm treats weak defined symbols like other global defined
14500 # symbols, whereas GNU nm marks them as "W".
1450113710 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14502 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13711 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1450313712 else
1450413713 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1450513714 fi
1450613715 ;;
1450713716 pw32*)
1450813717 export_symbols_cmds_CXX="$ltdll_cmds"
14509 ;;
13718 ;;
1451013719 cygwin* | mingw* | cegcc*)
14511 case $cc_basename in
14512 cl*)
14513 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14514 ;;
14515 *)
14516 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14517 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14518 ;;
14519 esac
14520 ;;
14521 linux* | k*bsd*-gnu | gnu*)
13720 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13721 ;;
13722 linux* | k*bsd*-gnu)
1452213723 link_all_deplibs_CXX=no
14523 ;;
13724 ;;
1452413725 *)
1452513726 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14526 ;;
13727 ;;
1452713728 esac
13729 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1452813730
1452913731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1453013732 $as_echo "$ld_shlibs_CXX" >&6; }
1455613758 # to ld, don't add -lc before -lgcc.
1455713759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1455813760 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14559 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 $RM conftest*
14563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14564
14565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13761 $RM conftest*
13762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13763
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1456613765 (eval $ac_compile) 2>&5
1456713766 ac_status=$?
1456813767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1456913768 test $ac_status = 0; } 2>conftest.err; then
14570 soname=conftest
14571 lib=conftest
14572 libobjs=conftest.$ac_objext
14573 deplibs=
14574 wl=$lt_prog_compiler_wl_CXX
14575 pic_flag=$lt_prog_compiler_pic_CXX
14576 compiler_flags=-v
14577 linker_flags=-v
14578 verstring=
14579 output_objdir=.
14580 libname=conftest
14581 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14582 allow_undefined_flag_CXX=
14583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13769 soname=conftest
13770 lib=conftest
13771 libobjs=conftest.$ac_objext
13772 deplibs=
13773 wl=$lt_prog_compiler_wl_CXX
13774 pic_flag=$lt_prog_compiler_pic_CXX
13775 compiler_flags=-v
13776 linker_flags=-v
13777 verstring=
13778 output_objdir=.
13779 libname=conftest
13780 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13781 allow_undefined_flag_CXX=
13782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1458413783 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1458513784 ac_status=$?
1458613785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1458713786 test $ac_status = 0; }
14588 then
14589 lt_cv_archive_cmds_need_lc_CXX=no
14590 else
14591 lt_cv_archive_cmds_need_lc_CXX=yes
14592 fi
14593 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14594 else
14595 cat conftest.err 1>&5
14596 fi
14597 $RM conftest*
14598
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14601 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14602 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13787 then
13788 archive_cmds_need_lc_CXX=no
13789 else
13790 archive_cmds_need_lc_CXX=yes
13791 fi
13792 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13793 else
13794 cat conftest.err 1>&5
13795 fi
13796 $RM conftest*
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13798 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
1460313799 ;;
1460413800 esac
1460513801 fi
1460613802 ;;
1460713803 esac
13804
13805
1460813806
1460913807
1461013808
1469213890
1469313891 case $host_os in
1469413892 aix3*)
14695 version_type=linux # correct to gnu/linux during the next big refactor
13893 version_type=linux
1469613894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1469713895 shlibpath_var=LIBPATH
1469813896
1470113899 ;;
1470213900
1470313901 aix[4-9]*)
14704 version_type=linux # correct to gnu/linux during the next big refactor
13902 version_type=linux
1470513903 need_lib_prefix=no
1470613904 need_version=no
1470713905 hardcode_into_libs=yes
1475413952 m68k)
1475513953 library_names_spec='$libname.ixlibrary $libname.a'
1475613954 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14757 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'
13955 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'
1475813956 ;;
1475913957 esac
1476013958 ;;
1476613964 ;;
1476713965
1476813966 bsdi[45]*)
14769 version_type=linux # correct to gnu/linux during the next big refactor
13967 version_type=linux
1477013968 need_version=no
1477113969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1477213970 soname_spec='${libname}${release}${shared_ext}$major'
1478513983 need_version=no
1478613984 need_lib_prefix=no
1478713985
14788 case $GCC,$cc_basename in
14789 yes,*)
14790 # gcc
13986 case $GCC,$host_os in
13987 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1479113988 library_names_spec='$libname.dll.a'
1479213989 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1479313990 postinstall_cmds='base_file=`basename \${file}`~
1480814005 cygwin*)
1480914006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1481014007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14811
14008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1481214009 ;;
1481314010 mingw* | cegcc*)
1481414011 # MinGW DLLs use traditional 'lib' prefix
1481514012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14013 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14014 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14015 # It is most probably a Windows format PATH printed by
14016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14017 # path with ; separators, and with drive letters. We can handle the
14018 # drive letters (cygwin fileutils understands them), so leave them,
14019 # especially as we might pass files found there to a mingw objdump,
14020 # which wouldn't understand a cygwinified path. Ahh.
14021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14022 else
14023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14024 fi
1481614025 ;;
1481714026 pw32*)
1481814027 # pw32 DLLs use 'pw' prefix rather than 'lib'
1481914028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1482014029 ;;
1482114030 esac
14822 dynamic_linker='Win32 ld.exe'
1482314031 ;;
1482414032
14825 *,cl*)
14826 # Native MSVC
14827 libname_spec='$name'
14828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14829 library_names_spec='${libname}.dll.lib'
14830
14831 case $build_os in
14832 mingw*)
14833 sys_lib_search_path_spec=
14834 lt_save_ifs=$IFS
14835 IFS=';'
14836 for lt_path in $LIB
14837 do
14838 IFS=$lt_save_ifs
14839 # Let DOS variable expansion print the short 8.3 style file name.
14840 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14841 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14842 done
14843 IFS=$lt_save_ifs
14844 # Convert to MSYS style.
14845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14846 ;;
14847 cygwin*)
14848 # Convert to unix form, then to dos form, then back to unix form
14849 # but this time dos style (no spaces!) so that the unix form looks
14850 # like /cygdrive/c/PROGRA~1:/cygdr...
14851 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14852 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14853 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14854 ;;
14855 *)
14856 sys_lib_search_path_spec="$LIB"
14857 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14858 # It is most probably a Windows format PATH.
14859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14860 else
14861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14862 fi
14863 # FIXME: find the short name or the path components, as spaces are
14864 # common. (e.g. "Program Files" -> "PROGRA~1")
14865 ;;
14866 esac
14867
14868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14869 postinstall_cmds='base_file=`basename \${file}`~
14870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14871 dldir=$destdir/`dirname \$dlpath`~
14872 test -d \$dldir || mkdir -p \$dldir~
14873 $install_prog $dir/$dlname \$dldir/$dlname'
14874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14875 dlpath=$dir/\$dldll~
14876 $RM \$dlpath'
14877 shlibpath_overrides_runpath=yes
14878 dynamic_linker='Win32 link.exe'
14879 ;;
14880
1488114033 *)
14882 # Assume MSVC wrapper
1488314034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14884 dynamic_linker='Win32 ld.exe'
1488514035 ;;
1488614036 esac
14037 dynamic_linker='Win32 ld.exe'
1488714038 # FIXME: first we should search . and the directory the executable is in
1488814039 shlibpath_var=PATH
1488914040 ;;
1490314054 ;;
1490414055
1490514056 dgux*)
14906 version_type=linux # correct to gnu/linux during the next big refactor
14057 version_type=linux
1490714058 need_lib_prefix=no
1490814059 need_version=no
1490914060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1491014061 soname_spec='${libname}${release}${shared_ext}$major'
1491114062 shlibpath_var=LD_LIBRARY_PATH
14063 ;;
14064
14065 freebsd1*)
14066 dynamic_linker=no
1491214067 ;;
1491314068
1491414069 freebsd* | dragonfly*)
1491814073 objformat=`/usr/bin/objformat`
1491914074 else
1492014075 case $host_os in
14921 freebsd[23].*) objformat=aout ;;
14076 freebsd[123]*) objformat=aout ;;
1492214077 *) objformat=elf ;;
1492314078 esac
1492414079 fi
1493614091 esac
1493714092 shlibpath_var=LD_LIBRARY_PATH
1493814093 case $host_os in
14939 freebsd2.*)
14094 freebsd2*)
1494014095 shlibpath_overrides_runpath=yes
1494114096 ;;
1494214097 freebsd3.[01]* | freebsdelf3.[01]*)
1495514110 esac
1495614111 ;;
1495714112
14958 haiku*)
14959 version_type=linux # correct to gnu/linux during the next big refactor
14113 gnu*)
14114 version_type=linux
1496014115 need_lib_prefix=no
1496114116 need_version=no
14962 dynamic_linker="$host_os runtime_loader"
1496314117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1496414118 soname_spec='${libname}${release}${shared_ext}$major'
14965 shlibpath_var=LIBRARY_PATH
14966 shlibpath_overrides_runpath=yes
14967 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14119 shlibpath_var=LD_LIBRARY_PATH
1496814120 hardcode_into_libs=yes
1496914121 ;;
1497014122
1501014162 soname_spec='${libname}${release}${shared_ext}$major'
1501114163 ;;
1501214164 esac
15013 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14165 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1501414166 postinstall_cmds='chmod 555 $lib'
15015 # or fails outright, so override atomically:
15016 install_override_mode=555
1501714167 ;;
1501814168
1501914169 interix[3-9]*)
15020 version_type=linux # correct to gnu/linux during the next big refactor
14170 version_type=linux
1502114171 need_lib_prefix=no
1502214172 need_version=no
1502314173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1503314183 nonstopux*) version_type=nonstopux ;;
1503414184 *)
1503514185 if test "$lt_cv_prog_gnu_ld" = yes; then
15036 version_type=linux # correct to gnu/linux during the next big refactor
14186 version_type=linux
1503714187 else
1503814188 version_type=irix
1503914189 fi ;;
1507014220 dynamic_linker=no
1507114221 ;;
1507214222
15073 # This must be glibc/ELF.
15074 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15075 version_type=linux # correct to gnu/linux during the next big refactor
14223 # This must be Linux ELF.
14224 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14225 version_type=linux
1507614226 need_lib_prefix=no
1507714227 need_version=no
1507814228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1508014230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1508114231 shlibpath_var=LD_LIBRARY_PATH
1508214232 shlibpath_overrides_runpath=no
15083
1508414233 # Some binutils ld are patched to set DT_RUNPATH
15085 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 lt_cv_shlibpath_overrides_runpath=no
15089 save_LDFLAGS=$LDFLAGS
15090 save_libdir=$libdir
15091 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15092 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 save_LDFLAGS=$LDFLAGS
14235 save_libdir=$libdir
14236 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14237 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1509414239 /* end confdefs.h. */
1509514240
1509614241 int
1510314248 _ACEOF
1510414249 if ac_fn_cxx_try_link "$LINENO"; then :
1510514250 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15106 lt_cv_shlibpath_overrides_runpath=yes
14251 shlibpath_overrides_runpath=yes
1510714252 fi
1510814253 fi
1510914254 rm -f core conftest.err conftest.$ac_objext \
1511014255 conftest$ac_exeext conftest.$ac_ext
15111 LDFLAGS=$save_LDFLAGS
15112 libdir=$save_libdir
15113
15114 fi
15115
15116 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14256 LDFLAGS=$save_LDFLAGS
14257 libdir=$save_libdir
1511714258
1511814259 # This implies no fast_install, which is unacceptable.
1511914260 # Some rework will be needed to allow for fast_install
1512214263
1512314264 # Append ld.so.conf contents to the search path
1512414265 if test -f /etc/ld.so.conf; then
15125 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' ' '`
14266 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' ' '`
1512614267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1512714268 fi
1512814269
1516614307 ;;
1516714308
1516814309 newsos6)
15169 version_type=linux # correct to gnu/linux during the next big refactor
14310 version_type=linux
1517014311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1517114312 shlibpath_var=LD_LIBRARY_PATH
1517214313 shlibpath_overrides_runpath=yes
1523514376 ;;
1523614377
1523714378 solaris*)
15238 version_type=linux # correct to gnu/linux during the next big refactor
14379 version_type=linux
1523914380 need_lib_prefix=no
1524014381 need_version=no
1524114382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1526014401 ;;
1526114402
1526214403 sysv4 | sysv4.3*)
15263 version_type=linux # correct to gnu/linux during the next big refactor
14404 version_type=linux
1526414405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1526514406 soname_spec='${libname}${release}${shared_ext}$major'
1526614407 shlibpath_var=LD_LIBRARY_PATH
1528414425
1528514426 sysv4*MP*)
1528614427 if test -d /usr/nec ;then
15287 version_type=linux # correct to gnu/linux during the next big refactor
14428 version_type=linux
1528814429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1528914430 soname_spec='$libname${shared_ext}.$major'
1529014431 shlibpath_var=LD_LIBRARY_PATH
1531514456
1531614457 tpf*)
1531714458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15318 version_type=linux # correct to gnu/linux during the next big refactor
14459 version_type=linux
1531914460 need_lib_prefix=no
1532014461 need_version=no
1532114462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1532514466 ;;
1532614467
1532714468 uts4*)
15328 version_type=linux # correct to gnu/linux during the next big refactor
14469 version_type=linux
1532914470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1533014471 soname_spec='${libname}${release}${shared_ext}$major'
1533114472 shlibpath_var=LD_LIBRARY_PATH
1535014491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1535114492 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1535214493 fi
15353
15354
1535514494
1535614495
1535714496
1543514574 fi # test -n "$compiler"
1543614575
1543714576 CC=$lt_save_CC
15438 CFLAGS=$lt_save_CFLAGS
1543914577 LDCXX=$LD
1544014578 LD=$lt_save_LD
1544114579 GCC=$lt_save_GCC
1546414602
1546514603
1546614604
15467
15468
1546914605 ac_config_commands="$ac_config_commands libtool"
1547014606
1547114607
1548914625 for ac_header in string.h
1549014626 do :
1549114627 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15492 if test "x$ac_cv_header_string_h" = xyes; then :
14628 if test "x$ac_cv_header_string_h" = x""yes; then :
1549314629 cat >>confdefs.h <<_ACEOF
1549414630 #define HAVE_STRING_H 1
1549514631 _ACEOF
1549614632 HAVE_STRING_H=1
1549714633 else
15498 as_fn_error $? "cannot find string.h, bailing out" "$LINENO" 5
14634 as_fn_error "cannot find string.h, bailing out" "$LINENO" 5
1549914635 fi
1550014636
1550114637 done
1550314639 for ac_header in stdio.h
1550414640 do :
1550514641 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15506 if test "x$ac_cv_header_stdio_h" = xyes; then :
14642 if test "x$ac_cv_header_stdio_h" = x""yes; then :
1550714643 cat >>confdefs.h <<_ACEOF
1550814644 #define HAVE_STDIO_H 1
1550914645 _ACEOF
1551014646
1551114647 else
15512 as_fn_error $? "cannot find stdio.h, bailing out" "$LINENO" 5
14648 as_fn_error "cannot find stdio.h, bailing out" "$LINENO" 5
1551314649 fi
1551414650
1551514651 done
1551714653 for ac_header in stdlib.h
1551814654 do :
1551914655 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15520 if test "x$ac_cv_header_stdlib_h" = xyes; then :
14656 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
1552114657 cat >>confdefs.h <<_ACEOF
1552214658 #define HAVE_STDLIB_H 1
1552314659 _ACEOF
1552414660
1552514661 else
15526 as_fn_error $? "cannot find stdlib.h, bailing out" "$LINENO" 5
14662 as_fn_error "cannot find stdlib.h, bailing out" "$LINENO" 5
1552714663 fi
1552814664
1552914665 done
1553214668 for ac_header in locale.h
1553314669 do :
1553414670 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15535 if test "x$ac_cv_header_locale_h" = xyes; then :
14671 if test "x$ac_cv_header_locale_h" = x""yes; then :
1553614672 cat >>confdefs.h <<_ACEOF
1553714673 #define HAVE_LOCALE_H 1
1553814674 _ACEOF
1557214708
1557314709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
1557414710 $as_echo_n "checking for exp in -lm... " >&6; }
15575 if ${ac_cv_lib_m_exp+:} false; then :
14711 if test "${ac_cv_lib_m_exp+set}" = set; then :
1557614712 $as_echo_n "(cached) " >&6
1557714713 else
1557814714 ac_check_lib_save_LIBS=$LIBS
1560614742 fi
1560714743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
1560814744 $as_echo "$ac_cv_lib_m_exp" >&6; }
15609 if test "x$ac_cv_lib_m_exp" = xyes; then :
14745 if test "x$ac_cv_lib_m_exp" = x""yes; then :
1561014746 cat >>confdefs.h <<_ACEOF
1561114747 #define HAVE_LIBM 1
1561214748 _ACEOF
1565614792 for ac_header in zlib.h
1565714793 do :
1565814794 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15659 if test "x$ac_cv_header_zlib_h" = xyes; then :
14795 if test "x$ac_cv_header_zlib_h" = x""yes; then :
1566014796 cat >>confdefs.h <<_ACEOF
1566114797 #define HAVE_ZLIB_H 1
1566214798 _ACEOF
1566314799
1566414800 else
15665 as_fn_error $? "cannot find zlib.h, bailing out" "$LINENO" 5
14801 as_fn_error "cannot find zlib.h, bailing out" "$LINENO" 5
1566614802 fi
1566714803
1566814804 done
1566914805
1567014806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateInit_" >&5
1567114807 $as_echo_n "checking for library containing inflateInit_... " >&6; }
15672 if ${ac_cv_search_inflateInit_+:} false; then :
14808 if test "${ac_cv_search_inflateInit_+set}" = set; then :
1567314809 $as_echo_n "(cached) " >&6
1567414810 else
1567514811 ac_func_search_save_LIBS=$LIBS
1570314839 fi
1570414840 rm -f core conftest.err conftest.$ac_objext \
1570514841 conftest$ac_exeext
15706 if ${ac_cv_search_inflateInit_+:} false; then :
14842 if test "${ac_cv_search_inflateInit_+set}" = set; then :
1570714843 break
1570814844 fi
1570914845 done
15710 if ${ac_cv_search_inflateInit_+:} false; then :
14846 if test "${ac_cv_search_inflateInit_+set}" = set; then :
1571114847
1571214848 else
1571314849 ac_cv_search_inflateInit_=no
1577914915 else
1578014916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jinit_compress_master" >&5
1578114917 $as_echo_n "checking for library containing jinit_compress_master... " >&6; }
15782 if ${ac_cv_search_jinit_compress_master+:} false; then :
14918 if test "${ac_cv_search_jinit_compress_master+set}" = set; then :
1578314919 $as_echo_n "(cached) " >&6
1578414920 else
1578514921 ac_func_search_save_LIBS=$LIBS
1581314949 fi
1581414950 rm -f core conftest.err conftest.$ac_objext \
1581514951 conftest$ac_exeext
15816 if ${ac_cv_search_jinit_compress_master+:} false; then :
14952 if test "${ac_cv_search_jinit_compress_master+set}" = set; then :
1581714953 break
1581814954 fi
1581914955 done
15820 if ${ac_cv_search_jinit_compress_master+:} false; then :
14956 if test "${ac_cv_search_jinit_compress_master+set}" = set; then :
1582114957
1582214958 else
1582314959 ac_cv_search_jinit_compress_master=no
1584214978 if test "${JPEG_CONFIG}" = "yes" ; then
1584314979 if test -d ${with_jpeg}/include ; then
1584414980 JPEG_INC="-I$with_jpeg/include"
14981 LIBS="-L$with_jpeg/lib $LIBS"
1584514982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using jpeg from $with_jpeg/include" >&5
1584614983 $as_echo "using jpeg from $with_jpeg/include" >&6; }
1584714984 fi
1588315020 LIBS_SAVED="$LIBS"
1588415021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
1588515022 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15886 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
15023 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
1588715024 $as_echo_n "(cached) " >&6
1588815025 else
1588915026 ac_check_lib_save_LIBS=$LIBS
1591715054 fi
1591815055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
1591915056 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15920 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
15057 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
1592115058 TIFF_CONFIG=yes
1592215059 else
15923 as_fn_error $? "failed to link with -ltiff to find TIFFOpen" "$LINENO" 5
15060 as_fn_error "failed to link with -ltiff to find TIFFOpen" "$LINENO" 5
1592415061 fi
1592515062
1592615063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFMergeFieldInfo in -ltiff" >&5
1592715064 $as_echo_n "checking for TIFFMergeFieldInfo in -ltiff... " >&6; }
15928 if ${ac_cv_lib_tiff_TIFFMergeFieldInfo+:} false; then :
15065 if test "${ac_cv_lib_tiff_TIFFMergeFieldInfo+set}" = set; then :
1592915066 $as_echo_n "(cached) " >&6
1593015067 else
1593115068 ac_check_lib_save_LIBS=$LIBS
1595915096 fi
1596015097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
1596115098 $as_echo "$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
15962 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = xyes; then :
15099 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = x""yes; then :
1596315100 TIFF_CONFIG=yes
1596415101 else
15965 as_fn_error $? "Libtiff 3.6.0 Beta or later required for this version of
15102 as_fn_error "Libtiff 3.6.0 Beta or later required for this version of
1596615103 libgeotiff. Please upgrade or use an older version of libgeotiff." "$LINENO" 5
1596715104 fi
1596815105
1597015107 else
1597115108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
1597215109 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15973 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
15110 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
1597415111 $as_echo_n "(cached) " >&6
1597515112 else
1597615113 ac_check_lib_save_LIBS=$LIBS
1600415141 fi
1600515142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
1600615143 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
16007 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
15144 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
1600815145 TIFF_CONFIG=yes
1600915146 else
16010 as_fn_error $? "You will need to substantially rewrite libxtiff to
15147 as_fn_error "You will need to substantially rewrite libxtiff to
1601115148 build libgeotiff without libtiff" "$LINENO" 5
1601215149 fi
1601315150
1601415151 LIBS_SAVED="$LIBS"
1601515152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFMergeFieldInfo in -ltiff" >&5
1601615153 $as_echo_n "checking for TIFFMergeFieldInfo in -ltiff... " >&6; }
16017 if ${ac_cv_lib_tiff_TIFFMergeFieldInfo+:} false; then :
15154 if test "${ac_cv_lib_tiff_TIFFMergeFieldInfo+set}" = set; then :
1601815155 $as_echo_n "(cached) " >&6
1601915156 else
1602015157 ac_check_lib_save_LIBS=$LIBS
1604815185 fi
1604915186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
1605015187 $as_echo "$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
16051 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = xyes; then :
15188 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = x""yes; then :
1605215189 TIFF_CONFIG=yes
1605315190 else
16054 as_fn_error $? "Libtiff 3.6.0 Beta or later required for this version of
15191 as_fn_error "Libtiff 3.6.0 Beta or later required for this version of
1605515192 libgeotiff. Please upgrade libtiff or use an older version of libgeotiff." "$LINENO" 5
1605615193 fi
1605715194
1613315270 else
1613415271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
1613515272 $as_echo_n "checking for pj_init in -lproj... " >&6; }
16136 if ${ac_cv_lib_proj_pj_init+:} false; then :
15273 if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
1613715274 $as_echo_n "(cached) " >&6
1613815275 else
1613915276 ac_check_lib_save_LIBS=$LIBS
1616715304 fi
1616815305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
1616915306 $as_echo "$ac_cv_lib_proj_pj_init" >&6; }
16170 if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
15307 if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
1617115308 cat >>confdefs.h <<_ACEOF
1617215309 #define HAVE_LIBPROJ 1
1617315310 _ACEOF
1617915316 for ac_header in proj_api.h
1618015317 do :
1618115318 ac_fn_c_check_header_mongrel "$LINENO" "proj_api.h" "ac_cv_header_proj_api_h" "$ac_includes_default"
16182 if test "x$ac_cv_header_proj_api_h" = xyes; then :
15319 if test "x$ac_cv_header_proj_api_h" = x""yes; then :
1618315320 cat >>confdefs.h <<_ACEOF
1618415321 #define HAVE_PROJ_API_H 1
1618515322 _ACEOF
1630015437
1630115438 ;; #(
1630215439 *)
16303 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
15440 as_fn_error "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
1630415441 ;;
1630515442 esac
1630615443
1631915456 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
1632015457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1632115458 $as_echo_n "checking for $ac_word... " >&6; }
16322 if ${ac_cv_path_DX_DOXYGEN+:} false; then :
15459 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
1632315460 $as_echo_n "(cached) " >&6
1632415461 else
1632515462 case $DX_DOXYGEN in
1633315470 IFS=$as_save_IFS
1633415471 test -z "$as_dir" && as_dir=.
1633515472 for ac_exec_ext in '' $ac_executable_extensions; do
16336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1633715474 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
1633815475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1633915476 break 2
1636215499 set dummy doxygen; ac_word=$2
1636315500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1636415501 $as_echo_n "checking for $ac_word... " >&6; }
16365 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
15502 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
1636615503 $as_echo_n "(cached) " >&6
1636715504 else
1636815505 case $ac_pt_DX_DOXYGEN in
1637615513 IFS=$as_save_IFS
1637715514 test -z "$as_dir" && as_dir=.
1637815515 for ac_exec_ext in '' $ac_executable_extensions; do
16379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1638015517 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
1638115518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1638215519 break 2
1642515562 set dummy ${ac_tool_prefix}perl; ac_word=$2
1642615563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1642715564 $as_echo_n "checking for $ac_word... " >&6; }
16428 if ${ac_cv_path_DX_PERL+:} false; then :
15565 if test "${ac_cv_path_DX_PERL+set}" = set; then :
1642915566 $as_echo_n "(cached) " >&6
1643015567 else
1643115568 case $DX_PERL in
1643915576 IFS=$as_save_IFS
1644015577 test -z "$as_dir" && as_dir=.
1644115578 for ac_exec_ext in '' $ac_executable_extensions; do
16442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1644315580 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
1644415581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1644515582 break 2
1646815605 set dummy perl; ac_word=$2
1646915606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1647015607 $as_echo_n "checking for $ac_word... " >&6; }
16471 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
15608 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
1647215609 $as_echo_n "(cached) " >&6
1647315610 else
1647415611 case $ac_pt_DX_PERL in
1648215619 IFS=$as_save_IFS
1648315620 test -z "$as_dir" && as_dir=.
1648415621 for ac_exec_ext in '' $ac_executable_extensions; do
16485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1648615623 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
1648715624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1648815625 break 2
1656815705
1656915706
1657015707 test "$DX_FLAG_doc" = "1" \
16571 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
15708 || as_fn_error "doxygen-dot requires doxygen-dot" "$LINENO" 5
1657215709
1657315710 ;; #(
1657415711 n|N|no|No|NO)
1657615713
1657715714 ;; #(
1657815715 *)
16579 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
15716 as_fn_error "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
1658015717 ;;
1658115718 esac
1658215719
1659815735 set dummy ${ac_tool_prefix}dot; ac_word=$2
1659915736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1660015737 $as_echo_n "checking for $ac_word... " >&6; }
16601 if ${ac_cv_path_DX_DOT+:} false; then :
15738 if test "${ac_cv_path_DX_DOT+set}" = set; then :
1660215739 $as_echo_n "(cached) " >&6
1660315740 else
1660415741 case $DX_DOT in
1661215749 IFS=$as_save_IFS
1661315750 test -z "$as_dir" && as_dir=.
1661415751 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1661615753 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
1661715754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1661815755 break 2
1664115778 set dummy dot; ac_word=$2
1664215779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1664315780 $as_echo_n "checking for $ac_word... " >&6; }
16644 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
15781 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
1664515782 $as_echo_n "(cached) " >&6
1664615783 else
1664715784 case $ac_pt_DX_DOT in
1665515792 IFS=$as_save_IFS
1665615793 test -z "$as_dir" && as_dir=.
1665715794 for ac_exec_ext in '' $ac_executable_extensions; do
16658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1665915796 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
1666015797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1666115798 break 2
1674415881
1674515882
1674615883 test "$DX_FLAG_doc" = "1" \
16747 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
15884 || as_fn_error "doxygen-man requires doxygen-man" "$LINENO" 5
1674815885
1674915886 ;; #(
1675015887 n|N|no|No|NO)
1675215889
1675315890 ;; #(
1675415891 *)
16755 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
15892 as_fn_error "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
1675615893 ;;
1675715894 esac
1675815895
1681315950
1681415951
1681515952 test "$DX_FLAG_doc" = "1" \
16816 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
15953 || as_fn_error "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
1681715954
1681815955 ;; #(
1681915956 n|N|no|No|NO)
1682115958
1682215959 ;; #(
1682315960 *)
16824 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
15961 as_fn_error "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
1682515962 ;;
1682615963 esac
1682715964
1688216019
1688316020
1688416021 test "$DX_FLAG_doc" = "1" \
16885 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
16022 || as_fn_error "doxygen-xml requires doxygen-xml" "$LINENO" 5
1688616023
1688716024 ;; #(
1688816025 n|N|no|No|NO)
1689016027
1689116028 ;; #(
1689216029 *)
16893 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
16030 as_fn_error "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
1689416031 ;;
1689516032 esac
1689616033
1695116088
1695216089
1695316090 test "$DX_FLAG_doc" = "1" \
16954 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
16091 || as_fn_error "doxygen-chm requires doxygen-chm" "$LINENO" 5
1695516092
1695616093 ;; #(
1695716094 n|N|no|No|NO)
1695916096
1696016097 ;; #(
1696116098 *)
16962 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
16099 as_fn_error "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
1696316100 ;;
1696416101 esac
1696516102
1698116118 set dummy ${ac_tool_prefix}hhc; ac_word=$2
1698216119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1698316120 $as_echo_n "checking for $ac_word... " >&6; }
16984 if ${ac_cv_path_DX_HHC+:} false; then :
16121 if test "${ac_cv_path_DX_HHC+set}" = set; then :
1698516122 $as_echo_n "(cached) " >&6
1698616123 else
1698716124 case $DX_HHC in
1699516132 IFS=$as_save_IFS
1699616133 test -z "$as_dir" && as_dir=.
1699716134 for ac_exec_ext in '' $ac_executable_extensions; do
16998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1699916136 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
1700016137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1700116138 break 2
1702416161 set dummy hhc; ac_word=$2
1702516162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1702616163 $as_echo_n "checking for $ac_word... " >&6; }
17027 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
16164 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
1702816165 $as_echo_n "(cached) " >&6
1702916166 else
1703016167 case $ac_pt_DX_HHC in
1703816175 IFS=$as_save_IFS
1703916176 test -z "$as_dir" && as_dir=.
1704016177 for ac_exec_ext in '' $ac_executable_extensions; do
17041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1704216179 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
1704316180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1704416181 break 2
1712916266
1713016267
1713116268 test "$DX_FLAG_chm" = "1" \
17132 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
16269 || as_fn_error "doxygen-chi requires doxygen-chi" "$LINENO" 5
1713316270
1713416271 ;; #(
1713516272 n|N|no|No|NO)
1713716274
1713816275 ;; #(
1713916276 *)
17140 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
16277 as_fn_error "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
1714116278 ;;
1714216279 esac
1714316280
1719816335
1719916336
1720016337 test "$DX_FLAG_doc" = "1" \
17201 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
16338 || as_fn_error "doxygen-html requires doxygen-html" "$LINENO" 5
1720216339
1720316340 test "$DX_FLAG_chm" = "0" \
17204 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
16341 || as_fn_error "doxygen-html contradicts doxygen-html" "$LINENO" 5
1720516342
1720616343 ;; #(
1720716344 n|N|no|No|NO)
1720916346
1721016347 ;; #(
1721116348 *)
17212 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
16349 as_fn_error "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
1721316350 ;;
1721416351 esac
1721516352
1727316410
1727416411
1727516412 test "$DX_FLAG_doc" = "1" \
17276 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
16413 || as_fn_error "doxygen-ps requires doxygen-ps" "$LINENO" 5
1727716414
1727816415 ;; #(
1727916416 n|N|no|No|NO)
1728116418
1728216419 ;; #(
1728316420 *)
17284 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
16421 as_fn_error "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
1728516422 ;;
1728616423 esac
1728716424
1730316440 set dummy ${ac_tool_prefix}latex; ac_word=$2
1730416441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1730516442 $as_echo_n "checking for $ac_word... " >&6; }
17306 if ${ac_cv_path_DX_LATEX+:} false; then :
16443 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
1730716444 $as_echo_n "(cached) " >&6
1730816445 else
1730916446 case $DX_LATEX in
1731716454 IFS=$as_save_IFS
1731816455 test -z "$as_dir" && as_dir=.
1731916456 for ac_exec_ext in '' $ac_executable_extensions; do
17320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1732116458 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
1732216459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1732316460 break 2
1734616483 set dummy latex; ac_word=$2
1734716484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1734816485 $as_echo_n "checking for $ac_word... " >&6; }
17349 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
16486 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
1735016487 $as_echo_n "(cached) " >&6
1735116488 else
1735216489 case $ac_pt_DX_LATEX in
1736016497 IFS=$as_save_IFS
1736116498 test -z "$as_dir" && as_dir=.
1736216499 for ac_exec_ext in '' $ac_executable_extensions; do
17363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1736416501 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
1736516502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1736616503 break 2
1740916546 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
1741016547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1741116548 $as_echo_n "checking for $ac_word... " >&6; }
17412 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
16549 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
1741316550 $as_echo_n "(cached) " >&6
1741416551 else
1741516552 case $DX_MAKEINDEX in
1742316560 IFS=$as_save_IFS
1742416561 test -z "$as_dir" && as_dir=.
1742516562 for ac_exec_ext in '' $ac_executable_extensions; do
17426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1742716564 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1742816565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1742916566 break 2
1745216589 set dummy makeindex; ac_word=$2
1745316590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1745416591 $as_echo_n "checking for $ac_word... " >&6; }
17455 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
16592 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
1745616593 $as_echo_n "(cached) " >&6
1745716594 else
1745816595 case $ac_pt_DX_MAKEINDEX in
1746616603 IFS=$as_save_IFS
1746716604 test -z "$as_dir" && as_dir=.
1746816605 for ac_exec_ext in '' $ac_executable_extensions; do
17469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1747016607 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1747116608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1747216609 break 2
1751516652 set dummy ${ac_tool_prefix}dvips; ac_word=$2
1751616653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1751716654 $as_echo_n "checking for $ac_word... " >&6; }
17518 if ${ac_cv_path_DX_DVIPS+:} false; then :
16655 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
1751916656 $as_echo_n "(cached) " >&6
1752016657 else
1752116658 case $DX_DVIPS in
1752916666 IFS=$as_save_IFS
1753016667 test -z "$as_dir" && as_dir=.
1753116668 for ac_exec_ext in '' $ac_executable_extensions; do
17532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1753316670 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
1753416671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1753516672 break 2
1755816695 set dummy dvips; ac_word=$2
1755916696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1756016697 $as_echo_n "checking for $ac_word... " >&6; }
17561 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
16698 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
1756216699 $as_echo_n "(cached) " >&6
1756316700 else
1756416701 case $ac_pt_DX_DVIPS in
1757216709 IFS=$as_save_IFS
1757316710 test -z "$as_dir" && as_dir=.
1757416711 for ac_exec_ext in '' $ac_executable_extensions; do
17575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1757616713 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
1757716714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1757816715 break 2
1762116758 set dummy ${ac_tool_prefix}egrep; ac_word=$2
1762216759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1762316760 $as_echo_n "checking for $ac_word... " >&6; }
17624 if ${ac_cv_path_DX_EGREP+:} false; then :
16761 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
1762516762 $as_echo_n "(cached) " >&6
1762616763 else
1762716764 case $DX_EGREP in
1763516772 IFS=$as_save_IFS
1763616773 test -z "$as_dir" && as_dir=.
1763716774 for ac_exec_ext in '' $ac_executable_extensions; do
17638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1763916776 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1764016777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1764116778 break 2
1766416801 set dummy egrep; ac_word=$2
1766516802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1766616803 $as_echo_n "checking for $ac_word... " >&6; }
17667 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
16804 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
1766816805 $as_echo_n "(cached) " >&6
1766916806 else
1767016807 case $ac_pt_DX_EGREP in
1767816815 IFS=$as_save_IFS
1767916816 test -z "$as_dir" && as_dir=.
1768016817 for ac_exec_ext in '' $ac_executable_extensions; do
17681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1768216819 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1768316820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1768416821 break 2
1776316900
1776416901
1776516902 test "$DX_FLAG_doc" = "1" \
17766 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
16903 || as_fn_error "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
1776716904
1776816905 ;; #(
1776916906 n|N|no|No|NO)
1777116908
1777216909 ;; #(
1777316910 *)
17774 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
16911 as_fn_error "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
1777516912 ;;
1777616913 esac
1777716914
1779316930 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
1779416931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1779516932 $as_echo_n "checking for $ac_word... " >&6; }
17796 if ${ac_cv_path_DX_PDFLATEX+:} false; then :
16933 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
1779716934 $as_echo_n "(cached) " >&6
1779816935 else
1779916936 case $DX_PDFLATEX in
1780716944 IFS=$as_save_IFS
1780816945 test -z "$as_dir" && as_dir=.
1780916946 for ac_exec_ext in '' $ac_executable_extensions; do
17810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1781116948 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
1781216949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1781316950 break 2
1783616973 set dummy pdflatex; ac_word=$2
1783716974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1783816975 $as_echo_n "checking for $ac_word... " >&6; }
17839 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
16976 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
1784016977 $as_echo_n "(cached) " >&6
1784116978 else
1784216979 case $ac_pt_DX_PDFLATEX in
1785016987 IFS=$as_save_IFS
1785116988 test -z "$as_dir" && as_dir=.
1785216989 for ac_exec_ext in '' $ac_executable_extensions; do
17853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1785416991 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
1785516992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1785616993 break 2
1789917036 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
1790017037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1790117038 $as_echo_n "checking for $ac_word... " >&6; }
17902 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17039 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
1790317040 $as_echo_n "(cached) " >&6
1790417041 else
1790517042 case $DX_MAKEINDEX in
1791317050 IFS=$as_save_IFS
1791417051 test -z "$as_dir" && as_dir=.
1791517052 for ac_exec_ext in '' $ac_executable_extensions; do
17916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1791717054 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1791817055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1791917056 break 2
1794217079 set dummy makeindex; ac_word=$2
1794317080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1794417081 $as_echo_n "checking for $ac_word... " >&6; }
17945 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17082 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
1794617083 $as_echo_n "(cached) " >&6
1794717084 else
1794817085 case $ac_pt_DX_MAKEINDEX in
1795617093 IFS=$as_save_IFS
1795717094 test -z "$as_dir" && as_dir=.
1795817095 for ac_exec_ext in '' $ac_executable_extensions; do
17959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1796017097 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1796117098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1796217099 break 2
1800517142 set dummy ${ac_tool_prefix}egrep; ac_word=$2
1800617143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1800717144 $as_echo_n "checking for $ac_word... " >&6; }
18008 if ${ac_cv_path_DX_EGREP+:} false; then :
17145 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
1800917146 $as_echo_n "(cached) " >&6
1801017147 else
1801117148 case $DX_EGREP in
1801917156 IFS=$as_save_IFS
1802017157 test -z "$as_dir" && as_dir=.
1802117158 for ac_exec_ext in '' $ac_executable_extensions; do
18022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1802317160 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1802417161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1802517162 break 2
1804817185 set dummy egrep; ac_word=$2
1804917186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1805017187 $as_echo_n "checking for $ac_word... " >&6; }
18051 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17188 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
1805217189 $as_echo_n "(cached) " >&6
1805317190 else
1805417191 case $ac_pt_DX_EGREP in
1806217199 IFS=$as_save_IFS
1806317200 test -z "$as_dir" && as_dir=.
1806417201 for ac_exec_ext in '' $ac_executable_extensions; do
18065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1806617203 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1806717204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1806817205 break 2
1817017307
1817117308 ;; #(
1817217309 *)
18173 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
17310 as_fn_error "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
1817417311 ;;
1817517312 esac
1817617313
1825817395 :end' >>confcache
1825917396 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1826017397 if test -w "$cache_file"; then
18261 if test "x$cache_file" != "x/dev/null"; then
17398 test "x$cache_file" != "x/dev/null" &&
1826217399 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1826317400 $as_echo "$as_me: updating cache $cache_file" >&6;}
18264 if test ! -f "$cache_file" || test -h "$cache_file"; then
18265 cat confcache >"$cache_file"
18266 else
18267 case $cache_file in #(
18268 */* | ?:*)
18269 mv -f confcache "$cache_file"$$ &&
18270 mv -f "$cache_file"$$ "$cache_file" ;; #(
18271 *)
18272 mv -f confcache "$cache_file" ;;
18273 esac
18274 fi
18275 fi
17401 cat confcache >$cache_file
1827617402 else
1827717403 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1827817404 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1828817414
1828917415 ac_libobjs=
1829017416 ac_ltlibobjs=
18291 U=
1829217417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1829317418 # 1. Remove the extension, and $U if already installed.
1829417419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1830317428 LTLIBOBJS=$ac_ltlibobjs
1830417429
1830517430
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18307 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18308 if test -n "$am_sleep_pid"; then
18309 # Hide warnings about reused PIDs.
18310 wait $am_sleep_pid 2>/dev/null
18311 fi
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18313 $as_echo "done" >&6; }
1831417431 if test -n "$EXEEXT"; then
1831517432 am__EXEEXT_TRUE=
1831617433 am__EXEEXT_FALSE='#'
1832017437 fi
1832117438
1832217439 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18323 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17440 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
1832417441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1832517442 fi
1832617443 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18327 as_fn_error $? "conditional \"AMDEP\" was never defined.
17444 as_fn_error "conditional \"AMDEP\" was never defined.
1832817445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1832917446 fi
1833017447 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18331 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17448 as_fn_error "conditional \"am__fastdepCC\" was never defined.
1833217449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1833317450 fi
1833417451 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18335 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17452 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
1833617453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1833717454 fi
17455 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17456 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17458 fi
1833817459 if test -z "${ZIP_IS_CONFIG_TRUE}" && test -z "${ZIP_IS_CONFIG_FALSE}"; then
18339 as_fn_error $? "conditional \"ZIP_IS_CONFIG\" was never defined.
17460 as_fn_error "conditional \"ZIP_IS_CONFIG\" was never defined.
1834017461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1834117462 fi
1834217463 if test -z "${JPEG_IS_CONFIG_TRUE}" && test -z "${JPEG_IS_CONFIG_FALSE}"; then
18343 as_fn_error $? "conditional \"JPEG_IS_CONFIG\" was never defined.
17464 as_fn_error "conditional \"JPEG_IS_CONFIG\" was never defined.
1834417465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1834517466 fi
1834617467 if test -z "${TIFF_IS_CONFIG_TRUE}" && test -z "${TIFF_IS_CONFIG_FALSE}"; then
18347 as_fn_error $? "conditional \"TIFF_IS_CONFIG\" was never defined.
17468 as_fn_error "conditional \"TIFF_IS_CONFIG\" was never defined.
1834817469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1834917470 fi
1835017471 if test -z "${PROJ_IS_CONFIG_TRUE}" && test -z "${PROJ_IS_CONFIG_FALSE}"; then
18351 as_fn_error $? "conditional \"PROJ_IS_CONFIG\" was never defined.
17472 as_fn_error "conditional \"PROJ_IS_CONFIG\" was never defined.
1835217473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1835317474 fi
1835417475 if test -z "${PROJECTS_H_IS_CONFIG_TRUE}" && test -z "${PROJECTS_H_IS_CONFIG_FALSE}"; then
18355 as_fn_error $? "conditional \"PROJECTS_H_IS_CONFIG\" was never defined.
17476 as_fn_error "conditional \"PROJECTS_H_IS_CONFIG\" was never defined.
1835617477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1835717478 fi
1835817479 if test -z "${CSV_IS_CONFIG_TRUE}" && test -z "${CSV_IS_CONFIG_FALSE}"; then
18359 as_fn_error $? "conditional \"CSV_IS_CONFIG\" was never defined.
17480 as_fn_error "conditional \"CSV_IS_CONFIG\" was never defined.
1836017481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1836117482 fi
1836217483 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18363 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
17484 as_fn_error "conditional \"DX_COND_doc\" was never defined.
1836417485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1836517486 fi
1836617487 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18367 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
17488 as_fn_error "conditional \"DX_COND_doc\" was never defined.
1836817489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1836917490 fi
1837017491 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18371 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
17492 as_fn_error "conditional \"DX_COND_dot\" was never defined.
1837217493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1837317494 fi
1837417495 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18375 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
17496 as_fn_error "conditional \"DX_COND_dot\" was never defined.
1837617497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1837717498 fi
1837817499 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18379 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
17500 as_fn_error "conditional \"DX_COND_man\" was never defined.
1838017501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1838117502 fi
1838217503 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18383 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
17504 as_fn_error "conditional \"DX_COND_man\" was never defined.
1838417505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1838517506 fi
1838617507 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18387 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
17508 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
1838817509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1838917510 fi
1839017511 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18391 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
17512 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
1839217513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1839317514 fi
1839417515 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18395 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
17516 as_fn_error "conditional \"DX_COND_xml\" was never defined.
1839617517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1839717518 fi
1839817519 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18399 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
17520 as_fn_error "conditional \"DX_COND_xml\" was never defined.
1840017521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1840117522 fi
1840217523 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18403 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
17524 as_fn_error "conditional \"DX_COND_chm\" was never defined.
1840417525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1840517526 fi
1840617527 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18407 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
17528 as_fn_error "conditional \"DX_COND_chm\" was never defined.
1840817529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1840917530 fi
1841017531 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18411 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
17532 as_fn_error "conditional \"DX_COND_chi\" was never defined.
1841217533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1841317534 fi
1841417535 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18415 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
17536 as_fn_error "conditional \"DX_COND_chi\" was never defined.
1841617537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1841717538 fi
1841817539 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18419 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
17540 as_fn_error "conditional \"DX_COND_html\" was never defined.
1842017541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1842117542 fi
1842217543 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18423 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
17544 as_fn_error "conditional \"DX_COND_html\" was never defined.
1842417545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1842517546 fi
1842617547 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18427 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
17548 as_fn_error "conditional \"DX_COND_ps\" was never defined.
1842817549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1842917550 fi
1843017551 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18431 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
17552 as_fn_error "conditional \"DX_COND_ps\" was never defined.
1843217553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1843317554 fi
1843417555 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18435 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
17556 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
1843617557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1843717558 fi
1843817559 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18439 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
17560 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
1844017561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1844117562 fi
1844217563 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18443 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
17564 as_fn_error "conditional \"DX_COND_latex\" was never defined.
1844417565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1844517566 fi
1844617567 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18447 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
17568 as_fn_error "conditional \"DX_COND_latex\" was never defined.
1844817569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1844917570 fi
1845017571
18451 : "${CONFIG_STATUS=./config.status}"
17572 : ${CONFIG_STATUS=./config.status}
1845217573 ac_write_fail=0
1845317574 ac_clean_files_save=$ac_clean_files
1845417575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1854917670 IFS=" "" $as_nl"
1855017671
1855117672 # Find who we are. Look in the path if we contain no directory separator.
18552 as_myself=
1855317673 case $0 in #((
1855417674 *[\\/]* ) as_myself=$0 ;;
1855517675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859517715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1859617716
1859717717
18598 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18599 # ----------------------------------------
17718 # as_fn_error ERROR [LINENO LOG_FD]
17719 # ---------------------------------
1860017720 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1860117721 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18602 # script with STATUS, using 1 if that was 0.
17722 # script with status $?, using 1 if that was 0.
1860317723 as_fn_error ()
1860417724 {
18605 as_status=$1; test $as_status -eq 0 && as_status=1
18606 if test "$4"; then
18607 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18608 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17725 as_status=$?; test $as_status -eq 0 && as_status=1
17726 if test "$3"; then
17727 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17728 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1860917729 fi
18610 $as_echo "$as_me: error: $2" >&2
17730 $as_echo "$as_me: error: $1" >&2
1861117731 as_fn_exit $as_status
1861217732 } # as_fn_error
1861317733
1874517865 # ... but there are two gotchas:
1874617866 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1874717867 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18748 # In both cases, we have to default to `cp -pR'.
17868 # In both cases, we have to default to `cp -p'.
1874917869 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18750 as_ln_s='cp -pR'
17870 as_ln_s='cp -p'
1875117871 elif ln conf$$.file conf$$ 2>/dev/null; then
1875217872 as_ln_s=ln
1875317873 else
18754 as_ln_s='cp -pR'
17874 as_ln_s='cp -p'
1875517875 fi
1875617876 else
18757 as_ln_s='cp -pR'
17877 as_ln_s='cp -p'
1875817878 fi
1875917879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1876017880 rmdir conf$$.dir 2>/dev/null
1880317923 test -d "$as_dir" && break
1880417924 done
1880517925 test -z "$as_dirs" || eval "mkdir $as_dirs"
18806 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17926 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
1880717927
1880817928
1880917929 } # as_fn_mkdir_p
1881417934 as_mkdir_p=false
1881517935 fi
1881617936
18817
18818 # as_fn_executable_p FILE
18819 # -----------------------
18820 # Test if FILE is an executable regular file.
18821 as_fn_executable_p ()
18822 {
18823 test -f "$1" && test -x "$1"
18824 } # as_fn_executable_p
18825 as_test_x='test -x'
18826 as_executable_p=as_fn_executable_p
17937 if test -x / >/dev/null 2>&1; then
17938 as_test_x='test -x'
17939 else
17940 if ls -dL / >/dev/null 2>&1; then
17941 as_ls_L_option=L
17942 else
17943 as_ls_L_option=
17944 fi
17945 as_test_x='
17946 eval sh -c '\''
17947 if test -d "$1"; then
17948 test -d "$1/.";
17949 else
17950 case $1 in #(
17951 -*)set "./$1";;
17952 esac;
17953 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17954 ???[sx]*):;;*)false;;esac;fi
17955 '\'' sh
17956 '
17957 fi
17958 as_executable_p=$as_test_x
1882717959
1882817960 # Sed expression to map a string onto a valid CPP name.
1882917961 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1884417976 # report actual input values of CONFIG_FILES etc. instead of their
1884517977 # values after options handling.
1884617978 ac_log="
18847 This file was extended by libgeotiff $as_me 1.4.1, which was
18848 generated by GNU Autoconf 2.69. Invocation command line was
17979 This file was extended by libgeotiff $as_me 1.4.2, which was
17980 generated by GNU Autoconf 2.65. Invocation command line was
1884917981
1885017982 CONFIG_FILES = $CONFIG_FILES
1885117983 CONFIG_HEADERS = $CONFIG_HEADERS
1891018042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1891118043 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1891218044 ac_cs_version="\\
18913 libgeotiff config.status 1.4.1
18914 configured by $0, generated by GNU Autoconf 2.69,
18045 libgeotiff config.status 1.4.2
18046 configured by $0, generated by GNU Autoconf 2.65,
1891518047 with options \\"\$ac_cs_config\\"
1891618048
18917 Copyright (C) 2012 Free Software Foundation, Inc.
18049 Copyright (C) 2009 Free Software Foundation, Inc.
1891818050 This config.status script is free software; the Free Software Foundation
1891918051 gives unlimited permission to copy, distribute and modify it."
1892018052
1893218064 while test $# != 0
1893318065 do
1893418066 case $1 in
18935 --*=?*)
18067 --*=*)
1893618068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
1893718069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18938 ac_shift=:
18939 ;;
18940 --*=)
18941 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18942 ac_optarg=
1894318070 ac_shift=:
1894418071 ;;
1894518072 *)
1896318090 $ac_shift
1896418091 case $ac_optarg in
1896518092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18966 '') as_fn_error $? "missing file argument" ;;
1896718093 esac
1896818094 as_fn_append CONFIG_FILES " '$ac_optarg'"
1896918095 ac_need_defaults=false;;
1897618102 ac_need_defaults=false;;
1897718103 --he | --h)
1897818104 # Conflict between --help and --header
18979 as_fn_error $? "ambiguous option: \`$1'
18105 as_fn_error "ambiguous option: \`$1'
1898018106 Try \`$0 --help' for more information.";;
1898118107 --help | --hel | -h )
1898218108 $as_echo "$ac_cs_usage"; exit ;;
1898518111 ac_cs_silent=: ;;
1898618112
1898718113 # This is an error.
18988 -*) as_fn_error $? "unrecognized option: \`$1'
18114 -*) as_fn_error "unrecognized option: \`$1'
1898918115 Try \`$0 --help' for more information." ;;
1899018116
1899118117 *) as_fn_append ac_config_targets " $1"
1900518131 _ACEOF
1900618132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1900718133 if \$ac_cs_recheck; then
19008 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18134 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1900918135 shift
1901018136 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1901118137 CONFIG_SHELL='$SHELL'
1903918165 sed_quote_subst='$sed_quote_subst'
1904018166 double_quote_subst='$double_quote_subst'
1904118167 delay_variable_subst='$delay_variable_subst'
19042 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19043 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19044 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19045 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19046 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19047 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19048 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19049 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19050 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19051 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19052 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19053 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19054 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19055 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19056 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19057 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19058 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19059 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19060 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19061 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19062 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19063 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19064 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19065 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19066 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19067 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19068 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19069 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19070 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19071 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19072 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19073 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19074 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19075 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19076 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19077 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19078 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19079 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19080 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19081 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19082 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19083 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19084 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19085 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19086 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19087 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19088 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19089 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19090 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19091 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19092 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19093 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19094 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19095 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19096 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19097 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19098 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"`'
19099 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19100 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19101 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19102 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19103 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19104 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19106 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19107 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19108 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19109 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19133 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19134 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19135 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19136 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19137 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19138 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19139 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19140 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19141 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19142 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19143 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19144 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19145 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19146 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19147 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19148 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19149 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19150 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19151 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19152 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19153 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19154 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19155 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19156 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19157 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19158 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19159 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19160 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19161 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19162 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19163 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19164 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19165 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19166 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19167 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19168 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19169 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19170 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19171 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19172 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19173 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19174 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19175 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19176 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19177 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19178 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19179 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19180 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19181 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19182 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19183 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19184 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19185 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19186 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19187 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19188 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19189 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19190 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19191 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19192 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19193 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19194 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19195 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19196 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19197 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19198 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19199 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19200 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19201 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19202 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19203 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19204 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19205 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19206 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19207 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19208 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19209 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19210 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19211 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19212 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19213 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19214 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19215 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19216 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19217 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19218 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19219 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19220 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19221 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19222 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19223 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19224 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19225 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18168 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18169 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18170 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18171 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18172 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18173 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18174 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18175 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18176 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18177 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18178 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18179 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18180 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18181 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18182 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18183 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18184 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18185 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18186 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18187 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18188 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18189 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18190 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18191 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18192 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18193 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18194 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18195 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18196 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18197 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18198 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18199 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18200 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18201 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18202 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18203 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18204 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18205 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18206 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18207 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18208 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18209 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18210 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18211 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18212 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"`'
18213 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"`'
18214 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18215 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18216 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18217 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18218 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18219 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18220 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18221 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18222 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18223 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18224 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18225 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18226 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18227 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18228 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18229 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18230 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18231 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18232 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18233 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18234 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18235 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18236 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18237 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18238 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18239 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18240 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18241 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18242 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18243 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18244 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18245 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18246 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18247 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18248 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18249 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18250 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18251 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18252 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18253 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18254 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18255 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18256 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18257 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18258 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18259 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18260 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18261 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18262 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18263 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18264 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18265 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18266 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18267 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18268 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18269 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18270 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18271 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18272 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18273 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18274 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18275 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18276 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18277 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18278 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18279 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18280 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18281 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18282 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18283 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18284 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18285 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18286 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18287 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18288 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18289 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18290 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18291 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18292 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18293 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18294 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18295 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18296 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18297 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18298 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18299 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18300 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18301 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18302 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18303 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18304 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18305 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18306 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18307 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18308 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18309 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18310 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18311 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18312 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18313 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18314 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18315 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18316 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18317 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18318 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18319 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18320 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18321 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18322 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18323 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18324 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18325 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18326 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18327 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18328 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18329 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18330 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18331 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18332 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18333 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18334 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18335 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18336 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18337 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18338 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
1922618339
1922718340 LTCC='$LTCC'
1922818341 LTCFLAGS='$LTCFLAGS'
1922918342 compiler='$compiler_DEFAULT'
1923018343
19231 # A function that is used when there is no print builtin or printf.
19232 func_fallback_echo ()
19233 {
19234 eval 'cat <<_LTECHO_EOF
19235 \$1
19236 _LTECHO_EOF'
19237 }
19238
1923918344 # Quote evaled strings.
19240 for var in SHELL \
19241 ECHO \
19242 PATH_SEPARATOR \
19243 SED \
18345 for var in SED \
1924418346 GREP \
1924518347 EGREP \
1924618348 FGREP \
1925318355 OBJDUMP \
1925418356 deplibs_check_method \
1925518357 file_magic_cmd \
19256 file_magic_glob \
19257 want_nocaseglob \
19258 DLLTOOL \
19259 sharedlib_from_linklib_cmd \
1926018358 AR \
1926118359 AR_FLAGS \
19262 archiver_list_spec \
1926318360 STRIP \
1926418361 RANLIB \
1926518362 CC \
1926918366 lt_cv_sys_global_symbol_to_cdecl \
1927018367 lt_cv_sys_global_symbol_to_c_name_address \
1927118368 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19272 nm_file_list_spec \
18369 SHELL \
18370 ECHO \
1927318371 lt_prog_compiler_no_builtin_flag \
18372 lt_prog_compiler_wl \
1927418373 lt_prog_compiler_pic \
19275 lt_prog_compiler_wl \
1927618374 lt_prog_compiler_static \
1927718375 lt_cv_prog_compiler_c_o \
1927818376 need_locks \
19279 MANIFEST_TOOL \
1928018377 DSYMUTIL \
1928118378 NMEDIT \
1928218379 LIPO \
1929018387 allow_undefined_flag \
1929118388 no_undefined_flag \
1929218389 hardcode_libdir_flag_spec \
18390 hardcode_libdir_flag_spec_ld \
1929318391 hardcode_libdir_separator \
18392 fix_srcfile_path \
1929418393 exclude_expsyms \
1929518394 include_expsyms \
1929618395 file_list_spec \
1929818397 libname_spec \
1929918398 library_names_spec \
1930018399 soname_spec \
19301 install_override_mode \
1930218400 finish_eval \
1930318401 old_striplib \
1930418402 striplib \
1930918407 postdeps \
1931018408 compiler_lib_search_path \
1931118409 LD_CXX \
19312 reload_flag_CXX \
1931318410 compiler_CXX \
1931418411 lt_prog_compiler_no_builtin_flag_CXX \
18412 lt_prog_compiler_wl_CXX \
1931518413 lt_prog_compiler_pic_CXX \
19316 lt_prog_compiler_wl_CXX \
1931718414 lt_prog_compiler_static_CXX \
1931818415 lt_cv_prog_compiler_c_o_CXX \
1931918416 export_dynamic_flag_spec_CXX \
1932318420 allow_undefined_flag_CXX \
1932418421 no_undefined_flag_CXX \
1932518422 hardcode_libdir_flag_spec_CXX \
18423 hardcode_libdir_flag_spec_ld_CXX \
1932618424 hardcode_libdir_separator_CXX \
18425 fix_srcfile_path_CXX \
1932718426 exclude_expsyms_CXX \
1932818427 include_expsyms_CXX \
1932918428 file_list_spec_CXX \
1933318432 predeps_CXX \
1933418433 postdeps_CXX \
1933518434 compiler_lib_search_path_CXX; do
19336 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18435 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1933718436 *[\\\\\\\`\\"\\\$]*)
19338 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1933918438 ;;
1934018439 *)
1934118440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1935718456 module_expsym_cmds \
1935818457 export_symbols_cmds \
1935918458 prelink_cmds \
19360 postlink_cmds \
1936118459 postinstall_cmds \
1936218460 postuninstall_cmds \
1936318461 finish_cmds \
1936418462 sys_lib_search_path_spec \
1936518463 sys_lib_dlsearch_path_spec \
19366 reload_cmds_CXX \
1936718464 old_archive_cmds_CXX \
1936818465 old_archive_from_new_cmds_CXX \
1936918466 old_archive_from_expsyms_cmds_CXX \
1937218469 module_cmds_CXX \
1937318470 module_expsym_cmds_CXX \
1937418471 export_symbols_cmds_CXX \
19375 prelink_cmds_CXX \
19376 postlink_cmds_CXX; do
19377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18472 prelink_cmds_CXX; do
18473 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1937818474 *[\\\\\\\`\\"\\\$]*)
19379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18475 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1938018476 ;;
1938118477 *)
1938218478 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1938318479 ;;
1938418480 esac
1938518481 done
18482
18483 # Fix-up fallback echo if it was mangled by the above quoting rules.
18484 case \$lt_ECHO in
18485 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18486 ;;
18487 esac
1938618488
1938718489 ac_aux_dir='$ac_aux_dir'
1938818490 xsi_shell='$xsi_shell'
1942418526 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
1942518527 "cmake/Makefile") CONFIG_FILES="$CONFIG_FILES cmake/Makefile" ;;
1942618528
19427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18529 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1942818530 esac
1942918531 done
1943018532
1944718549 # after its creation but before its name has been assigned to `$tmp'.
1944818550 $debug ||
1944918551 {
19450 tmp= ac_tmp=
18552 tmp=
1945118553 trap 'exit_status=$?
19452 : "${ac_tmp:=$tmp}"
19453 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18554 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
1945418555 ' 0
1945518556 trap 'as_fn_exit 1' 1 2 13 15
1945618557 }
1945818559
1945918560 {
1946018561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19461 test -d "$tmp"
18562 test -n "$tmp" && test -d "$tmp"
1946218563 } ||
1946318564 {
1946418565 tmp=./conf$$-$RANDOM
1946518566 (umask 077 && mkdir "$tmp")
19466 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19467 ac_tmp=$tmp
18567 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
1946818568
1946918569 # Set up the scripts for CONFIG_FILES section.
1947018570 # No need to generate them if there are no CONFIG_FILES.
1948118581 fi
1948218582 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1948318583 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19484 ac_cs_awk_cr='\\r'
18584 ac_cs_awk_cr='\r'
1948518585 else
1948618586 ac_cs_awk_cr=$ac_cr
1948718587 fi
1948818588
19489 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18589 echo 'BEGIN {' >"$tmp/subs1.awk" &&
1949018590 _ACEOF
1949118591
1949218592
1949518595 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1949618596 echo "_ACEOF"
1949718597 } >conf$$subs.sh ||
19498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18598 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18599 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1950018600 ac_delim='%!_!# '
1950118601 for ac_last_try in false false false false false :; do
1950218602 . ./conf$$subs.sh ||
19503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18603 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1950418604
1950518605 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1950618606 if test $ac_delim_n = $ac_delim_num; then
1950718607 break
1950818608 elif $ac_last_try; then
19509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18609 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1951018610 else
1951118611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1951218612 fi
1951418614 rm -f conf$$subs.sh
1951518615
1951618616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19517 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18617 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
1951818618 _ACEOF
1951918619 sed -n '
1952018620 h
1956218662 rm -f conf$$subs.awk
1956318663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1956418664 _ACAWK
19565 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18665 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
1956618666 for (key in S) S_is_set[key] = 1
1956718667 FS = ""
1956818668
1959418694 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1959518695 else
1959618696 cat
19597 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19598 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18697 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18698 || as_fn_error "could not setup config files machinery" "$LINENO" 5
1959918699 _ACEOF
1960018700
19601 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19602 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18701 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18702 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1960318703 # trailing colons and then remove the whole line if VPATH becomes empty
1960418704 # (actually we leave an empty line to preserve line numbers).
1960518705 if test "x$srcdir" = x.; then
19606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19607 h
19608 s///
19609 s/^/:/
19610 s/[ ]*$/:/
19611 s/:\$(srcdir):/:/g
19612 s/:\${srcdir}:/:/g
19613 s/:@srcdir@:/:/g
19614 s/^:*//
18706 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18707 s/:*\$(srcdir):*/:/
18708 s/:*\${srcdir}:*/:/
18709 s/:*@srcdir@:*/:/
18710 s/^\([^=]*=[ ]*\):*/\1/
1961518711 s/:*$//
19616 x
19617 s/\(=[ ]*\).*/\1/
19618 G
19619 s/\n//
1962018712 s/^[^=]*=[ ]*$//
1962118713 }'
1962218714 fi
1962818720 # No need to generate them if there are no CONFIG_HEADERS.
1962918721 # This happens for instance with `./config.status Makefile'.
1963018722 if test -n "$CONFIG_HEADERS"; then
19631 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18723 cat >"$tmp/defines.awk" <<\_ACAWK ||
1963218724 BEGIN {
1963318725 _ACEOF
1963418726
1964018732 # handling of long lines.
1964118733 ac_delim='%!_!# '
1964218734 for ac_last_try in false false :; do
19643 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19644 if test -z "$ac_tt"; then
18735 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18736 if test -z "$ac_t"; then
1964518737 break
1964618738 elif $ac_last_try; then
19647 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18739 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
1964818740 else
1964918741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1965018742 fi
1972918821 _ACAWK
1973018822 _ACEOF
1973118823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19732 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18824 as_fn_error "could not setup config headers machinery" "$LINENO" 5
1973318825 fi # test -n "$CONFIG_HEADERS"
1973418826
1973518827
1974218834 esac
1974318835 case $ac_mode$ac_tag in
1974418836 :[FHL]*:*);;
19745 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18837 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1974618838 :[FH]-) ac_tag=-:-;;
1974718839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1974818840 esac
1976118853 for ac_f
1976218854 do
1976318855 case $ac_f in
19764 -) ac_f="$ac_tmp/stdin";;
18856 -) ac_f="$tmp/stdin";;
1976518857 *) # Look for the file first in the build tree, then in the source tree
1976618858 # (if the path is not absolute). The absolute path cannot be DOS-style,
1976718859 # because $ac_f cannot contain `:'.
1977018862 [\\/$]*) false;;
1977118863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1977218864 esac ||
19773 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18865 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1977418866 esac
1977518867 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1977618868 as_fn_append ac_file_inputs " '$ac_f'"
1979618888 esac
1979718889
1979818890 case $ac_tag in
19799 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18891 *:-:* | *:-) cat >"$tmp/stdin" \
18892 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1980118893 esac
1980218894 ;;
1980318895 esac
1993319025 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1993419026 $ac_datarootdir_hack
1993519027 "
19936 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19937 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19028 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19029 || as_fn_error "could not create $ac_file" "$LINENO" 5
1993819030
1993919031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19940 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19942 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1994319034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19944 which seems to be undefined. Please make sure it is defined" >&5
19035 which seems to be undefined. Please make sure it is defined." >&5
1994519036 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19946 which seems to be undefined. Please make sure it is defined" >&2;}
19947
19948 rm -f "$ac_tmp/stdin"
19037 which seems to be undefined. Please make sure it is defined." >&2;}
19038
19039 rm -f "$tmp/stdin"
1994919040 case $ac_file in
19950 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19951 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19041 -) cat "$tmp/out" && rm -f "$tmp/out";;
19042 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1995219043 esac \
19953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19044 || as_fn_error "could not create $ac_file" "$LINENO" 5
1995419045 ;;
1995519046 :H)
1995619047 #
1995919050 if test x"$ac_file" != x-; then
1996019051 {
1996119052 $as_echo "/* $configure_input */" \
19962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19963 } >"$ac_tmp/config.h" \
19964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19965 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19053 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19054 } >"$tmp/config.h" \
19055 || as_fn_error "could not create $ac_file" "$LINENO" 5
19056 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
1996619057 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1996719058 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1996819059 else
1996919060 rm -f "$ac_file"
19970 mv "$ac_tmp/config.h" "$ac_file" \
19971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19061 mv "$tmp/config.h" "$ac_file" \
19062 || as_fn_error "could not create $ac_file" "$LINENO" 5
1997219063 fi
1997319064 else
1997419065 $as_echo "/* $configure_input */" \
19975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19976 || as_fn_error $? "could not create -" "$LINENO" 5
19066 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19067 || as_fn_error "could not create -" "$LINENO" 5
1997719068 fi
1997819069 # Compute "$ac_file"'s index in $config_headers.
1997919070 _am_arg="$ac_file"
2001919110
2002019111 case $ac_file$ac_mode in
2002119112 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20022 # Older Autoconf quotes --file arguments for eval, but not when files
19113 # Autoconf 2.62 quotes --file arguments for eval, but not when files
2002319114 # are listed without --file. Let's play safe and only enable the eval
2002419115 # if we detect the quoting.
2002519116 case $CONFIG_FILES in
2003219123 # Strip MF so we end up with the name of the file.
2003319124 mf=`echo "$mf" | sed -e 's/:.*$//'`
2003419125 # Check whether this is an Automake generated Makefile or not.
20035 # We used to match only the files named 'Makefile.in', but
19126 # We used to match only the files named `Makefile.in', but
2003619127 # some people rename them; so instead we look at the file content.
2003719128 # Grep'ing the first line is not enough: some people post-process
2003819129 # each Makefile.in and add a new line on top of each file to say so.
2006619157 continue
2006719158 fi
2006819159 # Extract the definition of DEPDIR, am__include, and am__quote
20069 # from the Makefile without running 'make'.
19160 # from the Makefile without running `make'.
2007019161 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2007119162 test -z "$DEPDIR" && continue
2007219163 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20073 test -z "$am__include" && continue
19164 test -z "am__include" && continue
2007419165 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19166 # When using ansi2knr, U may be empty or an underscore; expand it
19167 U=`sed -n 's/^U = //p' < "$mf"`
2007519168 # Find all dependency output files, they are included files with
2007619169 # $(DEPDIR) in their names. We invoke sed twice because it is the
2007719170 # simplest approach to changing $(DEPDIR) to its actual value in the
2007819171 # expansion.
2007919172 for file in `sed -n "
2008019173 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20081 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2008219175 # Make sure the directory exists.
2008319176 test -f "$dirpart/$file" && continue
2008419177 fdir=`$as_dirname -- "$file" ||
2013219225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
2013319226 #
2013419227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20135 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20136 # Foundation, Inc.
19228 # 2006, 2007, 2008 Free Software Foundation, Inc.
2013719229 # Written by Gordon Matzigkeit, 1996
2013819230 #
2013919231 # This file is part of GNU Libtool.
2018119273 # Whether or not to optimize for fast installation.
2018219274 fast_install=$enable_fast_install
2018319275
20184 # Shell to use when invoking shell scripts.
20185 SHELL=$lt_SHELL
20186
20187 # An echo program that protects backslashes.
20188 ECHO=$lt_ECHO
20189
20190 # The PATH separator for the build system.
20191 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20192
2019319276 # The host system.
2019419277 host_alias=$host_alias
2019519278 host=$host
2023919322 # turn newlines into spaces.
2024019323 NL2SP=$lt_lt_NL2SP
2024119324
20242 # convert \$build file names to \$host format.
20243 to_host_file_cmd=$lt_cv_to_host_file_cmd
20244
20245 # convert \$build files to toolchain format.
20246 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19325 # How to create reloadable object files.
19326 reload_flag=$lt_reload_flag
19327 reload_cmds=$lt_reload_cmds
2024719328
2024819329 # An object symbol dumper.
2024919330 OBJDUMP=$lt_OBJDUMP
2025119332 # Method to check whether dependent libraries are shared objects.
2025219333 deplibs_check_method=$lt_deplibs_check_method
2025319334
20254 # Command to use when deplibs_check_method = "file_magic".
19335 # Command to use when deplibs_check_method == "file_magic".
2025519336 file_magic_cmd=$lt_file_magic_cmd
20256
20257 # How to find potential files when deplibs_check_method = "file_magic".
20258 file_magic_glob=$lt_file_magic_glob
20259
20260 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20261 want_nocaseglob=$lt_want_nocaseglob
20262
20263 # DLL creation program.
20264 DLLTOOL=$lt_DLLTOOL
20265
20266 # Command to associate shared and link libraries.
20267 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
2026819337
2026919338 # The archiver.
2027019339 AR=$lt_AR
20271
20272 # Flags to create an archive.
2027319340 AR_FLAGS=$lt_AR_FLAGS
20274
20275 # How to feed a file listing to the archiver.
20276 archiver_list_spec=$lt_archiver_list_spec
2027719341
2027819342 # A symbol stripping program.
2027919343 STRIP=$lt_STRIP
2028319347 old_postinstall_cmds=$lt_old_postinstall_cmds
2028419348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
2028519349
20286 # Whether to use a lock for old archive extraction.
20287 lock_old_archive_extraction=$lock_old_archive_extraction
20288
2028919350 # A C compiler.
2029019351 LTCC=$lt_CC
2029119352
2030419365 # Transform the output of nm in a C name address pair when lib prefix is needed.
2030519366 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
2030619367
20307 # Specify filename containing input files for \$NM.
20308 nm_file_list_spec=$lt_nm_file_list_spec
20309
20310 # The root where to search for dependent libraries,and in which our libraries should be installed.
20311 lt_sysroot=$lt_sysroot
20312
2031319368 # The name of the directory that contains temporary libtool files.
2031419369 objdir=$objdir
2031519370
19371 # Shell to use when invoking shell scripts.
19372 SHELL=$lt_SHELL
19373
19374 # An echo program that does not interpret backslashes.
19375 ECHO=$lt_ECHO
19376
2031619377 # Used to examine libraries when file_magic_cmd begins with "file".
2031719378 MAGIC_CMD=$MAGIC_CMD
2031819379
2031919380 # Must we lock files when doing compilation?
2032019381 need_locks=$lt_need_locks
20321
20322 # Manifest tool.
20323 MANIFEST_TOOL=$lt_MANIFEST_TOOL
2032419382
2032519383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
2032619384 DSYMUTIL=$lt_DSYMUTIL
2037819436 # The coded name of the library, if different from the real name.
2037919437 soname_spec=$lt_soname_spec
2038019438
20381 # Permission mode override for installation of shared libraries.
20382 install_override_mode=$lt_install_override_mode
20383
2038419439 # Command to use after installation of a shared archive.
2038519440 postinstall_cmds=$lt_postinstall_cmds
2038619441
2042019475 # The linker used to build libraries.
2042119476 LD=$lt_LD
2042219477
20423 # How to create reloadable object files.
20424 reload_flag=$lt_reload_flag
20425 reload_cmds=$lt_reload_cmds
20426
2042719478 # Commands used to build an old-style archive.
2042819479 old_archive_cmds=$lt_old_archive_cmds
2042919480
2043619487 # Compiler flag to turn off builtin functions.
2043719488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
2043819489
19490 # How to pass a linker flag through the compiler.
19491 wl=$lt_lt_prog_compiler_wl
19492
2043919493 # Additional compiler flags for building library objects.
2044019494 pic_flag=$lt_lt_prog_compiler_pic
20441
20442 # How to pass a linker flag through the compiler.
20443 wl=$lt_lt_prog_compiler_wl
2044419495
2044519496 # Compiler flag to prevent dynamic linking.
2044619497 link_static_flag=$lt_lt_prog_compiler_static
2049019541 # Flag to hardcode \$libdir into a binary during linking.
2049119542 # This must work even if \$libdir does not exist
2049219543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19544
19545 # If ld is used when linking, flag to hardcode \$libdir into a binary
19546 # during linking. This must work even if \$libdir does not exist.
19547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
2049319548
2049419549 # Whether we need a single "-rpath" flag with a separated argument.
2049519550 hardcode_libdir_separator=$lt_hardcode_libdir_separator
2052419579 # Whether libtool must link a program against all its dependency libraries.
2052519580 link_all_deplibs=$link_all_deplibs
2052619581
19582 # Fix the shell variable \$srcfile for the compiler.
19583 fix_srcfile_path=$lt_fix_srcfile_path
19584
2052719585 # Set to "yes" if exported symbols are required.
2052819586 always_export_symbols=$always_export_symbols
2052919587
2053819596
2053919597 # Commands necessary for linking programs (against libraries) with templates.
2054019598 prelink_cmds=$lt_prelink_cmds
20541
20542 # Commands necessary for finishing linking programs.
20543 postlink_cmds=$lt_postlink_cmds
2054419599
2054519600 # Specify filename containing input files.
2054619601 file_list_spec=$lt_file_list_spec
2058819643 # if finds mixed CR/LF and LF-only lines. Since sed operates in
2058919644 # text mode, it properly converts lines to CR/LF. This bash problem
2059019645 # is reportedly fixed, but why not run on old versions too?
20591 sed '$q' "$ltmain" >> "$cfgfile" \
20592 || (rm -f "$cfgfile"; exit 1)
20593
20594 if test x"$xsi_shell" = xyes; then
20595 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20596 func_dirname ()\
20597 {\
20598 \ case ${1} in\
20599 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20600 \ * ) func_dirname_result="${3}" ;;\
20601 \ esac\
20602 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20603 && mv -f "$cfgfile.tmp" "$cfgfile" \
20604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20605 test 0 -eq $? || _lt_function_replace_fail=:
20606
20607
20608 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20609 func_basename ()\
20610 {\
20611 \ func_basename_result="${1##*/}"\
20612 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20613 && mv -f "$cfgfile.tmp" "$cfgfile" \
20614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20615 test 0 -eq $? || _lt_function_replace_fail=:
20616
20617
20618 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20619 func_dirname_and_basename ()\
20620 {\
20621 \ case ${1} in\
20622 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20623 \ * ) func_dirname_result="${3}" ;;\
20624 \ esac\
20625 \ func_basename_result="${1##*/}"\
20626 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20627 && mv -f "$cfgfile.tmp" "$cfgfile" \
20628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20629 test 0 -eq $? || _lt_function_replace_fail=:
20630
20631
20632 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20633 func_stripname ()\
20634 {\
20635 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20636 \ # positional parameters, so assign one to ordinary parameter first.\
20637 \ func_stripname_result=${3}\
20638 \ func_stripname_result=${func_stripname_result#"${1}"}\
20639 \ func_stripname_result=${func_stripname_result%"${2}"}\
20640 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20641 && mv -f "$cfgfile.tmp" "$cfgfile" \
20642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20643 test 0 -eq $? || _lt_function_replace_fail=:
20644
20645
20646 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20647 func_split_long_opt ()\
20648 {\
20649 \ func_split_long_opt_name=${1%%=*}\
20650 \ func_split_long_opt_arg=${1#*=}\
20651 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20652 && mv -f "$cfgfile.tmp" "$cfgfile" \
20653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20654 test 0 -eq $? || _lt_function_replace_fail=:
20655
20656
20657 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20658 func_split_short_opt ()\
20659 {\
20660 \ func_split_short_opt_arg=${1#??}\
20661 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20662 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20663 && mv -f "$cfgfile.tmp" "$cfgfile" \
20664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20665 test 0 -eq $? || _lt_function_replace_fail=:
20666
20667
20668 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20669 func_lo2o ()\
20670 {\
20671 \ case ${1} in\
20672 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20673 \ *) func_lo2o_result=${1} ;;\
20674 \ esac\
20675 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20676 && mv -f "$cfgfile.tmp" "$cfgfile" \
20677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20678 test 0 -eq $? || _lt_function_replace_fail=:
20679
20680
20681 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20682 func_xform ()\
20683 {\
20684 func_xform_result=${1%.*}.lo\
20685 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20686 && mv -f "$cfgfile.tmp" "$cfgfile" \
20687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20688 test 0 -eq $? || _lt_function_replace_fail=:
20689
20690
20691 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20692 func_arith ()\
20693 {\
20694 func_arith_result=$(( $* ))\
20695 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20696 && mv -f "$cfgfile.tmp" "$cfgfile" \
20697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20698 test 0 -eq $? || _lt_function_replace_fail=:
20699
20700
20701 sed -e '/^func_len ()$/,/^} # func_len /c\
20702 func_len ()\
20703 {\
20704 func_len_result=${#1}\
20705 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20706 && mv -f "$cfgfile.tmp" "$cfgfile" \
20707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20708 test 0 -eq $? || _lt_function_replace_fail=:
20709
20710 fi
20711
20712 if test x"$lt_shell_append" = xyes; then
20713 sed -e '/^func_append ()$/,/^} # func_append /c\
20714 func_append ()\
20715 {\
20716 eval "${1}+=\\${2}"\
20717 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20718 && mv -f "$cfgfile.tmp" "$cfgfile" \
20719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20720 test 0 -eq $? || _lt_function_replace_fail=:
20721
20722
20723 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20724 func_append_quoted ()\
20725 {\
20726 \ func_quote_for_eval "${2}"\
20727 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20728 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20729 && mv -f "$cfgfile.tmp" "$cfgfile" \
20730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20731 test 0 -eq $? || _lt_function_replace_fail=:
20732
20733
20734 # Save a `func_append' function call where possible by direct use of '+='
20735 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20736 && mv -f "$cfgfile.tmp" "$cfgfile" \
20737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20738 test 0 -eq $? || _lt_function_replace_fail=:
20739 else
20740 # Save a `func_append' function call even when '+=' is not available
20741 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20742 && mv -f "$cfgfile.tmp" "$cfgfile" \
20743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20744 test 0 -eq $? || _lt_function_replace_fail=:
20745 fi
20746
20747 if test x"$_lt_function_replace_fail" = x":"; then
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20749 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20750 fi
20751
20752
20753 mv -f "$cfgfile" "$ofile" ||
19646 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19647 || (rm -f "$cfgfile"; exit 1)
19648
19649 case $xsi_shell in
19650 yes)
19651 cat << \_LT_EOF >> "$cfgfile"
19652
19653 # func_dirname file append nondir_replacement
19654 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19655 # otherwise set result to NONDIR_REPLACEMENT.
19656 func_dirname ()
19657 {
19658 case ${1} in
19659 */*) func_dirname_result="${1%/*}${2}" ;;
19660 * ) func_dirname_result="${3}" ;;
19661 esac
19662 }
19663
19664 # func_basename file
19665 func_basename ()
19666 {
19667 func_basename_result="${1##*/}"
19668 }
19669
19670 # func_dirname_and_basename file append nondir_replacement
19671 # perform func_basename and func_dirname in a single function
19672 # call:
19673 # dirname: Compute the dirname of FILE. If nonempty,
19674 # add APPEND to the result, otherwise set result
19675 # to NONDIR_REPLACEMENT.
19676 # value returned in "$func_dirname_result"
19677 # basename: Compute filename of FILE.
19678 # value retuned in "$func_basename_result"
19679 # Implementation must be kept synchronized with func_dirname
19680 # and func_basename. For efficiency, we do not delegate to
19681 # those functions but instead duplicate the functionality here.
19682 func_dirname_and_basename ()
19683 {
19684 case ${1} in
19685 */*) func_dirname_result="${1%/*}${2}" ;;
19686 * ) func_dirname_result="${3}" ;;
19687 esac
19688 func_basename_result="${1##*/}"
19689 }
19690
19691 # func_stripname prefix suffix name
19692 # strip PREFIX and SUFFIX off of NAME.
19693 # PREFIX and SUFFIX must not contain globbing or regex special
19694 # characters, hashes, percent signs, but SUFFIX may contain a leading
19695 # dot (in which case that matches only a dot).
19696 func_stripname ()
19697 {
19698 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19699 # positional parameters, so assign one to ordinary parameter first.
19700 func_stripname_result=${3}
19701 func_stripname_result=${func_stripname_result#"${1}"}
19702 func_stripname_result=${func_stripname_result%"${2}"}
19703 }
19704
19705 # func_opt_split
19706 func_opt_split ()
19707 {
19708 func_opt_split_opt=${1%%=*}
19709 func_opt_split_arg=${1#*=}
19710 }
19711
19712 # func_lo2o object
19713 func_lo2o ()
19714 {
19715 case ${1} in
19716 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19717 *) func_lo2o_result=${1} ;;
19718 esac
19719 }
19720
19721 # func_xform libobj-or-source
19722 func_xform ()
19723 {
19724 func_xform_result=${1%.*}.lo
19725 }
19726
19727 # func_arith arithmetic-term...
19728 func_arith ()
19729 {
19730 func_arith_result=$(( $* ))
19731 }
19732
19733 # func_len string
19734 # STRING may not start with a hyphen.
19735 func_len ()
19736 {
19737 func_len_result=${#1}
19738 }
19739
19740 _LT_EOF
19741 ;;
19742 *) # Bourne compatible functions.
19743 cat << \_LT_EOF >> "$cfgfile"
19744
19745 # func_dirname file append nondir_replacement
19746 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19747 # otherwise set result to NONDIR_REPLACEMENT.
19748 func_dirname ()
19749 {
19750 # Extract subdirectory from the argument.
19751 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19752 if test "X$func_dirname_result" = "X${1}"; then
19753 func_dirname_result="${3}"
19754 else
19755 func_dirname_result="$func_dirname_result${2}"
19756 fi
19757 }
19758
19759 # func_basename file
19760 func_basename ()
19761 {
19762 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19763 }
19764
19765
19766 # func_stripname prefix suffix name
19767 # strip PREFIX and SUFFIX off of NAME.
19768 # PREFIX and SUFFIX must not contain globbing or regex special
19769 # characters, hashes, percent signs, but SUFFIX may contain a leading
19770 # dot (in which case that matches only a dot).
19771 # func_strip_suffix prefix name
19772 func_stripname ()
19773 {
19774 case ${2} in
19775 .*) func_stripname_result=`$ECHO "X${3}" \
19776 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19777 *) func_stripname_result=`$ECHO "X${3}" \
19778 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19779 esac
19780 }
19781
19782 # sed scripts:
19783 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19784 my_sed_long_arg='1s/^-[^=]*=//'
19785
19786 # func_opt_split
19787 func_opt_split ()
19788 {
19789 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19790 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19791 }
19792
19793 # func_lo2o object
19794 func_lo2o ()
19795 {
19796 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19797 }
19798
19799 # func_xform libobj-or-source
19800 func_xform ()
19801 {
19802 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19803 }
19804
19805 # func_arith arithmetic-term...
19806 func_arith ()
19807 {
19808 func_arith_result=`expr "$@"`
19809 }
19810
19811 # func_len string
19812 # STRING may not start with a hyphen.
19813 func_len ()
19814 {
19815 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19816 }
19817
19818 _LT_EOF
19819 esac
19820
19821 case $lt_shell_append in
19822 yes)
19823 cat << \_LT_EOF >> "$cfgfile"
19824
19825 # func_append var value
19826 # Append VALUE to the end of shell variable VAR.
19827 func_append ()
19828 {
19829 eval "$1+=\$2"
19830 }
19831 _LT_EOF
19832 ;;
19833 *)
19834 cat << \_LT_EOF >> "$cfgfile"
19835
19836 # func_append var value
19837 # Append VALUE to the end of shell variable VAR.
19838 func_append ()
19839 {
19840 eval "$1=\$$1\$2"
19841 }
19842
19843 _LT_EOF
19844 ;;
19845 esac
19846
19847
19848 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19849 || (rm -f "$cfgfile"; exit 1)
19850
19851 mv -f "$cfgfile" "$ofile" ||
2075419852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2075519853 chmod +x "$ofile"
2075619854
2076219860 # The linker used to build libraries.
2076319861 LD=$lt_LD_CXX
2076419862
20765 # How to create reloadable object files.
20766 reload_flag=$lt_reload_flag_CXX
20767 reload_cmds=$lt_reload_cmds_CXX
20768
2076919863 # Commands used to build an old-style archive.
2077019864 old_archive_cmds=$lt_old_archive_cmds_CXX
2077119865
2077819872 # Compiler flag to turn off builtin functions.
2077919873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
2078019874
19875 # How to pass a linker flag through the compiler.
19876 wl=$lt_lt_prog_compiler_wl_CXX
19877
2078119878 # Additional compiler flags for building library objects.
2078219879 pic_flag=$lt_lt_prog_compiler_pic_CXX
20783
20784 # How to pass a linker flag through the compiler.
20785 wl=$lt_lt_prog_compiler_wl_CXX
2078619880
2078719881 # Compiler flag to prevent dynamic linking.
2078819882 link_static_flag=$lt_lt_prog_compiler_static_CXX
2083219926 # Flag to hardcode \$libdir into a binary during linking.
2083319927 # This must work even if \$libdir does not exist
2083419928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19929
19930 # If ld is used when linking, flag to hardcode \$libdir into a binary
19931 # during linking. This must work even if \$libdir does not exist.
19932 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
2083519933
2083619934 # Whether we need a single "-rpath" flag with a separated argument.
2083719935 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
2086619964 # Whether libtool must link a program against all its dependency libraries.
2086719965 link_all_deplibs=$link_all_deplibs_CXX
2086819966
19967 # Fix the shell variable \$srcfile for the compiler.
19968 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19969
2086919970 # Set to "yes" if exported symbols are required.
2087019971 always_export_symbols=$always_export_symbols_CXX
2087119972
2088019981
2088119982 # Commands necessary for linking programs (against libraries) with templates.
2088219983 prelink_cmds=$lt_prelink_cmds_CXX
20883
20884 # Commands necessary for finishing linking programs.
20885 postlink_cmds=$lt_postlink_cmds_CXX
2088619984
2088719985 # Specify filename containing input files.
2088819986 file_list_spec=$lt_file_list_spec_CXX
2091820016 ac_clean_files=$ac_clean_files_save
2091920017
2092020018 test $ac_write_fail = 0 ||
20921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20019 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
2092220020
2092320021
2092420022 # configure is writing to config.log, and then calls config.status.
2093920037 exec 5>>config.log
2094020038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2094120039 # would make configure fail if this is the last instruction.
20942 $ac_cs_success || as_fn_exit 1
20040 $ac_cs_success || as_fn_exit $?
2094320041 fi
2094420042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
2094520043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11
22 m4_define([VERSION_MAJOR], [1])
33 m4_define([VERSION_MINOR], [4])
4 m4_define([VERSION_POINT], [1])
4 m4_define([VERSION_POINT], [2])
55 m4_define([GEOTIFF_VERSION],
66 [VERSION_MAJOR.VERSION_MINOR.VERSION_POINT])
77
174174 if test "${JPEG_CONFIG}" = "yes" ; then
175175 if test -d ${with_jpeg}/include ; then
176176 JPEG_INC="-I$with_jpeg/include"
177 LIBS="-L$with_jpeg/lib $LIBS"
177178 AC_MSG_RESULT([using jpeg from $with_jpeg/include])
178179 fi
179180 fi
499499 }
500500 else
501501 {
502 fprintf(stderr, "ERROR %d: %s\n", gnCPLLastErrNo, gszCPLLastErrMsg);
502 if( eErrClass == CE_Warning )
503 fprintf(stderr, "Warning %d: %s\n", gnCPLLastErrNo, gszCPLLastErrMsg);
504 else
505 fprintf(stderr, "ERROR %d: %s\n", gnCPLLastErrNo, gszCPLLastErrMsg);
503506 }
504507
505508 if( eErrClass == CE_Fatal )
4040 #ifdef HAVE_STRING_H
4141 # include <string.h>
4242 #endif
43 #if defined(HAVE_STRINGS_H) && !defined(HAVE_STRING_H)
43 #ifdef HAVE_STRINGS_H
4444 # include <strings.h>
4545 #endif
4646 #ifdef HAVE_STDLIB_H
+190
-351
depcomp less more
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
67
78 # This program is free software; you can redistribute it and/or modify
89 # it under the terms of the GNU General Public License as published by
2627
2728 case $1 in
2829 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
3233 -h | --h*)
3334 cat <<\EOF
3435 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
3839
3940 Environment variables:
4041 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
4344 DEPDIR directory where to store dependencies.
4445 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 tmpdepfile Temporary file to use when outputing dependencies.
4647 libtool Whether libtool is used (yes/no).
4748
4849 Report bugs to <bug-automake@gnu.org>.
5556 ;;
5657 esac
5758
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
11859 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
11960 echo "depcomp: Variables source, object and depmode must be set" 1>&2
12061 exit 1
12667 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
12768
12869 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
13270
13371 # Some modes work just like other modes, but use different flags. We
13472 # parameterize here, but still list the modes in the big case below,
14179 fi
14280
14381 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
14785 fi
14886
14987 cygpath_u="cygpath -u -f -"
15088 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
17094 fi
17195
17296 case "$depmode" in
189113 done
190114 "$@"
191115 stat=$?
192 if test $stat -ne 0; then
116 if test $stat -eq 0; then :
117 else
193118 rm -f "$tmpdepfile"
194119 exit $stat
195120 fi
197122 ;;
198123
199124 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203125 ## There are various ways to get dependency output from gcc. Here's
204126 ## why we pick this rather obscure method:
205127 ## - Don't want to use -MD because we'd like the dependencies to end
206128 ## up in a subdir. Having to rename by hand is ugly.
207129 ## (We might end up doing this anyway to support other compilers.)
208130 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
131 ## -MM, not -M (despite what the docs say).
211132 ## - Using -M directly means running the compiler twice (even worse
212133 ## than renaming).
213134 if test -z "$gccflag"; then
215136 fi
216137 "$@" -Wp,"$gccflag$tmpdepfile"
217138 stat=$?
218 if test $stat -ne 0; then
139 if test $stat -eq 0; then :
140 else
219141 rm -f "$tmpdepfile"
220142 exit $stat
221143 fi
222144 rm -f "$depfile"
223145 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
226148 sed -e 's/^[^:]*: / /' \
227149 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
150 ## This next piece of magic avoids the `deleted header file' problem.
229151 ## The problem is that when a header file which appears in a .P file
230152 ## is deleted, the dependency causes make to die (because there is
231153 ## typically no way to rebuild the header). We avoid this by adding
232154 ## dummy dependencies for each header file. Too bad gcc doesn't do
233155 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
235159 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
160 ## well.
238161 ## Some versions of the HPUX 10.20 sed can't process this invocation
239162 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
243164 rm -f "$tmpdepfile"
244165 ;;
245166
257178 "$@" -MDupdate "$tmpdepfile"
258179 fi
259180 stat=$?
260 if test $stat -ne 0; then
181 if test $stat -eq 0; then :
182 else
261183 rm -f "$tmpdepfile"
262184 exit $stat
263185 fi
265187
266188 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267189 echo "$object : \\" > "$depfile"
190
268191 # Clip off the initial element (the dependent). Don't try to be
269192 # clever and replace this with sed code, as IRIX sed won't handle
270193 # lines with more than a fixed number of characters (4096 in
271194 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
195 # the IRIX cc adds comments like `#:fec' to the end of the
273196 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
277202 echo >> "$depfile"
203
278204 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
209 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
284214 fi
285215 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293216 ;;
294217
295218 aix)
296219 # The C for AIX Compiler uses -M and outputs the dependencies
297220 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
221 # current directory. Also, the AIX compiler puts `$object:' at the
299222 # start of each line; $object doesn't have directory information.
300223 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
303227 if test "$libtool" = yes; then
304228 tmpdepfile1=$dir$base.u
305229 tmpdepfile2=$base.u
312236 "$@" -M
313237 fi
314238 stat=$?
315 if test $stat -ne 0; then
239
240 if test $stat -eq 0; then :
241 else
316242 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317243 exit $stat
318244 fi
321247 do
322248 test -f "$tmpdepfile" && break
323249 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
355263 rm -f "$tmpdepfile"
356264 ;;
357265
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
368278 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
279 # and will wrap long lines using \ :
370280 # foo.o: sub/foo.c ... \
371281 # sub/foo.h ... \
372282 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
418288 rm -f "$tmpdepfile"
419289 exit $stat
420290 fi
426296 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427297 # Some versions of the HPUX 10.20 sed can't process this invocation
428298 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
431301 rm -f "$tmpdepfile"
432302 ;;
433303
438308 # 'foo.d', which lands next to the object file, wherever that
439309 # happens to be.
440310 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
443314 if test "$libtool" = yes; then
444315 tmpdepfile1=$dir$base.d
445316 tmpdepfile2=$dir.libs/$base.d
450321 "$@" +Maked
451322 fi
452323 stat=$?
453 if test $stat -ne 0; then
324 if test $stat -eq 0; then :
325 else
454326 rm -f "$tmpdepfile1" "$tmpdepfile2"
455327 exit $stat
456328 fi
460332 test -f "$tmpdepfile" && break
461333 done
462334 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
465337 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
343 else
344 echo "#dummy" > "$depfile"
473345 fi
474346 rm -f "$tmpdepfile" "$tmpdepfile2"
475347 ;;
476348
477349 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
564406
565407 #nosideeffect)
566408 # This comment above is used by automake to tell side-effect
579421 shift
580422 fi
581423
582 # Remove '-o $object'.
424 # Remove `-o $object'.
583425 IFS=" "
584426 for arg
585427 do
599441 done
600442
601443 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
444 # Require at least two characters before searching for `:'
603445 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
605447 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
607449 rm -f "$depfile"
608450 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
614456 rm -f "$tmpdepfile"
615457 ;;
616458
660502 touch "$tmpdepfile"
661503 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662504 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
672511 rm -f "$tmpdepfile" "$tmpdepfile".bak
673512 ;;
674513
685524 shift
686525 fi
687526
688 # Remove '-o $object'.
527 # Remove `-o $object'.
689528 IFS=" "
690529 for arg
691530 do
704543 esac
705544 done
706545
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
711550 rm -f "$depfile"
712551 echo "$object : \\" > "$depfile"
713552 cat < "$tmpdepfile" >> "$depfile"
739578 shift
740579 ;;
741580 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
581 set fnord "$@"
582 shift
583 shift
584 ;;
746585 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
751590 esac
752591 done
753592 "$@" -E 2>/dev/null |
754593 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755594 rm -f "$depfile"
756595 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
759598 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760599 rm -f "$tmpdepfile"
761600 ;;
00 /******************************************************************************
1 * $Id: geo_extra.c 1568 2009-04-22 21:10:55Z warmerdam $
1 * $Id: geo_extra.c 2691 2015-12-06 21:54:31Z rouault $
22 *
33 * Project: libgeotiff
44 * Purpose: Code to normalize a few common PCS values without use of CSV
3636 #include "geo_normalize.h"
3737 #include "geovalues.h"
3838
39 static int StatePlaneTable[] =
39 static const int StatePlaneTable[] =
4040 {
4141 PCS_NAD83_Alabama_East, Proj_Alabama_CS83_East,
4242 PCS_NAD83_Alabama_West, Proj_Alabama_CS83_West,
706706 }
707707
708708 /* -------------------------------------------------------------------- */
709 /* Handle State Plane. I think there are some anomolies in */
709 /* Handle State Plane. I think there are some anomalies in */
710710 /* here, so this is a bit risky. */
711711 /* -------------------------------------------------------------------- */
712712 else if( ProjCode >= 10101 && ProjCode <= 15299 )
3636
3737 int GTIFKeyInfo(GTIF *gtif, geokey_t key, int *size, tagtype_t* type)
3838 {
39 int index = gtif->gt_keyindex[ key ];
39 int nIndex = gtif->gt_keyindex[ key ];
4040 GeoKey *keyptr;
4141
42 if (!index) return 0;
42 if (!nIndex) return 0;
4343
44 keyptr = gtif->gt_keys + index;
44 keyptr = gtif->gt_keys + nIndex;
4545 if (size) *size = (int) keyptr->gk_size;
4646 if (type) *type = keyptr->gk_type;
4747
48 return keyptr->gk_count;
48 return (int)keyptr->gk_count;
4949 }
5050
5151 /**
146146 </pre>
147147 */
148148
149 int GTIFKeyGet(GTIF *gtif, geokey_t thekey, void *val, int index, int count)
149 int GTIFKeyGet(GTIF *gtif, geokey_t thekey, void *val, int nIndex, int count)
150150 {
151151 int kindex = gtif->gt_keyindex[ thekey ];
152152 GeoKey *key;
157157 if (!kindex) return 0;
158158
159159 key = gtif->gt_keys+kindex;
160 if (!count) count = key->gk_count - index;
160 if (!count) count = (int) (key->gk_count - nIndex);
161161 if (count <=0) return 0;
162 if (count > key->gk_count) count = key->gk_count;
162 if (count > key->gk_count) count = (int) key->gk_count;
163163 size = key->gk_size;
164164 type = key->gk_type;
165165
166166 if (count==1 && type==TYPE_SHORT) data = (char *)&key->gk_data;
167167 else data = key->gk_data;
168168
169 _GTIFmemcpy( val, data + index*size, count*size );
169 _GTIFmemcpy( val, data + nIndex*size, count*size );
170170
171171 if (type==TYPE_ASCII)
172172 ((char *)val)[count-1] = '\0'; /* replace last char with NULL */
99 * notice accompanies any products derived therefrom.
1010 **********************************************************************/
1111
12 #ifndef __geo_keyp_h_
13 #define __geo_keyp_h_
12 #ifndef LIBGEOTIFF_GEO_KEYP_H_
13 #define LIBGEOTIFF_GEO_KEYP_H_
1414
1515 #include <stdlib.h> /* for size_t */
1616
9797 #define MAX_KEYS 100 /* maximum keys in a file */
9898 #define MAX_VALUES 1000 /* maximum values in a tag */
9999
100 #endif /* __geo_keyp_h_ */
100 #endif /* LIBGEOTIFF_GEO_KEYP_H_ */
101101
1616 #include "geonames.h"
1717 #include "geo_tiffp.h" /* for tag names */
1818
19 static KeyInfo _formatInfo[] = {
19 static const KeyInfo _formatInfo[] = {
2020 {TYPE_BYTE, "Byte"},
2121 {TYPE_SHORT, "Short"},
2222 {TYPE_LONG, "Long"},
3131 END_LIST
3232 };
3333
34 static KeyInfo _tagInfo[] = {
34 static const KeyInfo _tagInfo[] = {
3535 {GTIFF_PIXELSCALE, "ModelPixelScaleTag"},
3636 {GTIFF_TRANSMATRIX, "ModelTransformationTag"},
3737 {GTIFF_TIEPOINTS, "ModelTiepointTag"},
4040 END_LIST
4141 };
4242
43 static char *FindName(KeyInfo *info,int key)
43 static char *FindName(const KeyInfo *info,int key)
4444 {
4545 static char errmsg[80];
4646
7171
7272 char *GTIFValueName(geokey_t key, int value)
7373 {
74 KeyInfo *info;
74 const KeyInfo *info;
7575
7676 switch (key)
7777 {
108108 */
109109
110110
111 static int FindCode(KeyInfo *info,char *key)
111 static int FindCode(const KeyInfo *info,char *key)
112112 {
113113 while (info->ki_key>=0 && strcmp(info->ki_name,key) ) info++;
114114
148148 */
149149 int GTIFValueCode(geokey_t key, char *name)
150150 {
151 KeyInfo *info;
151 const KeyInfo *info;
152152
153153 switch (key)
154154 {
7979 GTIF* GTIFNewWithMethods(void *tif, TIFFMethod* methods)
8080 {
8181 GTIF* gt=(GTIF*)0;
82 int count,bufcount,index;
82 int count,bufcount,nIndex;
8383 GeoKey *keyptr;
8484 pinfo_t *data;
8585 KeyEntry *entptr;
177177 keyptr = gt->gt_keys;
178178 gt->gt_keymin = MAX_KEYINDEX;
179179 gt->gt_keymax = 0;
180 for (index=1; index<=count; index++,entptr++)
180 for (nIndex=1; nIndex<=count; nIndex++,entptr++)
181181 {
182182 if (!ReadKey(gt, &tempData, entptr, ++keyptr))
183183 goto failure;
184184
185185 /* Set up the index (start at 1, since 0=unset) */
186 gt->gt_keyindex[entptr->ent_key] = index;
186 gt->gt_keyindex[entptr->ent_key] = nIndex;
187187 }
188188
189189 if( tempData.tk_asciiParams != NULL )
214214 KeyEntry* entptr, GeoKey* keyptr)
215215 {
216216 int offset,count;
217
217
218218 keyptr->gk_key = entptr->ent_key;
219219 keyptr->gk_count = entptr->ent_count;
220220 count = entptr->ent_count;
221221 offset = entptr->ent_val_offset;
222222 if (gt->gt_keymin > keyptr->gk_key) gt->gt_keymin=keyptr->gk_key;
223223 if (gt->gt_keymax < keyptr->gk_key) gt->gt_keymax=keyptr->gk_key;
224
224
225225 if (entptr->ent_location)
226226 keyptr->gk_type = (gt->gt_methods.type)(gt->gt_tif,entptr->ent_location);
227227 else
228228 keyptr->gk_type = (gt->gt_methods.type)(gt->gt_tif,GTIFF_GEOKEYDIRECTORY);
229
229
230230 switch (entptr->ent_location)
231231 {
232232 case GTIFF_LOCAL:
233233 /* store value into data value */
234 *(pinfo_t *)(&keyptr->gk_data) = entptr->ent_val_offset;
234 memcpy(&keyptr->gk_data, &(entptr->ent_val_offset), sizeof(pinfo_t));
235235 break;
236236 case GTIFF_GEOKEYDIRECTORY:
237237 keyptr->gk_data = (char *)(gt->gt_short+offset);
238238 if (gt->gt_nshorts < offset+count)
239 gt->gt_nshorts = offset+count;
239 return 0;
240240 break;
241241 case GTIFF_DOUBLEPARAMS:
242242 keyptr->gk_data = (char *)(gt->gt_double+offset);
243243 if (gt->gt_ndoubles < offset+count)
244 gt->gt_ndoubles = offset+count;
244 return 0;
245245 break;
246246 case GTIFF_ASCIIPARAMS:
247 if( tempData->tk_asciiParams == NULL )
248 return 0;
247249 if( offset + count == tempData->tk_asciiParamsLength + 1
248250 && count > 0 )
249251 {
00 /******************************************************************************
1 * $Id: geo_normalize.c 2473 2014-07-31 13:55:18Z hobu $
1 * $Id: geo_normalize.c 2712 2016-01-11 11:36:59Z rouault $
22 *
33 * Project: libgeotiff
44 * Purpose: Code to normalize PCS and other composite codes in a GeoTIFF file.
3535 # define KvUserDefined 32767
3636 #endif
3737
38 #ifndef PI
39 # define PI 3.14159265358979323846
38 #ifndef M_PI
39 # define M_PI 3.14159265358979323846
4040 #endif
4141
4242 /* EPSG Codes for projection parameters. Unfortunately, these bear no
7272 #define EPSGTopocentricOriginLong 8835
7373 #define EPSGTopocentricOriginHeight 8836
7474
75 #define CT_Ext_Mercator_2SP -CT_Mercator
76
77 #ifndef CPL_INLINE
78 #if (defined(__GNUC__) && !defined(__NO_INLINE__)) || defined(_MSC_VER)
79 #define HAS_CPL_INLINE 1
80 #define CPL_INLINE __inline
81 #elif defined(__SUNPRO_CC)
82 #define HAS_CPL_INLINE 1
83 #define CPL_INLINE inline
84 #else
85 #define CPL_INLINE
86 #endif
87 #endif
88
89 #ifndef CPL_UNUSED
90 #if defined(__GNUC__) && __GNUC__ >= 4
91 # define CPL_UNUSED __attribute((__unused__))
92 #else
93 /* TODO: add cases for other compilers */
94 # define CPL_UNUSED
95 #endif
96 #endif
97
98 CPL_INLINE static void CPL_IGNORE_RET_VAL_INT(CPL_UNUSED int unused) {}
99
75100 /************************************************************************/
76101 /* GTIFGetPCSInfo() */
77102 /************************************************************************/
145170 szSearchKey, CC_Integer );
146171
147172 if( papszRecord == NULL )
173 {
174 static int bWarnedOrTried = FALSE;
175 if( !bWarnedOrTried )
176 {
177 FILE* f = VSIFOpen(CSVFilename( "pcs.csv" ), "rb");
178 if( f == NULL )
179 CPLError(CE_Warning, CPLE_AppDefined, "Cannot find pcs.csv");
180 else
181 VSIFClose(f);
182 bWarnedOrTried = TRUE;
183 }
148184 return FALSE;
185 }
149186 }
150187
151188 /* -------------------------------------------------------------------- */
188225 if( atoi(pszValue) > 0 )
189226 *pnProjOp = (short) atoi(pszValue);
190227 else
191 *pnUOMLengthCode = KvUserDefined;
228 *pnProjOp = KvUserDefined;
192229 }
193230
194231 /* -------------------------------------------------------------------- */
213250 /************************************************************************/
214251 /* GTIFAngleToDD() */
215252 /* */
216 /* Convert a numeric angle to decimal degress. */
253 /* Convert a numeric angle to decimal degrees. */
217254 /************************************************************************/
218255
219256 double GTIFAngleToDD( double dfAngle, int nUOMAngle )
296333 }
297334 else if( nUOMAngle == 9101 ) /* radians */
298335 {
299 dfAngle = 180 * (GTIFAtof(pszAngle ) / PI);
336 dfAngle = 180 * (GTIFAtof(pszAngle ) / M_PI);
300337 }
301338 else if( nUOMAngle == 9103 ) /* arc-minute */
302339 {
306343 {
307344 dfAngle = GTIFAtof(pszAngle) / 3600;
308345 }
309 else /* decimal degrees ... some cases missing but seeminly never used */
346 else /* decimal degrees ... some cases missing but seemingly never used */
310347 {
311348 CPLAssert( nUOMAngle == 9102 || nUOMAngle == KvUserDefined
312349 || nUOMAngle == 0 );
397434
398435 if( nDatum < 1 )
399436 {
437 static int bWarnedOrTried = FALSE;
438 if( !bWarnedOrTried )
439 {
440 FILE* f = VSIFOpen(CSVFilename( "gcs.csv" ), "rb");
441 if( f == NULL )
442 CPLError(CE_Warning, CPLE_AppDefined, "Cannot find gcs.csv");
443 else
444 VSIFClose(f);
445 bWarnedOrTried = TRUE;
446 }
400447 return FALSE;
401448 }
402449
520567
521568 if( dfSemiMajor == 0.0 )
522569 {
570 static int bWarnedOrTried = FALSE;
571 if( !bWarnedOrTried )
572 {
573 FILE* f = VSIFOpen(CSVFilename( "ellipsoid.csv" ), "rb");
574 if( f == NULL )
575 CPLError(CE_Warning, CPLE_AppDefined, "Cannot find ellipsoid.csv");
576 else
577 VSIFClose(f);
578 bWarnedOrTried = TRUE;
579 }
523580 return FALSE;
524581 }
525582
549606
550607 if( *pdfSemiMinor == 0.0 )
551608 {
552 double dfInvFlattening;
553
554609 dfInvFlattening =
555610 GTIFAtof(CSVGetField( CSVFilename("ellipsoid.csv"),
556611 "ELLIPSOID_CODE", szSearchKey, CC_Integer,
608663 "PRIME_MERIDIAN_CODE", szSearchKey, CC_Integer,
609664 "UOM_CODE" ) );
610665 if( nUOMAngle < 1 )
666 {
667 static int bWarnedOrTried = FALSE;
668 if( !bWarnedOrTried )
669 {
670 FILE* f = VSIFOpen(CSVFilename( "prime_meridian.csv" ), "rb");
671 if( f == NULL )
672 CPLError(CE_Warning, CPLE_AppDefined, "Cannot find prime_meridian.csv");
673 else
674 VSIFClose(f);
675 bWarnedOrTried = TRUE;
676 }
611677 return FALSE;
678 }
612679
613680 /* -------------------------------------------------------------------- */
614681 /* Get the PM offset. */
716783
717784 if( nEllipsoid < 1 )
718785 {
786 static int bWarnedOrTried = FALSE;
787 if( !bWarnedOrTried )
788 {
789 FILE* f = VSIFOpen(CSVFilename( "datum.csv" ), "rb");
790 if( f == NULL )
791 f = VSIFOpen(CSVFilename( "gdal_datum.csv" ), "rb");
792 if( f == NULL )
793 CPLError(CE_Warning, CPLE_AppDefined, "Cannot find datum.csv or gdal_datum.csv");
794 else
795 VSIFClose(f);
796 bWarnedOrTried = TRUE;
797 }
719798 return FALSE;
720799 }
721800
846925 {
847926 case 9101:
848927 pszUOMName = "radian";
849 dfInDegrees = 180.0 / PI;
928 dfInDegrees = 180.0 / M_PI;
850929 break;
851930
852931 case 9102:
880959
881960 case 9109:
882961 pszUOMName = "microradian";
883 dfInDegrees = 180.0 / (PI * 1000000.0);
962 dfInDegrees = 180.0 / (M_PI * 1000000.0);
884963 break;
885964
886965 default:
891970 {
892971 if( ppszUOMName != NULL )
893972 {
894 if( pszUOMName != NULL )
895 *ppszUOMName = CPLStrdup( pszUOMName );
896 else
897 *ppszUOMName = NULL;
973 *ppszUOMName = CPLStrdup( pszUOMName );
898974 }
899975
900976 if( pdfInDegrees != NULL )
9321008 if( dfFactorC != 0.0 )
9331009 {
9341010 dfInRadians = (dfFactorB / dfFactorC);
935 dfInDegrees = dfInRadians * 180.0 / PI;
1011 dfInDegrees = dfInRadians * 180.0 / M_PI;
9361012 }
1013
1014 if( ppszUOMName != NULL )
1015 *ppszUOMName = CPLStrdup( pszUOMName );
9371016 }
9381017 else
9391018 {
9431022 /* -------------------------------------------------------------------- */
9441023 /* Return to caller. */
9451024 /* -------------------------------------------------------------------- */
946 if( ppszUOMName != NULL )
947 {
948 if( pszUOMName != NULL )
949 *ppszUOMName = CPLStrdup( pszUOMName );
950 else
951 *ppszUOMName = NULL;
952 }
9531025
9541026 if( pdfInDegrees != NULL )
9551027 *pdfInDegrees = dfInDegrees;
9641036 /* and the GeoTIFF CT codes. */
9651037 /************************************************************************/
9661038
967 static int EPSGProjMethodToCTProjMethod( int nEPSG )
1039 static int EPSGProjMethodToCTProjMethod( int nEPSG, int bReturnExtendedCTCode )
9681040
9691041 {
9701042 /* see trf_method.csv for list of EPSG codes */
9841056 return( CT_Mercator ); /* 1SP and 2SP not differentiated */
9851057
9861058 case 9805:
987 return( CT_Mercator ); /* 1SP and 2SP not differentiated */
1059 if( bReturnExtendedCTCode )
1060 return( CT_Ext_Mercator_2SP );
1061 else
1062 return( CT_Mercator ); /* 1SP and 2SP not differentiated */
9881063
9891064 /* Mercator 1SP (Spherical) For EPSG:3785 */
9901065 case 9841:
10281103 case 9816: /* tunesia mining grid has no counterpart */
10291104 return( KvUserDefined );
10301105
1106 case 9818:
1107 return( CT_Polyconic );
1108
10311109 case 9820:
10321110 case 1027:
10331111 return( CT_LambertAzimEqualArea );
10371115
10381116 case 9834:
10391117 return( CT_CylindricalEqualArea );
1118
1119 case 1028:
1120 case 1029:
1121 case 9823: /* spherical */
1122 case 9842: /* elliptical */
1123 return( CT_Equirectangular );
10401124
10411125 default: /* use the EPSG code for other methods */
10421126 return nEPSG;
10431127 }
1044
1045 return( KvUserDefined );
10461128 }
10471129
10481130 /************************************************************************/
10491131 /* SetGTParmIds() */
10501132 /* */
1051 /* This is hardcoded logic to set the GeoTIFF parmaeter */
1133 /* This is hardcoded logic to set the GeoTIFF parameter */
10521134 /* identifiers for all the EPSG supported projections. As the */
10531135 /* trf_method.csv table grows with new projections, this code */
10541136 /* will need to be updated. */
10741156 {
10751157 case CT_CassiniSoldner:
10761158 case CT_NewZealandMapGrid:
1159 case CT_Polyconic:
10771160 panProjParmId[0] = ProjNatOriginLatGeoKey;
10781161 panProjParmId[1] = ProjNatOriginLongGeoKey;
10791162 panProjParmId[5] = ProjFalseEastingGeoKey;
12041287 panEPSGCodes[6] = EPSGFalseOriginNorthing;
12051288 return TRUE;
12061289
1290 case CT_Equirectangular:
1291 panProjParmId[0] = ProjCenterLatGeoKey;
1292 panProjParmId[1] = ProjCenterLongGeoKey;
1293 panProjParmId[2] = ProjStdParallel1GeoKey;
1294 panProjParmId[5] = ProjFalseEastingGeoKey;
1295 panProjParmId[6] = ProjFalseNorthingGeoKey;
1296
1297 panEPSGCodes[0] = EPSGNatOriginLat;
1298 panEPSGCodes[1] = EPSGNatOriginLong;
1299 panEPSGCodes[2] = EPSGStdParallel1Lat;
1300 panEPSGCodes[5] = EPSGFalseEasting;
1301 panEPSGCodes[6] = EPSGFalseNorthing;
1302 return TRUE;
1303
1304 case CT_Ext_Mercator_2SP:
1305 panProjParmId[0] = ProjNatOriginLatGeoKey;
1306 panProjParmId[1] = ProjNatOriginLongGeoKey;
1307 panProjParmId[2] = ProjStdParallel1GeoKey;
1308 panProjParmId[5] = ProjFalseEastingGeoKey;
1309 panProjParmId[6] = ProjFalseNorthingGeoKey;
1310
1311 panEPSGCodes[0] = EPSGNatOriginLat;
1312 panEPSGCodes[1] = EPSGNatOriginLong;
1313 panEPSGCodes[2] = EPSGStdParallel1Lat;
1314 panEPSGCodes[5] = EPSGFalseEasting;
1315 panEPSGCodes[6] = EPSGFalseNorthing;
1316 return TRUE;
1317
12071318 default:
12081319 return( FALSE );
12091320 }
12921403 /* Initialize a definition of what EPSG codes need to be loaded */
12931404 /* into what fields in adfProjParms. */
12941405 /* -------------------------------------------------------------------- */
1295 nCTProjMethod = EPSGProjMethodToCTProjMethod( nProjMethod );
1406 nCTProjMethod = EPSGProjMethodToCTProjMethod( nProjMethod, TRUE );
12961407 SetGTParmIds( nCTProjMethod, NULL, anEPSGCodes );
12971408
12981409 /* -------------------------------------------------------------------- */
13451456 nEPSGCode = EPSGFalseEasting;
13461457 else if ( nCTProjMethod == CT_ObliqueMercator && nEPSGCode == EPSGProjCenterNorthing )
13471458 nEPSGCode = EPSGFalseNorthing;
1459 /* for CT_PolarStereographic try alternate parameter codes first */
1460 /* because EPSG proj method 9829 uses EPSGLatOfStdParallel instead of EPSGNatOriginLat */
1461 /* and EPSGOriginLong instead of EPSGNatOriginLong */
1462 else if( nCTProjMethod == CT_PolarStereographic && nEPSGCode == EPSGNatOriginLat )
1463 nEPSGCode = EPSGLatOfStdParallel;
1464 else if( nCTProjMethod == CT_PolarStereographic && nEPSGCode == EPSGNatOriginLong )
1465 nEPSGCode = EPSGOriginLong;
13481466 else
13491467 continue;
13501468
14171535 }
14181536
14191537 /************************************************************************/
1538 /* GTIFKeyGetInternal() */
1539 /************************************************************************/
1540
1541 static int GTIFKeyGetInternal( GTIF *psGTIF, geokey_t key,
1542 void* pData,
1543 int nIndex,
1544 int nCount,
1545 tagtype_t expected_tagtype )
1546 {
1547 tagtype_t tagtype;
1548 if( !GTIFKeyInfo(psGTIF, key, NULL, &tagtype) )
1549 return 0;
1550 if( tagtype != expected_tagtype )
1551 {
1552 static int nErrorCount = 0;
1553 if( ++nErrorCount < 100 )
1554 {
1555 fprintf(stderr,
1556 "Expected key %s to be of type %s. Got %s\n",
1557 GTIFKeyName(key), GTIFTypeName(expected_tagtype),
1558 GTIFTypeName(tagtype));
1559 }
1560 return 0;
1561 }
1562 return GTIFKeyGet( psGTIF, key, pData, nIndex, nCount );
1563 }
1564
1565 /************************************************************************/
1566 /* GTIFKeyGetSHORT() */
1567 /************************************************************************/
1568
1569 static int GTIFKeyGetSHORT( GTIF *psGTIF, geokey_t key,
1570 short* pnVal,
1571 int nIndex,
1572 int nCount )
1573 {
1574 return GTIFKeyGetInternal(psGTIF, key, pnVal, nIndex, nCount, TYPE_SHORT);
1575 }
1576
1577 /************************************************************************/
1578 /* GDALGTIFKeyGetDOUBLE() */
1579 /************************************************************************/
1580
1581 static int GTIFKeyGetDOUBLE( GTIF *psGTIF, geokey_t key,
1582 double* pdfVal,
1583 int nIndex,
1584 int nCount )
1585 {
1586 return GTIFKeyGetInternal(psGTIF, key, pdfVal, nIndex, nCount, TYPE_DOUBLE);
1587 }
1588
1589 /************************************************************************/
14201590 /* GTIFFetchProjParms() */
14211591 /* */
14221592 /* Fetch the projection parameters for a particular projection */
14361606 /* -------------------------------------------------------------------- */
14371607 /* Get the false easting, and northing if available. */
14381608 /* -------------------------------------------------------------------- */
1439 if( !GTIFKeyGet(psGTIF, ProjFalseEastingGeoKey, &dfFalseEasting, 0, 1)
1440 && !GTIFKeyGet(psGTIF, ProjCenterEastingGeoKey,
1609 if( !GTIFKeyGetDOUBLE(psGTIF, ProjFalseEastingGeoKey, &dfFalseEasting, 0, 1)
1610 && !GTIFKeyGetDOUBLE(psGTIF, ProjCenterEastingGeoKey,
14411611 &dfFalseEasting, 0, 1)
1442 && !GTIFKeyGet(psGTIF, ProjFalseOriginEastingGeoKey,
1612 && !GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginEastingGeoKey,
14431613 &dfFalseEasting, 0, 1) )
14441614 dfFalseEasting = 0.0;
14451615
1446 if( !GTIFKeyGet(psGTIF, ProjFalseNorthingGeoKey, &dfFalseNorthing,0,1)
1447 && !GTIFKeyGet(psGTIF, ProjCenterNorthingGeoKey,
1616 if( !GTIFKeyGetDOUBLE(psGTIF, ProjFalseNorthingGeoKey, &dfFalseNorthing,0,1)
1617 && !GTIFKeyGetDOUBLE(psGTIF, ProjCenterNorthingGeoKey,
14481618 &dfFalseNorthing, 0, 1)
1449 && !GTIFKeyGet(psGTIF, ProjFalseOriginNorthingGeoKey,
1619 && !GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginNorthingGeoKey,
14501620 &dfFalseNorthing, 0, 1) )
14511621 dfFalseNorthing = 0.0;
14521622
14551625 /* -------------------------------------------------------------------- */
14561626 case CT_Stereographic:
14571627 /* -------------------------------------------------------------------- */
1458 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1628 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
14591629 &dfNatOriginLong, 0, 1 ) == 0
1460 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1630 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
14611631 &dfNatOriginLong, 0, 1 ) == 0
1462 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1632 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
14631633 &dfNatOriginLong, 0, 1 ) == 0 )
14641634 dfNatOriginLong = 0.0;
14651635
1466 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1636 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
14671637 &dfNatOriginLat, 0, 1 ) == 0
1468 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1638 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
14691639 &dfNatOriginLat, 0, 1 ) == 0
1470 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1640 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
14711641 &dfNatOriginLat, 0, 1 ) == 0 )
14721642 dfNatOriginLat = 0.0;
14731643
1474 if( GTIFKeyGet(psGTIF, ProjScaleAtNatOriginGeoKey,
1644 if( GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtNatOriginGeoKey,
14751645 &dfNatOriginScale, 0, 1 ) == 0 )
14761646 dfNatOriginScale = 1.0;
14771647
14941664 /* -------------------------------------------------------------------- */
14951665 case CT_Mercator:
14961666 /* -------------------------------------------------------------------- */
1497 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1667 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
14981668 &dfNatOriginLong, 0, 1 ) == 0
1499 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1669 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
15001670 &dfNatOriginLong, 0, 1 ) == 0
1501 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1671 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
15021672 &dfNatOriginLong, 0, 1 ) == 0 )
15031673 dfNatOriginLong = 0.0;
15041674
1505 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1675 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
15061676 &dfNatOriginLat, 0, 1 ) == 0
1507 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1677 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
15081678 &dfNatOriginLat, 0, 1 ) == 0
1509 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1679 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
15101680 &dfNatOriginLat, 0, 1 ) == 0 )
15111681 dfNatOriginLat = 0.0;
15121682
15131683
1514 bHaveSP1 = GTIFKeyGet(psGTIF, ProjStdParallel1GeoKey,
1684 bHaveSP1 = GTIFKeyGetDOUBLE(psGTIF, ProjStdParallel1GeoKey,
15151685 &dfStdParallel1, 0, 1 );
15161686
1517 bHaveNOS = GTIFKeyGet(psGTIF, ProjScaleAtNatOriginGeoKey,
1687 bHaveNOS = GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtNatOriginGeoKey,
15181688 &dfNatOriginScale, 0, 1 );
15191689
15201690 /* Default scale only if dfStdParallel1 isn't defined either */
15541724 case CT_TransverseMercator:
15551725 case CT_TransvMercator_SouthOriented:
15561726 /* -------------------------------------------------------------------- */
1557 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1727 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
15581728 &dfNatOriginLong, 0, 1 ) == 0
1559 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1729 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
15601730 &dfNatOriginLong, 0, 1 ) == 0
1561 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1731 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
15621732 &dfNatOriginLong, 0, 1 ) == 0 )
15631733 dfNatOriginLong = 0.0;
15641734
1565 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1735 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
15661736 &dfNatOriginLat, 0, 1 ) == 0
1567 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1737 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
15681738 &dfNatOriginLat, 0, 1 ) == 0
1569 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1739 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
15701740 &dfNatOriginLat, 0, 1 ) == 0 )
15711741 dfNatOriginLat = 0.0;
15721742
1573 if( GTIFKeyGet(psGTIF, ProjScaleAtNatOriginGeoKey,
1743 if( GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtNatOriginGeoKey,
15741744 &dfNatOriginScale, 0, 1 ) == 0 )
15751745 dfNatOriginScale = 1.0;
15761746
15941764 case CT_ObliqueMercator: /* hotine */
15951765 case CT_HotineObliqueMercatorAzimuthCenter:
15961766 /* -------------------------------------------------------------------- */
1597 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1767 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
15981768 &dfNatOriginLong, 0, 1 ) == 0
1599 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1769 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
16001770 &dfNatOriginLong, 0, 1 ) == 0
1601 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1771 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
16021772 &dfNatOriginLong, 0, 1 ) == 0 )
16031773 dfNatOriginLong = 0.0;
16041774
1605 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1775 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
16061776 &dfNatOriginLat, 0, 1 ) == 0
1607 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1777 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
16081778 &dfNatOriginLat, 0, 1 ) == 0
1609 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1779 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
16101780 &dfNatOriginLat, 0, 1 ) == 0 )
16111781 dfNatOriginLat = 0.0;
16121782
1613 if( GTIFKeyGet(psGTIF, ProjAzimuthAngleGeoKey,
1783 if( GTIFKeyGetDOUBLE(psGTIF, ProjAzimuthAngleGeoKey,
16141784 &dfAzimuth, 0, 1 ) == 0 )
16151785 dfAzimuth = 0.0;
16161786
1617 if( GTIFKeyGet(psGTIF, ProjRectifiedGridAngleGeoKey,
1787 if( GTIFKeyGetDOUBLE(psGTIF, ProjRectifiedGridAngleGeoKey,
16181788 &dfRectGridAngle, 0, 1 ) == 0 )
16191789 dfRectGridAngle = 90.0;
16201790
1621 if( GTIFKeyGet(psGTIF, ProjScaleAtNatOriginGeoKey,
1791 if( GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtNatOriginGeoKey,
16221792 &dfNatOriginScale, 0, 1 ) == 0
1623 && GTIFKeyGet(psGTIF, ProjScaleAtCenterGeoKey,
1793 && GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtCenterGeoKey,
16241794 &dfNatOriginScale, 0, 1 ) == 0 )
16251795 dfNatOriginScale = 1.0;
16261796
16481818 case CT_CassiniSoldner:
16491819 case CT_Polyconic:
16501820 /* -------------------------------------------------------------------- */
1651 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1821 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
16521822 &dfNatOriginLong, 0, 1 ) == 0
1653 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1823 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
16541824 &dfNatOriginLong, 0, 1 ) == 0
1655 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1825 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
16561826 &dfNatOriginLong, 0, 1 ) == 0 )
16571827 dfNatOriginLong = 0.0;
16581828
1659 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1829 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
16601830 &dfNatOriginLat, 0, 1 ) == 0
1661 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1831 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
16621832 &dfNatOriginLat, 0, 1 ) == 0
1663 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1833 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
16641834 &dfNatOriginLat, 0, 1 ) == 0 )
16651835 dfNatOriginLat = 0.0;
16661836
1667 if( GTIFKeyGet(psGTIF, ProjScaleAtNatOriginGeoKey,
1837 if( GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtNatOriginGeoKey,
16681838 &dfNatOriginScale, 0, 1 ) == 0
1669 && GTIFKeyGet(psGTIF, ProjScaleAtCenterGeoKey,
1839 && GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtCenterGeoKey,
16701840 &dfNatOriginScale, 0, 1 ) == 0 )
16711841 dfNatOriginScale = 1.0;
16721842
16941864 case CT_Orthographic:
16951865 case CT_NewZealandMapGrid:
16961866 /* -------------------------------------------------------------------- */
1697 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1867 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
16981868 &dfNatOriginLong, 0, 1 ) == 0
1699 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1869 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
17001870 &dfNatOriginLong, 0, 1 ) == 0
1701 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1871 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
17021872 &dfNatOriginLong, 0, 1 ) == 0 )
17031873 dfNatOriginLong = 0.0;
17041874
1705 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1875 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
17061876 &dfNatOriginLat, 0, 1 ) == 0
1707 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1877 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
17081878 &dfNatOriginLat, 0, 1 ) == 0
1709 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1879 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
17101880 &dfNatOriginLat, 0, 1 ) == 0 )
17111881 dfNatOriginLat = 0.0;
17121882
17271897 /* -------------------------------------------------------------------- */
17281898 case CT_Equirectangular:
17291899 /* -------------------------------------------------------------------- */
1730 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1900 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
17311901 &dfNatOriginLong, 0, 1 ) == 0
1732 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1902 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
17331903 &dfNatOriginLong, 0, 1 ) == 0
1734 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1904 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
17351905 &dfNatOriginLong, 0, 1 ) == 0 )
17361906 dfNatOriginLong = 0.0;
17371907
1738 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1908 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
17391909 &dfNatOriginLat, 0, 1 ) == 0
1740 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1910 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
17411911 &dfNatOriginLat, 0, 1 ) == 0
1742 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1912 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
17431913 &dfNatOriginLat, 0, 1 ) == 0 )
17441914 dfNatOriginLat = 0.0;
17451915
1746 if( GTIFKeyGet(psGTIF, ProjStdParallel1GeoKey,
1916 if( GTIFKeyGetDOUBLE(psGTIF, ProjStdParallel1GeoKey,
17471917 &dfStdParallel1, 0, 1 ) == 0 )
17481918 dfStdParallel1 = 0.0;
17491919
17681938 case CT_Sinusoidal:
17691939 case CT_VanDerGrinten:
17701940 /* -------------------------------------------------------------------- */
1771 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1941 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
17721942 &dfNatOriginLong, 0, 1 ) == 0
1773 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1943 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
17741944 &dfNatOriginLong, 0, 1 ) == 0
1775 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1945 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
17761946 &dfNatOriginLong, 0, 1 ) == 0 )
17771947 dfNatOriginLong = 0.0;
17781948
17911961 /* -------------------------------------------------------------------- */
17921962 case CT_PolarStereographic:
17931963 /* -------------------------------------------------------------------- */
1794 if( GTIFKeyGet(psGTIF, ProjStraightVertPoleLongGeoKey,
1964 if( GTIFKeyGetDOUBLE(psGTIF, ProjStraightVertPoleLongGeoKey,
17951965 &dfNatOriginLong, 0, 1 ) == 0
1796 && GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1966 && GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
17971967 &dfNatOriginLong, 0, 1 ) == 0
1798 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1968 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
17991969 &dfNatOriginLong, 0, 1 ) == 0
1800 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1970 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
18011971 &dfNatOriginLong, 0, 1 ) == 0 )
18021972 dfNatOriginLong = 0.0;
18031973
1804 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1974 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
18051975 &dfNatOriginLat, 0, 1 ) == 0
1806 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1976 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
18071977 &dfNatOriginLat, 0, 1 ) == 0
1808 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1978 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
18091979 &dfNatOriginLat, 0, 1 ) == 0 )
18101980 dfNatOriginLat = 0.0;
18111981
1812 if( GTIFKeyGet(psGTIF, ProjScaleAtNatOriginGeoKey,
1982 if( GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtNatOriginGeoKey,
18131983 &dfNatOriginScale, 0, 1 ) == 0
1814 && GTIFKeyGet(psGTIF, ProjScaleAtCenterGeoKey,
1984 && GTIFKeyGetDOUBLE(psGTIF, ProjScaleAtCenterGeoKey,
18151985 &dfNatOriginScale, 0, 1 ) == 0 )
18161986 dfNatOriginScale = 1.0;
18171987
18342004 /* -------------------------------------------------------------------- */
18352005 case CT_LambertConfConic_2SP:
18362006 /* -------------------------------------------------------------------- */
1837 if( GTIFKeyGet(psGTIF, ProjStdParallel1GeoKey,
2007 if( GTIFKeyGetDOUBLE(psGTIF, ProjStdParallel1GeoKey,
18382008 &dfStdParallel1, 0, 1 ) == 0 )
18392009 dfStdParallel1 = 0.0;
18402010
1841 if( GTIFKeyGet(psGTIF, ProjStdParallel2GeoKey,
2011 if( GTIFKeyGetDOUBLE(psGTIF, ProjStdParallel2GeoKey,
18422012 &dfStdParallel2, 0, 1 ) == 0 )
18432013 dfStdParallel1 = 0.0;
18442014
1845 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
2015 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
18462016 &dfNatOriginLong, 0, 1 ) == 0
1847 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
2017 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
18482018 &dfNatOriginLong, 0, 1 ) == 0
1849 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
2019 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
18502020 &dfNatOriginLong, 0, 1 ) == 0 )
18512021 dfNatOriginLong = 0.0;
18522022
1853 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
2023 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
18542024 &dfNatOriginLat, 0, 1 ) == 0
1855 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
2025 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
18562026 &dfNatOriginLat, 0, 1 ) == 0
1857 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
2027 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
18582028 &dfNatOriginLat, 0, 1 ) == 0 )
18592029 dfNatOriginLat = 0.0;
18602030
18802050 case CT_AlbersEqualArea:
18812051 case CT_EquidistantConic:
18822052 /* -------------------------------------------------------------------- */
1883 if( GTIFKeyGet(psGTIF, ProjStdParallel1GeoKey,
2053 if( GTIFKeyGetDOUBLE(psGTIF, ProjStdParallel1GeoKey,
18842054 &dfStdParallel1, 0, 1 ) == 0 )
18852055 dfStdParallel1 = 0.0;
18862056
1887 if( GTIFKeyGet(psGTIF, ProjStdParallel2GeoKey,
2057 if( GTIFKeyGetDOUBLE(psGTIF, ProjStdParallel2GeoKey,
18882058 &dfStdParallel2, 0, 1 ) == 0 )
18892059 dfStdParallel2 = 0.0;
18902060
1891 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
2061 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
18922062 &dfNatOriginLong, 0, 1 ) == 0
1893 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
2063 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
18942064 &dfNatOriginLong, 0, 1 ) == 0
1895 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
2065 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
18962066 &dfNatOriginLong, 0, 1 ) == 0 )
18972067 dfNatOriginLong = 0.0;
18982068
1899 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
2069 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLatGeoKey,
19002070 &dfNatOriginLat, 0, 1 ) == 0
1901 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
2071 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLatGeoKey,
19022072 &dfNatOriginLat, 0, 1 ) == 0
1903 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
2073 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLatGeoKey,
19042074 &dfNatOriginLat, 0, 1 ) == 0 )
19052075 dfNatOriginLat = 0.0;
19062076
19252095 /* -------------------------------------------------------------------- */
19262096 case CT_CylindricalEqualArea:
19272097 /* -------------------------------------------------------------------- */
1928 if( GTIFKeyGet(psGTIF, ProjStdParallel1GeoKey,
2098 if( GTIFKeyGetDOUBLE(psGTIF, ProjStdParallel1GeoKey,
19292099 &dfStdParallel1, 0, 1 ) == 0 )
19302100 dfStdParallel1 = 0.0;
19312101
1932 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
2102 if( GTIFKeyGetDOUBLE(psGTIF, ProjNatOriginLongGeoKey,
19332103 &dfNatOriginLong, 0, 1 ) == 0
1934 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
2104 && GTIFKeyGetDOUBLE(psGTIF, ProjFalseOriginLongGeoKey,
19352105 &dfNatOriginLong, 0, 1 ) == 0
1936 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
2106 && GTIFKeyGetDOUBLE(psGTIF, ProjCenterLongGeoKey,
19372107 &dfNatOriginLong, 0, 1 ) == 0 )
19382108 dfNatOriginLong = 0.0;
19392109
19922162
19932163 This function reads the coordinate system definition from a GeoTIFF file,
19942164 and <i>normalizes</i> it into a set of component information using
1995 definitions from CSV (Comma Seperated Value ASCII) files derived from
2165 definitions from CSV (Comma Separated Value ASCII) files derived from
19962166 EPSG tables. This function is intended to simplify correct support for
19972167 reading files with defined PCS (Projected Coordinate System) codes that
19982168 wouldn't otherwise be directly known by application software by reducing
20002170 prime meridian and units.<p>
20012171
20022172 The application should pass a pointer to an existing uninitialized
2003 GTIFDefn structure, and GTIFGetDefn() will fill it in. The fuction
2173 GTIFDefn structure, and GTIFGetDefn() will fill it in. The function
20042174 currently always returns TRUE but in the future will return FALSE if
20052175 CSV files are not found. In any event, all geokeys actually found in the
20062176 file will be copied into the GTIFDefn. However, if the CSV files aren't
20662236 </pre>
20672237
20682238 Note that GTIFGetDefn() does not inspect or return the tiepoints and scale.
2069 This must be handled seperately as it normally would. It is intended to
2239 This must be handled separately as it normally would. It is intended to
20702240 simplify capture and normalization of the coordinate system definition.
20712241 Note that GTIFGetDefn() also does the following things:
20722242
21602330 /* -------------------------------------------------------------------- */
21612331 /* Try to get the overall model type. */
21622332 /* -------------------------------------------------------------------- */
2163 GTIFKeyGet(psGTIF,GTModelTypeGeoKey,&(psDefn->Model),0,1);
2333 GTIFKeyGetSHORT(psGTIF,GTModelTypeGeoKey,&(psDefn->Model),0,1);
21642334
21652335 /* -------------------------------------------------------------------- */
21662336 /* Extract the Geog units. */
21672337 /* -------------------------------------------------------------------- */
21682338 nGeogUOMLinear = 9001; /* Linear_Meter */
2169 GTIFKeyGet(psGTIF, GeogLinearUnitsGeoKey, &nGeogUOMLinear, 0, 1 );
2339 GTIFKeyGetSHORT(psGTIF, GeogLinearUnitsGeoKey, &nGeogUOMLinear, 0, 1 );
21702340
21712341 /* -------------------------------------------------------------------- */
21722342 /* Try to get a PCS. */
21732343 /* -------------------------------------------------------------------- */
2174 if( GTIFKeyGet(psGTIF,ProjectedCSTypeGeoKey, &(psDefn->PCS),0,1) == 1
2344 if( GTIFKeyGetSHORT(psGTIF,ProjectedCSTypeGeoKey, &(psDefn->PCS),0,1) == 1
21752345 && psDefn->PCS != KvUserDefined )
21762346 {
21772347 /*
22032373 /* If the Proj_ code is specified directly, use that. */
22042374 /* -------------------------------------------------------------------- */
22052375 if( psDefn->ProjCode == KvUserDefined )
2206 GTIFKeyGet(psGTIF, ProjectionGeoKey, &(psDefn->ProjCode), 0, 1 );
2376 GTIFKeyGetSHORT(psGTIF, ProjectionGeoKey, &(psDefn->ProjCode), 0, 1 );
22072377
22082378 if( psDefn->ProjCode != KvUserDefined )
22092379 {
22212391 * Set the GeoTIFF identity of the parameters.
22222392 */
22232393 psDefn->CTProjection = (short)
2224 EPSGProjMethodToCTProjMethod( psDefn->Projection );
2225
2226 SetGTParmIds( psDefn->CTProjection, psDefn->ProjParmId, NULL);
2394 EPSGProjMethodToCTProjMethod( psDefn->Projection, FALSE );
2395
2396 SetGTParmIds( EPSGProjMethodToCTProjMethod(psDefn->Projection, TRUE),
2397 psDefn->ProjParmId, NULL);
22272398 psDefn->nParms = 7;
22282399 }
22292400
22312402 /* Try to get a GCS. If found, it will override any implied by */
22322403 /* the PCS. */
22332404 /* -------------------------------------------------------------------- */
2234 GTIFKeyGet(psGTIF, GeographicTypeGeoKey, &(psDefn->GCS), 0, 1 );
2405 GTIFKeyGetSHORT(psGTIF, GeographicTypeGeoKey, &(psDefn->GCS), 0, 1 );
22352406 if( psDefn->GCS < 1 || psDefn->GCS >= KvUserDefined )
22362407 psDefn->GCS = KvUserDefined;
22372408
22482419 /* Handle the GCS angular units. GeogAngularUnitsGeoKey */
22492420 /* overrides the GCS or PCS setting. */
22502421 /* -------------------------------------------------------------------- */
2251 GTIFKeyGet(psGTIF, GeogAngularUnitsGeoKey, &(psDefn->UOMAngle), 0, 1 );
2422 GTIFKeyGetSHORT(psGTIF, GeogAngularUnitsGeoKey, &(psDefn->UOMAngle), 0, 1 );
22522423 if( psDefn->UOMAngle != KvUserDefined )
22532424 {
22542425 GTIFGetUOMAngleInfo( psDefn->UOMAngle, NULL,
22592430 /* Check for a datum setting, and then use the datum to derive */
22602431 /* an ellipsoid. */
22612432 /* -------------------------------------------------------------------- */
2262 GTIFKeyGet(psGTIF, GeogGeodeticDatumGeoKey, &(psDefn->Datum), 0, 1 );
2433 GTIFKeyGetSHORT(psGTIF, GeogGeodeticDatumGeoKey, &(psDefn->Datum), 0, 1 );
22632434
22642435 if( psDefn->Datum != KvUserDefined )
22652436 {
22702441 /* Check for an explicit ellipsoid. Use the ellipsoid to */
22712442 /* derive the ellipsoid characteristics, if possible. */
22722443 /* -------------------------------------------------------------------- */
2273 GTIFKeyGet(psGTIF, GeogEllipsoidGeoKey, &(psDefn->Ellipsoid), 0, 1 );
2444 GTIFKeyGetSHORT(psGTIF, GeogEllipsoidGeoKey, &(psDefn->Ellipsoid), 0, 1 );
22742445
22752446 if( psDefn->Ellipsoid != KvUserDefined )
22762447 {
22832454 /* to warn if they conflict with provided information, but for */
22842455 /* now we just override. */
22852456 /* -------------------------------------------------------------------- */
2286 GTIFKeyGet(psGTIF, GeogSemiMajorAxisGeoKey, &(psDefn->SemiMajor), 0, 1 );
2287 GTIFKeyGet(psGTIF, GeogSemiMinorAxisGeoKey, &(psDefn->SemiMinor), 0, 1 );
2457 CPL_IGNORE_RET_VAL_INT(GTIFKeyGetDOUBLE(psGTIF, GeogSemiMajorAxisGeoKey, &(psDefn->SemiMajor), 0, 1 ));
2458 CPL_IGNORE_RET_VAL_INT(GTIFKeyGetDOUBLE(psGTIF, GeogSemiMinorAxisGeoKey, &(psDefn->SemiMinor), 0, 1 ));
22882459
2289 if( GTIFKeyGet(psGTIF, GeogInvFlatteningGeoKey, &dfInvFlattening,
2460 if( GTIFKeyGetDOUBLE(psGTIF, GeogInvFlatteningGeoKey, &dfInvFlattening,
22902461 0, 1 ) == 1 )
22912462 {
22922463 if( dfInvFlattening != 0.0 )
22992470 /* -------------------------------------------------------------------- */
23002471 /* Get the prime meridian info. */
23012472 /* -------------------------------------------------------------------- */
2302 GTIFKeyGet(psGTIF, GeogPrimeMeridianGeoKey, &(psDefn->PM), 0, 1 );
2473 GTIFKeyGetSHORT(psGTIF, GeogPrimeMeridianGeoKey, &(psDefn->PM), 0, 1 );
23032474
23042475 if( psDefn->PM != KvUserDefined )
23052476 {
23072478 }
23082479 else
23092480 {
2310 GTIFKeyGet(psGTIF, GeogPrimeMeridianLongGeoKey,
2311 &(psDefn->PMLongToGreenwich), 0, 1 );
2481 CPL_IGNORE_RET_VAL_INT(GTIFKeyGetDOUBLE(psGTIF, GeogPrimeMeridianLongGeoKey,
2482 &(psDefn->PMLongToGreenwich), 0, 1 ));
23122483
23132484 psDefn->PMLongToGreenwich =
23142485 GTIFAngleToDD( psDefn->PMLongToGreenwich,
23202491 /* -------------------------------------------------------------------- */
23212492 #if !defined(GEO_NORMALIZE_DISABLE_TOWGS84)
23222493 psDefn->TOWGS84Count =
2323 GTIFKeyGet(psGTIF, GeogTOWGS84GeoKey, &(psDefn->TOWGS84), 0, 7 );
2494 (short)GTIFKeyGetDOUBLE(psGTIF, GeogTOWGS84GeoKey, psDefn->TOWGS84, 0, 7 );
23242495 #endif
23252496
23262497 /* -------------------------------------------------------------------- */
23292500 /* but these are very rarely not decimal degrees for actual */
23302501 /* file coordinates. */
23312502 /* -------------------------------------------------------------------- */
2332 GTIFKeyGet(psGTIF,ProjLinearUnitsGeoKey,&(psDefn->UOMLength),0,1);
2503 GTIFKeyGetSHORT(psGTIF,ProjLinearUnitsGeoKey,&(psDefn->UOMLength),0,1);
23332504
23342505 if( psDefn->UOMLength != KvUserDefined )
23352506 {
23382509 }
23392510 else
23402511 {
2341 GTIFKeyGet(psGTIF,ProjLinearUnitSizeGeoKey,&(psDefn->UOMLengthInMeters),0,1);
2512 CPL_IGNORE_RET_VAL_INT(GTIFKeyGetDOUBLE(psGTIF,ProjLinearUnitSizeGeoKey,&(psDefn->UOMLengthInMeters),0,1));
23422513 }
23432514
23442515 /* -------------------------------------------------------------------- */
23452516 /* Handle a variety of user defined transform types. */
23462517 /* -------------------------------------------------------------------- */
2347 if( GTIFKeyGet(psGTIF,ProjCoordTransGeoKey,
2518 if( GTIFKeyGetSHORT(psGTIF,ProjCoordTransGeoKey,
23482519 &(psDefn->CTProjection),0,1) == 1)
23492520 {
23502521 GTIFFetchProjParms( psGTIF, psDefn );
134134 {
135135 char *data;
136136 geokey_t keyid = (geokey_t) key->gk_key;
137 int count = key->gk_count;
137 int count = (int) key->gk_count;
138138 int vals_now,i;
139139 pinfo_t *sptr;
140140 double *dptr;
179179 message[out_char++] = ch;
180180
181181 /* flush message if buffer full */
182 if( out_char >= sizeof(message)-3 )
182 if( (size_t)out_char >= sizeof(message)-3 )
183183 {
184184 message[out_char] = '\0';
185185 print(message,aux);
214214 print( GTIFValueName(keyid,*sptr), aux );
215215 print( "\n", aux );
216216 }
217 else if( sptr == NULL && count > 0 )
218 print( "****Corrupted data****\n", aux );
217219 else
220 {
218221 for (; count > 0; count-= vals_now)
219222 {
220223 vals_now = count > 3? 3: count;
225228 }
226229 print("\n",aux);
227230 }
231 }
228232 break;
229233
230234 default:
323327 for (j=0;j<ncols;j++)
324328 {
325329 if (!sscanf(vptr,"%lg",dptr++))
330 {
331 _GTIFFree( data );
326332 return StringError(vptr);
333 }
327334 FINDCHAR(vptr,' ');
328335 SKIPWHITE(vptr);
329336 }
347354 short *sptr;
348355 char name[1000];
349356 char type[20];
350 double data[100];
351357 double *dptr;
352358 char *vptr;
353359 int num;
354360 char message[2048];
361 int keycode;
362 int typecode;
355363
356364 scan(message,aux);
357365 if (!strncmp(message,FMT_KEYEND,8)) return 0;
364372 if (!*vptr) return StringError(message);
365373 vptr+=2;
366374
367 if( GTIFKeyCode(name) < 0 )
375 keycode = GTIFKeyCode(name);
376 if( keycode < 0 )
368377 return StringError(name);
369378 else
370 key = (geokey_t) GTIFKeyCode(name);
371
372 if( GTIFTypeCode(type) < 0 )
379 key = (geokey_t) keycode;
380
381 typecode = GTIFTypeCode(type);
382 if( typecode < 0 )
373383 return StringError(type);
374384 else
375 ktype = (tagtype_t) GTIFTypeCode(type);
385 ktype = (tagtype_t) typecode;
376386
377387 /* skip white space */
378388 SKIPWHITE(vptr);
410420 cdata[out_char++] = *(vptr++);
411421 }
412422
413 if( out_char < count-1 ) return StringError(message);
414 if( *vptr != '"' ) return StringError(message);
423 if( out_char < count-1 || *vptr != '"' )
424 {
425 _GTIFFree( cdata );
426 return StringError(message);
427 }
415428
416429 cdata[count-1] = '\0';
417430 GTIFKeySet(gt,key,ktype,count,cdata);
419432 _GTIFFree( cdata );
420433 }
421434 break;
422
435
423436 case TYPE_DOUBLE:
437 {
438 double data[100];
424439 outcount = count;
425440 for (dptr = data; count > 0; count-= vals_now)
426441 {
443458 else
444459 GTIFKeySet(gt,key,ktype,outcount,data);
445460 break;
461 }
446462
447463 case TYPE_SHORT:
448464 if (count==1)
454470 }
455471 else /* multi-valued short - no such thing yet */
456472 {
457 sptr = (short *)data;
473 short data[100];
458474 outcount = count;
459 for (; count > 0; count-= vals_now)
475 for (sptr = data; count > 0; count-= vals_now)
460476 {
461477 vals_now = count > 3? 3: count;
462478 for (i=0; i<vals_now; i++,sptr++)
471487 if (vals_now<count)
472488 {
473489 scan(message,aux);
474 vptr = message;
490 /* FIXME: the following is dead assignment */
491 /*vptr = message;*/
475492 }
476493 }
477 GTIFKeySet(gt,key,ktype,outcount,sptr);
494 GTIFKeySet(gt,key,ktype,outcount,sptr);
478495 }
479496 break;
480
481 default:
497
498 default:
482499 return -1;
483500 }
484501 return 1;
487504
488505 static void DefaultRead(char *string, void *aux)
489506 {
490 /* Pretty boring */
491 fscanf((FILE *)aux,"%1023[^\n]\n",string);
492 }
493
507 /* Pretty boring */
508 int num_read;
509 num_read = fscanf((FILE *)aux, "%[^\n]\n", string);
510 if (num_read != 0) {
511 fprintf(stderr, "geo_print.c DefaultRead failed to read anything.\n");
512 }
513 }
514
7777 int GTIFKeySet(GTIF *gtif, geokey_t keyID, tagtype_t type, int count,...)
7878 {
7979 va_list ap;
80 int index = gtif->gt_keyindex[ keyID ];
80 int nIndex = gtif->gt_keyindex[ keyID ];
8181 int newvalues = 0;
8282 GeoKey *key;
8383 char *data = NULL;
9696 /* delete the indicated tag */
9797 va_end(ap);
9898
99 if( index < 1 )
99 if( nIndex < 1 )
100100 return 0;
101101
102 if (gtif->gt_keys[index].gk_type == TYPE_ASCII)
103 {
104 _GTIFFree (gtif->gt_keys[index].gk_data);
105 }
106
107 while( index < gtif->gt_num_keys )
108 {
109 _GTIFmemcpy( gtif->gt_keys + index,
110 gtif->gt_keys + index + 1,
102 if (gtif->gt_keys[nIndex].gk_type == TYPE_ASCII)
103 {
104 _GTIFFree (gtif->gt_keys[nIndex].gk_data);
105 }
106
107 while( nIndex < gtif->gt_num_keys )
108 {
109 _GTIFmemcpy( gtif->gt_keys + nIndex,
110 gtif->gt_keys + nIndex + 1,
111111 sizeof(GeoKey) );
112 gtif->gt_keyindex[gtif->gt_keys[index].gk_key] = index;
113 index++;
112 gtif->gt_keyindex[gtif->gt_keys[nIndex].gk_key] = nIndex;
113 nIndex++;
114114 }
115115
116116 gtif->gt_num_keys--;
126126 case TYPE_DOUBLE: dval=va_arg(ap, dblparam_t); val=(char *)&dval; break;
127127 case TYPE_ASCII:
128128 val=va_arg(ap, char*);
129 count = strlen(val) + 1; /* force = string length */
129 count = (int)strlen(val) + 1; /* force = string length */
130130 break;
131131 default:
132132 assert( FALSE );
135135 va_end(ap);
136136
137137 /* We assume here that there are no multi-valued SHORTS ! */
138 if (index)
138 if (nIndex)
139139 {
140140 /* Key already exists */
141 key = gtif->gt_keys+index;
141 key = gtif->gt_keys+nIndex;
142142 if (type!=key->gk_type || count > key->gk_count)
143143 {
144144 /* need to reset data pointer */
153153 /* We need to create the key */
154154 if (gtif->gt_num_keys == MAX_KEYS) return 0;
155155 key = gtif->gt_keys + ++gtif->gt_num_keys;
156 index = gtif->gt_num_keys;
157 gtif->gt_keyindex[ keyID ] = index;
156 nIndex = gtif->gt_num_keys;
157 gtif->gt_keyindex[ keyID ] = nIndex;
158158 key->gk_key = keyID;
159159 key->gk_type = type;
160160 key->gk_count = count;
161161 key->gk_size = _gtiff_size[ type ];
162 if (gtif->gt_keymin > keyID) gtif->gt_keymin=keyID;
163 if (gtif->gt_keymax < keyID) gtif->gt_keymax=keyID;
162 if ((geokey_t)gtif->gt_keymin > keyID) gtif->gt_keymin=keyID;
163 if ((geokey_t)gtif->gt_keymax < keyID) gtif->gt_keymax=keyID;
164164 newvalues = 1;
165165 }
166166
198198 /* -------------------------------------------------------------------- */
199199 if (count == 0 && st_type == STT_ASCII )
200200 {
201 count = strlen((char*)data)+1;
201 count = (int)strlen((char*)data)+1;
202202 }
203203
204204 /* -------------------------------------------------------------------- */
211211 free( st->key_list[i].data );
212212 st->key_list[i].count = count;
213213 st->key_list[i].type = st_type;
214 st->key_list[i].data = malloc(item_size*count);
214 /* +1 to make clang static analyzer not warn about potential malloc(0) */
215 st->key_list[i].data = malloc(item_size*count+1);
215216 memcpy( st->key_list[i].data, data, count * item_size );
216217 return 1;
217218 }
226227 st->key_list[st->key_count-1].tag = tag;
227228 st->key_list[st->key_count-1].count = count;
228229 st->key_list[st->key_count-1].type = st_type;
229 st->key_list[st->key_count-1].data = malloc(item_size * count);
230 /* +1 to make clang static analyzer not warn about potential malloc(0) */
231 st->key_list[st->key_count-1].data = malloc(item_size * count+1);
230232 memcpy( st->key_list[st->key_count-1].data, data, item_size * count );
231233
232234 return 1;
2626 *
2727 ****************************************************************************/
2828
29 #ifndef __geo_simpletags_h_
30 #define __geo_simpletags_h_
29 #ifndef LIBGEOTIFF_GEO_SIMPLETAGS_H_
30 #define LIBGEOTIFF_GEO_SIMPLETAGS_H_
3131
3232 #include "geotiff.h"
3333
6060 int CPL_DLL ST_GetKey( ST_TIFF *, int tag, int *count,
6161 int *st_type, void **data_ptr );
6262
63 ST_TIFF CPL_DLL *ST_Create();
63 ST_TIFF CPL_DLL *ST_Create( void );
6464 void CPL_DLL ST_Destroy( ST_TIFF * );
6565
6666 int CPL_DLL ST_TagType( int tag );
6969 }
7070 #endif
7171
72 #endif /* __geo_simpletags_h_ */
72 #endif /* LIBGEOTIFF_GEO_SIMPLETAGS_H_ */
3232 #include <locale.h>
3333 #include <errno.h>
3434 #include <stdlib.h>
35 #include "geo_tiffp.h"
3536 #include "cpl_serv.h"
3637
3738 #ifndef NAN
1616 * notice accompanies any products derived therefrom.
1717 **********************************************************************/
1818
19 #ifndef __geo_tiffp_h_
20 #define __geo_tiffp_h_
19 #ifndef LIBGEOTIFF_GEO_TIFFP_H_
20 #define LIBGEOTIFF_GEO_TIFFP_H_
2121
2222 /**********************************************************************
2323 *
109109 #endif
110110
111111
112 #endif /* __geo_tiffp_h_ */
112 #endif /* LIBGEOTIFF_GEO_TIFFP_H_ */
00 /******************************************************************************
1 * $Id: geo_trans.c 1568 2009-04-22 21:10:55Z warmerdam $
1 * $Id: geo_trans.c 2688 2015-11-22 22:38:17Z rouault $
22 *
33 * Project: libgeotiff
44 * Purpose: Code to abstract translation between pixel/line and PCS
5454
5555 inv_det = 1.0 / det;
5656
57 /* compute adjoint, and devide by determinate */
57 /* compute adjoint, and divide by determinate */
5858
5959 gt_out[0] = gt_in[4] * inv_det;
6060 gt_out[3] = -gt_in[3] * inv_det;
7272 /* GTIFTiepointTranslate() */
7373 /************************************************************************/
7474
75 static
7576 int GTIFTiepointTranslate( int gcp_count, double * gcps_in, double * gcps_out,
7677 double x_in, double y_in,
7778 double *x_out, double *y_out )
7474 {
7575 tempData.tk_asciiParams =
7676 (char *)_GTIFcalloc(tempData.tk_asciiParamsLength + 1);
77 if( tempData.tk_asciiParams == NULL )
78 return 0;
7779 tempData.tk_asciiParams[tempData.tk_asciiParamsLength] = '\0';
7880 }
7981
8284 entptr = (KeyEntry*)(gt->gt_short + 4);
8385 for (i=0; i< gt->gt_num_keys; i++,entptr++)
8486 {
85 if (!WriteKey(gt,&tempData,entptr,keyptr+sortkeys[i])) return 0;
87 if (!WriteKey(gt,&tempData,entptr,keyptr+sortkeys[i]))
88 {
89 if (tempData.tk_asciiParamsLength > 0)
90 {
91 _GTIFFree (tempData.tk_asciiParams);
92 }
93 return 0;
94 }
8695 }
8796
8897 /* Write out the Key Directory */
131140 if (count==1 && keyptr->gk_type==TYPE_SHORT)
132141 {
133142 entptr->ent_location = GTIFF_LOCAL;
134 entptr->ent_val_offset = *(pinfo_t*)&keyptr->gk_data;
143 memcpy(&(entptr->ent_val_offset), &keyptr->gk_data, sizeof(pinfo_t));
135144 return 1;
136145 }
137146
148157 ((double*)keyptr->gk_data - gt->gt_double);
149158 break;
150159 case TYPE_ASCII:
160 if( tempData->tk_asciiParams == NULL )
161 return 0;
151162 entptr->ent_location = GTIFF_ASCIIPARAMS;
152163 entptr->ent_val_offset = (pinfo_t) tempData->tk_asciiParamsOffset;
153164 _GTIFmemcpy (tempData->tk_asciiParams + tempData->tk_asciiParamsOffset
173184 {
174185 int i, did_work;
175186
176 for( i = 0; i < gt->gt_num_keys; i++ )
187 /* A bit convoluted to make Clang Static Analyzer happy */
188 if( gt->gt_num_keys <= 0 )
189 return 1;
190
191 sortkeys[0] = 1;
192 for( i = 1; i < gt->gt_num_keys; i++ )
177193 sortkeys[i] = i+1;
178194
179195 do { /* simple bubble sort */
99 * notice accompanies any products derived therefrom.
1010 **********************************************************************/
1111
12 #ifndef __geokeys_h_
13 #define __geokeys_h_
12 #ifndef LIBGEOTIFF_GEOKEYS_H_
13 #define LIBGEOTIFF_GEOKEYS_H_
1414
1515 /* The GvCurrentRevision number should be incremented whenever a
1616 * new set of Keys are defined or modified in "geokeys.inc", and comments
4747 } geokey_t;
4848
4949
50 #endif /* __geokeys_h_ */
50 #endif /* LIBGEOTIFF_GEOKEYS_H_ */
1111 * notice accompanies any products derived therefrom.
1212 */
1313
14 #ifndef __geonames_h
15 #define __geonames_h
14 #ifndef LIBGEOTIFF_GEONAMES_H_
15 #define LIBGEOTIFF_GEONAMES_H_
1616
1717 struct _KeyInfo {
1818 int ki_key;
4141 * 6.2.x GeoTIFF Keys
4242 ************************************************************/
4343
44 static KeyInfo _keyInfo[] = {
44 static const KeyInfo _keyInfo[] = {
4545 # include "geokeys.inc" /* geokey database */
4646 END_LIST
4747 };
5252 ValuePair(KvUndefined,KvUndefined) \
5353 ValuePair(KvUserDefined,KvUserDefined)
5454
55 static KeyInfo _csdefaultValue[] = {
55 static const KeyInfo _csdefaultValue[] = {
5656 COMMON_VALUES
5757 END_LIST
5858 };
6161 * 6.3.x GeoTIFF Key Values
6262 ************************************************************/
6363
64 static KeyInfo _modeltypeValue[] = {
64 static const KeyInfo _modeltypeValue[] = {
6565 COMMON_VALUES
6666 ValuePair(ModelTypeProjected,1)
6767 ValuePair(ModelTypeGeographic,2)
7272 END_LIST
7373 };
7474
75 static KeyInfo _rastertypeValue[] = {
75 static const KeyInfo _rastertypeValue[] = {
7676 COMMON_VALUES
7777 ValuePair(RasterPixelIsArea,1)
7878 ValuePair(RasterPixelIsPoint,2)
7979 END_LIST
8080 };
8181
82 static KeyInfo _geounitsValue[] = {
82 static const KeyInfo _geounitsValue[] = {
8383 COMMON_VALUES
8484 # include "epsg_units.inc"
8585 END_LIST
8686 };
8787
88 static KeyInfo _geographicValue[] = {
88 static const KeyInfo _geographicValue[] = {
8989 COMMON_VALUES
9090 # include "epsg_gcs.inc"
9191 END_LIST
9292 };
9393
94 static KeyInfo _geodeticdatumValue[] = {
94 static const KeyInfo _geodeticdatumValue[] = {
9595 COMMON_VALUES
9696 # include "epsg_datum.inc"
9797 END_LIST
9898 };
9999
100 static KeyInfo _ellipsoidValue[] = {
100 static const KeyInfo _ellipsoidValue[] = {
101101 COMMON_VALUES
102102 # include "epsg_ellipse.inc"
103103 END_LIST
104104 };
105105
106 static KeyInfo _primemeridianValue[] = {
106 static const KeyInfo _primemeridianValue[] = {
107107 COMMON_VALUES
108108 # include "epsg_pm.inc"
109109 END_LIST
110110 };
111111
112 static KeyInfo _pcstypeValue[] = {
112 static const KeyInfo _pcstypeValue[] = {
113113 COMMON_VALUES
114114 # include "epsg_pcs.inc"
115115 END_LIST
116116 };
117117
118 static KeyInfo _projectionValue[] = {
118 static const KeyInfo _projectionValue[] = {
119119 COMMON_VALUES
120120 # include "epsg_proj.inc"
121121 END_LIST
122122 };
123123
124 static KeyInfo _coordtransValue[] = {
124 static const KeyInfo _coordtransValue[] = {
125125 COMMON_VALUES
126126 # include "geo_ctrans.inc"
127127 END_LIST
128128 };
129129
130 static KeyInfo _vertcstypeValue[] = {
130 static const KeyInfo _vertcstypeValue[] = {
131131 COMMON_VALUES
132132 # include "epsg_vertcs.inc"
133133 END_LIST
134134 };
135135
136 static KeyInfo _vdatumValue[] = {
136 static const KeyInfo _vdatumValue[] = {
137137 COMMON_VALUES
138138 ValuePair(VDatumBase,1)
139139 END_LIST
140140 };
141141
142 #endif /* __geonames_h */
142 #endif /* LIBGEOTIFF_GEONAMES_H_ */
143143
99 * notice accompanies any products derived therefrom.
1010 **********************************************************************/
1111
12 #ifndef __geotiff_h_
13 #define __geotiff_h_
12 #ifndef LIBGEOTIFF_GEOTIFF_H_
13 #define LIBGEOTIFF_GEOTIFF_H_
1414
1515 /**
1616 * \file geotiff.h
2929 */
3030 #define GvCurrentVersion 1
3131
32 #define LIBGEOTIFF_VERSION 1410
32 #define LIBGEOTIFF_VERSION 1420
3333
3434 #include "geo_config.h"
3535 #include "geokeys.h"
119119 }
120120 #endif
121121
122 #endif /* __geotiff_h_ */
122 #endif /* LIBGEOTIFF_GEOTIFF_H_ */
00 /******************************************************************************
1 * $Id: geotiff_proj4.c 1979 2011-02-24 22:17:39Z warmerdam $
1 * $Id: geotiff_proj4.c 2653 2015-05-02 12:07:17Z rouault $
22 *
33 * Project: libgeotiff
44 * Purpose: Code to convert a normalized GeoTIFF definition into a PROJ.4
3232 #include "geotiff.h"
3333 #include "geo_normalize.h"
3434 #include "geovalues.h"
35 #include "geo_tiffp.h"
3536
3637 /************************************************************************/
3738 /* OSRProj4Tokenize() */
5657
5758 papszTokens = (char **) calloc(sizeof(char*),nMaxTokens);
5859
59 pszFullWrk = strdup( pszFull );
60 pszFullWrk = CPLStrdup(pszFull);
6061
6162 for( i=0; pszFullWrk[i] != '\0' && nTokens != nMaxTokens-1; i++ )
6263 {
6970 {
7071 if( strstr(pszStart,"=") != NULL )
7172 {
72 papszTokens[nTokens++] = strdup(pszStart);
73 papszTokens[nTokens++] = CPLStrdup(pszStart);
7374 }
7475 else
7576 {
7778 strncpy( szAsBoolean,pszStart, sizeof(szAsBoolean)-1-4);
7879 szAsBoolean[sizeof(szAsBoolean)-1-4] = '\0';
7980 strcat( szAsBoolean,"=yes" );
80 papszTokens[nTokens++] = strdup(szAsBoolean);
81 papszTokens[nTokens++] = CPLStrdup(szAsBoolean);
8182 }
8283 }
8384 pszStart = pszFullWrk + i + 1;
9899 if( pszStart != NULL && strlen(pszStart) > 0 )
99100 {
100101 if (nTokens != 199)
101 papszTokens[nTokens++] = strdup( pszStart );
102 }
103
104 free( pszFullWrk );
102 papszTokens[nTokens++] = CPLStrdup(pszStart);
103 }
104
105 CPLFree( pszFullWrk );
105106
106107 return papszTokens;
107108 }
847848 double dfFalseEasting, dfFalseNorthing;
848849
849850 if( psDefn == NULL || !psDefn->DefnSet )
850 return strdup("");
851 return CPLStrdup("");
851852
852853 szProjection[0] = '\0';
853854
945946 /* -------------------------------------------------------------------- */
946947 else if( psDefn->CTProjection == CT_Mercator )
947948 {
948 sprintf( szProjection+strlen(szProjection),
949 "+proj=merc +lat_ts=%.9f +lon_0=%.9f +k=%f +x_0=%.3f +y_0=%.3f ",
950 psDefn->ProjParm[0],
951 psDefn->ProjParm[1],
952 psDefn->ProjParm[4],
953 dfFalseEasting,
954 dfFalseNorthing );
949 if( psDefn->ProjParm[2] != 0.0 ) /* Mercator 2SP: FIXME we need a better way of detecting it */
950 sprintf( szProjection+strlen(szProjection),
951 "+proj=merc +lat_ts=%.9f +lon_0=%.9f +x_0=%.3f +y_0=%.3f ",
952 psDefn->ProjParm[2],
953 psDefn->ProjParm[1],
954 dfFalseEasting,
955 dfFalseNorthing );
956 else
957 sprintf( szProjection+strlen(szProjection),
958 "+proj=merc +lat_ts=%.9f +lon_0=%.9f +k=%f +x_0=%.3f +y_0=%.3f ",
959 psDefn->ProjParm[0],
960 psDefn->ProjParm[1],
961 psDefn->ProjParm[4],
962 dfFalseEasting,
963 dfFalseNorthing );
955964 }
956965
957966 /* -------------------------------------------------------------------- */
12681277 psDefn->ProjParm[6] );
12691278 }
12701279
1280 else if( psDefn->CTProjection == CT_HotineObliqueMercatorAzimuthCenter )
1281 {
1282 /* special case for swiss oblique mercator : see GDAL bug 423 */
1283 if( fabs(psDefn->ProjParm[2] - 90.0) < 0.0001
1284 && fabs(psDefn->ProjParm[3]-90.0) < 0.0001 )
1285 {
1286 sprintf( szProjection+strlen(szProjection),
1287 "+proj=somerc +lat_0=%.16g +lon_0=%.16g"
1288 " +k_0=%.16g +x_0=%.16g +y_0=%.16g ",
1289 psDefn->ProjParm[0],
1290 psDefn->ProjParm[1],
1291 psDefn->ProjParm[4],
1292 psDefn->ProjParm[5],
1293 psDefn->ProjParm[6] );
1294 }
1295 else
1296 {
1297 sprintf( szProjection+strlen(szProjection),
1298 "+proj=omerc +lat_0=%.16g +lonc=%.16g +alpha=%.16g"
1299 " +k=%.16g +x_0=%.16g +y_0=%.16g ",
1300 psDefn->ProjParm[0],
1301 psDefn->ProjParm[1],
1302 psDefn->ProjParm[2],
1303 psDefn->ProjParm[4],
1304 psDefn->ProjParm[5],
1305 psDefn->ProjParm[6] );
1306
1307 /* RSO variant - http://trac.osgeo.org/proj/ticket/62 */
1308 /* Note that gamma is only supported by PROJ 4.8.0 and later. */
1309 /* FIXME: how to detect that gamma isn't set to default value */
1310 /*if( psDefn->ProjParm[3] != 0.0 )
1311 {
1312 sprintf( szProjection+strlen(szProjection), "+gamma=%.16g ",
1313 psDefn->ProjParm[3] );
1314 }*/
1315 }
1316 }
12711317 /* ==================================================================== */
12721318 /* Handle ellipsoid information. */
12731319 /* ==================================================================== */
12931339 strcat( szProjection, szUnits );
12941340
12951341 /* If we don't have anything, reset */
1296 if (strstr(szProjection,"+proj=") == NULL) { return strdup(""); }
1297
1298 return( strdup( szProjection ) );
1342 if (strstr(szProjection, "+proj=") == NULL) { return CPLStrdup(""); }
1343
1344 return( CPLStrdup( szProjection ) );
12991345 }
13001346
13011347 #if !defined(HAVE_LIBPROJ)
1010 */
1111
1212
13 #ifndef __geotiffio_h
14 #define __geotiffio_h
13 #ifndef LIBGEOTIFF_GEOTIFFIO_H_
14 #define LIBGEOTIFF_GEOTIFFIO_H_
1515
1616 #include "geotiff.h" /* public key interface */
1717 #include "geovalues.h" /* key code definitions */
1818
19 #endif /* __geotiffio_h */
19 #endif /* LIBGEOTIFF_GEOTIFFIO_H_ */
2020
1010 *
1111 **********************************************************************/
1212
13 #ifndef __geovalues_h_
14 #define __geovalues_h_
13 #ifndef LIBGEOTIFF_GEOVALUES_H_
14 #define LIBGEOTIFF_GEOVALUES_H_
1515
1616 /* If code values are added or modified, the "GvCurrentMinorRev"
1717 * number should be incremented here. If new Keys are added, then the
111111 VDatumBase = 1
112112 } vdatum_t;
113113
114 #endif /* __geovalues_h_ */
114 #endif /* LIBGEOTIFF_GEOVALUES_H_ */
115115
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1516
1617
1718 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
6319 pkgdatadir = $(datadir)/@PACKAGE@
6420 pkgincludedir = $(includedir)/@PACKAGE@
6521 pkglibdir = $(libdir)/@PACKAGE@
7935 build_triplet = @build@
8036 host_triplet = @host@
8137 subdir = libxtiff
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/depcomp $(include_HEADERS)
38 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in
8440 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8541 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
8642 $(top_srcdir)/configure.ac
9450 libxtiff_la_LIBADD =
9551 am_libxtiff_la_OBJECTS = xtiff.lo
9652 libxtiff_la_OBJECTS = $(am_libxtiff_la_OBJECTS)
97 AM_V_lt = $(am__v_lt_@AM_V@)
98 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
99 am__v_lt_0 = --silent
100 am__v_lt_1 =
101 AM_V_P = $(am__v_P_@AM_V@)
102 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
103 am__v_P_0 = false
104 am__v_P_1 = :
105 AM_V_GEN = $(am__v_GEN_@AM_V@)
106 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
107 am__v_GEN_0 = @echo " GEN " $@;
108 am__v_GEN_1 =
109 AM_V_at = $(am__v_at_@AM_V@)
110 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
111 am__v_at_0 = @
112 am__v_at_1 =
11353 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
11454 depcomp = $(SHELL) $(top_srcdir)/depcomp
11555 am__depfiles_maybe = depfiles
11656 am__mv = mv -f
11757 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
11858 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
119 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
120 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
121 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
122 $(AM_CFLAGS) $(CFLAGS)
123 AM_V_CC = $(am__v_CC_@AM_V@)
124 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
125 am__v_CC_0 = @echo " CC " $@;
126 am__v_CC_1 =
59 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
61 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
12762 CCLD = $(CC)
128 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
129 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
130 $(AM_LDFLAGS) $(LDFLAGS) -o $@
131 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
132 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
133 am__v_CCLD_0 = @echo " CCLD " $@;
134 am__v_CCLD_1 =
63 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
65 $(LDFLAGS) -o $@
13566 SOURCES = $(libxtiff_la_SOURCES)
13667 DIST_SOURCES = $(libxtiff_la_SOURCES)
137 am__can_run_installinfo = \
138 case $$AM_UPDATE_INFO_DIR in \
139 n|no|NO) false;; \
140 *) (install-info --version) >/dev/null 2>&1;; \
141 esac
14268 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
14369 am__vpath_adj = case $$p in \
14470 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
16086 am__base_list = \
16187 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
16288 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
163 am__uninstall_files_from_dir = { \
164 test -z "$$files" \
165 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
166 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
167 $(am__cd) "$$dir" && rm -f $$files; }; \
168 }
16989 am__installdirs = "$(DESTDIR)$(includedir)"
17090 HEADERS = $(include_HEADERS)
171 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
172 # Read a list of newline-separated strings from the standard input,
173 # and print each of them once, without duplicates. Input order is
174 # *not* preserved.
175 am__uniquify_input = $(AWK) '\
176 BEGIN { nonempty = 0; } \
177 { items[$$0] = 1; nonempty = 1; } \
178 END { if (nonempty) { for (i in items) print i; }; } \
179 '
180 # Make sure the list of sources is unique. This is necessary because,
181 # e.g., the same source file might be shared among _SOURCES variables
182 # for different programs/libraries.
183 am__define_uniq_tagged_files = \
184 list='$(am__tagged_files)'; \
185 unique=`for i in $$list; do \
186 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
187 done | $(am__uniquify_input)`
18891 ETAGS = etags
18992 CTAGS = ctags
19093 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
19194 ACLOCAL = @ACLOCAL@
19295 AMTAR = @AMTAR@
193 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
19496 AR = @AR@
19597 AUTOCONF = @AUTOCONF@
19698 AUTOHEADER = @AUTOHEADER@
208110 CYGPATH_W = @CYGPATH_W@
209111 DEFS = @DEFS@
210112 DEPDIR = @DEPDIR@
211 DLLTOOL = @DLLTOOL@
212113 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
213114 DSYMUTIL = @DSYMUTIL@
214115 DUMPBIN = @DUMPBIN@
261162 LTLIBOBJS = @LTLIBOBJS@
262163 MAINT = @MAINT@
263164 MAKEINFO = @MAKEINFO@
264 MANIFEST_TOOL = @MANIFEST_TOOL@
265165 MKDIR_P = @MKDIR_P@
266166 NM = @NM@
267167 NMEDIT = @NMEDIT@
293193 abs_srcdir = @abs_srcdir@
294194 abs_top_builddir = @abs_top_builddir@
295195 abs_top_srcdir = @abs_top_srcdir@
296 ac_ct_AR = @ac_ct_AR@
297196 ac_ct_CC = @ac_ct_CC@
298197 ac_ct_CXX = @ac_ct_CXX@
299198 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
327226 libexecdir = @libexecdir@
328227 localedir = @localedir@
329228 localstatedir = @localstatedir@
229 lt_ECHO = @lt_ECHO@
330230 mandir = @mandir@
331231 mkdir_p = @mkdir_p@
332232 oldincludedir = @oldincludedir@
384284
385285 clean-noinstLTLIBRARIES:
386286 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
387 @list='$(noinst_LTLIBRARIES)'; \
388 locs=`for p in $$list; do echo $$p; done | \
389 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
390 sort -u`; \
391 test -z "$$locs" || { \
392 echo rm -f $${locs}; \
393 rm -f $${locs}; \
394 }
395
396 libxtiff.la: $(libxtiff_la_OBJECTS) $(libxtiff_la_DEPENDENCIES) $(EXTRA_libxtiff_la_DEPENDENCIES)
397 $(AM_V_CCLD)$(LINK) $(libxtiff_la_OBJECTS) $(libxtiff_la_LIBADD) $(LIBS)
287 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293 libxtiff.la: $(libxtiff_la_OBJECTS) $(libxtiff_la_DEPENDENCIES)
294 $(LINK) $(libxtiff_la_OBJECTS) $(libxtiff_la_LIBADD) $(LIBS)
398295
399296 mostlyclean-compile:
400297 -rm -f *.$(OBJEXT)
405302 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xtiff.Plo@am__quote@
406303
407304 .c.o:
408 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
409 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
410 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
411308 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
412 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
309 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
413310
414311 .c.obj:
415 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
416 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
417 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
418315 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
419 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
316 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
420317
421318 .c.lo:
422 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
423 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
424 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
425322 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
426 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
323 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
427324
428325 mostlyclean-libtool:
429326 -rm -f *.lo
432329 -rm -rf .libs _libs
433330 install-includeHEADERS: $(include_HEADERS)
434331 @$(NORMAL_INSTALL)
332 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
435333 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
436 if test -n "$$list"; then \
437 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
438 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
439 fi; \
440334 for p in $$list; do \
441335 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
442336 echo "$$d$$p"; \
450344 @$(NORMAL_UNINSTALL)
451345 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
452346 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
453 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
454
455 ID: $(am__tagged_files)
456 $(am__define_uniq_tagged_files); mkid -fID $$unique
457 tags: tags-am
458 TAGS: tags
459
460 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
347 test -n "$$files" || exit 0; \
348 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
349 cd "$(DESTDIR)$(includedir)" && rm -f $$files
350
351 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 mkid -fID $$unique
359 tags: TAGS
360
361 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
461363 set x; \
462364 here=`pwd`; \
463 $(am__define_uniq_tagged_files); \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
464371 shift; \
465372 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
466373 test -n "$$unique" || unique=$$empty_fix; \
472379 $$unique; \
473380 fi; \
474381 fi
475 ctags: ctags-am
476
477 CTAGS: ctags
478 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
479 $(am__define_uniq_tagged_files); \
382 ctags: CTAGS
383 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
384 $(TAGS_FILES) $(LISP)
385 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
386 unique=`for i in $$list; do \
387 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
388 done | \
389 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
390 END { if (nonempty) { for (i in files) print i; }; }'`; \
480391 test -z "$(CTAGS_ARGS)$$unique" \
481392 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
482393 $$unique
485396 here=`$(am__cd) $(top_builddir) && pwd` \
486397 && $(am__cd) $(top_srcdir) \
487398 && gtags -i $(GTAGS_ARGS) "$$here"
488 cscopelist: cscopelist-am
489
490 cscopelist-am: $(am__tagged_files)
491 list='$(am__tagged_files)'; \
492 case "$(srcdir)" in \
493 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
494 *) sdir=$(subdir)/$(srcdir) ;; \
495 esac; \
496 for i in $$list; do \
497 if test -f "$$i"; then \
498 echo "$(subdir)/$$i"; \
499 else \
500 echo "$$sdir/$$i"; \
501 fi; \
502 done >> $(top_builddir)/cscope.files
503399
504400 distclean-tags:
505401 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
551447
552448 installcheck: installcheck-am
553449 install-strip:
554 if test -z '$(STRIP)'; then \
555 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
556 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
557 install; \
558 else \
559 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
560 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
561 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
562 fi
450 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
451 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
452 `test -z '$(STRIP)' || \
453 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
563454 mostlyclean-generic:
564455
565456 clean-generic:
644535
645536 .MAKE: install-am install-strip
646537
647 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
648 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
649 ctags-am distclean distclean-compile distclean-generic \
650 distclean-libtool distclean-tags distdir dvi dvi-am html \
651 html-am info info-am install install-am install-data \
652 install-data-am install-dvi install-dvi-am install-exec \
653 install-exec-am install-html install-html-am \
654 install-includeHEADERS install-info install-info-am \
655 install-man install-pdf install-pdf-am install-ps \
656 install-ps-am install-strip installcheck installcheck-am \
657 installdirs maintainer-clean maintainer-clean-generic \
658 mostlyclean mostlyclean-compile mostlyclean-generic \
659 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
660 uninstall-am uninstall-includeHEADERS
538 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
539 clean-libtool clean-noinstLTLIBRARIES ctags distclean \
540 distclean-compile distclean-generic distclean-libtool \
541 distclean-tags distdir dvi dvi-am html html-am info info-am \
542 install install-am install-data install-data-am install-dvi \
543 install-dvi-am install-exec install-exec-am install-html \
544 install-html-am install-includeHEADERS install-info \
545 install-info-am install-man install-pdf install-pdf-am \
546 install-ps install-ps-am install-strip installcheck \
547 installcheck-am installdirs maintainer-clean \
548 maintainer-clean-generic mostlyclean mostlyclean-compile \
549 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
550 tags uninstall uninstall-am uninstall-includeHEADERS
661551
662552
663553 # Tell versions [3.59,3.63) of GNU make to not export all variables.
33 * written by: Niles D. Ritter
44 */
55
6 #ifndef __xtiffio_h
7 #define __xtiffio_h
6 #ifndef LIBGEOTIFF_XTIFFIO_H_
7 #define LIBGEOTIFF_XTIFFIO_H_
88
99 #include "tiffio.h"
1010 #include "geo_config.h"
6464 # endif
6565 #endif
6666
67 extern void CPL_DLL XTIFFInitialize();
67 extern void CPL_DLL XTIFFInitialize(void);
6868 extern TIFF CPL_DLL * XTIFFOpen(const char* name, const char* mode);
6969 extern TIFF CPL_DLL * XTIFFFdOpen(int fd, const char* name, const char* mode);
7070 extern void CPL_DLL XTIFFClose(TIFF *tif);
7979 }
8080 #endif
8181
82 #endif /* __xtiffio_h */
82 #endif /* LIBGEOTIFF_XTIFFIO_H_ */
8383
+1534
-2782
ltmain.sh less more
0
1 # libtool (GNU libtool) 2.4.2
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6b
23 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
34
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 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 # --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
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
4945 #
5046 # MODE must be one of the following:
5147 #
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
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
5955 #
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.
56 # MODE-ARGS vary depending on the MODE.
6257 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
6358 #
6459 # When reporting a bug, please describe a test case to reproduce it and
6560 # include the following information:
6661 #
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.7ubuntu1
73 # automake: $automake_version
74 # autoconf: $autoconf_version
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-2ubuntu1
68 # automake: $automake_version
69 # autoconf: $autoconf_version
7570 #
7671 # Report bugs to <bug-libtool@gnu.org>.
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
72
73 PROGRAM=ltmain.sh
8174 PACKAGE=libtool
82 VERSION="2.4.2 Debian-2.4.2-1.7ubuntu1"
75 VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
8376 TIMESTAMP=""
84 package_revision=1.3337
77 package_revision=1.3017
8578
8679 # Be Bourne compatible
8780 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9790 BIN_SH=xpg4; export BIN_SH # for Tru64
9891 DUALCASE=1; export DUALCASE # for MKS sh
9992
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
10893 # 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).
10997 lt_user_locale=
11098 lt_safe_locale=
11199 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
118106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
119107 fi"
120108 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124109
125110 $lt_unset CDPATH
126111
127112
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"
134113
135114
136115
137116 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
139122 : ${MAKE="make"}
140123 : ${MKDIR="mkdir"}
141124 : ${MV="mv -f"}
142125 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
143127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144128 : ${Xsed="$SED -e 1s/^X//"}
145129
158142
159143 dirname="s,/[^/]*$,,"
160144 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
182145
183146 # func_dirname_and_basename file append nondir_replacement
184147 # perform func_basename and func_dirname in a single function
194157 # those functions but instead duplicate the functionality here.
195158 func_dirname_and_basename ()
196159 {
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
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
166 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
307168 }
308169
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}
360 fi
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 }
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"
370178
371179 # 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:
372182 func_dirname_and_basename "$progpath"
373183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
374187
375188 # Make sure we have an absolute path for reexecution:
376189 case $progpath in
382195 ;;
383196 *)
384197 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
198 IFS=:
386199 for progdir in $PATH; do
387200 IFS="$save_IFS"
388201 test -x "$progdir/$progname" && break
400213
401214 # Same as above, but do not quote variable references.
402215 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'
412216
413217 # Re-`\' parameter expansions in output of double_quote_subst that were
414218 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
438242 # name if it has been set yet.
439243 func_echo ()
440244 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
245 $ECHO "$progname${mode+: }$mode: $*"
442246 }
443247
444248 # func_verbose arg...
453257 :
454258 }
455259
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463260 # func_error arg...
464261 # Echo program name prefixed message to standard error.
465262 func_error ()
466263 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
468265 }
469266
470267 # func_warning arg...
471268 # Echo program name prefixed warning message to standard error.
472269 func_warning ()
473270 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
475272
476273 # bash bug again:
477274 :
528325 case $my_directory_path in */*) ;; *) break ;; esac
529326
530327 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
532329 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
534331
535332 save_mkdir_p_IFS="$IFS"; IFS=':'
536333 for my_dir in $my_dir_list; do
580377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581378 fi
582379
583 $ECHO "$my_tmpdir"
380 $ECHO "X$my_tmpdir" | $Xsed
584381 }
585382
586383
594391 {
595392 case $1 in
596393 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
598395 *)
599396 func_quote_for_eval_unquoted_result="$1" ;;
600397 esac
621418 {
622419 case $1 in
623420 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
421 my_arg=`$ECHO "X$1" | $Xsed \
625422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
626423 *)
627424 my_arg="$1" ;;
690487 fi
691488 }
692489
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 }
490
491
709492
710493
711494 # func_version
712495 # Echo version message to standard output and exit.
713496 func_version ()
714497 {
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; / {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
726499 s/^# //
727500 s/^# *$//
728501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
735508 # Echo short help message to standard output and exit.
736509 func_usage ()
737510 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
511 $SED -n '/^# Usage:/,/# -h/ {
741512 s/^# //
742513 s/^# *$//
743514 s/\$progname/'$progname'/
744515 p
745516 }' < "$progpath"
746 echo
517 $ECHO
747518 $ECHO "run \`$progname --help | more' for full usage"
748519 exit $?
749520 }
750521
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
522 # func_help
523 # Echo long help message to standard output and exit.
754524 func_help ()
755525 {
756 $opt_debug
757
758526 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760527 s/^# //
761528 s/^# *$//
762529 s*\$progname*'$progname'*
766533 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767534 s*\$LD*'"$LD"'*
768535 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
771538 p
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
539 }' < "$progpath"
540 exit $?
781541 }
782542
783543 # func_missing_arg argname
785545 # exit_cmd.
786546 func_missing_arg ()
787547 {
788 $opt_debug
789
790 func_error "missing argument for $1."
548 func_error "missing argument for $1"
791549 exit_cmd=exit
792550 }
793551
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
820552 exit_cmd=:
821553
822554
823555
824556
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
825581
826582 magic="%%%MAGIC variable%%%"
827583 magic_exe="%%%MAGIC EXE variable%%%"
828584
829585 # Global variables.
586 # $mode is unset
830587 nonopt=
588 execute_dlfiles=
831589 preserve_args=
832590 lo2o="s/\\.lo\$/.${objext}/"
833591 o2lo="s/\\.${objext}\$/.lo/"
834592 extracted_archives=
835593 extracted_serial=0
836594
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
837600 # If this variable is set in any of the actions, the command in it
838601 # will be execed at the end. This prevents here-documents from being
839602 # left over by shells.
840603 exec_cmd=
841
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
887604
888605 # func_fatal_configuration arg...
889606 # Echo program name prefixed message to standard error, followed by
918635 # Display the features supported by this script.
919636 func_features ()
920637 {
921 echo "host: $host"
638 $ECHO "host: $host"
922639 if test "$build_libtool_libs" = yes; then
923 echo "enable shared libraries"
640 $ECHO "enable shared libraries"
924641 else
925 echo "disable shared libraries"
642 $ECHO "disable shared libraries"
926643 fi
927644 if test "$build_old_libs" = yes; then
928 echo "enable static libraries"
645 $ECHO "enable static libraries"
929646 else
930 echo "disable static libraries"
647 $ECHO "disable static libraries"
931648 fi
932649
933650 exit $?
972689 fi
973690 ;;
974691 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
975819 }
976820
977821 # func_check_version_match
1010854 }
1011855
1012856
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
1222857 ## ----------- ##
1223858 ## Main. ##
1224859 ## ----------- ##
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
1225888
1226889 # func_lalib_p file
1227890 # True iff FILE is a libtool `.la' library or `.lo' object file.
1286949 # temporary ltwrapper_script.
1287950 func_ltwrapper_scriptname ()
1288951 {
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"
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
1292958 }
1293959
1294960 # func_ltwrapper_p file
13341000 }
13351001
13361002
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
13681003 # func_infer_tag arg
13691004 # Infer tagged configuration to use if any are available and
13701005 # if one wasn't chosen via the "--tag" command line option.
13771012 if test -n "$available_tags" && test -z "$tagname"; then
13781013 CC_quoted=
13791014 for arg in $CC; do
1380 func_append_quoted CC_quoted "$arg"
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
13811017 done
1382 CC_expanded=`func_echo_all $CC`
1383 CC_quoted_expanded=`func_echo_all $CC_quoted`
13841018 case $@ in
13851019 # Blanks in the command may have been stripped by the calling shell,
13861020 # but not from the CC environment variable when configure was run.
1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
13891022 # Blanks at the start of $base_compile will cause this to fail
13901023 # if we don't check for them as well.
13911024 *)
13961029 CC_quoted=
13971030 for arg in $CC; do
13981031 # Double-quote args containing other shell metacharacters.
1399 func_append_quoted CC_quoted "$arg"
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
14001034 done
1401 CC_expanded=`func_echo_all $CC`
1402 CC_quoted_expanded=`func_echo_all $CC_quoted`
14031035 case "$@ " in
1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
14061037 # The compiler in the base compile command matches
14071038 # the one in the tagged configuration.
14081039 # Assume this is the tagged configuration we want.
14651096 }
14661097 }
14671098
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
19481099 # func_mode_compile arg...
19491100 func_mode_compile ()
19501101 {
19851136 ;;
19861137
19871138 -pie | -fpie | -fPIE)
1988 func_append pie_flag " $arg"
1139 pie_flag="$pie_flag $arg"
19891140 continue
19901141 ;;
19911142
19921143 -shared | -static | -prefer-pic | -prefer-non-pic)
1993 func_append later " $arg"
1144 later="$later $arg"
19941145 continue
19951146 ;;
19961147
20111162 save_ifs="$IFS"; IFS=','
20121163 for arg in $args; do
20131164 IFS="$save_ifs"
2014 func_append_quoted lastarg "$arg"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
20151167 done
20161168 IFS="$save_ifs"
20171169 func_stripname ' ' '' "$lastarg"
20181170 lastarg=$func_stripname_result
20191171
20201172 # Add the arguments to base_compile.
2021 func_append base_compile " $lastarg"
1173 base_compile="$base_compile $lastarg"
20221174 continue
20231175 ;;
20241176
20341186 esac # case $arg_mode
20351187
20361188 # Aesthetically quote the previous argument.
2037 func_append_quoted base_compile "$lastarg"
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
20381191 done # for arg
20391192
20401193 case $arg_mode in
20591212 *.[cCFSifmso] | \
20601213 *.ada | *.adb | *.ads | *.asm | \
20611214 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
20631216 func_xform "$libobj"
20641217 libobj=$func_xform_result
20651218 ;;
21341287 # Calculate the filename of the output object if compiler does
21351288 # not support -o with -c
21361289 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
21381291 lockfile="$output_obj.lock"
21391292 else
21401293 output_obj=
21651318 $opt_dry_run || $RM $removelist
21661319 exit $EXIT_FAILURE
21671320 fi
2168 func_append removelist " $output_obj"
1321 removelist="$removelist $output_obj"
21691322 $ECHO "$srcfile" > "$lockfile"
21701323 fi
21711324
21721325 $opt_dry_run || $RM $removelist
2173 func_append removelist " $lockfile"
1326 removelist="$removelist $lockfile"
21741327 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
21751328
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
21781332 func_quote_for_eval "$srcfile"
21791333 qsrcfile=$func_quote_for_eval_result
21801334
21941348
21951349 if test -z "$output_obj"; then
21961350 # Place PIC objects in $objdir
2197 func_append command " -o $lobj"
1351 command="$command -o $lobj"
21981352 fi
21991353
22001354 func_show_eval_locale "$command" \
22411395 command="$base_compile $qsrcfile $pic_flag"
22421396 fi
22431397 if test "$compiler_c_o" = yes; then
2244 func_append command " -o $obj"
1398 command="$command -o $obj"
22451399 fi
22461400
22471401 # Suppress compiler output if we already did a PIC compilation.
2248 func_append command "$suppress_output"
1402 command="$command$suppress_output"
22491403 func_show_eval_locale "$command" \
22501404 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22511405
22901444 }
22911445
22921446 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
22941448 }
22951449
22961450 func_mode_help ()
22971451 {
22981452 # We need to display help for each of the modes.
2299 case $opt_mode in
1453 case $mode in
23001454 "")
23011455 # Generic help is extracted from the usage comments
23021456 # at the start of this file.
23271481
23281482 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
23291483 -no-suppress do not suppress compiler output for multiple passes
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
23321486 -shared do not build a \`.o' file suitable for static linking
23331487 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
23351488
23361489 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
23371490 from the given SOURCEFILE.
23841537
23851538 The following components of INSTALL-COMMAND are treated specially:
23861539
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
23881541
23891542 The rest of the components are interpreted as arguments to that command (only
23901543 BSD-compatible install options are recognized)."
24041557
24051558 -all-static do not do any dynamic linking at all
24061559 -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)
24091560 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
24101561 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24111562 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24341585 -version-info CURRENT[:REVISION[:AGE]]
24351586 specify library version info [each variable defaults to 0]
24361587 -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)
24421588
24431589 All other options (arguments beginning with \`-') are ignored.
24441590
24721618 ;;
24731619
24741620 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
1621 func_fatal_help "invalid operation mode \`$mode'"
24761622 ;;
24771623 esac
24781624
2479 echo
1625 $ECHO
24801626 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
24811629 }
24821630
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
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
25131633
25141634
25151635 # func_mode_execute arg...
25221642 func_fatal_help "you must specify a COMMAND"
25231643
25241644 # Handle -dlopen flags immediately.
2525 for file in $opt_dlopen; do
1645 for file in $execute_dlfiles; do
25261646 test -f "$file" \
25271647 || func_fatal_help "\`$file' is not a file"
25281648
25291649 dir=
25301650 case $file in
25311651 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
25351652 # Check to see that this really is a libtool archive.
25361653 func_lalib_unsafe_p "$file" \
25371654 || func_fatal_help "\`$lib' is not a valid libtool archive"
25531670 dir="$func_dirname_result"
25541671
25551672 if test -f "$dir/$objdir/$dlname"; then
2556 func_append dir "/$objdir"
1673 dir="$dir/$objdir"
25571674 else
25581675 if test ! -f "$dir/$dlname"; then
25591676 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
25941711 for file
25951712 do
25961713 case $file in
2597 -* | *.la | *.lo ) ;;
1714 -*) ;;
25981715 *)
25991716 # Do a test to see if this is really a libtool program.
26001717 if func_ltwrapper_script_p "$file"; then
26101727 ;;
26111728 esac
26121729 # Quote arguments (to preserve shell metacharacters).
2613 func_append_quoted args "$file"
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
26141732 done
26151733
26161734 if test "X$opt_dry_run" = Xfalse; then
26351753 # Display what would be done.
26361754 if test -n "$shlibpath_var"; then
26371755 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
1756 $ECHO "export $shlibpath_var"
26391757 fi
26401758 $ECHO "$cmd$args"
26411759 exit $EXIT_SUCCESS
26421760 fi
26431761 }
26441762
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
26461764
26471765
26481766 # func_mode_finish arg...
26491767 func_mode_finish ()
26501768 {
26511769 $opt_debug
2652 libs=
2653 libdirs=
1770 libdirs="$nonopt"
26541771 admincmds=
26551772
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
26971773 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
26981779 for libdir in $libdirs; do
26991780 if test -n "$finish_cmds"; then
27001781 # Do each command in the finish commands.
27041785 if test -n "$finish_eval"; then
27051786 # Do the single finish_eval.
27061787 eval cmds=\"$finish_eval\"
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
27081789 $cmds"
27091790 fi
27101791 done
27131794 # Exit here if they wanted silent mode.
27141795 $opt_silent && exit $EXIT_SUCCESS
27151796
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 "----------------------------------------------------------------------"
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"
27601810 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
27611840 exit $EXIT_SUCCESS
27621841 }
27631842
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
27651844
27661845
27671846 # func_mode_install arg...
27721851 # install_prog (especially on Windows NT).
27731852 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
27741853 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
27761855 # Aesthetically quote it.
27771856 func_quote_for_eval "$nonopt"
27781857 install_prog="$func_quote_for_eval_result "
27861865 # The real first argument should be the name of the installation program.
27871866 # Aesthetically quote it.
27881867 func_quote_for_eval "$arg"
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
1868 install_prog="$install_prog$func_quote_for_eval_result"
27951869
27961870 # We need to accept at least all the BSD install flags.
27971871 dest=
28011875 install_type=
28021876 isdir=no
28031877 stripme=
2804 no_mode=:
28051878 for arg
28061879 do
2807 arg2=
28081880 if test -n "$dest"; then
2809 func_append files " $dest"
1881 files="$files $dest"
28101882 dest=$arg
28111883 continue
28121884 fi
28141886 case $arg in
28151887 -d) isdir=yes ;;
28161888 -f)
2817 if $install_cp; then :; else
2818 prev=$arg
2819 fi
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
28201893 ;;
28211894 -g | -m | -o)
28221895 prev=$arg
28301903 *)
28311904 # If the previous option needed an argument, then skip it.
28321905 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
28371906 prev=
28381907 else
28391908 dest=$arg
28441913
28451914 # Aesthetically quote the argument.
28461915 func_quote_for_eval "$arg"
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"
1916 install_prog="$install_prog $func_quote_for_eval_result"
28521917 done
28531918
28541919 test -z "$install_prog" && \
28561921
28571922 test -n "$prev" && \
28581923 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
28661924
28671925 if test -z "$files"; then
28681926 if test -z "$dest"; then
29181976 case $file in
29191977 *.$libext)
29201978 # Do the static libraries later.
2921 func_append staticlibs " $file"
1979 staticlibs="$staticlibs $file"
29221980 ;;
29231981
29241982 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
29281983 # Check to see that this really is a libtool archive.
29291984 func_lalib_unsafe_p "$file" \
29301985 || func_fatal_help "\`$file' is not a valid libtool archive"
29381993 if test "X$destdir" = "X$libdir"; then
29391994 case "$current_libdirs " in
29401995 *" $libdir "*) ;;
2941 *) func_append current_libdirs " $libdir" ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
29421997 esac
29431998 else
29441999 # Note the libdir as a future libdir.
29452000 case "$future_libdirs " in
29462001 *" $libdir "*) ;;
2947 *) func_append future_libdirs " $libdir" ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
29482003 esac
29492004 fi
29502005
29512006 func_dirname "$file" "/" ""
29522007 dir="$func_dirname_result"
2953 func_append dir "$objdir"
2008 dir="$dir$objdir"
29542009
29552010 if test -n "$relink_command"; then
29562011 # Determine the prefix the user has applied to our future dir.
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
29582013
29592014 # Don't allow the user to place us outside of our expected
29602015 # location b/c this prevents finding dependent libraries that
29672022
29682023 if test -n "$inst_prefix_dir"; then
29692024 # Stick the inst_prefix_dir data into the link command.
2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
29712026 else
2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
29732028 fi
29742029
29752030 func_warning "relinking \`$file'"
29872042 test -n "$relink_command" && srcname="$realname"T
29882043
29892044 # Install the shared library and build the symlinks.
2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
29912046 'exit $?'
29922047 tstripme="$stripme"
29932048 case $host_os in
30272082 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30282083
30292084 # Maybe install the static library, too.
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
30312086 ;;
30322087
30332088 *.lo)
31272182 if test -f "$lib"; then
31282183 func_source "$lib"
31292184 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
31312186 if test -n "$libdir" && test ! -f "$libfile"; then
31322187 func_warning "\`$lib' has not been installed in \`$libdir'"
31332188 finalize=no
31462201 file="$func_basename_result"
31472202 outputname="$tmpdir/$file"
31482203 # Replace the output file specification.
3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
31502205
31512206 $opt_silent || {
31522207 func_quote_for_expand "$relink_command"
31652220 }
31662221 else
31672222 # Install the binary that we compiled earlier.
3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
31692224 fi
31702225 fi
31712226
32012256
32022257 # Set up the ranlib parameters.
32032258 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
32062259
32072260 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
32082261
32092262 if test -n "$stripme" && test -n "$old_striplib"; then
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
32112264 fi
32122265
32132266 # Do each command in the postinstall commands.
32262279 fi
32272280 }
32282281
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
2282 test "$mode" = install && func_mode_install ${1+"$@"}
32302283
32312284
32322285 # func_generate_dlsyms outputname originator pic_p
32692322 extern \"C\" {
32702323 #endif
32712324
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
32882325 /* External symbol declarations for the compiler. */\
32892326 "
32902327
32942331 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32952332
32962333 # Add our own program objects to the symbol list.
3297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
32982335 for progfile in $progfiles; do
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'"
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
33022338 done
33032339
33042340 if test -n "$exclude_expsyms"; then
33342370 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33352371 eval '$MV "$nlist"T "$nlist"'
33362372 case $host in
3337 *cygwin* | *mingw* | *cegcc* )
2373 *cygwin | *mingw* | *cegcc* )
33382374 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33392375 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
33402376 ;;
33472383 func_verbose "extracting global C symbols from \`$dlprefile'"
33482384 func_basename "$dlprefile"
33492385 name="$func_basename_result"
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
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
33962390 done
33972391
33982392 $opt_dry_run || {
34202414 if test -f "$nlist"S; then
34212415 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
34222416 else
3423 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
34242418 fi
34252419
3426 echo >> "$output_objdir/$my_dlsyms" "\
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
34272421
34282422 /* The mapping between symbol names and symbols. */
34292423 typedef struct {
34302424 const char *name;
34312425 void *address;
34322426 } lt_dlsymlist;
3433 extern LT_DLSYM_CONST 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
34342445 lt_${my_prefix}_LTX_preloaded_symbols[];
3435 LT_DLSYM_CONST lt_dlsymlist
2446 $lt_dlsym_const lt_dlsymlist
34362447 lt_${my_prefix}_LTX_preloaded_symbols[] =
34372448 {\
34382449 { \"$my_originator\", (void *) 0 },"
34452456 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
34462457 ;;
34472458 esac
3448 echo >> "$output_objdir/$my_dlsyms" "\
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
34492460 {0, (void *) 0}
34502461 };
34512462
34722483 # linked before any other PIC object. But we must not use
34732484 # pic_flag when linking with -static. The problem exists in
34742485 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
34762487 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
34772488 *-*-hpux*)
34782489 pic_flag_for_symtable=" $pic_flag" ;;
34882499 for arg in $LTCFLAGS; do
34892500 case $arg in
34902501 -pie | -fpie | -fPIE) ;;
3491 *) func_append symtab_cflags " $arg" ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
34922503 esac
34932504 done
34942505
35032514 case $host in
35042515 *cygwin* | *mingw* | *cegcc* )
35052516 if test -f "$output_objdir/$my_outputname.def"; then
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%"`
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%"`
35082519 else
3509 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3510 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
35112522 fi
35122523 ;;
35132524 *)
3514 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3515 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
35162527 ;;
35172528 esac
35182529 ;;
35262537 # really was required.
35272538
35282539 # Nullify the symbol file.
3529 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3530 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
35312542 fi
35322543 }
35332544
35372548 # Need a lot of goo to handle *both* DLLs and import libs
35382549 # Has to be a shell function in order to 'eat' the argument
35392550 # that is supplied when $file_magic_command is called.
3540 # Despite the name, also deal with 64 bit binaries.
35412551 func_win32_libid ()
35422552 {
35432553 $opt_debug
35482558 win32_libid_type="x86 archive import"
35492559 ;;
35502560 *ar\ archive*) # could be an import, or static
3551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35522561 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
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\" |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
35562564 $SED -n -e '
35572565 1,100{
35582566 / I /{
35812589 $ECHO "$win32_libid_type"
35822590 }
35832591
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 }
37092592
37102593
37112594 # func_extract_an_archive dir oldlib
37142597 $opt_debug
37152598 f_ex_an_ar_dir="$1"; shift
37162599 f_ex_an_ar_oldlib="$1"
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
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
37292601 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37302602 :
37312603 else
37962668 darwin_file=
37972669 darwin_files=
37982670 for darwin_file in $darwin_filelist; do
3799 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
38002672 $LIPO -create -output "$darwin_file" $darwin_files
38012673 done # $darwin_filelist
38022674 $RM -rf unfat-$$
38112683 func_extract_an_archive "$my_xdir" "$my_xabs"
38122684 ;;
38132685 esac
3814 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
38152687 done
38162688
38172689 func_extract_archives_result="$my_oldobjs"
38182690 }
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
38192926
38202927
38212928 # func_emit_wrapper [arg=no]
38342941 # behavior.
38352942 func_emit_wrapper ()
38362943 {
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
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
38442957 #
3845 # The $output program cannot be directly executed until all the libtool
3846 # libraries that it depends on are installed.
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.
38472973 #
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 ()
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 ()
38902978 {
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 ;;
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 ;;
39303024 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
39363025 fi
39373026 }
3938
3939 # Used when --lt-debug. Prints its arguments to stdout
3940 # (redirection is the responsibility of the caller)
3941 func_lt_dump_args ()
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 ()
39423049 {
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=. ;;
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 ;;
40373122 esac
40383123 fi
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
4127 fi
4128 fi\
4129 "
41303124 }
4131
3125 # end: func_to_host_pathlist
41323126
41333127 # func_emit_cwrapperexe_src
41343128 # emit the source code for a wrapper executable on stdout
41463140
41473141 This wrapper executable should never be moved out of the build directory.
41483142 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.
41493147 */
41503148 EOF
41513149 cat <<"EOF"
4152 #ifdef _MSC_VER
4153 # define _CRT_SECURE_NO_DEPRECATE 1
4154 #endif
41553150 #include <stdio.h>
41563151 #include <stdlib.h>
41573152 #ifdef _MSC_VER
41583153 # include <direct.h>
41593154 # include <process.h>
41603155 # include <io.h>
3156 # define setmode _setmode
41613157 #else
41623158 # include <unistd.h>
41633159 # include <stdint.h>
41643160 # ifdef __CYGWIN__
41653161 # 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
41663168 # endif
41673169 #endif
41683170 #include <malloc.h>
41743176 #include <fcntl.h>
41753177 #include <sys/stat.h>
41763178
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
42153179 #if defined(PATH_MAX)
42163180 # define LT_PATHMAX PATH_MAX
42173181 #elif defined(MAXPATHLEN)
42273191 # define S_IXGRP 0
42283192 #endif
42293193
4230 /* path handling portability macros */
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
42313202 #ifndef DIR_SEPARATOR
42323203 # define DIR_SEPARATOR '/'
42333204 # define PATH_SEPARATOR ':'
42583229 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
42593230 #endif /* PATH_SEPARATOR_2 */
42603231
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
42613236 #ifndef FOPEN_WB
42623237 # define FOPEN_WB "w"
42633238 #endif
42703245 if (stale) { free ((void *) stale); stale = 0; } \
42713246 } while (0)
42723247
4273 #if defined(LT_DEBUGWRAPPER)
4274 static int lt_debug = 1;
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 }
42753259 #else
4276 static int lt_debug = 0;
3260 # define LTWRAPPER_DEBUGPRINTF(args)
42773261 #endif
42783262
4279 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
3263 const char *program_name = NULL;
42803264
42813265 void *xmalloc (size_t num);
42823266 char *xstrdup (const char *string);
42863270 int make_executable (const char *path);
42873271 int check_executable (const char *path);
42883272 char *strendzap (char *str, const char *pat);
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);
3273 void lt_fatal (const char *message, ...);
42933274 void lt_setenv (const char *name, const char *value);
42943275 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);
42953280 void lt_update_exe_path (const char *name, const char *value);
42963281 void lt_update_lib_path (const char *name, const char *value);
4297 char **prepare_spawn (char **argv);
4298 void lt_dump_script (FILE *f);
3282
3283 static const char *script_text_part1 =
42993284 EOF
43003285
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
43013290 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
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";
43033301 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43043302 EOF
43053303
43063304 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4307 func_to_host_path "$temp_rpath"
3305 func_to_host_pathlist "$temp_rpath"
43083306 cat <<EOF
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
43103308 EOF
43113309 else
43123310 cat <<"EOF"
43153313 fi
43163314
43173315 if test -n "$dllsearchpath"; then
4318 func_to_host_path "$dllsearchpath:"
3316 func_to_host_pathlist "$dllsearchpath:"
43193317 cat <<EOF
43203318 const char * EXE_PATH_VARNAME = "PATH";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
43223320 EOF
43233321 else
43243322 cat <<"EOF"
43413339 cat <<"EOF"
43423340
43433341 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4344
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
43453345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
43463347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4347 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
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 */
43483360
43493361 int
43503362 main (int argc, char *argv[])
43613373 int i;
43623374
43633375 program_name = (char *) xstrdup (base_name (argv[0]));
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;
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 */
43713380 for (i = 1; i < argc; i++)
43723381 {
43733382 if (strcmp (argv[i], dumpscript_opt) == 0)
43813390 esac
43823391
43833392 cat <<"EOF"
4384 lt_dump_script (stdout);
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
43853395 return 0;
43863396 }
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]);
44093397 }
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
3398
3399 newargz = XMALLOC (char *, argc + 1);
44213400 tmp_pathspec = find_executable (argv[0]);
44223401 if (tmp_pathspec == NULL)
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);
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
44273405
44283406 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
4429 lt_debugprintf (__FILE__, __LINE__,
4430 "(main) found exe (after symlink chase) at: %s\n",
4431 actual_cwrapper_path);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
44323409 XFREE (tmp_pathspec);
44333410
4434 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
44353412 strendzap (actual_cwrapper_path, actual_cwrapper_name);
44363413
44373414 /* wrapper name transforms */
44493426 target_name = tmp_pathspec;
44503427 tmp_pathspec = 0;
44513428
4452 lt_debugprintf (__FILE__, __LINE__,
4453 "(main) libtool target name: %s\n",
4454 target_name);
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
44553431 EOF
44563432
44573433 cat <<EOF
45013477
45023478 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
45033479 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. */
3480 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
45083481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
4509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
4510
4511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4512 nonnull (lt_argv_zero));
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>")));
45133551 for (i = 0; i < newargc; i++)
45143552 {
4515 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4516 i, nonnull (newargz[i]));
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
45173554 }
45183555
45193556 EOF
45223559 mingw*)
45233560 cat <<"EOF"
45243561 /* execv doesn't actually work on mingw as expected on unix */
4525 newargz = prepare_spawn (newargz);
45263562 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45273563 if (rval == -1)
45283564 {
45293565 /* failed to start process */
4530 lt_debugprintf (__FILE__, __LINE__,
4531 "(main) failed to launch target \"%s\": %s\n",
4532 lt_argv_zero, nonnull (strerror (errno)));
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
45333567 return 127;
45343568 }
45353569 return rval;
45513585 {
45523586 void *p = (void *) malloc (num);
45533587 if (!p)
4554 lt_fatal (__FILE__, __LINE__, "memory exhausted");
3588 lt_fatal ("Memory exhausted");
45553589
45563590 return p;
45573591 }
45853619 {
45863620 struct stat st;
45873621
4588 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4589 nonempty (path));
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
45903624 if ((!path) || (!*path))
45913625 return 0;
45923626
46033637 int rval = 0;
46043638 struct stat st;
46053639
4606 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4607 nonempty (path));
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
46083642 if ((!path) || (!*path))
46093643 return 0;
46103644
46303664 int tmp_len;
46313665 char *concat_name;
46323666
4633 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4634 nonempty (wrapper));
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
46353669
46363670 if ((wrapper == NULL) || (*wrapper == '\0'))
46373671 return NULL;
46843718 {
46853719 /* empty path: current directory */
46863720 if (getcwd (tmp, LT_PATHMAX) == NULL)
4687 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4688 nonnull (strerror (errno)));
3721 lt_fatal ("getcwd failed");
46893722 tmp_len = strlen (tmp);
46903723 concat_name =
46913724 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
47103743 }
47113744 /* Relative path | not found in path: prepend cwd */
47123745 if (getcwd (tmp, LT_PATHMAX) == NULL)
4713 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4714 nonnull (strerror (errno)));
3746 lt_fatal ("getcwd failed");
47153747 tmp_len = strlen (tmp);
47163748 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
47173749 memcpy (concat_name, tmp, tmp_len);
47373769 int has_symlinks = 0;
47383770 while (strlen (tmp_pathspec) && !has_symlinks)
47393771 {
4740 lt_debugprintf (__FILE__, __LINE__,
4741 "checking path component for symlinks: %s\n",
4742 tmp_pathspec);
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
47433774 if (lstat (tmp_pathspec, &s) == 0)
47443775 {
47453776 if (S_ISLNK (s.st_mode) != 0)
47613792 }
47623793 else
47633794 {
4764 lt_fatal (__FILE__, __LINE__,
4765 "error accessing file \"%s\": %s",
4766 tmp_pathspec, nonnull (strerror (errno)));
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
47673797 }
47683798 }
47693799 XFREE (tmp_pathspec);
47763806 tmp_pathspec = realpath (pathspec, buf);
47773807 if (tmp_pathspec == 0)
47783808 {
4779 lt_fatal (__FILE__, __LINE__,
4780 "could not follow symlinks for %s", pathspec);
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
47813810 }
47823811 return xstrdup (tmp_pathspec);
47833812 #endif
48033832 return str;
48043833 }
48053834
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
48193835 static void
4820 lt_error_core (int exit_status, const char *file,
4821 int line, const char *mode,
3836 lt_error_core (int exit_status, const char *mode,
48223837 const char *message, va_list ap)
48233838 {
4824 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
48253840 vfprintf (stderr, message, ap);
48263841 fprintf (stderr, ".\n");
48273842
48303845 }
48313846
48323847 void
4833 lt_fatal (const char *file, int line, const char *message, ...)
3848 lt_fatal (const char *message, ...)
48343849 {
48353850 va_list ap;
48363851 va_start (ap, message);
4837 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
48383853 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);
48513854 }
48523855
48533856 void
48543857 lt_setenv (const char *name, const char *value)
48553858 {
4856 lt_debugprintf (__FILE__, __LINE__,
4857 "(lt_setenv) setting '%s' to '%s'\n",
4858 nonnull (name), nonnull (value));
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
48593862 {
48603863 #ifdef HAVE_SETENV
48613864 /* always make a copy, for consistency with !HAVE_SETENV */
49003903 return new_value;
49013904 }
49023905
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
49033989 void
49043990 lt_update_exe_path (const char *name, const char *value)
49053991 {
4906 lt_debugprintf (__FILE__, __LINE__,
4907 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4908 nonnull (name), nonnull (value));
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
49093995
49103996 if (name && *name && value && *value)
49113997 {
49244010 void
49254011 lt_update_lib_path (const char *name, const char *value)
49264012 {
4927 lt_debugprintf (__FILE__, __LINE__,
4928 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4929 nonnull (name), nonnull (value));
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
49304016
49314017 if (name && *name && value && *value)
49324018 {
49364022 }
49374023 }
49384024
4939 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 }
4025
50764026 EOF
50774027 }
50784028 # 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 }
50904029
50914030 # func_mode_link arg...
50924031 func_mode_link ()
51324071 new_inherited_linker_flags=
51334072
51344073 avoid_version=no
5135 bindir=
51364074 dlfiles=
51374075 dlprefiles=
51384076 dlself=no
52254163 esac
52264164
52274165 case $prev in
5228 bindir)
5229 bindir="$arg"
5230 prev=
5231 continue
5232 ;;
52334166 dlfiles|dlprefiles)
52344167 if test "$preload" = no; then
52354168 # Add the symbol object into the linking commands.
52614194 ;;
52624195 *)
52634196 if test "$prev" = dlfiles; then
5264 func_append dlfiles " $arg"
4197 dlfiles="$dlfiles $arg"
52654198 else
5266 func_append dlprefiles " $arg"
4199 dlprefiles="$dlprefiles $arg"
52674200 fi
52684201 prev=
52694202 continue
52874220 *-*-darwin*)
52884221 case "$deplibs " in
52894222 *" $qarg.ltframework "*) ;;
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
52914224 ;;
52924225 esac
52934226 ;;
53064239 moreargs=
53074240 for fil in `cat "$save_arg"`
53084241 do
5309 # func_append moreargs " $fil"
4242 # moreargs="$moreargs $fil"
53104243 arg=$fil
53114244 # A libtool-controlled object.
53124245
53354268
53364269 if test "$prev" = dlfiles; then
53374270 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5338 func_append dlfiles " $pic_object"
4271 dlfiles="$dlfiles $pic_object"
53394272 prev=
53404273 continue
53414274 else
53474280 # CHECK ME: I think I busted this. -Ossama
53484281 if test "$prev" = dlprefiles; then
53494282 # Preload the old-style object.
5350 func_append dlprefiles " $pic_object"
4283 dlprefiles="$dlprefiles $pic_object"
53514284 prev=
53524285 fi
53534286
54174350 if test "$prev" = rpath; then
54184351 case "$rpath " in
54194352 *" $arg "*) ;;
5420 *) func_append rpath " $arg" ;;
4353 *) rpath="$rpath $arg" ;;
54214354 esac
54224355 else
54234356 case "$xrpath " in
54244357 *" $arg "*) ;;
5425 *) func_append xrpath " $arg" ;;
4358 *) xrpath="$xrpath $arg" ;;
54264359 esac
54274360 fi
54284361 prev=
54344367 continue
54354368 ;;
54364369 weak)
5437 func_append weak_libs " $arg"
4370 weak_libs="$weak_libs $arg"
54384371 prev=
54394372 continue
54404373 ;;
54414374 xcclinker)
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
54444377 prev=
54454378 func_append compile_command " $qarg"
54464379 func_append finalize_command " $qarg"
54474380 continue
54484381 ;;
54494382 xcompiler)
5450 func_append compiler_flags " $qarg"
4383 compiler_flags="$compiler_flags $qarg"
54514384 prev=
54524385 func_append compile_command " $qarg"
54534386 func_append finalize_command " $qarg"
54544387 continue
54554388 ;;
54564389 xlinker)
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
4390 linker_flags="$linker_flags $qarg"
4391 compiler_flags="$compiler_flags $wl$qarg"
54594392 prev=
54604393 func_append compile_command " $wl$qarg"
54614394 func_append finalize_command " $wl$qarg"
54914424 continue
54924425 ;;
54934426
5494 -bindir)
5495 prev=bindir
5496 continue
5497 ;;
5498
54994427 -dlopen)
55004428 prev=dlfiles
55014429 continue
55464474 ;;
55474475
55484476 -L*)
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
55514480 if test "$#" -gt 0; then
55524481 func_fatal_error "require no space between \`-L' and \`$1'"
55534482 else
55544483 func_fatal_error "need path for \`-L' option"
55554484 fi
55564485 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
55594486 # We need an absolute path.
55604487 case $dir in
55614488 [\\/]* | [A-Za-z]:[\\/]*) ;;
55674494 ;;
55684495 esac
55694496 case "$deplibs " in
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
4497 *" -L$dir "*) ;;
55734498 *)
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"
4499 deplibs="$deplibs -L$dir"
4500 lib_search_path="$lib_search_path $dir"
55804501 ;;
55814502 esac
55824503 case $host in
55834504 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5584 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
55854506 case :$dllsearchpath: in
55864507 *":$dir:"*) ;;
55874508 ::) dllsearchpath=$dir;;
5588 *) func_append dllsearchpath ":$dir";;
4509 *) dllsearchpath="$dllsearchpath:$dir";;
55894510 esac
55904511 case :$dllsearchpath: in
55914512 *":$testbindir:"*) ;;
55924513 ::) dllsearchpath=$testbindir;;
5593 *) func_append dllsearchpath ":$testbindir";;
4514 *) dllsearchpath="$dllsearchpath:$testbindir";;
55944515 esac
55954516 ;;
55964517 esac
56004521 -l*)
56014522 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
56024523 case $host in
5603 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
56044525 # These systems don't actually have a C or math library (as such)
56054526 continue
56064527 ;;
56144535 ;;
56154536 *-*-rhapsody* | *-*-darwin1.[012])
56164537 # Rhapsody C and math libraries are in the System framework
5617 func_append deplibs " System.ltframework"
4538 deplibs="$deplibs System.ltframework"
56184539 continue
56194540 ;;
56204541 *-*-sco3.2v5* | *-*-sco5v6*)
56344555 ;;
56354556 esac
56364557 fi
5637 func_append deplibs " $arg"
4558 deplibs="$deplibs $arg"
56384559 continue
56394560 ;;
56404561
56464567 # Tru64 UNIX uses -model [arg] to determine the layout of C++
56474568 # classes, name mangling, and exception handling.
56484569 # Darwin uses the -arch flag to determine output architecture.
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
56514572 func_append compile_command " $arg"
56524573 func_append finalize_command " $arg"
56534574 prev=xcompiler
56544575 continue
56554576 ;;
56564577
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
56604580 func_append compile_command " $arg"
56614581 func_append finalize_command " $arg"
56624582 case "$new_inherited_linker_flags " in
56634583 *" $arg "*) ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
56654585 esac
56664586 continue
56674587 ;;
57284648 # We need an absolute path.
57294649 case $dir in
57304650 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
57354651 *)
57364652 func_fatal_error "only absolute run-paths are allowed"
57374653 ;;
57384654 esac
57394655 case "$xrpath " in
57404656 *" $dir "*) ;;
5741 *) func_append xrpath " $dir" ;;
4657 *) xrpath="$xrpath $dir" ;;
57424658 esac
57434659 continue
57444660 ;;
57914707 for flag in $args; do
57924708 IFS="$save_ifs"
57934709 func_quote_for_eval "$flag"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
57964712 done
57974713 IFS="$save_ifs"
57984714 func_stripname ' ' '' "$arg"
58074723 for flag in $args; do
58084724 IFS="$save_ifs"
58094725 func_quote_for_eval "$flag"
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"
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"
58134729 done
58144730 IFS="$save_ifs"
58154731 func_stripname ' ' '' "$arg"
58374753 arg="$func_quote_for_eval_result"
58384754 ;;
58394755
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
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
58534766 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
58564768 func_quote_for_eval "$arg"
58574769 arg="$func_quote_for_eval_result"
58584770 func_append compile_command " $arg"
58594771 func_append finalize_command " $arg"
5860 func_append compiler_flags " $arg"
4772 compiler_flags="$compiler_flags $arg"
58614773 continue
58624774 ;;
58634775
58694781
58704782 *.$objext)
58714783 # A standard object.
5872 func_append objs " $arg"
4784 objs="$objs $arg"
58734785 ;;
58744786
58754787 *.lo)
59004812
59014813 if test "$prev" = dlfiles; then
59024814 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5903 func_append dlfiles " $pic_object"
4815 dlfiles="$dlfiles $pic_object"
59044816 prev=
59054817 continue
59064818 else
59124824 # CHECK ME: I think I busted this. -Ossama
59134825 if test "$prev" = dlprefiles; then
59144826 # Preload the old-style object.
5915 func_append dlprefiles " $pic_object"
4827 dlprefiles="$dlprefiles $pic_object"
59164828 prev=
59174829 fi
59184830
59574869
59584870 *.$libext)
59594871 # An archive.
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
4872 deplibs="$deplibs $arg"
4873 old_deplibs="$old_deplibs $arg"
59624874 continue
59634875 ;;
59644876
59654877 *.la)
59664878 # A libtool-controlled library.
59674879
5968 func_resolve_sysroot "$arg"
59694880 if test "$prev" = dlfiles; then
59704881 # This library was specified with -dlopen.
5971 func_append dlfiles " $func_resolve_sysroot_result"
4882 dlfiles="$dlfiles $arg"
59724883 prev=
59734884 elif test "$prev" = dlprefiles; then
59744885 # The library was specified with -dlpreopen.
5975 func_append dlprefiles " $func_resolve_sysroot_result"
4886 dlprefiles="$dlprefiles $arg"
59764887 prev=
59774888 else
5978 func_append deplibs " $func_resolve_sysroot_result"
4889 deplibs="$deplibs $arg"
59794890 fi
59804891 continue
59814892 ;;
60134924
60144925 if test -n "$shlibpath_var"; then
60154926 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
60174928 else
60184929 shlib_search_path=
60194930 fi
60224933
60234934 func_dirname "$output" "/" ""
60244935 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
60274936 # Create the object directory.
60284937 func_mkdir_p "$output_objdir"
60294938
60444953 # Find all interdependent deplibs by searching for libraries
60454954 # that are linked more than once (e.g. -la -lb -la)
60464955 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
4956 if $opt_duplicate_deps ; then
60484957 case "$libs " in
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
4958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
60504959 esac
60514960 fi
6052 func_append libs " $deplib"
4961 libs="$libs $deplib"
60534962 done
60544963
60554964 if test "$linkmode" = lib; then
60624971 if $opt_duplicate_compiler_generated_deps; then
60634972 for pre_post_dep in $predeps $postdeps; do
60644973 case "$pre_post_deps " in
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
4974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
60664975 esac
6067 func_append pre_post_deps " $pre_post_dep"
4976 pre_post_deps="$pre_post_deps $pre_post_dep"
60684977 done
60694978 fi
60704979 pre_post_deps=
61345043 for lib in $dlprefiles; do
61355044 # Ignore non-libtool-libs
61365045 dependency_libs=
6137 func_resolve_sysroot "$lib"
61385046 case $lib in
6139 *.la) func_source "$func_resolve_sysroot_result" ;;
5047 *.la) func_source "$lib" ;;
61405048 esac
61415049
61425050 # Collect preopened libtool deplibs, except any this library
61435051 # has declared as weak libs
61445052 for deplib in $dependency_libs; do
6145 func_basename "$deplib"
6146 deplib_base=$func_basename_result
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
61475054 case " $weak_libs " in
61485055 *" $deplib_base "*) ;;
6149 *) func_append deplibs " $deplib" ;;
5056 *) deplibs="$deplibs $deplib" ;;
61505057 esac
61515058 done
61525059 done
61625069 lib=
61635070 found=no
61645071 case $deplib in
6165 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6166 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
61675073 if test "$linkmode,$pass" = "prog,link"; then
61685074 compile_deplibs="$deplib $compile_deplibs"
61695075 finalize_deplibs="$deplib $finalize_deplibs"
61705076 else
6171 func_append compiler_flags " $deplib"
5077 compiler_flags="$compiler_flags $deplib"
61725078 if test "$linkmode" = lib ; then
61735079 case "$new_inherited_linker_flags " in
61745080 *" $deplib "*) ;;
6175 * ) func_append new_inherited_linker_flags " $deplib" ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
61765082 esac
61775083 fi
61785084 fi
62575163 if test "$linkmode" = lib ; then
62585164 case "$new_inherited_linker_flags " in
62595165 *" $deplib "*) ;;
6260 * ) func_append new_inherited_linker_flags " $deplib" ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
62615167 esac
62625168 fi
62635169 fi
62705176 test "$pass" = conv && continue
62715177 newdependency_libs="$deplib $newdependency_libs"
62725178 func_stripname '-L' '' "$deplib"
6273 func_resolve_sysroot "$func_stripname_result"
6274 func_append newlib_search_path " $func_resolve_sysroot_result"
5179 newlib_search_path="$newlib_search_path $func_stripname_result"
62755180 ;;
62765181 prog)
62775182 if test "$pass" = conv; then
62855190 finalize_deplibs="$deplib $finalize_deplibs"
62865191 fi
62875192 func_stripname '-L' '' "$deplib"
6288 func_resolve_sysroot "$func_stripname_result"
6289 func_append newlib_search_path " $func_resolve_sysroot_result"
5193 newlib_search_path="$newlib_search_path $func_stripname_result"
62905194 ;;
62915195 *)
62925196 func_warning "\`-L' is ignored for archives/objects"
62975201 -R*)
62985202 if test "$pass" = link; then
62995203 func_stripname '-R' '' "$deplib"
6300 func_resolve_sysroot "$func_stripname_result"
6301 dir=$func_resolve_sysroot_result
5204 dir=$func_stripname_result
63025205 # Make sure the xrpath contains only unique directories.
63035206 case "$xrpath " in
63045207 *" $dir "*) ;;
6305 *) func_append xrpath " $dir" ;;
5208 *) xrpath="$xrpath $dir" ;;
63065209 esac
63075210 fi
63085211 deplibs="$deplib $deplibs"
63095212 continue
63105213 ;;
6311 *.la)
6312 func_resolve_sysroot "$deplib"
6313 lib=$func_resolve_sysroot_result
6314 ;;
5214 *.la) lib="$deplib" ;;
63155215 *.$libext)
63165216 if test "$pass" = conv; then
63175217 deplibs="$deplib $deplibs"
63295229 match_pattern*)
63305230 set dummy $deplibs_check_method; shift
63315231 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6332 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
63335233 | $EGREP "$match_pattern_regex" > /dev/null; then
63345234 valid_a_lib=yes
63355235 fi
63395239 ;;
63405240 esac
63415241 if test "$valid_a_lib" != yes; then
6342 echo
5242 $ECHO
63435243 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
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."
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."
63495249 else
6350 echo
5250 $ECHO
63515251 $ECHO "*** Warning: Linking the shared library $output against the"
63525252 $ECHO "*** static library $deplib is not portable!"
63535253 deplibs="$deplib $deplibs"
63745274 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
63755275 # If there is no dlopen support or we're linking statically,
63765276 # we need to preload.
6377 func_append newdlprefiles " $deplib"
5277 newdlprefiles="$newdlprefiles $deplib"
63785278 compile_deplibs="$deplib $compile_deplibs"
63795279 finalize_deplibs="$deplib $finalize_deplibs"
63805280 else
6381 func_append newdlfiles " $deplib"
5281 newdlfiles="$newdlfiles $deplib"
63825282 fi
63835283 fi
63845284 continue
64205320
64215321 # Convert "-framework foo" to "foo.ltframework"
64225322 if test -n "$inherited_linker_flags"; then
6423 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
64245324 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
64255325 case " $new_inherited_linker_flags " in
64265326 *" $tmp_inherited_linker_flag "*) ;;
6427 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
64285328 esac
64295329 done
64305330 fi
6431 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
64325332 if test "$linkmode,$pass" = "lib,link" ||
64335333 test "$linkmode,$pass" = "prog,scan" ||
64345334 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
6435 test -n "$dlopen" && func_append dlfiles " $dlopen"
6436 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
5335 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5336 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
64375337 fi
64385338
64395339 if test "$pass" = conv; then
64445344 func_fatal_error "cannot find name of link library for \`$lib'"
64455345 fi
64465346 # It is a libtool convenience library, so add in its objects.
6447 func_append convenience " $ladir/$objdir/$old_library"
6448 func_append old_convenience " $ladir/$objdir/$old_library"
5347 convenience="$convenience $ladir/$objdir/$old_library"
5348 old_convenience="$old_convenience $ladir/$objdir/$old_library"
64495349 tmp_libs=
64505350 for deplib in $dependency_libs; do
64515351 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
5352 if $opt_duplicate_deps ; then
64535353 case "$tmp_libs " in
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
64555355 esac
64565356 fi
6457 func_append tmp_libs " $deplib"
5357 tmp_libs="$tmp_libs $deplib"
64585358 done
64595359 elif test "$linkmode" != prog && test "$linkmode" != lib; then
64605360 func_fatal_error "\`$lib' is not a convenience library"
64655365
64665366 # Get the name of the library we link against.
64675367 linklib=
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
5368 for l in $old_library $library_names; do
5369 linklib="$l"
5370 done
64775371 if test -z "$linklib"; then
64785372 func_fatal_error "cannot find name of link library for \`$lib'"
64795373 fi
64905384 # statically, we need to preload. We also need to preload any
64915385 # dependent libraries so libltdl's deplib preloader doesn't
64925386 # bomb out in the load deplibs phase.
6493 func_append dlprefiles " $lib $dependency_libs"
5387 dlprefiles="$dlprefiles $lib $dependency_libs"
64945388 else
6495 func_append newdlfiles " $lib"
5389 newdlfiles="$newdlfiles $lib"
64965390 fi
64975391 continue
64985392 fi # $pass = dlopen
65145408
65155409 # Find the relevant object directory and library name.
65165410 if test "X$installed" = Xyes; then
6517 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
5411 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
65185412 func_warning "library \`$lib' was moved."
65195413 dir="$ladir"
65205414 absdir="$abs_ladir"
65215415 libdir="$abs_ladir"
65225416 else
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
5417 dir="$libdir"
5418 absdir="$libdir"
65255419 fi
65265420 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
65275421 else
65295423 dir="$ladir"
65305424 absdir="$abs_ladir"
65315425 # Remove this search path later
6532 func_append notinst_path " $abs_ladir"
5426 notinst_path="$notinst_path $abs_ladir"
65335427 else
65345428 dir="$ladir/$objdir"
65355429 absdir="$abs_ladir/$objdir"
65365430 # Remove this search path later
6537 func_append notinst_path " $abs_ladir"
5431 notinst_path="$notinst_path $abs_ladir"
65385432 fi
65395433 fi # $installed = yes
65405434 func_stripname 'lib' '.la' "$laname"
65455439 if test -z "$libdir" && test "$linkmode" = prog; then
65465440 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
65475441 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
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
65885456 fi # $pass = dlpreopen
65895457
65905458 if test -z "$libdir"; then
66025470
66035471
66045472 if test "$linkmode" = prog && test "$pass" != link; then
6605 func_append newlib_search_path " $ladir"
5473 newlib_search_path="$newlib_search_path $ladir"
66065474 deplibs="$lib $deplibs"
66075475
66085476 linkalldeplibs=no
66155483 for deplib in $dependency_libs; do
66165484 case $deplib in
66175485 -L*) func_stripname '-L' '' "$deplib"
6618 func_resolve_sysroot "$func_stripname_result"
6619 func_append newlib_search_path " $func_resolve_sysroot_result"
5486 newlib_search_path="$newlib_search_path $func_stripname_result"
66205487 ;;
66215488 esac
66225489 # Need to link against all dependency_libs?
66275494 # or/and link against static libraries
66285495 newdependency_libs="$deplib $newdependency_libs"
66295496 fi
6630 if $opt_preserve_dup_deps ; then
5497 if $opt_duplicate_deps ; then
66315498 case "$tmp_libs " in
6632 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
5499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
66335500 esac
66345501 fi
6635 func_append tmp_libs " $deplib"
5502 tmp_libs="$tmp_libs $deplib"
66365503 done # for deplib
66375504 continue
66385505 fi # $linkmode = prog...
66475514 # Make sure the rpath contains only unique directories.
66485515 case "$temp_rpath:" in
66495516 *"$absdir:"*) ;;
6650 *) func_append temp_rpath "$absdir:" ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
66515518 esac
66525519 fi
66535520
66595526 *)
66605527 case "$compile_rpath " in
66615528 *" $absdir "*) ;;
6662 *) func_append compile_rpath " $absdir" ;;
5529 *) compile_rpath="$compile_rpath $absdir"
66635530 esac
66645531 ;;
66655532 esac
66685535 *)
66695536 case "$finalize_rpath " in
66705537 *" $libdir "*) ;;
6671 *) func_append finalize_rpath " $libdir" ;;
5538 *) finalize_rpath="$finalize_rpath $libdir"
66725539 esac
66735540 ;;
66745541 esac
66935560 case $host in
66945561 *cygwin* | *mingw* | *cegcc*)
66955562 # No point in relinking DLLs because paths are not encoded
6696 func_append notinst_deplibs " $lib"
5563 notinst_deplibs="$notinst_deplibs $lib"
66975564 need_relink=no
66985565 ;;
66995566 *)
67005567 if test "$installed" = no; then
6701 func_append notinst_deplibs " $lib"
5568 notinst_deplibs="$notinst_deplibs $lib"
67025569 need_relink=yes
67035570 fi
67045571 ;;
67155582 fi
67165583 done
67175584 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6718 echo
5585 $ECHO
67195586 if test "$linkmode" = prog; then
67205587 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67215588 else
67335600 *)
67345601 case "$compile_rpath " in
67355602 *" $absdir "*) ;;
6736 *) func_append compile_rpath " $absdir" ;;
5603 *) compile_rpath="$compile_rpath $absdir"
67375604 esac
67385605 ;;
67395606 esac
67425609 *)
67435610 case "$finalize_rpath " in
67445611 *" $libdir "*) ;;
6745 *) func_append finalize_rpath " $libdir" ;;
5612 *) finalize_rpath="$finalize_rpath $libdir"
67465613 esac
67475614 ;;
67485615 esac
67965663 linklib=$newlib
67975664 fi # test -n "$old_archive_from_expsyms_cmds"
67985665
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
5666 if test "$linkmode" = prog || test "$mode" != relink; then
68005667 add_shlibpath=
68015668 add_dir=
68025669 add=
68185685 if test "X$dlopenmodule" != "X$lib"; then
68195686 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
68205687 if test -z "$old_library" ; then
6821 echo
6822 echo "*** And there doesn't seem to be a static archive available"
6823 echo "*** The link will probably fail, sorry"
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
68245691 else
68255692 add="$dir/$old_library"
68265693 fi
68475714 test "$hardcode_direct_absolute" = no; then
68485715 add="$dir/$linklib"
68495716 elif test "$hardcode_minus_L" = yes; then
6850 add_dir="-L$absdir"
5717 add_dir="-L$dir"
68515718 # Try looking first in the location we're being installed to.
68525719 if test -n "$inst_prefix_dir"; then
68535720 case $libdir in
68545721 [\\/]*)
6855 func_append add_dir " -L$inst_prefix_dir$libdir"
5722 add_dir="$add_dir -L$inst_prefix_dir$libdir"
68565723 ;;
68575724 esac
68585725 fi
68745741 if test -n "$add_shlibpath"; then
68755742 case :$compile_shlibpath: in
68765743 *":$add_shlibpath:"*) ;;
6877 *) func_append compile_shlibpath "$add_shlibpath:" ;;
5744 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
68785745 esac
68795746 fi
68805747 if test "$linkmode" = prog; then
68885755 test "$hardcode_shlibpath_var" = yes; then
68895756 case :$finalize_shlibpath: in
68905757 *":$libdir:"*) ;;
6891 *) func_append finalize_shlibpath "$libdir:" ;;
5758 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
68925759 esac
68935760 fi
68945761 fi
68955762 fi
68965763
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
5764 if test "$linkmode" = prog || test "$mode" = relink; then
68985765 add_shlibpath=
68995766 add_dir=
69005767 add=
69085775 elif test "$hardcode_shlibpath_var" = yes; then
69095776 case :$finalize_shlibpath: in
69105777 *":$libdir:"*) ;;
6911 *) func_append finalize_shlibpath "$libdir:" ;;
5778 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
69125779 esac
69135780 add="-l$name"
69145781 elif test "$hardcode_automatic" = yes; then
69255792 if test -n "$inst_prefix_dir"; then
69265793 case $libdir in
69275794 [\\/]*)
6928 func_append add_dir " -L$inst_prefix_dir$libdir"
5795 add_dir="$add_dir -L$inst_prefix_dir$libdir"
69295796 ;;
69305797 esac
69315798 fi
69605827
69615828 # Just print a warning and add the library to dependency_libs so
69625829 # that the program can be linked against the static library.
6963 echo
5830 $ECHO
69645831 $ECHO "*** Warning: This system can not link to static lib archive $lib."
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."
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."
69685835 if test "$module" = yes; then
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."
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."
69725839 if test -z "$global_symbol_pipe"; then
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."
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."
69785845 fi
69795846 if test "$build_old_libs" = no; then
69805847 build_libtool_libs=module
70025869 temp_xrpath=$func_stripname_result
70035870 case " $xrpath " in
70045871 *" $temp_xrpath "*) ;;
7005 *) func_append xrpath " $temp_xrpath";;
5872 *) xrpath="$xrpath $temp_xrpath";;
70065873 esac;;
7007 *) func_append temp_deplibs " $libdir";;
5874 *) temp_deplibs="$temp_deplibs $libdir";;
70085875 esac
70095876 done
70105877 dependency_libs="$temp_deplibs"
70115878 fi
70125879
7013 func_append newlib_search_path " $absdir"
5880 newlib_search_path="$newlib_search_path $absdir"
70145881 # Link against this library
70155882 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70165883 # ... and its dependency_libs
70175884 tmp_libs=
70185885 for deplib in $dependency_libs; do
70195886 newdependency_libs="$deplib $newdependency_libs"
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
5887 if $opt_duplicate_deps ; then
70265888 case "$tmp_libs " in
7027 *" $func_resolve_sysroot_result "*)
7028 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
5889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
70295890 esac
70305891 fi
7031 func_append tmp_libs " $func_resolve_sysroot_result"
5892 tmp_libs="$tmp_libs $deplib"
70325893 done
70335894
70345895 if test "$link_all_deplibs" != no; then
70385899 case $deplib in
70395900 -L*) path="$deplib" ;;
70405901 *.la)
7041 func_resolve_sysroot "$deplib"
7042 deplib=$func_resolve_sysroot_result
70435902 func_dirname "$deplib" "" "."
7044 dir=$func_dirname_result
5903 dir="$func_dirname_result"
70455904 # We need an absolute path.
70465905 case $dir in
70475906 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
70685927 if test -z "$darwin_install_name"; then
70695928 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70705929 fi
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
70735932 path=
70745933 fi
70755934 fi
71025961 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71035962 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71045963 else
7105 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
71065965 fi
71075966 fi
71085967 dependency_libs="$newdependency_libs"
71195978 for dir in $newlib_search_path; do
71205979 case "$lib_search_path " in
71215980 *" $dir "*) ;;
7122 *) func_append lib_search_path " $dir" ;;
5981 *) lib_search_path="$lib_search_path $dir" ;;
71235982 esac
71245983 done
71255984 newlib_search_path=
71776036 -L*)
71786037 case " $tmp_libs " in
71796038 *" $deplib "*) ;;
7180 *) func_append tmp_libs " $deplib" ;;
6039 *) tmp_libs="$tmp_libs $deplib" ;;
71816040 esac
71826041 ;;
7183 *) func_append tmp_libs " $deplib" ;;
6042 *) tmp_libs="$tmp_libs $deplib" ;;
71846043 esac
71856044 done
71866045 eval $var=\"$tmp_libs\"
71966055 ;;
71976056 esac
71986057 if test -n "$i" ; then
7199 func_append tmp_libs " $i"
6058 tmp_libs="$tmp_libs $i"
72006059 fi
72016060 done
72026061 dependency_libs=$tmp_libs
72376096 # Now set the variables for building old libraries.
72386097 build_libtool_libs=no
72396098 oldlibs="$output"
7240 func_append objs "$old_deplibs"
6099 objs="$objs$old_deplibs"
72416100 ;;
72426101
72436102 lib)
72706129 if test "$deplibs_check_method" != pass_all; then
72716130 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
72726131 else
7273 echo
6132 $ECHO
72746133 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72756134 $ECHO "*** objects $objs is not portable!"
7276 func_append libobjs " $objs"
6135 libobjs="$libobjs $objs"
72776136 fi
72786137 fi
72796138
73326191 # which has an extra 1 added just for fun
73336192 #
73346193 case $version_type in
7335 # correct linux to gnu/linux during the next big refactor
73366194 darwin|linux|osf|windows|none)
73376195 func_arith $number_major + $number_minor
73386196 current=$func_arith_result
73396197 age="$number_minor"
73406198 revision="$number_revision"
73416199 ;;
7342 freebsd-aout|freebsd-elf|qnx|sunos)
6200 freebsd-aout|freebsd-elf|sunos)
73436201 current="$number_major"
73446202 revision="$number_minor"
73456203 age="0"
74526310 versuffix="$major.$revision"
74536311 ;;
74546312
7455 linux) # correct to gnu/linux during the next big refactor
6313 linux)
74566314 func_arith $current - $age
74576315 major=.$func_arith_result
74586316 versuffix="$major.$age.$revision"
74756333 done
74766334
74776335 # Make executables depend on our current version.
7478 func_append verstring ":${current}.0"
6336 verstring="$verstring:${current}.0"
74796337 ;;
74806338
74816339 qnx)
75436401 fi
75446402
75456403 func_generate_dlsyms "$libname" "$libname" "yes"
7546 func_append libobjs " $symfileobj"
6404 libobjs="$libobjs $symfileobj"
75476405 test "X$libobjs" = "X " && libobjs=
75486406
7549 if test "$opt_mode" != relink; then
6407 if test "$mode" != relink; then
75506408 # Remove our outputs, but don't remove object files since they
75516409 # may have been created when compiling PIC objects.
75526410 removelist=
75626420 continue
75636421 fi
75646422 fi
7565 func_append removelist " $p"
6423 removelist="$removelist $p"
75666424 ;;
75676425 *) ;;
75686426 esac
75736431
75746432 # Now set the variables for building old libraries.
75756433 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
7576 func_append oldlibs " $output_objdir/$libname.$libext"
6434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
75776435
75786436 # Transform .lo files to .o files.
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
75806438 fi
75816439
75826440 # Eliminate all temporary directories.
75836441 #for path in $notinst_path; do
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"`
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"`
75876445 #done
75886446
75896447 if test -n "$xrpath"; then
75906448 # If the user specified any rpath flags, then add them.
75916449 temp_xrpath=
75926450 for libdir in $xrpath; do
7593 func_replace_sysroot "$libdir"
7594 func_append temp_xrpath " -R$func_replace_sysroot_result"
6451 temp_xrpath="$temp_xrpath -R$libdir"
75956452 case "$finalize_rpath " in
75966453 *" $libdir "*) ;;
7597 *) func_append finalize_rpath " $libdir" ;;
6454 *) finalize_rpath="$finalize_rpath $libdir" ;;
75986455 esac
75996456 done
76006457 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
76086465 for lib in $old_dlfiles; do
76096466 case " $dlprefiles $dlfiles " in
76106467 *" $lib "*) ;;
7611 *) func_append dlfiles " $lib" ;;
6468 *) dlfiles="$dlfiles $lib" ;;
76126469 esac
76136470 done
76146471
76186475 for lib in $old_dlprefiles; do
76196476 case "$dlprefiles " in
76206477 *" $lib "*) ;;
7621 *) func_append dlprefiles " $lib" ;;
6478 *) dlprefiles="$dlprefiles $lib" ;;
76226479 esac
76236480 done
76246481
76256482 if test "$build_libtool_libs" = yes; then
76266483 if test -n "$rpath"; then
76276484 case $host in
7628 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
76296486 # these systems don't actually have a c library (as such)!
76306487 ;;
76316488 *-*-rhapsody* | *-*-darwin1.[012])
76326489 # Rhapsody C library is in the System framework
7633 func_append deplibs " System.ltframework"
6490 deplibs="$deplibs System.ltframework"
76346491 ;;
76356492 *-*-netbsd*)
76366493 # Don't link with libc until the a.out ld.so is fixed.
76476504 *)
76486505 # Add libc to deplibs on all other systems if necessary.
76496506 if test "$build_libtool_need_lc" = "yes"; then
7650 func_append deplibs " -lc"
6507 deplibs="$deplibs -lc"
76516508 fi
76526509 ;;
76536510 esac
76966553 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
76976554 case " $predeps $postdeps " in
76986555 *" $i "*)
7699 func_append newdeplibs " $i"
6556 newdeplibs="$newdeplibs $i"
77006557 i=""
77016558 ;;
77026559 esac
77076564 set dummy $deplib_matches; shift
77086565 deplib_match=$1
77096566 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7710 func_append newdeplibs " $i"
6567 newdeplibs="$newdeplibs $i"
77116568 else
77126569 droppeddeps=yes
7713 echo
6570 $ECHO
77146571 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
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."
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."
77206577 fi
77216578 fi
77226579 ;;
77236580 *)
7724 func_append newdeplibs " $i"
6581 newdeplibs="$newdeplibs $i"
77256582 ;;
77266583 esac
77276584 done
77396596 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
77406597 case " $predeps $postdeps " in
77416598 *" $i "*)
7742 func_append newdeplibs " $i"
6599 newdeplibs="$newdeplibs $i"
77436600 i=""
77446601 ;;
77456602 esac
77506607 set dummy $deplib_matches; shift
77516608 deplib_match=$1
77526609 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7753 func_append newdeplibs " $i"
6610 newdeplibs="$newdeplibs $i"
77546611 else
77556612 droppeddeps=yes
7756 echo
6613 $ECHO
77576614 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
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."
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."
77636620 fi
77646621 fi
77656622 else
77666623 droppeddeps=yes
7767 echo
6624 $ECHO
77686625 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
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."
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."
77726629 fi
77736630 ;;
77746631 *)
7775 func_append newdeplibs " $i"
6632 newdeplibs="$newdeplibs $i"
77766633 ;;
77776634 esac
77786635 done
77896646 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
77906647 case " $predeps $postdeps " in
77916648 *" $a_deplib "*)
7792 func_append newdeplibs " $a_deplib"
6649 newdeplibs="$newdeplibs $a_deplib"
77936650 a_deplib=""
77946651 ;;
77956652 esac
77966653 fi
77976654 if test -n "$a_deplib" ; then
77986655 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`
78056656 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
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
6657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78136658 for potent_lib in $potential_libs; do
78146659 # Follow soft links.
78156660 if ls -lLd "$potent_lib" 2>/dev/null |
78266671 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
78276672 case $potliblink in
78286673 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
78306675 esac
78316676 done
78326677 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78336678 $SED -e 10q |
78346679 $EGREP "$file_magic_regex" > /dev/null; then
7835 func_append newdeplibs " $a_deplib"
6680 newdeplibs="$newdeplibs $a_deplib"
78366681 a_deplib=""
78376682 break 2
78386683 fi
78416686 fi
78426687 if test -n "$a_deplib" ; then
78436688 droppeddeps=yes
7844 echo
6689 $ECHO
78456690 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
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"
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"
78506695 if test -z "$potlib" ; then
78516696 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78526697 else
78576702 ;;
78586703 *)
78596704 # Add a -L argument.
7860 func_append newdeplibs " $a_deplib"
6705 newdeplibs="$newdeplibs $a_deplib"
78616706 ;;
78626707 esac
78636708 done # Gone through all deplibs.
78736718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
78746719 case " $predeps $postdeps " in
78756720 *" $a_deplib "*)
7876 func_append newdeplibs " $a_deplib"
6721 newdeplibs="$newdeplibs $a_deplib"
78776722 a_deplib=""
78786723 ;;
78796724 esac
78846729 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78856730 for potent_lib in $potential_libs; do
78866731 potlib="$potent_lib" # see symlink-check above in file_magic test
7887 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
78886733 $EGREP "$match_pattern_regex" > /dev/null; then
7889 func_append newdeplibs " $a_deplib"
6734 newdeplibs="$newdeplibs $a_deplib"
78906735 a_deplib=""
78916736 break 2
78926737 fi
78956740 fi
78966741 if test -n "$a_deplib" ; then
78976742 droppeddeps=yes
7898 echo
6743 $ECHO
78996744 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
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"
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"
79046749 if test -z "$potlib" ; then
79056750 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79066751 else
79116756 ;;
79126757 *)
79136758 # Add a -L argument.
7914 func_append newdeplibs " $a_deplib"
6759 newdeplibs="$newdeplibs $a_deplib"
79156760 ;;
79166761 esac
79176762 done # Gone through all deplibs.
79186763 ;;
79196764 none | unknown | *)
79206765 newdeplibs=""
7921 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
79226768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
79236769 for i in $predeps $postdeps ; do
79246770 # can't use Xsed below, because $i might contain '/'
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
79266772 done
79276773 fi
7928 case $tmp_deplibs in
7929 *[!\ \ ]*)
7930 echo
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
79316777 if test "X$deplibs_check_method" = "Xnone"; then
7932 echo "*** Warning: inter-library dependencies are not supported in this platform."
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
79336779 else
7934 echo "*** Warning: inter-library dependencies are not known to be supported."
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
79356781 fi
7936 echo "*** All declared inter-library dependencies are being dropped."
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
79376783 droppeddeps=yes
7938 ;;
7939 esac
6784 fi
79406785 ;;
79416786 esac
79426787 versuffix=$versuffix_save
79486793 case $host in
79496794 *-*-rhapsody* | *-*-darwin1.[012])
79506795 # On Rhapsody replace the C library with the System framework
7951 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
79526797 ;;
79536798 esac
79546799
79556800 if test "$droppeddeps" = yes; then
79566801 if test "$module" = yes; then
7957 echo
7958 echo "*** Warning: libtool could not satisfy all declared inter-library"
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
79596804 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
7960 echo "*** a static module, that should work as long as the dlopening"
7961 echo "*** application is linked with the -dlopen flag."
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
79626807 if test -z "$global_symbol_pipe"; then
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."
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."
79686813 fi
79696814 if test "$build_old_libs" = no; then
79706815 oldlibs="$output_objdir/$libname.$libext"
79746819 build_libtool_libs=no
79756820 fi
79766821 else
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."
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."
79806825
79816826 if test "$allow_undefined" = no; then
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."
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."
79876832 if test "$build_old_libs" = no; then
79886833 oldlibs="$output_objdir/$libname.$libext"
79896834 build_libtool_libs=module
80006845 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
80016846 case $host in
80026847 *-*-darwin*)
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'`
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'`
80066851 ;;
80076852 esac
80086853
80156860 *)
80166861 case " $deplibs " in
80176862 *" -L$path/$objdir "*)
8018 func_append new_libs " -L$path/$objdir" ;;
6863 new_libs="$new_libs -L$path/$objdir" ;;
80196864 esac
80206865 ;;
80216866 esac
80256870 -L*)
80266871 case " $new_libs " in
80276872 *" $deplib "*) ;;
8028 *) func_append new_libs " $deplib" ;;
6873 *) new_libs="$new_libs $deplib" ;;
80296874 esac
80306875 ;;
8031 *) func_append new_libs " $deplib" ;;
6876 *) new_libs="$new_libs $deplib" ;;
80326877 esac
80336878 done
80346879 deplibs="$new_libs"
80406885
80416886 # Test again, we may have decided not to build it any more
80426887 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
80486888 if test "$hardcode_into_libs" = yes; then
80496889 # Hardcode the library paths
80506890 hardcode_libdirs=
80516891 dep_rpath=
80526892 rpath="$finalize_rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
6893 test "$mode" != relink && rpath="$compile_rpath$rpath"
80546894 for libdir in $rpath; do
80556895 if test -n "$hardcode_libdir_flag_spec"; then
80566896 if test -n "$hardcode_libdir_separator"; then
8057 func_replace_sysroot "$libdir"
8058 libdir=$func_replace_sysroot_result
80596897 if test -z "$hardcode_libdirs"; then
80606898 hardcode_libdirs="$libdir"
80616899 else
80646902 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
80656903 ;;
80666904 *)
8067 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
6905 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
80686906 ;;
80696907 esac
80706908 fi
80716909 else
80726910 eval flag=\"$hardcode_libdir_flag_spec\"
8073 func_append dep_rpath " $flag"
6911 dep_rpath="$dep_rpath $flag"
80746912 fi
80756913 elif test -n "$runpath_var"; then
80766914 case "$perm_rpath " in
80776915 *" $libdir "*) ;;
8078 *) func_append perm_rpath " $libdir" ;;
6916 *) perm_rpath="$perm_rpath $libdir" ;;
80796917 esac
80806918 fi
80816919 done
80836921 if test -n "$hardcode_libdir_separator" &&
80846922 test -n "$hardcode_libdirs"; then
80856923 libdir="$hardcode_libdirs"
8086 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
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
80876929 fi
80886930 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80896931 # We should set the runpath_var.
80906932 rpath=
80916933 for dir in $perm_rpath; do
8092 func_append rpath "$dir:"
6934 rpath="$rpath$dir:"
80936935 done
80946936 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
80956937 fi
80976939 fi
80986940
80996941 shlibpath="$finalize_shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
6942 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
81016943 if test -n "$shlibpath"; then
81026944 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
81036945 fi
81236965 linknames=
81246966 for link
81256967 do
8126 func_append linknames " $link"
6968 linknames="$linknames $link"
81276969 done
81286970
81296971 # Use standard objects if they are pic
8130 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
81316973 test "X$libobjs" = "X " && libobjs=
81326974
81336975 delfiles=
81346976 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81356977 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
81366978 export_symbols="$output_objdir/$libname.uexp"
8137 func_append delfiles " $export_symbols"
6979 delfiles="$delfiles $export_symbols"
81386980 fi
81396981
81406982 orig_export_symbols=
81657007 $opt_dry_run || $RM $export_symbols
81667008 cmds=$export_symbols_cmds
81677009 save_ifs="$IFS"; IFS='~'
8168 for cmd1 in $cmds; do
7010 for cmd in $cmds; do
81697011 IFS="$save_ifs"
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
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
81877016 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
82077017 skipped_export=false
82087018 else
82097019 # The command line is too long to execute in one step.
82257035 if test -n "$export_symbols" && test -n "$include_expsyms"; then
82267036 tmp_export_symbols="$export_symbols"
82277037 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8228 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
82297039 fi
82307040
82317041 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
82377047 # global variables. join(1) would be nice here, but unfortunately
82387048 # isn't a blessed tool.
82397049 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8240 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
82417051 export_symbols=$output_objdir/$libname.def
82427052 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
82437053 fi
82477057 case " $convenience " in
82487058 *" $test_deplib "*) ;;
82497059 *)
8250 func_append tmp_deplibs " $test_deplib"
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
82517061 ;;
82527062 esac
82537063 done
82677077 test "X$libobjs" = "X " && libobjs=
82687078 else
82697079 gentop="$output_objdir/${outputname}x"
8270 func_append generated " $gentop"
7080 generated="$generated $gentop"
82717081
82727082 func_extract_archives $gentop $convenience
8273 func_append libobjs " $func_extract_archives_result"
7083 libobjs="$libobjs $func_extract_archives_result"
82747084 test "X$libobjs" = "X " && libobjs=
82757085 fi
82767086 fi
82777087
82787088 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
82797089 eval flag=\"$thread_safe_flag_spec\"
8280 func_append linker_flags " $flag"
7090 linker_flags="$linker_flags $flag"
82817091 fi
82827092
82837093 # Make a backup of the uninstalled library when relinking
8284 if test "$opt_mode" = relink; then
7094 if test "$mode" = relink; then
82857095 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82867096 fi
82877097
83267136 save_libobjs=$libobjs
83277137 fi
83287138 save_output=$output
8329 func_basename "$output"
8330 output_la=$func_basename_result
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
83317140
83327141 # Clear the reloadable object creation command queue and
83337142 # initialize k to one.
83407149 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
83417150 output=${output_objdir}/${output_la}.lnkscript
83427151 func_verbose "creating GNU ld script: $output"
8343 echo 'INPUT (' > $output
7152 $ECHO 'INPUT (' > $output
83447153 for obj in $save_libobjs
83457154 do
8346 func_to_tool_file "$obj"
8347 $ECHO "$func_to_tool_file_result" >> $output
7155 $ECHO "$obj" >> $output
83487156 done
8349 echo ')' >> $output
8350 func_append delfiles " $output"
8351 func_to_tool_file "$output"
8352 output=$func_to_tool_file_result
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
83537159 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
83547160 output=${output_objdir}/${output_la}.lnk
83557161 func_verbose "creating linker input file list: $output"
83637169 fi
83647170 for obj
83657171 do
8366 func_to_tool_file "$obj"
8367 $ECHO "$func_to_tool_file_result" >> $output
7172 $ECHO "$obj" >> $output
83687173 done
8369 func_append delfiles " $output"
8370 func_to_tool_file "$output"
8371 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
7174 delfiles="$delfiles $output"
7175 output=$firstobj\"$file_list_spec$output\"
83727176 else
83737177 if test -n "$save_libobjs"; then
83747178 func_verbose "creating reloadable object files..."
83927196 # command to the queue.
83937197 if test "$k" -eq 1 ; then
83947198 # The first file doesn't have a previous command to add.
8395 reload_objs=$objlist
8396 eval concat_cmds=\"$reload_cmds\"
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
83977200 else
83987201 # All subsequent reloadable object files will link in
83997202 # the last one created.
8400 reload_objs="$objlist $last_robj"
8401 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
84027204 fi
84037205 last_robj=$output_objdir/$output_la-${k}.$objext
84047206 func_arith $k + 1
84057207 k=$func_arith_result
84067208 output=$output_objdir/$output_la-${k}.$objext
8407 objlist=" $obj"
7209 objlist=$obj
84087210 func_len " $last_robj"
84097211 func_arith $len0 + $func_len_result
84107212 len=$func_arith_result
84147216 # reloadable object file. All subsequent reloadable object
84157217 # files will link in the last one created.
84167218 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8417 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
84197220 if test -n "$last_robj"; then
84207221 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
84217222 fi
8422 func_append delfiles " $output"
7223 delfiles="$delfiles $output"
84237224
84247225 else
84257226 output=
84537254 lt_exit=$?
84547255
84557256 # Restore the uninstalled library and exit
8456 if test "$opt_mode" = relink; then
7257 if test "$mode" = relink; then
84577258 ( cd "$output_objdir" && \
84587259 $RM "${realname}T" && \
84597260 $MV "${realname}U" "$realname" )
84747275 if test -n "$export_symbols" && test -n "$include_expsyms"; then
84757276 tmp_export_symbols="$export_symbols"
84767277 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8477 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
84787279 fi
84797280
84807281 if test -n "$orig_export_symbols"; then
84867287 # global variables. join(1) would be nice here, but unfortunately
84877288 # isn't a blessed tool.
84887289 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8489 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
84907291 export_symbols=$output_objdir/$libname.def
84917292 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
84927293 fi
85277328 # Add any objects from preloaded convenience libraries
85287329 if test -n "$dlprefiles"; then
85297330 gentop="$output_objdir/${outputname}x"
8530 func_append generated " $gentop"
7331 generated="$generated $gentop"
85317332
85327333 func_extract_archives $gentop $dlprefiles
8533 func_append libobjs " $func_extract_archives_result"
7334 libobjs="$libobjs $func_extract_archives_result"
85347335 test "X$libobjs" = "X " && libobjs=
85357336 fi
85367337
85467347 lt_exit=$?
85477348
85487349 # Restore the uninstalled library and exit
8549 if test "$opt_mode" = relink; then
7350 if test "$mode" = relink; then
85507351 ( cd "$output_objdir" && \
85517352 $RM "${realname}T" && \
85527353 $MV "${realname}U" "$realname" )
85587359 IFS="$save_ifs"
85597360
85607361 # Restore the uninstalled library and exit
8561 if test "$opt_mode" = relink; then
7362 if test "$mode" = relink; then
85627363 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
85637364
85647365 if test -n "$convenience"; then
86397440 if test -n "$convenience"; then
86407441 if test -n "$whole_archive_flag_spec"; then
86417442 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
86437444 else
86447445 gentop="$output_objdir/${obj}x"
8645 func_append generated " $gentop"
7446 generated="$generated $gentop"
86467447
86477448 func_extract_archives $gentop $convenience
86487449 reload_conv_objs="$reload_objs $func_extract_archives_result"
86497450 fi
86507451 fi
86517452
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
86557453 # Create the old-style object.
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
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
86577455
86587456 output="$obj"
86597457 func_execute_cmds "$reload_cmds" 'exit $?'
87137511 case $host in
87147512 *-*-rhapsody* | *-*-darwin1.[012])
87157513 # On Rhapsody replace the C library is the System framework
8716 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8717 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
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 /'`
87187516 ;;
87197517 esac
87207518
87257523 if test "$tagname" = CXX ; then
87267524 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
87277525 10.[0123])
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 finalize_command="$finalize_command ${wl}-bind_at_load"
87307528 ;;
87317529 esac
87327530 fi
87337531 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8734 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8735 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
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'`
87367534 ;;
87377535 esac
87387536
87467544 *)
87477545 case " $compile_deplibs " in
87487546 *" -L$path/$objdir "*)
8749 func_append new_libs " -L$path/$objdir" ;;
7547 new_libs="$new_libs -L$path/$objdir" ;;
87507548 esac
87517549 ;;
87527550 esac
87567554 -L*)
87577555 case " $new_libs " in
87587556 *" $deplib "*) ;;
8759 *) func_append new_libs " $deplib" ;;
7557 *) new_libs="$new_libs $deplib" ;;
87607558 esac
87617559 ;;
8762 *) func_append new_libs " $deplib" ;;
7560 *) new_libs="$new_libs $deplib" ;;
87637561 esac
87647562 done
87657563 compile_deplibs="$new_libs"
87667564
87677565
8768 func_append compile_command " $compile_deplibs"
8769 func_append finalize_command " $finalize_deplibs"
7566 compile_command="$compile_command $compile_deplibs"
7567 finalize_command="$finalize_command $finalize_deplibs"
87707568
87717569 if test -n "$rpath$xrpath"; then
87727570 # If the user specified any rpath flags, then add them.
87747572 # This is the magic to use -rpath.
87757573 case "$finalize_rpath " in
87767574 *" $libdir "*) ;;
8777 *) func_append finalize_rpath " $libdir" ;;
7575 *) finalize_rpath="$finalize_rpath $libdir" ;;
87787576 esac
87797577 done
87807578 fi
87937591 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
87947592 ;;
87957593 *)
8796 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
7594 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
87977595 ;;
87987596 esac
87997597 fi
88007598 else
88017599 eval flag=\"$hardcode_libdir_flag_spec\"
8802 func_append rpath " $flag"
7600 rpath="$rpath $flag"
88037601 fi
88047602 elif test -n "$runpath_var"; then
88057603 case "$perm_rpath " in
88067604 *" $libdir "*) ;;
8807 *) func_append perm_rpath " $libdir" ;;
7605 *) perm_rpath="$perm_rpath $libdir" ;;
88087606 esac
88097607 fi
88107608 case $host in
88137611 case :$dllsearchpath: in
88147612 *":$libdir:"*) ;;
88157613 ::) dllsearchpath=$libdir;;
8816 *) func_append dllsearchpath ":$libdir";;
7614 *) dllsearchpath="$dllsearchpath:$libdir";;
88177615 esac
88187616 case :$dllsearchpath: in
88197617 *":$testbindir:"*) ;;
88207618 ::) dllsearchpath=$testbindir;;
8821 *) func_append dllsearchpath ":$testbindir";;
7619 *) dllsearchpath="$dllsearchpath:$testbindir";;
88227620 esac
88237621 ;;
88247622 esac
88447642 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
88457643 ;;
88467644 *)
8847 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
7645 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
88487646 ;;
88497647 esac
88507648 fi
88517649 else
88527650 eval flag=\"$hardcode_libdir_flag_spec\"
8853 func_append rpath " $flag"
7651 rpath="$rpath $flag"
88547652 fi
88557653 elif test -n "$runpath_var"; then
88567654 case "$finalize_perm_rpath " in
88577655 *" $libdir "*) ;;
8858 *) func_append finalize_perm_rpath " $libdir" ;;
7656 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
88597657 esac
88607658 fi
88617659 done
88697667
88707668 if test -n "$libobjs" && test "$build_old_libs" = yes; then
88717669 # Transform all the library objects into standard objects.
8872 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8873 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
88747672 fi
88757673
88767674 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
88827680
88837681 wrappers_required=yes
88847682 case $host in
8885 *cegcc* | *mingw32ce*)
8886 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
8888 ;;
88897683 *cygwin* | *mingw* )
88907684 if test "$build_libtool_libs" != yes; then
88917685 wrappers_required=no
88927686 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
88937691 ;;
88947692 *)
88957693 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
88997697 esac
89007698 if test "$wrappers_required" = no; then
89017699 # Replace the output file specification.
8902 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
89037701 link_command="$compile_command$compile_rpath"
89047702
89057703 # We have no uninstalled library dependencies, so finalize right now.
89067704 exit_status=0
89077705 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
89147706
89157707 # Delete the generated files.
89167708 if test -f "$output_objdir/${outputname}S.${objext}"; then
89347726 # We should set the runpath_var.
89357727 rpath=
89367728 for dir in $perm_rpath; do
8937 func_append rpath "$dir:"
7729 rpath="$rpath$dir:"
89387730 done
89397731 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
89407732 fi
89427734 # We should set the runpath_var.
89437735 rpath=
89447736 for dir in $finalize_perm_rpath; do
8945 func_append rpath "$dir:"
7737 rpath="$rpath$dir:"
89467738 done
89477739 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
89487740 fi
89527744 # We don't need to create a wrapper script.
89537745 link_command="$compile_var$compile_command$compile_rpath"
89547746 # Replace the output file specification.
8955 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
89567748 # Delete the old output file.
89577749 $opt_dry_run || $RM $output
89587750 # Link the executable and exit
89597751 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
89677752 exit $EXIT_SUCCESS
89687753 fi
89697754
89787763 if test "$fast_install" != no; then
89797764 link_command="$finalize_var$compile_command$finalize_rpath"
89807765 if test "$fast_install" = yes; then
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
89827767 else
89837768 # fast_install is set to needless
89847769 relink_command=
89907775 fi
89917776
89927777 # Replace the output file specification.
8993 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
89947779
89957780 # Delete the old output files.
89967781 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
89977782
89987783 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
90057784
90067785 # Now create the wrapper script.
90077786 func_verbose "creating $output"
90207799 fi
90217800 done
90227801 relink_command="(cd `pwd`; $relink_command)"
9023 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
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"`
90247814 fi
90257815
90267816 # Only actually do things if not in dry run mode.
91007890 else
91017891 oldobjs="$old_deplibs $non_pic_objects"
91027892 if test "$preload" = yes && test -f "$symfileobj"; then
9103 func_append oldobjs " $symfileobj"
7893 oldobjs="$oldobjs $symfileobj"
91047894 fi
91057895 fi
91067896 addlibs="$old_convenience"
91087898
91097899 if test -n "$addlibs"; then
91107900 gentop="$output_objdir/${outputname}x"
9111 func_append generated " $gentop"
7901 generated="$generated $gentop"
91127902
91137903 func_extract_archives $gentop $addlibs
9114 func_append oldobjs " $func_extract_archives_result"
7904 oldobjs="$oldobjs $func_extract_archives_result"
91157905 fi
91167906
91177907 # Do each command in the archive commands.
91227912 # Add any objects from preloaded convenience libraries
91237913 if test -n "$dlprefiles"; then
91247914 gentop="$output_objdir/${outputname}x"
9125 func_append generated " $gentop"
7915 generated="$generated $gentop"
91267916
91277917 func_extract_archives $gentop $dlprefiles
9128 func_append oldobjs " $func_extract_archives_result"
7918 oldobjs="$oldobjs $func_extract_archives_result"
91297919 fi
91307920
91317921 # POSIX demands no paths to be encoded in archives. We have
91417931 done | sort | sort -uc >/dev/null 2>&1); then
91427932 :
91437933 else
9144 echo "copying selected object files to avoid basename conflicts..."
7934 $ECHO "copying selected object files to avoid basename conflicts..."
91457935 gentop="$output_objdir/${outputname}x"
9146 func_append generated " $gentop"
7936 generated="$generated $gentop"
91477937 func_mkdir_p "$gentop"
91487938 save_oldobjs=$oldobjs
91497939 oldobjs=
91677957 esac
91687958 done
91697959 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9170 func_append oldobjs " $gentop/$newobj"
7960 oldobjs="$oldobjs $gentop/$newobj"
91717961 ;;
9172 *) func_append oldobjs " $obj" ;;
7962 *) oldobjs="$oldobjs $obj" ;;
91737963 esac
91747964 done
91757965 fi
9176 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9177 tool_oldlib=$func_to_tool_file_result
91787966 eval cmds=\"$old_archive_cmds\"
91797967
91807968 func_len " $cmds"
91817969 len=$func_len_result
91827970 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"
91937971 cmds=$old_archive_cmds
91947972 else
91957973 # the command line is too long to link in one step, link in parts
92648042 done
92658043 # Quote the link command for shipping.
92668044 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9267 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
92688046 if test "$hardcode_automatic" = yes ; then
92698047 relink_command=
92708048 fi
92848062 *.la)
92858063 func_basename "$deplib"
92868064 name="$func_basename_result"
9287 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
8065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
92898066 test -z "$libdir" && \
92908067 func_fatal_error "\`$deplib' is not a valid libtool archive"
9291 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
8068 newdependency_libs="$newdependency_libs $libdir/$name"
92928069 ;;
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" ;;
8070 *) newdependency_libs="$newdependency_libs $deplib" ;;
93048071 esac
93058072 done
93068073 dependency_libs="$newdependency_libs"
93148081 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
93158082 test -z "$libdir" && \
93168083 func_fatal_error "\`$lib' is not a valid libtool archive"
9317 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
8084 newdlfiles="$newdlfiles $libdir/$name"
93188085 ;;
9319 *) func_append newdlfiles " $lib" ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
93208087 esac
93218088 done
93228089 dlfiles="$newdlfiles"
93338100 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
93348101 test -z "$libdir" && \
93358102 func_fatal_error "\`$lib' is not a valid libtool archive"
9336 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
93378104 ;;
93388105 esac
93398106 done
93458112 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
93468113 *) abs=`pwd`"/$lib" ;;
93478114 esac
9348 func_append newdlfiles " $abs"
8115 newdlfiles="$newdlfiles $abs"
93498116 done
93508117 dlfiles="$newdlfiles"
93518118 newdlprefiles=
93548121 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
93558122 *) abs=`pwd`"/$lib" ;;
93568123 esac
9357 func_append newdlprefiles " $abs"
8124 newdlprefiles="$newdlprefiles $abs"
93588125 done
93598126 dlprefiles="$newdlprefiles"
93608127 fi
93618128 $RM $output
93628129 # 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.
93718130 tdlname=$dlname
93728131 case $host,$output,$installed,$module,$dlname in
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 ;;
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
93848133 esac
93858134 $ECHO > $output "\
93868135 # $outputname - a libtool library file
94398188 exit $EXIT_SUCCESS
94408189 }
94418190
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
8191 { test "$mode" = link || test "$mode" = relink; } &&
94438192 func_mode_link ${1+"$@"}
94448193
94458194
94598208 for arg
94608209 do
94618210 case $arg in
9462 -f) func_append RM " $arg"; rmforce=yes ;;
9463 -*) func_append RM " $arg" ;;
9464 *) func_append files " $arg" ;;
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
8213 *) files="$files $arg" ;;
94658214 esac
94668215 done
94678216
94708219
94718220 rmdirs=
94728221
8222 origobjdir="$objdir"
94738223 for file in $files; do
94748224 func_dirname "$file" "" "."
94758225 dir="$func_dirname_result"
94768226 if test "X$dir" = X.; then
9477 odir="$objdir"
8227 objdir="$origobjdir"
94788228 else
9479 odir="$dir/$objdir"
8229 objdir="$dir/$origobjdir"
94808230 fi
94818231 func_basename "$file"
94828232 name="$func_basename_result"
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
8233 test "$mode" = uninstall && objdir="$dir"
8234
8235 # Remember objdir for removal later, being careful to avoid duplicates
8236 if test "$mode" = clean; then
94878237 case " $rmdirs " in
9488 *" $odir "*) ;;
9489 *) func_append rmdirs " $odir" ;;
8238 *" $objdir "*) ;;
8239 *) rmdirs="$rmdirs $objdir" ;;
94908240 esac
94918241 fi
94928242
95128262
95138263 # Delete the libtool libraries and symlinks.
95148264 for n in $library_names; do
9515 func_append rmfiles " $odir/$n"
8265 rmfiles="$rmfiles $objdir/$n"
95168266 done
9517 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9518
9519 case "$opt_mode" in
8267 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8268
8269 case "$mode" in
95208270 clean)
9521 case " $library_names " in
8271 case " $library_names " in
8272 # " " in the beginning catches empty $dlname
95228273 *" $dlname "*) ;;
9523 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
8274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
95248275 esac
9525 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
95268277 ;;
95278278 uninstall)
95288279 if test -n "$library_names"; then
95508301 # Add PIC object to the list of files to remove.
95518302 if test -n "$pic_object" &&
95528303 test "$pic_object" != none; then
9553 func_append rmfiles " $dir/$pic_object"
8304 rmfiles="$rmfiles $dir/$pic_object"
95548305 fi
95558306
95568307 # Add non-PIC object to the list of files to remove.
95578308 if test -n "$non_pic_object" &&
95588309 test "$non_pic_object" != none; then
9559 func_append rmfiles " $dir/$non_pic_object"
8310 rmfiles="$rmfiles $dir/$non_pic_object"
95608311 fi
95618312 fi
95628313 ;;
95638314
95648315 *)
9565 if test "$opt_mode" = clean ; then
8316 if test "$mode" = clean ; then
95668317 noexename=$name
95678318 case $file in
95688319 *.exe)
95728323 noexename=$func_stripname_result
95738324 # $file with .exe has already been added to rmfiles,
95748325 # add $file without .exe
9575 func_append rmfiles " $file"
8326 rmfiles="$rmfiles $file"
95768327 ;;
95778328 esac
95788329 # Do a test to see if this is a libtool program.
95818332 func_ltwrapper_scriptname "$file"
95828333 relink_command=
95838334 func_source $func_ltwrapper_scriptname_result
9584 func_append rmfiles " $func_ltwrapper_scriptname_result"
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
95858336 else
95868337 relink_command=
95878338 func_source $dir/$noexename
95898340
95908341 # note $name still contains .exe if it was in $file originally
95918342 # as does the version of $file that was added into $rmfiles
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
8343 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
95938344 if test "$fast_install" = yes && test -n "$relink_command"; then
9594 func_append rmfiles " $odir/lt-$name"
8345 rmfiles="$rmfiles $objdir/lt-$name"
95958346 fi
95968347 if test "X$noexename" != "X$name" ; then
9597 func_append rmfiles " $odir/lt-${noexename}.c"
8348 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
95988349 fi
95998350 fi
96008351 fi
96028353 esac
96038354 func_show_eval "$RM $rmfiles" 'exit_status=1'
96048355 done
8356 objdir="$origobjdir"
96058357
96068358 # Try to remove the ${objdir}s in the directories where we deleted files
96078359 for dir in $rmdirs; do
96138365 exit $exit_status
96148366 }
96158367
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
96178369 func_mode_uninstall ${1+"$@"}
96188370
9619 test -z "$opt_mode" && {
8371 test -z "$mode" && {
96208372 help="$generic_help"
96218373 func_fatal_help "you must specify a MODE"
96228374 }
96238375
96248376 test -z "$exec_cmd" && \
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
8377 func_fatal_help "invalid operation mode \`$mode'"
96268378
96278379 if test -n "$exec_cmd"; then
96288380 eval exec "$exec_cmd"
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1314
1415 @SET_MAKE@
1516 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
6117 pkgdatadir = $(datadir)/@PACKAGE@
6218 pkgincludedir = $(includedir)/@PACKAGE@
6319 pkglibdir = $(libdir)/@PACKAGE@
7733 build_triplet = @build@
7834 host_triplet = @host@
7935 subdir = man
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
8137 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8238 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
8339 $(top_srcdir)/configure.ac
8743 CONFIG_HEADER = $(top_builddir)/geo_config.h
8844 CONFIG_CLEAN_FILES =
8945 CONFIG_CLEAN_VPATH_FILES =
90 AM_V_P = $(am__v_P_@AM_V@)
91 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
92 am__v_P_0 = false
93 am__v_P_1 = :
94 AM_V_GEN = $(am__v_GEN_@AM_V@)
95 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
96 am__v_GEN_0 = @echo " GEN " $@;
97 am__v_GEN_1 =
98 AM_V_at = $(am__v_at_@AM_V@)
99 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
100 am__v_at_0 = @
101 am__v_at_1 =
10246 SOURCES =
10347 DIST_SOURCES =
104 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
105 ctags-recursive dvi-recursive html-recursive info-recursive \
106 install-data-recursive install-dvi-recursive \
107 install-exec-recursive install-html-recursive \
108 install-info-recursive install-pdf-recursive \
109 install-ps-recursive install-recursive installcheck-recursive \
110 installdirs-recursive pdf-recursive ps-recursive \
111 tags-recursive uninstall-recursive
112 am__can_run_installinfo = \
113 case $$AM_UPDATE_INFO_DIR in \
114 n|no|NO) false;; \
115 *) (install-info --version) >/dev/null 2>&1;; \
116 esac
48 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
49 html-recursive info-recursive install-data-recursive \
50 install-dvi-recursive install-exec-recursive \
51 install-html-recursive install-info-recursive \
52 install-pdf-recursive install-ps-recursive install-recursive \
53 installcheck-recursive installdirs-recursive pdf-recursive \
54 ps-recursive uninstall-recursive
11755 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
11856 distclean-recursive maintainer-clean-recursive
119 am__recursive_targets = \
120 $(RECURSIVE_TARGETS) \
121 $(RECURSIVE_CLEAN_TARGETS) \
122 $(am__extra_recursive_targets)
123 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
57 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
58 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
12459 distdir
125 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
126 # Read a list of newline-separated strings from the standard input,
127 # and print each of them once, without duplicates. Input order is
128 # *not* preserved.
129 am__uniquify_input = $(AWK) '\
130 BEGIN { nonempty = 0; } \
131 { items[$$0] = 1; nonempty = 1; } \
132 END { if (nonempty) { for (i in items) print i; }; } \
133 '
134 # Make sure the list of sources is unique. This is necessary because,
135 # e.g., the same source file might be shared among _SOURCES variables
136 # for different programs/libraries.
137 am__define_uniq_tagged_files = \
138 list='$(am__tagged_files)'; \
139 unique=`for i in $$list; do \
140 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
141 done | $(am__uniquify_input)`
14260 ETAGS = etags
14361 CTAGS = ctags
14462 DIST_SUBDIRS = $(SUBDIRS)
17088 reldir="$$dir2"
17189 ACLOCAL = @ACLOCAL@
17290 AMTAR = @AMTAR@
173 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
17491 AR = @AR@
17592 AUTOCONF = @AUTOCONF@
17693 AUTOHEADER = @AUTOHEADER@
188105 CYGPATH_W = @CYGPATH_W@
189106 DEFS = @DEFS@
190107 DEPDIR = @DEPDIR@
191 DLLTOOL = @DLLTOOL@
192108 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
193109 DSYMUTIL = @DSYMUTIL@
194110 DUMPBIN = @DUMPBIN@
241157 LTLIBOBJS = @LTLIBOBJS@
242158 MAINT = @MAINT@
243159 MAKEINFO = @MAKEINFO@
244 MANIFEST_TOOL = @MANIFEST_TOOL@
245160 MKDIR_P = @MKDIR_P@
246161 NM = @NM@
247162 NMEDIT = @NMEDIT@
273188 abs_srcdir = @abs_srcdir@
274189 abs_top_builddir = @abs_top_builddir@
275190 abs_top_srcdir = @abs_top_srcdir@
276 ac_ct_AR = @ac_ct_AR@
277191 ac_ct_CC = @ac_ct_CC@
278192 ac_ct_CXX = @ac_ct_CXX@
279193 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
307221 libexecdir = @libexecdir@
308222 localedir = @localedir@
309223 localstatedir = @localstatedir@
224 lt_ECHO = @lt_ECHO@
310225 mandir = @mandir@
311226 mkdir_p = @mkdir_p@
312227 oldincludedir = @oldincludedir@
364279 -rm -rf .libs _libs
365280
366281 # This directory's subdirectories are mostly independent; you can cd
367 # into them and run 'make' without going through this Makefile.
368 # To change the values of 'make' variables: instead of editing Makefiles,
369 # (1) if the variable is set in 'config.status', edit 'config.status'
370 # (which will cause the Makefiles to be regenerated when you run 'make');
371 # (2) otherwise, pass the desired values on the 'make' command line.
372 $(am__recursive_targets):
373 @fail=; \
374 if $(am__make_keepgoing); then \
375 failcom='fail=yes'; \
376 else \
377 failcom='exit 1'; \
378 fi; \
282 # into them and run `make' without going through this Makefile.
283 # To change the values of `make' variables: instead of editing Makefiles,
284 # (1) if the variable is set in `config.status', edit `config.status'
285 # (which will cause the Makefiles to be regenerated when you run `make');
286 # (2) otherwise, pass the desired values on the `make' command line.
287 $(RECURSIVE_TARGETS):
288 @fail= failcom='exit 1'; \
289 for f in x $$MAKEFLAGS; do \
290 case $$f in \
291 *=* | --[!k]*);; \
292 *k*) failcom='fail=yes';; \
293 esac; \
294 done; \
379295 dot_seen=no; \
380296 target=`echo $@ | sed s/-recursive//`; \
381 case "$@" in \
382 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
383 *) list='$(SUBDIRS)' ;; \
384 esac; \
385 for subdir in $$list; do \
297 list='$(SUBDIRS)'; for subdir in $$list; do \
386298 echo "Making $$target in $$subdir"; \
387299 if test "$$subdir" = "."; then \
388300 dot_seen=yes; \
397309 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
398310 fi; test -z "$$fail"
399311
400 ID: $(am__tagged_files)
401 $(am__define_uniq_tagged_files); mkid -fID $$unique
402 tags: tags-recursive
403 TAGS: tags
404
405 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
312 $(RECURSIVE_CLEAN_TARGETS):
313 @fail= failcom='exit 1'; \
314 for f in x $$MAKEFLAGS; do \
315 case $$f in \
316 *=* | --[!k]*);; \
317 *k*) failcom='fail=yes';; \
318 esac; \
319 done; \
320 dot_seen=no; \
321 case "$@" in \
322 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
323 *) list='$(SUBDIRS)' ;; \
324 esac; \
325 rev=''; for subdir in $$list; do \
326 if test "$$subdir" = "."; then :; else \
327 rev="$$subdir $$rev"; \
328 fi; \
329 done; \
330 rev="$$rev ."; \
331 target=`echo $@ | sed s/-recursive//`; \
332 for subdir in $$rev; do \
333 echo "Making $$target in $$subdir"; \
334 if test "$$subdir" = "."; then \
335 local_target="$$target-am"; \
336 else \
337 local_target="$$target"; \
338 fi; \
339 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
340 || eval $$failcom; \
341 done && test -z "$$fail"
342 tags-recursive:
343 list='$(SUBDIRS)'; for subdir in $$list; do \
344 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
345 done
346 ctags-recursive:
347 list='$(SUBDIRS)'; for subdir in $$list; do \
348 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
349 done
350
351 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 mkid -fID $$unique
359 tags: TAGS
360
361 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
406363 set x; \
407364 here=`pwd`; \
408365 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
418375 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
419376 fi; \
420377 done; \
421 $(am__define_uniq_tagged_files); \
378 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
379 unique=`for i in $$list; do \
380 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
381 done | \
382 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
383 END { if (nonempty) { for (i in files) print i; }; }'`; \
422384 shift; \
423385 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
424386 test -n "$$unique" || unique=$$empty_fix; \
430392 $$unique; \
431393 fi; \
432394 fi
433 ctags: ctags-recursive
434
435 CTAGS: ctags
436 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
437 $(am__define_uniq_tagged_files); \
395 ctags: CTAGS
396 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
397 $(TAGS_FILES) $(LISP)
398 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
399 unique=`for i in $$list; do \
400 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
401 done | \
402 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
403 END { if (nonempty) { for (i in files) print i; }; }'`; \
438404 test -z "$(CTAGS_ARGS)$$unique" \
439405 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
440406 $$unique
443409 here=`$(am__cd) $(top_builddir) && pwd` \
444410 && $(am__cd) $(top_srcdir) \
445411 && gtags -i $(GTAGS_ARGS) "$$here"
446 cscopelist: cscopelist-recursive
447
448 cscopelist-am: $(am__tagged_files)
449 list='$(am__tagged_files)'; \
450 case "$(srcdir)" in \
451 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
452 *) sdir=$(subdir)/$(srcdir) ;; \
453 esac; \
454 for i in $$list; do \
455 if test -f "$$i"; then \
456 echo "$(subdir)/$$i"; \
457 else \
458 echo "$$sdir/$$i"; \
459 fi; \
460 done >> $(top_builddir)/cscope.files
461412
462413 distclean-tags:
463414 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
494445 done
495446 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
496447 if test "$$subdir" = .; then :; else \
497 $(am__make_dryrun) \
498 || test -d "$(distdir)/$$subdir" \
499 || $(MKDIR_P) "$(distdir)/$$subdir" \
500 || exit 1; \
448 test -d "$(distdir)/$$subdir" \
449 || $(MKDIR_P) "$(distdir)/$$subdir" \
450 || exit 1; \
451 fi; \
452 done
453 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
454 if test "$$subdir" = .; then :; else \
501455 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
502456 $(am__relativize); \
503457 new_distdir=$$reldir; \
532486
533487 installcheck: installcheck-recursive
534488 install-strip:
535 if test -z '$(STRIP)'; then \
536 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
537 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
538 install; \
539 else \
540 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
541 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
542 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
543 fi
489 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
490 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
491 `test -z '$(STRIP)' || \
492 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
544493 mostlyclean-generic:
545494
546495 clean-generic:
618567
619568 uninstall-am:
620569
621 .MAKE: $(am__recursive_targets) install-am install-strip
622
623 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
624 check-am clean clean-generic clean-libtool cscopelist-am ctags \
625 ctags-am distclean distclean-generic distclean-libtool \
626 distclean-tags distdir dvi dvi-am html html-am info info-am \
627 install install-am install-data install-data-am install-dvi \
628 install-dvi-am install-exec install-exec-am install-html \
629 install-html-am install-info install-info-am install-man \
630 install-pdf install-pdf-am install-ps install-ps-am \
631 install-strip installcheck installcheck-am installdirs \
632 installdirs-am maintainer-clean maintainer-clean-generic \
633 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
634 ps ps-am tags tags-am uninstall uninstall-am
570 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
571 install-am install-strip tags-recursive
572
573 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
574 all all-am check check-am clean clean-generic clean-libtool \
575 ctags ctags-recursive distclean distclean-generic \
576 distclean-libtool distclean-tags distdir dvi dvi-am html \
577 html-am info info-am install install-am install-data \
578 install-data-am install-dvi install-dvi-am install-exec \
579 install-exec-am install-html install-html-am install-info \
580 install-info-am install-man install-pdf install-pdf-am \
581 install-ps install-ps-am install-strip installcheck \
582 installcheck-am installdirs installdirs-am maintainer-clean \
583 maintainer-clean-generic mostlyclean mostlyclean-generic \
584 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
585 uninstall uninstall-am
635586
636587
637588 # Tell versions [3.59,3.63) of GNU make to not export all variables.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1314
1415 @SET_MAKE@
1516 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
6117 pkgdatadir = $(datadir)/@PACKAGE@
6218 pkgincludedir = $(includedir)/@PACKAGE@
6319 pkglibdir = $(libdir)/@PACKAGE@
7733 build_triplet = @build@
7834 host_triplet = @host@
7935 subdir = man/man1
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
8137 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8238 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
8339 $(top_srcdir)/configure.ac
8743 CONFIG_HEADER = $(top_builddir)/geo_config.h
8844 CONFIG_CLEAN_FILES =
8945 CONFIG_CLEAN_VPATH_FILES =
90 AM_V_P = $(am__v_P_@AM_V@)
91 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
92 am__v_P_0 = false
93 am__v_P_1 = :
94 AM_V_GEN = $(am__v_GEN_@AM_V@)
95 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
96 am__v_GEN_0 = @echo " GEN " $@;
97 am__v_GEN_1 =
98 AM_V_at = $(am__v_at_@AM_V@)
99 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
100 am__v_at_0 = @
101 am__v_at_1 =
10246 SOURCES =
10347 DIST_SOURCES =
104 am__can_run_installinfo = \
105 case $$AM_UPDATE_INFO_DIR in \
106 n|no|NO) false;; \
107 *) (install-info --version) >/dev/null 2>&1;; \
108 esac
10948 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
11049 am__vpath_adj = case $$p in \
11150 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
12766 am__base_list = \
12867 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
12968 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
130 am__uninstall_files_from_dir = { \
131 test -z "$$files" \
132 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
133 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
134 $(am__cd) "$$dir" && rm -f $$files; }; \
135 }
13669 man1dir = $(mandir)/man1
13770 am__installdirs = "$(DESTDIR)$(man1dir)"
13871 NROFF = nroff
13972 MANS = $(man_MANS)
140 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
14173 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
14274 ACLOCAL = @ACLOCAL@
14375 AMTAR = @AMTAR@
144 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
14576 AR = @AR@
14677 AUTOCONF = @AUTOCONF@
14778 AUTOHEADER = @AUTOHEADER@
15990 CYGPATH_W = @CYGPATH_W@
16091 DEFS = @DEFS@
16192 DEPDIR = @DEPDIR@
162 DLLTOOL = @DLLTOOL@
16393 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
16494 DSYMUTIL = @DSYMUTIL@
16595 DUMPBIN = @DUMPBIN@
212142 LTLIBOBJS = @LTLIBOBJS@
213143 MAINT = @MAINT@
214144 MAKEINFO = @MAKEINFO@
215 MANIFEST_TOOL = @MANIFEST_TOOL@
216145 MKDIR_P = @MKDIR_P@
217146 NM = @NM@
218147 NMEDIT = @NMEDIT@
244173 abs_srcdir = @abs_srcdir@
245174 abs_top_builddir = @abs_top_builddir@
246175 abs_top_srcdir = @abs_top_srcdir@
247 ac_ct_AR = @ac_ct_AR@
248176 ac_ct_CC = @ac_ct_CC@
249177 ac_ct_CXX = @ac_ct_CXX@
250178 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
278206 libexecdir = @libexecdir@
279207 localedir = @localedir@
280208 localstatedir = @localstatedir@
209 lt_ECHO = @lt_ECHO@
281210 mandir = @mandir@
282211 mkdir_p = @mkdir_p@
283212 oldincludedir = @oldincludedir@
336265 -rm -rf .libs _libs
337266 install-man1: $(man_MANS)
338267 @$(NORMAL_INSTALL)
339 @list1=''; \
340 list2='$(man_MANS)'; \
341 test -n "$(man1dir)" \
342 && test -n "`echo $$list1$$list2`" \
343 || exit 0; \
344 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
345 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
346 { for i in $$list1; do echo "$$i"; done; \
347 if test -n "$$list2"; then \
348 for i in $$list2; do echo "$$i"; done \
349 | sed -n '/\.1[a-z]*$$/p'; \
350 fi; \
268 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
269 @list=''; test -n "$(man1dir)" || exit 0; \
270 { for i in $$list; do echo "$$i"; done; \
271 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
272 sed -n '/\.1[a-z]*$$/p'; \
351273 } | while read p; do \
352274 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
353275 echo "$$d$$p"; echo "$$p"; \
376298 sed -n '/\.1[a-z]*$$/p'; \
377299 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
378300 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
379 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
380 tags TAGS:
381
382 ctags CTAGS:
383
384 cscope cscopelist:
301 test -z "$$files" || { \
302 echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
303 cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
304 tags: TAGS
305 TAGS:
306
307 ctags: CTAGS
308 CTAGS:
385309
386310
387311 distdir: $(DISTFILES)
312 @list='$(MANS)'; if test -n "$$list"; then \
313 list=`for p in $$list; do \
314 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
315 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
316 if test -n "$$list" && \
317 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
318 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
319 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
320 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
321 echo " typically \`make maintainer-clean' will remove them" >&2; \
322 exit 1; \
323 else :; fi; \
324 else :; fi
388325 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
389326 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
390327 list='$(DISTFILES)'; \
431368
432369 installcheck: installcheck-am
433370 install-strip:
434 if test -z '$(STRIP)'; then \
435 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
436 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
437 install; \
438 else \
439 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
440 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
441 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
442 fi
371 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
372 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
373 `test -z '$(STRIP)' || \
374 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
443375 mostlyclean-generic:
444376
445377 clean-generic:
522454 .MAKE: install-am install-strip
523455
524456 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
525 cscopelist-am ctags-am distclean distclean-generic \
526 distclean-libtool distdir dvi dvi-am html html-am info info-am \
527 install install-am install-data install-data-am install-dvi \
528 install-dvi-am install-exec install-exec-am install-html \
529 install-html-am install-info install-info-am install-man \
530 install-man1 install-pdf install-pdf-am install-ps \
531 install-ps-am install-strip installcheck installcheck-am \
532 installdirs maintainer-clean maintainer-clean-generic \
533 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
534 ps ps-am tags-am uninstall uninstall-am uninstall-man \
535 uninstall-man1
457 distclean distclean-generic distclean-libtool distdir dvi \
458 dvi-am html html-am info info-am install install-am \
459 install-data install-data-am install-dvi install-dvi-am \
460 install-exec install-exec-am install-html install-html-am \
461 install-info install-info-am install-man install-man1 \
462 install-pdf install-pdf-am install-ps install-ps-am \
463 install-strip installcheck installcheck-am installdirs \
464 maintainer-clean maintainer-clean-generic mostlyclean \
465 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
466 uninstall uninstall-am uninstall-man uninstall-man1
536467
537468
538469 # Tell versions [3.59,3.63) of GNU make to not export all variables.
+316
-155
missing less more
00 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
78
89 # This program is free software; you can redistribute it and/or modify
910 # it under the terms of the GNU General Public License as published by
2425 # the same distribution terms that you use for the rest of that program.
2526
2627 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 echo 1>&2 "Try \`$0 --help' for more information"
2829 exit 1
2930 fi
3031
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
3146 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
4362
4463 -h|--h|--he|--hel|--help)
4564 echo "\
4665 $0 [OPTION]... PROGRAM [ARGUMENT]...
4766
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
5069
5170 Options:
5271 -h, --help display this help and exit
5372 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
5474
5575 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
6191
6292 Send bug reports to <bug-automake@gnu.org>."
6393 exit $?
6999 ;;
70100
71101 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
74104 exit 1
75105 ;;
76106
77107 esac
78108
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # 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
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
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
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
207368
208369 # Local variables:
209370 # eval: (add-hook 'write-file-hooks 'time-stamp)