Package list libgeotiff / b357546
New upstream version 1.5.0~rc1 Bas Couwenberg 2 years ago
90 changed file(s) with 4832 addition(s) and 6946 deletion(s). Raw diff Collapse all Expand all
1717
1818 # Version information
1919 set(PROJECT_VERSION_MAJOR 1)
20 set(PROJECT_VERSION_MINOR 4)
21 set(PROJECT_VERSION_PATCH 3)
20 set(PROJECT_VERSION_MINOR 5)
21 set(PROJECT_VERSION_PATCH 0)
2222 set(PROJECT_VERSION
2323 "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
2424 set(GeoTIFF_VERSION ${PROJECT_VERSION})
2727 # libgeotiff.so -> libgeotiff.so.2.2.0
2828 # libgeotiff.so.2 -> libgeotiff.so.2.2.0
2929 # libgeotiff.so.2.2.0
30 set(LINK_SOVERSION "2")
31 set(LINK_VERSION "2.2.0")
30 set(LINK_SOVERSION "5")
31 set(LINK_VERSION "5.0.0")
3232
3333 string (TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
3434 string (TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER)
110110 ###############################################################################
111111 # User-defined build settings
112112
113 SET(GEOTIFF_CSV_NAMES area.csv codes.csv datum.csv gcs.csv pcs.csv)
114 FIND_PATH(GEOTIFF_CSV_DATA_DIR NAMES ${GEOTIFF_CSV_NAMES}
115 PATHS "${CMAKE_SOURCE_DIR}/csv"
116 DOC "Default location of GeoTIFF CSV files"
117 NO_DEFAULT_PATH)
118
119 IF(IS_DIRECTORY ${GEOTIFF_CSV_DATA_DIR} AND EXISTS "${GEOTIFF_CSV_DATA_DIR}/gcs.csv")
120 MESSAGE(STATUS "Found GeoTIFF CSV files in: ${GEOTIFF_CSV_DATA_DIR}")
121 ADD_DEFINITIONS(-DCSV_DATA_DIR="${GEOTIFF_CSV_DATA_DIR}")
122 ELSE()
123 MESSAGE(FATAL_ERROR "Failed to find GeoTIFF CSV files in: ${GEOTIFF_CSV_DATA_DIR}")
124 ENDIF()
125
126113 SET(WITH_UTILITIES TRUE CACHE BOOL "Choose if GeoTIFF utilities should be built")
127114
128115 ###############################################################################
134121 # TIFF support - required, default=ON
135122 SET(WITH_TIFF TRUE CACHE BOOL "Choose if TIFF support should be built")
136123
137 # PROJ.4 support - optional, default=ON
138 SET(WITH_PROJ4 TRUE CACHE BOOL "Choose if PROJ.4 support should be built")
139
140 IF(WITH_PROJ4)
141 FIND_PACKAGE(PROJ4 NO_MODULE QUIET)
142 if (NOT PROJ4_FOUND)
143 FIND_PACKAGE(PROJ4)
144 endif ()
145
146 IF(PROJ4_FOUND)
147 ADD_DEFINITIONS(-DHAVE_LIBPROJ=1)
148 INCLUDE_DIRECTORIES(${PROJ4_INCLUDE_DIR})
149 ENDIF()
124 FIND_PACKAGE(PROJ NO_MODULE QUIET)
125 if (NOT PROJ_FOUND)
126 FIND_PACKAGE(PROJ)
127 endif ()
128
129 IF(PROJ_FOUND)
130 INCLUDE_DIRECTORIES(${PROJ_INCLUDE_DIR})
131 ELSE()
132 MESSAGE(FATAL_ERROR "Failed to detect PROJ >= 6")
150133 ENDIF()
151134
152135 # Zlib support - optional, default=OFF
229212
230213 ###############################################################################
231214 # Installation settings
232
233 SET(GEOTIFF_CSV_DATA
234 csv/alias.csv
235 csv/area.csv
236 csv/change.csv
237 csv/compdcs.csv
238 csv/coordinate_axis.csv
239 csv/coordinate_axis_name.csv
240 csv/coordinate_operation.csv
241 csv/coordinate_operation_method.csv
242 csv/coordinate_operation_parameter.csv
243 csv/coordinate_operation_parameter_value.csv
244 csv/coordinate_operation_path.csv
245 csv/coordinate_reference_system.csv
246 csv/coordinate_system.csv
247 csv/datum.csv
248 csv/datum_shift.csv
249 csv/datum_shift_pref.csv
250 csv/deprecation.csv
251 csv/ellipsoid.csv
252 csv/esri_datum_override.csv
253 csv/gcs.csv
254 csv/gcs.override.csv
255 csv/geoccs.csv
256 csv/naming_system.csv
257 csv/pcs.csv
258 csv/pcs.override.csv
259 csv/prime_meridian.csv
260 csv/projop_wparm.csv
261 csv/stateplane.csv
262 csv/supersession.csv
263 csv/unit_of_measure.csv
264 csv/version_history.csv
265 csv/vertcs.csv
266 csv/vertcs.override.csv )
267215
268216 SET(GEOTIFF_LIB_HEADERS
269217 geotiff.h
340288 DESTINATION doc)
341289 # DESTINATION ${GEOTIFF_DATA_DIR}/doc)
342290
343 # Install CSV data files
344 # INSTALL(FILES ${GEOTIFF_CSV_DATA} DESTINATION ${GEOTIFF_DATA_DIR}/epsg_csv)
345 INSTALL(FILES ${GEOTIFF_CSV_DATA} DESTINATION share/epsg_csv)
346
347291 # Install man pages
348292 INSTALL(FILES ${GEOTIFF_MAN_PAGES} DESTINATION share/man/man1)
349293
362306
363307 SET(GEOTIFF_LIB_SOURCES
364308 cpl_serv.c
365 cpl_csv.c
366309 geo_extra.c
367310 geo_free.c
368311 geo_get.c
377320 geo_write.c
378321 geotiff_proj4.c)
379322
380 SET(INCODE_EPSG_FROM_CSV FALSE CACHE BOOL "Build source-encoded EPSG data files")
381
382 FOREACH(epsg_csv_file ${GEOTIFF_CSV_DATA})
383 # We cannot use NAME_WE without string-replace, because that would
384 # give "gcs.csv" and "gcs.override.csv" the same epsg_csv_name
385 GET_FILENAME_COMPONENT(epsg_csv_name "${epsg_csv_file}" NAME)
386 STRING(REPLACE ".csv" "" epsg_csv_basename "${epsg_csv_name}")
387 # SET(INCODE_EPSG_FROM_CSV_${epsg_csv_basename} FALSE CACHE BOOL "Build ${epsg_csv_basename} file target")
388
389 # IF(INCODE_EPSG_FROM_CSV_${epsg_csv_basename})
390 if( INCODE_EPSG_FROM_CSV)
391 SET(epsg_source_name "${CMAKE_CURRENT_BINARY_DIR}/incode_epsg_${epsg_csv_basename}.c")
392 LIST(APPEND GEOTIFF_LIB_CSV_SOURCES "${epsg_source_name}")
393
394 # sanitize .'s out of struct names
395 STRING(REGEX REPLACE "\\." "_" STRUCT_NAME ${epsg_csv_basename})
396 LIST(APPEND epsg_includefile_externconst "\nextern const datafile_rows_t *${STRUCT_NAME}_rows[]")
397 LIST(APPEND epsg_includefile_pointer_list " { \"${STRUCT_NAME}\", ${STRUCT_NAME}_rows },")
398 MESSAGE(STATUS "Creating buildrule to convert ${epsg_csv_basename}.csv to ${epsg_csv_basename}.c and include it in code.")
399 ADD_CUSTOM_COMMAND(OUTPUT "${epsg_source_name}"
400 COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/csv/csv2c.py" "${CMAKE_CURRENT_SOURCE_DIR}/${epsg_csv_file}" "${epsg_source_name}"
401 DEPENDS "${epsg_csv_file}"
402 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
403 VERBATIM)
404 ENDIF()
405 ENDFOREACH()
406
407 SET(EPSG_INCODE_EXPLANATION
408 "This file is autogenerated by CMake, based on the INCODE_EPSG_* options specified during configure.\n
409 Choosing an EPSG CSV file for inclusion into code will run csv/csv2c.py on the file and include the\n
410 resulting c-source as a build target, as opposed to using GDAL_DATA-dir to find the EPSG codes at runtime.")
411 STRING(REPLACE ";" "\n" EPSG_INCLUDEFILE_POINTER_STRING "${epsg_includefile_pointer_list}")
412 FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/epsg_incode_header.h"
413 "/* ${EPSG_INCODE_EXPLANATION} */\n${epsg_includefile_externconst}; \n\n/* Pointers to csv data included in code */\nstatic const datafile_t files[] = {\n${EPSG_INCLUDEFILE_POINTER_STRING}\n { NULL, NULL }};")
414
415323 SET(XTIFF_SOURCES libxtiff/xtiff.c)
416324
417325 if (MSVC OR CMAKE_CONFIGURATION_TYPES)
421329 endif ()
422330
423331 ADD_LIBRARY(${GEOTIFF_LIBRARY_TARGET}
424 ${GEOTIFF_LIB_SOURCES} ${GEOTIFF_LIB_CSV_SOURCES} ${XTIFF_SOURCES})
332 ${GEOTIFF_LIB_SOURCES} ${XTIFF_SOURCES})
333
334 IF(WIN32 AND MSVC)
335 SET_TARGET_PROPERTIES(${GEOTIFF_LIBRARY_TARGET} PROPERTIES IMPORT_SUFFIX "_i.lib")
336 ENDIF(WIN32 AND MSVC)
425337
426338 # Unix, linux:
427339 IF(UNIX)
450362
451363 TARGET_LINK_LIBRARIES(${GEOTIFF_LIBRARY_TARGET}
452364 ${TIFF_LIBRARIES}
453 ${PROJ4_LIBRARIES}
365 ${PROJ_LIBRARIES}
454366 ${ZLIB_LIBRARIES}
455367 ${JPEG_LIBRARIES})
456368
0 Changelog entries are no longer updated. Use git history for detailed changes
1
02 2018-12-11 Even Rouault <even dot rouault at spatialys dot com>
13
24 * geo_print.c: fix wrong test in DefaultRead() that caused erroenous
55 an X style license. In any event it is all considered to be free to use
66 for any purpose (including commercial software). No credit is required
77 though some of the code requires that the specific source code modules
8 retain their existing copyright statements. The CSV files, and other tables
9 derived from the EPSG coordinate system database are also free to use. In
8 retain their existing copyright statements. In
109 particular, no part of this code is "copyleft", nor does it imply any
1110 requirement for users to disclose this or their own source code.
1211
5049 * Permission granted to use this software, so long as this copyright
5150 * notice accompanies any products derived therefrom.
5251
53 -----------
54
55 The EPSG Tables (from which the CSV files, and .inc files are derived)
56 carried this statement on use of the data (from the EPSG web site):
57
58 Use of the Data
59
60 The user assumes the entire risk as to the accuracy and the use of this
61 data. The data may be used, copied and distributed subject to the following
62 conditions:
63
64 1. INFORMATION PROVIDED IN THIS DOCUMENT IS PROVIDED "AS IS"
65 WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
66 INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
67 MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
68
69 2. The data may be included in any commercial package provided that any
70 commerciality is based on value added by the provider and not on a value
71 ascribed to the EPSG dataset which is made available at no charge. The
72 ownership of the EPSG dataset [OGP] must be acknowledged.
73
74
75 3. Subsets of information may be extracted from the dataset. Users are
76 advised that coordinate reference system and coordinate transformation
77 descriptions are incomplete unless all elements detailed as essential
78 in OGP Surveying and Positioning Guidance Note 7-1 annex F are included.
79
80 4. Essential elements should preferably be reproduced as described in the
81 dataset. Modification of parameter values is permitted as described in
82 the table below to allow change to the content of the information provided
83 that numeric equivalence is achieved. Numeric equivalence refers to the
84 results of geodetic calculations in which the parameters are used, for
85 example (i) conversion of ellipsoid defining parameters, or (ii) conversion
86 of parameters between one and two standard parallel projection methods,
87 or (iii) conversion of parameters between 7-parameter geocentric
88 transformation methods.
89
90 (EPSG provides a table at this point with some details)
91
92 5. No data that has been modified other than as permitted in these terms
93 and conditions shall be described as or attributed to the EPSG dataset.
94
9552 ----------
9653
9754 The cmake/*.cmake macros are under the following BSD license. This does
0 SUBDIRS = libxtiff . bin man cmake
0 SUBDIRS = libxtiff . bin man cmake test
11
22 AUTOMAKE_OPTIONS = dist-zip subdir-objects
33 ACLOCAL_AMFLAGS = -I m4
44
55 include $(top_srcdir)/m4/doxygen.am
66
7 PROJ_CFLAGS=
8 if PROJ_IS_CONFIG
9 PROJ_CFLAGS += @PROJ_INC@ -DHAVE_LIBPROJ=1
10 endif
11
12 if PROJECTS_H_IS_CONFIG
13 PROJ_CFLAGS += -DHAVE_PROJECTS_H=1
14 endif
7 PROJ_CFLAGS= @PROJ_INCLUDE@
158
169 if TIFF_IS_CONFIG
1710 TIFF_CFLAGS = @TIFF_INC@ -DHAVE_TIFF=1
1811 endif
1912
20 AM_CFLAGS = -I./libxtiff $(PROJ_CFLAGS) $(TIFF_CFLAGS) \
21 -DCSV_DATA_DIR=\"$(datadir)/epsg_csv\"
22
23 csvdir = $(datadir)/epsg_csv
24
25 dist_csv_DATA = csv/alias.csv \
26 csv/area.csv \
27 csv/change.csv \
28 csv/compdcs.csv \
29 csv/coordinate_axis.csv \
30 csv/coordinate_axis_name.csv \
31 csv/coordinate_operation.csv \
32 csv/coordinate_operation_method.csv \
33 csv/coordinate_operation_parameter.csv \
34 csv/coordinate_operation_parameter_value.csv \
35 csv/coordinate_operation_path.csv \
36 csv/coordinate_reference_system.csv \
37 csv/coordinate_system.csv \
38 csv/csv2c.py \
39 csv/csv_tools.py \
40 csv/datum.csv \
41 csv/datum_shift.csv \
42 csv/datum_shift_pref.csv \
43 csv/deprecation.csv \
44 csv/ellipsoid.csv \
45 csv/esri_datum_override.csv \
46 csv/gcs.csv \
47 csv/gcs.override.csv \
48 csv/geoccs.csv \
49 csv/naming_system.csv \
50 csv/pcs.csv \
51 csv/pcs.override.csv \
52 csv/prime_meridian.csv \
53 csv/projop_wparm.csv \
54 csv/stateplane.csv \
55 csv/supersession.csv \
56 csv/unit_of_measure.csv \
57 csv/version_history.csv \
58 csv/vertcs.csv \
59 csv/vertcs.override.csv
13 AM_CFLAGS = -I./libxtiff $(PROJ_CFLAGS) $(TIFF_CFLAGS)
6014
6115 include_HEADERS = geotiff.h \
6216 geotiffio.h \
7731 epsg_pcs.inc \
7832 epsg_proj.inc \
7933 epsg_vertcs.inc \
80 geokeys.inc \
81 geo_incode_defs.h
34 geokeys.inc
8235
8336 nodist_include_HEADERS = geo_config.h
8437
8538 libgeotiff_la_SOURCES = cpl_serv.c \
86 cpl_csv.c \
8739 geo_extra.c \
8840 geo_free.c \
8941 geo_get.c \
9951 geo_strtod.c \
10052 geotiff_proj4.c
10153
102 if CSV_IS_CONFIG
103 libgeotiff_la_SOURCES += csv/datum.c \
104 csv/ellipsoid.c \
105 csv/gcs.c \
106 csv/pcs.c \
107 csv/prime_meridian.c \
108 csv/projop_wparm.c \
109 csv/unit_of_measure.c
110 endif
111
112 libgeotiff_la_LDFLAGS = -version-info 4:0:2
54 libgeotiff_la_LDFLAGS = -version-info 5:0:0
11355
11456 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
11557
4242 # DX_CLEANFILES = everything to clean.
4343 #
4444 # This is usually added to MOSTLYCLEANFILES.
45
4645
4746
4847 VPATH = @srcdir@
119118 POST_UNINSTALL = :
120119 build_triplet = @build@
121120 host_triplet = @host@
122 @PROJ_IS_CONFIG_TRUE@am__append_1 = @PROJ_INC@ -DHAVE_LIBPROJ=1
123 @PROJECTS_H_IS_CONFIG_TRUE@am__append_2 = -DHAVE_PROJECTS_H=1
124 @CSV_IS_CONFIG_TRUE@am__append_3 = csv/datum.c \
125 @CSV_IS_CONFIG_TRUE@ csv/ellipsoid.c \
126 @CSV_IS_CONFIG_TRUE@ csv/gcs.c \
127 @CSV_IS_CONFIG_TRUE@ csv/pcs.c \
128 @CSV_IS_CONFIG_TRUE@ csv/prime_meridian.c \
129 @CSV_IS_CONFIG_TRUE@ csv/projop_wparm.c \
130 @CSV_IS_CONFIG_TRUE@ csv/unit_of_measure.c
131
132121 subdir = .
133122 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
134123 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
138127 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
139128 $(ACLOCAL_M4)
140129 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
141 $(am__configure_deps) $(dist_csv_DATA) $(include_HEADERS) \
142 $(am__DIST_COMMON)
130 $(am__configure_deps) $(include_HEADERS) $(am__DIST_COMMON)
143131 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
144132 configure.lineno config.status.lineno
145133 mkinstalldirs = $(install_sh) -d
173161 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
174162 $(am__cd) "$$dir" && rm -f $$files; }; \
175163 }
176 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(csvdir)" \
177 "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"
164 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \
165 "$(DESTDIR)$(includedir)"
178166 LTLIBRARIES = $(lib_LTLIBRARIES)
179167 libgeotiff_la_DEPENDENCIES = libxtiff/libxtiff.la
180 am__libgeotiff_la_SOURCES_DIST = cpl_serv.c cpl_csv.c geo_extra.c \
181 geo_free.c geo_get.c geo_names.c geo_new.c geo_normalize.c \
182 geo_print.c geo_set.c geo_simpletags.c geo_tiffp.c geo_trans.c \
183 geo_write.c geo_strtod.c geotiff_proj4.c csv/datum.c \
184 csv/ellipsoid.c csv/gcs.c csv/pcs.c csv/prime_meridian.c \
185 csv/projop_wparm.c csv/unit_of_measure.c
186 am__dirstamp = $(am__leading_dot)dirstamp
187 @CSV_IS_CONFIG_TRUE@am__objects_1 = csv/datum.lo csv/ellipsoid.lo \
188 @CSV_IS_CONFIG_TRUE@ csv/gcs.lo csv/pcs.lo \
189 @CSV_IS_CONFIG_TRUE@ csv/prime_meridian.lo csv/projop_wparm.lo \
190 @CSV_IS_CONFIG_TRUE@ csv/unit_of_measure.lo
191 am_libgeotiff_la_OBJECTS = cpl_serv.lo cpl_csv.lo geo_extra.lo \
192 geo_free.lo geo_get.lo geo_names.lo geo_new.lo \
193 geo_normalize.lo geo_print.lo geo_set.lo geo_simpletags.lo \
194 geo_tiffp.lo geo_trans.lo geo_write.lo geo_strtod.lo \
195 geotiff_proj4.lo $(am__objects_1)
168 am_libgeotiff_la_OBJECTS = cpl_serv.lo geo_extra.lo geo_free.lo \
169 geo_get.lo geo_names.lo geo_new.lo geo_normalize.lo \
170 geo_print.lo geo_set.lo geo_simpletags.lo geo_tiffp.lo \
171 geo_trans.lo geo_write.lo geo_strtod.lo geotiff_proj4.lo
196172 libgeotiff_la_OBJECTS = $(am_libgeotiff_la_OBJECTS)
197173 AM_V_lt = $(am__v_lt_@AM_V@)
198174 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
236212 am__v_CCLD_0 = @echo " CCLD " $@;
237213 am__v_CCLD_1 =
238214 SOURCES = $(libgeotiff_la_SOURCES)
239 DIST_SOURCES = $(am__libgeotiff_la_SOURCES_DIST)
215 DIST_SOURCES = $(libgeotiff_la_SOURCES)
240216 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
241217 ctags-recursive dvi-recursive html-recursive info-recursive \
242218 install-data-recursive install-dvi-recursive \
250226 n|no|NO) false;; \
251227 *) (install-info --version) >/dev/null 2>&1;; \
252228 esac
253 DATA = $(dist_csv_DATA)
254229 HEADERS = $(include_HEADERS) $(nodist_include_HEADERS)
255230 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
256231 distclean-recursive maintainer-clean-recursive
341316 CFLAGS = @CFLAGS@
342317 CPP = @CPP@
343318 CPPFLAGS = @CPPFLAGS@
344 CXX = @CXX@
345 CXXCPP = @CXXCPP@
346 CXXDEPMODE = @CXXDEPMODE@
347 CXXFLAGS = @CXXFLAGS@
348319 CYGPATH_W = @CYGPATH_W@
349320 DEFS = @DEFS@
350321 DEPDIR = @DEPDIR@
383354 EXEEXT = @EXEEXT@
384355 FGREP = @FGREP@
385356 GREP = @GREP@
386 HAVE_LIBPROJ = @HAVE_LIBPROJ@
387357 INSTALL = @INSTALL@
388358 INSTALL_DATA = @INSTALL_DATA@
389359 INSTALL_PROGRAM = @INSTALL_PROGRAM@
418388 PACKAGE_URL = @PACKAGE_URL@
419389 PACKAGE_VERSION = @PACKAGE_VERSION@
420390 PATH_SEPARATOR = @PATH_SEPARATOR@
421 PROJ_INC = @PROJ_INC@
391 PROJ_INCLUDE = @PROJ_INCLUDE@
422392 RANLIB = @RANLIB@
423393 RELEASE_VERSION = @RELEASE_VERSION@
424394 SED = @SED@
436406 abs_top_srcdir = @abs_top_srcdir@
437407 ac_ct_AR = @ac_ct_AR@
438408 ac_ct_CC = @ac_ct_CC@
439 ac_ct_CXX = @ac_ct_CXX@
440409 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
441410 am__include = @am__include@
442411 am__leading_dot = @am__leading_dot@
484453 top_build_prefix = @top_build_prefix@
485454 top_builddir = @top_builddir@
486455 top_srcdir = @top_srcdir@
487 SUBDIRS = libxtiff . bin man cmake
456 SUBDIRS = libxtiff . bin man cmake test
488457 AUTOMAKE_OPTIONS = dist-zip subdir-objects
489458 ACLOCAL_AMFLAGS = -I m4
490459 @DX_COND_doc_TRUE@@DX_COND_html_TRUE@DX_CLEAN_HTML = @DX_DOCDIR@/html
510479 @DX_COND_doc_TRUE@ $(DX_CLEAN_PDF) \
511480 @DX_COND_doc_TRUE@ $(DX_CLEAN_LATEX)
512481
513 PROJ_CFLAGS = $(am__append_1) $(am__append_2)
482 PROJ_CFLAGS = @PROJ_INCLUDE@
514483 @TIFF_IS_CONFIG_TRUE@TIFF_CFLAGS = @TIFF_INC@ -DHAVE_TIFF=1
515 AM_CFLAGS = -I./libxtiff $(PROJ_CFLAGS) $(TIFF_CFLAGS) \
516 -DCSV_DATA_DIR=\"$(datadir)/epsg_csv\"
517
518 csvdir = $(datadir)/epsg_csv
519 dist_csv_DATA = csv/alias.csv \
520 csv/area.csv \
521 csv/change.csv \
522 csv/compdcs.csv \
523 csv/coordinate_axis.csv \
524 csv/coordinate_axis_name.csv \
525 csv/coordinate_operation.csv \
526 csv/coordinate_operation_method.csv \
527 csv/coordinate_operation_parameter.csv \
528 csv/coordinate_operation_parameter_value.csv \
529 csv/coordinate_operation_path.csv \
530 csv/coordinate_reference_system.csv \
531 csv/coordinate_system.csv \
532 csv/csv2c.py \
533 csv/csv_tools.py \
534 csv/datum.csv \
535 csv/datum_shift.csv \
536 csv/datum_shift_pref.csv \
537 csv/deprecation.csv \
538 csv/ellipsoid.csv \
539 csv/esri_datum_override.csv \
540 csv/gcs.csv \
541 csv/gcs.override.csv \
542 csv/geoccs.csv \
543 csv/naming_system.csv \
544 csv/pcs.csv \
545 csv/pcs.override.csv \
546 csv/prime_meridian.csv \
547 csv/projop_wparm.csv \
548 csv/stateplane.csv \
549 csv/supersession.csv \
550 csv/unit_of_measure.csv \
551 csv/version_history.csv \
552 csv/vertcs.csv \
553 csv/vertcs.override.csv
554
484 AM_CFLAGS = -I./libxtiff $(PROJ_CFLAGS) $(TIFF_CFLAGS)
555485 include_HEADERS = geotiff.h \
556486 geotiffio.h \
557487 geovalues.h \
571501 epsg_pcs.inc \
572502 epsg_proj.inc \
573503 epsg_vertcs.inc \
574 geokeys.inc \
575 geo_incode_defs.h
504 geokeys.inc
576505
577506 nodist_include_HEADERS = geo_config.h
578 libgeotiff_la_SOURCES = cpl_serv.c cpl_csv.c geo_extra.c geo_free.c \
579 geo_get.c geo_names.c geo_new.c geo_normalize.c geo_print.c \
580 geo_set.c geo_simpletags.c geo_tiffp.c geo_trans.c geo_write.c \
581 geo_strtod.c geotiff_proj4.c $(am__append_3)
582 libgeotiff_la_LDFLAGS = -version-info 4:0:2
507 libgeotiff_la_SOURCES = cpl_serv.c \
508 geo_extra.c \
509 geo_free.c \
510 geo_get.c \
511 geo_names.c \
512 geo_new.c \
513 geo_normalize.c \
514 geo_print.c \
515 geo_set.c \
516 geo_simpletags.c \
517 geo_tiffp.c \
518 geo_trans.c \
519 geo_write.c \
520 geo_strtod.c \
521 geotiff_proj4.c
522
523 libgeotiff_la_LDFLAGS = -version-info 5:0:0
583524 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
584525 lib_LTLIBRARIES = libgeotiff.la
585526 EXTRA_DIST = autogen.sh \
689630 echo rm -f $${locs}; \
690631 rm -f $${locs}; \
691632 }
692 csv/$(am__dirstamp):
693 @$(MKDIR_P) csv
694 @: > csv/$(am__dirstamp)
695 csv/$(DEPDIR)/$(am__dirstamp):
696 @$(MKDIR_P) csv/$(DEPDIR)
697 @: > csv/$(DEPDIR)/$(am__dirstamp)
698 csv/datum.lo: csv/$(am__dirstamp) csv/$(DEPDIR)/$(am__dirstamp)
699 csv/ellipsoid.lo: csv/$(am__dirstamp) csv/$(DEPDIR)/$(am__dirstamp)
700 csv/gcs.lo: csv/$(am__dirstamp) csv/$(DEPDIR)/$(am__dirstamp)
701 csv/pcs.lo: csv/$(am__dirstamp) csv/$(DEPDIR)/$(am__dirstamp)
702 csv/prime_meridian.lo: csv/$(am__dirstamp) \
703 csv/$(DEPDIR)/$(am__dirstamp)
704 csv/projop_wparm.lo: csv/$(am__dirstamp) csv/$(DEPDIR)/$(am__dirstamp)
705 csv/unit_of_measure.lo: csv/$(am__dirstamp) \
706 csv/$(DEPDIR)/$(am__dirstamp)
707633
708634 libgeotiff.la: $(libgeotiff_la_OBJECTS) $(libgeotiff_la_DEPENDENCIES) $(EXTRA_libgeotiff_la_DEPENDENCIES)
709635 $(AM_V_CCLD)$(libgeotiff_la_LINK) -rpath $(libdir) $(libgeotiff_la_OBJECTS) $(libgeotiff_la_LIBADD) $(LIBS)
710636
711637 mostlyclean-compile:
712638 -rm -f *.$(OBJEXT)
713 -rm -f csv/*.$(OBJEXT)
714 -rm -f csv/*.lo
715639
716640 distclean-compile:
717641 -rm -f *.tab.c
718642
719 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpl_csv.Plo@am__quote@
720643 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpl_serv.Plo@am__quote@
721644 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_extra.Plo@am__quote@
722645 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_free.Plo@am__quote@
732655 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_trans.Plo@am__quote@
733656 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_write.Plo@am__quote@
734657 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotiff_proj4.Plo@am__quote@
735 @AMDEP_TRUE@@am__include@ @am__quote@csv/$(DEPDIR)/datum.Plo@am__quote@
736 @AMDEP_TRUE@@am__include@ @am__quote@csv/$(DEPDIR)/ellipsoid.Plo@am__quote@
737 @AMDEP_TRUE@@am__include@ @am__quote@csv/$(DEPDIR)/gcs.Plo@am__quote@
738 @AMDEP_TRUE@@am__include@ @am__quote@csv/$(DEPDIR)/pcs.Plo@am__quote@
739 @AMDEP_TRUE@@am__include@ @am__quote@csv/$(DEPDIR)/prime_meridian.Plo@am__quote@
740 @AMDEP_TRUE@@am__include@ @am__quote@csv/$(DEPDIR)/projop_wparm.Plo@am__quote@
741 @AMDEP_TRUE@@am__include@ @am__quote@csv/$(DEPDIR)/unit_of_measure.Plo@am__quote@
742658
743659 .c.o:
744660 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
769685
770686 clean-libtool:
771687 -rm -rf .libs _libs
772 -rm -rf csv/.libs csv/_libs
773688
774689 distclean-libtool:
775690 -rm -f libtool config.lt
776 install-dist_csvDATA: $(dist_csv_DATA)
777 @$(NORMAL_INSTALL)
778 @list='$(dist_csv_DATA)'; test -n "$(csvdir)" || list=; \
779 if test -n "$$list"; then \
780 echo " $(MKDIR_P) '$(DESTDIR)$(csvdir)'"; \
781 $(MKDIR_P) "$(DESTDIR)$(csvdir)" || exit 1; \
782 fi; \
783 for p in $$list; do \
784 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
785 echo "$$d$$p"; \
786 done | $(am__base_list) | \
787 while read files; do \
788 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(csvdir)'"; \
789 $(INSTALL_DATA) $$files "$(DESTDIR)$(csvdir)" || exit $$?; \
790 done
791
792 uninstall-dist_csvDATA:
793 @$(NORMAL_UNINSTALL)
794 @list='$(dist_csv_DATA)'; test -n "$(csvdir)" || list=; \
795 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
796 dir='$(DESTDIR)$(csvdir)'; $(am__uninstall_files_from_dir)
797691 install-includeHEADERS: $(include_HEADERS)
798692 @$(NORMAL_INSTALL)
799693 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
11321026 exit 1; } >&2
11331027 check-am: all-am
11341028 check: check-recursive
1135 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) geo_config.h
1029 all-am: Makefile $(LTLIBRARIES) $(HEADERS) geo_config.h
11361030 installdirs: installdirs-recursive
11371031 installdirs-am:
1138 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(csvdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"; do \
1032 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"; do \
11391033 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
11401034 done
11411035 install: install-recursive
11651059 distclean-generic:
11661060 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
11671061 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1168 -rm -f csv/$(DEPDIR)/$(am__dirstamp)
1169 -rm -f csv/$(am__dirstamp)
11701062
11711063 maintainer-clean-generic:
11721064 @echo "This command is intended for maintainers to use"
11781070
11791071 distclean: distclean-recursive
11801072 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1181 -rm -rf ./$(DEPDIR) csv/$(DEPDIR)
1073 -rm -rf ./$(DEPDIR)
11821074 -rm -f Makefile
11831075 distclean-am: clean-am distclean-compile distclean-generic \
11841076 distclean-hdr distclean-libtool distclean-tags
11951087
11961088 info-am:
11971089
1198 install-data-am: install-dist_csvDATA install-includeHEADERS \
1199 install-nodist_includeHEADERS
1090 install-data-am: install-includeHEADERS install-nodist_includeHEADERS
12001091
12011092 install-dvi: install-dvi-recursive
12021093
12271118 maintainer-clean: maintainer-clean-recursive
12281119 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
12291120 -rm -rf $(top_srcdir)/autom4te.cache
1230 -rm -rf ./$(DEPDIR) csv/$(DEPDIR)
1121 -rm -rf ./$(DEPDIR)
12311122 -rm -f Makefile
12321123 maintainer-clean-am: distclean-am maintainer-clean-generic
12331124
12441135
12451136 ps-am:
12461137
1247 uninstall-am: uninstall-dist_csvDATA uninstall-includeHEADERS \
1248 uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS
1138 uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES \
1139 uninstall-nodist_includeHEADERS
12491140
12501141 .MAKE: $(am__recursive_targets) all install-am install-strip
12511142
12571148 distclean-compile distclean-generic distclean-hdr \
12581149 distclean-libtool distclean-tags distcleancheck distdir \
12591150 distuninstallcheck dvi dvi-am html html-am info info-am \
1260 install install-am install-data install-data-am \
1261 install-dist_csvDATA install-dvi install-dvi-am install-exec \
1262 install-exec-am install-html install-html-am \
1263 install-includeHEADERS install-info install-info-am \
1264 install-libLTLIBRARIES install-man \
1151 install install-am install-data install-data-am install-dvi \
1152 install-dvi-am install-exec install-exec-am install-html \
1153 install-html-am install-includeHEADERS install-info \
1154 install-info-am install-libLTLIBRARIES install-man \
12651155 install-nodist_includeHEADERS install-pdf install-pdf-am \
12661156 install-ps install-ps-am install-strip installcheck \
12671157 installcheck-am installdirs installdirs-am maintainer-clean \
12681158 maintainer-clean-generic mostlyclean mostlyclean-compile \
12691159 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1270 tags tags-am uninstall uninstall-am uninstall-dist_csvDATA \
1271 uninstall-includeHEADERS uninstall-libLTLIBRARIES \
1272 uninstall-nodist_includeHEADERS
1160 tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
1161 uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS
12731162
12741163 .PRECIOUS: Makefile
12751164
0 libgeotiff 1.5.0
1 ----------------
2
3 * Require PROJ >= 6 dependency
4 * Remove all CSV files used by geo_normalize API, since libgeotiff now relies
5 on PROJ database for EPSG CRS definitions.
6 * geo_normalize.c: SetGTParmIds(): use ProjStraightVertPoleLongGeoKey for CT_PolarStereographic
7 * geo_normalize.c: report StdParallel1 for Mercator_2SP when a PCS code is used
8 * geo_normalize.c: fix support for Laborde Oblique Mercator
9 * listgeo: use PROJ database to display non-hardcoded values of a number of keys
2020 the development kit (include files). The latest version of libtiff may
2121 be found at:
2222
23 http://www.remotesensing.org/libtiff
24
23 http://www.simplesystems.org/libtiff/
24
2525 For this build to work you must use libtiff version v3.6.0 alpha or newer.
26
27 Use of PROJ
28 -----------
29
30 PROJ 6 or later is a required dependency of libgeotiff 1.5 or later.
31 The latest version of PROJ can be found at
32
33 https://proj4.org/
2634
2735
2836 Building LIBGEOTIFF:
3240 may now build the rest of the geotiff library with:
3341
3442 % cd libgeotiff
35 % ./configure
43 % ./configure --with-proj=/contrib/proj-6
3644 % make
3745
3846 Common Configuration Issues:
7280 % make clean
7381 % make
7482
75 o If you want to use EPSG tables compiled into the code, use the
76 --enable-incode-epsg configure switch. It will make the library and
77 resulting executables substantially larger (~600K), but will avoid any
78 configuration issues with finding the .csv files.
79
80 % rm config.status
81 % ./configure --enable-incode-epsg
82 % make clean
83 % make
84
85 o If you want to build in support for the PROJ.4 library, so that listgeo
86 can report corner coordinates in lat/long, it may be necessary to
87 specify the directory containing the libproj include files, and library.
88 (PROJ.4 can also be disabled by passing --without-proj). PROJ.4 info
89 can be found at http://www.remotesensing.org/proj .
90
91 % rm config.status
92 % ./configure --with-proj=/contrib/proj-4.4.1
93 % make clean
94 % make
95
9683 o The logic to build shared libraries is pretty weak, and is likely to
9784 only work on systems with the GNU tool chain (gcc, and ld) installed.
9885 On other systems you can try hacking on Makefile after running configure.
127114 GeoTIFF metadata as stored in "metadata.txt". See "docs/manual.txt"
128115 for further uses of geotifcp.
129116
130 To use the new normalization capability of listgeo, the program needs
131 to be able to find the CSV files. Use something like the following,
132 but indicating the correct path to the CSV directory (libgeotiff/csv).
133
134 % bin/listgeo -t csv -norm newgeo.tif
135
136117 To convert a projection metafile, an ESRI world file, and a raw TIFF file
137118 into a GeoTIFF file do something like the following:
138119
164145 o This library was originally written by Niles Ritter (also the primary
165146 author of the GeoTIFF specification).
166147
167 o It is currently being maintained by Frank Warmerdam (warmerdam@pobox.com),
168 who also added the "normalization" capability of GTIFGetDefn() using
169 EPSG CSV files.
170
171 o Support for "incode" CSV files was submitted by Derrick J Brashear
172 <shadow@dementia.org>.
173
174148 o Eric Brown of Universal Systems, who contributed a bug fix to
175149 GTIFPCSToImage().
176150
1414 lib/libgeotiff-$VERSION.so: Shared library version of the above.
1515 lib/libgeotiff.so: link to the specific shared library.
1616 include: The include files for libgeotiff.
17 share/epsg_csv: The EPSG CSV files used to decompose projection systems.
1817
1918 This distribution is intended to be suitable to untar directly under
2019 /usr/local or /usr to give a rough equivelent to having done a "make install"
2120 from the libgeotiff source, though this README should be removed.
22
23 If this distribution is not installed under /usr/local, it will likely be
24 necessary to define the GEOTIFF_CSV environment variable to point at
25 the share/epsg_csv directory. For reporting of lat/long equivelents of
26
2721
2822 User documentation for listgeo and geotifcp can be found at:
2923
1111 TIFF_CFLAGS = @TIFF_INC@ -DHAVE_TIFF=1
1212 endif
1313
14 AM_CFLAGS = -I../ -I../libxtiff $(TIFF_CFLAGS)
14 AM_CFLAGS = -I../ -I../libxtiff $(TIFF_CFLAGS) @PROJ_INCLUDE@
1515
1616 LDADD = ../libgeotiff.la
1717
201201 CFLAGS = @CFLAGS@
202202 CPP = @CPP@
203203 CPPFLAGS = @CPPFLAGS@
204 CXX = @CXX@
205 CXXCPP = @CXXCPP@
206 CXXDEPMODE = @CXXDEPMODE@
207 CXXFLAGS = @CXXFLAGS@
208204 CYGPATH_W = @CYGPATH_W@
209205 DEFS = @DEFS@
210206 DEPDIR = @DEPDIR@
243239 EXEEXT = @EXEEXT@
244240 FGREP = @FGREP@
245241 GREP = @GREP@
246 HAVE_LIBPROJ = @HAVE_LIBPROJ@
247242 INSTALL = @INSTALL@
248243 INSTALL_DATA = @INSTALL_DATA@
249244 INSTALL_PROGRAM = @INSTALL_PROGRAM@
278273 PACKAGE_URL = @PACKAGE_URL@
279274 PACKAGE_VERSION = @PACKAGE_VERSION@
280275 PATH_SEPARATOR = @PATH_SEPARATOR@
281 PROJ_INC = @PROJ_INC@
276 PROJ_INCLUDE = @PROJ_INCLUDE@
282277 RANLIB = @RANLIB@
283278 RELEASE_VERSION = @RELEASE_VERSION@
284279 SED = @SED@
296291 abs_top_srcdir = @abs_top_srcdir@
297292 ac_ct_AR = @ac_ct_AR@
298293 ac_ct_CC = @ac_ct_CC@
299 ac_ct_CXX = @ac_ct_CXX@
300294 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
301295 am__include = @am__include@
302296 am__leading_dot = @am__leading_dot@
349343 listgeo_SOURCES = listgeo.c
350344 applygeo_SOURCES = applygeo.c
351345 @TIFF_IS_CONFIG_TRUE@TIFF_CFLAGS = @TIFF_INC@ -DHAVE_TIFF=1
352 AM_CFLAGS = -I../ -I../libxtiff $(TIFF_CFLAGS)
346 AM_CFLAGS = -I../ -I../libxtiff $(TIFF_CFLAGS) @PROJ_INCLUDE@
353347 LDADD = ../libgeotiff.la
354348 EXTRA_DIST = getopt.c
355349 all: all-am
7979 char *geofile;
8080 char *tiffile;
8181 int rc;
82
83 if( argc != 3 )
84 {
85 fprintf(stderr, usage, "applygeo");
86 exit(1);
87 }
8288
8389 prog = argv[0];
8490 geofile = argv[1];
740740
741741 printf( "Downsample\n" );
742742
743 (void) imagewidth; (void) spp;
743 (void) spp;
744744 for (row = 0; row < imagelength; row++) {
745745 int i_in, i_out_byte;
746746
748748 goto done;
749749
750750 for( i_in = 0, i_out_byte = 0;
751 i_in < imagewidth;
751 (unsigned)i_in < imagewidth;
752752 i_in += 2, i_out_byte++ )
753753 {
754754 buf_out[i_out_byte] =
1616
1717 static void WriteTFWFile( GTIF * gtif, const char * tif_filename );
1818 static void GTIFPrintCorners( GTIF *, GTIFDefn *, FILE *, int, int, int, int );
19 static const char *CSVFileOverride( const char * );
20 static const char *CSVDirName = NULL;
2119 static TIFF *st_setup_test_info();
2220
2321 void Usage()
5250 {
5351 if( strcmp(argv[i],"-no_norm") == 0 )
5452 norm_print_flag = 0;
55 else if( strcmp(argv[i],"-t") == 0 )
56 {
57 CSVDirName = argv[++i];
58 SetCSVFilenameHook( CSVFileOverride );
59 }
6053 else if( strcmp(argv[i],"-tfw") == 0 )
6154 tfw_flag = 1;
6255 else if( strcmp(argv[i],"-proj4") == 0 )
127120 int xsize, ysize;
128121
129122 printf( "\n" );
130 GTIFPrintDefn( &defn, stdout );
123 GTIFPrintDefnEx( gtif, &defn, stdout );
131124
132125 if( proj4_print_flag )
133126 {
148141 ST_Destroy( (ST_TIFF *) tif );
149142 else
150143 XTIFFClose(tif);
151 GTIFDeaccessCSV();
152144 return 0;
153145
154146 failure:
155147 fprintf(stderr,"failure in listgeo\n");
156148 if (tif) XTIFFClose(tif);
157149 if (gtif) GTIFFree(gtif);
158 GTIFDeaccessCSV();
159150 return 1;
160 }
161
162 static const char *CSVFileOverride( const char * pszInput )
163
164 {
165 static char szPath[1024];
166
167 #ifdef WIN32
168 sprintf( szPath, "%s\\%s", CSVDirName, pszInput );
169 #else
170 sprintf( szPath, "%s/%s", CSVDirName, pszInput );
171 #endif
172
173 return( szPath );
174151 }
175152
176153 /*
0 ###############################################################################
1 # CMake module to search for PROJ library
2 #
3 # On success, the macro sets the following variables:
4 # PROJ_FOUND = if the library found
5 # PROJ_LIBRARY = full path to the library
6 # PROJ_INCLUDE_DIR = where to find the library headers
7 # also defined, but not for general use are
8 # PROJ_LIBRARY, where to find the PROJ library.
9 #
10 # Copyright (c) 2009 Mateusz Loskot <mateusz@loskot.net>
11 #
12 # Redistribution and use is allowed according to the terms of the BSD license.
13 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
14 #
15 ###############################################################################
16
17 # Try to use OSGeo4W installation
18 IF(WIN32)
19 SET(PROJ4_OSGEO4W_HOME "C:/OSGeo4W")
20
21 IF($ENV{OSGEO4W_HOME})
22 SET(PROJ4_OSGEO4W_HOME "$ENV{OSGEO4W_HOME}")
23 ENDIF()
24 ENDIF(WIN32)
25
26 FIND_PATH(PROJ_INCLUDE_DIR proj.h proj_experimental;h
27 PATHS ${PROJ_OSGEO4W_HOME}/include
28 DOC "Path to PROJ library include directory")
29
30 SET(PROJ_NAMES ${PROJ_NAMES} proj proj_i)
31 FIND_LIBRARY(PROJ_LIBRARY
32 NAMES ${PROJ_NAMES}
33 PATHS ${PROJ_OSGEO4W_HOME}/lib
34 DOC "Path to PROJ library file")
35
36 # Handle the QUIETLY and REQUIRED arguments and set PROJ_FOUND to TRUE
37 # if all listed variables are TRUE
38 INCLUDE(FindPackageHandleStandardArgs)
39 FIND_PACKAGE_HANDLE_STANDARD_ARGS(PROJ DEFAULT_MSG PROJ_LIBRARY PROJ_INCLUDE_DIR)
40
41 IF(PROJ_FOUND)
42 SET(PROJ_LIBRARIES ${PROJ_LIBRARY})
43 ENDIF()
+0
-44
cmake/FindPROJ4.cmake less more
0 ###############################################################################
1 # CMake module to search for PROJ.4 library
2 #
3 # On success, the macro sets the following variables:
4 # PROJ4_FOUND = if the library found
5 # PROJ4_LIBRARY = full path to the library
6 # PROJ4_INCLUDE_DIR = where to find the library headers
7 # also defined, but not for general use are
8 # PROJ4_LIBRARY, where to find the PROJ.4 library.
9 #
10 # Copyright (c) 2009 Mateusz Loskot <mateusz@loskot.net>
11 #
12 # Redistribution and use is allowed according to the terms of the BSD license.
13 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
14 #
15 ###############################################################################
16
17 # Try to use OSGeo4W installation
18 IF(WIN32)
19 SET(PROJ4_OSGEO4W_HOME "C:/OSGeo4W")
20
21 IF($ENV{OSGEO4W_HOME})
22 SET(PROJ4_OSGEO4W_HOME "$ENV{OSGEO4W_HOME}")
23 ENDIF()
24 ENDIF(WIN32)
25
26 FIND_PATH(PROJ4_INCLUDE_DIR proj_api.h
27 PATHS ${PROJ4_OSGEO4W_HOME}/include
28 DOC "Path to PROJ.4 library include directory")
29
30 SET(PROJ4_NAMES ${PROJ4_NAMES} proj proj_i)
31 FIND_LIBRARY(PROJ4_LIBRARY
32 NAMES ${PROJ4_NAMES}
33 PATHS ${PROJ4_OSGEO4W_HOME}/lib
34 DOC "Path to PROJ.4 library file")
35
36 # Handle the QUIETLY and REQUIRED arguments and set SPATIALINDEX_FOUND to TRUE
37 # if all listed variables are TRUE
38 INCLUDE(FindPackageHandleStandardArgs)
39 FIND_PACKAGE_HANDLE_STANDARD_ARGS(PROJ4 DEFAULT_MSG PROJ4_LIBRARY PROJ4_INCLUDE_DIR)
40
41 IF(PROJ4_FOUND)
42 SET(PROJ4_LIBRARIES ${PROJ4_LIBRARY})
43 ENDIF()
00 EXTRA_DIST = FindGeoTIFF.cmake \
1 FindPROJ4.cmake \
1 FindPROJ.cmake \
22 geo_config.h.in \
33 project-config-version.cmake.in \
44 project-config.cmake.in \
134134 CFLAGS = @CFLAGS@
135135 CPP = @CPP@
136136 CPPFLAGS = @CPPFLAGS@
137 CXX = @CXX@
138 CXXCPP = @CXXCPP@
139 CXXDEPMODE = @CXXDEPMODE@
140 CXXFLAGS = @CXXFLAGS@
141137 CYGPATH_W = @CYGPATH_W@
142138 DEFS = @DEFS@
143139 DEPDIR = @DEPDIR@
176172 EXEEXT = @EXEEXT@
177173 FGREP = @FGREP@
178174 GREP = @GREP@
179 HAVE_LIBPROJ = @HAVE_LIBPROJ@
180175 INSTALL = @INSTALL@
181176 INSTALL_DATA = @INSTALL_DATA@
182177 INSTALL_PROGRAM = @INSTALL_PROGRAM@
211206 PACKAGE_URL = @PACKAGE_URL@
212207 PACKAGE_VERSION = @PACKAGE_VERSION@
213208 PATH_SEPARATOR = @PATH_SEPARATOR@
214 PROJ_INC = @PROJ_INC@
209 PROJ_INCLUDE = @PROJ_INCLUDE@
215210 RANLIB = @RANLIB@
216211 RELEASE_VERSION = @RELEASE_VERSION@
217212 SED = @SED@
229224 abs_top_srcdir = @abs_top_srcdir@
230225 ac_ct_AR = @ac_ct_AR@
231226 ac_ct_CC = @ac_ct_CC@
232 ac_ct_CXX = @ac_ct_CXX@
233227 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
234228 am__include = @am__include@
235229 am__leading_dot = @am__leading_dot@
278272 top_builddir = @top_builddir@
279273 top_srcdir = @top_srcdir@
280274 EXTRA_DIST = FindGeoTIFF.cmake \
281 FindPROJ4.cmake \
275 FindPROJ.cmake \
282276 geo_config.h.in \
283277 project-config-version.cmake.in \
284278 project-config.cmake.in \
+463
-4441
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.3.
2 # Generated by GNU Autoconf 2.69 for libgeotiff 1.5.0.
33 #
44 # Report bugs to <warmerdam@pobox.com>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='libgeotiff'
591591 PACKAGE_TARNAME='libgeotiff'
592 PACKAGE_VERSION='1.4.3'
593 PACKAGE_STRING='libgeotiff 1.4.3'
592 PACKAGE_VERSION='1.5.0'
593 PACKAGE_STRING='libgeotiff 1.5.0'
594594 PACKAGE_BUGREPORT='warmerdam@pobox.com'
595595 PACKAGE_URL=''
596596
681681 DX_DOCDIR
682682 DX_CONFIG
683683 DX_PROJECT
684 CSV_IS_CONFIG_FALSE
685 CSV_IS_CONFIG_TRUE
686 PROJECTS_H_IS_CONFIG_FALSE
687 PROJECTS_H_IS_CONFIG_TRUE
688 PROJ_IS_CONFIG_FALSE
689 PROJ_IS_CONFIG_TRUE
690 HAVE_LIBPROJ
691 PROJ_INC
684 PROJ_INCLUDE
692685 TIFF_IS_CONFIG_FALSE
693686 TIFF_IS_CONFIG_TRUE
694687 TIFF_PREFIX
728721 host
729722 LIBTOOL
730723 LN_S
731 CXXCPP
732 am__fastdepCXX_FALSE
733 am__fastdepCXX_TRUE
734 CXXDEPMODE
735 ac_ct_CXX
736 CXXFLAGS
737 CXX
738724 am__fastdepCC_FALSE
739725 am__fastdepCC_TRUE
740726 CCDEPMODE
847833 with_jpeg
848834 with_libtiff
849835 with_proj
850 enable_incode_epsg
851836 enable_towgs84
852837 enable_doxygen_doc
853838 enable_doxygen_dot
868853 LDFLAGS
869854 LIBS
870855 CPPFLAGS
871 CXX
872 CXXFLAGS
873 CCC
874 CXXCPP
875856 LT_SYS_LIBRARY_PATH
876857 CPP
877858 DOXYGEN_PAPER_SIZE'
14251406 # Omit some internal or obsolete options to make the list less imposing.
14261407 # This message is too long to be a string in the A/UX 3.1 sh.
14271408 cat <<_ACEOF
1428 \`configure' configures libgeotiff 1.4.3 to adapt to many kinds of systems.
1409 \`configure' configures libgeotiff 1.5.0 to adapt to many kinds of systems.
14291410
14301411 Usage: $0 [OPTION]... [VAR=VALUE]...
14311412
14961477
14971478 if test -n "$ac_init_help"; then
14981479 case $ac_init_help in
1499 short | recursive ) echo "Configuration of libgeotiff 1.4.3:";;
1480 short | recursive ) echo "Configuration of libgeotiff 1.5.0:";;
15001481 esac
15011482 cat <<\_ACEOF
15021483
15201501 --disable-libtool-lock avoid locking (might break parallel builds)
15211502 --enable-debug=ARG Enable debug compilation mode [yes|no],
15221503 default=no
1523 --enable-incode-epsg Use C code EPSG tables
15241504 --disable-towgs84 Disable WGS84 parameters for binary compatibility with pre-1.4.1
15251505 --disable-doxygen-doc don't generate any doxygen documentation
15261506 --disable-doxygen-dot don't generate graphics for doxygen documentation
15501530 --with-libz=ARG alias for --with-zip
15511531 --with-jpeg=ARG jpeg library to use (yes or path)
15521532 --with-libtiff=dir Use libtiff in directory dir
1553 --with-proj=ARG Use PROJ.4 library (ARG=no or path)
1533 --with-proj=ARG Compile with PROJ.x (ARG=yes or path)
15541534
15551535 Some influential environment variables:
15561536 CC C compiler command
15601540 LIBS libraries to pass to the linker, e.g. -l<library>
15611541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
15621542 you have headers in a nonstandard directory <include dir>
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1565 CXXCPP C++ preprocessor
15661543 LT_SYS_LIBRARY_PATH
15671544 User-defined run-time library search path.
15681545 CPP C preprocessor
16351612 test -n "$ac_init_help" && exit $ac_status
16361613 if $ac_init_version; then
16371614 cat <<\_ACEOF
1638 libgeotiff configure 1.4.3
1615 libgeotiff configure 1.5.0
16391616 generated by GNU Autoconf 2.69
16401617
16411618 Copyright (C) 2012 Free Software Foundation, Inc.
16861663 as_fn_set_status $ac_retval
16871664
16881665 } # ac_fn_c_try_compile
1689
1690 # ac_fn_cxx_try_compile LINENO
1691 # ----------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_cxx_try_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext
1697 if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_cxx_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1
1722 fi
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_cxx_try_compile
1727
1728 # ac_fn_cxx_try_cpp LINENO
1729 # ------------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_cxx_try_cpp ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1751 test ! -s conftest.err
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_cxx_try_cpp
17641666
17651667 # ac_fn_c_try_link LINENO
17661668 # -----------------------
19851887
19861888 } # ac_fn_c_check_func
19871889
1988 # ac_fn_cxx_try_link LINENO
1989 # -------------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_cxx_try_link ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext conftest$ac_exeext
1995 if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2008 fi
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_cxx_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest$ac_exeext && {
2014 test "$cross_compiling" = yes ||
2015 test -x conftest$ac_exeext
2016 }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1
2023 fi
2024 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026 # interfere with the next link command; also delete a directory that is
2027 # left behind by Apple's compiler. We do this before executing the actions.
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2031
2032 } # ac_fn_cxx_try_link
2033
20341890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
20351891 # -------------------------------------------------------
20361892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
21251981 This file contains any messages produced by compilers while
21261982 running configure, to aid debugging if configure makes a mistake.
21271983
2128 It was created by libgeotiff $as_me 1.4.3, which was
1984 It was created by libgeotiff $as_me 1.5.0, which was
21291985 generated by GNU Autoconf 2.69. Invocation command line was
21301986
21311987 $ $0 $@
25432399
25442400
25452401
2546 RELEASE_VERSION=1.4.3
2402 RELEASE_VERSION=1.5.0
25472403
25482404 ac_config_headers="$ac_config_headers geo_config.h"
25492405
30352891
30362892 # Define the identity of the package.
30372893 PACKAGE='libgeotiff'
3038 VERSION='1.4.3'
2894 VERSION='1.5.0'
30392895
30402896
30412897 cat >>confdefs.h <<_ACEOF
41894045 am__fastdepCC_FALSE=
41904046 fi
41914047
4192
4193 ac_ext=cpp
4194 ac_cpp='$CXXCPP $CPPFLAGS'
4195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4198 if test -z "$CXX"; then
4199 if test -n "$CCC"; then
4200 CXX=$CCC
4201 else
4202 if test -n "$ac_tool_prefix"; then
4203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4204 do
4205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_CXX+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$CXX"; then
4213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 CXX=$ac_cv_prog_CXX
4233 if test -n "$CXX"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4235 $as_echo "$CXX" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 test -n "$CXX" && break
4243 done
4244 fi
4245 if test -z "$CXX"; then
4246 ac_ct_CXX=$CXX
4247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4248 do
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250 set dummy $ac_prog; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -n "$ac_ct_CXX"; then
4257 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_ac_ct_CXX="$ac_prog"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270 done
4271 done
4272 IFS=$as_save_IFS
4273
4274 fi
4275 fi
4276 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4277 if test -n "$ac_ct_CXX"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4279 $as_echo "$ac_ct_CXX" >&6; }
4280 else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4284
4285
4286 test -n "$ac_ct_CXX" && break
4287 done
4288
4289 if test "x$ac_ct_CXX" = x; then
4290 CXX="g++"
4291 else
4292 case $cross_compiling:$ac_tool_warned in
4293 yes:)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296 ac_tool_warned=yes ;;
4297 esac
4298 CXX=$ac_ct_CXX
4299 fi
4300 fi
4301
4302 fi
4303 fi
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4306 set X $ac_compile
4307 ac_compiler=$2
4308 for ac_option in --version -v -V -qversion; do
4309 { { ac_try="$ac_compiler $ac_option >&5"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317 ac_status=$?
4318 if test -s conftest.err; then
4319 sed '10a\
4320 ... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4323 fi
4324 rm -f conftest.er1 conftest.err
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4327 done
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4330 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4331 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main ()
4339 {
4340 #ifndef __GNUC__
4341 choke me
4342 #endif
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_cxx_try_compile "$LINENO"; then :
4349 ac_compiler_gnu=yes
4350 else
4351 ac_compiler_gnu=no
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4358 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4359 if test $ac_compiler_gnu = yes; then
4360 GXX=yes
4361 else
4362 GXX=
4363 fi
4364 ac_test_CXXFLAGS=${CXXFLAGS+set}
4365 ac_save_CXXFLAGS=$CXXFLAGS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4367 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4368 if ${ac_cv_prog_cxx_g+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4372 ac_cxx_werror_flag=yes
4373 ac_cv_prog_cxx_g=no
4374 CXXFLAGS="-g"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 int
4379 main ()
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_cxx_try_compile "$LINENO"; then :
4387 ac_cv_prog_cxx_g=yes
4388 else
4389 CXXFLAGS=""
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392
4393 int
4394 main ()
4395 {
4396
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_cxx_try_compile "$LINENO"; then :
4402
4403 else
4404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4405 CXXFLAGS="-g"
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_cxx_try_compile "$LINENO"; then :
4418 ac_cv_prog_cxx_g=yes
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4428 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4429 if test "$ac_test_CXXFLAGS" = set; then
4430 CXXFLAGS=$ac_save_CXXFLAGS
4431 elif test $ac_cv_prog_cxx_g = yes; then
4432 if test "$GXX" = yes; then
4433 CXXFLAGS="-g -O2"
4434 else
4435 CXXFLAGS="-g"
4436 fi
4437 else
4438 if test "$GXX" = yes; then
4439 CXXFLAGS="-O2"
4440 else
4441 CXXFLAGS=
4442 fi
4443 fi
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450 depcc="$CXX" am_compiler_list=
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453 $as_echo_n "checking dependency style of $depcc... " >&6; }
4454 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458 # We make a subdir and do the tests there. Otherwise we can end up
4459 # making bogus files that we don't know about and never remove. For
4460 # instance it was reported that on HP-UX the gcc test will end up
4461 # making a dummy file named 'D' -- because '-MD' means "put the output
4462 # in D".
4463 rm -rf conftest.dir
4464 mkdir conftest.dir
4465 # Copy depcomp to subdir because otherwise we won't find it if we're
4466 # using a relative directory.
4467 cp "$am_depcomp" conftest.dir
4468 cd conftest.dir
4469 # We will build objects and dependencies in a subdirectory because
4470 # it helps to detect inapplicable dependency modes. For instance
4471 # both Tru64's cc and ICC support -MD to output dependencies as a
4472 # side effect of compilation, but ICC will put the dependencies in
4473 # the current directory while Tru64 will put them in the object
4474 # directory.
4475 mkdir sub
4476
4477 am_cv_CXX_dependencies_compiler_type=none
4478 if test "$am_compiler_list" = ""; then
4479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480 fi
4481 am__universal=false
4482 case " $depcc " in #(
4483 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4484 esac
4485
4486 for depmode in $am_compiler_list; do
4487 # Setup a source with many dependencies, because some compilers
4488 # like to wrap large dependency lists on column 80 (with \), and
4489 # we should not choose a depcomp mode which is confused by this.
4490 #
4491 # We need to recreate these files for each test, as the compiler may
4492 # overwrite some of them when testing with obscure command lines.
4493 # This happens at least with the AIX C compiler.
4494 : > sub/conftest.c
4495 for i in 1 2 3 4 5 6; do
4496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4498 # Solaris 10 /bin/sh.
4499 echo '/* dummy */' > sub/conftst$i.h
4500 done
4501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4502
4503 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4504 # mode. It turns out that the SunPro C++ compiler does not properly
4505 # handle '-M -o', and we need to detect this. Also, some Intel
4506 # versions had trouble with output in subdirs.
4507 am__obj=sub/conftest.${OBJEXT-o}
4508 am__minus_obj="-o $am__obj"
4509 case $depmode in
4510 gcc)
4511 # This depmode causes a compiler race in universal mode.
4512 test "$am__universal" = false || continue
4513 ;;
4514 nosideeffect)
4515 # After this tag, mechanisms are not by side-effect, so they'll
4516 # only be used when explicitly requested.
4517 if test "x$enable_dependency_tracking" = xyes; then
4518 continue
4519 else
4520 break
4521 fi
4522 ;;
4523 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524 # This compiler won't grok '-c -o', but also, the minuso test has
4525 # not run yet. These depmodes are late enough in the game, and
4526 # so weak that their functioning should not be impacted.
4527 am__obj=conftest.${OBJEXT-o}
4528 am__minus_obj=
4529 ;;
4530 none) break ;;
4531 esac
4532 if depmode=$depmode \
4533 source=sub/conftest.c object=$am__obj \
4534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536 >/dev/null 2>conftest.err &&
4537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541 # icc doesn't choke on unknown options, it will just issue warnings
4542 # or remarks (even with -Werror). So we grep stderr for any message
4543 # that says an option was ignored or not supported.
4544 # When given -MP, icc 7.0 and 7.1 complain thusly:
4545 # icc: Command line warning: ignoring option '-M'; no argument required
4546 # The diagnosis changed in icc 8.0:
4547 # icc: Command line remark: option '-MP' not supported
4548 if (grep 'ignoring option' conftest.err ||
4549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550 am_cv_CXX_dependencies_compiler_type=$depmode
4551 break
4552 fi
4553 fi
4554 done
4555
4556 cd ..
4557 rm -rf conftest.dir
4558 else
4559 am_cv_CXX_dependencies_compiler_type=none
4560 fi
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4564 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4565 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4566
4567 if
4568 test "x$enable_dependency_tracking" != xno \
4569 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4570 am__fastdepCXX_TRUE=
4571 am__fastdepCXX_FALSE='#'
4572 else
4573 am__fastdepCXX_TRUE='#'
4574 am__fastdepCXX_FALSE=
4575 fi
4576
4577
4578 ac_ext=cpp
4579 ac_cpp='$CXXCPP $CPPFLAGS'
4580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4584 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4585 if test -z "$CXXCPP"; then
4586 if ${ac_cv_prog_CXXCPP+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 # Double quotes because CXXCPP needs to be expanded
4590 for CXXCPP in "$CXX -E" "/lib/cpp"
4591 do
4592 ac_preproc_ok=false
4593 for ac_cxx_preproc_warn_flag in '' yes
4594 do
4595 # Use a header file that comes with gcc, so configuring glibc
4596 # with a fresh cross-compiler works.
4597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4598 # <limits.h> exists even on freestanding compilers.
4599 # On the NeXT, cc -E runs the code through the compiler's parser,
4600 # not just through cpp. "Syntax error" is here to catch this case.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #ifdef __STDC__
4604 # include <limits.h>
4605 #else
4606 # include <assert.h>
4607 #endif
4608 Syntax error
4609 _ACEOF
4610 if ac_fn_cxx_try_cpp "$LINENO"; then :
4611
4612 else
4613 # Broken: fails on valid input.
4614 continue
4615 fi
4616 rm -f conftest.err conftest.i conftest.$ac_ext
4617
4618 # OK, works on sane cases. Now check whether nonexistent headers
4619 # can be detected and how.
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <ac_nonexistent.h>
4623 _ACEOF
4624 if ac_fn_cxx_try_cpp "$LINENO"; then :
4625 # Broken: success on invalid input.
4626 continue
4627 else
4628 # Passes both tests.
4629 ac_preproc_ok=:
4630 break
4631 fi
4632 rm -f conftest.err conftest.i conftest.$ac_ext
4633
4634 done
4635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4636 rm -f conftest.i conftest.err conftest.$ac_ext
4637 if $ac_preproc_ok; then :
4638 break
4639 fi
4640
4641 done
4642 ac_cv_prog_CXXCPP=$CXXCPP
4643
4644 fi
4645 CXXCPP=$ac_cv_prog_CXXCPP
4646 else
4647 ac_cv_prog_CXXCPP=$CXXCPP
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4650 $as_echo "$CXXCPP" >&6; }
4651 ac_preproc_ok=false
4652 for ac_cxx_preproc_warn_flag in '' yes
4653 do
4654 # Use a header file that comes with gcc, so configuring glibc
4655 # with a fresh cross-compiler works.
4656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4657 # <limits.h> exists even on freestanding compilers.
4658 # On the NeXT, cc -E runs the code through the compiler's parser,
4659 # not just through cpp. "Syntax error" is here to catch this case.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #ifdef __STDC__
4663 # include <limits.h>
4664 #else
4665 # include <assert.h>
4666 #endif
4667 Syntax error
4668 _ACEOF
4669 if ac_fn_cxx_try_cpp "$LINENO"; then :
4670
4671 else
4672 # Broken: fails on valid input.
4673 continue
4674 fi
4675 rm -f conftest.err conftest.i conftest.$ac_ext
4676
4677 # OK, works on sane cases. Now check whether nonexistent headers
4678 # can be detected and how.
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #include <ac_nonexistent.h>
4682 _ACEOF
4683 if ac_fn_cxx_try_cpp "$LINENO"; then :
4684 # Broken: success on invalid input.
4685 continue
4686 else
4687 # Passes both tests.
4688 ac_preproc_ok=:
4689 break
4690 fi
4691 rm -f conftest.err conftest.i conftest.$ac_ext
4692
4693 done
4694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4695 rm -f conftest.i conftest.err conftest.$ac_ext
4696 if $ac_preproc_ok; then :
4697
4698 else
4699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4702 See \`config.log' for more details" "$LINENO" 5; }
4703 fi
4704
4705 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47104048
47114049
47124050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
84707808 fi
84717809
84727810 done
8473
8474
8475
8476
8477 func_stripname_cnf ()
8478 {
8479 case $2 in
8480 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8481 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8482 esac
8483 } # func_stripname_cnf
84847811
84857812
84867813
1277612103
1277712104 CC=$lt_save_CC
1277812105
12779 if test -n "$CXX" && ( test no != "$CXX" &&
12780 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12781 (test g++ != "$CXX"))); then
12782 ac_ext=cpp
12783 ac_cpp='$CXXCPP $CPPFLAGS'
12784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12788 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12789 if test -z "$CXXCPP"; then
12790 if ${ac_cv_prog_CXXCPP+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 # Double quotes because CXXCPP needs to be expanded
12794 for CXXCPP in "$CXX -E" "/lib/cpp"
12795 do
12796 ac_preproc_ok=false
12797 for ac_cxx_preproc_warn_flag in '' yes
12798 do
12799 # Use a header file that comes with gcc, so configuring glibc
12800 # with a fresh cross-compiler works.
12801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802 # <limits.h> exists even on freestanding compilers.
12803 # On the NeXT, cc -E runs the code through the compiler's parser,
12804 # not just through cpp. "Syntax error" is here to catch this case.
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807 #ifdef __STDC__
12808 # include <limits.h>
12809 #else
12810 # include <assert.h>
12811 #endif
12812 Syntax error
12813 _ACEOF
12814 if ac_fn_cxx_try_cpp "$LINENO"; then :
12815
12816 else
12817 # Broken: fails on valid input.
12818 continue
12819 fi
12820 rm -f conftest.err conftest.i conftest.$ac_ext
12821
12822 # OK, works on sane cases. Now check whether nonexistent headers
12823 # can be detected and how.
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826 #include <ac_nonexistent.h>
12827 _ACEOF
12828 if ac_fn_cxx_try_cpp "$LINENO"; then :
12829 # Broken: success on invalid input.
12830 continue
12831 else
12832 # Passes both tests.
12833 ac_preproc_ok=:
12834 break
12835 fi
12836 rm -f conftest.err conftest.i conftest.$ac_ext
12837
12838 done
12839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12840 rm -f conftest.i conftest.err conftest.$ac_ext
12841 if $ac_preproc_ok; then :
12842 break
12843 fi
12844
12845 done
12846 ac_cv_prog_CXXCPP=$CXXCPP
12847
12848 fi
12849 CXXCPP=$ac_cv_prog_CXXCPP
12850 else
12851 ac_cv_prog_CXXCPP=$CXXCPP
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12854 $as_echo "$CXXCPP" >&6; }
12855 ac_preproc_ok=false
12856 for ac_cxx_preproc_warn_flag in '' yes
12857 do
12858 # Use a header file that comes with gcc, so configuring glibc
12859 # with a fresh cross-compiler works.
12860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12861 # <limits.h> exists even on freestanding compilers.
12862 # On the NeXT, cc -E runs the code through the compiler's parser,
12863 # not just through cpp. "Syntax error" is here to catch this case.
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12866 #ifdef __STDC__
12867 # include <limits.h>
12868 #else
12869 # include <assert.h>
12870 #endif
12871 Syntax error
12872 _ACEOF
12873 if ac_fn_cxx_try_cpp "$LINENO"; then :
12874
12875 else
12876 # Broken: fails on valid input.
12877 continue
12878 fi
12879 rm -f conftest.err conftest.i conftest.$ac_ext
12880
12881 # OK, works on sane cases. Now check whether nonexistent headers
12882 # can be detected and how.
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12885 #include <ac_nonexistent.h>
12886 _ACEOF
12887 if ac_fn_cxx_try_cpp "$LINENO"; then :
12888 # Broken: success on invalid input.
12889 continue
12890 else
12891 # Passes both tests.
12892 ac_preproc_ok=:
12893 break
12894 fi
12895 rm -f conftest.err conftest.i conftest.$ac_ext
12896
12897 done
12898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12899 rm -f conftest.i conftest.err conftest.$ac_ext
12900 if $ac_preproc_ok; then :
12901
12902 else
12903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12905 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12906 See \`config.log' for more details" "$LINENO" 5; }
12907 fi
12908
12909 ac_ext=c
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915 else
12916 _lt_caught_CXX_error=yes
12917 fi
12918
12919 ac_ext=cpp
12920 ac_cpp='$CXXCPP $CPPFLAGS'
12921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12924
12925 archive_cmds_need_lc_CXX=no
12926 allow_undefined_flag_CXX=
12927 always_export_symbols_CXX=no
12928 archive_expsym_cmds_CXX=
12929 compiler_needs_object_CXX=no
12930 export_dynamic_flag_spec_CXX=
12931 hardcode_direct_CXX=no
12932 hardcode_direct_absolute_CXX=no
12933 hardcode_libdir_flag_spec_CXX=
12934 hardcode_libdir_separator_CXX=
12935 hardcode_minus_L_CXX=no
12936 hardcode_shlibpath_var_CXX=unsupported
12937 hardcode_automatic_CXX=no
12938 inherit_rpath_CXX=no
12939 module_cmds_CXX=
12940 module_expsym_cmds_CXX=
12941 link_all_deplibs_CXX=unknown
12942 old_archive_cmds_CXX=$old_archive_cmds
12943 reload_flag_CXX=$reload_flag
12944 reload_cmds_CXX=$reload_cmds
12945 no_undefined_flag_CXX=
12946 whole_archive_flag_spec_CXX=
12947 enable_shared_with_static_runtimes_CXX=no
12948
12949 # Source file extension for C++ test sources.
12950 ac_ext=cpp
12951
12952 # Object file extension for compiled C++ test sources.
12953 objext=o
12954 objext_CXX=$objext
12955
12956 # No sense in running all these tests if we already determined that
12957 # the CXX compiler isn't working. Some variables (like enable_shared)
12958 # are currently assumed to apply to all compilers on this platform,
12959 # and will be corrupted by setting them based on a non-working compiler.
12960 if test yes != "$_lt_caught_CXX_error"; then
12961 # Code to be used in simple compile tests
12962 lt_simple_compile_test_code="int some_variable = 0;"
12963
12964 # Code to be used in simple link tests
12965 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12966
12967 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12968
12969
12970
12971
12972
12973
12974 # If no C compiler was specified, use CC.
12975 LTCC=${LTCC-"$CC"}
12976
12977 # If no C compiler flags were specified, use CFLAGS.
12978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12979
12980 # Allow CC to be a program name with arguments.
12981 compiler=$CC
12982
12983
12984 # save warnings/boilerplate of simple test code
12985 ac_outfile=conftest.$ac_objext
12986 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12987 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12988 _lt_compiler_boilerplate=`cat conftest.err`
12989 $RM conftest*
12990
12991 ac_outfile=conftest.$ac_objext
12992 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12993 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12994 _lt_linker_boilerplate=`cat conftest.err`
12995 $RM -r conftest*
12996
12997
12998 # Allow CC to be a program name with arguments.
12999 lt_save_CC=$CC
13000 lt_save_CFLAGS=$CFLAGS
13001 lt_save_LD=$LD
13002 lt_save_GCC=$GCC
13003 GCC=$GXX
13004 lt_save_with_gnu_ld=$with_gnu_ld
13005 lt_save_path_LD=$lt_cv_path_LD
13006 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13007 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13008 else
13009 $as_unset lt_cv_prog_gnu_ld
13010 fi
13011 if test -n "${lt_cv_path_LDCXX+set}"; then
13012 lt_cv_path_LD=$lt_cv_path_LDCXX
13013 else
13014 $as_unset lt_cv_path_LD
13015 fi
13016 test -z "${LDCXX+set}" || LD=$LDCXX
13017 CC=${CXX-"c++"}
13018 CFLAGS=$CXXFLAGS
13019 compiler=$CC
13020 compiler_CXX=$CC
13021 func_cc_basename $compiler
13022 cc_basename=$func_cc_basename_result
13023
13024
13025 if test -n "$compiler"; then
13026 # We don't want -fno-exception when compiling C++ code, so set the
13027 # no_builtin_flag separately
13028 if test yes = "$GXX"; then
13029 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13030 else
13031 lt_prog_compiler_no_builtin_flag_CXX=
13032 fi
13033
13034 if test yes = "$GXX"; then
13035 # Set up default GNU C++ configuration
13036
13037
13038
13039 # Check whether --with-gnu-ld was given.
13040 if test "${with_gnu_ld+set}" = set; then :
13041 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13042 else
13043 with_gnu_ld=no
13044 fi
13045
13046 ac_prog=ld
13047 if test yes = "$GCC"; then
13048 # Check if gcc -print-prog-name=ld gives a path.
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13050 $as_echo_n "checking for ld used by $CC... " >&6; }
13051 case $host in
13052 *-*-mingw*)
13053 # gcc leaves a trailing carriage return, which upsets mingw
13054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13055 *)
13056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13057 esac
13058 case $ac_prog in
13059 # Accept absolute paths.
13060 [\\/]* | ?:[\\/]*)
13061 re_direlt='/[^/][^/]*/\.\./'
13062 # Canonicalize the pathname of ld
13063 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13064 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13065 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13066 done
13067 test -z "$LD" && LD=$ac_prog
13068 ;;
13069 "")
13070 # If it fails, then pretend we aren't using GCC.
13071 ac_prog=ld
13072 ;;
13073 *)
13074 # If it is relative, then search for the first ld in PATH.
13075 with_gnu_ld=unknown
13076 ;;
13077 esac
13078 elif test yes = "$with_gnu_ld"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13080 $as_echo_n "checking for GNU ld... " >&6; }
13081 else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13083 $as_echo_n "checking for non-GNU ld... " >&6; }
13084 fi
13085 if ${lt_cv_path_LD+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 if test -z "$LD"; then
13089 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13090 for ac_dir in $PATH; do
13091 IFS=$lt_save_ifs
13092 test -z "$ac_dir" && ac_dir=.
13093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13094 lt_cv_path_LD=$ac_dir/$ac_prog
13095 # Check to see if the program is GNU ld. I'd rather use --version,
13096 # but apparently some variants of GNU ld only accept -v.
13097 # Break only if it was the GNU/non-GNU ld that we prefer.
13098 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13099 *GNU* | *'with BFD'*)
13100 test no != "$with_gnu_ld" && break
13101 ;;
13102 *)
13103 test yes != "$with_gnu_ld" && break
13104 ;;
13105 esac
13106 fi
13107 done
13108 IFS=$lt_save_ifs
13109 else
13110 lt_cv_path_LD=$LD # Let the user override the test with a path.
13111 fi
13112 fi
13113
13114 LD=$lt_cv_path_LD
13115 if test -n "$LD"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13117 $as_echo "$LD" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13121 fi
13122 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13124 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13125 if ${lt_cv_prog_gnu_ld+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13129 case `$LD -v 2>&1 </dev/null` in
13130 *GNU* | *'with BFD'*)
13131 lt_cv_prog_gnu_ld=yes
13132 ;;
13133 *)
13134 lt_cv_prog_gnu_ld=no
13135 ;;
13136 esac
13137 fi
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13139 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13140 with_gnu_ld=$lt_cv_prog_gnu_ld
13141
13142
13143
13144
13145
13146
13147
13148 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13149 # archiving commands below assume that GNU ld is being used.
13150 if test yes = "$with_gnu_ld"; then
13151 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13152 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'
13153
13154 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13155 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13156
13157 # If archive_cmds runs LD, not CC, wlarc should be empty
13158 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13159 # investigate it a little bit more. (MM)
13160 wlarc='$wl'
13161
13162 # ancient GNU ld didn't support --whole-archive et. al.
13163 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13164 $GREP 'no-whole-archive' > /dev/null; then
13165 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13166 else
13167 whole_archive_flag_spec_CXX=
13168 fi
13169 else
13170 with_gnu_ld=no
13171 wlarc=
13172
13173 # A generic and very simple default shared library creation
13174 # command for GNU C++ for the case where it uses the native
13175 # linker, instead of GNU ld. If possible, this setting should
13176 # overridden to take advantage of the native linker features on
13177 # the platform it is being used on.
13178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13179 fi
13180
13181 # Commands to make compiler produce verbose output that lists
13182 # what "hidden" libraries, object files and flags are used when
13183 # linking a shared library.
13184 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13185
13186 else
13187 GXX=no
13188 with_gnu_ld=no
13189 wlarc=
13190 fi
13191
13192 # PORTME: fill in a description of your system's C++ link characteristics
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13194 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13195 ld_shlibs_CXX=yes
13196 case $host_os in
13197 aix3*)
13198 # FIXME: insert proper C++ library support
13199 ld_shlibs_CXX=no
13200 ;;
13201 aix[4-9]*)
13202 if test ia64 = "$host_cpu"; then
13203 # On IA64, the linker does run time linking by default, so we don't
13204 # have to do anything special.
13205 aix_use_runtimelinking=no
13206 exp_sym_flag='-Bexport'
13207 no_entry_flag=
13208 else
13209 aix_use_runtimelinking=no
13210
13211 # Test if we are trying to use run time linking or normal
13212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13213 # have runtime linking enabled, and use it for executables.
13214 # For shared libraries, we enable/disable runtime linking
13215 # depending on the kind of the shared library created -
13216 # when "with_aix_soname,aix_use_runtimelinking" is:
13217 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13218 # "aix,yes" lib.so shared, rtl:yes, for executables
13219 # lib.a static archive
13220 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13221 # lib.a(lib.so.V) shared, rtl:no, for executables
13222 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13223 # lib.a(lib.so.V) shared, rtl:no
13224 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13225 # lib.a static archive
13226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13227 for ld_flag in $LDFLAGS; do
13228 case $ld_flag in
13229 *-brtl*)
13230 aix_use_runtimelinking=yes
13231 break
13232 ;;
13233 esac
13234 done
13235 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13236 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13237 # so we don't have lib.a shared libs to link our executables.
13238 # We have to force runtime linking in this case.
13239 aix_use_runtimelinking=yes
13240 LDFLAGS="$LDFLAGS -Wl,-brtl"
13241 fi
13242 ;;
13243 esac
13244
13245 exp_sym_flag='-bexport'
13246 no_entry_flag='-bnoentry'
13247 fi
13248
13249 # When large executables or shared objects are built, AIX ld can
13250 # have problems creating the table of contents. If linking a library
13251 # or program results in "error TOC overflow" add -mminimal-toc to
13252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13254
13255 archive_cmds_CXX=''
13256 hardcode_direct_CXX=yes
13257 hardcode_direct_absolute_CXX=yes
13258 hardcode_libdir_separator_CXX=':'
13259 link_all_deplibs_CXX=yes
13260 file_list_spec_CXX='$wl-f,'
13261 case $with_aix_soname,$aix_use_runtimelinking in
13262 aix,*) ;; # no import file
13263 svr4,* | *,yes) # use import file
13264 # The Import File defines what to hardcode.
13265 hardcode_direct_CXX=no
13266 hardcode_direct_absolute_CXX=no
13267 ;;
13268 esac
13269
13270 if test yes = "$GXX"; then
13271 case $host_os in aix4.[012]|aix4.[012].*)
13272 # We only want to do this on AIX 4.2 and lower, the check
13273 # below for broken collect2 doesn't work under 4.3+
13274 collect2name=`$CC -print-prog-name=collect2`
13275 if test -f "$collect2name" &&
13276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13277 then
13278 # We have reworked collect2
13279 :
13280 else
13281 # We have old collect2
13282 hardcode_direct_CXX=unsupported
13283 # It fails to find uninstalled libraries when the uninstalled
13284 # path is not listed in the libpath. Setting hardcode_minus_L
13285 # to unsupported forces relinking
13286 hardcode_minus_L_CXX=yes
13287 hardcode_libdir_flag_spec_CXX='-L$libdir'
13288 hardcode_libdir_separator_CXX=
13289 fi
13290 esac
13291 shared_flag='-shared'
13292 if test yes = "$aix_use_runtimelinking"; then
13293 shared_flag=$shared_flag' $wl-G'
13294 fi
13295 # Need to ensure runtime linking is disabled for the traditional
13296 # shared library, or the linker may eventually find shared libraries
13297 # /with/ Import File - we do not want to mix them.
13298 shared_flag_aix='-shared'
13299 shared_flag_svr4='-shared $wl-G'
13300 else
13301 # not using gcc
13302 if test ia64 = "$host_cpu"; then
13303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13304 # chokes on -Wl,-G. The following line is correct:
13305 shared_flag='-G'
13306 else
13307 if test yes = "$aix_use_runtimelinking"; then
13308 shared_flag='$wl-G'
13309 else
13310 shared_flag='$wl-bM:SRE'
13311 fi
13312 shared_flag_aix='$wl-bM:SRE'
13313 shared_flag_svr4='$wl-G'
13314 fi
13315 fi
13316
13317 export_dynamic_flag_spec_CXX='$wl-bexpall'
13318 # It seems that -bexpall does not export symbols beginning with
13319 # underscore (_), so it is better to generate a list of symbols to
13320 # export.
13321 always_export_symbols_CXX=yes
13322 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13323 # Warning - without using the other runtime loading flags (-brtl),
13324 # -berok will link without error, but may produce a broken library.
13325 # The "-G" linker flag allows undefined symbols.
13326 no_undefined_flag_CXX='-bernotok'
13327 # Determine the default libpath from the value encoded in an empty
13328 # executable.
13329 if test set = "${lt_cv_aix_libpath+set}"; then
13330 aix_libpath=$lt_cv_aix_libpath
13331 else
13332 if ${lt_cv_aix_libpath__CXX+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337
13338 int
13339 main ()
13340 {
13341
13342 ;
13343 return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_cxx_try_link "$LINENO"; then :
13347
13348 lt_aix_libpath_sed='
13349 /Import File Strings/,/^$/ {
13350 /^0/ {
13351 s/^0 *\([^ ]*\) *$/\1/
13352 p
13353 }
13354 }'
13355 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13356 # Check for a 64-bit object if we didn't find anything.
13357 if test -z "$lt_cv_aix_libpath__CXX"; then
13358 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13359 fi
13360 fi
13361 rm -f core conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
13363 if test -z "$lt_cv_aix_libpath__CXX"; then
13364 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13365 fi
13366
13367 fi
13368
13369 aix_libpath=$lt_cv_aix_libpath__CXX
13370 fi
13371
13372 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13373
13374 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13375 else
13376 if test ia64 = "$host_cpu"; then
13377 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13378 allow_undefined_flag_CXX="-z nodefs"
13379 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13380 else
13381 # Determine the default libpath from the value encoded in an
13382 # empty executable.
13383 if test set = "${lt_cv_aix_libpath+set}"; then
13384 aix_libpath=$lt_cv_aix_libpath
13385 else
13386 if ${lt_cv_aix_libpath__CXX+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391
13392 int
13393 main ()
13394 {
13395
13396 ;
13397 return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_cxx_try_link "$LINENO"; then :
13401
13402 lt_aix_libpath_sed='
13403 /Import File Strings/,/^$/ {
13404 /^0/ {
13405 s/^0 *\([^ ]*\) *$/\1/
13406 p
13407 }
13408 }'
13409 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 # Check for a 64-bit object if we didn't find anything.
13411 if test -z "$lt_cv_aix_libpath__CXX"; then
13412 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13413 fi
13414 fi
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 if test -z "$lt_cv_aix_libpath__CXX"; then
13418 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13419 fi
13420
13421 fi
13422
13423 aix_libpath=$lt_cv_aix_libpath__CXX
13424 fi
13425
13426 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13427 # Warning - without using the other run time loading flags,
13428 # -berok will link without error, but may produce a broken library.
13429 no_undefined_flag_CXX=' $wl-bernotok'
13430 allow_undefined_flag_CXX=' $wl-berok'
13431 if test yes = "$with_gnu_ld"; then
13432 # We only use this code for GNU lds that support --whole-archive.
13433 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13434 else
13435 # Exported symbols can be pulled into shared objects from archives
13436 whole_archive_flag_spec_CXX='$convenience'
13437 fi
13438 archive_cmds_need_lc_CXX=yes
13439 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13440 # -brtl affects multiple linker settings, -berok does not and is overridden later
13441 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13442 if test svr4 != "$with_aix_soname"; then
13443 # This is similar to how AIX traditionally builds its shared
13444 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13445 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13446 fi
13447 if test aix != "$with_aix_soname"; then
13448 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13449 else
13450 # used by -dlpreopen to get the symbols
13451 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13452 fi
13453 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13454 fi
13455 fi
13456 ;;
13457
13458 beos*)
13459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13460 allow_undefined_flag_CXX=unsupported
13461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13462 # support --undefined. This deserves some investigation. FIXME
13463 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13464 else
13465 ld_shlibs_CXX=no
13466 fi
13467 ;;
13468
13469 chorus*)
13470 case $cc_basename in
13471 *)
13472 # FIXME: insert proper C++ library support
13473 ld_shlibs_CXX=no
13474 ;;
13475 esac
13476 ;;
13477
13478 cygwin* | mingw* | pw32* | cegcc*)
13479 case $GXX,$cc_basename in
13480 ,cl* | no,cl*)
13481 # Native MSVC
13482 # hardcode_libdir_flag_spec is actually meaningless, as there is
13483 # no search path for DLLs.
13484 hardcode_libdir_flag_spec_CXX=' '
13485 allow_undefined_flag_CXX=unsupported
13486 always_export_symbols_CXX=yes
13487 file_list_spec_CXX='@'
13488 # Tell ltmain to make .lib files, not .a files.
13489 libext=lib
13490 # Tell ltmain to make .dll files, not .so files.
13491 shrext_cmds=.dll
13492 # FIXME: Setting linknames here is a bad hack.
13493 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13494 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13495 cp "$export_symbols" "$output_objdir/$soname.def";
13496 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13497 else
13498 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13499 fi~
13500 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13501 linknames='
13502 # The linker will not automatically build a static lib if we build a DLL.
13503 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13504 enable_shared_with_static_runtimes_CXX=yes
13505 # Don't use ranlib
13506 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13507 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13508 lt_tool_outputfile="@TOOL_OUTPUT@"~
13509 case $lt_outputfile in
13510 *.exe|*.EXE) ;;
13511 *)
13512 lt_outputfile=$lt_outputfile.exe
13513 lt_tool_outputfile=$lt_tool_outputfile.exe
13514 ;;
13515 esac~
13516 func_to_tool_file "$lt_outputfile"~
13517 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13518 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13519 $RM "$lt_outputfile.manifest";
13520 fi'
13521 ;;
13522 *)
13523 # g++
13524 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13525 # as there is no search path for DLLs.
13526 hardcode_libdir_flag_spec_CXX='-L$libdir'
13527 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13528 allow_undefined_flag_CXX=unsupported
13529 always_export_symbols_CXX=no
13530 enable_shared_with_static_runtimes_CXX=yes
13531
13532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13533 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'
13534 # If the export-symbols file already is a .def file, use it as
13535 # is; otherwise, prepend EXPORTS...
13536 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13537 cp $export_symbols $output_objdir/$soname.def;
13538 else
13539 echo EXPORTS > $output_objdir/$soname.def;
13540 cat $export_symbols >> $output_objdir/$soname.def;
13541 fi~
13542 $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'
13543 else
13544 ld_shlibs_CXX=no
13545 fi
13546 ;;
13547 esac
13548 ;;
13549 darwin* | rhapsody*)
13550
13551
13552 archive_cmds_need_lc_CXX=no
13553 hardcode_direct_CXX=no
13554 hardcode_automatic_CXX=yes
13555 hardcode_shlibpath_var_CXX=unsupported
13556 if test yes = "$lt_cv_ld_force_load"; then
13557 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\"`'
13558
13559 else
13560 whole_archive_flag_spec_CXX=''
13561 fi
13562 link_all_deplibs_CXX=yes
13563 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13564 case $cc_basename in
13565 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13566 *) _lt_dar_can_shared=$GCC ;;
13567 esac
13568 if test yes = "$_lt_dar_can_shared"; then
13569 output_verbose_link_cmd=func_echo_all
13570 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"
13571 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13572 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"
13573 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13574 if test yes != "$lt_cv_apple_cc_single_mod"; then
13575 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13576 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13577 fi
13578
13579 else
13580 ld_shlibs_CXX=no
13581 fi
13582
13583 ;;
13584
13585 os2*)
13586 hardcode_libdir_flag_spec_CXX='-L$libdir'
13587 hardcode_minus_L_CXX=yes
13588 allow_undefined_flag_CXX=unsupported
13589 shrext_cmds=.dll
13590 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13591 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13592 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13593 $ECHO EXPORTS >> $output_objdir/$libname.def~
13594 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13595 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13596 emximp -o $lib $output_objdir/$libname.def'
13597 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13598 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13599 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13600 $ECHO EXPORTS >> $output_objdir/$libname.def~
13601 prefix_cmds="$SED"~
13602 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13603 prefix_cmds="$prefix_cmds -e 1d";
13604 fi~
13605 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13606 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13607 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13608 emximp -o $lib $output_objdir/$libname.def'
13609 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13610 enable_shared_with_static_runtimes_CXX=yes
13611 ;;
13612
13613 dgux*)
13614 case $cc_basename in
13615 ec++*)
13616 # FIXME: insert proper C++ library support
13617 ld_shlibs_CXX=no
13618 ;;
13619 ghcx*)
13620 # Green Hills C++ Compiler
13621 # FIXME: insert proper C++ library support
13622 ld_shlibs_CXX=no
13623 ;;
13624 *)
13625 # FIXME: insert proper C++ library support
13626 ld_shlibs_CXX=no
13627 ;;
13628 esac
13629 ;;
13630
13631 freebsd2.*)
13632 # C++ shared libraries reported to be fairly broken before
13633 # switch to ELF
13634 ld_shlibs_CXX=no
13635 ;;
13636
13637 freebsd-elf*)
13638 archive_cmds_need_lc_CXX=no
13639 ;;
13640
13641 freebsd* | dragonfly*)
13642 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13643 # conventions
13644 ld_shlibs_CXX=yes
13645 ;;
13646
13647 haiku*)
13648 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13649 link_all_deplibs_CXX=yes
13650 ;;
13651
13652 hpux9*)
13653 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13654 hardcode_libdir_separator_CXX=:
13655 export_dynamic_flag_spec_CXX='$wl-E'
13656 hardcode_direct_CXX=yes
13657 hardcode_minus_L_CXX=yes # Not in the search PATH,
13658 # but as the default
13659 # location of the library.
13660
13661 case $cc_basename in
13662 CC*)
13663 # FIXME: insert proper C++ library support
13664 ld_shlibs_CXX=no
13665 ;;
13666 aCC*)
13667 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13668 # Commands to make compiler produce verbose output that lists
13669 # what "hidden" libraries, object files and flags are used when
13670 # linking a shared library.
13671 #
13672 # There doesn't appear to be a way to prevent this compiler from
13673 # explicitly linking system object files so we need to strip them
13674 # from the output so that they don't get included in the library
13675 # dependencies.
13676 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"'
13677 ;;
13678 *)
13679 if test yes = "$GXX"; then
13680 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13681 else
13682 # FIXME: insert proper C++ library support
13683 ld_shlibs_CXX=no
13684 fi
13685 ;;
13686 esac
13687 ;;
13688
13689 hpux10*|hpux11*)
13690 if test no = "$with_gnu_ld"; then
13691 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13692 hardcode_libdir_separator_CXX=:
13693
13694 case $host_cpu in
13695 hppa*64*|ia64*)
13696 ;;
13697 *)
13698 export_dynamic_flag_spec_CXX='$wl-E'
13699 ;;
13700 esac
13701 fi
13702 case $host_cpu in
13703 hppa*64*|ia64*)
13704 hardcode_direct_CXX=no
13705 hardcode_shlibpath_var_CXX=no
13706 ;;
13707 *)
13708 hardcode_direct_CXX=yes
13709 hardcode_direct_absolute_CXX=yes
13710 hardcode_minus_L_CXX=yes # Not in the search PATH,
13711 # but as the default
13712 # location of the library.
13713 ;;
13714 esac
13715
13716 case $cc_basename in
13717 CC*)
13718 # FIXME: insert proper C++ library support
13719 ld_shlibs_CXX=no
13720 ;;
13721 aCC*)
13722 case $host_cpu in
13723 hppa*64*)
13724 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725 ;;
13726 ia64*)
13727 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13728 ;;
13729 *)
13730 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731 ;;
13732 esac
13733 # Commands to make compiler produce verbose output that lists
13734 # what "hidden" libraries, object files and flags are used when
13735 # linking a shared library.
13736 #
13737 # There doesn't appear to be a way to prevent this compiler from
13738 # explicitly linking system object files so we need to strip them
13739 # from the output so that they don't get included in the library
13740 # dependencies.
13741 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"'
13742 ;;
13743 *)
13744 if test yes = "$GXX"; then
13745 if test no = "$with_gnu_ld"; then
13746 case $host_cpu in
13747 hppa*64*)
13748 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13749 ;;
13750 ia64*)
13751 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13752 ;;
13753 *)
13754 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'
13755 ;;
13756 esac
13757 fi
13758 else
13759 # FIXME: insert proper C++ library support
13760 ld_shlibs_CXX=no
13761 fi
13762 ;;
13763 esac
13764 ;;
13765
13766 interix[3-9]*)
13767 hardcode_direct_CXX=no
13768 hardcode_shlibpath_var_CXX=no
13769 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13770 export_dynamic_flag_spec_CXX='$wl-E'
13771 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13772 # Instead, shared libraries are loaded at an image base (0x10000000 by
13773 # default) and relocated if they conflict, which is a slow very memory
13774 # consuming and fragmenting process. To avoid this, we pick a random,
13775 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13776 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13777 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13778 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13779 ;;
13780 irix5* | irix6*)
13781 case $cc_basename in
13782 CC*)
13783 # SGI C++
13784 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'
13785
13786 # Archives containing C++ object files must be created using
13787 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13788 # necessary to make sure instantiated templates are included
13789 # in the archive.
13790 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13791 ;;
13792 *)
13793 if test yes = "$GXX"; then
13794 if test no = "$with_gnu_ld"; then
13795 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'
13796 else
13797 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'
13798 fi
13799 fi
13800 link_all_deplibs_CXX=yes
13801 ;;
13802 esac
13803 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13804 hardcode_libdir_separator_CXX=:
13805 inherit_rpath_CXX=yes
13806 ;;
13807
13808 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13809 case $cc_basename in
13810 KCC*)
13811 # Kuck and Associates, Inc. (KAI) C++ Compiler
13812
13813 # KCC will only create a shared library if the output file
13814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13815 # to its proper name (with version) after linking.
13816 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13817 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
13818 # Commands to make compiler produce verbose output that lists
13819 # what "hidden" libraries, object files and flags are used when
13820 # linking a shared library.
13821 #
13822 # There doesn't appear to be a way to prevent this compiler from
13823 # explicitly linking system object files so we need to strip them
13824 # from the output so that they don't get included in the library
13825 # dependencies.
13826 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"'
13827
13828 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13829 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13830
13831 # Archives containing C++ object files must be created using
13832 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13833 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13834 ;;
13835 icpc* | ecpc* )
13836 # Intel C++
13837 with_gnu_ld=yes
13838 # version 8.0 and above of icpc choke on multiply defined symbols
13839 # if we add $predep_objects and $postdep_objects, however 7.1 and
13840 # earlier do not add the objects themselves.
13841 case `$CC -V 2>&1` in
13842 *"Version 7."*)
13843 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13844 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13845 ;;
13846 *) # Version 8.0 or newer
13847 tmp_idyn=
13848 case $host_cpu in
13849 ia64*) tmp_idyn=' -i_dynamic';;
13850 esac
13851 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13852 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13853 ;;
13854 esac
13855 archive_cmds_need_lc_CXX=no
13856 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13857 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13858 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13859 ;;
13860 pgCC* | pgcpp*)
13861 # Portland Group C++ compiler
13862 case `$CC -V` in
13863 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13864 prelink_cmds_CXX='tpldir=Template.dir~
13865 rm -rf $tpldir~
13866 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13867 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13868 old_archive_cmds_CXX='tpldir=Template.dir~
13869 rm -rf $tpldir~
13870 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13871 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13872 $RANLIB $oldlib'
13873 archive_cmds_CXX='tpldir=Template.dir~
13874 rm -rf $tpldir~
13875 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13876 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13877 archive_expsym_cmds_CXX='tpldir=Template.dir~
13878 rm -rf $tpldir~
13879 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13880 $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'
13881 ;;
13882 *) # Version 6 and above use weak symbols
13883 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13884 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'
13885 ;;
13886 esac
13887
13888 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13889 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13890 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'
13891 ;;
13892 cxx*)
13893 # Compaq C++
13894 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13895 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
13896
13897 runpath_var=LD_RUN_PATH
13898 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13899 hardcode_libdir_separator_CXX=:
13900
13901 # Commands to make compiler produce verbose output that lists
13902 # what "hidden" libraries, object files and flags are used when
13903 # linking a shared library.
13904 #
13905 # There doesn't appear to be a way to prevent this compiler from
13906 # explicitly linking system object files so we need to strip them
13907 # from the output so that they don't get included in the library
13908 # dependencies.
13909 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'
13910 ;;
13911 xl* | mpixl* | bgxl*)
13912 # IBM XL 8.0 on PPC, with GNU ld
13913 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13914 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13915 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13916 if test yes = "$supports_anon_versioning"; then
13917 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13918 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13919 echo "local: *; };" >> $output_objdir/$libname.ver~
13920 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13921 fi
13922 ;;
13923 *)
13924 case `$CC -V 2>&1 | sed 5q` in
13925 *Sun\ C*)
13926 # Sun C++ 5.9
13927 no_undefined_flag_CXX=' -zdefs'
13928 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13929 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'
13930 hardcode_libdir_flag_spec_CXX='-R$libdir'
13931 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'
13932 compiler_needs_object_CXX=yes
13933
13934 # Not sure whether something based on
13935 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13936 # would be better.
13937 output_verbose_link_cmd='func_echo_all'
13938
13939 # Archives containing C++ object files must be created using
13940 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13941 # necessary to make sure instantiated templates are included
13942 # in the archive.
13943 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13944 ;;
13945 esac
13946 ;;
13947 esac
13948 ;;
13949
13950 lynxos*)
13951 # FIXME: insert proper C++ library support
13952 ld_shlibs_CXX=no
13953 ;;
13954
13955 m88k*)
13956 # FIXME: insert proper C++ library support
13957 ld_shlibs_CXX=no
13958 ;;
13959
13960 mvs*)
13961 case $cc_basename in
13962 cxx*)
13963 # FIXME: insert proper C++ library support
13964 ld_shlibs_CXX=no
13965 ;;
13966 *)
13967 # FIXME: insert proper C++ library support
13968 ld_shlibs_CXX=no
13969 ;;
13970 esac
13971 ;;
13972
13973 netbsd*)
13974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13975 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13976 wlarc=
13977 hardcode_libdir_flag_spec_CXX='-R$libdir'
13978 hardcode_direct_CXX=yes
13979 hardcode_shlibpath_var_CXX=no
13980 fi
13981 # Workaround some broken pre-1.5 toolchains
13982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13983 ;;
13984
13985 *nto* | *qnx*)
13986 ld_shlibs_CXX=yes
13987 ;;
13988
13989 openbsd* | bitrig*)
13990 if test -f /usr/libexec/ld.so; then
13991 hardcode_direct_CXX=yes
13992 hardcode_shlibpath_var_CXX=no
13993 hardcode_direct_absolute_CXX=yes
13994 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13995 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13997 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13998 export_dynamic_flag_spec_CXX='$wl-E'
13999 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14000 fi
14001 output_verbose_link_cmd=func_echo_all
14002 else
14003 ld_shlibs_CXX=no
14004 fi
14005 ;;
14006
14007 osf3* | osf4* | osf5*)
14008 case $cc_basename in
14009 KCC*)
14010 # Kuck and Associates, Inc. (KAI) C++ Compiler
14011
14012 # KCC will only create a shared library if the output file
14013 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14014 # to its proper name (with version) after linking.
14015 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14016
14017 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14018 hardcode_libdir_separator_CXX=:
14019
14020 # Archives containing C++ object files must be created using
14021 # the KAI C++ compiler.
14022 case $host in
14023 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14024 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14025 esac
14026 ;;
14027 RCC*)
14028 # Rational C++ 2.4.1
14029 # FIXME: insert proper C++ library support
14030 ld_shlibs_CXX=no
14031 ;;
14032 cxx*)
14033 case $host in
14034 osf3*)
14035 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14036 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'
14037 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14038 ;;
14039 *)
14040 allow_undefined_flag_CXX=' -expect_unresolved \*'
14041 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'
14042 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14043 echo "-hidden">> $lib.exp~
14044 $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~
14045 $RM $lib.exp'
14046 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14047 ;;
14048 esac
14049
14050 hardcode_libdir_separator_CXX=:
14051
14052 # Commands to make compiler produce verbose output that lists
14053 # what "hidden" libraries, object files and flags are used when
14054 # linking a shared library.
14055 #
14056 # There doesn't appear to be a way to prevent this compiler from
14057 # explicitly linking system object files so we need to strip them
14058 # from the output so that they don't get included in the library
14059 # dependencies.
14060 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"'
14061 ;;
14062 *)
14063 if test yes,no = "$GXX,$with_gnu_ld"; then
14064 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14065 case $host in
14066 osf3*)
14067 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'
14068 ;;
14069 *)
14070 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'
14071 ;;
14072 esac
14073
14074 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14075 hardcode_libdir_separator_CXX=:
14076
14077 # Commands to make compiler produce verbose output that lists
14078 # what "hidden" libraries, object files and flags are used when
14079 # linking a shared library.
14080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14081
14082 else
14083 # FIXME: insert proper C++ library support
14084 ld_shlibs_CXX=no
14085 fi
14086 ;;
14087 esac
14088 ;;
14089
14090 psos*)
14091 # FIXME: insert proper C++ library support
14092 ld_shlibs_CXX=no
14093 ;;
14094
14095 sunos4*)
14096 case $cc_basename in
14097 CC*)
14098 # Sun C++ 4.x
14099 # FIXME: insert proper C++ library support
14100 ld_shlibs_CXX=no
14101 ;;
14102 lcc*)
14103 # Lucid
14104 # FIXME: insert proper C++ library support
14105 ld_shlibs_CXX=no
14106 ;;
14107 *)
14108 # FIXME: insert proper C++ library support
14109 ld_shlibs_CXX=no
14110 ;;
14111 esac
14112 ;;
14113
14114 solaris*)
14115 case $cc_basename in
14116 CC* | sunCC*)
14117 # Sun C++ 4.2, 5.x and Centerline C++
14118 archive_cmds_need_lc_CXX=yes
14119 no_undefined_flag_CXX=' -zdefs'
14120 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14121 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14122 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14123
14124 hardcode_libdir_flag_spec_CXX='-R$libdir'
14125 hardcode_shlibpath_var_CXX=no
14126 case $host_os in
14127 solaris2.[0-5] | solaris2.[0-5].*) ;;
14128 *)
14129 # The compiler driver will combine and reorder linker options,
14130 # but understands '-z linker_flag'.
14131 # Supported since Solaris 2.6 (maybe 2.5.1?)
14132 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14133 ;;
14134 esac
14135 link_all_deplibs_CXX=yes
14136
14137 output_verbose_link_cmd='func_echo_all'
14138
14139 # Archives containing C++ object files must be created using
14140 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14141 # necessary to make sure instantiated templates are included
14142 # in the archive.
14143 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14144 ;;
14145 gcx*)
14146 # Green Hills C++ Compiler
14147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14148
14149 # The C++ compiler must be used to create the archive.
14150 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14151 ;;
14152 *)
14153 # GNU C++ compiler with Solaris linker
14154 if test yes,no = "$GXX,$with_gnu_ld"; then
14155 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14156 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14157 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14158 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14159 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14160
14161 # Commands to make compiler produce verbose output that lists
14162 # what "hidden" libraries, object files and flags are used when
14163 # linking a shared library.
14164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14165 else
14166 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14167 # platform.
14168 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14169 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14170 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14171
14172 # Commands to make compiler produce verbose output that lists
14173 # what "hidden" libraries, object files and flags are used when
14174 # linking a shared library.
14175 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14176 fi
14177
14178 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14179 case $host_os in
14180 solaris2.[0-5] | solaris2.[0-5].*) ;;
14181 *)
14182 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14183 ;;
14184 esac
14185 fi
14186 ;;
14187 esac
14188 ;;
14189
14190 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14191 no_undefined_flag_CXX='$wl-z,text'
14192 archive_cmds_need_lc_CXX=no
14193 hardcode_shlibpath_var_CXX=no
14194 runpath_var='LD_RUN_PATH'
14195
14196 case $cc_basename in
14197 CC*)
14198 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14199 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14200 ;;
14201 *)
14202 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14204 ;;
14205 esac
14206 ;;
14207
14208 sysv5* | sco3.2v5* | sco5v6*)
14209 # Note: We CANNOT use -z defs as we might desire, because we do not
14210 # link with -lc, and that would cause any symbols used from libc to
14211 # always be unresolved, which means just about no library would
14212 # ever link correctly. If we're not using GNU ld we use -z text
14213 # though, which does catch some bad symbols but isn't as heavy-handed
14214 # as -z defs.
14215 no_undefined_flag_CXX='$wl-z,text'
14216 allow_undefined_flag_CXX='$wl-z,nodefs'
14217 archive_cmds_need_lc_CXX=no
14218 hardcode_shlibpath_var_CXX=no
14219 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14220 hardcode_libdir_separator_CXX=':'
14221 link_all_deplibs_CXX=yes
14222 export_dynamic_flag_spec_CXX='$wl-Bexport'
14223 runpath_var='LD_RUN_PATH'
14224
14225 case $cc_basename in
14226 CC*)
14227 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14228 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14229 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14230 '"$old_archive_cmds_CXX"
14231 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14232 '"$reload_cmds_CXX"
14233 ;;
14234 *)
14235 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14236 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 ;;
14238 esac
14239 ;;
14240
14241 tandem*)
14242 case $cc_basename in
14243 NCC*)
14244 # NonStop-UX NCC 3.20
14245 # FIXME: insert proper C++ library support
14246 ld_shlibs_CXX=no
14247 ;;
14248 *)
14249 # FIXME: insert proper C++ library support
14250 ld_shlibs_CXX=no
14251 ;;
14252 esac
14253 ;;
14254
14255 vxworks*)
14256 # FIXME: insert proper C++ library support
14257 ld_shlibs_CXX=no
14258 ;;
14259
14260 *)
14261 # FIXME: insert proper C++ library support
14262 ld_shlibs_CXX=no
14263 ;;
14264 esac
14265
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14267 $as_echo "$ld_shlibs_CXX" >&6; }
14268 test no = "$ld_shlibs_CXX" && can_build_shared=no
14269
14270 GCC_CXX=$GXX
14271 LD_CXX=$LD
14272
14273 ## CAVEAT EMPTOR:
14274 ## There is no encapsulation within the following macros, do not change
14275 ## the running order or otherwise move them around unless you know exactly
14276 ## what you are doing...
14277 # Dependencies to place before and after the object being linked:
14278 predep_objects_CXX=
14279 postdep_objects_CXX=
14280 predeps_CXX=
14281 postdeps_CXX=
14282 compiler_lib_search_path_CXX=
14283
14284 cat > conftest.$ac_ext <<_LT_EOF
14285 class Foo
14286 {
14287 public:
14288 Foo (void) { a = 0; }
14289 private:
14290 int a;
14291 };
14292 _LT_EOF
14293
14294
14295 _lt_libdeps_save_CFLAGS=$CFLAGS
14296 case "$CC $CFLAGS " in #(
14297 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14298 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14299 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14300 esac
14301
14302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14303 (eval $ac_compile) 2>&5
14304 ac_status=$?
14305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14306 test $ac_status = 0; }; then
14307 # Parse the compiler output and extract the necessary
14308 # objects, libraries and library flags.
14309
14310 # Sentinel used to keep track of whether or not we are before
14311 # the conftest object file.
14312 pre_test_object_deps_done=no
14313
14314 for p in `eval "$output_verbose_link_cmd"`; do
14315 case $prev$p in
14316
14317 -L* | -R* | -l*)
14318 # Some compilers place space between "-{L,R}" and the path.
14319 # Remove the space.
14320 if test x-L = "$p" ||
14321 test x-R = "$p"; then
14322 prev=$p
14323 continue
14324 fi
14325
14326 # Expand the sysroot to ease extracting the directories later.
14327 if test -z "$prev"; then
14328 case $p in
14329 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14330 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14331 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14332 esac
14333 fi
14334 case $p in
14335 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14336 esac
14337 if test no = "$pre_test_object_deps_done"; then