Codebase list libgeotiff / 59f1bdc
Merge tag 'upstream/1.4.1' Upstream version 1.4.1 Bas Couwenberg 9 years ago
34 changed file(s) with 11430 addition(s) and 6998 deletion(s). Raw diff Collapse all Expand all
0 ###############################################################################
1 #
2 # CMake main configuration file to build GeoTIFF library and utilities.
3 #
4 # Author: Mateusz Loskot <mateusz@loskot.net>
5 #
6 ###############################################################################
7 PROJECT(GeoTIFF)
8
9 SET(GEOTIFF_LIB_NAME geotiff)
10 SET(GEOTIFF_LIBRARY_TARGET geotiff_library)
11 SET(GEOTIFF_ARCHIVE_TARGET geotiff_archive)
12
13 ##############################################################################
14 # CMake settings
15 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
16
17 SET(CMAKE_COLOR_MAKEFILE ON)
18
19 # Allow advanced users to generate Makefiles printing detailed commands
20 MARK_AS_ADVANCED(CMAKE_VERBOSE_MAKEFILE)
21
22 # Path to additional CMake modules
23 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
24
25 ###############################################################################
26
27 ###
28 # Set up the version and configure a header file with the version in it.
29 ###
30 set (GeoTIFF_VERSION_MAJOR 2)
31 set (GeoTIFF_VERSION_MINOR 1)
32 set (GeoTIFF_VERSION_RELEASE 0)
33 set (GeoTIFF_VERSION ${GeoTIFF_VERSION_MAJOR}.${GeoTIFF_VERSION_MINOR}.${GeoTIFF_VERSION_RELEASE})
34
35 ###
36 # Currently commented out. Could add build data and svn revision in here:
37 # configure_file ( "${PROJECT_SOURCE_DIR}/geotiff_version.h.in"
38 # "${PROJECT_BINARY_DIR}/geotiff_version.h" )
39 ###
40
41
42 # General build settings
43
44 IF(NOT CMAKE_BUILD_TYPE)
45 SET(CMAKE_BUILD_TYPE Debug CACHE STRING
46 "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel"
47 FORCE)
48 ENDIF()
49
50 SET(GEOTIFF_BUILD_PEDANTIC FALSE CACHE BOOL "Choose compilation in pedantic or relaxed mode")
51 IF(CMAKE_BUILD_TYPE MATCHES Debug)
52 SET(GEOTIFF_BUILD_PEDANTIC TRUE)
53 ENDIF()
54
55 # TODO: Still testing the output paths --mloskot
56 SET(GEOTIFF_BUILD_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
57
58 # Output directory in which to build RUNTIME target files.
59 # SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${GEOTIFF_BUILD_OUTPUT_DIRECTORY})
60 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
61
62 # Output directory in which to build LIBRARY target files
63 # SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${GEOTIFF_BUILD_OUTPUT_DIRECTORY})
64 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
65
66 # Output directory in which to build ARCHIVE target files.
67 # SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${GEOTIFF_BUILD_OUTPUT_DIRECTORY})
68 SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
69
70 ###############################################################################
71 # Platform and compiler specific settings
72
73 IF(WIN32)
74 IF(MSVC)
75 ADD_DEFINITIONS(-DBUILD_AS_DLL=1)
76 ADD_DEFINITIONS(/DW4)
77
78 IF(MSVC80)
79 ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
80 ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_WARNING)
81 ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
82 ENDIF()
83 ENDIF(MSVC)
84 ENDIF()
85
86 IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
87 SET(COMPILE_FLAGS "-fPIC -Wall -Wno-long-long")
88 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_FLAGS} -std=c99")
89 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_FLAGS} -std=c++98")
90 IF(GEOTIFF_BUILD_PEDANTIC)
91 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic")
92 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic")
93 ENDIF()
94 ENDIF()
95
96 # Check required standard headers
97 INCLUDE(CheckIncludeFiles)
98 CHECK_INCLUDE_FILES(stdio.h HAVE_STDIO_H)
99 CHECK_INCLUDE_FILES(stdlib.h HAVE_STDLIB_H)
100 CHECK_INCLUDE_FILES(string.h HAVE_STRING_H)
101
102 ###############################################################################
103 # User-defined build settings
104
105 SET(GEOTIFF_CSV_NAMES area.csv codes.csv datum.csv gcs.csv pcs.csv)
106 FIND_PATH(GEOTIFF_CSV_DATA_DIR NAMES ${GEOTIFF_CSV_NAMES}
107 PATHS "${CMAKE_SOURCE_DIR}/csv"
108 DOC "Default location of GeoTIFF CSV files"
109 NO_DEFAULT_PATH)
110
111 IF(IS_DIRECTORY ${GEOTIFF_CSV_DATA_DIR} AND EXISTS "${GEOTIFF_CSV_DATA_DIR}/gcs.csv")
112 MESSAGE(STATUS "Found GeoTIFF CSV files in: ${GEOTIFF_CSV_DATA_DIR}")
113 ADD_DEFINITIONS(-DCSV_DATA_DIR="${GEOTIFF_CSV_DATA_DIR}")
114 ELSE()
115 MESSAGE(FATAL_ERROR "Failed to find GeoTIFF CSV files in: ${GEOTIFF_CSV_DATA_DIR}")
116 ENDIF()
117
118 # Has the user requested "incode" EPSG tables, overriding the default
119 # use of EPSG tables in csv files?
120 SET(GEOTIFF_ENABLE_INCODE_EPSG FALSE CACHE BOOL
121 "Choose if C code EPSG tables should be used")
122 MESSAGE(STATUS "Enable in-code GeoTIFF EPSG tables: ${GEOTIFF_ENABLE_INCODE_EPSG}")
123
124 SET(WITH_UTILITIES TRUE CACHE BOOL "Choose if GeoTIFF utilities should be built")
125
126 ###############################################################################
127 # Search for dependencies
128
129 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})
130 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/libxtiff)
131
132 # TIFF support - required, default=ON
133 SET(WITH_TIFF TRUE CACHE BOOL "Choose if TIFF support should be built")
134
135 IF(WITH_TIFF)
136 FIND_PACKAGE(TIFF REQUIRED)
137
138 IF(TIFF_FOUND)
139 # Confirm required API is available
140 INCLUDE(CheckFunctionExists)
141 SET(CMAKE_REQUIRED_LIBRARIES ${TIFF_LIBRARIES})
142
143 CHECK_FUNCTION_EXISTS(TIFFOpen HAVE_TIFFOPEN)
144 IF(NOT HAVE_TIFFOPEN)
145 SET(TIFF_FOUND) # ReSET to NOT found for TIFF library
146 MESSAGE(FATAL_ERROR "Failed to link with libtiff - TIFFOpen function not found")
147 ENDIF()
148
149 CHECK_FUNCTION_EXISTS(TIFFMergeFieldInfo HAVE_TIFFMERGEFIELDINFO)
150 IF(NOT HAVE_TIFFMERGEFIELDINFO)
151 SET(TIFF_FOUND) # ReSET to NOT found for TIFF library
152 MESSAGE(FATAL_ERROR "Failed to link with libtiff - TIFFMergeFieldInfo function not found. libtiff 3.6.0 Beta or later required. Please upgrade or use an older version of libgeotiff")
153 ENDIF()
154
155 INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR})
156 ADD_DEFINITIONS(-DHAVE_TIFF=1)
157 ENDIF(TIFF_FOUND)
158 ENDIF(WITH_TIFF)
159
160 # PROJ.4 support - optional, default=ON
161 SET(WITH_PROJ4 TRUE CACHE BOOL "Choose if PROJ.4 support should be built")
162
163 IF(WITH_PROJ4)
164 FIND_PACKAGE(PROJ4)
165
166 IF(PROJ4_FOUND)
167 ADD_DEFINITIONS(-DHAVE_LIBPROJ=1)
168 INCLUDE_DIRECTORIES(${PROJ4_INCLUDE_DIR})
169
170 IF(EXISTS "${PROJ4_INCLUDE_DIR}/projects.h")
171 MESSAGE(STATUS "Looking for projects.h header from PROJ.4 library - found")
172 ADD_DEFINITIONS(-DHAVE_PROJECTS_H=1)
173 INCLUDE_DIRECTORIES(${PROJ4_INCLUDE_DIR_2})
174 ELSE()
175 MESSAGE(FATAL_ERROR "Looking for projects.h from PROJ.4 library - not found")
176 ENDIF()
177 ENDIF()
178 ENDIF()
179
180 # Zlib support - optional, default=OFF
181 SET(WITH_ZLIB FALSE CACHE BOOL "Choose if zlib support should be built")
182
183 IF(WITH_ZLIB)
184 FIND_PACKAGE(ZLIB)
185
186 IF(ZLIB_FOUND)
187 SET(HAVE_ZIP 1)
188 INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
189 ADD_DEFINITIONS(-DHAVE_ZIP=${HAVE_ZIP})
190 ENDIF()
191 ENDIF()
192
193 # JPEG support - optional, default=OFF
194 SET(WITH_JPEG FALSE CACHE BOOL "Choose if JPEG support should be built")
195
196 IF(WITH_JPEG)
197 FIND_PACKAGE(JPEG)
198
199 IF(JPEG_FOUND)
200 SET(HAVE_JPEG 1)
201 INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
202 ADD_DEFINITIONS(-DHAVE_JPEG=${HAVE_JPEG})
203 ENDIF()
204 ENDIF()
205
206 ###############################################################################
207 # Generate geo_config.h with compile-time configuration
208
209 MESSAGE(STATUS "Generating geo_config.h header")
210
211 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/geo_config.h.in
212 ${CMAKE_CURRENT_SOURCE_DIR}/geo_config.h)
213
214 MESSAGE(STATUS "Generating geo_config.h header - done")
215
216
217 ###############################################################################
218 # Installation settings
219
220 SET(GEOTIFF_CSV_DATA
221 csv/alias.csv
222 csv/area.csv
223 csv/change.csv
224 csv/compdcs.csv
225 csv/coordinate_axis.csv
226 csv/coordinate_axis_name.csv
227 csv/coordinate_operation.csv
228 csv/coordinate_operation_method.csv
229 csv/coordinate_operation_parameter.csv
230 csv/coordinate_operation_parameter_value.csv
231 csv/coordinate_operation_path.csv
232 csv/coordinate_reference_system.csv
233 csv/coordinate_system.csv
234 csv/datum.csv
235 csv/datum_shift.csv
236 csv/datum_shift_pref.csv
237 csv/deprecation.csv
238 csv/ellipsoid.csv
239 csv/esri_datum_override.csv
240 csv/gcs.csv
241 csv/gcs.override.csv
242 csv/geoccs.csv
243 csv/naming_system.csv
244 csv/pcs.csv
245 csv/pcs.override.csv
246 csv/prime_meridian.csv
247 csv/projop_wparm.csv
248 csv/stateplane.csv
249 csv/supersession.csv
250 csv/unit_of_measure.csv
251 csv/version_history.csv
252 csv/vertcs.csv
253 csv/vertcs.override.csv )
254
255 SET(GEOTIFF_LIB_HEADERS
256 geotiff.h
257 geotiffio.h
258 geovalues.h
259 geonames.h
260 geokeys.h
261 geo_config.h
262 geo_tiffp.h
263 geo_keyp.h
264 geo_normalize.h
265 cpl_serv.h
266 geo_simpletags.h
267 epsg_datum.inc
268 epsg_gcs.inc
269 epsg_pm.inc
270 epsg_units.inc
271 geo_ctrans.inc
272 epsg_ellipse.inc
273 epsg_pcs.inc
274 epsg_proj.inc
275 epsg_vertcs.inc
276 geokeys.inc
277 libxtiff/xtiffio.h)
278
279 # ${PROJECT_BINARY_DIR}/geotiff_version.h
280
281 IF(WIN32)
282 SET(DEFAULT_LIB_SUBDIR lib)
283 SET(DEFAULT_DATA_SUBDIR .)
284 SET(DEFAULT_INCLUDE_SUBDIR include)
285
286 IF(MSVC)
287 SET(DEFAULT_BIN_SUBDIR bin)
288 ELSE()
289 SET(DEFAULT_BIN_SUBDIR .)
290 ENDIF()
291 ELSE()
292 # Common locatoins for Unix and Mac OS X
293 SET(DEFAULT_BIN_SUBDIR bin)
294 SET(DEFAULT_LIB_SUBDIR lib)
295 SET(DEFAULT_DATA_SUBDIR share)
296 SET(DEFAULT_INCLUDE_SUBDIR include)
297 ENDIF()
298
299 # Locations are changeable by user to customize layout of GeoTIFF installation
300 # (default values are platform-specIFic)
301 SET(GEOTIFF_BIN_SUBDIR ${DEFAULT_BIN_SUBDIR} CACHE STRING
302 "Subdirectory where executables will be installed")
303 SET(GEOTIFF_LIB_SUBDIR ${DEFAULT_LIB_SUBDIR} CACHE STRING
304 "Subdirectory where libraries will be installed")
305 SET(GEOTIFF_INCLUDE_SUBDIR ${DEFAULT_INCLUDE_SUBDIR} CACHE STRING
306 "Subdirectory where header files will be installed")
307 SET(GEOTIFF_DATA_SUBDIR ${DEFAULT_DATA_SUBDIR} CACHE STRING
308 "Subdirectory where data will be installed")
309
310 # Mark *_SUBDIR variables as advanced and dedicated to use by power-users only.
311 MARK_AS_ADVANCED(GEOTIFF_BIN_SUBDIR GEOTIFF_LIB_SUBDIR GEOTIFF_INCLUDE_SUBDIR GEOTIFF_DATA_SUBDIR)
312
313 # Full paths for the installation
314 SET(GEOTIFF_BIN_DIR ${GEOTIFF_BIN_SUBDIR})
315 SET(GEOTIFF_LIB_DIR ${GEOTIFF_LIB_SUBDIR})
316 SET(GEOTIFF_INCLUDE_DIR ${GEOTIFF_INCLUDE_SUBDIR})
317 SET(GEOTIFF_DATA_DIR ${GEOTIFF_DATA_SUBDIR})
318
319 # Install doc files
320 INSTALL(FILES
321 AUTHORS ChangeLog COPYING INSTALL LICENSE README README_BIN README.WIN
322 DESTINATION doc)
323 # DESTINATION ${GEOTIFF_DATA_DIR}/doc)
324
325 # Install CSV data files
326 # INSTALL(FILES ${GEOTIFF_CSV_DATA} DESTINATION ${GEOTIFF_DATA_DIR}/epsg_csv)
327 INSTALL(FILES ${GEOTIFF_CSV_DATA} DESTINATION share/epsg_csv)
328
329 # Install header files for development distribution
330 # INSTALL(FILES ${GEOTIFF_LIB_HEADERS} DESTINATION ${GEOTIFF_INCLUDE_DIR})
331 INSTALL(FILES ${GEOTIFF_LIB_HEADERS} DESTINATION include)
332
333 ###############################################################################
334 # Build libxtiff library
335
336 ADD_SUBDIRECTORY(libxtiff)
337
338 ###############################################################################
339 # Build libgeotiff library
340
341 SET(GEOTIFF_LIB_SOURCES
342 cpl_serv.c
343 cpl_csv.c
344 geo_extra.c
345 geo_free.c
346 geo_get.c
347 geo_names.c
348 geo_new.c
349 geo_normalize.c
350 geo_print.c
351 geo_set.c
352 geo_simpletags.c
353 geo_tiffp.c
354 geo_trans.c
355 geo_write.c
356 geotiff_proj4.c)
357
358 IF (GEOTIFF_ENABLE_INCODE_EPSG)
359 SET(GEOTIFF_LIB_CSV_SOURCES
360 csv/datum.c
361 csv/ellipsoid.c
362 csv/gcs.c
363 csv/pcs.c
364 csv/prime_meridian.c
365 csv/projop_wparm.c
366 csv/unit_of_measure.c)
367 SOURCE_GROUP("CSV Source Files" FILES ${GEOTIFF_LIB_CSV_SOURCES})
368 ENDIF(GEOTIFF_ENABLE_INCODE_EPSG)
369
370 SET(XTIFF_SOURCES libxtiff/xtiff.c)
371
372 #---
373 # Static libgeotiff archive
374 # NOTE: Did not put XTIFF_SOURCES in static lib because libxtiff.a is written out
375 # currently.
376 #---
377 ADD_LIBRARY(${GEOTIFF_ARCHIVE_TARGET} STATIC
378 ${GEOTIFF_LIB_SOURCES} ${GEOTIFF_LIB_CSV_SOURCES})
379 SET_TARGET_PROPERTIES(${GEOTIFF_ARCHIVE_TARGET} PROPERTIES
380 OUTPUT_NAME ${GEOTIFF_LIB_NAME})
381
382 # Shared libgeotiff library
383 ADD_LIBRARY(${GEOTIFF_LIBRARY_TARGET} SHARED
384 ${GEOTIFF_LIB_SOURCES} ${GEOTIFF_LIB_CSV_SOURCES} ${XTIFF_SOURCES})
385
386 # Windows:
387 IF(WIN32 AND MSVC)
388 SET_TARGET_PROPERTIES(${GEOTIFF_LIBRARY_TARGET} PROPERTIES IMPORT_SUFFIX "_i.lib")
389 ENDIF(WIN32 AND MSVC)
390
391
392 # Unix, linux:
393 IF(UNIX)
394 IF(NOT LINK_SOVERSION)
395 set(LINK_SOVERSION "${GeoTIFF_VERSION_MAJOR}")
396 ENDIF(NOT LINK_SOVERSION)
397 IF(NOT LINK_VERSION)
398 set(LINK_VERSION "${GeoTIFF_VERSION}")
399 ENDIF(NOT LINK_VERSION)
400 SET_TARGET_PROPERTIES(
401 ${GEOTIFF_LIBRARY_TARGET}
402 PROPERTIES
403 OUTPUT_NAME ${GEOTIFF_LIB_NAME}
404 VERSION ${LINK_VERSION}
405 SOVERSION ${LINK_SOVERSION}
406 CLEAN_DIRECT_OUTPUT 1 )
407 if (APPLE)
408 set_target_properties(
409 ${GEOTIFF_LIBRARY_TARGET}
410 PROPERTIES
411 INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
412 endif()
413
414 ELSE(UNIX)
415 # Default:
416 SET_TARGET_PROPERTIES(${GEOTIFF_LIBRARY_TARGET} PROPERTIES
417 OUTPUT_NAME ${GEOTIFF_LIB_NAME})
418 ENDIF(UNIX)
419
420 SET_TARGET_PROPERTIES(${GEOTIFF_LIBRARY_TARGET} PROPERTIES
421 OUTPUT_NAME ${GEOTIFF_LIB_NAME})
422
423 TARGET_LINK_LIBRARIES(${GEOTIFF_LIBRARY_TARGET}
424 ${TIFF_LIBRARIES}
425 ${PROJ4_LIBRARIES}
426 ${ZLIB_LIBRARIES}
427 ${JPEG_LIBRARIES})
428
429 # INSTALL(TARGETS ${GEOTIFF_ARCHIVE_TARGET} ${GEOTIFF_LIBRARY_TARGET}
430 # RUNTIME DESTINATION ${GEOTIFF_BIN_DIR}
431 # LIBRARY DESTINATION ${GEOTIFF_LIB_DIR}
432 # ARCHIVE DESTINATION ${GEOTIFF_LIB_DIR})
433
434 INSTALL( TARGETS ${GEOTIFF_ARCHIVE_TARGET} ${GEOTIFF_LIBRARY_TARGET}
435 RUNTIME DESTINATION bin
436 LIBRARY DESTINATION lib
437 ARCHIVE DESTINATION lib )
438
439 # Define grouping of source files in PROJECT file (e.g. Visual Studio)
440 SOURCE_GROUP("CMake Files" FILES CMakeLists.txt)
441 SOURCE_GROUP("Header Files" FILES ${GEOTIFF_LIB_HEADERS})
442 SOURCE_GROUP("Source Files" FILES ${GEOTIFF_LIB_SOURCES})
443
444 ###############################################################################
445 # Build GeoTIFF utilities
446
447 IF(WITH_UTILITIES)
448 ADD_SUBDIRECTORY(bin)
449 ENDIF()
0 ###############################################################################
1 #
2 # CMake main configuration file to build GeoTIFF library and utilities.
3 #
4 # Author: Mateusz Loskot <mateusz@loskot.net>
5 #
6 ###############################################################################
7 PROJECT(GeoTIFF)
8
9 SET(GEOTIFF_LIB_NAME geotiff)
10 SET(GEOTIFF_LIBRARY_TARGET geotiff_library)
11 SET(GEOTIFF_ARCHIVE_TARGET geotiff_archive)
12
13 ##############################################################################
14 # CMake settings
15 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
16
17 SET(CMAKE_COLOR_MAKEFILE ON)
18
19 # Version information
20 set(PROJECT_VERSION_MAJOR 1)
21 set(PROJECT_VERSION_MINOR 4)
22 set(PROJECT_VERSION_PATCH 1)
23 set(PROJECT_VERSION
24 "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
25 set(GeoTIFF_VERSION ${PROJECT_VERSION})
26
27 # Set library version to match that of autoconf:
28 # libgeotiff.so -> libgeotiff.so.2.1.1
29 # libgeotiff.so.2 -> libgeotiff.so.2.1.1
30 # libgeotiff.so.2.1.1
31 set(LINK_SOVERSION "2")
32 set(LINK_VERSION "2.1.1")
33
34 string (TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
35 string (TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER)
36
37 # Allow advanced users to generate Makefiles printing detailed commands
38 MARK_AS_ADVANCED(CMAKE_VERBOSE_MAKEFILE)
39
40 # Path to additional CMake modules
41 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
42
43 ###############################################################################
44 # General build settings
45
46 IF(NOT CMAKE_BUILD_TYPE)
47 SET(CMAKE_BUILD_TYPE Debug CACHE STRING
48 "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel"
49 FORCE)
50 ENDIF()
51
52 SET(GEOTIFF_BUILD_PEDANTIC FALSE CACHE BOOL "Choose compilation in pedantic or relaxed mode")
53 IF(CMAKE_BUILD_TYPE MATCHES Debug)
54 SET(GEOTIFF_BUILD_PEDANTIC TRUE)
55 ENDIF()
56
57 if (CMAKE_MAJOR_VERSION GREATER 2)
58 cmake_policy(SET CMP0022 OLD) # interface link libraries
59 cmake_policy(SET CMP0042 OLD) # osx rpath
60 endif()
61
62
63 # TODO: Still testing the output paths --mloskot
64 SET(GEOTIFF_BUILD_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
65
66 # Output directory in which to build RUNTIME target files.
67 # SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${GEOTIFF_BUILD_OUTPUT_DIRECTORY})
68 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
69
70 # Output directory in which to build LIBRARY target files
71 # SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${GEOTIFF_BUILD_OUTPUT_DIRECTORY})
72 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
73
74 # Output directory in which to build ARCHIVE target files.
75 # SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${GEOTIFF_BUILD_OUTPUT_DIRECTORY})
76 SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
77
78 ###############################################################################
79 # Platform and compiler specific settings
80
81 IF(WIN32)
82 IF(MSVC)
83 ADD_DEFINITIONS(-DBUILD_AS_DLL=1)
84 ADD_DEFINITIONS(/DW4)
85 if (NOT (MSVC_VERSION VERSION_LESS 1400))
86 ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
87 ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
88 ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_WARNING)
89 ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
90 endif()
91 ENDIF(MSVC)
92 ENDIF()
93
94 IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
95 SET(COMPILE_FLAGS "-fPIC -Wall -Wno-long-long")
96 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_FLAGS} -std=c99")
97 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_FLAGS} -std=c++98")
98 IF(GEOTIFF_BUILD_PEDANTIC)
99 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic")
100 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic")
101 ENDIF()
102 ENDIF()
103
104 # Check required standard headers
105 INCLUDE(CheckIncludeFiles)
106 CHECK_INCLUDE_FILES(stdio.h HAVE_STDIO_H)
107 CHECK_INCLUDE_FILES(stdlib.h HAVE_STDLIB_H)
108 CHECK_INCLUDE_FILES(string.h HAVE_STRING_H)
109
110 ###############################################################################
111 # User-defined build settings
112
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
126 SET(WITH_UTILITIES TRUE CACHE BOOL "Choose if GeoTIFF utilities should be built")
127
128 ###############################################################################
129 # Search for dependencies
130
131 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})
132 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/libxtiff)
133
134 # TIFF support - required, default=ON
135 SET(WITH_TIFF TRUE CACHE BOOL "Choose if TIFF support should be built")
136
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()
150 ENDIF()
151
152 # Zlib support - optional, default=OFF
153 SET(WITH_ZLIB FALSE CACHE BOOL "Choose if zlib support should be built")
154
155 IF(WITH_ZLIB)
156 FIND_PACKAGE(ZLIB NO_MODULE QUIET)
157 if (NOT ZLIB_FOUND)
158 FIND_PACKAGE(ZLIB)
159 endif ()
160
161 IF(ZLIB_FOUND)
162 SET(HAVE_ZIP 1)
163 INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
164 ADD_DEFINITIONS(-DHAVE_ZIP=${HAVE_ZIP})
165 ENDIF()
166 ENDIF()
167
168 # JPEG support - optional, default=OFF
169 SET(WITH_JPEG FALSE CACHE BOOL "Choose if JPEG support should be built")
170
171 IF(WITH_JPEG)
172 FIND_PACKAGE(JPEG NO_MODULE QUIET)
173 if (NOT JPEG_FOUND)
174 FIND_PACKAGE(JPEG)
175 endif ()
176
177 IF(JPEG_FOUND)
178 SET(HAVE_JPEG 1)
179 INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
180 ADD_DEFINITIONS(-DHAVE_JPEG=${HAVE_JPEG})
181 ENDIF()
182 ENDIF()
183
184 IF(WITH_TIFF)
185 FIND_PACKAGE(TIFF NO_MODULE QUIET)
186 if (NOT TIFF_FOUND)
187 FIND_PACKAGE(TIFF REQUIRED)
188 endif ()
189
190 IF(TIFF_FOUND)
191 # Confirm required API is available
192 INCLUDE(CheckFunctionExists)
193 SET(CMAKE_REQUIRED_LIBRARIES ${TIFF_LIBRARIES})
194
195 CHECK_FUNCTION_EXISTS(TIFFOpen HAVE_TIFFOPEN)
196 IF(NOT HAVE_TIFFOPEN)
197 SET(TIFF_FOUND) # ReSET to NOT found for TIFF library
198 MESSAGE(FATAL_ERROR "Failed to link with libtiff - TIFFOpen function not found")
199 ENDIF()
200
201 CHECK_FUNCTION_EXISTS(TIFFMergeFieldInfo HAVE_TIFFMERGEFIELDINFO)
202 IF(NOT HAVE_TIFFMERGEFIELDINFO)
203 SET(TIFF_FOUND) # ReSET to NOT found for TIFF library
204 MESSAGE(FATAL_ERROR "Failed to link with libtiff - TIFFMergeFieldInfo function not found. libtiff 3.6.0 Beta or later required. Please upgrade or use an older version of libgeotiff")
205 ENDIF()
206
207 INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR})
208 ADD_DEFINITIONS(-DHAVE_TIFF=1)
209 ENDIF(TIFF_FOUND)
210 ENDIF(WITH_TIFF)
211
212 # Turn off TOWGS84 support
213 SET(WITH_TOWGS84 TRUE CACHE BOOL "Build with TOWGS84 support")
214 IF (NOT WITH_TOWGS84)
215 SET(GEO_NORMALIZE_DISABLE_TOWGS84 1)
216 endif()
217
218 ###############################################################################
219 # Generate geo_config.h with compile-time configuration
220
221 MESSAGE(STATUS "Generating geo_config.h header")
222
223 CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/cmake/geo_config.h.in
224 geo_config.h)
225 INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
226
227 MESSAGE(STATUS "Generating geo_config.h header - done")
228
229
230 ###############################################################################
231 # 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 )
267
268 SET(GEOTIFF_LIB_HEADERS
269 geotiff.h
270 geotiffio.h
271 geovalues.h
272 geonames.h
273 geokeys.h
274 ${CMAKE_CURRENT_BINARY_DIR}/geo_config.h
275 geo_tiffp.h
276 geo_keyp.h
277 geo_normalize.h
278 cpl_serv.h
279 geo_simpletags.h
280 epsg_datum.inc
281 epsg_gcs.inc
282 epsg_pm.inc
283 epsg_units.inc
284 geo_ctrans.inc
285 epsg_ellipse.inc
286 epsg_pcs.inc
287 epsg_proj.inc
288 epsg_vertcs.inc
289 geokeys.inc
290 libxtiff/xtiffio.h)
291
292 # ${PROJECT_BINARY_DIR}/geotiff_version.h
293
294 IF(WIN32)
295 SET(DEFAULT_LIB_SUBDIR lib)
296 SET(DEFAULT_DATA_SUBDIR .)
297 SET(DEFAULT_INCLUDE_SUBDIR include)
298
299 IF(MSVC)
300 SET(DEFAULT_BIN_SUBDIR bin)
301 ELSE()
302 SET(DEFAULT_BIN_SUBDIR .)
303 ENDIF()
304 ELSE()
305 # Common locatoins for Unix and Mac OS X
306 SET(DEFAULT_BIN_SUBDIR bin)
307 SET(DEFAULT_LIB_SUBDIR lib)
308 SET(DEFAULT_DATA_SUBDIR share)
309 SET(DEFAULT_INCLUDE_SUBDIR include)
310 ENDIF()
311
312 # Locations are changeable by user to customize layout of GeoTIFF installation
313 # (default values are platform-specIFic)
314 SET(GEOTIFF_BIN_SUBDIR ${DEFAULT_BIN_SUBDIR} CACHE STRING
315 "Subdirectory where executables will be installed")
316 SET(GEOTIFF_LIB_SUBDIR ${DEFAULT_LIB_SUBDIR} CACHE STRING
317 "Subdirectory where libraries will be installed")
318 SET(GEOTIFF_INCLUDE_SUBDIR ${DEFAULT_INCLUDE_SUBDIR} CACHE STRING
319 "Subdirectory where header files will be installed")
320 SET(GEOTIFF_DATA_SUBDIR ${DEFAULT_DATA_SUBDIR} CACHE STRING
321 "Subdirectory where data will be installed")
322
323 # Mark *_SUBDIR variables as advanced and dedicated to use by power-users only.
324 MARK_AS_ADVANCED(GEOTIFF_BIN_SUBDIR GEOTIFF_LIB_SUBDIR GEOTIFF_INCLUDE_SUBDIR GEOTIFF_DATA_SUBDIR)
325
326 # Full paths for the installation
327 SET(GEOTIFF_BIN_DIR ${GEOTIFF_BIN_SUBDIR})
328 SET(GEOTIFF_LIB_DIR ${GEOTIFF_LIB_SUBDIR})
329 SET(GEOTIFF_INCLUDE_DIR ${GEOTIFF_INCLUDE_SUBDIR})
330 SET(GEOTIFF_DATA_DIR ${GEOTIFF_DATA_SUBDIR})
331
332 # Install doc files
333 INSTALL(FILES
334 AUTHORS ChangeLog COPYING INSTALL LICENSE README README_BIN README.WIN
335 DESTINATION doc)
336 # DESTINATION ${GEOTIFF_DATA_DIR}/doc)
337
338 # Install CSV data files
339 # INSTALL(FILES ${GEOTIFF_CSV_DATA} DESTINATION ${GEOTIFF_DATA_DIR}/epsg_csv)
340 INSTALL(FILES ${GEOTIFF_CSV_DATA} DESTINATION share/epsg_csv)
341
342 # Install header files for development distribution
343 # INSTALL(FILES ${GEOTIFF_LIB_HEADERS} DESTINATION ${GEOTIFF_INCLUDE_DIR})
344 INSTALL(FILES ${GEOTIFF_LIB_HEADERS} DESTINATION include)
345
346 ###############################################################################
347 # Build libxtiff library
348
349 ADD_SUBDIRECTORY(libxtiff)
350
351 ###############################################################################
352 # Build libgeotiff library
353
354 SET(GEOTIFF_LIB_SOURCES
355 cpl_serv.c
356 cpl_csv.c
357 geo_extra.c
358 geo_free.c
359 geo_get.c
360 geo_names.c
361 geo_new.c
362 geo_normalize.c
363 geo_print.c
364 geo_set.c
365 geo_simpletags.c
366 geo_tiffp.c
367 geo_trans.c
368 geo_write.c
369 geotiff_proj4.c)
370
371 SET(INCODE_EPSG_FROM_CSV FALSE CACHE BOOL "Build source-encoded EPSG data files")
372
373 FOREACH(epsg_csv_file ${GEOTIFF_CSV_DATA})
374 # We cannot use NAME_WE without string-replace, because that would
375 # give "gcs.csv" and "gcs.override.csv" the same epsg_csv_name
376 GET_FILENAME_COMPONENT(epsg_csv_name "${epsg_csv_file}" NAME)
377 STRING(REPLACE ".csv" "" epsg_csv_basename "${epsg_csv_name}")
378 # SET(INCODE_EPSG_FROM_CSV_${epsg_csv_basename} FALSE CACHE BOOL "Build ${epsg_csv_basename} file target")
379
380 # IF(INCODE_EPSG_FROM_CSV_${epsg_csv_basename})
381 if( INCODE_EPSG_FROM_CSV)
382 SET(epsg_source_name "${CMAKE_CURRENT_BINARY_DIR}/incode_epsg_${epsg_csv_basename}.c")
383 LIST(APPEND GEOTIFF_LIB_CSV_SOURCES "${epsg_source_name}")
384
385 # sanitize .'s out of struct names
386 STRING(REGEX REPLACE "\\." "_" STRUCT_NAME ${epsg_csv_basename})
387 LIST(APPEND epsg_includefile_externconst "\nextern const datafile_rows_t *${STRUCT_NAME}_rows[]")
388 LIST(APPEND epsg_includefile_pointer_list " { \"${STRUCT_NAME}\", ${STRUCT_NAME}_rows },")
389 MESSAGE(STATUS "Creating buildrule to convert ${epsg_csv_basename}.csv to ${epsg_csv_basename}.c and include it in code.")
390 ADD_CUSTOM_COMMAND(OUTPUT "${epsg_source_name}"
391 COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/csv/csv2c.py" "${CMAKE_CURRENT_SOURCE_DIR}/${epsg_csv_file}" "${epsg_source_name}"
392 DEPENDS "${epsg_csv_file}"
393 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
394 VERBATIM)
395 ENDIF()
396 ENDFOREACH()
397
398 SET(EPSG_INCODE_EXPLANATION
399 "This file is autogenerated by CMake, based on the INCODE_EPSG_* options specified during configure.\n
400 Choosing an EPSG CSV file for inclusion into code will run csv/csv2c.py on the file and include the\n
401 resulting c-source as a build target, as opposed to using GDAL_DATA-dir to find the EPSG codes at runtime.")
402 STRING(REPLACE ";" "\n" EPSG_INCLUDEFILE_POINTER_STRING "${epsg_includefile_pointer_list}")
403 FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/epsg_incode_header.h"
404 "/* ${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 }};")
405
406 SET(XTIFF_SOURCES libxtiff/xtiff.c)
407
408 #---
409 # Static libgeotiff archive
410 # NOTE: Did not put XTIFF_SOURCES in static lib because libxtiff.a is written out
411 # currently.
412 #---
413 if (MSVC OR CMAKE_CONFIGURATION_TYPES)
414 # For multi-config systems and for Visual Studio, the debug versions
415 # of the libraries have a _d suffix.
416 set (CMAKE_DEBUG_POSTFIX _d)
417 endif ()
418
419 ADD_LIBRARY(${GEOTIFF_ARCHIVE_TARGET} STATIC
420 ${GEOTIFF_LIB_SOURCES} ${GEOTIFF_LIB_CSV_SOURCES})
421 SET_TARGET_PROPERTIES(${GEOTIFF_ARCHIVE_TARGET} PROPERTIES
422 OUTPUT_NAME ${GEOTIFF_LIB_NAME})
423
424 # Shared libgeotiff library
425 ADD_LIBRARY(${GEOTIFF_LIBRARY_TARGET} SHARED
426 ${GEOTIFF_LIB_SOURCES} ${GEOTIFF_LIB_CSV_SOURCES} ${XTIFF_SOURCES})
427
428 # Windows:
429 IF(WIN32 AND MSVC)
430 SET_TARGET_PROPERTIES(${GEOTIFF_LIBRARY_TARGET} PROPERTIES IMPORT_SUFFIX "_i.lib")
431 ENDIF(WIN32 AND MSVC)
432
433
434 # Unix, linux:
435 IF(UNIX)
436 SET_TARGET_PROPERTIES(
437 ${GEOTIFF_LIBRARY_TARGET}
438 PROPERTIES
439 OUTPUT_NAME ${GEOTIFF_LIB_NAME}
440 VERSION ${LINK_VERSION}
441 SOVERSION ${LINK_SOVERSION}
442 CLEAN_DIRECT_OUTPUT 1 )
443 if (APPLE)
444 set_target_properties(
445 ${GEOTIFF_LIBRARY_TARGET}
446 PROPERTIES
447 INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
448 endif()
449
450 ELSE(UNIX)
451 # Default:
452 SET_TARGET_PROPERTIES(${GEOTIFF_LIBRARY_TARGET} PROPERTIES
453 OUTPUT_NAME ${GEOTIFF_LIB_NAME})
454 ENDIF(UNIX)
455
456 SET_TARGET_PROPERTIES(${GEOTIFF_LIBRARY_TARGET} PROPERTIES
457 OUTPUT_NAME ${GEOTIFF_LIB_NAME})
458
459 TARGET_LINK_LIBRARIES(${GEOTIFF_LIBRARY_TARGET}
460 ${TIFF_LIBRARIES}
461 ${PROJ4_LIBRARIES}
462 ${ZLIB_LIBRARIES}
463 ${JPEG_LIBRARIES})
464
465 # INSTALL(TARGETS ${GEOTIFF_ARCHIVE_TARGET} ${GEOTIFF_LIBRARY_TARGET}
466 # RUNTIME DESTINATION ${GEOTIFF_BIN_DIR}
467 # LIBRARY DESTINATION ${GEOTIFF_LIB_DIR}
468 # ARCHIVE DESTINATION ${GEOTIFF_LIB_DIR})
469
470 INSTALL( TARGETS ${GEOTIFF_ARCHIVE_TARGET} ${GEOTIFF_LIBRARY_TARGET}
471 EXPORT depends
472 RUNTIME DESTINATION bin
473 LIBRARY DESTINATION lib
474 ARCHIVE DESTINATION lib )
475
476 # Define grouping of source files in PROJECT file (e.g. Visual Studio)
477 SOURCE_GROUP("CMake Files" FILES CMakeLists.txt)
478 SOURCE_GROUP("Header Files" FILES ${GEOTIFF_LIB_HEADERS})
479 SOURCE_GROUP("Source Files" FILES ${GEOTIFF_LIB_SOURCES})
480
481 ###############################################################################
482 # Build GeoTIFF utilities
483
484 IF(WITH_UTILITIES)
485 ADD_SUBDIRECTORY(bin)
486 ENDIF()
487
488 ADD_SUBDIRECTORY(cmake)
0 2014-09-13 Howard Butler <howard@hobu.co>
1
2 * CMake: Fix up SONAME and VERSION to better
3 match configure.ac
4
5 2014-09-16 Frank Warmerdam <warmerdam@pobox.com>
6
7 * csv/datum_shift_pref.csv: revert change in preferred datum shift
8 for Pulkovo 1942(58) related to ticket #1851 - not appropriate.
9
10 2014-09-13 Frank Warmerdam <warmerdam@pobox.com>
11
12 * Preparing 1.4.1 release.
13
14 * csv/datum_shift_pref.csv: Update Pulkova 1942(58) to use a
15 particular transformation (#52).
16
17 * bin/geotifcp.c: added B, L, C and M flags from tiffcp (#68)"
18
19 * geo_print.c: clarify that the buffer passed to read methods is only
20 guaranteed to be 1024 bytes long (#62).
21
22 2014-09-13 Howard Butler <howard@hobu.co>
23 * CMake: Support for INCODE build. If you need INCODE support,
24 with the definitions compiled into headers, use CMake as your
25 configuration/build platform.
26
27 2014-09-13 Frank Warmerdam <warmerdam@pobox.com>
28
29 * csv: Override three Brazilian datum shifts on behalf of Daniel
30 Miranda and the OSGeo Brazilian Chapter.
31
32 2014-09-13 Howard Butler <howard@hobu.co>
33 * csv: Upgrade to EPSG 8.5
34
35 2014-07-30 Howard Butler <howard@hobu.co>
36 * INCODE: Adapt Ben Adler's patch in #66 to add INCODE support to the
37 CMake configuration
38
39 2014-07-30 Howard Butler <howard@hobu.co>
40 * geo_normalize.c: #59, better Mercator_2SP support
41
42 2014-07-30 Howard Butler <howard@hobu.co>
43 * geotifcp: Do not segfault when a TIFF file has WhitePoint set #65
44
45 2014-07-30 Howard Butler <howard@hobu.co>
46 * geo_names.c: fix #67 -- add VerticalUnitsGeoKey
47
48 2014-05-16 Even Roualt <even.rouault@spatialys.com>
49 * add_esri_column.py: manually replace D_SIRGAS-Chile by D_Peru96 for GCS_Peru96. Likely an error in the FileGDB SDK db (#63)
50
51 2014-05-14 Even Roualt <even.rouault@spatialys.com>
52 * csv: Upgrade to EPSG 8.4
53
54 2013-05-08 Frank Warmerdam <warmerdam@pobox.com>
55 * tiffcp: Add bigtiff output support with the -8 flag like tiffcp. Contributed by
56 Mohannad Al-Durgham (nwgeo.com).
57
58 2013-10-01 Frank Warmerdam <warmerdam@pobox.com>
59
60 * csv: Upgrade to EPSG 8.2
61
62 2013-01-31 Frank Warmerdam <warmerdam@pobox.com>
63
64 * csv/datum_shift_pref.csv: Force OSGB 1936 preferred datum shift.
65 (http://trac.osgeo.org/gdal/ticket/4597)
66
67 2012-12-05 Frank Warmerdam <warmerdam@pobox.com>
68
69 * csv: Upgrade to EPSG 8.0
70
71 2012-10-17 Frank Warmerdam <warmerdam@pobox.com>
72
73 * geo_normalize.c: GTIFGetEllipsoidInfo() - do not assume that
74 CSVFilename()'s return result is long lived. Caused errors looking
75 up ellipsoid 7007 when uom lookup altered name buffer in GDAL context.
76
77 2012-10-12 Frank Warmerdam <warmerdam@google.com>
78
79 * configure.ac, geotiff.h: update for 1.4.1 version even though
80 we aren't releasing right now.
81
82 * cmake/COPYING-CMAKE-SCRIPTS, LICENSE: Add note on BSD licensed
83 cmake macros.
84
85 2012-10-08 Frank Warmerdam <warmerdam@pobox.com>
86
87 * geo_normalize.c/geo_normalize.h: Add support for disabling the
88 TOWGS84 parameter support if GEO_NORMALIZE_DISABLE_TOWGS84 is
89 defined. This is primary intended to maintain binary compatability
90 of the GTIFDefn structure with older versions (for MrSID compat for
91 instance). No configure support - you need to manually incorporate
92 into geo_config.h or perhaps geo_normalize.h. (gdal #3309)
93
94 * geo_normalize.c/geo_normalize.h: Add GTIFAllocDefn() and
95 GTIFFreeDefn() functions for allocation/free of GTIF structure in a
96 more version independent way. (gdal #3309)
97
98 2012-05-15 Frank Warmerdam <warmerdam@pobox.com>
99
100 * geo_normalize.c: for now treat method 9829 (Polar Stereographic
101 Variant B) the same as 9810 - as CT_PolarStereographic.
102
103 2012-05-08 Frank Warmerdam <warmerdam@pobox.com>
104
105 * geo_ctrans.inc, geo_normalize.c: Add CT_HotineObliqueMercatorAzimuthCenter.
106
107 2012-05-06 Frank Warmerdam <warmerdam@pobox.com>
108
109 * geo_normalize.c: Correct GTIFGetDefn() so that user defined
110 linear units are properly read. Add user defined linear units
111 to definition report. (#51)
112
0113 2012-03-29 Frank Warmerdam <warmerdam@pobox.com>
1114
2115 * Another crack at a 1.4.0 release.
15128
16129 2011-06-15 Frank Warmerdam <warmerdam@pobox.com>
17130
18 * LICENSE: updated to latest EPSG terms of use details which
131 * LICENSE: updated to latest EPSG terms of use details which
19132 clarify commercial use allowed.
20133
21134 2011-05-23 Frank Warmerdam <warmerdam@pobox.com>
30143
31144 * Makefile.am: Do not distribute geo_config.h - it should be generated.
32145
33 * bin/csv2html.c: Removed (#6)
146 * bin/csv2html.c: Removed (#6)
34147
35148 * csv/datum_shift_pref.csv: update Belge 1972 preferred datum shift(#32)
36149
37150 * man: add listgeo man page (#1)
38151
39 * Makefile.am (SUBDIRS):
152 * Makefile.am (SUBDIRS):
40153
41154 * csv/*.csv: Upgrade to EPSG 7.6 database.
42155
44157
45158 * geo_normalize.c: Add support for cylindrical equal area from EPSG
46159 (http://trac.osgeo.org/gdal/ticket/4068)
47
160
48161 2011-05-06 Frank Warmerdam <warmerdam@pobox.com>
49162
50163 * geo_normalize.c: Fix so that false easting/northing values read from
69182 2011-02-24 Frank Warmerdam <warmerdam@pobox.com>
70183
71184 * geo_strtod.c, geo_normalize.c: Provide a locale-safe implementation
72 of atof() and use it when parsing values from .csv files.
185 of atof() and use it when parsing values from .csv files.
73186
74187 http://trac.osgeo.org/gdal/ticket/3979
75188
76189 2011-02-11 Frank Warmerdam <warmerdam@pobox.com>
77190
78 * geotiff_proj4.c, geo_normalize.c: fix a few warnings for type casts,
191 * geotiff_proj4.c, geo_normalize.c: fix a few warnings for type casts,
79192 and uninitialized variables.
80193
81194 2011-01-28 Frank Warmerdam <warmerdam@pobox.com>
85198 2010-10-05 Frank Warmerdam <warmerdam@pobox.com>
86199
87200 * geo_new.c, geo_simpletags.c: Fix simple tags so it includes the
88 '\0' char at the end of strings just like a real tiff. Modify
201 '\0' char at the end of strings just like a real tiff. Modify
89202 geo_new.c so we only drop the trailing '\0' char if that is what it
90203 really is. All loosely related to:
91204 http://trac.liblas.org/ticket/188
102215
103216 2010-05-09 Frank Warmerdam <warmerdam@pobox.com>
104217
105 * geo_new.c: Avoid memory overrun if more than MAX_VALUES geokeys
218 * geo_new.c: Avoid memory overrun if more than MAX_VALUES geokeys
106219 are encountered (#27).
107220
108221 * configure.ac: fix --with-libz and --with-zlib aliases (#23)
116229
117230 * Preparing 1.3.0 release.
118231
119 * csv/*.c, cpl_csv_incode.c, geo_incode_defs.h, Makefile.am: rename
232 * csv/*.c, cpl_csv_incode.c, geo_incode_defs.h, Makefile.am: rename
120233 defs.h to geo_incode_defs.h and include it in distribution so incode
121234 table support will work out of the box.
122235
125238 * geo_names.c: ensure that VerticalUnitsGeoKey works properly.
126239
127240 * geo_write.c: switch SortKeys() to a simple bubble sort so we don't
128 end up crashing when rewriting screwn geotiff tag sets with
241 end up crashing when rewriting screwn geotiff tag sets with
129242 duplicate geokeys (like some LAS files with multiple zero dummy tags)
130243
131244 * geo_new.c: resize short and double arrays bigger when reading
134247 2010-01-03 Frank Warmerdam <warmerdam@pobox.com>
135248
136249 * Makefile.am: set versioninfo to 2:0:0 as required by the change for
137 1.3.0 in the ABI due to change of size of GTIFDefn structure.
250 1.3.0 in the ABI due to change of size of GTIFDefn structure.
138251 (#19, GDAL #3309)
139252
140253 2009-12-30 Frank Warmerdam <warmerdam@pobox.com>
144257
145258 2009-11-11 Frank Warmerdam <warmerdam@pobox.com>
146259
147 * geo_normalize.c: Recognise 9841 and 1024 projection methods as
260 * geo_normalize.c: Recognise 9841 and 1024 projection methods as
148261 CT_Mercator: http://trac.osgeo.org/gdal/ticket/3217
149262
150263 2009-10-19 Frank Warmerdam <warmerdam@pobox.com>
159272
160273 * autogen.sh: adjust to avoid version conflicts (#10).
161274
162 * geo_normalize.c/h, geotiff_proj4.c: Added DefnSet to GTIFDefn so
275 * geo_normalize.c/h, geotiff_proj4.c: Added DefnSet to GTIFDefn so
163276 it can be properly established if a definition was set or if there
164277 were no geokeys (#12). Corrects serious interim bug in geotiff_proj4.c
165278
192305
193306 2009-04-22 Frank Warmerdam <warmerdam@pobox.com>
194307
195 * geo_normalizec: Do not call CSVDeaccess() by default in getdefn -
196 leave it to the application.
308 * geo_normalizec: Do not call CSVDeaccess() by default in getdefn -
309 leave it to the application.
197310
198311 * Remove all the $Log logs.
199312
220333
221334 2008-11-27 Frank Warmerdam <warmerdam@pobox.com>
222335
223 * geo_normalize.c: Introduce support for StdParallel1 in
336 * geo_normalize.c: Introduce support for StdParallel1 in
224337 Equirectangular (http://trac.osgeo.org/gdal/ticket/2706)
225338
226339 2008-11-12 Frank Warmerdam <warmerdam@pobox.com>
227340
228 * bin/applygeo.c: New utility for applying georeferencing to an
341 * bin/applygeo.c: New utility for applying georeferencing to an
229342 existing file (written by jeskynar@hotmail.com and myself).
230343
231344 2008-10-24 Frank Warmerdam <warmerdam@pobox.com>
242355
243356 * geo_normalize.c: Fix potential buffer overflow in GTIFAngleStringToDD
244357 http://trac.osgeo.org/gdal/ticket/2228
245
358
246359 2008-05-21 Frank Warmerdam <warmerdam@pobox.com>
247360
248361 * bin/geotifcp.c: Support for -4 option to set from proj.4 def.
253366
254367 * geo_simpletags.{c,h}, geo_new.c, geotiff.h: Introduce "simple tags"
255368 API for parsing geotiff tags that don't come via libtiff. Mostly for
256 use of liblas.
369 use of liblas.
257370
258371 2008-01-31 Frank Warmerdam <warmerdam@pobox.com>
259372
307420
308421 2006-11-11 Frank Warmerdam <warmerdam@pobox.com>
309422
310 * xtiff.c, xtiffio.h: Made XTIFFInitialize() public so that
423 * xtiff.c, xtiffio.h: Made XTIFFInitialize() public so that
311424 applications can call it themselves when using alternate opens.
312425 http://bugzilla.remotesensing.org/show_bug.cgi?id=1296
313426
345458
346459 2005-03-15 Frank Warmerdam <warmerdam@pobox.com>
347460
348 * geo_normalize.c: If a zero inverse flattening is encountered,
461 * geo_normalize.c: If a zero inverse flattening is encountered,
349462 interprete this as implying a semiminor axis equal to the semimajor.
350463
351464 2005-03-03 Frank Warmerdam <warmerdam@pobox.com>
372485
373486 2004-12-01 Frank Warmerdam <warmerdam@pobox.com>
374487
375 * geo_normalize.c: GTIFGetGCSInfo() changed to work even if an
488 * geo_normalize.c: GTIFGetGCSInfo() changed to work even if an
376489 illegal PM code encountered ... as long as pm info not requested.
377490 http://bugzilla.remotesensing.org/show_bug.cgi?id=698
378491
384497 2004-10-19 Frank Warmerdam <warmerdam@pobox.com>
385498
386499 * geo_print.c: fixed serious bug with reporting large numbers of
387 GCPs. Patch from Oliver Colin (ESA).
500 GCPs. Patch from Oliver Colin (ESA).
388501
389502 2004-07-09 Frank Warmerdam <warmerdam@pobox.com>
390503
391 * geo_normalize.c: added 9122 as a simple degree alias in
504 * geo_normalize.c: added 9122 as a simple degree alias in
392505 GTIFGetUOMAngleInfo().
393506
394507 2004-06-07 Frank Warmerdam <warmerdam@pobox.com>
395508
396 * geo_normalize.c: fallback to using gdal_datum.csv if datum.csv
509 * geo_normalize.c: fallback to using gdal_datum.csv if datum.csv
397510 not found.
398511
399512 ==============================================================================
404517
405518 2004-04-29 Frank Warmerdam <warmerdam@pobox.com>
406519
407 * xtiffio.h: Avoid including cpl_serv.h, moved to geo_tiffp.h
520 * xtiffio.h: Avoid including cpl_serv.h, moved to geo_tiffp.h
408521 so that only libgeotiff code will end up seeing cpl_serv defines.
409522
410523 2004-04-27 Frank Warmerdam <warmerdam@pobox.com>
411524
412 * geo_new.c, geo_write.c, geo_print.c: Make it possible to
413 create a GTIF information object *without* an associated TIFF *.
525 * geo_new.c, geo_write.c, geo_print.c: Make it possible to
526 create a GTIF information object *without* an associated TIFF *.
414527
415528 2004-03-23 Frank Warmerdam <warmerdam@pobox.com>
416529
418531
419532 * Reconvert the EPSG 6.5 files to C.
420533
421 * Wrote csv/csv2c.py for converting .csv file to .c.
534 * Wrote csv/csv2c.py for converting .csv file to .c.
422535
423536 * Capture EPSG 6.5 csv files.
424537
431544 2003-09-23 Frank Warmerdam <warmerdam@pobox.com>
432545
433546 * geo_print.c: fixed PrintKey() to work for constant names longer
434 than the message buffer.
547 than the message buffer.
435548 http://bugzilla.remotesensing.org/show_bug.cgi?id=399
436549
437550 2003-09-02 Frank Warmerdam <warmerdam@pobox.com>
438551
439552 * geo_new.c: various hacks so that with improperly terminated ascii
440 parameters such as "34737 (0x87b1) ASCII (2) 9<Mercator\0>" will
553 parameters such as "34737 (0x87b1) ASCII (2) 9<Mercator\0>" will
441554 still work. eg. 1164-0.tif
442555
443556 2003-07-08 Frank Warmerdam <warmerdam@pobox.com>
444557
445 * geo_normalize.c, geo_print.c, geo_set.c, geo_tiffp.c, geo_trans.c,
558 * geo_normalize.c, geo_print.c, geo_set.c, geo_tiffp.c, geo_trans.c,
446559 geo_write.c, geotiff_proj4.c: fix various warnings.
447560
448561 ==============================================================================
452565 * bin/Makefile.in: Removed the "prep" target for copying the geotiff
453566 shared library ... not necessary with -L.. (I hope).
454567
455 * configure.in: don't let -ltiff get added to LIBS multiple times.
568 * configure.in: don't let -ltiff get added to LIBS multiple times.
456569
457570 * Prepared 1.2.1 release
458571
459572 2003-06-19 Frank Warmerdam <warmerdam@pobox.com>
460573
461 * geo_new.c: Fixed bug that can corrupt memory when an invalid
462 GeoTIFF file with a zero length ascii parms strings is read (like
574 * geo_new.c: Fixed bug that can corrupt memory when an invalid
575 GeoTIFF file with a zero length ascii parms strings is read (like
463576 bruce.tif).
464577
465578 2003-06-03 Frank Warmerdam <warmerdam@pobox.com>
489602 a crash if a missing record was requested.
490603
491604 * cpl_csv_incode.c, Makefile.in, csv/*: Reincorporated "incode"
492 support as per patches from Derrick.
605 support as per patches from Derrick.
493606
494607 * cpl_serv.h: added #define for gtGetFileFieldId.
495608
496609 * cpl_csv.c: changed CSVFilename() to search for pcs.csv, not
497610 horiz_cs.csv.
498
611
499612 2003-01-19 Frank Warmerdam <warmerdam@pobox.com>
500613
501614 * Makefile.in, bin/Makefile.in: added dist-clean target.
515628 call for applications to force all CSV files to be de-cached.
516629
517630 * cpl_serv.h: renamed lots of CPL functions with gt prefixes using
518 macros.
631 macros.
519632
520633 2003-01-07 Frank Warmerdam <warmerdam@pobox.com>
521634
526639 2003-01-02 Frank Warmerdam <warmerdam@pobox.com>
527640
528641 * configure.in: Remove logic to insert /usr/local/ in include and lib
529 path. Remove configure switch for in-code EPSG tables since that
642 path. Remove configure switch for in-code EPSG tables since that
530643 option is broken for now.
531644
532645 2002-12-01 Frank Warmerdam <warmerdam@pobox.com>
533646
534647 * cpl_csv.c: rewritten to support in memory caching of tables, and
535 fast searches.
648 fast searches.
536649
537650 * geo_extra.c: tweaked to favor fixed EPSG codes for Kentucky North
538651 (NAD83), and Tennesse (NAD27). The original entries have incorrect
542655
543656 2002-11-23 Frank Warmerdam <warmerdam@pobox.com>
544657
545 * geo_free.c: don't read past end of keys list. Introduced by
658 * geo_free.c: don't read past end of keys list. Introduced by
546659 changes from Rainer.
547660
548661 * geo_new.c: fix memory leak of tempData.tk_asciiParams. Introduced
549 by changes from Rainer.
662 by changes from Rainer.
550663
551664 2002-09-27 Frank Warmerdam <warmerdam@pobox.com>
552665
555668
556669 http://bugzilla.remotesensing.org/show_bug.cgi?id=204
557670
558 * geo_free.c, geo_names.c, geo_keyp.h, geo_new.c, geo_set.c,
671 * geo_free.c, geo_names.c, geo_keyp.h, geo_new.c, geo_set.c,
559672 geo_write.c: Rainer Wiesenfarth (wiesi at ngi dot de) submitted
560673 patches to support deletion, and changes to ascii tags. To accomplish
561674 this the ASCII tags are now allocated dynamically. The
568681 2002-07-19 Frank Warmerdam <warmerdam@pobox.com>
569682
570683 * bin/listgeo.c: Added -d (report corners in decimal degrees) flag
571 to listgeo as submitted by Derrick Brashear.
684 to listgeo as submitted by Derrick Brashear.
572685
573686 2002-07-09 Frank Warmerdam <warmerdam@pobox.com>
574687
622735 * Prepare 1.1.5 release.
623736
624737 * geo_normalize.c: call CSVDeaccess() at end of GTIFPrintDefn() so that
625 listgeo has closed all file handles by the end.
738 listgeo has closed all file handles by the end.
626739
627740 2001-11-28 Frank Warmerdam <warmerdam@pobox.com>
628741
632745 2001-07-09 Frank Warmerdam <warmerdam@pobox.com>
633746
634747 * cpl_serv.c: Another bug with pszRLBuffer being freed but not set
635 to NULL.
748 to NULL.
636749
637750 2001-06-28 Frank Warmerdam <warmerdam@pobox.com>
638751
639 * cpl_csv_incode.c: Use EQUAL instead of strcasecmp() to ensure code
640 builds on windows. As per
752 * cpl_csv_incode.c: Use EQUAL instead of strcasecmp() to ensure code
753 builds on windows. As per
641754
642755 http://bugzilla.remotesensing.org/show_bug.cgi?id=59
643756
651764 * geo_normalize.c: fixed memory leaks in GTIFGetDefn().
652765
653766 * cpl_serv.c: Fixed failure to set pointer to NULL when freeing
654 line buffer in CPLReadLine().
655
656 * geo_normalize.c: added support for reading custom ellipsoid
767 line buffer in CPLReadLine().
768
769 * geo_normalize.c: added support for reading custom ellipsoid
657770 definitions.
658
771
659772 http://bugzilla.remotesensing.org/show_bug.cgi?id=42
660773
661774 2001-04-06 Frank Warmerdam <warmerdam@pobox.com>
669782
670783 2001-03-04 Frank Warmerdam <warmerdam@pobox.com>
671784
672 Fixed various memory leaks bugs thanks to Alan Gray.
673
785 Fixed various memory leaks bugs thanks to Alan Gray.
786
674787 * GTIFGetDefn() now calls CSVDeaccess() to avoid memory/file leaks.
675788
676789 * Added docs/api, and related for Doxygen generated API docs.
677790
678791 * Fixed memory leaks in GTIFPrintDefn() (geo_normalize.c), and
679 GTIFImageToPCS(), GTIFPCSToImage() (geo_trans.c).
792 GTIFImageToPCS(), GTIFPCSToImage() (geo_trans.c).
680793
681794 2001-03-01 Frank Warmerdam <warmerdam@pobox.com>
682795
684797
685798 2001-02-28 Frank Warmerdam <warmerdam@pobox.com>
686799
687 * Added PCS_HD72_EOV to epsg_pcs.inc, and added GCS_GGRS87 to
688 epsg_gcs.inc at the request of Prof. Dr. Irwin Scollar.
800 * Added PCS_HD72_EOV to epsg_pcs.inc, and added GCS_GGRS87 to
801 epsg_gcs.inc at the request of Prof. Dr. Irwin Scollar.
689802
690803 2001-02-23 Frank Warmerdam <warmerdam@pobox.com>
691804
692 * Fixed GTIFPrintDefn() to use fprintf( fp ), instead of printf(),
805 * Fixed GTIFPrintDefn() to use fprintf( fp ), instead of printf(),
693806 as per fixes from Alan Gray.
694807
695808 2001-01-19 Frank Warmerdam <warmerdam@pobox.com>
703816
704817 * Added README_BIN, and mkbindist.sh.
705818
706 * Modified csv search code to include a search of
819 * Modified csv search code to include a search of
707820 share/epsg_csv and /usr/share/epsg_csv
708821
709822 2001-01-02 Frank Warmerdam <warmerdam@pobox.com>
717830
718831 * Prepare 1.1.4beta release.
719832
720 * Added HOWTO-RELEASE file.
833 * Added HOWTO-RELEASE file.
721834
722835 * Removed getopt.h from geotifcp.c to build on windows.
723836
732845
733846 * Added CSV_DATA_DIR define to control where to look for csv files.
734847
735 Todays fixes courtesy of Dave Johnson, ddj@cascv.brown.edu and
848 Todays fixes courtesy of Dave Johnson, ddj@cascv.brown.edu and
736849 are summarized in:
737
850
738851 http://bugzilla.remotesensing.org/show_bug.cgi?id=29
739852
740853 2000-12-05 Frank Warmerdam <warmerdam@pobox.com>
753866
754867 2000-11-24 Frank Warmerdam <warmerdam@pobox.com>
755868
756 * Added configure/makefile logic to build a shared library,
869 * Added configure/makefile logic to build a shared library,
757870 currently libgeotiff.so.1.1.5, and intall it with appropriate links.
758871
759872 * Modified configure to use --with-libtiff, and to ignore TIFF_HOME.
760873 Now it is preferred to use an installed libtiff instead of one sitting
761 in a build directory.
874 in a build directory.
762875
763876 * Added libtiff_private directory with required libtiff include
764877 files, to make it easier to build libgeotiff if only the standard
767880 2000-11-23 Frank Warmerdam <warmerdam@pobox.com>
768881
769882 * Based loosely on suggestions from Curt Mills, I have reworked
770 the configure.in logic for PROJ.4. I add -I/usr/local/include to
883 the configure.in logic for PROJ.4. I add -I/usr/local/include to
771884 CFLAGS and -L/usr/local/lib to LIBS right off the start so /usr/local
772 is included in the default search path. The user no longer
885 is included in the default search path. The user no longer
773886 specifies the PROJ_HOME environment variable, and instead uses
774 the --with-proj configure switch. Updated notes for building
887 the --with-proj configure switch. Updated notes for building
775888 PROJ_HOME set in README.
776889
777890 2000-10-13 Frank Warmerdam <warmerda@cs46980-c>
778891
779892 * Added EquidistantConic support in PROJ.4 translation.
780893
781 * Fixed order of parameters for LCC when read directly from a
894 * Fixed order of parameters for LCC when read directly from a
782895 file to match that when read from EPSG tables. This is now
783896 always: 0-NatOriginLat, 1-NatOriginLong, 2-StdParallel1, 3-StdParallel2
784897 This change is only in geo_normalize.c.
815928 2000-06-09 <warmerda@CS46980-B>
816929
817930 * Added knowledge of NAD27, NAD83, WGS72, WGS84, their datums,
818 and ellipsoids.
931 and ellipsoids.
819932
820933 2000-05-21 Frank Warmerdam <warmerda@cs46980-c>
821934
822935 * Added -e option to geotifcp to intialize tiepoint+pixelscale
823 based on an ESRI world file.
936 based on an ESRI world file.
824937
825938 ==============================================================================
826939
833946 * Fixed inclusion of geoparms in object file list at Derricks
834947 suggestion.
835948
836 * Added --with-zip support to configure and makefiles at the
949 * Added --with-zip support to configure and makefiles at the
837950 suggestion of Derrick Brashear.
838951
839952 Fri Dec 10 13:24:21 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
840953
841954 * Upgraded .csv and .c files to EPSG 4.4.
842955
843 * Fixed bug setting the false northing for files with
956 * Fixed bug setting the false northing for files with
844957 ProjCenterNorthingGeoKey set in GTIFGetDefn().
845958
846 * Added "--with-incode-epsg" support to configure, added
959 * Added "--with-incode-epsg" support to configure, added
847960 cpl_csv_incode.c and csv/*.c tables.
848961
849962 Wed Sep 29 10:10:39 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
850963
851 * Upgraded CSV files to EPSG 4.3 from EPSG 4.2.
964 * Upgraded CSV files to EPSG 4.3 from EPSG 4.2.
852965
853966 Fri Sep 17 10:53:52 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
854967
858971 Thu Sep 16 17:22:55 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
859972
860973 * Added support for pure tiepoints, and the transformation
861 matrix in GTIFImageToPCS(), and GTIFPCSToImage().
974 matrix in GTIFImageToPCS(), and GTIFPCSToImage().
862975
863976 Wed Sep 15 10:19:34 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
864977
866979 to match EPSG. SouthOriented name remains as an alias.
867980
868981 * Fixed serious bug in geo_normalize.c with translation of
869 DD.MMSSsss values. Return value was seriously off if any
982 DD.MMSSsss values. Return value was seriously off if any
870983 fraction of a second was included in the string.
871984
872985 Tue Sep 7 15:57:47 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
8961009 * Fixed serious bug with parsing DMSmmsss.ss coordinates from
8971010 CSV files which could make many results wrong.
8981011
899 * Cleaned up warnings with gcc -Wall, and IRIX native compiler.
1012 * Cleaned up warnings with gcc -Wall, and IRIX native compiler.
9001013
9011014 * Added support for -Wall for GCC in when running configure. This
9021015 also resulted in the addition of aclocal.m4 to the dist.
9031016
9041017 Wed Apr 28 14:12:25 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
9051018
906 * Added geo_extra.c, for special handling of UTM and state plane
907 map systems.
908
909 * Changed to have api help inline with the code, and extracted with
1019 * Added geo_extra.c, for special handling of UTM and state plane
1020 map systems.
1021
1022 * Changed to have api help inline with the code, and extracted with
9101023 doxygen.
9111024
9121025 Thu Mar 25 23:25:22 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
9141027 * Added ChangeLog and LICENSE file to distribution.
9151028
9161029 March 18
917
1030
9181031 * Added support for PROJ.4 in configure. Added cover functions
919 for Proj.4 in geotiff_proj.c, added lat/long reporting to listgeo.c.
1032 for Proj.4 in geotiff_proj.c, added lat/long reporting to listgeo.c.
9201033
9211034
9221035 ==============================================================================
9231036
9241037 -- 1.1.0a Release (circa March 10, 1999) --
9251038
926 * This release is considered alpha (not release) quality.
927
1039 * This release is considered alpha (not release) quality.
1040
9281041 * Includes new CSV files, ``geo_normalize'' support, and a new
929 configure script (using autoconf).
930
931 -- 1.02 Release (1995 or so)
1042 configure script (using autoconf).
1043
1044 -- 1.02 Release (1995 or so)
9191
9292 5. No data that has been modified other than as permitted in these terms
9393 and conditions shall be described as or attributed to the EPSG dataset.
94
95 ----------
96
97 The cmake/*.cmake macros are under the following BSD license. This does
98 not affect produced binaries or the library.
99
100 --
101
102 Redistribution and use in source and binary forms, with or without
103 modification, are permitted provided that the following conditions
104 are met:
105
106 1. Redistributions of source code must retain the copyright
107 notice, this list of conditions and the following disclaimer.
108 2. Redistributions in binary form must reproduce the copyright
109 notice, this list of conditions and the following disclaimer in the
110 documentation and/or other materials provided with the distribution.
111 3. The name of the author may not be used to endorse or promote products
112 derived from this software without specific prior written permission.
113
114 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
115 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
116 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
117 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
118 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
119 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
120 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
121 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
122 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
123 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535 csv/coordinate_operation_path.csv \
3636 csv/coordinate_reference_system.csv \
3737 csv/coordinate_system.csv \
38 csv/csv2c.py \
39 csv/csv_tools.py \
3840 csv/datum.csv \
3941 csv/datum_shift.csv \
4042 csv/datum_shift_pref.csv \
5456 csv/unit_of_measure.csv \
5557 csv/version_history.csv \
5658 csv/vertcs.csv \
57 csv/vertcs.override.csv
59 csv/vertcs.override.csv
5860
5961 include_HEADERS = geotiff.h \
6062 geo_config.h \
9597 geo_trans.c \
9698 geo_write.c \
9799 geo_strtod.c \
98 geotiff_proj4.c
100 geotiff_proj4.c
99101
100102 if CSV_IS_CONFIG
101103 libgeotiff_la_SOURCES += csv/datum.c \
104106 csv/pcs.c \
105107 csv/prime_meridian.c \
106108 csv/projop_wparm.c \
107 csv/unit_of_measure.c
109 csv/unit_of_measure.c
108110 endif
109111
110 libgeotiff_la_LDFLAGS = -version-info 3:0:1
112 libgeotiff_la_LDFLAGS = -version-info 3:1:1
111113
112114 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
113115
122124 INSTALL \
123125 CMakeLists.txt \
124126 libxtiff/CMakeLists.txt \
125 bin/CMakeLists.txt
127 bin/CMakeLists.txt
126128
127129 MOSTLYCLEANFILES = $(DX_CLEANFILES)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
4746
4847
4948 VPATH = @srcdir@
49 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
50 am__make_running_with_option = \
51 case $${target_option-} in \
52 ?) ;; \
53 *) echo "am__make_running_with_option: internal error: invalid" \
54 "target option '$${target_option-}' specified" >&2; \
55 exit 1;; \
56 esac; \
57 has_opt=no; \
58 sane_makeflags=$$MAKEFLAGS; \
59 if $(am__is_gnu_make); then \
60 sane_makeflags=$$MFLAGS; \
61 else \
62 case $$MAKEFLAGS in \
63 *\\[\ \ ]*) \
64 bs=\\; \
65 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
66 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
67 esac; \
68 fi; \
69 skip_next=no; \
70 strip_trailopt () \
71 { \
72 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
73 }; \
74 for flg in $$sane_makeflags; do \
75 test $$skip_next = yes && { skip_next=no; continue; }; \
76 case $$flg in \
77 *=*|--*) continue;; \
78 -*I) strip_trailopt 'I'; skip_next=yes;; \
79 -*I?*) strip_trailopt 'I';; \
80 -*O) strip_trailopt 'O'; skip_next=yes;; \
81 -*O?*) strip_trailopt 'O';; \
82 -*l) strip_trailopt 'l'; skip_next=yes;; \
83 -*l?*) strip_trailopt 'l';; \
84 -[dEDm]) skip_next=yes;; \
85 -[JT]) skip_next=yes;; \
86 esac; \
87 case $$flg in \
88 *$$target_option*) has_opt=yes; break;; \
89 esac; \
90 done; \
91 test $$has_opt = yes
92 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
93 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
5094 pkgdatadir = $(datadir)/@PACKAGE@
5195 pkgincludedir = $(includedir)/@PACKAGE@
5296 pkglibdir = $(libdir)/@PACKAGE@
65109 POST_UNINSTALL = :
66110 build_triplet = @build@
67111 host_triplet = @host@
68 DIST_COMMON = README $(am__configure_deps) $(dist_csv_DATA) \
69 $(include_HEADERS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
70 $(srcdir)/geo_config.h.in $(top_srcdir)/configure \
71 $(top_srcdir)/m4/doxygen.am AUTHORS COPYING ChangeLog INSTALL \
72 NEWS config.guess config.sub depcomp install-sh ltmain.sh \
73 missing
74 @CSV_IS_CONFIG_TRUE@am__append_1 = csv/datum.c \
112 DIST_COMMON = $(top_srcdir)/m4/doxygen.am INSTALL NEWS README AUTHORS \
113 ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
114 $(top_srcdir)/configure $(am__configure_deps) \
115 $(srcdir)/geo_config.h.in depcomp $(dist_csv_DATA) \
116 $(include_HEADERS) COPYING compile config.guess config.sub \
117 install-sh missing ltmain.sh
118 @PROJ_IS_CONFIG_TRUE@am__append_1 = @PROJ_INC@ -DHAVE_LIBPROJ=1
119 @PROJECTS_H_IS_CONFIG_TRUE@am__append_2 = -DHAVE_PROJECTS_H=1
120 @CSV_IS_CONFIG_TRUE@am__append_3 = csv/datum.c \
75121 @CSV_IS_CONFIG_TRUE@ csv/ellipsoid.c \
76122 @CSV_IS_CONFIG_TRUE@ csv/gcs.c \
77123 @CSV_IS_CONFIG_TRUE@ csv/pcs.c \
78124 @CSV_IS_CONFIG_TRUE@ csv/prime_meridian.c \
79125 @CSV_IS_CONFIG_TRUE@ csv/projop_wparm.c \
80 @CSV_IS_CONFIG_TRUE@ csv/unit_of_measure.c
126 @CSV_IS_CONFIG_TRUE@ csv/unit_of_measure.c
81127
82128 subdir = .
83129 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
112158 am__base_list = \
113159 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
114160 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
161 am__uninstall_files_from_dir = { \
162 test -z "$$files" \
163 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
164 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
165 $(am__cd) "$$dir" && rm -f $$files; }; \
166 }
115167 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(csvdir)" \
116168 "$(DESTDIR)$(includedir)"
117169 LTLIBRARIES = $(lib_LTLIBRARIES)
131183 geo_tiffp.lo geo_trans.lo geo_write.lo geo_strtod.lo \
132184 geotiff_proj4.lo $(am__objects_1)
133185 libgeotiff_la_OBJECTS = $(am_libgeotiff_la_OBJECTS)
134 libgeotiff_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
186 AM_V_lt = $(am__v_lt_@AM_V@)
187 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
188 am__v_lt_0 = --silent
189 am__v_lt_1 =
190 libgeotiff_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
135191 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
136192 $(libgeotiff_la_LDFLAGS) $(LDFLAGS) -o $@
193 AM_V_P = $(am__v_P_@AM_V@)
194 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
195 am__v_P_0 = false
196 am__v_P_1 = :
197 AM_V_GEN = $(am__v_GEN_@AM_V@)
198 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
199 am__v_GEN_0 = @echo " GEN " $@;
200 am__v_GEN_1 =
201 AM_V_at = $(am__v_at_@AM_V@)
202 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
203 am__v_at_0 = @
204 am__v_at_1 =
137205 DEFAULT_INCLUDES = -I.@am__isrc@
138206 depcomp = $(SHELL) $(top_srcdir)/depcomp
139207 am__depfiles_maybe = depfiles
140208 am__mv = mv -f
141209 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
142210 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
143 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
144 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
145 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
211 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
212 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
213 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
214 $(AM_CFLAGS) $(CFLAGS)
215 AM_V_CC = $(am__v_CC_@AM_V@)
216 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
217 am__v_CC_0 = @echo " CC " $@;
218 am__v_CC_1 =
146219 CCLD = $(CC)
147 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
148 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
149 $(LDFLAGS) -o $@
220 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
221 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
222 $(AM_LDFLAGS) $(LDFLAGS) -o $@
223 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
224 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
225 am__v_CCLD_0 = @echo " CCLD " $@;
226 am__v_CCLD_1 =
150227 SOURCES = $(libgeotiff_la_SOURCES)
151228 DIST_SOURCES = $(am__libgeotiff_la_SOURCES_DIST)
152 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
153 html-recursive info-recursive install-data-recursive \
154 install-dvi-recursive install-exec-recursive \
155 install-html-recursive install-info-recursive \
156 install-pdf-recursive install-ps-recursive install-recursive \
157 installcheck-recursive installdirs-recursive pdf-recursive \
158 ps-recursive uninstall-recursive
229 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
230 ctags-recursive dvi-recursive html-recursive info-recursive \
231 install-data-recursive install-dvi-recursive \
232 install-exec-recursive install-html-recursive \
233 install-info-recursive install-pdf-recursive \
234 install-ps-recursive install-recursive installcheck-recursive \
235 installdirs-recursive pdf-recursive ps-recursive \
236 tags-recursive uninstall-recursive
237 am__can_run_installinfo = \
238 case $$AM_UPDATE_INFO_DIR in \
239 n|no|NO) false;; \
240 *) (install-info --version) >/dev/null 2>&1;; \
241 esac
159242 DATA = $(dist_csv_DATA)
160243 HEADERS = $(include_HEADERS)
161244 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
162245 distclean-recursive maintainer-clean-recursive
163 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
164 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
165 distdir dist dist-all distcheck
246 am__recursive_targets = \
247 $(RECURSIVE_TARGETS) \
248 $(RECURSIVE_CLEAN_TARGETS) \
249 $(am__extra_recursive_targets)
250 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
251 cscope distdir dist dist-all distcheck
252 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
253 $(LISP)geo_config.h.in
254 # Read a list of newline-separated strings from the standard input,
255 # and print each of them once, without duplicates. Input order is
256 # *not* preserved.
257 am__uniquify_input = $(AWK) '\
258 BEGIN { nonempty = 0; } \
259 { items[$$0] = 1; nonempty = 1; } \
260 END { if (nonempty) { for (i in items) print i; }; } \
261 '
262 # Make sure the list of sources is unique. This is necessary because,
263 # e.g., the same source file might be shared among _SOURCES variables
264 # for different programs/libraries.
265 am__define_uniq_tagged_files = \
266 list='$(am__tagged_files)'; \
267 unique=`for i in $$list; do \
268 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
269 done | $(am__uniquify_input)`
166270 ETAGS = etags
167271 CTAGS = ctags
272 CSCOPE = cscope
168273 DIST_SUBDIRS = $(SUBDIRS)
169274 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
170275 distdir = $(PACKAGE)-$(VERSION)
171276 top_distdir = $(distdir)
172277 am__remove_distdir = \
173 { test ! -d "$(distdir)" \
174 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
175 && rm -fr "$(distdir)"; }; }
278 if test -d "$(distdir)"; then \
279 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
280 && rm -rf "$(distdir)" \
281 || { sleep 5 && rm -rf "$(distdir)"; }; \
282 else :; fi
283 am__post_remove_distdir = $(am__remove_distdir)
176284 am__relativize = \
177285 dir0=`pwd`; \
178286 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
200308 reldir="$$dir2"
201309 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).zip
202310 GZIP_ENV = --best
311 DIST_TARGETS = dist-gzip dist-zip
203312 distuninstallcheck_listfiles = find . -type f -print
313 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
314 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
204315 distcleancheck_listfiles = find . -type f -print
205316 ACLOCAL = @ACLOCAL@
206317 AMTAR = @AMTAR@
318 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
207319 AR = @AR@
208320 AUTOCONF = @AUTOCONF@
209321 AUTOHEADER = @AUTOHEADER@
221333 CYGPATH_W = @CYGPATH_W@
222334 DEFS = @DEFS@
223335 DEPDIR = @DEPDIR@
336 DLLTOOL = @DLLTOOL@
224337 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
225338 DSYMUTIL = @DSYMUTIL@
226339 DUMPBIN = @DUMPBIN@
273386 LTLIBOBJS = @LTLIBOBJS@
274387 MAINT = @MAINT@
275388 MAKEINFO = @MAKEINFO@
389 MANIFEST_TOOL = @MANIFEST_TOOL@
276390 MKDIR_P = @MKDIR_P@
277391 NM = @NM@
278392 NMEDIT = @NMEDIT@
304418 abs_srcdir = @abs_srcdir@
305419 abs_top_builddir = @abs_top_builddir@
306420 abs_top_srcdir = @abs_top_srcdir@
421 ac_ct_AR = @ac_ct_AR@
307422 ac_ct_CC = @ac_ct_CC@
308423 ac_ct_CXX = @ac_ct_CXX@
309424 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
337452 libexecdir = @libexecdir@
338453 localedir = @localedir@
339454 localstatedir = @localstatedir@
340 lt_ECHO = @lt_ECHO@
341455 mandir = @mandir@
342456 mkdir_p = @mkdir_p@
343457 oldincludedir = @oldincludedir@
379493 @DX_COND_doc_TRUE@ $(DX_CLEAN_PDF) \
380494 @DX_COND_doc_TRUE@ $(DX_CLEAN_LATEX)
381495
382 @PROJECTS_H_IS_CONFIG_TRUE@PROJ_CFLAGS = -DHAVE_PROJECTS_H=1 -DHAVE_LIBPROJ=1 @PROJ_INC@
383 @PROJ_IS_CONFIG_TRUE@PROJ_CFLAGS = @PROJ_INC@ -DHAVE_LIBPROJ=1
496 PROJ_CFLAGS = $(am__append_1) $(am__append_2)
384497 @TIFF_IS_CONFIG_TRUE@TIFF_CFLAGS = @TIFF_INC@ -DHAVE_TIFF=1
385498 AM_CFLAGS = -I./libxtiff $(PROJ_CFLAGS) $(TIFF_CFLAGS) \
386499 -DCSV_DATA_DIR=\"$(datadir)/epsg_csv\"
399512 csv/coordinate_operation_path.csv \
400513 csv/coordinate_reference_system.csv \
401514 csv/coordinate_system.csv \
515 csv/csv2c.py \
516 csv/csv_tools.py \
402517 csv/datum.csv \
403518 csv/datum_shift.csv \
404519 csv/datum_shift_pref.csv \
418533 csv/unit_of_measure.csv \
419534 csv/version_history.csv \
420535 csv/vertcs.csv \
421 csv/vertcs.override.csv
536 csv/vertcs.override.csv
422537
423538 include_HEADERS = geotiff.h \
424539 geo_config.h \
446561 libgeotiff_la_SOURCES = cpl_serv.c cpl_csv.c geo_extra.c geo_free.c \
447562 geo_get.c geo_names.c geo_new.c geo_normalize.c geo_print.c \
448563 geo_set.c geo_simpletags.c geo_tiffp.c geo_trans.c geo_write.c \
449 geo_strtod.c geotiff_proj4.c $(am__append_1)
450 libgeotiff_la_LDFLAGS = -version-info 3:0:1
564 geo_strtod.c geotiff_proj4.c $(am__append_3)
565 libgeotiff_la_LDFLAGS = -version-info 3:1:1
451566 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
452567 lib_LTLIBRARIES = libgeotiff.la
453568 EXTRA_DIST = makefile.vc \
459574 INSTALL \
460575 CMakeLists.txt \
461576 libxtiff/CMakeLists.txt \
462 bin/CMakeLists.txt
577 bin/CMakeLists.txt
463578
464579 MOSTLYCLEANFILES = $(DX_CLEANFILES)
465580 all: geo_config.h
467582
468583 .SUFFIXES:
469584 .SUFFIXES: .c .lo .o .obj
470 am--refresh:
585 am--refresh: Makefile
471586 @:
472587 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/m4/doxygen.am $(am__configure_deps)
473588 @for dep in $?; do \
492607 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
493608 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
494609 esac;
610 $(top_srcdir)/m4/doxygen.am:
495611
496612 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
497613 $(SHELL) ./config.status --recheck
503619 $(am__aclocal_m4_deps):
504620
505621 geo_config.h: stamp-h1
506 @if test ! -f $@; then \
507 rm -f stamp-h1; \
508 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
509 else :; fi
622 @test -f $@ || rm -f stamp-h1
623 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
510624
511625 stamp-h1: $(srcdir)/geo_config.h.in $(top_builddir)/config.status
512626 @rm -f stamp-h1
518632
519633 distclean-hdr:
520634 -rm -f geo_config.h stamp-h1
635
521636 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
522637 @$(NORMAL_INSTALL)
523 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
524638 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
525639 list2=; for p in $$list; do \
526640 if test -f $$p; then \
528642 else :; fi; \
529643 done; \
530644 test -z "$$list2" || { \
645 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
646 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
531647 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
532648 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
533649 }
543659
544660 clean-libLTLIBRARIES:
545661 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
546 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
547 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
548 test "$$dir" != "$$p" || dir=.; \
549 echo "rm -f \"$${dir}/so_locations\""; \
550 rm -f "$${dir}/so_locations"; \
551 done
552 libgeotiff.la: $(libgeotiff_la_OBJECTS) $(libgeotiff_la_DEPENDENCIES)
553 $(libgeotiff_la_LINK) -rpath $(libdir) $(libgeotiff_la_OBJECTS) $(libgeotiff_la_LIBADD) $(LIBS)
662 @list='$(lib_LTLIBRARIES)'; \
663 locs=`for p in $$list; do echo $$p; done | \
664 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
665 sort -u`; \
666 test -z "$$locs" || { \
667 echo rm -f $${locs}; \
668 rm -f $${locs}; \
669 }
670
671 libgeotiff.la: $(libgeotiff_la_OBJECTS) $(libgeotiff_la_DEPENDENCIES) $(EXTRA_libgeotiff_la_DEPENDENCIES)
672 $(AM_V_CCLD)$(libgeotiff_la_LINK) -rpath $(libdir) $(libgeotiff_la_OBJECTS) $(libgeotiff_la_LIBADD) $(LIBS)
554673
555674 mostlyclean-compile:
556675 -rm -f *.$(OBJEXT)
583702 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unit_of_measure.Plo@am__quote@
584703
585704 .c.o:
586 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
587 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
588 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
705 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
706 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
707 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
589708 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
590 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
709 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
591710
592711 .c.obj:
593 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
594 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
595 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
712 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
713 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
714 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
596715 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
597 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
716 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
598717
599718 .c.lo:
600 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
601 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
602 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
719 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
720 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
721 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
603722 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
604 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
723 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
605724
606725 datum.lo: csv/datum.c
607 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT datum.lo -MD -MP -MF $(DEPDIR)/datum.Tpo -c -o datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
608 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/datum.Tpo $(DEPDIR)/datum.Plo
609 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/datum.c' object='datum.lo' libtool=yes @AMDEPBACKSLASH@
726 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT datum.lo -MD -MP -MF $(DEPDIR)/datum.Tpo -c -o datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
727 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/datum.Tpo $(DEPDIR)/datum.Plo
728 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/datum.c' object='datum.lo' libtool=yes @AMDEPBACKSLASH@
610729 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
611 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
730 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o datum.lo `test -f 'csv/datum.c' || echo '$(srcdir)/'`csv/datum.c
612731
613732 ellipsoid.lo: csv/ellipsoid.c
614 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ellipsoid.lo -MD -MP -MF $(DEPDIR)/ellipsoid.Tpo -c -o ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
615 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ellipsoid.Tpo $(DEPDIR)/ellipsoid.Plo
616 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/ellipsoid.c' object='ellipsoid.lo' libtool=yes @AMDEPBACKSLASH@
733 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ellipsoid.lo -MD -MP -MF $(DEPDIR)/ellipsoid.Tpo -c -o ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
734 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ellipsoid.Tpo $(DEPDIR)/ellipsoid.Plo
735 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/ellipsoid.c' object='ellipsoid.lo' libtool=yes @AMDEPBACKSLASH@
617736 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
618 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
737 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ellipsoid.lo `test -f 'csv/ellipsoid.c' || echo '$(srcdir)/'`csv/ellipsoid.c
619738
620739 gcs.lo: csv/gcs.c
621 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gcs.lo -MD -MP -MF $(DEPDIR)/gcs.Tpo -c -o gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
622 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gcs.Tpo $(DEPDIR)/gcs.Plo
623 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/gcs.c' object='gcs.lo' libtool=yes @AMDEPBACKSLASH@
740 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gcs.lo -MD -MP -MF $(DEPDIR)/gcs.Tpo -c -o gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
741 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gcs.Tpo $(DEPDIR)/gcs.Plo
742 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/gcs.c' object='gcs.lo' libtool=yes @AMDEPBACKSLASH@
624743 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
625 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
744 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gcs.lo `test -f 'csv/gcs.c' || echo '$(srcdir)/'`csv/gcs.c
626745
627746 pcs.lo: csv/pcs.c
628 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pcs.lo -MD -MP -MF $(DEPDIR)/pcs.Tpo -c -o pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
629 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcs.Tpo $(DEPDIR)/pcs.Plo
630 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/pcs.c' object='pcs.lo' libtool=yes @AMDEPBACKSLASH@
747 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pcs.lo -MD -MP -MF $(DEPDIR)/pcs.Tpo -c -o pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
748 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pcs.Tpo $(DEPDIR)/pcs.Plo
749 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/pcs.c' object='pcs.lo' libtool=yes @AMDEPBACKSLASH@
631750 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
632 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
751 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pcs.lo `test -f 'csv/pcs.c' || echo '$(srcdir)/'`csv/pcs.c
633752
634753 prime_meridian.lo: csv/prime_meridian.c
635 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT prime_meridian.lo -MD -MP -MF $(DEPDIR)/prime_meridian.Tpo -c -o prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
636 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/prime_meridian.Tpo $(DEPDIR)/prime_meridian.Plo
637 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/prime_meridian.c' object='prime_meridian.lo' libtool=yes @AMDEPBACKSLASH@
754 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT prime_meridian.lo -MD -MP -MF $(DEPDIR)/prime_meridian.Tpo -c -o prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
755 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/prime_meridian.Tpo $(DEPDIR)/prime_meridian.Plo
756 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/prime_meridian.c' object='prime_meridian.lo' libtool=yes @AMDEPBACKSLASH@
638757 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
639 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
758 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o prime_meridian.lo `test -f 'csv/prime_meridian.c' || echo '$(srcdir)/'`csv/prime_meridian.c
640759
641760 projop_wparm.lo: csv/projop_wparm.c
642 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT projop_wparm.lo -MD -MP -MF $(DEPDIR)/projop_wparm.Tpo -c -o projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
643 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/projop_wparm.Tpo $(DEPDIR)/projop_wparm.Plo
644 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/projop_wparm.c' object='projop_wparm.lo' libtool=yes @AMDEPBACKSLASH@
761 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT projop_wparm.lo -MD -MP -MF $(DEPDIR)/projop_wparm.Tpo -c -o projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
762 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/projop_wparm.Tpo $(DEPDIR)/projop_wparm.Plo
763 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/projop_wparm.c' object='projop_wparm.lo' libtool=yes @AMDEPBACKSLASH@
645764 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
646 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
765 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o projop_wparm.lo `test -f 'csv/projop_wparm.c' || echo '$(srcdir)/'`csv/projop_wparm.c
647766
648767 unit_of_measure.lo: csv/unit_of_measure.c
649 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT unit_of_measure.lo -MD -MP -MF $(DEPDIR)/unit_of_measure.Tpo -c -o unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
650 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/unit_of_measure.Tpo $(DEPDIR)/unit_of_measure.Plo
651 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='csv/unit_of_measure.c' object='unit_of_measure.lo' libtool=yes @AMDEPBACKSLASH@
768 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT unit_of_measure.lo -MD -MP -MF $(DEPDIR)/unit_of_measure.Tpo -c -o unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
769 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/unit_of_measure.Tpo $(DEPDIR)/unit_of_measure.Plo
770 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv/unit_of_measure.c' object='unit_of_measure.lo' libtool=yes @AMDEPBACKSLASH@
652771 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
653 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
772 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o unit_of_measure.lo `test -f 'csv/unit_of_measure.c' || echo '$(srcdir)/'`csv/unit_of_measure.c
654773
655774 mostlyclean-libtool:
656775 -rm -f *.lo
662781 -rm -f libtool config.lt
663782 install-dist_csvDATA: $(dist_csv_DATA)
664783 @$(NORMAL_INSTALL)
665 test -z "$(csvdir)" || $(MKDIR_P) "$(DESTDIR)$(csvdir)"
666784 @list='$(dist_csv_DATA)'; test -n "$(csvdir)" || list=; \
785 if test -n "$$list"; then \
786 echo " $(MKDIR_P) '$(DESTDIR)$(csvdir)'"; \
787 $(MKDIR_P) "$(DESTDIR)$(csvdir)" || exit 1; \
788 fi; \
667789 for p in $$list; do \
668790 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
669791 echo "$$d$$p"; \
677799 @$(NORMAL_UNINSTALL)
678800 @list='$(dist_csv_DATA)'; test -n "$(csvdir)" || list=; \
679801 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
680 test -n "$$files" || exit 0; \
681 echo " ( cd '$(DESTDIR)$(csvdir)' && rm -f" $$files ")"; \
682 cd "$(DESTDIR)$(csvdir)" && rm -f $$files
802 dir='$(DESTDIR)$(csvdir)'; $(am__uninstall_files_from_dir)
683803 install-includeHEADERS: $(include_HEADERS)
684804 @$(NORMAL_INSTALL)
685 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
686805 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
806 if test -n "$$list"; then \
807 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
808 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
809 fi; \
687810 for p in $$list; do \
688811 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
689812 echo "$$d$$p"; \
697820 @$(NORMAL_UNINSTALL)
698821 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
699822 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
700 test -n "$$files" || exit 0; \
701 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
702 cd "$(DESTDIR)$(includedir)" && rm -f $$files
823 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
703824
704825 # This directory's subdirectories are mostly independent; you can cd
705 # into them and run `make' without going through this Makefile.
706 # To change the values of `make' variables: instead of editing Makefiles,
707 # (1) if the variable is set in `config.status', edit `config.status'
708 # (which will cause the Makefiles to be regenerated when you run `make');
709 # (2) otherwise, pass the desired values on the `make' command line.
710 $(RECURSIVE_TARGETS):
711 @fail= failcom='exit 1'; \
712 for f in x $$MAKEFLAGS; do \
713 case $$f in \
714 *=* | --[!k]*);; \
715 *k*) failcom='fail=yes';; \
716 esac; \
717 done; \
826 # into them and run 'make' without going through this Makefile.
827 # To change the values of 'make' variables: instead of editing Makefiles,
828 # (1) if the variable is set in 'config.status', edit 'config.status'
829 # (which will cause the Makefiles to be regenerated when you run 'make');
830 # (2) otherwise, pass the desired values on the 'make' command line.
831 $(am__recursive_targets):
832 @fail=; \
833 if $(am__make_keepgoing); then \
834 failcom='fail=yes'; \
835 else \
836 failcom='exit 1'; \
837 fi; \
718838 dot_seen=no; \
719839 target=`echo $@ | sed s/-recursive//`; \
720 list='$(SUBDIRS)'; for subdir in $$list; do \
840 case "$@" in \
841 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
842 *) list='$(SUBDIRS)' ;; \
843 esac; \
844 for subdir in $$list; do \
721845 echo "Making $$target in $$subdir"; \
722846 if test "$$subdir" = "."; then \
723847 dot_seen=yes; \
732856 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
733857 fi; test -z "$$fail"
734858
735 $(RECURSIVE_CLEAN_TARGETS):
736 @fail= failcom='exit 1'; \
737 for f in x $$MAKEFLAGS; do \
738 case $$f in \
739 *=* | --[!k]*);; \
740 *k*) failcom='fail=yes';; \
741 esac; \
742 done; \
743 dot_seen=no; \
744 case "$@" in \
745 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
746 *) list='$(SUBDIRS)' ;; \
747 esac; \
748 rev=''; for subdir in $$list; do \
749 if test "$$subdir" = "."; then :; else \
750 rev="$$subdir $$rev"; \
751 fi; \
752 done; \
753 rev="$$rev ."; \
754 target=`echo $@ | sed s/-recursive//`; \
755 for subdir in $$rev; do \
756 echo "Making $$target in $$subdir"; \
757 if test "$$subdir" = "."; then \
758 local_target="$$target-am"; \
759 else \
760 local_target="$$target"; \
761 fi; \
762 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
763 || eval $$failcom; \
764 done && test -z "$$fail"
765 tags-recursive:
766 list='$(SUBDIRS)'; for subdir in $$list; do \
767 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
768 done
769 ctags-recursive:
770 list='$(SUBDIRS)'; for subdir in $$list; do \
771 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
772 done
773
774 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
775 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
776 unique=`for i in $$list; do \
777 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
778 done | \
779 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
780 END { if (nonempty) { for (i in files) print i; }; }'`; \
781 mkid -fID $$unique
782 tags: TAGS
783
784 TAGS: tags-recursive $(HEADERS) $(SOURCES) geo_config.h.in $(TAGS_DEPENDENCIES) \
785 $(TAGS_FILES) $(LISP)
859 ID: $(am__tagged_files)
860 $(am__define_uniq_tagged_files); mkid -fID $$unique
861 tags: tags-recursive
862 TAGS: tags
863
864 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
786865 set x; \
787866 here=`pwd`; \
788867 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
798877 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
799878 fi; \
800879 done; \
801 list='$(SOURCES) $(HEADERS) geo_config.h.in $(LISP) $(TAGS_FILES)'; \
802 unique=`for i in $$list; do \
803 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
804 done | \
805 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
806 END { if (nonempty) { for (i in files) print i; }; }'`; \
880 $(am__define_uniq_tagged_files); \
807881 shift; \
808882 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
809883 test -n "$$unique" || unique=$$empty_fix; \
815889 $$unique; \
816890 fi; \
817891 fi
818 ctags: CTAGS
819 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) geo_config.h.in $(TAGS_DEPENDENCIES) \
820 $(TAGS_FILES) $(LISP)
821 list='$(SOURCES) $(HEADERS) geo_config.h.in $(LISP) $(TAGS_FILES)'; \
822 unique=`for i in $$list; do \
823 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
824 done | \
825 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
826 END { if (nonempty) { for (i in files) print i; }; }'`; \
892 ctags: ctags-recursive
893
894 CTAGS: ctags
895 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
896 $(am__define_uniq_tagged_files); \
827897 test -z "$(CTAGS_ARGS)$$unique" \
828898 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
829899 $$unique
832902 here=`$(am__cd) $(top_builddir) && pwd` \
833903 && $(am__cd) $(top_srcdir) \
834904 && gtags -i $(GTAGS_ARGS) "$$here"
905 cscope: cscope.files
906 test ! -s cscope.files \
907 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
908 clean-cscope:
909 -rm -f cscope.files
910 cscope.files: clean-cscope cscopelist
911 cscopelist: cscopelist-recursive
912
913 cscopelist-am: $(am__tagged_files)
914 list='$(am__tagged_files)'; \
915 case "$(srcdir)" in \
916 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
917 *) sdir=$(subdir)/$(srcdir) ;; \
918 esac; \
919 for i in $$list; do \
920 if test -f "$$i"; then \
921 echo "$(subdir)/$$i"; \
922 else \
923 echo "$$sdir/$$i"; \
924 fi; \
925 done >> $(top_builddir)/cscope.files
835926
836927 distclean-tags:
837928 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
929 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
838930
839931 distdir: $(DISTFILES)
840932 $(am__remove_distdir)
870962 done
871963 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
872964 if test "$$subdir" = .; then :; else \
873 test -d "$(distdir)/$$subdir" \
874 || $(MKDIR_P) "$(distdir)/$$subdir" \
875 || exit 1; \
876 fi; \
877 done
878 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
879 if test "$$subdir" = .; then :; else \
965 $(am__make_dryrun) \
966 || test -d "$(distdir)/$$subdir" \
967 || $(MKDIR_P) "$(distdir)/$$subdir" \
968 || exit 1; \
880969 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
881970 $(am__relativize); \
882971 new_distdir=$$reldir; \
905994 || chmod -R a+r "$(distdir)"
906995 dist-gzip: distdir
907996 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
908 $(am__remove_distdir)
997 $(am__post_remove_distdir)
909998
910999 dist-bzip2: distdir
911 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
912 $(am__remove_distdir)
913
914 dist-lzma: distdir
915 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
916 $(am__remove_distdir)
1000 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
1001 $(am__post_remove_distdir)
1002
1003 dist-lzip: distdir
1004 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
1005 $(am__post_remove_distdir)
9171006
9181007 dist-xz: distdir
919 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
920 $(am__remove_distdir)
1008 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
1009 $(am__post_remove_distdir)
9211010
9221011 dist-tarZ: distdir
1012 @echo WARNING: "Support for shar distribution archives is" \
1013 "deprecated." >&2
1014 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
9231015 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
924 $(am__remove_distdir)
1016 $(am__post_remove_distdir)
9251017
9261018 dist-shar: distdir
1019 @echo WARNING: "Support for distribution archives compressed with" \
1020 "legacy program 'compress' is deprecated." >&2
1021 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
9271022 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
928 $(am__remove_distdir)
1023 $(am__post_remove_distdir)
9291024 dist-zip: distdir
9301025 -rm -f $(distdir).zip
9311026 zip -rq $(distdir).zip $(distdir)
932 $(am__remove_distdir)
933
934 dist dist-all: distdir
935 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
936 -rm -f $(distdir).zip
937 zip -rq $(distdir).zip $(distdir)
938 $(am__remove_distdir)
1027 $(am__post_remove_distdir)
1028
1029 dist dist-all:
1030 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
1031 $(am__post_remove_distdir)
9391032
9401033 # This target untars the dist file and tries a VPATH configuration. Then
9411034 # it guarantees that the distribution is self-contained by making another
9461039 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
9471040 *.tar.bz2*) \
9481041 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
949 *.tar.lzma*) \
950 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
1042 *.tar.lz*) \
1043 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
9511044 *.tar.xz*) \
9521045 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
9531046 *.tar.Z*) \
9571050 *.zip*) \
9581051 unzip $(distdir).zip ;;\
9591052 esac
960 chmod -R a-w $(distdir); chmod a+w $(distdir)
961 mkdir $(distdir)/_build
962 mkdir $(distdir)/_inst
1053 chmod -R a-w $(distdir)
1054 chmod u+w $(distdir)
1055 mkdir $(distdir)/_build $(distdir)/_inst
9631056 chmod a-w $(distdir)
9641057 test -d $(distdir)/_build || exit 0; \
9651058 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
9661059 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
9671060 && am__cwd=`pwd` \
9681061 && $(am__cd) $(distdir)/_build \
969 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1062 && ../configure \
1063 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
9701064 $(DISTCHECK_CONFIGURE_FLAGS) \
1065 --srcdir=.. --prefix="$$dc_install_base" \
9711066 && $(MAKE) $(AM_MAKEFLAGS) \
9721067 && $(MAKE) $(AM_MAKEFLAGS) dvi \
9731068 && $(MAKE) $(AM_MAKEFLAGS) check \
9901085 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
9911086 && cd "$$am__cwd" \
9921087 || exit 1
993 $(am__remove_distdir)
1088 $(am__post_remove_distdir)
9941089 @(echo "$(distdir) archives ready for distribution: "; \
9951090 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
9961091 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
9971092 distuninstallcheck:
998 @$(am__cd) '$(distuninstallcheck_dir)' \
999 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1093 @test -n '$(distuninstallcheck_dir)' || { \
1094 echo 'ERROR: trying to run $@ with an empty' \
1095 '$$(distuninstallcheck_dir)' >&2; \
1096 exit 1; \
1097 }; \
1098 $(am__cd) '$(distuninstallcheck_dir)' || { \
1099 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
1100 exit 1; \
1101 }; \
1102 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
10001103 || { echo "ERROR: files left after uninstall:" ; \
10011104 if test -n "$(DESTDIR)"; then \
10021105 echo " (check DESTDIR support)"; \
10301133
10311134 installcheck: installcheck-recursive
10321135 install-strip:
1033 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1034 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1035 `test -z '$(STRIP)' || \
1036 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1136 if test -z '$(STRIP)'; then \
1137 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1138 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1139 install; \
1140 else \
1141 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1142 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1143 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1144 fi
10371145 mostlyclean-generic:
10381146 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
10391147
11211229 uninstall-am: uninstall-dist_csvDATA uninstall-includeHEADERS \
11221230 uninstall-libLTLIBRARIES
11231231
1124 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
1125 ctags-recursive install-am install-strip tags-recursive
1126
1127 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
1128 all all-am am--refresh check check-am clean clean-generic \
1129 clean-libLTLIBRARIES clean-libtool ctags ctags-recursive dist \
1130 dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
1131 dist-xz dist-zip distcheck distclean distclean-compile \
1132 distclean-generic distclean-hdr distclean-libtool \
1133 distclean-tags distcleancheck distdir distuninstallcheck dvi \
1134 dvi-am html html-am info info-am install install-am \
1135 install-data install-data-am install-dist_csvDATA install-dvi \
1136 install-dvi-am install-exec install-exec-am install-html \
1137 install-html-am install-includeHEADERS install-info \
1138 install-info-am install-libLTLIBRARIES install-man install-pdf \
1139 install-pdf-am install-ps install-ps-am install-strip \
1140 installcheck installcheck-am installdirs installdirs-am \
1141 maintainer-clean maintainer-clean-generic mostlyclean \
1142 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1143 pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
1144 uninstall-dist_csvDATA uninstall-includeHEADERS \
1145 uninstall-libLTLIBRARIES
1232 .MAKE: $(am__recursive_targets) all install-am install-strip
1233
1234 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1235 am--refresh check check-am clean clean-cscope clean-generic \
1236 clean-libLTLIBRARIES clean-libtool cscope cscopelist-am ctags \
1237 ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \
1238 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
1239 distclean-compile distclean-generic distclean-hdr \
1240 distclean-libtool distclean-tags distcleancheck distdir \
1241 distuninstallcheck dvi dvi-am html html-am info info-am \
1242 install install-am install-data install-data-am \
1243 install-dist_csvDATA install-dvi install-dvi-am install-exec \
1244 install-exec-am install-html install-html-am \
1245 install-includeHEADERS install-info install-info-am \
1246 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
1247 install-ps install-ps-am install-strip installcheck \
1248 installcheck-am installdirs installdirs-am maintainer-clean \
1249 maintainer-clean-generic mostlyclean mostlyclean-compile \
1250 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1251 tags tags-am uninstall uninstall-am uninstall-dist_csvDATA \
1252 uninstall-includeHEADERS uninstall-libLTLIBRARIES
11461253
11471254
11481255 @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
+1958
-1128
aclocal.m4 less more
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
16 [m4_warning([this file was generated for autoconf 2.65.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
1718 You have another version of autoconf. It may work, but is not guaranteed to.
1819 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2021
2122 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2223 #
2324 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
25 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26 # Foundation, Inc.
2527 # Written by Gordon Matzigkeit, 1996
2628 #
2729 # This file is free software; the Free Software Foundation gives
3032
3133 m4_define([_LT_COPYING], [dnl
3234 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
35 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36 # Foundation, Inc.
3437 # Written by Gordon Matzigkeit, 1996
3538 #
3639 # This file is part of GNU Libtool.
5760 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5861 ])
5962
60 # serial 56 LT_INIT
63 # serial 57 LT_INIT
6164
6265
6366 # LT_PREREQ(VERSION)
8689 # ------------------
8790 AC_DEFUN([LT_INIT],
8891 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
92 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8993 AC_BEFORE([$0], [LT_LANG])dnl
9094 AC_BEFORE([$0], [LT_OUTPUT])dnl
9195 AC_BEFORE([$0], [LTDL_INIT])dnl
101105 AC_REQUIRE([LTVERSION_VERSION])dnl
102106 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
103107 m4_require([_LT_PROG_LTMAIN])dnl
108
109 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
104110
105111 dnl Parse OPTIONS
106112 _LT_SET_OPTIONS([$0], [$1])
138144 *) break;;
139145 esac
140146 done
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
142148 ])
143149
144150
158164 m4_defun([_LT_SETUP],
159165 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
160166 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
167 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
168 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
169
170 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
171 dnl
161172 _LT_DECL([], [host_alias], [0], [The host system])dnl
162173 _LT_DECL([], [host], [0])dnl
163174 _LT_DECL([], [host_os], [0])dnl
180191 dnl
181192 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
182193 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
194 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
183195 m4_require([_LT_CMD_RELOAD])dnl
184196 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
197 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185198 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186199 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
200 m4_require([_LT_WITH_SYSROOT])dnl
187201
188202 _LT_CONFIG_LIBTOOL_INIT([
189203 # See if we are running on zsh, and set the options which allow our
199213 _LT_CHECK_OBJDIR
200214
201215 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
203216
204217 case $host_os in
205218 aix3*)
213226 ;;
214227 esac
215228
216 # Sed substitution that helps us do robust quoting. It backslashifies
217 # metacharacters that are still active within double-quoted strings.
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
219
220 # Same as above, but do not quote variable references.
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
222
223 # Sed substitution to delay expansion of an escaped shell variable in a
224 # double_quote_subst'ed string.
225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
230 # Sed substitution to avoid accidental globbing in evaled expressions
231 no_glob_subst='s/\*/\\\*/g'
232
233229 # Global variables:
234230 ofile=libtool
235231 can_build_shared=yes
269265 _LT_CONFIG_COMMANDS
270266 ])# _LT_SETUP
271267
268
269 # _LT_PREPARE_SED_QUOTE_VARS
270 # --------------------------
271 # Define a few sed substitution that help us do robust quoting.
272 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
273 [# Backslashify metacharacters that are still active within
274 # double-quoted strings.
275 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
276
277 # Same as above, but do not quote variable references.
278 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
279
280 # Sed substitution to delay expansion of an escaped shell variable in a
281 # double_quote_subst'ed string.
282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
283
284 # Sed substitution to delay expansion of an escaped single quote.
285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
286
287 # Sed substitution to avoid accidental globbing in evaled expressions
288 no_glob_subst='s/\*/\\\*/g'
289 ])
272290
273291 # _LT_PROG_LTMAIN
274292 # ---------------
422440 # declaration there will have the same value as in `configure'. VARNAME
423441 # must have a single quote delimited value for this to work.
424442 m4_define([_LT_CONFIG_STATUS_DECLARE],
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
443 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
426444
427445
428446 # _LT_CONFIG_STATUS_DECLARATIONS
432450 # embedded single quotes properly. In configure, this macro expands
433451 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
434452 #
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
453 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
436454 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
437455 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
438456 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
531549 LTCFLAGS='$LTCFLAGS'
532550 compiler='$compiler_DEFAULT'
533551
552 # A function that is used when there is no print builtin or printf.
553 func_fallback_echo ()
554 {
555 eval 'cat <<_LTECHO_EOF
556 \$[]1
557 _LTECHO_EOF'
558 }
559
534560 # Quote evaled strings.
535561 for var in lt_decl_all_varnames([[ \
536562 ]], lt_decl_quote_varnames); do
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
538564 *[[\\\\\\\`\\"\\\$]]*)
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
540566 ;;
541567 *)
542568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
547573 # Double-quote double-evaled strings.
548574 for var in lt_decl_all_varnames([[ \
549575 ]], lt_decl_dquote_varnames); do
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
551577 *[[\\\\\\\`\\"\\\$]]*)
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
553579 ;;
554580 *)
555581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
557583 esac
558584 done
559585
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
567586 _LT_OUTPUT_LIBTOOL_INIT
568587 ])
569588
589 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
590 # ------------------------------------
591 # Generate a child script FILE with all initialization necessary to
592 # reuse the environment learned by the parent script, and make the
593 # file executable. If COMMENT is supplied, it is inserted after the
594 # `#!' sequence but before initialization text begins. After this
595 # macro, additional text can be appended to FILE to form the body of
596 # the child script. The macro ends with non-zero status if the
597 # file could not be fully written (such as if the disk is full).
598 m4_ifdef([AS_INIT_GENERATED],
599 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
600 [m4_defun([_LT_GENERATED_FILE_INIT],
601 [m4_require([AS_PREPARE])]dnl
602 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
603 [lt_write_fail=0
604 cat >$1 <<_ASEOF || lt_write_fail=1
605 #! $SHELL
606 # Generated by $as_me.
607 $2
608 SHELL=\${CONFIG_SHELL-$SHELL}
609 export SHELL
610 _ASEOF
611 cat >>$1 <<\_ASEOF || lt_write_fail=1
612 AS_SHELL_SANITIZE
613 _AS_PREPARE
614 exec AS_MESSAGE_FD>&1
615 _ASEOF
616 test $lt_write_fail = 0 && chmod +x $1[]dnl
617 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
570618
571619 # LT_OUTPUT
572620 # ---------
576624 AC_DEFUN([LT_OUTPUT],
577625 [: ${CONFIG_LT=./config.lt}
578626 AC_MSG_NOTICE([creating $CONFIG_LT])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
627 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
628 [# Run this file to recreate a libtool stub with the current configuration.])
629
630 cat >>"$CONFIG_LT" <<\_LTEOF
584631 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
587
588 cat >>"$CONFIG_LT" <<\_LTEOF
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
593632 exec AS_MESSAGE_LOG_FD>>config.log
594633 {
595634 echo
615654 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
616655 configured by $[0], generated by m4_PACKAGE_STRING.
617656
618 Copyright (C) 2008 Free Software Foundation, Inc.
657 Copyright (C) 2011 Free Software Foundation, Inc.
619658 This config.lt script is free software; the Free Software Foundation
620659 gives unlimited permision to copy, distribute and modify it."
621660
660699 # appending to config.log, which fails on DOS, as config.log is still kept
661700 # open by configure. Here we exec the FD to /dev/null, effectively closing
662701 # config.log, so it can be properly (re)opened and appended to by config.lt.
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
702 lt_cl_success=:
703 test "$silent" = yes &&
704 lt_config_lt_args="$lt_config_lt_args --quiet"
705 exec AS_MESSAGE_LOG_FD>/dev/null
706 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
707 exec AS_MESSAGE_LOG_FD>>config.log
708 $lt_cl_success || AS_EXIT(1)
672709 ])# LT_OUTPUT
673710
674711
731768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
732769 # text mode, it properly converts lines to CR/LF. This bash problem
733770 # is reportedly fixed, but why not run on old versions too?
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
771 sed '$q' "$ltmain" >> "$cfgfile" \
772 || (rm -f "$cfgfile"; exit 1)
773
774 _LT_PROG_REPLACE_SHELLFNS
775
776 mv -f "$cfgfile" "$ofile" ||
743777 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
744778 chmod +x "$ofile"
745779 ],
784818 m4_case([$1],
785819 [C], [_LT_LANG(C)],
786820 [C++], [_LT_LANG(CXX)],
821 [Go], [_LT_LANG(GO)],
787822 [Java], [_LT_LANG(GCJ)],
788823 [Fortran 77], [_LT_LANG(F77)],
789824 [Fortran], [_LT_LANG(FC)],
803838 m4_define([_LT_LANG_]$1[_enabled], [])dnl
804839 _LT_LANG_$1_CONFIG($1)])dnl
805840 ])# _LT_LANG
841
842
843 m4_ifndef([AC_PROG_GO], [
844 # NOTE: This macro has been submitted for inclusion into #
845 # GNU Autoconf as AC_PROG_GO. When it is available in #
846 # a released version of Autoconf we should remove this #
847 # macro and use it instead. #
848 m4_defun([AC_PROG_GO],
849 [AC_LANG_PUSH(Go)dnl
850 AC_ARG_VAR([GOC], [Go compiler command])dnl
851 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
852 _AC_ARG_VAR_LDFLAGS()dnl
853 AC_CHECK_TOOL(GOC, gccgo)
854 if test -z "$GOC"; then
855 if test -n "$ac_tool_prefix"; then
856 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
857 fi
858 fi
859 if test -z "$GOC"; then
860 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
861 fi
862 ])#m4_defun
863 ])#m4_ifndef
806864
807865
808866 # _LT_LANG_DEFAULT_CONFIG
835893 m4_ifdef([LT_PROG_GCJ],
836894 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
837895
896 AC_PROVIDE_IFELSE([AC_PROG_GO],
897 [LT_LANG(GO)],
898 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
899
838900 AC_PROVIDE_IFELSE([LT_PROG_RC],
839901 [LT_LANG(RC)],
840902 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
845907 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
846908 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
847909 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
910 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
848911 dnl aclocal-1.4 backwards compatibility:
849912 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
850913 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
851914 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
852915 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
916 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
853917
854918
855919 # _LT_TAG_COMPILER
935999 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9361000 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9371001 _lt_result=$?
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1002 # If there is a non-empty error log, and "single_module"
1003 # appears in it, assume the flag caused a linker warning
1004 if test -s conftest.err && $GREP single_module conftest.err; then
1005 cat conftest.err >&AS_MESSAGE_LOG_FD
1006 # Otherwise, if the output was created with a 0 exit code from
1007 # the compiler, it worked.
1008 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9391009 lt_cv_apple_cc_single_mod=yes
9401010 else
9411011 cat conftest.err >&AS_MESSAGE_LOG_FD
9431013 rm -rf libconftest.dylib*
9441014 rm -f conftest.*
9451015 fi])
1016
9461017 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9471018 [lt_cv_ld_exported_symbols_list],
9481019 [lt_cv_ld_exported_symbols_list=no
9531024 [lt_cv_ld_exported_symbols_list=yes],
9541025 [lt_cv_ld_exported_symbols_list=no])
9551026 LDFLAGS="$save_LDFLAGS"
1027 ])
1028
1029 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1030 [lt_cv_ld_force_load=no
1031 cat > conftest.c << _LT_EOF
1032 int forced_loaded() { return 2;}
1033 _LT_EOF
1034 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1035 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1036 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1037 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1038 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1039 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1040 cat > conftest.c << _LT_EOF
1041 int main() { return 0;}
1042 _LT_EOF
1043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1045 _lt_result=$?
1046 if test -s conftest.err && $GREP force_load conftest.err; then
1047 cat conftest.err >&AS_MESSAGE_LOG_FD
1048 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1049 lt_cv_ld_force_load=yes
1050 else
1051 cat conftest.err >&AS_MESSAGE_LOG_FD
1052 fi
1053 rm -f conftest.err libconftest.a conftest conftest.c
1054 rm -rf conftest.dSYM
9561055 ])
9571056 case $host_os in
9581057 rhapsody* | darwin1.[[012]])
9811080 else
9821081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9831082 fi
984 if test "$DSYMUTIL" != ":"; then
1083 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9851084 _lt_dsymutil='~$DSYMUTIL $lib || :'
9861085 else
9871086 _lt_dsymutil=
9911090 ])
9921091
9931092
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
1093 # _LT_DARWIN_LINKER_FEATURES([TAG])
1094 # ---------------------------------
9961095 # Checks for linker and compiler features on darwin
9971096 m4_defun([_LT_DARWIN_LINKER_FEATURES],
9981097 [
10011100 _LT_TAGVAR(hardcode_direct, $1)=no
10021101 _LT_TAGVAR(hardcode_automatic, $1)=yes
10031102 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1103 if test "$lt_cv_ld_force_load" = "yes"; then
1104 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1105 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1106 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1107 else
1108 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1109 fi
10051110 _LT_TAGVAR(link_all_deplibs, $1)=yes
10061111 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
10071112 case $cc_basename in
10091114 *) _lt_dar_can_shared=$GCC ;;
10101115 esac
10111116 if test "$_lt_dar_can_shared" = "yes"; then
1012 output_verbose_link_cmd=echo
1117 output_verbose_link_cmd=func_echo_all
10131118 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10141119 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10151120 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10251130 fi
10261131 ])
10271132
1028 # _LT_SYS_MODULE_PATH_AIX
1029 # -----------------------
1133 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1134 # ----------------------------------
10301135 # Links a minimal program and checks the executable
10311136 # for the system default hardcoded library path. In most cases,
10321137 # this is /usr/lib:/lib, but when the MPI compilers are used
10331138 # the location of the communication and MPI libs are included too.
10341139 # If we don't find anything, use the default library path according
10351140 # to the aix ld manual.
1141 # Store the results from the different compilers for each TAGNAME.
1142 # Allow to override them for all tags through lt_cv_aix_libpath.
10361143 m4_defun([_LT_SYS_MODULE_PATH_AIX],
10371144 [m4_require([_LT_DECL_SED])dnl
1038 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1039 lt_aix_libpath_sed='
1040 /Import File Strings/,/^$/ {
1041 /^0/ {
1042 s/^0 *\(.*\)$/\1/
1043 p
1044 }
1045 }'
1046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1047 # Check for a 64-bit object if we didn't find anything.
1048 if test -z "$aix_libpath"; then
1049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1050 fi],[])
1051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1145 if test "${lt_cv_aix_libpath+set}" = set; then
1146 aix_libpath=$lt_cv_aix_libpath
1147 else
1148 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1149 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1150 lt_aix_libpath_sed='[
1151 /Import File Strings/,/^$/ {
1152 /^0/ {
1153 s/^0 *\([^ ]*\) *$/\1/
1154 p
1155 }
1156 }]'
1157 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1158 # Check for a 64-bit object if we didn't find anything.
1159 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1160 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1161 fi],[])
1162 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1164 fi
1165 ])
1166 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1167 fi
10521168 ])# _LT_SYS_MODULE_PATH_AIX
10531169
10541170
10551171 # _LT_SHELL_INIT(ARG)
10561172 # -------------------
10571173 m4_define([_LT_SHELL_INIT],
1058 [ifdef([AC_DIVERSION_NOTICE],
1059 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1060 [AC_DIVERT_PUSH(NOTICE)])
1061 $1
1062 AC_DIVERT_POP
1063 ])# _LT_SHELL_INIT
1174 [m4_divert_text([M4SH-INIT], [$1
1175 ])])# _LT_SHELL_INIT
1176
10641177
10651178
10661179 # _LT_PROG_ECHO_BACKSLASH
10671180 # -----------------------
1068 # Add some code to the start of the generated configure script which
1069 # will find an echo command which doesn't interpret backslashes.
1181 # Find how we can fake an echo command that does not interpret backslash.
1182 # In particular, with Autoconf 2.60 or later we add some code to the start
1183 # of the generated configure script which will find a shell with a builtin
1184 # printf (which we can use as an echo command).
10701185 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1071 [_LT_SHELL_INIT([
1072 # Check that we are running under the correct shell.
1073 SHELL=${CONFIG_SHELL-/bin/sh}
1074
1075 case X$lt_ECHO in
1076 X*--fallback-echo)
1077 # Remove one level of quotation (which was required for Make).
1078 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1079 ;;
1186 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1189
1190 AC_MSG_CHECKING([how to print strings])
1191 # Test print first, because it will be a builtin if present.
1192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1194 ECHO='print -r --'
1195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1196 ECHO='printf %s\n'
1197 else
1198 # Use this function as a fallback that always works.
1199 func_fallback_echo ()
1200 {
1201 eval 'cat <<_LTECHO_EOF
1202 $[]1
1203 _LTECHO_EOF'
1204 }
1205 ECHO='func_fallback_echo'
1206 fi
1207
1208 # func_echo_all arg...
1209 # Invoke $ECHO with all args, space-separated.
1210 func_echo_all ()
1211 {
1212 $ECHO "$*"
1213 }
1214
1215 case "$ECHO" in
1216 printf*) AC_MSG_RESULT([printf]) ;;
1217 print*) AC_MSG_RESULT([print -r]) ;;
1218 *) AC_MSG_RESULT([cat]) ;;
10801219 esac
10811220
1082 ECHO=${lt_ECHO-echo}
1083 if test "X[$]1" = X--no-reexec; then
1084 # Discard the --no-reexec flag, and continue.
1085 shift
1086 elif test "X[$]1" = X--fallback-echo; then
1087 # Avoid inline document here, it may be left over
1088 :
1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1090 # Yippee, $ECHO works!
1091 :
1092 else
1093 # Restart under the correct shell.
1094 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1095 fi
1096
1097 if test "X[$]1" = X--fallback-echo; then
1098 # used as fallback echo
1099 shift
1100 cat <<_LT_EOF
1101 [$]*
1102 _LT_EOF
1103 exit 0
1104 fi
1105
1106 # The HP-UX ksh and POSIX shell print the target directory to stdout
1107 # if CDPATH is set.
1108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1109
1110 if test -z "$lt_ECHO"; then
1111 if test "X${echo_test_string+set}" != Xset; then
1112 # find a string as large as possible, as long as the shell can cope with it
1113 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1114 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1115 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1116 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1117 then
1118 break
1119 fi
1120 done
1121 fi
1122
1123 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 :
1127 else
1128 # The Solaris, AIX, and Digital Unix default echo programs unquote
1129 # backslashes. This makes it impossible to quote backslashes using
1130 # echo "$something" | sed 's/\\/\\\\/g'
1131 #
1132 # So, first we look for a working echo in the user's PATH.
1133
1134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1135 for dir in $PATH /usr/ucb; do
1136 IFS="$lt_save_ifs"
1137 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1138 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1139 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1140 test "X$echo_testing_string" = "X$echo_test_string"; then
1141 ECHO="$dir/echo"
1142 break
1143 fi
1144 done
1145 IFS="$lt_save_ifs"
1146
1147 if test "X$ECHO" = Xecho; then
1148 # We didn't find a better echo, so look for alternatives.
1149 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1150 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1151 test "X$echo_testing_string" = "X$echo_test_string"; then
1152 # This shell has a builtin print -r that does the trick.
1153 ECHO='print -r'
1154 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1155 test "X$CONFIG_SHELL" != X/bin/ksh; then
1156 # If we have ksh, try running configure again with it.
1157 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1158 export ORIGINAL_CONFIG_SHELL
1159 CONFIG_SHELL=/bin/ksh
1160 export CONFIG_SHELL
1161 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1162 else
1163 # Try using printf.
1164 ECHO='printf %s\n'
1165 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1166 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 # Cool, printf works
1169 :
1170 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1175 export CONFIG_SHELL
1176 SHELL="$CONFIG_SHELL"
1177 export SHELL
1178 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1179 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1180 test "X$echo_testing_string" = 'X\t' &&
1181 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1182 test "X$echo_testing_string" = "X$echo_test_string"; then
1183 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1184 else
1185 # maybe with a smaller string...
1186 prev=:
1187
1188 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1189 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1190 then
1191 break
1192 fi
1193 prev="$cmd"
1194 done
1195
1196 if test "$prev" != 'sed 50q "[$]0"'; then
1197 echo_test_string=`eval $prev`
1198 export echo_test_string
1199 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1200 else
1201 # Oops. We lost completely, so just stick with echo.
1202 ECHO=echo
1203 fi
1204 fi
1205 fi
1206 fi
1207 fi
1208 fi
1209
1210 # Copy echo and quote the copy suitably for passing to libtool from
1211 # the Makefile, instead of quoting the original, which is used later.
1212 lt_ECHO=$ECHO
1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1214 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1215 fi
1216
1217 AC_SUBST(lt_ECHO)
1218 ])
1221 m4_ifdef([_AS_DETECT_SUGGESTED],
1222 [_AS_DETECT_SUGGESTED([
1223 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1227 PATH=/empty FPATH=/empty; export PATH FPATH
1228 test "X`printf %s $ECHO`" = "X$ECHO" \
1229 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1230
12191231 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1220 _LT_DECL([], [ECHO], [1],
1221 [An echo program that does not interpret backslashes])
1232 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
12221233 ])# _LT_PROG_ECHO_BACKSLASH
12231234
1235
1236 # _LT_WITH_SYSROOT
1237 # ----------------
1238 AC_DEFUN([_LT_WITH_SYSROOT],
1239 [AC_MSG_CHECKING([for sysroot])
1240 AC_ARG_WITH([sysroot],
1241 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242 (or the compiler's sysroot if not specified).],
1243 [], [with_sysroot=no])
1244
1245 dnl lt_sysroot will always be passed unquoted. We quote it here
1246 dnl in case the user passed a directory name.
1247 lt_sysroot=
1248 case ${with_sysroot} in #(
1249 yes)
1250 if test "$GCC" = yes; then
1251 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1252 fi
1253 ;; #(
1254 /*)
1255 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1256 ;; #(
1257 no|'')
1258 ;; #(
1259 *)
1260 AC_MSG_RESULT([${with_sysroot}])
1261 AC_MSG_ERROR([The sysroot must be an absolute path.])
1262 ;;
1263 esac
1264
1265 AC_MSG_RESULT([${lt_sysroot:-no}])
1266 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267 [dependent libraries, and in which our libraries should be installed.])])
12241268
12251269 # _LT_ENABLE_LOCK
12261270 # ---------------
12501294 ;;
12511295 *-*-irix6*)
12521296 # Find out which ABI we are using.
1253 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1297 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12541298 if AC_TRY_EVAL(ac_compile); then
12551299 if test "$lt_cv_prog_gnu_ld" = yes; then
12561300 case `/usr/bin/file conftest.$ac_objext` in
12811325 rm -rf conftest*
12821326 ;;
12831327
1284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1328 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12851329 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12861330 # Find out which ABI we are using.
12871331 echo 'int i;' > conftest.$ac_ext
12931337 LD="${LD-ld} -m elf_i386_fbsd"
12941338 ;;
12951339 x86_64-*linux*)
1296 LD="${LD-ld} -m elf_i386"
1340 case `/usr/bin/file conftest.o` in
1341 *x86-64*)
1342 LD="${LD-ld} -m elf32_x86_64"
1343 ;;
1344 *)
1345 LD="${LD-ld} -m elf_i386"
1346 ;;
1347 esac
12971348 ;;
1298 ppc64-*linux*|powerpc64-*linux*)
1349 powerpc64le-*)
1350 LD="${LD-ld} -m elf32lppclinux"
1351 ;;
1352 powerpc64-*)
12991353 LD="${LD-ld} -m elf32ppclinux"
13001354 ;;
13011355 s390x-*linux*)
13141368 x86_64-*linux*)
13151369 LD="${LD-ld} -m elf_x86_64"
13161370 ;;
1317 ppc*-*linux*|powerpc*-*linux*)
1371 powerpcle-*)
1372 LD="${LD-ld} -m elf64lppc"
1373 ;;
1374 powerpc-*)
13181375 LD="${LD-ld} -m elf64ppc"
13191376 ;;
13201377 s390*-*linux*|s390*-*tpf*)
13431400 CFLAGS="$SAVE_CFLAGS"
13441401 fi
13451402 ;;
1346 sparc*-*solaris*)
1403 *-*solaris*)
13471404 # Find out which ABI we are using.
13481405 echo 'int i;' > conftest.$ac_ext
13491406 if AC_TRY_EVAL(ac_compile); then
13501407 case `/usr/bin/file conftest.o` in
13511408 *64-bit*)
13521409 case $lt_cv_prog_gnu_ld in
1353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1410 yes*)
1411 case $host in
1412 i?86-*-solaris*)
1413 LD="${LD-ld} -m elf_x86_64"
1414 ;;
1415 sparc*-*-solaris*)
1416 LD="${LD-ld} -m elf64_sparc"
1417 ;;
1418 esac
1419 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1420 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1421 LD="${LD-ld}_sol2"
1422 fi
1423 ;;
13541424 *)
13551425 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13561426 LD="${LD-ld} -64"
13681438 ])# _LT_ENABLE_LOCK
13691439
13701440
1441 # _LT_PROG_AR
1442 # -----------
1443 m4_defun([_LT_PROG_AR],
1444 [AC_CHECK_TOOLS(AR, [ar], false)
1445 : ${AR=ar}
1446 : ${AR_FLAGS=cru}
1447 _LT_DECL([], [AR], [1], [The archiver])
1448 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1449
1450 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1451 [lt_cv_ar_at_file=no
1452 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1453 [echo conftest.$ac_objext > conftest.lst
1454 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1455 AC_TRY_EVAL([lt_ar_try])
1456 if test "$ac_status" -eq 0; then
1457 # Ensure the archiver fails upon bogus file names.
1458 rm -f conftest.$ac_objext libconftest.a
1459 AC_TRY_EVAL([lt_ar_try])
1460 if test "$ac_status" -ne 0; then
1461 lt_cv_ar_at_file=@
1462 fi
1463 fi
1464 rm -f conftest.* libconftest.a
1465 ])
1466 ])
1467
1468 if test "x$lt_cv_ar_at_file" = xno; then
1469 archiver_list_spec=
1470 else
1471 archiver_list_spec=$lt_cv_ar_at_file
1472 fi
1473 _LT_DECL([], [archiver_list_spec], [1],
1474 [How to feed a file listing to the archiver])
1475 ])# _LT_PROG_AR
1476
1477
13711478 # _LT_CMD_OLD_ARCHIVE
13721479 # -------------------
13731480 m4_defun([_LT_CMD_OLD_ARCHIVE],
1374 [AC_CHECK_TOOL(AR, ar, false)
1375 test -z "$AR" && AR=ar
1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
1377 _LT_DECL([], [AR], [1], [The archiver])
1378 _LT_DECL([], [AR_FLAGS], [1])
1481 [_LT_PROG_AR
13791482
13801483 AC_CHECK_TOOL(STRIP, strip, :)
13811484 test -z "$STRIP" && STRIP=:
13941497 if test -n "$RANLIB"; then
13951498 case $host_os in
13961499 openbsd*)
1397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13981501 ;;
13991502 *)
1400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14011504 ;;
14021505 esac
1403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1506 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14041507 fi
1508
1509 case $host_os in
1510 darwin*)
1511 lock_old_archive_extraction=yes ;;
1512 *)
1513 lock_old_archive_extraction=no ;;
1514 esac
14051515 _LT_DECL([], [old_postinstall_cmds], [2])
14061516 _LT_DECL([], [old_postuninstall_cmds], [2])
14071517 _LT_TAGDECL([], [old_archive_cmds], [2],
14081518 [Commands used to build an old-style archive])
1519 _LT_DECL([], [lock_old_archive_extraction], [0],
1520 [Whether to use a lock for old archive extraction])
14091521 ])# _LT_CMD_OLD_ARCHIVE
14101522
14111523
14301542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14311543 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14321544 -e 's:$: $lt_compiler_flag:'`
1433 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14341546 (eval "$lt_compile" 2>conftest.err)
14351547 ac_status=$?
14361548 cat conftest.err >&AS_MESSAGE_LOG_FD
1437 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1549 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14381550 if (exit $ac_status) && test -s "$ac_outfile"; then
14391551 # The compiler can only warn and ignore the option if not recognized
14401552 # So say no if there are warnings other than the usual output.
1441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14421554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14441556 $2=yes
14781590 if test -s conftest.err; then
14791591 # Append any errors to the config.log.
14801592 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1481 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14821594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14831595 if diff conftest.exp conftest.er2 >/dev/null; then
14841596 $2=yes
15381650 # the test eventually succeeds (with a max line length of 256k).
15391651 # Instead, let's just punt: use the minimum linelength reported by
15401652 # all of the supported platforms: 8192 (on NT/2K/XP).
1653 lt_cv_sys_max_cmd_len=8192;
1654 ;;
1655
1656 mint*)
1657 # On MiNT this can take a long time and run out of memory.
15411658 lt_cv_sys_max_cmd_len=8192;
15421659 ;;
15431660
15641681 interix*)
15651682 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15661683 lt_cv_sys_max_cmd_len=196608
1684 ;;
1685
1686 os2*)
1687 # The test takes a long time on OS/2.
1688 lt_cv_sys_max_cmd_len=8192
15671689 ;;
15681690
15691691 osf*)
15921714 ;;
15931715 *)
15941716 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1595 if test -n "$lt_cv_sys_max_cmd_len"; then
1717 if test -n "$lt_cv_sys_max_cmd_len" && \
1718 test undefined != "$lt_cv_sys_max_cmd_len"; then
15961719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15971720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15981721 else
16051728 # If test is not a shell built-in, we'll probably end up computing a
16061729 # maximum length that is only half of the actual maximum length, but
16071730 # we can't tell.
1608 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1609 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1731 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1732 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16101733 test $i != 17 # 1/2 MB should be enough
16111734 do
16121735 i=`expr $i + 1`
16571780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16581781 lt_status=$lt_dlunknown
16591782 cat > conftest.$ac_ext <<_LT_EOF
1660 [#line __oline__ "configure"
1783 [#line $LINENO "configure"
16611784 #include "confdefs.h"
16621785
16631786 #if HAVE_DLFCN_H
16981821 # endif
16991822 #endif
17001823
1701 void fnord() { int i=42;}
1824 /* When -fvisbility=hidden is used, assume the code has been annotated
1825 correspondingly for the symbols needed. */
1826 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1827 int fnord () __attribute__((visibility("default")));
1828 #endif
1829
1830 int fnord () { return 42; }
17021831 int main ()
17031832 {
17041833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17071836 if (self)
17081837 {
17091838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1839 else
1840 {
1841 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1842 else puts (dlerror ());
1843 }
17111844 /* dlclose (self); */
17121845 }
17131846 else
18832016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18842017 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18852018 -e 's:$: $lt_compiler_flag:'`
1886 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18872020 (eval "$lt_compile" 2>out/conftest.err)
18882021 ac_status=$?
18892022 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1890 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18912024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18922025 then
18932026 # The compiler can only warn and ignore the option if not recognized
18942027 # So say no if there are warnings
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18962029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18972030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18982031 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
20512184 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20522185 m4_require([_LT_DECL_OBJDUMP])dnl
20532186 m4_require([_LT_DECL_SED])dnl
2187 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
20542188 AC_MSG_CHECKING([dynamic linker characteristics])
20552189 m4_if([$1],
20562190 [], [
20592193 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20602194 *) lt_awk_arg="/^libraries:/" ;;
20612195 esac
2062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2063 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2196 case $host_os in
2197 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2198 *) lt_sed_strip_eq="s,=/,/,g" ;;
2199 esac
2200 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2201 case $lt_search_path_spec in
2202 *\;*)
20642203 # if the path contains ";" then we assume it to be the separator
20652204 # otherwise default to the standard path separator (i.e. ":") - it is
20662205 # assumed that no part of a normal pathname contains ";" but that should
20672206 # okay in the real world where ";" in dirpaths is itself problematic.
2068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2069 else
2070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2071 fi
2207 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2208 ;;
2209 *)
2210 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2211 ;;
2212 esac
20722213 # Ok, now we have the path, separated by spaces, we can step through it
20732214 # and add multilib dir if necessary.
20742215 lt_tmp_lt_search_path_spec=
20812222 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20822223 fi
20832224 done
2084 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2225 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20852226 BEGIN {RS=" "; FS="/|\n";} {
20862227 lt_foo="";
20872228 lt_count=0;
21012242 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
21022243 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
21032244 }'`
2104 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2245 # AWK program above erroneously prepends '/' to C:/dos/paths
2246 # for these hosts.
2247 case $host_os in
2248 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2249 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2250 esac
2251 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21052252 else
21062253 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21072254 fi])
21272274
21282275 case $host_os in
21292276 aix3*)
2130 version_type=linux
2277 version_type=linux # correct to gnu/linux during the next big refactor
21312278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21322279 shlibpath_var=LIBPATH
21332280
21362283 ;;
21372284
21382285 aix[[4-9]]*)
2139 version_type=linux
2286 version_type=linux # correct to gnu/linux during the next big refactor
21402287 need_lib_prefix=no
21412288 need_version=no
21422289 hardcode_into_libs=yes
21892336 m68k)
21902337 library_names_spec='$libname.ixlibrary $libname.a'
21912338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2192 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2339 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21932340 ;;
21942341 esac
21952342 ;;
22012348 ;;
22022349
22032350 bsdi[[45]]*)
2204 version_type=linux
2351 version_type=linux # correct to gnu/linux during the next big refactor
22052352 need_version=no
22062353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22072354 soname_spec='${libname}${release}${shared_ext}$major'
22202367 need_version=no
22212368 need_lib_prefix=no
22222369
2223 case $GCC,$host_os in
2224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2370 case $GCC,$cc_basename in
2371 yes,*)
2372 # gcc
22252373 library_names_spec='$libname.dll.a'
22262374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22272375 postinstall_cmds='base_file=`basename \${file}`~
22422390 cygwin*)
22432391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22442392 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2393 m4_if([$1], [],[
2394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
22462395 ;;
22472396 mingw* | cegcc*)
22482397 # MinGW DLLs use traditional 'lib' prefix
22492398 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2250 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2251 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2252 # It is most probably a Windows format PATH printed by
2253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2254 # path with ; separators, and with drive letters. We can handle the
2255 # drive letters (cygwin fileutils understands them), so leave them,
2256 # especially as we might pass files found there to a mingw objdump,
2257 # which wouldn't understand a cygwinified path. Ahh.
2258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2259 else
2260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2261 fi
22622399 ;;
22632400 pw32*)
22642401 # pw32 DLLs use 'pw' prefix rather than 'lib'
22652402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22662403 ;;
22672404 esac
2405 dynamic_linker='Win32 ld.exe'
22682406 ;;
22692407
2408 *,cl*)
2409 # Native MSVC
2410 libname_spec='$name'
2411 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2412 library_names_spec='${libname}.dll.lib'
2413
2414 case $build_os in
2415 mingw*)
2416 sys_lib_search_path_spec=
2417 lt_save_ifs=$IFS
2418 IFS=';'
2419 for lt_path in $LIB
2420 do
2421 IFS=$lt_save_ifs
2422 # Let DOS variable expansion print the short 8.3 style file name.
2423 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2424 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2425 done
2426 IFS=$lt_save_ifs
2427 # Convert to MSYS style.
2428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2429 ;;
2430 cygwin*)
2431 # Convert to unix form, then to dos form, then back to unix form
2432 # but this time dos style (no spaces!) so that the unix form looks
2433 # like /cygdrive/c/PROGRA~1:/cygdr...
2434 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2435 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2436 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2437 ;;
2438 *)
2439 sys_lib_search_path_spec="$LIB"
2440 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2441 # It is most probably a Windows format PATH.
2442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2443 else
2444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2445 fi
2446 # FIXME: find the short name or the path components, as spaces are
2447 # common. (e.g. "Program Files" -> "PROGRA~1")
2448 ;;
2449 esac
2450
2451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2452 postinstall_cmds='base_file=`basename \${file}`~
2453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2454 dldir=$destdir/`dirname \$dlpath`~
2455 test -d \$dldir || mkdir -p \$dldir~
2456 $install_prog $dir/$dlname \$dldir/$dlname'
2457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2458 dlpath=$dir/\$dldll~
2459 $RM \$dlpath'
2460 shlibpath_overrides_runpath=yes
2461 dynamic_linker='Win32 link.exe'
2462 ;;
2463
22702464 *)
2465 # Assume MSVC wrapper
22712466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2467 dynamic_linker='Win32 ld.exe'
22722468 ;;
22732469 esac
2274 dynamic_linker='Win32 ld.exe'
22752470 # FIXME: first we should search . and the directory the executable is in
22762471 shlibpath_var=PATH
22772472 ;;
22922487 ;;
22932488
22942489 dgux*)
2295 version_type=linux
2490 version_type=linux # correct to gnu/linux during the next big refactor
22962491 need_lib_prefix=no
22972492 need_version=no
22982493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22992494 soname_spec='${libname}${release}${shared_ext}$major'
23002495 shlibpath_var=LD_LIBRARY_PATH
2301 ;;
2302
2303 freebsd1*)
2304 dynamic_linker=no
23052496 ;;
23062497
23072498 freebsd* | dragonfly*)
23112502 objformat=`/usr/bin/objformat`
23122503 else
23132504 case $host_os in
2314 freebsd[[123]]*) objformat=aout ;;
2505 freebsd[[23]].*) objformat=aout ;;
23152506 *) objformat=elf ;;
23162507 esac
23172508 fi
23292520 esac
23302521 shlibpath_var=LD_LIBRARY_PATH
23312522 case $host_os in
2332 freebsd2*)
2523 freebsd2.*)
23332524 shlibpath_overrides_runpath=yes
23342525 ;;
23352526 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
23482539 esac
23492540 ;;
23502541
2351 gnu*)
2352 version_type=linux
2542 haiku*)
2543 version_type=linux # correct to gnu/linux during the next big refactor
23532544 need_lib_prefix=no
23542545 need_version=no
2546 dynamic_linker="$host_os runtime_loader"
23552547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23562548 soname_spec='${libname}${release}${shared_ext}$major'
2357 shlibpath_var=LD_LIBRARY_PATH
2549 shlibpath_var=LIBRARY_PATH
2550 shlibpath_overrides_runpath=yes
2551 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23582552 hardcode_into_libs=yes
23592553 ;;
23602554
24002594 soname_spec='${libname}${release}${shared_ext}$major'
24012595 ;;
24022596 esac
2403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24042598 postinstall_cmds='chmod 555 $lib'
2599 # or fails outright, so override atomically:
2600 install_override_mode=555
24052601 ;;
24062602
24072603 interix[[3-9]]*)
2408 version_type=linux
2604 version_type=linux # correct to gnu/linux during the next big refactor
24092605 need_lib_prefix=no
24102606 need_version=no
24112607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24212617 nonstopux*) version_type=nonstopux ;;
24222618 *)
24232619 if test "$lt_cv_prog_gnu_ld" = yes; then
2424 version_type=linux
2620 version_type=linux # correct to gnu/linux during the next big refactor
24252621 else
24262622 version_type=irix
24272623 fi ;;
24582654 dynamic_linker=no
24592655 ;;
24602656
2461 # This must be Linux ELF.
2462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2463 version_type=linux
2657 # This must be glibc/ELF.
2658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2659 version_type=linux # correct to gnu/linux during the next big refactor
24642660 need_lib_prefix=no
24652661 need_version=no
24662662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24682664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24692665 shlibpath_var=LD_LIBRARY_PATH
24702666 shlibpath_overrides_runpath=no
2667
24712668 # Some binutils ld are patched to set DT_RUNPATH
2472 save_LDFLAGS=$LDFLAGS
2473 save_libdir=$libdir
2474 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2475 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2476 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2477 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2478 [shlibpath_overrides_runpath=yes])])
2479 LDFLAGS=$save_LDFLAGS
2480 libdir=$save_libdir
2669 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2670 [lt_cv_shlibpath_overrides_runpath=no
2671 save_LDFLAGS=$LDFLAGS
2672 save_libdir=$libdir
2673 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2674 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2675 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2676 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2677 [lt_cv_shlibpath_overrides_runpath=yes])])
2678 LDFLAGS=$save_LDFLAGS
2679 libdir=$save_libdir
2680 ])
2681 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24812682
24822683 # This implies no fast_install, which is unacceptable.
24832684 # Some rework will be needed to allow for fast_install
24862687
24872688 # Append ld.so.conf contents to the search path
24882689 if test -f /etc/ld.so.conf; then
2489 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2690 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
24902691 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24912692 fi
24922693
25302731 ;;
25312732
25322733 newsos6)
2533 version_type=linux
2734 version_type=linux # correct to gnu/linux during the next big refactor
25342735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352736 shlibpath_var=LD_LIBRARY_PATH
25362737 shlibpath_overrides_runpath=yes
25992800 ;;
26002801
26012802 solaris*)
2602 version_type=linux
2803 version_type=linux # correct to gnu/linux during the next big refactor
26032804 need_lib_prefix=no
26042805 need_version=no
26052806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26242825 ;;
26252826
26262827 sysv4 | sysv4.3*)
2627 version_type=linux
2828 version_type=linux # correct to gnu/linux during the next big refactor
26282829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26292830 soname_spec='${libname}${release}${shared_ext}$major'
26302831 shlibpath_var=LD_LIBRARY_PATH
26482849
26492850 sysv4*MP*)
26502851 if test -d /usr/nec ;then
2651 version_type=linux
2852 version_type=linux # correct to gnu/linux during the next big refactor
26522853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26532854 soname_spec='$libname${shared_ext}.$major'
26542855 shlibpath_var=LD_LIBRARY_PATH
26792880
26802881 tpf*)
26812882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2682 version_type=linux
2883 version_type=linux # correct to gnu/linux during the next big refactor
26832884 need_lib_prefix=no
26842885 need_version=no
26852886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26892890 ;;
26902891
26912892 uts4*)
2692 version_type=linux
2893 version_type=linux # correct to gnu/linux during the next big refactor
26932894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26942895 soname_spec='${libname}${release}${shared_ext}$major'
26952896 shlibpath_var=LD_LIBRARY_PATH
27312932 The last name is the one that the linker finds with -lNAME]])
27322933 _LT_DECL([], [soname_spec], [1],
27332934 [[The coded name of the library, if different from the real name]])
2935 _LT_DECL([], [install_override_mode], [1],
2936 [Permission mode override for installation of shared libraries])
27342937 _LT_DECL([], [postinstall_cmds], [2],
27352938 [Command to use after installation of a shared archive])
27362939 _LT_DECL([], [postuninstall_cmds], [2],
28433046 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
28443047 m4_require([_LT_DECL_SED])dnl
28453048 m4_require([_LT_DECL_EGREP])dnl
3049 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28463050
28473051 AC_ARG_WITH([gnu-ld],
28483052 [AS_HELP_STRING([--with-gnu-ld],
29643168 esac
29653169 reload_cmds='$LD$reload_flag -o $output$reload_objs'
29663170 case $host_os in
3171 cygwin* | mingw* | pw32* | cegcc*)
3172 if test "$GCC" != yes; then
3173 reload_cmds=false
3174 fi
3175 ;;
29673176 darwin*)
29683177 if test "$GCC" = yes; then
29693178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29723181 fi
29733182 ;;
29743183 esac
2975 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2976 _LT_DECL([], [reload_cmds], [2])dnl
3184 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3185 _LT_TAGDECL([], [reload_cmds], [2])dnl
29773186 ])# _LT_CMD_RELOAD
29783187
29793188
30253234 # Base MSYS/MinGW do not provide the 'file' command needed by
30263235 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30273236 # unless we find 'file', for example because we are cross-compiling.
3028 if ( file / ) >/dev/null 2>&1; then
3237 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3238 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30293239 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30303240 lt_cv_file_magic_cmd='func_win32_libid'
30313241 else
3032 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3242 # Keep this pattern in sync with the one in func_win32_libid.
3243 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30333244 lt_cv_file_magic_cmd='$OBJDUMP -f'
30343245 fi
30353246 ;;
30363247
3037 cegcc)
3248 cegcc*)
30383249 # use the weaker test based on 'objdump'. See mingw*.
30393250 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30403251 lt_cv_file_magic_cmd='$OBJDUMP -f'
30603271 fi
30613272 ;;
30623273
3063 gnu*)
3274 haiku*)
30643275 lt_cv_deplibs_check_method=pass_all
30653276 ;;
30663277
30723283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30733284 ;;
30743285 hppa*64*)
3075 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3286 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
30763287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30773288 ;;
30783289 *)
3079 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3290 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
30803291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30813292 ;;
30823293 esac
30973308 lt_cv_deplibs_check_method=pass_all
30983309 ;;
30993310
3100 # This must be Linux ELF.
3101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3311 # This must be glibc/ELF.
3312 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
31023313 lt_cv_deplibs_check_method=pass_all
31033314 ;;
31043315
31763387 ;;
31773388 esac
31783389 ])
3390
3391 file_magic_glob=
3392 want_nocaseglob=no
3393 if test "$build" = "$host"; then
3394 case $host_os in
3395 mingw* | pw32*)
3396 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3397 want_nocaseglob=yes
3398 else
3399 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3400 fi
3401 ;;
3402 esac
3403 fi
3404
31793405 file_magic_cmd=$lt_cv_file_magic_cmd
31803406 deplibs_check_method=$lt_cv_deplibs_check_method
31813407 test -z "$deplibs_check_method" && deplibs_check_method=unknown
31833409 _LT_DECL([], [deplibs_check_method], [1],
31843410 [Method to check whether dependent libraries are shared objects])
31853411 _LT_DECL([], [file_magic_cmd], [1],
3186 [Command to use when deplibs_check_method == "file_magic"])
3412 [Command to use when deplibs_check_method = "file_magic"])
3413 _LT_DECL([], [file_magic_glob], [1],
3414 [How to find potential files when deplibs_check_method = "file_magic"])
3415 _LT_DECL([], [want_nocaseglob], [1],
3416 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
31873417 ])# _LT_CHECK_MAGIC_METHOD
31883418
31893419
32403470 NM="$lt_cv_path_NM"
32413471 else
32423472 # Didn't find any BSD compatible name lister, look for dumpbin.
3243 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3473 if test -n "$DUMPBIN"; then :
3474 # Let the user override the test.
3475 else
3476 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3477 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3478 *COFF*)
3479 DUMPBIN="$DUMPBIN -symbols"
3480 ;;
3481 *)
3482 DUMPBIN=:
3483 ;;
3484 esac
3485 fi
32443486 AC_SUBST([DUMPBIN])
32453487 if test "$DUMPBIN" != ":"; then
32463488 NM="$DUMPBIN"
32533495 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
32543496 [lt_cv_nm_interface="BSD nm"
32553497 echo "int some_variable = 0;" > conftest.$ac_ext
3256 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3498 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
32573499 (eval "$ac_compile" 2>conftest.err)
32583500 cat conftest.err >&AS_MESSAGE_LOG_FD
3259 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3501 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
32603502 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32613503 cat conftest.err >&AS_MESSAGE_LOG_FD
3262 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3504 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
32633505 cat conftest.out >&AS_MESSAGE_LOG_FD
32643506 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32653507 lt_cv_nm_interface="MS dumpbin"
32733515 dnl aclocal-1.4 backwards compatibility:
32743516 dnl AC_DEFUN([AM_PROG_NM], [])
32753517 dnl AC_DEFUN([AC_PROG_NM], [])
3518
3519 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3520 # --------------------------------
3521 # how to determine the name of the shared library
3522 # associated with a specific link library.
3523 # -- PORTME fill in with the dynamic library characteristics
3524 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3525 [m4_require([_LT_DECL_EGREP])
3526 m4_require([_LT_DECL_OBJDUMP])
3527 m4_require([_LT_DECL_DLLTOOL])
3528 AC_CACHE_CHECK([how to associate runtime and link libraries],
3529 lt_cv_sharedlib_from_linklib_cmd,
3530 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3531
3532 case $host_os in
3533 cygwin* | mingw* | pw32* | cegcc*)
3534 # two different shell functions defined in ltmain.sh
3535 # decide which to use based on capabilities of $DLLTOOL
3536 case `$DLLTOOL --help 2>&1` in
3537 *--identify-strict*)
3538 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3539 ;;
3540 *)
3541 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3542 ;;
3543 esac
3544 ;;
3545 *)
3546 # fallback: assume linklib IS sharedlib
3547 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3548 ;;
3549 esac
3550 ])
3551 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3552 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3553
3554 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3555 [Command to associate shared and link libraries])
3556 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3557
3558
3559 # _LT_PATH_MANIFEST_TOOL
3560 # ----------------------
3561 # locate the manifest tool
3562 m4_defun([_LT_PATH_MANIFEST_TOOL],
3563 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3564 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3565 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3566 [lt_cv_path_mainfest_tool=no
3567 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3568 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3569 cat conftest.err >&AS_MESSAGE_LOG_FD
3570 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3571 lt_cv_path_mainfest_tool=yes
3572 fi
3573 rm -f conftest*])
3574 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3575 MANIFEST_TOOL=:
3576 fi
3577 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3578 ])# _LT_PATH_MANIFEST_TOOL
32763579
32773580
32783581 # LT_LIB_M
32823585 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
32833586 LIBM=
32843587 case $host in
3285 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3588 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
32863589 # These system don't have libm, or don't need it
32873590 ;;
32883591 *-ncr-sysv4.3*)
33103613 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
33113614
33123615 if test "$GCC" = yes; then
3313 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3616 case $cc_basename in
3617 nvcc*)
3618 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3619 *)
3620 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3621 esac
33143622
33153623 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33163624 lt_cv_prog_compiler_rtti_exceptions,
33273635 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
33283636 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
33293637 AC_REQUIRE([AC_PROG_CC])dnl
3638 AC_REQUIRE([AC_PROG_AWK])dnl
33303639 AC_REQUIRE([LT_PATH_NM])dnl
33313640 AC_REQUIRE([LT_PATH_LD])dnl
33323641 m4_require([_LT_DECL_SED])dnl
33943703 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33953704
33963705 # Transform an extracted symbol line into symbol name and symbol address
3397 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3706 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3707 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
33993708
34003709 # Handle CRLF in mingw tool chain
34013710 opt_cr=
34193728 # which start with @ or ?.
34203729 lt_cv_sys_global_symbol_pipe="$AWK ['"\
34213730 " {last_section=section; section=\$ 3};"\
3731 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
34223732 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
34233733 " \$ 0!~/External *\|/{next};"\
34243734 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
34313741 else
34323742 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34333743 fi
3744 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34343745
34353746 # Check to see that the pipe works correctly.
34363747 pipe_works=no
34523763 if AC_TRY_EVAL(ac_compile); then
34533764 # Now try to grab the symbols.
34543765 nlist=conftest.nm
3455 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3766 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
34563767 # Try sorting and uniquifying the output.
34573768 if sort "$nlist" | uniq > "$nlist"T; then
34583769 mv -f "$nlist"T "$nlist"
34643775 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34653776 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34663777 cat <<_LT_EOF > conftest.$ac_ext
3778 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3779 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3780 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3781 relocations are performed -- see ld's documentation on pseudo-relocs. */
3782 # define LT@&t@_DLSYM_CONST
3783 #elif defined(__osf__)
3784 /* This system does not cope well with relocations in const data. */
3785 # define LT@&t@_DLSYM_CONST
3786 #else
3787 # define LT@&t@_DLSYM_CONST const
3788 #endif
3789
34673790 #ifdef __cplusplus
34683791 extern "C" {
34693792 #endif
34753798 cat <<_LT_EOF >> conftest.$ac_ext
34763799
34773800 /* The mapping between symbol names and symbols. */
3478 const struct {
3801 LT@&t@_DLSYM_CONST struct {
34793802 const char *name;
34803803 void *address;
34813804 }
35013824 _LT_EOF
35023825 # Now try linking the two files.
35033826 mv conftest.$ac_objext conftstm.$ac_objext
3504 lt_save_LIBS="$LIBS"
3505 lt_save_CFLAGS="$CFLAGS"
3827 lt_globsym_save_LIBS=$LIBS
3828 lt_globsym_save_CFLAGS=$CFLAGS
35063829 LIBS="conftstm.$ac_objext"
35073830 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
35083831 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
35093832 pipe_works=yes
35103833 fi
3511 LIBS="$lt_save_LIBS"
3512 CFLAGS="$lt_save_CFLAGS"
3834 LIBS=$lt_globsym_save_LIBS
3835 CFLAGS=$lt_globsym_save_CFLAGS
35133836 else
35143837 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35153838 fi
35423865 AC_MSG_RESULT(ok)
35433866 fi
35443867
3868 # Response file support.
3869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3870 nm_file_list_spec='@'
3871 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3872 nm_file_list_spec='@'
3873 fi
3874
35453875 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35463876 [Take the output of nm and produce a listing of raw symbols and C names])
35473877 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
35523882 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35533883 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35543884 [Transform the output of nm in a C name address pair when lib prefix is needed])
3885 _LT_DECL([], [nm_file_list_spec], [1],
3886 [Specify filename containing input files for $NM])
35553887 ]) # _LT_CMD_GLOBAL_SYMBOLS
35563888
35573889
35633895 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
35643896 _LT_TAGVAR(lt_prog_compiler_static, $1)=
35653897
3566 AC_MSG_CHECKING([for $compiler option to produce PIC])
35673898 m4_if([$1], [CXX], [
35683899 # C++ specific cases for pic, static, wl, etc.
35693900 if test "$GXX" = yes; then
36133944 *djgpp*)
36143945 # DJGPP does not support shared libraries at all
36153946 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3947 ;;
3948 haiku*)
3949 # PIC is the default for Haiku.
3950 # The "-static" flag exists, but is broken.
3951 _LT_TAGVAR(lt_prog_compiler_static, $1)=
36163952 ;;
36173953 interix[[3-9]]*)
36183954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36623998 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
36633999 ;;
36644000 esac
4001 ;;
4002 mingw* | cygwin* | os2* | pw32* | cegcc*)
4003 # This hack is so that the source file can tell whether it is being
4004 # built for inclusion in a dll (and should export symbols for example).
4005 m4_if([$1], [GCJ], [],
4006 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36654007 ;;
36664008 dgux*)
36674009 case $cc_basename in
37194061 ;;
37204062 esac
37214063 ;;
3722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4064 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
37234065 case $cc_basename in
37244066 KCC*)
37254067 # KAI C++ Compiler
37524094 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
37534095 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37544096 ;;
3755 xlc* | xlC*)
3756 # IBM XL 8.0 on PPC
4097 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4098 # IBM XL 8.0, 9.0 on PPC and BlueGene
37574099 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37584100 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
37594101 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
38154157 ;;
38164158 solaris*)
38174159 case $cc_basename in
3818 CC*)
4160 CC* | sunCC*)
38194161 # Sun C++ 4.2, 5.x and Centerline C++
38204162 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38214163 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39194261 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39204262 ;;
39214263
4264 haiku*)
4265 # PIC is the default for Haiku.
4266 # The "-static" flag exists, but is broken.
4267 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4268 ;;
4269
39224270 hpux*)
39234271 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39244272 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
39594307
39604308 *)
39614309 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4310 ;;
4311 esac
4312
4313 case $cc_basename in
4314 nvcc*) # Cuda Compiler Driver 2.2
4315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4316 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4317 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4318 fi
39624319 ;;
39634320 esac
39644321 else
40034360 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40044361 ;;
40054362
4006 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4363 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
40074364 case $cc_basename in
40084365 # old Intel for x86_64 which still supported -KPIC.
40094366 ecc*)
40244381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40254382 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40264383 ;;
4027 pgcc* | pgf77* | pgf90* | pgf95*)
4384 nagfor*)
4385 # NAG Fortran compiler
4386 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4387 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4388 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4389 ;;
4390 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40284391 # Portland Group compilers (*not* the Pentium gcc compiler,
40294392 # which looks to be a dead project)
40304393 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40364399 # All Alpha code is PIC.
40374400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40384401 ;;
4039 xl*)
4040 # IBM XL C 8.0/Fortran 10.1 on PPC
4402 xl* | bgxl* | bgf* | mpixl*)
4403 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
40414404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40424405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
40434406 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
40444407 ;;
40454408 *)
40464409 case `$CC -V 2>&1 | sed 5q` in
4410 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4411 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4414 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4415 ;;
4416 *Sun\ F* | *Sun*Fortran*)
4417 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4419 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4420 ;;
40474421 *Sun\ C*)
40484422 # Sun C 5.9
40494423 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40504424 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40514425 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40524426 ;;
4053 *Sun\ F*)
4054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4427 *Intel*\ [[CF]]*Compiler*)
4428 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4429 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4430 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4431 ;;
4432 *Portland\ Group*)
4433 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4434 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
40564435 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4057 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
40584436 ;;
40594437 esac
40604438 ;;
40864464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40874465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40884466 case $cc_basename in
4089 f77* | f90* | f95*)
4467 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
40904468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
40914469 *)
40924470 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
41434521 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41444522 ;;
41454523 esac
4146 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4147 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4148 [How to pass a linker flag through the compiler])
4524
4525 AC_CACHE_CHECK([for $compiler option to produce PIC],
4526 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4527 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4528 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
41494529
41504530 #
41514531 # Check to make sure the PIC flag actually works.
41644544 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
41654545 [Additional compiler flags for building library objects])
41664546
4547 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4548 [How to pass a linker flag through the compiler])
41674549 #
41684550 # Check to make sure the static flag actually works.
41694551 #
41844566 m4_defun([_LT_LINKER_SHLIBS],
41854567 [AC_REQUIRE([LT_PATH_LD])dnl
41864568 AC_REQUIRE([LT_PATH_NM])dnl
4569 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
41874570 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
41884571 m4_require([_LT_DECL_EGREP])dnl
41894572 m4_require([_LT_DECL_SED])dnl
41924575 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
41934576 m4_if([$1], [CXX], [
41944577 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4578 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
41954579 case $host_os in
41964580 aix[[4-9]]*)
41974581 # If we're using GNU nm, then we don't want the "-C" option.
41984582 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4583 # Also, AIX nm treats weak defined symbols like other global defined
4584 # symbols, whereas GNU nm marks them as "W".
41994585 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4200 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4586 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
42014587 else
42024588 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
42034589 fi
42044590 ;;
42054591 pw32*)
42064592 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4207 ;;
4593 ;;
42084594 cygwin* | mingw* | cegcc*)
4209 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4210 ;;
4211 linux* | k*bsd*-gnu)
4595 case $cc_basename in
4596 cl*)
4597 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4598 ;;
4599 *)
4600 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4601 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4602 ;;
4603 esac
4604 ;;
4605 linux* | k*bsd*-gnu | gnu*)
42124606 _LT_TAGVAR(link_all_deplibs, $1)=no
4213 ;;
4607 ;;
42144608 *)
42154609 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4216 ;;
4610 ;;
42174611 esac
4218 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42194612 ], [
42204613 runpath_var=
42214614 _LT_TAGVAR(allow_undefined_flag, $1)=
42304623 _LT_TAGVAR(hardcode_direct, $1)=no
42314624 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
42324625 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4233 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
42344626 _LT_TAGVAR(hardcode_libdir_separator, $1)=
42354627 _LT_TAGVAR(hardcode_minus_L, $1)=no
42364628 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
42754667 openbsd*)
42764668 with_gnu_ld=no
42774669 ;;
4278 linux* | k*bsd*-gnu)
4670 linux* | k*bsd*-gnu | gnu*)
42794671 _LT_TAGVAR(link_all_deplibs, $1)=no
42804672 ;;
42814673 esac
42824674
42834675 _LT_TAGVAR(ld_shlibs, $1)=yes
4676
4677 # On some targets, GNU ld is compatible enough with the native linker
4678 # that we're better off using the native interface for both.
4679 lt_use_gnu_ld_interface=no
42844680 if test "$with_gnu_ld" = yes; then
4681 case $host_os in
4682 aix*)
4683 # The AIX port of GNU ld has always aspired to compatibility
4684 # with the native linker. However, as the warning in the GNU ld
4685 # block says, versions before 2.19.5* couldn't really create working
4686 # shared libraries, regardless of the interface used.
4687 case `$LD -v 2>&1` in
4688 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4689 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4690 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4691 *)
4692 lt_use_gnu_ld_interface=yes
4693 ;;
4694 esac
4695 ;;
4696 *)
4697 lt_use_gnu_ld_interface=yes
4698 ;;
4699 esac
4700 fi
4701
4702 if test "$lt_use_gnu_ld_interface" = yes; then
42854703 # If archive_cmds runs LD, not CC, wlarc should be empty
42864704 wlarc='${wl}'
42874705
43154733 _LT_TAGVAR(ld_shlibs, $1)=no
43164734 cat <<_LT_EOF 1>&2
43174735
4318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4736 *** Warning: the GNU linker, at least up to release 2.19, is reported
43194737 *** to be unable to reliably create shared libraries on AIX.
43204738 *** Therefore, libtool is disabling shared libraries support. If you
4321 *** really care for shared libraries, you may want to modify your PATH
4322 *** so that a non-GNU linker is found, and then restart.
4739 *** really care for shared libraries, you may want to install binutils
4740 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4741 *** You will then need to restart the configuration process.
43234742
43244743 _LT_EOF
43254744 fi
43554774 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
43564775 # as there is no search path for DLLs.
43574776 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4777 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
43584778 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43594779 _LT_TAGVAR(always_export_symbols, $1)=no
43604780 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4361 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4781 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4782 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
43624783
43634784 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43644785 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43764797 fi
43774798 ;;
43784799
4800 haiku*)
4801 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4802 _LT_TAGVAR(link_all_deplibs, $1)=yes
4803 ;;
4804
43794805 interix[[3-9]]*)
43804806 _LT_TAGVAR(hardcode_direct, $1)=no
43814807 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44014827 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
44024828 && test "$tmp_diet" = no
44034829 then
4404 tmp_addflag=
4830 tmp_addflag=' $pic_flag'
44054831 tmp_sharedflag='-shared'
44064832 case $cc_basename,$host_cpu in
44074833 pgcc*) # Portland Group C compiler
4408 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4834 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
44094835 tmp_addflag=' $pic_flag'
44104836 ;;
4411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4412 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4837 pgf77* | pgf90* | pgf95* | pgfortran*)
4838 # Portland Group f77 and f90 compilers
4839 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
44134840 tmp_addflag=' $pic_flag -Mnomain' ;;
44144841 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
44154842 tmp_addflag=' -i_dynamic' ;;
44204847 lf95*) # Lahey Fortran 8.1
44214848 _LT_TAGVAR(whole_archive_flag_spec, $1)=
44224849 tmp_sharedflag='--shared' ;;
4423 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4850 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
44244851 tmp_sharedflag='-qmkshrobj'
44254852 tmp_addflag= ;;
4853 nvcc*) # Cuda Compiler Driver 2.2
4854 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4855 _LT_TAGVAR(compiler_needs_object, $1)=yes
4856 ;;
44264857 esac
44274858 case `$CC -V 2>&1 | sed 5q` in
44284859 *Sun\ C*) # Sun C 5.9
4429 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4860 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
44304861 _LT_TAGVAR(compiler_needs_object, $1)=yes
44314862 tmp_sharedflag='-G' ;;
44324863 *Sun\ F*) # Sun Fortran 8.3
44424873 fi
44434874
44444875 case $cc_basename in
4445 xlf*)
4876 xlf* | bgf* | bgxlf* | mpixlf*)
44464877 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
44474878 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4448 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4449 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4450 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4880 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
44514881 if test "x$supports_anon_versioning" = xyes; then
44524882 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44534883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44544884 echo "local: *; };" >> $output_objdir/$libname.ver~
4455 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4885 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
44564886 fi
44574887 ;;
44584888 esac
44664896 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
44674897 wlarc=
44684898 else
4469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4470 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4900 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44714901 fi
44724902 ;;
44734903
44854915
44864916 _LT_EOF
44874917 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4488 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4489 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4919 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44904920 else
44914921 _LT_TAGVAR(ld_shlibs, $1)=no
44924922 fi
45324962
45334963 *)
45344964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4535 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4536 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4965 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4966 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45374967 else
45384968 _LT_TAGVAR(ld_shlibs, $1)=no
45394969 fi
45735003 else
45745004 # If we're using GNU nm, then we don't want the "-C" option.
45755005 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5006 # Also, AIX nm treats weak defined symbols like other global
5007 # defined symbols, whereas GNU nm marks them as "W".
45765008 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4577 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5009 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45785010 else
45795011 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45805012 fi
46625094 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
46635095 # Determine the default libpath from the value encoded in an
46645096 # empty executable.
4665 _LT_SYS_MODULE_PATH_AIX
5097 _LT_SYS_MODULE_PATH_AIX([$1])
46665098 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4667 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5099 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
46685100 else
46695101 if test "$host_cpu" = ia64; then
46705102 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
46735105 else
46745106 # Determine the default libpath from the value encoded in an
46755107 # empty executable.
4676 _LT_SYS_MODULE_PATH_AIX
5108 _LT_SYS_MODULE_PATH_AIX([$1])
46775109 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
46785110 # Warning - without using the other run time loading flags,
46795111 # -berok will link without error, but may produce a broken library.
46805112 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
46815113 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4682 # Exported symbols can be pulled into shared objects from archives
4683 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5114 if test "$with_gnu_ld" = yes; then
5115 # We only use this code for GNU lds that support --whole-archive.
5116 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5117 else
5118 # Exported symbols can be pulled into shared objects from archives
5119 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5120 fi
46845121 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
46855122 # This is similar to how AIX traditionally builds its shared libraries.
46865123 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
47125149 # Microsoft Visual C++.
47135150 # hardcode_libdir_flag_spec is actually meaningless, as there is
47145151 # no search path for DLLs.
4715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4716 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4717 # Tell ltmain to make .lib files, not .a files.
4718 libext=lib
4719 # Tell ltmain to make .dll files, not .so files.
4720 shrext_cmds=".dll"
4721 # FIXME: Setting linknames here is a bad hack.
4722 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4723 # The linker will automatically build a .lib file if we build a DLL.
4724 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4725 # FIXME: Should let the user specify the lib program.
4726 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4727 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4728 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5152 case $cc_basename in
5153 cl*)
5154 # Native MSVC
5155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5156 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5157 _LT_TAGVAR(always_export_symbols, $1)=yes
5158 _LT_TAGVAR(file_list_spec, $1)='@'
5159 # Tell ltmain to make .lib files, not .a files.
5160 libext=lib
5161 # Tell ltmain to make .dll files, not .so files.
5162 shrext_cmds=".dll"
5163 # FIXME: Setting linknames here is a bad hack.
5164 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5165 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5166 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5167 else
5168 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5169 fi~
5170 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5171 linknames='
5172 # The linker will not automatically build a static lib if we build a DLL.
5173 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5174 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5175 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5176 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5177 # Don't use ranlib
5178 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5179 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5180 lt_tool_outputfile="@TOOL_OUTPUT@"~
5181 case $lt_outputfile in
5182 *.exe|*.EXE) ;;
5183 *)
5184 lt_outputfile="$lt_outputfile.exe"
5185 lt_tool_outputfile="$lt_tool_outputfile.exe"
5186 ;;
5187 esac~
5188 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5189 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5190 $RM "$lt_outputfile.manifest";
5191 fi'
5192 ;;
5193 *)
5194 # Assume MSVC wrapper
5195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5196 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5197 # Tell ltmain to make .lib files, not .a files.
5198 libext=lib
5199 # Tell ltmain to make .dll files, not .so files.
5200 shrext_cmds=".dll"
5201 # FIXME: Setting linknames here is a bad hack.
5202 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5203 # The linker will automatically build a .lib file if we build a DLL.
5204 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5205 # FIXME: Should let the user specify the lib program.
5206 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5207 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5208 ;;
5209 esac
47295210 ;;
47305211
47315212 darwin* | rhapsody*)
47365217 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
47375218 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
47385219 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4739 ;;
4740
4741 freebsd1*)
4742 _LT_TAGVAR(ld_shlibs, $1)=no
47435220 ;;
47445221
47455222 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
47545231 ;;
47555232
47565233 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4757 freebsd2*)
5234 freebsd2.*)
47585235 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47595236 _LT_TAGVAR(hardcode_direct, $1)=yes
47605237 _LT_TAGVAR(hardcode_minus_L, $1)=yes
47635240
47645241 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
47655242 freebsd* | dragonfly*)
4766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5243 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47675244 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
47685245 _LT_TAGVAR(hardcode_direct, $1)=yes
47695246 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47715248
47725249 hpux9*)
47735250 if test "$GCC" = yes; then
4774 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5251 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47755252 else
47765253 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47775254 fi
47865263 ;;
47875264
47885265 hpux10*)
4789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4790 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5266 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5267 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47915268 else
47925269 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47935270 fi
47945271 if test "$with_gnu_ld" = no; then
47955272 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4796 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
47975273 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
47985274 _LT_TAGVAR(hardcode_direct, $1)=yes
47995275 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
48055281 ;;
48065282
48075283 hpux11*)
4808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5284 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
48095285 case $host_cpu in
48105286 hppa*64*)
48115287 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48125288 ;;
48135289 ia64*)
4814 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5290 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48155291 ;;
48165292 *)
4817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5293 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48185294 ;;
48195295 esac
48205296 else
48265302 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48275303 ;;
48285304 *)
4829 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5305 m4_if($1, [], [
5306 # Older versions of the 11.00 compiler do not understand -b yet
5307 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5308 _LT_LINKER_OPTION([if $CC understands -b],
5309 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5310 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5311 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5312 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
48305313 ;;
48315314 esac
48325315 fi
48545337
48555338 irix5* | irix6* | nonstopux*)
48565339 if test "$GCC" = yes; then
4857 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5340 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48585341 # Try to use the -exported_symbol ld option, if it does not
48595342 # work, assume that -exports_file does not work either and
48605343 # implicitly export all symbols.
4861 save_LDFLAGS="$LDFLAGS"
4862 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4863 AC_LINK_IFELSE(int foo(void) {},
4864 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4865 )
4866 LDFLAGS="$save_LDFLAGS"
5344 # This should be the same for all languages, so no per-tag cache variable.
5345 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5346 [lt_cv_irix_exported_symbol],
5347 [save_LDFLAGS="$LDFLAGS"
5348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5349 AC_LINK_IFELSE(
5350 [AC_LANG_SOURCE(
5351 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5352 [C++], [[int foo (void) { return 0; }]],
5353 [Fortran 77], [[
5354 subroutine foo
5355 end]],
5356 [Fortran], [[
5357 subroutine foo
5358 end]])])],
5359 [lt_cv_irix_exported_symbol=yes],
5360 [lt_cv_irix_exported_symbol=no])
5361 LDFLAGS="$save_LDFLAGS"])
5362 if test "$lt_cv_irix_exported_symbol" = yes; then
5363 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5364 fi
48675365 else
4868 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4869 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5366 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5367 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
48705368 fi
48715369 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
48725370 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49285426 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
49295427 _LT_TAGVAR(hardcode_minus_L, $1)=yes
49305428 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4931 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5429 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
49325430 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49335431 ;;
49345432
49355433 osf3*)
49365434 if test "$GCC" = yes; then
49375435 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49395437 else
49405438 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4941 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5439 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49425440 fi
49435441 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
49445442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49485446 osf4* | osf5*) # as osf3* with the addition of -msym flag
49495447 if test "$GCC" = yes; then
49505448 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4951 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5449 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49525450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49535451 else
49545452 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4955 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49565454 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4957 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5455 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
49585456
49595457 # Both c and cxx compiler support -rpath directly
49605458 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
49675465 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
49685466 if test "$GCC" = yes; then
49695467 wlarc='${wl}'
4970 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5468 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
49715469 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4972 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5470 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
49735471 else
49745472 case `$CC -V 2>&1` in
49755473 *"Compilers 5.0"*)
51455643 # Test whether the compiler implicitly links with -lc since on some
51465644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
51475645 # to ld, don't add -lc before -lgcc.
5148 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5149 $RM conftest*
5150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5151
5152 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5153 soname=conftest
5154 lib=conftest
5155 libobjs=conftest.$ac_objext
5156 deplibs=
5157 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5158 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5159 compiler_flags=-v
5160 linker_flags=-v
5161 verstring=
5162 output_objdir=.
5163 libname=conftest
5164 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5165 _LT_TAGVAR(allow_undefined_flag, $1)=
5166 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5167 then
5168 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5169 else
5170 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5171 fi
5172 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5173 else
5174 cat conftest.err 1>&5
5175 fi
5176 $RM conftest*
5177 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5646 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5647 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5648 [$RM conftest*
5649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5650
5651 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5652 soname=conftest
5653 lib=conftest
5654 libobjs=conftest.$ac_objext
5655 deplibs=
5656 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5657 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5658 compiler_flags=-v
5659 linker_flags=-v
5660 verstring=
5661 output_objdir=.
5662 libname=conftest
5663 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5664 _LT_TAGVAR(allow_undefined_flag, $1)=
5665 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5666 then
5667 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5668 else
5669 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5670 fi
5671 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5672 else
5673 cat conftest.err 1>&5
5674 fi
5675 $RM conftest*
5676 ])
5677 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
51785678 ;;
51795679 esac
51805680 fi
52115711 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
52125712 [Flag to hardcode $libdir into a binary during linking.
52135713 This must work even if $libdir does not exist])
5214 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5215 [[If ld is used when linking, flag to hardcode $libdir into a binary
5216 during linking. This must work even if $libdir does not exist]])
52175714 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
52185715 [Whether we need a single "-rpath" flag with a separated argument])
52195716 _LT_TAGDECL([], [hardcode_direct], [0],
52395736 to runtime path list])
52405737 _LT_TAGDECL([], [link_all_deplibs], [0],
52415738 [Whether libtool must link a program against all its dependency libraries])
5242 _LT_TAGDECL([], [fix_srcfile_path], [1],
5243 [Fix the shell variable $srcfile for the compiler])
52445739 _LT_TAGDECL([], [always_export_symbols], [0],
52455740 [Set to "yes" if exported symbols are required])
52465741 _LT_TAGDECL([], [export_symbols_cmds], [2],
52515746 [Symbols that must always be exported])
52525747 _LT_TAGDECL([], [prelink_cmds], [2],
52535748 [Commands necessary for linking programs (against libraries) with templates])
5749 _LT_TAGDECL([], [postlink_cmds], [2],
5750 [Commands necessary for finishing linking programs])
52545751 _LT_TAGDECL([], [file_list_spec], [1],
52555752 [Specify filename containing input files])
52565753 dnl FIXME: Not yet implemented
53405837 ])# _LT_LANG_C_CONFIG
53415838
53425839
5343 # _LT_PROG_CXX
5344 # ------------
5345 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5346 # compiler, we have our own version here.
5347 m4_defun([_LT_PROG_CXX],
5348 [
5349 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5350 AC_PROG_CXX
5840 # _LT_LANG_CXX_CONFIG([TAG])
5841 # --------------------------
5842 # Ensure that the configuration variables for a C++ compiler are suitably
5843 # defined. These variables are subsequently used by _LT_CONFIG to write
5844 # the compiler configuration to `libtool'.
5845 m4_defun([_LT_LANG_CXX_CONFIG],
5846 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5847 m4_require([_LT_DECL_EGREP])dnl
5848 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
53515849 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
53525850 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
53535851 (test "X$CXX" != "Xg++"))) ; then
53555853 else
53565854 _lt_caught_CXX_error=yes
53575855 fi
5358 popdef([AC_MSG_ERROR])
5359 ])# _LT_PROG_CXX
5360
5361 dnl aclocal-1.4 backwards compatibility:
5362 dnl AC_DEFUN([_LT_PROG_CXX], [])
5363
5364
5365 # _LT_LANG_CXX_CONFIG([TAG])
5366 # --------------------------
5367 # Ensure that the configuration variables for a C++ compiler are suitably
5368 # defined. These variables are subsequently used by _LT_CONFIG to write
5369 # the compiler configuration to `libtool'.
5370 m4_defun([_LT_LANG_CXX_CONFIG],
5371 [AC_REQUIRE([_LT_PROG_CXX])dnl
5372 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5373 m4_require([_LT_DECL_EGREP])dnl
53745856
53755857 AC_LANG_PUSH(C++)
53765858 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
53825864 _LT_TAGVAR(hardcode_direct, $1)=no
53835865 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
53845866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5385 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
53865867 _LT_TAGVAR(hardcode_libdir_separator, $1)=
53875868 _LT_TAGVAR(hardcode_minus_L, $1)=no
53885869 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
53925873 _LT_TAGVAR(module_expsym_cmds, $1)=
53935874 _LT_TAGVAR(link_all_deplibs, $1)=unknown
53945875 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5876 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5877 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
53955878 _LT_TAGVAR(no_undefined_flag, $1)=
53965879 _LT_TAGVAR(whole_archive_flag_spec, $1)=
53975880 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
54235906
54245907 # Allow CC to be a program name with arguments.
54255908 lt_save_CC=$CC
5909 lt_save_CFLAGS=$CFLAGS
54265910 lt_save_LD=$LD
54275911 lt_save_GCC=$GCC
54285912 GCC=$GXX
54405924 fi
54415925 test -z "${LDCXX+set}" || LD=$LDCXX
54425926 CC=${CXX-"c++"}
5927 CFLAGS=$CXXFLAGS
54435928 compiler=$CC
54445929 _LT_TAGVAR(compiler, $1)=$CC
54455930 _LT_CC_BASENAME([$compiler])
54615946 # Check if GNU C++ uses GNU ld as the underlying linker, since the
54625947 # archiving commands below assume that GNU ld is being used.
54635948 if test "$with_gnu_ld" = yes; then
5464 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5465 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5949 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5950 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
54665951
54675952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54685953 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
54945979 # Commands to make compiler produce verbose output that lists
54955980 # what "hidden" libraries, object files and flags are used when
54965981 # linking a shared library.
5497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
54985983
54995984 else
55005985 GXX=no
56036088 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
56046089 # Determine the default libpath from the value encoded in an empty
56056090 # executable.
5606 _LT_SYS_MODULE_PATH_AIX
6091 _LT_SYS_MODULE_PATH_AIX([$1])
56076092 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56086093
5609 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6094 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
56106095 else
56116096 if test "$host_cpu" = ia64; then
56126097 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
56156100 else
56166101 # Determine the default libpath from the value encoded in an
56176102 # empty executable.
5618 _LT_SYS_MODULE_PATH_AIX
6103 _LT_SYS_MODULE_PATH_AIX([$1])
56196104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56206105 # Warning - without using the other run time loading flags,
56216106 # -berok will link without error, but may produce a broken library.
56226107 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
56236108 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5624 # Exported symbols can be pulled into shared objects from archives
5625 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6109 if test "$with_gnu_ld" = yes; then
6110 # We only use this code for GNU lds that support --whole-archive.
6111 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6112 else
6113 # Exported symbols can be pulled into shared objects from archives
6114 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6115 fi
56266116 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56276117 # This is similar to how AIX traditionally builds its shared
56286118 # libraries.
56526142 ;;
56536143
56546144 cygwin* | mingw* | pw32* | cegcc*)
5655 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5656 # as there is no search path for DLLs.
5657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5658 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5659 _LT_TAGVAR(always_export_symbols, $1)=no
5660 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5661
5662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5663 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5664 # If the export-symbols file already is a .def file (1st line
5665 # is EXPORTS), use it as is; otherwise, prepend...
5666 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5667 cp $export_symbols $output_objdir/$soname.def;
5668 else
5669 echo EXPORTS > $output_objdir/$soname.def;
5670 cat $export_symbols >> $output_objdir/$soname.def;
5671 fi~
5672 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5673 else
5674 _LT_TAGVAR(ld_shlibs, $1)=no
5675 fi
5676 ;;
6145 case $GXX,$cc_basename in
6146 ,cl* | no,cl*)
6147 # Native MSVC
6148 # hardcode_libdir_flag_spec is actually meaningless, as there is
6149 # no search path for DLLs.
6150 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6151 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6152 _LT_TAGVAR(always_export_symbols, $1)=yes
6153 _LT_TAGVAR(file_list_spec, $1)='@'
6154 # Tell ltmain to make .lib files, not .a files.
6155 libext=lib
6156 # Tell ltmain to make .dll files, not .so files.
6157 shrext_cmds=".dll"
6158 # FIXME: Setting linknames here is a bad hack.
6159 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6160 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6161 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6162 else
6163 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6164 fi~
6165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6166 linknames='
6167 # The linker will not automatically build a static lib if we build a DLL.
6168 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6169 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6170 # Don't use ranlib
6171 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6172 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6173 lt_tool_outputfile="@TOOL_OUTPUT@"~
6174 case $lt_outputfile in
6175 *.exe|*.EXE) ;;
6176 *)
6177 lt_outputfile="$lt_outputfile.exe"
6178 lt_tool_outputfile="$lt_tool_outputfile.exe"
6179 ;;
6180 esac~
6181 func_to_tool_file "$lt_outputfile"~
6182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6184 $RM "$lt_outputfile.manifest";
6185 fi'
6186 ;;
6187 *)
6188 # g++
6189 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6190 # as there is no search path for DLLs.
6191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6192 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6193 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6194 _LT_TAGVAR(always_export_symbols, $1)=no
6195 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6196
6197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6198 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6199 # If the export-symbols file already is a .def file (1st line
6200 # is EXPORTS), use it as is; otherwise, prepend...
6201 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6202 cp $export_symbols $output_objdir/$soname.def;
6203 else
6204 echo EXPORTS > $output_objdir/$soname.def;
6205 cat $export_symbols >> $output_objdir/$soname.def;
6206 fi~
6207 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6208 else
6209 _LT_TAGVAR(ld_shlibs, $1)=no
6210 fi
6211 ;;
6212 esac
6213 ;;
56776214 darwin* | rhapsody*)
56786215 _LT_DARWIN_LINKER_FEATURES($1)
56796216 ;;
56966233 esac
56976234 ;;
56986235
5699 freebsd[[12]]*)
6236 freebsd2.*)
57006237 # C++ shared libraries reported to be fairly broken before
57016238 # switch to ELF
57026239 _LT_TAGVAR(ld_shlibs, $1)=no
57126249 _LT_TAGVAR(ld_shlibs, $1)=yes
57136250 ;;
57146251
5715 gnu*)
6252 haiku*)
6253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6254 _LT_TAGVAR(link_all_deplibs, $1)=yes
57166255 ;;
57176256
57186257 hpux9*)
57396278 # explicitly linking system object files so we need to strip them
57406279 # from the output so that they don't get included in the library
57416280 # dependencies.
5742 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6281 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
57436282 ;;
57446283 *)
57456284 if test "$GXX" = yes; then
5746 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6285 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
57476286 else
57486287 # FIXME: insert proper C++ library support
57496288 _LT_TAGVAR(ld_shlibs, $1)=no
58046343 # explicitly linking system object files so we need to strip them
58056344 # from the output so that they don't get included in the library
58066345 # dependencies.
5807 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6346 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
58086347 ;;
58096348 *)
58106349 if test "$GXX" = yes; then
58146353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58156354 ;;
58166355 ia64*)
5817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6356 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58186357 ;;
58196358 *)
5820 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6359 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58216360 ;;
58226361 esac
58236362 fi
58476386 case $cc_basename in
58486387 CC*)
58496388 # SGI C++
5850 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6389 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
58516390
58526391 # Archives containing C++ object files must be created using
58536392 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
58586397 *)
58596398 if test "$GXX" = yes; then
58606399 if test "$with_gnu_ld" = no; then
5861 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6400 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
58626401 else
5863 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6402 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
58646403 fi
58656404 fi
58666405 _LT_TAGVAR(link_all_deplibs, $1)=yes
58716410 _LT_TAGVAR(inherit_rpath, $1)=yes
58726411 ;;
58736412
5874 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
58756414 case $cc_basename in
58766415 KCC*)
58776416 # Kuck and Associates, Inc. (KAI) C++ Compiler
58896428 # explicitly linking system object files so we need to strip them
58906429 # from the output so that they don't get included in the library
58916430 # dependencies.
5892 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6431 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
58936432
58946433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
58956434 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59266465 pgCC* | pgcpp*)
59276466 # Portland Group C++ compiler
59286467 case `$CC -V` in
5929 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6468 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
59306469 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
59316470 rm -rf $tpldir~
59326471 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5933 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6472 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
59346473 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
59356474 rm -rf $tpldir~
59366475 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5937 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6476 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
59386477 $RANLIB $oldlib'
59396478 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
59406479 rm -rf $tpldir~
59416480 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5942 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6481 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59436482 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
59446483 rm -rf $tpldir~
59456484 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5946 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6485 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
59476486 ;;
5948 *) # Version 6 will use weak symbols
6487 *) # Version 6 and above use weak symbols
59496488 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59506489 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
59516490 ;;
59536492
59546493 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
59556494 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5956 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6495 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59576496 ;;
59586497 cxx*)
59596498 # Compaq C++
59726511 # explicitly linking system object files so we need to strip them
59736512 # from the output so that they don't get included in the library
59746513 # dependencies.
5975 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6514 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
59766515 ;;
5977 xl*)
6516 xl* | mpixl* | bgxl*)
59786517 # IBM XL 8.0 on PPC, with GNU ld
59796518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59806519 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59946533 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59956534 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
59966535 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5997 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6536 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59986537 _LT_TAGVAR(compiler_needs_object, $1)=yes
59996538
60006539 # Not sure whether something based on
60016540 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
60026541 # would be better.
6003 output_verbose_link_cmd='echo'
6542 output_verbose_link_cmd='func_echo_all'
60046543
60056544 # Archives containing C++ object files must be created using
60066545 # "CC -xar", where "CC" is the Sun C++ compiler. This is
60696608 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60706609 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
60716610 fi
6072 output_verbose_link_cmd=echo
6611 output_verbose_link_cmd=func_echo_all
60736612 else
60746613 _LT_TAGVAR(ld_shlibs, $1)=no
60756614 fi
61046643 case $host in
61056644 osf3*)
61066645 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6107 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6646 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
61086647 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
61096648 ;;
61106649 *)
61116650 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6112 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6651 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
61136652 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
61146653 echo "-hidden">> $lib.exp~
6115 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6654 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
61166655 $RM $lib.exp'
61176656 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
61186657 ;;
61286667 # explicitly linking system object files so we need to strip them
61296668 # from the output so that they don't get included in the library
61306669 # dependencies.
6131 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6670 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
61326671 ;;
61336672 *)
61346673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
61356674 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
61366675 case $host in
61376676 osf3*)
6138 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6677 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61396678 ;;
61406679 *)
6141 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61426681 ;;
61436682 esac
61446683
61486687 # Commands to make compiler produce verbose output that lists
61496688 # what "hidden" libraries, object files and flags are used when
61506689 # linking a shared library.
6151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
61526691
61536692 else
61546693 # FIXME: insert proper C++ library support
61846723
61856724 solaris*)
61866725 case $cc_basename in
6187 CC*)
6726 CC* | sunCC*)
61886727 # Sun C++ 4.2, 5.x and Centerline C++
61896728 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
61906729 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
62056744 esac
62066745 _LT_TAGVAR(link_all_deplibs, $1)=yes
62076746
6208 output_verbose_link_cmd='echo'
6747 output_verbose_link_cmd='func_echo_all'
62096748
62106749 # Archives containing C++ object files must be created using
62116750 # "CC -xar", where "CC" is the Sun C++ compiler. This is
62256764 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
62266765 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
62276766 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6228 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6767 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
62296768 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6230 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6769 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
62316770
62326771 # Commands to make compiler produce verbose output that lists
62336772 # what "hidden" libraries, object files and flags are used when
62346773 # linking a shared library.
6235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62366775 else
62376776 # g++ 2.7 appears to require `-G' NOT `-shared' on this
62386777 # platform.
62436782 # Commands to make compiler produce verbose output that lists
62446783 # what "hidden" libraries, object files and flags are used when
62456784 # linking a shared library.
6246 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6785 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62476786 fi
62486787
62496788 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
62976836 CC*)
62986837 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62996838 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6839 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6840 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6841 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6842 '"$_LT_TAGVAR(reload_cmds, $1)"
63006843 ;;
63016844 *)
63026845 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63526895 fi # test -n "$compiler"
63536896
63546897 CC=$lt_save_CC
6898 CFLAGS=$lt_save_CFLAGS
63556899 LDCXX=$LD
63566900 LD=$lt_save_LD
63576901 GCC=$lt_save_GCC
63666910 ])# _LT_LANG_CXX_CONFIG
63676911
63686912
6913 # _LT_FUNC_STRIPNAME_CNF
6914 # ----------------------
6915 # func_stripname_cnf prefix suffix name
6916 # strip PREFIX and SUFFIX off of NAME.
6917 # PREFIX and SUFFIX must not contain globbing or regex special
6918 # characters, hashes, percent signs, but SUFFIX may contain a leading
6919 # dot (in which case that matches only a dot).
6920 #
6921 # This function is identical to the (non-XSI) version of func_stripname,
6922 # except this one can be used by m4 code that may be executed by configure,
6923 # rather than the libtool script.
6924 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6925 AC_REQUIRE([_LT_DECL_SED])
6926 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6927 func_stripname_cnf ()
6928 {
6929 case ${2} in
6930 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6931 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6932 esac
6933 } # func_stripname_cnf
6934 ])# _LT_FUNC_STRIPNAME_CNF
6935
63696936 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
63706937 # ---------------------------------
63716938 # Figure out "hidden" library dependencies from verbose
63746941 # objects, libraries and library flags.
63756942 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
63766943 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6944 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
63776945 # Dependencies to place before and after the object being linked:
63786946 _LT_TAGVAR(predep_objects, $1)=
63796947 _LT_TAGVAR(postdep_objects, $1)=
64236991 }
64246992 };
64256993 _LT_EOF
6994 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6995 package foo
6996 func foo() {
6997 }
6998 _LT_EOF
64266999 ])
7000
7001 _lt_libdeps_save_CFLAGS=$CFLAGS
7002 case "$CC $CFLAGS " in #(
7003 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7004 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7005 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7006 esac
7007
64277008 dnl Parse the compiler output and extract the necessary
64287009 dnl objects, libraries and library flags.
64297010 if AC_TRY_EVAL(ac_compile); then
64357016 pre_test_object_deps_done=no
64367017
64377018 for p in `eval "$output_verbose_link_cmd"`; do
6438 case $p in
7019 case ${prev}${p} in
64397020
64407021 -L* | -R* | -l*)
64417022 # Some compilers place space between "-{L,R}" and the path.
64447025 test $p = "-R"; then
64457026 prev=$p
64467027 continue
6447 else
6448 prev=
64497028 fi
64507029
7030 # Expand the sysroot to ease extracting the directories later.
7031 if test -z "$prev"; then
7032 case $p in
7033 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7034 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7035 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7036 esac
7037 fi
7038 case $p in
7039 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7040 esac
64517041 if test "$pre_test_object_deps_done" = no; then
6452 case $p in
6453 -L* | -R*)
7042 case ${prev} in
7043 -L | -R)
64547044 # Internal compiler library paths should come after those
64557045 # provided the user. The postdeps already come after the
64567046 # user supplied libs so there is no need to process them.
64707060 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
64717061 fi
64727062 fi
7063 prev=
64737064 ;;
64747065
7066 *.lto.$objext) ;; # Ignore GCC LTO objects
64757067 *.$objext)
64767068 # This assumes that the test object file only shows up
64777069 # once in the compiler output.
65077099 fi
65087100
65097101 $RM -f confest.$objext
7102 CFLAGS=$_lt_libdeps_save_CFLAGS
65107103
65117104 # PORTME: override above test on systems where it is broken
65127105 m4_if([$1], [CXX],
65437136
65447137 solaris*)
65457138 case $cc_basename in
6546 CC*)
7139 CC* | sunCC*)
65477140 # The more standards-conforming stlport4 library is
65487141 # incompatible with the Cstd library. Avoid specifying
65497142 # it if it's in CXXFLAGS. Ignore libCrun as
65877180 ])# _LT_SYS_HIDDEN_LIBDEPS
65887181
65897182
6590 # _LT_PROG_F77
6591 # ------------
6592 # Since AC_PROG_F77 is broken, in that it returns the empty string
6593 # if there is no fortran compiler, we have our own version here.
6594 m4_defun([_LT_PROG_F77],
6595 [
6596 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6597 AC_PROG_F77
6598 if test -z "$F77" || test "X$F77" = "Xno"; then
6599 _lt_disable_F77=yes
6600 fi
6601 popdef([AC_MSG_ERROR])
6602 ])# _LT_PROG_F77
6603
6604 dnl aclocal-1.4 backwards compatibility:
6605 dnl AC_DEFUN([_LT_PROG_F77], [])
6606
6607
66087183 # _LT_LANG_F77_CONFIG([TAG])
66097184 # --------------------------
66107185 # Ensure that the configuration variables for a Fortran 77 compiler are
66117186 # suitably defined. These variables are subsequently used by _LT_CONFIG
66127187 # to write the compiler configuration to `libtool'.
66137188 m4_defun([_LT_LANG_F77_CONFIG],
6614 [AC_REQUIRE([_LT_PROG_F77])dnl
6615 AC_LANG_PUSH(Fortran 77)
7189 [AC_LANG_PUSH(Fortran 77)
7190 if test -z "$F77" || test "X$F77" = "Xno"; then
7191 _lt_disable_F77=yes
7192 fi
66167193
66177194 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
66187195 _LT_TAGVAR(allow_undefined_flag, $1)=
66227199 _LT_TAGVAR(hardcode_direct, $1)=no
66237200 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
66247201 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6625 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
66267202 _LT_TAGVAR(hardcode_libdir_separator, $1)=
66277203 _LT_TAGVAR(hardcode_minus_L, $1)=no
66287204 _LT_TAGVAR(hardcode_automatic, $1)=no
66317207 _LT_TAGVAR(module_expsym_cmds, $1)=
66327208 _LT_TAGVAR(link_all_deplibs, $1)=unknown
66337209 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7210 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7211 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
66347212 _LT_TAGVAR(no_undefined_flag, $1)=
66357213 _LT_TAGVAR(whole_archive_flag_spec, $1)=
66367214 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
66707248 # Allow CC to be a program name with arguments.
66717249 lt_save_CC="$CC"
66727250 lt_save_GCC=$GCC
7251 lt_save_CFLAGS=$CFLAGS
66737252 CC=${F77-"f77"}
7253 CFLAGS=$FFLAGS
66747254 compiler=$CC
66757255 _LT_TAGVAR(compiler, $1)=$CC
66767256 _LT_CC_BASENAME([$compiler])
67247304
67257305 GCC=$lt_save_GCC
67267306 CC="$lt_save_CC"
7307 CFLAGS="$lt_save_CFLAGS"
67277308 fi # test "$_lt_disable_F77" != yes
67287309
67297310 AC_LANG_POP
67307311 ])# _LT_LANG_F77_CONFIG
6731
6732
6733 # _LT_PROG_FC
6734 # -----------
6735 # Since AC_PROG_FC is broken, in that it returns the empty string
6736 # if there is no fortran compiler, we have our own version here.
6737 m4_defun([_LT_PROG_FC],
6738 [
6739 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6740 AC_PROG_FC
6741 if test -z "$FC" || test "X$FC" = "Xno"; then
6742 _lt_disable_FC=yes
6743 fi
6744 popdef([AC_MSG_ERROR])
6745 ])# _LT_PROG_FC
6746
6747 dnl aclocal-1.4 backwards compatibility:
6748 dnl AC_DEFUN([_LT_PROG_FC], [])
67497312
67507313
67517314 # _LT_LANG_FC_CONFIG([TAG])
67547317 # suitably defined. These variables are subsequently used by _LT_CONFIG
67557318 # to write the compiler configuration to `libtool'.
67567319 m4_defun([_LT_LANG_FC_CONFIG],
6757 [AC_REQUIRE([_LT_PROG_FC])dnl
6758 AC_LANG_PUSH(Fortran)
7320 [AC_LANG_PUSH(Fortran)
7321
7322 if test -z "$FC" || test "X$FC" = "Xno"; then
7323 _lt_disable_FC=yes
7324 fi
67597325
67607326 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67617327 _LT_TAGVAR(allow_undefined_flag, $1)=
67657331 _LT_TAGVAR(hardcode_direct, $1)=no
67667332 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
67677333 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6768 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
67697334 _LT_TAGVAR(hardcode_libdir_separator, $1)=
67707335 _LT_TAGVAR(hardcode_minus_L, $1)=no
67717336 _LT_TAGVAR(hardcode_automatic, $1)=no
67747339 _LT_TAGVAR(module_expsym_cmds, $1)=
67757340 _LT_TAGVAR(link_all_deplibs, $1)=unknown
67767341 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7342 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7343 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
67777344 _LT_TAGVAR(no_undefined_flag, $1)=
67787345 _LT_TAGVAR(whole_archive_flag_spec, $1)=
67797346 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
68137380 # Allow CC to be a program name with arguments.
68147381 lt_save_CC="$CC"
68157382 lt_save_GCC=$GCC
7383 lt_save_CFLAGS=$CFLAGS
68167384 CC=${FC-"f95"}
7385 CFLAGS=$FCFLAGS
68177386 compiler=$CC
68187387 GCC=$ac_cv_fc_compiler_gnu
68197388
68697438 fi # test -n "$compiler"
68707439
68717440 GCC=$lt_save_GCC
6872 CC="$lt_save_CC"
7441 CC=$lt_save_CC
7442 CFLAGS=$lt_save_CFLAGS
68737443 fi # test "$_lt_disable_FC" != yes
68747444
68757445 AC_LANG_POP
69067476 _LT_LINKER_BOILERPLATE
69077477
69087478 # Allow CC to be a program name with arguments.
6909 lt_save_CC="$CC"
7479 lt_save_CC=$CC
7480 lt_save_CFLAGS=$CFLAGS
69107481 lt_save_GCC=$GCC
69117482 GCC=yes
69127483 CC=${GCJ-"gcj"}
7484 CFLAGS=$GCJFLAGS
69137485 compiler=$CC
69147486 _LT_TAGVAR(compiler, $1)=$CC
69157487 _LT_TAGVAR(LD, $1)="$LD"
69197491 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
69207492
69217493 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7494 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7495 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69227496
69237497 if test -n "$compiler"; then
69247498 _LT_COMPILER_NO_RTTI($1)
69347508 AC_LANG_RESTORE
69357509
69367510 GCC=$lt_save_GCC
6937 CC="$lt_save_CC"
7511 CC=$lt_save_CC
7512 CFLAGS=$lt_save_CFLAGS
69387513 ])# _LT_LANG_GCJ_CONFIG
7514
7515
7516 # _LT_LANG_GO_CONFIG([TAG])
7517 # --------------------------
7518 # Ensure that the configuration variables for the GNU Go compiler
7519 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7520 # to write the compiler configuration to `libtool'.
7521 m4_defun([_LT_LANG_GO_CONFIG],
7522 [AC_REQUIRE([LT_PROG_GO])dnl
7523 AC_LANG_SAVE
7524
7525 # Source file extension for Go test sources.
7526 ac_ext=go
7527
7528 # Object file extension for compiled Go test sources.
7529 objext=o
7530 _LT_TAGVAR(objext, $1)=$objext
7531
7532 # Code to be used in simple compile tests
7533 lt_simple_compile_test_code="package main; func main() { }"
7534
7535 # Code to be used in simple link tests
7536 lt_simple_link_test_code='package main; func main() { }'
7537
7538 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7539 _LT_TAG_COMPILER
7540
7541 # save warnings/boilerplate of simple test code
7542 _LT_COMPILER_BOILERPLATE
7543 _LT_LINKER_BOILERPLATE
7544
7545 # Allow CC to be a program name with arguments.
7546 lt_save_CC=$CC
7547 lt_save_CFLAGS=$CFLAGS
7548 lt_save_GCC=$GCC
7549 GCC=yes
7550 CC=${GOC-"gccgo"}
7551 CFLAGS=$GOFLAGS
7552 compiler=$CC
7553 _LT_TAGVAR(compiler, $1)=$CC
7554 _LT_TAGVAR(LD, $1)="$LD"
7555 _LT_CC_BASENAME([$compiler])
7556
7557 # Go did not exist at the time GCC didn't implicitly link libc in.
7558 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7559
7560 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7561 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7562 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7563
7564 if test -n "$compiler"; then
7565 _LT_COMPILER_NO_RTTI($1)
7566 _LT_COMPILER_PIC($1)
7567 _LT_COMPILER_C_O($1)
7568 _LT_COMPILER_FILE_LOCKS($1)
7569 _LT_LINKER_SHLIBS($1)
7570 _LT_LINKER_HARDCODE_LIBPATH($1)
7571
7572 _LT_CONFIG($1)
7573 fi
7574
7575 AC_LANG_RESTORE
7576
7577 GCC=$lt_save_GCC
7578 CC=$lt_save_CC
7579 CFLAGS=$lt_save_CFLAGS
7580 ])# _LT_LANG_GO_CONFIG
69397581
69407582
69417583 # _LT_LANG_RC_CONFIG([TAG])
69697611
69707612 # Allow CC to be a program name with arguments.
69717613 lt_save_CC="$CC"
7614 lt_save_CFLAGS=$CFLAGS
69727615 lt_save_GCC=$GCC
69737616 GCC=
69747617 CC=${RC-"windres"}
7618 CFLAGS=
69757619 compiler=$CC
69767620 _LT_TAGVAR(compiler, $1)=$CC
69777621 _LT_CC_BASENAME([$compiler])
69847628
69857629 GCC=$lt_save_GCC
69867630 AC_LANG_RESTORE
6987 CC="$lt_save_CC"
7631 CC=$lt_save_CC
7632 CFLAGS=$lt_save_CFLAGS
69887633 ])# _LT_LANG_RC_CONFIG
69897634
69907635
70027647 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
70037648 dnl aclocal-1.4 backwards compatibility:
70047649 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7650
7651
7652 # LT_PROG_GO
7653 # ----------
7654 AC_DEFUN([LT_PROG_GO],
7655 [AC_CHECK_TOOL(GOC, gccgo,)
7656 ])
70057657
70067658
70077659 # LT_PROG_RC
70437695 AC_SUBST([OBJDUMP])
70447696 ])
70457697
7698 # _LT_DECL_DLLTOOL
7699 # ----------------
7700 # Ensure DLLTOOL variable is set.
7701 m4_defun([_LT_DECL_DLLTOOL],
7702 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7703 test -z "$DLLTOOL" && DLLTOOL=dlltool
7704 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7705 AC_SUBST([DLLTOOL])
7706 ])
70467707
70477708 # _LT_DECL_SED
70487709 # ------------
71347795 # Try some XSI features
71357796 xsi_shell=no
71367797 ( _lt_dummy="a/b/c"
7137 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7138 = c,a/b,, \
7798 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7799 = c,a/b,b/c, \
71397800 && eval 'test $(( 1 + 1 )) -eq 2 \
71407801 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
71417802 && xsi_shell=yes
71747835 ])# _LT_CHECK_SHELL_FEATURES
71757836
71767837
7177 # _LT_PROG_XSI_SHELLFNS
7178 # ---------------------
7179 # Bourne and XSI compatible variants of some useful shell functions.
7180 m4_defun([_LT_PROG_XSI_SHELLFNS],
7181 [case $xsi_shell in
7182 yes)
7183 cat << \_LT_EOF >> "$cfgfile"
7184
7185 # func_dirname file append nondir_replacement
7186 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7187 # otherwise set result to NONDIR_REPLACEMENT.
7188 func_dirname ()
7189 {
7190 case ${1} in
7191 */*) func_dirname_result="${1%/*}${2}" ;;
7192 * ) func_dirname_result="${3}" ;;
7193 esac
7194 }
7195
7196 # func_basename file
7197 func_basename ()
7198 {
7199 func_basename_result="${1##*/}"
7200 }
7201
7202 # func_dirname_and_basename file append nondir_replacement
7203 # perform func_basename and func_dirname in a single function
7204 # call:
7205 # dirname: Compute the dirname of FILE. If nonempty,
7206 # add APPEND to the result, otherwise set result
7207 # to NONDIR_REPLACEMENT.
7208 # value returned in "$func_dirname_result"
7209 # basename: Compute filename of FILE.
7210 # value retuned in "$func_basename_result"
7211 # Implementation must be kept synchronized with func_dirname
7212 # and func_basename. For efficiency, we do not delegate to
7213 # those functions but instead duplicate the functionality here.
7214 func_dirname_and_basename ()
7215 {
7216 case ${1} in
7217 */*) func_dirname_result="${1%/*}${2}" ;;
7218 * ) func_dirname_result="${3}" ;;
7219 esac
7220 func_basename_result="${1##*/}"
7221 }
7222
7223 # func_stripname prefix suffix name
7224 # strip PREFIX and SUFFIX off of NAME.
7225 # PREFIX and SUFFIX must not contain globbing or regex special
7226 # characters, hashes, percent signs, but SUFFIX may contain a leading
7227 # dot (in which case that matches only a dot).
7228 func_stripname ()
7229 {
7230 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7231 # positional parameters, so assign one to ordinary parameter first.
7232 func_stripname_result=${3}
7233 func_stripname_result=${func_stripname_result#"${1}"}
7234 func_stripname_result=${func_stripname_result%"${2}"}
7235 }
7236
7237 # func_opt_split
7238 func_opt_split ()
7239 {
7240 func_opt_split_opt=${1%%=*}
7241 func_opt_split_arg=${1#*=}
7242 }
7243
7244 # func_lo2o object
7245 func_lo2o ()
7246 {
7247 case ${1} in
7248 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7249 *) func_lo2o_result=${1} ;;
7250 esac
7251 }
7252
7253 # func_xform libobj-or-source
7254 func_xform ()
7255 {
7256 func_xform_result=${1%.*}.lo
7257 }
7258
7259 # func_arith arithmetic-term...
7260 func_arith ()
7261 {
7262 func_arith_result=$(( $[*] ))
7263 }
7264
7265 # func_len string
7266 # STRING may not start with a hyphen.
7267 func_len ()
7268 {
7269 func_len_result=${#1}
7270 }
7271
7272 _LT_EOF
7838 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7839 # ------------------------------------------------------
7840 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7841 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7842 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7843 [dnl {
7844 sed -e '/^$1 ()$/,/^} # $1 /c\
7845 $1 ()\
7846 {\
7847 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7848 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7849 && mv -f "$cfgfile.tmp" "$cfgfile" \
7850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7851 test 0 -eq $? || _lt_function_replace_fail=:
7852 ])
7853
7854
7855 # _LT_PROG_REPLACE_SHELLFNS
7856 # -------------------------
7857 # Replace existing portable implementations of several shell functions with
7858 # equivalent extended shell implementations where those features are available..
7859 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7860 [if test x"$xsi_shell" = xyes; then
7861 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7862 case ${1} in
7863 */*) func_dirname_result="${1%/*}${2}" ;;
7864 * ) func_dirname_result="${3}" ;;
7865 esac])
7866
7867 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7868 func_basename_result="${1##*/}"])
7869
7870 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7871 case ${1} in
7872 */*) func_dirname_result="${1%/*}${2}" ;;
7873 * ) func_dirname_result="${3}" ;;
7874 esac
7875 func_basename_result="${1##*/}"])
7876
7877 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7878 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7879 # positional parameters, so assign one to ordinary parameter first.
7880 func_stripname_result=${3}
7881 func_stripname_result=${func_stripname_result#"${1}"}
7882 func_stripname_result=${func_stripname_result%"${2}"}])
7883
7884 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7885 func_split_long_opt_name=${1%%=*}
7886 func_split_long_opt_arg=${1#*=}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7889 func_split_short_opt_arg=${1#??}
7890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7893 case ${1} in
7894 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7895 *) func_lo2o_result=${1} ;;
7896 esac])
7897
7898 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7899
7900 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7903 fi
7904
7905 if test x"$lt_shell_append" = xyes; then
7906 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7907
7908 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7909 func_quote_for_eval "${2}"
7910 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7911 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7912
7913 # Save a `func_append' function call where possible by direct use of '+='
7914 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7915 && mv -f "$cfgfile.tmp" "$cfgfile" \
7916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7917 test 0 -eq $? || _lt_function_replace_fail=:
7918 else
7919 # Save a `func_append' function call even when '+=' is not available
7920 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7921 && mv -f "$cfgfile.tmp" "$cfgfile" \
7922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7923 test 0 -eq $? || _lt_function_replace_fail=:
7924 fi
7925
7926 if test x"$_lt_function_replace_fail" = x":"; then
7927 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7928 fi
7929 ])
7930
7931 # _LT_PATH_CONVERSION_FUNCTIONS
7932 # -----------------------------
7933 # Determine which file name conversion functions should be used by
7934 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7935 # for certain cross-compile configurations and native mingw.
7936 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7937 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7938 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7939 AC_MSG_CHECKING([how to convert $build file names to $host format])
7940 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7941 [case $host in
7942 *-*-mingw* )
7943 case $build in
7944 *-*-mingw* ) # actually msys
7945 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7946 ;;
7947 *-*-cygwin* )
7948 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7949 ;;
7950 * ) # otherwise, assume *nix
7951 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7952 ;;
7953 esac
72737954 ;;
7274 *) # Bourne compatible functions.
7275 cat << \_LT_EOF >> "$cfgfile"
7276
7277 # func_dirname file append nondir_replacement
7278 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7279 # otherwise set result to NONDIR_REPLACEMENT.
7280 func_dirname ()
7281 {
7282 # Extract subdirectory from the argument.
7283 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7284 if test "X$func_dirname_result" = "X${1}"; then
7285 func_dirname_result="${3}"
7286 else
7287 func_dirname_result="$func_dirname_result${2}"
7288 fi
7289 }
7290
7291 # func_basename file
7292 func_basename ()
7293 {
7294 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7295 }
7296
7297 dnl func_dirname_and_basename
7298 dnl A portable version of this function is already defined in general.m4sh
7299 dnl so there is no need for it here.
7300
7301 # func_stripname prefix suffix name
7302 # strip PREFIX and SUFFIX off of NAME.
7303 # PREFIX and SUFFIX must not contain globbing or regex special
7304 # characters, hashes, percent signs, but SUFFIX may contain a leading
7305 # dot (in which case that matches only a dot).
7306 # func_strip_suffix prefix name
7307 func_stripname ()
7308 {
7309 case ${2} in
7310 .*) func_stripname_result=`$ECHO "X${3}" \
7311 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7312 *) func_stripname_result=`$ECHO "X${3}" \
7313 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7314 esac
7315 }
7316
7317 # sed scripts:
7318 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7319 my_sed_long_arg='1s/^-[[^=]]*=//'
7320
7321 # func_opt_split
7322 func_opt_split ()
7323 {
7324 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7325 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7326 }
7327
7328 # func_lo2o object
7329 func_lo2o ()
7330 {
7331 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7332 }
7333
7334 # func_xform libobj-or-source
7335 func_xform ()
7336 {
7337 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7338 }
7339
7340 # func_arith arithmetic-term...
7341 func_arith ()
7342 {
7343 func_arith_result=`expr "$[@]"`
7344 }
7345
7346 # func_len string
7347 # STRING may not start with a hyphen.
7348 func_len ()
7349 {
7350 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7351 }
7352
7353 _LT_EOF
7955 *-*-cygwin* )
7956 case $build in
7957 *-*-mingw* ) # actually msys
7958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7959 ;;
7960 *-*-cygwin* )
7961 lt_cv_to_host_file_cmd=func_convert_file_noop
7962 ;;
7963 * ) # otherwise, assume *nix
7964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7965 ;;
7966 esac
7967 ;;
7968 * ) # unhandled hosts (and "normal" native builds)
7969 lt_cv_to_host_file_cmd=func_convert_file_noop
7970 ;;
73547971 esac
7355
7356 case $lt_shell_append in
7357 yes)
7358 cat << \_LT_EOF >> "$cfgfile"
7359
7360 # func_append var value
7361 # Append VALUE to the end of shell variable VAR.
7362 func_append ()
7363 {
7364 eval "$[1]+=\$[2]"
7365 }
7366 _LT_EOF
7972 ])
7973 to_host_file_cmd=$lt_cv_to_host_file_cmd
7974 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7975 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7976 [0], [convert $build file names to $host format])dnl
7977
7978 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7979 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7980 [#assume ordinary cross tools, or native build.
7981 lt_cv_to_tool_file_cmd=func_convert_file_noop
7982 case $host in
7983 *-*-mingw* )
7984 case $build in
7985 *-*-mingw* ) # actually msys
7986 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7987 ;;
7988 esac
73677989 ;;
7368 *)
7369 cat << \_LT_EOF >> "$cfgfile"
7370
7371 # func_append var value
7372 # Append VALUE to the end of shell variable VAR.
7373 func_append ()
7374 {
7375 eval "$[1]=\$$[1]\$[2]"
7376 }
7377
7378 _LT_EOF
7379 ;;
7380 esac
7990 esac
73817991 ])
7992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7993 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7994 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7995 [0], [convert $build files to toolchain format])dnl
7996 ])# _LT_PATH_CONVERSION_FUNCTIONS
73827997
73837998 # Helper functions for option handling. -*- Autoconf -*-
73847999 #
7385 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8000 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8001 # Inc.
73868002 # Written by Gary V. Vaughan, 2004
73878003 #
73888004 # This file is free software; the Free Software Foundation gives
73898005 # unlimited permission to copy and/or distribute it, with or without
73908006 # modifications, as long as this notice is preserved.
73918007
7392 # serial 6 ltoptions.m4
8008 # serial 7 ltoptions.m4
73938009
73948010 # This is to help aclocal find these macros, as it can't see m4_define.
73958011 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
75048120 [enable_win32_dll=yes
75058121
75068122 case $host in
7507 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
75088124 AC_CHECK_TOOL(AS, as, false)
75098125 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
75108126 AC_CHECK_TOOL(OBJDUMP, objdump, false)
75128128 esac
75138129
75148130 test -z "$AS" && AS=as
7515 _LT_DECL([], [AS], [0], [Assembler program])dnl
8131 _LT_DECL([], [AS], [1], [Assembler program])dnl
75168132
75178133 test -z "$DLLTOOL" && DLLTOOL=dlltool
7518 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8134 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
75198135
75208136 test -z "$OBJDUMP" && OBJDUMP=objdump
7521 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8137 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
75228138 ])# win32-dll
75238139
75248140 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
77048320 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
77058321 m4_define([_LT_WITH_PIC],
77068322 [AC_ARG_WITH([pic],
7707 [AS_HELP_STRING([--with-pic],
8323 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
77088324 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7709 [pic_mode="$withval"],
8325 [lt_p=${PACKAGE-default}
8326 case $withval in
8327 yes|no) pic_mode=$withval ;;
8328 *)
8329 pic_mode=default
8330 # Look at the argument we got. We use all the common list separators.
8331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8332 for lt_pkg in $withval; do
8333 IFS="$lt_save_ifs"
8334 if test "X$lt_pkg" = "X$lt_p"; then
8335 pic_mode=yes
8336 fi
8337 done
8338 IFS="$lt_save_ifs"
8339 ;;
8340 esac],
77108341 [pic_mode=default])
77118342
77128343 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
78768507 # unlimited permission to copy and/or distribute it, with or without
78778508 # modifications, as long as this notice is preserved.
78788509
7879 # Generated from ltversion.in.
7880
7881 # serial 3017 ltversion.m4
8510 # @configure_input@
8511
8512 # serial 3337 ltversion.m4
78828513 # This file is part of GNU Libtool
78838514
7884 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7885 m4_define([LT_PACKAGE_REVISION], [1.3017])
8515 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8516 m4_define([LT_PACKAGE_REVISION], [1.3337])
78868517
78878518 AC_DEFUN([LTVERSION_VERSION],
7888 [macro_version='2.2.6b'
7889 macro_revision='1.3017'
8519 [macro_version='2.4.2'
8520 macro_revision='1.3337'
78908521 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
78918522 _LT_DECL(, macro_revision, 0)
78928523 ])
78938524
78948525 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
78958526 #
7896 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8527 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
78978528 # Written by Scott James Remnant, 2004.
78988529 #
78998530 # This file is free software; the Free Software Foundation gives
79008531 # unlimited permission to copy and/or distribute it, with or without
79018532 # modifications, as long as this notice is preserved.
79028533
7903 # serial 4 lt~obsolete.m4
8534 # serial 5 lt~obsolete.m4
79048535
79058536 # These exist entirely to fool aclocal when bootstrapping libtool.
79068537 #
79708601 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
79718602 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
79728603 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7973 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
79748604 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
79758605 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
79768606 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
79838613 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
79848614 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
79858615 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7986
7987 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8616 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8617 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8618 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8619 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8620 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8621 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8622 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8623
8624 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
79888625 #
79898626 # This file is free software; the Free Software Foundation
79908627 # gives unlimited permission to copy and/or distribute it,
79968633 # generated from the m4 files accompanying Automake X.Y.
79978634 # (This private macro should not be called outside this file.)
79988635 AC_DEFUN([AM_AUTOMAKE_VERSION],
7999 [am__api_version='1.11'
8636 [am__api_version='1.14'
80008637 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
80018638 dnl require some minimum version. Point them to the right macro.
8002 m4_if([$1], [1.11.1], [],
8639 m4_if([$1], [1.14.1], [],
80038640 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
80048641 ])
80058642
80158652 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
80168653 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
80178654 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8018 [AM_AUTOMAKE_VERSION([1.11.1])dnl
8655 [AM_AUTOMAKE_VERSION([1.14.1])dnl
80198656 m4_ifndef([AC_AUTOCONF_VERSION],
80208657 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
80218658 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
80228659
80238660 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
80248661
8025 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8662 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
80268663 #
80278664 # This file is free software; the Free Software Foundation
80288665 # gives unlimited permission to copy and/or distribute it,
80298666 # with or without modifications, as long as this notice is preserved.
80308667
80318668 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8032 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8033 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8669 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
8670 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
80348671 #
80358672 # Of course, Automake must honor this variable whenever it calls a
80368673 # tool from the auxiliary directory. The problem is that $srcdir (and
80498686 #
80508687 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
80518688 # are both prefixed by $srcdir. In an in-source build this is usually
8052 # harmless because $srcdir is `.', but things will broke when you
8689 # harmless because $srcdir is '.', but things will broke when you
80538690 # start a VPATH build or use an absolute $srcdir.
80548691 #
80558692 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
80758712
80768713 # AM_CONDITIONAL -*- Autoconf -*-
80778714
8078 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8079 # Free Software Foundation, Inc.
8715 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
80808716 #
80818717 # This file is free software; the Free Software Foundation
80828718 # gives unlimited permission to copy and/or distribute it,
80838719 # with or without modifications, as long as this notice is preserved.
80848720
8085 # serial 9
8086
80878721 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
80888722 # -------------------------------------
80898723 # Define a conditional.
80908724 AC_DEFUN([AM_CONDITIONAL],
8091 [AC_PREREQ(2.52)dnl
8092 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8093 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8725 [AC_PREREQ([2.52])dnl
8726 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8727 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
80948728 AC_SUBST([$1_TRUE])dnl
80958729 AC_SUBST([$1_FALSE])dnl
80968730 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
81098743 Usually this means the macro was only invoked conditionally.]])
81108744 fi])])
81118745
8112 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8113 # Free Software Foundation, Inc.
8746 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
81148747 #
81158748 # This file is free software; the Free Software Foundation
81168749 # gives unlimited permission to copy and/or distribute it,
81178750 # with or without modifications, as long as this notice is preserved.
81188751
8119 # serial 10
8120
8121 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8752
8753 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
81228754 # written in clear, in which case automake, when reading aclocal.m4,
81238755 # will think it sees a *use*, and therefore will trigger all it's
81248756 # C support machinery. Also note that it means that autoscan, seeing
81288760 # _AM_DEPENDENCIES(NAME)
81298761 # ----------------------
81308762 # See how the compiler implements dependency checking.
8131 # NAME is "CC", "CXX", "GCJ", or "OBJC".
8763 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
81328764 # We try a few techniques and use that to set a single cache variable.
81338765 #
81348766 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
81418773 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
81428774 AC_REQUIRE([AM_DEP_TRACK])dnl
81438775
8144 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8145 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8146 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8147 [$1], UPC, [depcc="$UPC" am_compiler_list=],
8148 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8149 [depcc="$$1" am_compiler_list=])
8776 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
8777 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
8778 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8779 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
8780 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
8781 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8782 [depcc="$$1" am_compiler_list=])
81508783
81518784 AC_CACHE_CHECK([dependency style of $depcc],
81528785 [am_cv_$1_dependencies_compiler_type],
81548787 # We make a subdir and do the tests there. Otherwise we can end up
81558788 # making bogus files that we don't know about and never remove. For
81568789 # instance it was reported that on HP-UX the gcc test will end up
8157 # making a dummy file named `D' -- because `-MD' means `put the output
8158 # in D'.
8790 # making a dummy file named 'D' -- because '-MD' means "put the output
8791 # in D".
8792 rm -rf conftest.dir
81598793 mkdir conftest.dir
81608794 # Copy depcomp to subdir because otherwise we won't find it if we're
81618795 # using a relative directory.
81948828 : > sub/conftest.c
81958829 for i in 1 2 3 4 5 6; do
81968830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8198 # Solaris 8's {/usr,}/bin/sh.
8199 touch sub/conftst$i.h
8831 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8832 # Solaris 10 /bin/sh.
8833 echo '/* dummy */' > sub/conftst$i.h
82008834 done
82018835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
82028836
8203 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8837 # We check with '-c' and '-o' for the sake of the "dashmstdout"
82048838 # mode. It turns out that the SunPro C++ compiler does not properly
8205 # handle `-M -o', and we need to detect this. Also, some Intel
8206 # versions had trouble with output in subdirs
8839 # handle '-M -o', and we need to detect this. Also, some Intel
8840 # versions had trouble with output in subdirs.
82078841 am__obj=sub/conftest.${OBJEXT-o}
82088842 am__minus_obj="-o $am__obj"
82098843 case $depmode in
82128846 test "$am__universal" = false || continue
82138847 ;;
82148848 nosideeffect)
8215 # after this tag, mechanisms are not by side-effect, so they'll
8216 # only be used when explicitly requested
8849 # After this tag, mechanisms are not by side-effect, so they'll
8850 # only be used when explicitly requested.
82178851 if test "x$enable_dependency_tracking" = xyes; then
82188852 continue
82198853 else
82208854 break
82218855 fi
82228856 ;;
8223 msvisualcpp | msvcmsys)
8224 # This compiler won't grok `-c -o', but also, the minuso test has
8857 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8858 # This compiler won't grok '-c -o', but also, the minuso test has
82258859 # not run yet. These depmodes are late enough in the game, and
82268860 # so weak that their functioning should not be impacted.
82278861 am__obj=conftest.${OBJEXT-o}
82698903 # AM_SET_DEPDIR
82708904 # -------------
82718905 # Choose a directory name for dependency files.
8272 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
8906 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
82738907 AC_DEFUN([AM_SET_DEPDIR],
82748908 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
82758909 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
82798913 # AM_DEP_TRACK
82808914 # ------------
82818915 AC_DEFUN([AM_DEP_TRACK],
8282 [AC_ARG_ENABLE(dependency-tracking,
8283 [ --disable-dependency-tracking speeds up one-time build
8284 --enable-dependency-tracking do not reject slow dependency extractors])
8916 [AC_ARG_ENABLE([dependency-tracking], [dnl
8917 AS_HELP_STRING(
8918 [--enable-dependency-tracking],
8919 [do not reject slow dependency extractors])
8920 AS_HELP_STRING(
8921 [--disable-dependency-tracking],
8922 [speeds up one-time build])])
82858923 if test "x$enable_dependency_tracking" != xno; then
82868924 am_depcomp="$ac_aux_dir/depcomp"
82878925 AMDEPBACKSLASH='\'
8926 am__nodep='_no'
82888927 fi
82898928 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
82908929 AC_SUBST([AMDEPBACKSLASH])dnl
82918930 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8931 AC_SUBST([am__nodep])dnl
8932 _AM_SUBST_NOTMAKE([am__nodep])dnl
82928933 ])
82938934
82948935 # Generate code to set up dependency tracking. -*- Autoconf -*-
82958936
8296 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8297 # Free Software Foundation, Inc.
8937 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
82988938 #
82998939 # This file is free software; the Free Software Foundation
83008940 # gives unlimited permission to copy and/or distribute it,
83018941 # with or without modifications, as long as this notice is preserved.
83028942
8303 #serial 5
83048943
83058944 # _AM_OUTPUT_DEPENDENCY_COMMANDS
83068945 # ------------------------------
83078946 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
83088947 [{
8309 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8948 # Older Autoconf quotes --file arguments for eval, but not when files
83108949 # are listed without --file. Let's play safe and only enable the eval
83118950 # if we detect the quoting.
83128951 case $CONFIG_FILES in
83198958 # Strip MF so we end up with the name of the file.
83208959 mf=`echo "$mf" | sed -e 's/:.*$//'`
83218960 # Check whether this is an Automake generated Makefile or not.
8322 # We used to match only the files named `Makefile.in', but
8961 # We used to match only the files named 'Makefile.in', but
83238962 # some people rename them; so instead we look at the file content.
83248963 # Grep'ing the first line is not enough: some people post-process
83258964 # each Makefile.in and add a new line on top of each file to say so.
83318970 continue
83328971 fi
83338972 # Extract the definition of DEPDIR, am__include, and am__quote
8334 # from the Makefile without running `make'.
8973 # from the Makefile without running 'make'.
83358974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
83368975 test -z "$DEPDIR" && continue
83378976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8338 test -z "am__include" && continue
8977 test -z "$am__include" && continue
83398978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8340 # When using ansi2knr, U may be empty or an underscore; expand it
8341 U=`sed -n 's/^U = //p' < "$mf"`
83428979 # Find all dependency output files, they are included files with
83438980 # $(DEPDIR) in their names. We invoke sed twice because it is the
83448981 # simplest approach to changing $(DEPDIR) to its actual value in the
83458982 # expansion.
83468983 for file in `sed -n "
83478984 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8348 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8985 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
83498986 # Make sure the directory exists.
83508987 test -f "$dirpart/$file" && continue
83518988 fdir=`AS_DIRNAME(["$file"])`
83639000 # This macro should only be invoked once -- use via AC_REQUIRE.
83649001 #
83659002 # This code is only required when automatic dependency tracking
8366 # is enabled. FIXME. This creates each `.P' file that we will
9003 # is enabled. FIXME. This creates each '.P' file that we will
83679004 # need in order to bootstrap the dependency handling code.
83689005 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
83699006 [AC_CONFIG_COMMANDS([depfiles],
83739010
83749011 # Do all the work for Automake. -*- Autoconf -*-
83759012
8376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8377 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9013 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
83789014 #
83799015 # This file is free software; the Free Software Foundation
83809016 # gives unlimited permission to copy and/or distribute it,
83819017 # with or without modifications, as long as this notice is preserved.
83829018
8383 # serial 16
8384
83859019 # This macro actually does too much. Some checks are only needed if
83869020 # your package does certain things. But this isn't really a big deal.
9021
9022 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9023 m4_define([AC_PROG_CC],
9024 m4_defn([AC_PROG_CC])
9025 [_AM_PROG_CC_C_O
9026 ])
83879027
83889028 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
83899029 # AM_INIT_AUTOMAKE([OPTIONS])
83979037 # arguments mandatory, and then we can depend on a new Autoconf
83989038 # release and drop the old call support.
83999039 AC_DEFUN([AM_INIT_AUTOMAKE],
8400 [AC_PREREQ([2.62])dnl
9040 [AC_PREREQ([2.65])dnl
84019041 dnl Autoconf wants to disallow AM_ names. We explicitly allow
84029042 dnl the ones we care about.
84039043 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
84269066 # Define the identity of the package.
84279067 dnl Distinguish between old-style and new-style calls.
84289068 m4_ifval([$2],
8429 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9069 [AC_DIAGNOSE([obsolete],
9070 [$0: two- and three-arguments forms are deprecated.])
9071 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
84309072 AC_SUBST([PACKAGE], [$1])dnl
84319073 AC_SUBST([VERSION], [$2])],
84329074 [_AM_SET_OPTIONS([$1])dnl
84339075 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8434 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9076 m4_if(
9077 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
9078 [ok:ok],,
84359079 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
84369080 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
84379081 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
84389082
84399083 _AM_IF_OPTION([no-define],,
8440 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
8441 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9084 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
9085 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
84429086
84439087 # Some tools Automake needs.
84449088 AC_REQUIRE([AM_SANITY_CHECK])dnl
84459089 AC_REQUIRE([AC_ARG_PROGRAM])dnl
8446 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
8447 AM_MISSING_PROG(AUTOCONF, autoconf)
8448 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
8449 AM_MISSING_PROG(AUTOHEADER, autoheader)
8450 AM_MISSING_PROG(MAKEINFO, makeinfo)
9090 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9091 AM_MISSING_PROG([AUTOCONF], [autoconf])
9092 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9093 AM_MISSING_PROG([AUTOHEADER], [autoheader])
9094 AM_MISSING_PROG([MAKEINFO], [makeinfo])
84519095 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
84529096 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
8453 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9097 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9098 # For better backward compatibility. To be removed once Automake 1.9.x
9099 # dies out for good. For more background, see:
9100 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9101 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9102 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
84549103 # We need awk for the "check" target. The system "awk" is bad on
84559104 # some platforms.
84569105 AC_REQUIRE([AC_PROG_AWK])dnl
84619110 [_AM_PROG_TAR([v7])])])
84629111 _AM_IF_OPTION([no-dependencies],,
84639112 [AC_PROVIDE_IFELSE([AC_PROG_CC],
8464 [_AM_DEPENDENCIES(CC)],
8465 [define([AC_PROG_CC],
8466 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9113 [_AM_DEPENDENCIES([CC])],
9114 [m4_define([AC_PROG_CC],
9115 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
84679116 AC_PROVIDE_IFELSE([AC_PROG_CXX],
8468 [_AM_DEPENDENCIES(CXX)],
8469 [define([AC_PROG_CXX],
8470 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9117 [_AM_DEPENDENCIES([CXX])],
9118 [m4_define([AC_PROG_CXX],
9119 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
84719120 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8472 [_AM_DEPENDENCIES(OBJC)],
8473 [define([AC_PROG_OBJC],
8474 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9121 [_AM_DEPENDENCIES([OBJC])],
9122 [m4_define([AC_PROG_OBJC],
9123 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9124 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9125 [_AM_DEPENDENCIES([OBJCXX])],
9126 [m4_define([AC_PROG_OBJCXX],
9127 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
84759128 ])
8476 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
8477 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
8478 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
8479 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9129 AC_REQUIRE([AM_SILENT_RULES])dnl
9130 dnl The testsuite driver may need to know about EXEEXT, so add the
9131 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
9132 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
84809133 AC_CONFIG_COMMANDS_PRE(dnl
84819134 [m4_provide_if([_AM_COMPILER_EXEEXT],
84829135 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
8483 ])
8484
8485 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9136
9137 # POSIX will say in a future version that running "rm -f" with no argument
9138 # is OK; and we want to be able to make that assumption in our Makefile
9139 # recipes. So use an aggressive probe to check that the usage we want is
9140 # actually supported "in the wild" to an acceptable degree.
9141 # See automake bug#10828.
9142 # To make any issue more visible, cause the running configure to be aborted
9143 # by default if the 'rm' program in use doesn't match our expectations; the
9144 # user can still override this though.
9145 if rm -f && rm -fr && rm -rf; then : OK; else
9146 cat >&2 <<'END'
9147 Oops!
9148
9149 Your 'rm' program seems unable to run without file operands specified
9150 on the command line, even when the '-f' option is present. This is contrary
9151 to the behaviour of most rm programs out there, and not conforming with
9152 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9153
9154 Please tell bug-automake@gnu.org about your system, including the value
9155 of your $PATH and any error possibly output before this message. This
9156 can help us improve future automake versions.
9157
9158 END
9159 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9160 echo 'Configuration will proceed anyway, since you have set the' >&2
9161 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9162 echo >&2
9163 else
9164 cat >&2 <<'END'
9165 Aborting the configuration process, to ensure you take notice of the issue.
9166
9167 You can download and install GNU coreutils to get an 'rm' implementation
9168 that behaves properly: <http://www.gnu.org/software/coreutils/>.
9169
9170 If you want to complete the configuration process using your problematic
9171 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9172 to "yes", and re-run configure.
9173
9174 END
9175 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9176 fi
9177 fi])
9178
9179 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
84869180 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
84879181 dnl mangled by Autoconf and run in a shell conditional statement.
84889182 m4_define([_AC_COMPILER_EXEEXT],
84899183 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
8490
84919184
84929185 # When config.status generates a header, we must update the stamp-h file.
84939186 # This file resides in the same directory as the config header
85109203 done
85119204 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
85129205
8513 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9206 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
85149207 #
85159208 # This file is free software; the Free Software Foundation
85169209 # gives unlimited permission to copy and/or distribute it,
85299222 install_sh="\${SHELL} $am_aux_dir/install-sh"
85309223 esac
85319224 fi
8532 AC_SUBST(install_sh)])
8533
8534 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9225 AC_SUBST([install_sh])])
9226
9227 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
85359228 #
85369229 # This file is free software; the Free Software Foundation
85379230 # gives unlimited permission to copy and/or distribute it,
85389231 # with or without modifications, as long as this notice is preserved.
8539
8540 # serial 2
85419232
85429233 # Check whether the underlying file-system supports filenames
85439234 # with a leading dot. For instance MS-DOS doesn't.
85559246 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
85569247 # From Jim Meyering
85579248
8558 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8559 # Free Software Foundation, Inc.
9249 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
85609250 #
85619251 # This file is free software; the Free Software Foundation
85629252 # gives unlimited permission to copy and/or distribute it,
85639253 # with or without modifications, as long as this notice is preserved.
85649254
8565 # serial 5
8566
85679255 # AM_MAINTAINER_MODE([DEFAULT-MODE])
85689256 # ----------------------------------
85699257 # Control maintainer-specific portions of Makefiles.
8570 # Default is to disable them, unless `enable' is passed literally.
8571 # For symmetry, `disable' may be passed as well. Anyway, the user
9258 # Default is to disable them, unless 'enable' is passed literally.
9259 # For symmetry, 'disable' may be passed as well. Anyway, the user
85729260 # can override the default with the --enable/--disable switch.
85739261 AC_DEFUN([AM_MAINTAINER_MODE],
85749262 [m4_case(m4_default([$1], [disable]),
85769264 [disable], [m4_define([am_maintainer_other], [enable])],
85779265 [m4_define([am_maintainer_other], [enable])
85789266 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
8579 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9267 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
85809268 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
85819269 AC_ARG_ENABLE([maintainer-mode],
8582 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
8583 (and sometimes confusing) to the casual installer],
8584 [USE_MAINTAINER_MODE=$enableval],
8585 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9270 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
9271 am_maintainer_other[ make rules and dependencies not useful
9272 (and sometimes confusing) to the casual installer])],
9273 [USE_MAINTAINER_MODE=$enableval],
9274 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
85869275 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
85879276 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
85889277 MAINT=$MAINTAINER_MODE_TRUE
85909279 ]
85919280 )
85929281
8593 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8594
85959282 # Check to see how 'make' treats includes. -*- Autoconf -*-
85969283
8597 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9284 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
85989285 #
85999286 # This file is free software; the Free Software Foundation
86009287 # gives unlimited permission to copy and/or distribute it,
86019288 # with or without modifications, as long as this notice is preserved.
8602
8603 # serial 4
86049289
86059290 # AM_MAKE_INCLUDE()
86069291 # -----------------
86199304 _am_result=none
86209305 # First try GNU make style include.
86219306 echo "include confinc" > confmf
8622 # Ignore all kinds of additional output from `make'.
9307 # Ignore all kinds of additional output from 'make'.
86239308 case `$am_make -s -f confmf 2> /dev/null` in #(
86249309 *the\ am__doit\ target*)
86259310 am__include=include
86469331
86479332 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
86489333
8649 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
8650 # Free Software Foundation, Inc.
9334 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
86519335 #
86529336 # This file is free software; the Free Software Foundation
86539337 # gives unlimited permission to copy and/or distribute it,
86549338 # with or without modifications, as long as this notice is preserved.
8655
8656 # serial 6
86579339
86589340 # AM_MISSING_PROG(NAME, PROGRAM)
86599341 # ------------------------------
86629344 $1=${$1-"${am_missing_run}$2"}
86639345 AC_SUBST($1)])
86649346
8665
86669347 # AM_MISSING_HAS_RUN
86679348 # ------------------
8668 # Define MISSING if not defined so far and test if it supports --run.
8669 # If it does, set am_missing_run to use it, otherwise, to nothing.
9349 # Define MISSING if not defined so far and test if it is modern enough.
9350 # If it is, set am_missing_run to use it, otherwise, to nothing.
86709351 AC_DEFUN([AM_MISSING_HAS_RUN],
86719352 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
86729353 AC_REQUIRE_AUX_FILE([missing])dnl
86799360 esac
86809361 fi
86819362 # Use eval to expand $SHELL
8682 if eval "$MISSING --run true"; then
8683 am_missing_run="$MISSING --run "
9363 if eval "$MISSING --is-lightweight"; then
9364 am_missing_run="$MISSING "
86849365 else
86859366 am_missing_run=
8686 AC_MSG_WARN([`missing' script is too old or missing])
9367 AC_MSG_WARN(['missing' script is too old or missing])
86879368 fi
86889369 ])
86899370
8690 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9371 # Helper functions for option handling. -*- Autoconf -*-
9372
9373 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
86919374 #
86929375 # This file is free software; the Free Software Foundation
86939376 # gives unlimited permission to copy and/or distribute it,
86949377 # with or without modifications, as long as this notice is preserved.
86959378
8696 # AM_PROG_MKDIR_P
8697 # ---------------
8698 # Check for `mkdir -p'.
8699 AC_DEFUN([AM_PROG_MKDIR_P],
8700 [AC_PREREQ([2.60])dnl
8701 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8702 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8703 dnl while keeping a definition of mkdir_p for backward compatibility.
8704 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8705 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8706 dnl Makefile.ins that do not define MKDIR_P, so we do our own
8707 dnl adjustment using top_builddir (which is defined more often than
8708 dnl MKDIR_P).
8709 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8710 case $mkdir_p in
8711 [[\\/$]]* | ?:[[\\/]]*) ;;
8712 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8713 esac
8714 ])
8715
8716 # Helper functions for option handling. -*- Autoconf -*-
8717
8718 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
8719 #
8720 # This file is free software; the Free Software Foundation
8721 # gives unlimited permission to copy and/or distribute it,
8722 # with or without modifications, as long as this notice is preserved.
8723
8724 # serial 4
8725
87269379 # _AM_MANGLE_OPTION(NAME)
87279380 # -----------------------
87289381 AC_DEFUN([_AM_MANGLE_OPTION],
87299382 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
87309383
87319384 # _AM_SET_OPTION(NAME)
8732 # ------------------------------
9385 # --------------------
87339386 # Set option NAME. Presently that only means defining a flag for this option.
87349387 AC_DEFUN([_AM_SET_OPTION],
8735 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9388 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
87369389
87379390 # _AM_SET_OPTIONS(OPTIONS)
8738 # ----------------------------------
9391 # ------------------------
87399392 # OPTIONS is a space-separated list of Automake options.
87409393 AC_DEFUN([_AM_SET_OPTIONS],
87419394 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
87469399 AC_DEFUN([_AM_IF_OPTION],
87479400 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
87489401
8749 # Check to make sure that the build environment is sane. -*- Autoconf -*-
8750
8751 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
8752 # Free Software Foundation, Inc.
9402 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
87539403 #
87549404 # This file is free software; the Free Software Foundation
87559405 # gives unlimited permission to copy and/or distribute it,
87569406 # with or without modifications, as long as this notice is preserved.
87579407
8758 # serial 5
9408 # _AM_PROG_CC_C_O
9409 # ---------------
9410 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
9411 # to automatically call this.
9412 AC_DEFUN([_AM_PROG_CC_C_O],
9413 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9414 AC_REQUIRE_AUX_FILE([compile])dnl
9415 AC_LANG_PUSH([C])dnl
9416 AC_CACHE_CHECK(
9417 [whether $CC understands -c and -o together],
9418 [am_cv_prog_cc_c_o],
9419 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9420 # Make sure it works both with $CC and with simple cc.
9421 # Following AC_PROG_CC_C_O, we do the test twice because some
9422 # compilers refuse to overwrite an existing .o file with -o,
9423 # though they will create one.
9424 am_cv_prog_cc_c_o=yes
9425 for am_i in 1 2; do
9426 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9427 && test -f conftest2.$ac_objext; then
9428 : OK
9429 else
9430 am_cv_prog_cc_c_o=no
9431 break
9432 fi
9433 done
9434 rm -f core conftest*
9435 unset am_i])
9436 if test "$am_cv_prog_cc_c_o" != yes; then
9437 # Losing compiler, so override with the script.
9438 # FIXME: It is wrong to rewrite CC.
9439 # But if we don't then we get into trouble of one sort or another.
9440 # A longer-term fix would be to have automake use am__CC in this case,
9441 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9442 CC="$am_aux_dir/compile $CC"
9443 fi
9444 AC_LANG_POP([C])])
9445
9446 # For backward compatibility.
9447 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9448
9449 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9450 #
9451 # This file is free software; the Free Software Foundation
9452 # gives unlimited permission to copy and/or distribute it,
9453 # with or without modifications, as long as this notice is preserved.
9454
9455 # AM_RUN_LOG(COMMAND)
9456 # -------------------
9457 # Run COMMAND, save the exit status in ac_status, and log it.
9458 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9459 AC_DEFUN([AM_RUN_LOG],
9460 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9461 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9464 (exit $ac_status); }])
9465
9466 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9467
9468 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
9469 #
9470 # This file is free software; the Free Software Foundation
9471 # gives unlimited permission to copy and/or distribute it,
9472 # with or without modifications, as long as this notice is preserved.
87599473
87609474 # AM_SANITY_CHECK
87619475 # ---------------
87629476 AC_DEFUN([AM_SANITY_CHECK],
87639477 [AC_MSG_CHECKING([whether build environment is sane])
8764 # Just in case
8765 sleep 1
8766 echo timestamp > conftest.file
87679478 # Reject unsafe characters in $srcdir or the absolute working directory
87689479 # name. Accept space and tab only in the latter.
87699480 am_lf='
87749485 esac
87759486 case $srcdir in
87769487 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
8777 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9488 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
87789489 esac
87799490
8780 # Do `set' in a subshell so we don't clobber the current shell's
9491 # Do 'set' in a subshell so we don't clobber the current shell's
87819492 # arguments. Must try -L first in case configure is actually a
87829493 # symlink; some systems play weird games with the mod time of symlinks
87839494 # (eg FreeBSD returns the mod time of the symlink's containing
87849495 # directory).
87859496 if (
8786 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8787 if test "$[*]" = "X"; then
8788 # -L didn't work.
8789 set X `ls -t "$srcdir/configure" conftest.file`
8790 fi
8791 rm -f conftest.file
8792 if test "$[*]" != "X $srcdir/configure conftest.file" \
8793 && test "$[*]" != "X conftest.file $srcdir/configure"; then
8794
8795 # If neither matched, then we have a broken ls. This can happen
8796 # if, for instance, CONFIG_SHELL is bash and it inherits a
8797 # broken ls alias from the environment. This has actually
8798 # happened. Such a system could not be considered "sane".
8799 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8800 alias in your environment])
8801 fi
8802
9497 am_has_slept=no
9498 for am_try in 1 2; do
9499 echo "timestamp, slept: $am_has_slept" > conftest.file
9500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9501 if test "$[*]" = "X"; then
9502 # -L didn't work.
9503 set X `ls -t "$srcdir/configure" conftest.file`
9504 fi
9505 if test "$[*]" != "X $srcdir/configure conftest.file" \
9506 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9507
9508 # If neither matched, then we have a broken ls. This can happen
9509 # if, for instance, CONFIG_SHELL is bash and it inherits a
9510 # broken ls alias from the environment. This has actually
9511 # happened. Such a system could not be considered "sane".
9512 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9513 alias in your environment])
9514 fi
9515 if test "$[2]" = conftest.file || test $am_try -eq 2; then
9516 break
9517 fi
9518 # Just in case.
9519 sleep 1
9520 am_has_slept=yes
9521 done
88039522 test "$[2]" = conftest.file
88049523 )
88059524 then
88099528 AC_MSG_ERROR([newly created file is older than distributed files!
88109529 Check your system clock])
88119530 fi
8812 AC_MSG_RESULT(yes)])
8813
8814 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9531 AC_MSG_RESULT([yes])
9532 # If we didn't sleep, we still need to ensure time stamps of config.status and
9533 # generated files are strictly newer.
9534 am_sleep_pid=
9535 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
9536 ( sleep 1 ) &
9537 am_sleep_pid=$!
9538 fi
9539 AC_CONFIG_COMMANDS_PRE(
9540 [AC_MSG_CHECKING([that generated files are newer than configure])
9541 if test -n "$am_sleep_pid"; then
9542 # Hide warnings about reused PIDs.
9543 wait $am_sleep_pid 2>/dev/null
9544 fi
9545 AC_MSG_RESULT([done])])
9546 rm -f conftest.file
9547 ])
9548
9549 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
88159550 #
88169551 # This file is free software; the Free Software Foundation
88179552 # gives unlimited permission to copy and/or distribute it,
88189553 # with or without modifications, as long as this notice is preserved.
88199554
9555 # AM_SILENT_RULES([DEFAULT])
9556 # --------------------------
9557 # Enable less verbose build rules; with the default set to DEFAULT
9558 # ("yes" being less verbose, "no" or empty being verbose).
9559 AC_DEFUN([AM_SILENT_RULES],
9560 [AC_ARG_ENABLE([silent-rules], [dnl
9561 AS_HELP_STRING(
9562 [--enable-silent-rules],
9563 [less verbose build output (undo: "make V=1")])
9564 AS_HELP_STRING(
9565 [--disable-silent-rules],
9566 [verbose build output (undo: "make V=0")])dnl
9567 ])
9568 case $enable_silent_rules in @%:@ (((
9569 yes) AM_DEFAULT_VERBOSITY=0;;
9570 no) AM_DEFAULT_VERBOSITY=1;;
9571 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9572 esac
9573 dnl
9574 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
9575 dnl do not support nested variable expansions.
9576 dnl See automake bug#9928 and bug#10237.
9577 am_make=${MAKE-make}
9578 AC_CACHE_CHECK([whether $am_make supports nested variables],
9579 [am_cv_make_support_nested_variables],
9580 [if AS_ECHO([['TRUE=$(BAR$(V))
9581 BAR0=false
9582 BAR1=true
9583 V=1
9584 am__doit:
9585 @$(TRUE)
9586 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9587 am_cv_make_support_nested_variables=yes
9588 else
9589 am_cv_make_support_nested_variables=no
9590 fi])
9591 if test $am_cv_make_support_nested_variables = yes; then
9592 dnl Using '$V' instead of '$(V)' breaks IRIX make.
9593 AM_V='$(V)'
9594 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9595 else
9596 AM_V=$AM_DEFAULT_VERBOSITY
9597 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9598 fi
9599 AC_SUBST([AM_V])dnl
9600 AM_SUBST_NOTMAKE([AM_V])dnl
9601 AC_SUBST([AM_DEFAULT_V])dnl
9602 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9603 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9604 AM_BACKSLASH='\'
9605 AC_SUBST([AM_BACKSLASH])dnl
9606 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9607 ])
9608
9609 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9610 #
9611 # This file is free software; the Free Software Foundation
9612 # gives unlimited permission to copy and/or distribute it,
9613 # with or without modifications, as long as this notice is preserved.
9614
88209615 # AM_PROG_INSTALL_STRIP
88219616 # ---------------------
8822 # One issue with vendor `install' (even GNU) is that you can't
9617 # One issue with vendor 'install' (even GNU) is that you can't
88239618 # specify the program used to strip binaries. This is especially
88249619 # annoying in cross-compiling environments, where the build's strip
88259620 # is unlikely to handle the host's binaries.
88269621 # Fortunately install-sh will honor a STRIPPROG variable, so we
8827 # always use install-sh in `make install-strip', and initialize
9622 # always use install-sh in "make install-strip", and initialize
88289623 # STRIPPROG with the value of the STRIP variable (set by the user).
88299624 AC_DEFUN([AM_PROG_INSTALL_STRIP],
88309625 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8831 # Installed binaries are usually stripped using `strip' when the user
8832 # run `make install-strip'. However `strip' might not be the right
9626 # Installed binaries are usually stripped using 'strip' when the user
9627 # run "make install-strip". However 'strip' might not be the right
88339628 # tool to use in cross-compilation environments, therefore Automake
8834 # will honor the `STRIP' environment variable to overrule this program.
8835 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9629 # will honor the 'STRIP' environment variable to overrule this program.
9630 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
88369631 if test "$cross_compiling" != no; then
88379632 AC_CHECK_TOOL([STRIP], [strip], :)
88389633 fi
88399634 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
88409635 AC_SUBST([INSTALL_STRIP_PROGRAM])])
88419636
8842 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9637 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
88439638 #
88449639 # This file is free software; the Free Software Foundation
88459640 # gives unlimited permission to copy and/or distribute it,
88469641 # with or without modifications, as long as this notice is preserved.
8847
8848 # serial 2
88499642
88509643 # _AM_SUBST_NOTMAKE(VARIABLE)
88519644 # ---------------------------
88549647 AC_DEFUN([_AM_SUBST_NOTMAKE])
88559648
88569649 # AM_SUBST_NOTMAKE(VARIABLE)
8857 # ---------------------------
9650 # --------------------------
88589651 # Public sister of _AM_SUBST_NOTMAKE.
88599652 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
88609653
88619654 # Check how to create a tarball. -*- Autoconf -*-
88629655
8863 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9656 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
88649657 #
88659658 # This file is free software; the Free Software Foundation
88669659 # gives unlimited permission to copy and/or distribute it,
88679660 # with or without modifications, as long as this notice is preserved.
88689661
8869 # serial 2
8870
88719662 # _AM_PROG_TAR(FORMAT)
88729663 # --------------------
88739664 # Check how to create a tarball in format FORMAT.
8874 # FORMAT should be one of `v7', `ustar', or `pax'.
9665 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
88759666 #
88769667 # Substitute a variable $(am__tar) that is a command
88779668 # writing to stdout a FORMAT-tarball containing the directory
88819672 # Substitute a variable $(am__untar) that extract such
88829673 # a tarball read from stdin.
88839674 # $(am__untar) < result.tar
9675 #
88849676 AC_DEFUN([_AM_PROG_TAR],
8885 [# Always define AMTAR for backward compatibility.
8886 AM_MISSING_PROG([AMTAR], [tar])
9677 [# Always define AMTAR for backward compatibility. Yes, it's still used
9678 # in the wild :-( We should find a proper way to deprecate it ...
9679 AC_SUBST([AMTAR], ['$${TAR-tar}'])
9680
9681 # We'll loop over all known methods to create a tar archive until one works.
9682 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9683
88879684 m4_if([$1], [v7],
8888 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8889 [m4_case([$1], [ustar],, [pax],,
8890 [m4_fatal([Unknown tar format])])
8891 AC_MSG_CHECKING([how to create a $1 tar archive])
8892 # Loop over all known methods to create a tar archive until one works.
8893 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8894 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
8895 # Do not fold the above two line into one, because Tru64 sh and
8896 # Solaris sh will not grok spaces in the rhs of `-'.
8897 for _am_tool in $_am_tools
8898 do
8899 case $_am_tool in
8900 gnutar)
8901 for _am_tar in tar gnutar gtar;
8902 do
8903 AM_RUN_LOG([$_am_tar --version]) && break
8904 done
8905 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8906 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8907 am__untar="$_am_tar -xf -"
8908 ;;
8909 plaintar)
8910 # Must skip GNU tar: if it does not support --format= it doesn't create
8911 # ustar tarball either.
8912 (tar --version) >/dev/null 2>&1 && continue
8913 am__tar='tar chf - "$$tardir"'
8914 am__tar_='tar chf - "$tardir"'
8915 am__untar='tar xf -'
8916 ;;
8917 pax)
8918 am__tar='pax -L -x $1 -w "$$tardir"'
8919 am__tar_='pax -L -x $1 -w "$tardir"'
8920 am__untar='pax -r'
8921 ;;
8922 cpio)
8923 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8924 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8925 am__untar='cpio -i -H $1 -d'
8926 ;;
8927 none)
8928 am__tar=false
8929 am__tar_=false
8930 am__untar=false
8931 ;;
8932 esac
8933
8934 # If the value was cached, stop now. We just wanted to have am__tar
8935 # and am__untar set.
8936 test -n "${am_cv_prog_tar_$1}" && break
8937
8938 # tar/untar a dummy directory, and stop if the command works
9685 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9686
9687 [m4_case([$1],
9688 [ustar],
9689 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
9690 # There is notably a 21 bits limit for the UID and the GID. In fact,
9691 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9692 # and bug#13588).
9693 am_max_uid=2097151 # 2^21 - 1
9694 am_max_gid=$am_max_uid
9695 # The $UID and $GID variables are not portable, so we need to resort
9696 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9697 # below are definitely unexpected, so allow the users to see them
9698 # (that is, avoid stderr redirection).
9699 am_uid=`id -u || echo unknown`
9700 am_gid=`id -g || echo unknown`
9701 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
9702 if test $am_uid -le $am_max_uid; then
9703 AC_MSG_RESULT([yes])
9704 else
9705 AC_MSG_RESULT([no])
9706 _am_tools=none
9707 fi
9708 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
9709 if test $am_gid -le $am_max_gid; then
9710 AC_MSG_RESULT([yes])
9711 else
9712 AC_MSG_RESULT([no])
9713 _am_tools=none
9714 fi],
9715
9716 [pax],
9717 [],
9718
9719 [m4_fatal([Unknown tar format])])
9720
9721 AC_MSG_CHECKING([how to create a $1 tar archive])
9722
9723 # Go ahead even if we have the value already cached. We do so because we
9724 # need to set the values for the 'am__tar' and 'am__untar' variables.
9725 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9726
9727 for _am_tool in $_am_tools; do
9728 case $_am_tool in
9729 gnutar)
9730 for _am_tar in tar gnutar gtar; do
9731 AM_RUN_LOG([$_am_tar --version]) && break
9732 done
9733 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9734 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9735 am__untar="$_am_tar -xf -"
9736 ;;
9737 plaintar)
9738 # Must skip GNU tar: if it does not support --format= it doesn't create
9739 # ustar tarball either.
9740 (tar --version) >/dev/null 2>&1 && continue
9741 am__tar='tar chf - "$$tardir"'
9742 am__tar_='tar chf - "$tardir"'
9743 am__untar='tar xf -'
9744 ;;
9745 pax)
9746 am__tar='pax -L -x $1 -w "$$tardir"'
9747 am__tar_='pax -L -x $1 -w "$tardir"'
9748 am__untar='pax -r'
9749 ;;
9750 cpio)
9751 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9752 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9753 am__untar='cpio -i -H $1 -d'
9754 ;;
9755 none)
9756 am__tar=false
9757 am__tar_=false
9758 am__untar=false
9759 ;;
9760 esac
9761
9762 # If the value was cached, stop now. We just wanted to have am__tar
9763 # and am__untar set.
9764 test -n "${am_cv_prog_tar_$1}" && break
9765
9766 # tar/untar a dummy directory, and stop if the command works.
9767 rm -rf conftest.dir
9768 mkdir conftest.dir
9769 echo GrepMe > conftest.dir/file
9770 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9771 rm -rf conftest.dir
9772 if test -s conftest.tar; then
9773 AM_RUN_LOG([$am__untar <conftest.tar])
9774 AM_RUN_LOG([cat conftest.dir/file])
9775 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9776 fi
9777 done
89399778 rm -rf conftest.dir
8940 mkdir conftest.dir
8941 echo GrepMe > conftest.dir/file
8942 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8943 rm -rf conftest.dir
8944 if test -s conftest.tar; then
8945 AM_RUN_LOG([$am__untar <conftest.tar])
8946 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8947 fi
8948 done
8949 rm -rf conftest.dir
8950
8951 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8952 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9779
9780 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9781 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9782
89539783 AC_SUBST([am__tar])
89549784 AC_SUBST([am__untar])
89559785 ]) # _AM_PROG_TAR
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1862 pkgdatadir = $(datadir)/@PACKAGE@
1963 pkgincludedir = $(includedir)/@PACKAGE@
2064 pkglibdir = $(libdir)/@PACKAGE@
3680 bin_PROGRAMS = makegeo$(EXEEXT) geotifcp$(EXEEXT) listgeo$(EXEEXT) \
3781 applygeo$(EXEEXT)
3882 subdir = bin
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/depcomp
4085 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4186 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
4287 $(top_srcdir)/configure.ac
5297 applygeo_OBJECTS = $(am_applygeo_OBJECTS)
5398 applygeo_LDADD = $(LDADD)
5499 applygeo_DEPENDENCIES = ../libgeotiff.la
100 AM_V_lt = $(am__v_lt_@AM_V@)
101 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
102 am__v_lt_0 = --silent
103 am__v_lt_1 =
55104 am_geotifcp_OBJECTS = geotifcp.$(OBJEXT)
56105 geotifcp_OBJECTS = $(am_geotifcp_OBJECTS)
57106 geotifcp_LDADD = $(LDADD)
64113 makegeo_OBJECTS = $(am_makegeo_OBJECTS)
65114 makegeo_LDADD = $(LDADD)
66115 makegeo_DEPENDENCIES = ../libgeotiff.la
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
67128 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
68129 depcomp = $(SHELL) $(top_srcdir)/depcomp
69130 am__depfiles_maybe = depfiles
70131 am__mv = mv -f
71132 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
72133 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
73 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
75 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
134 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
135 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
136 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
137 $(AM_CFLAGS) $(CFLAGS)
138 AM_V_CC = $(am__v_CC_@AM_V@)
139 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
140 am__v_CC_0 = @echo " CC " $@;
141 am__v_CC_1 =
76142 CCLD = $(CC)
77 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
79 $(LDFLAGS) -o $@
143 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
144 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
145 $(AM_LDFLAGS) $(LDFLAGS) -o $@
146 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
147 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
148 am__v_CCLD_0 = @echo " CCLD " $@;
149 am__v_CCLD_1 =
80150 SOURCES = $(applygeo_SOURCES) $(geotifcp_SOURCES) $(listgeo_SOURCES) \
81151 $(makegeo_SOURCES)
82152 DIST_SOURCES = $(applygeo_SOURCES) $(geotifcp_SOURCES) \
83153 $(listgeo_SOURCES) $(makegeo_SOURCES)
154 am__can_run_installinfo = \
155 case $$AM_UPDATE_INFO_DIR in \
156 n|no|NO) false;; \
157 *) (install-info --version) >/dev/null 2>&1;; \
158 esac
159 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
160 # Read a list of newline-separated strings from the standard input,
161 # and print each of them once, without duplicates. Input order is
162 # *not* preserved.
163 am__uniquify_input = $(AWK) '\
164 BEGIN { nonempty = 0; } \
165 { items[$$0] = 1; nonempty = 1; } \
166 END { if (nonempty) { for (i in items) print i; }; } \
167 '
168 # Make sure the list of sources is unique. This is necessary because,
169 # e.g., the same source file might be shared among _SOURCES variables
170 # for different programs/libraries.
171 am__define_uniq_tagged_files = \
172 list='$(am__tagged_files)'; \
173 unique=`for i in $$list; do \
174 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
175 done | $(am__uniquify_input)`
84176 ETAGS = etags
85177 CTAGS = ctags
86178 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
87179 ACLOCAL = @ACLOCAL@
88180 AMTAR = @AMTAR@
181 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
89182 AR = @AR@
90183 AUTOCONF = @AUTOCONF@
91184 AUTOHEADER = @AUTOHEADER@
103196 CYGPATH_W = @CYGPATH_W@
104197 DEFS = @DEFS@
105198 DEPDIR = @DEPDIR@
199 DLLTOOL = @DLLTOOL@
106200 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
107201 DSYMUTIL = @DSYMUTIL@
108202 DUMPBIN = @DUMPBIN@
155249 LTLIBOBJS = @LTLIBOBJS@
156250 MAINT = @MAINT@
157251 MAKEINFO = @MAKEINFO@
252 MANIFEST_TOOL = @MANIFEST_TOOL@
158253 MKDIR_P = @MKDIR_P@
159254 NM = @NM@
160255 NMEDIT = @NMEDIT@
186281 abs_srcdir = @abs_srcdir@
187282 abs_top_builddir = @abs_top_builddir@
188283 abs_top_srcdir = @abs_top_srcdir@
284 ac_ct_AR = @ac_ct_AR@
189285 ac_ct_CC = @ac_ct_CC@
190286 ac_ct_CXX = @ac_ct_CXX@
191287 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
219315 libexecdir = @libexecdir@
220316 localedir = @localedir@
221317 localstatedir = @localstatedir@
222 lt_ECHO = @lt_ECHO@
223318 mandir = @mandir@
224319 mkdir_p = @mkdir_p@
225320 oldincludedir = @oldincludedir@
279374 $(am__aclocal_m4_deps):
280375 install-binPROGRAMS: $(bin_PROGRAMS)
281376 @$(NORMAL_INSTALL)
282 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
283377 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
378 if test -n "$$list"; then \
379 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
380 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
381 fi; \
284382 for p in $$list; do echo "$$p $$p"; done | \
285383 sed 's/$(EXEEXT)$$//' | \
286 while read p p1; do if test -f $$p || test -f $$p1; \
287 then echo "$$p"; echo "$$p"; else :; fi; \
384 while read p p1; do if test -f $$p \
385 || test -f $$p1 \
386 ; then echo "$$p"; echo "$$p"; else :; fi; \
288387 done | \
289 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
388 sed -e 'p;s,.*/,,;n;h' \
389 -e 's|.*|.|' \
290390 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
291391 sed 'N;N;N;s,\n, ,g' | \
292392 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
307407 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
308408 files=`for p in $$list; do echo "$$p"; done | \
309409 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
310 -e 's/$$/$(EXEEXT)/' `; \
410 -e 's/$$/$(EXEEXT)/' \
411 `; \
311412 test -n "$$list" || exit 0; \
312413 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
313414 cd "$(DESTDIR)$(bindir)" && rm -f $$files
320421 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
321422 echo " rm -f" $$list; \
322423 rm -f $$list
323 applygeo$(EXEEXT): $(applygeo_OBJECTS) $(applygeo_DEPENDENCIES)
424
425 applygeo$(EXEEXT): $(applygeo_OBJECTS) $(applygeo_DEPENDENCIES) $(EXTRA_applygeo_DEPENDENCIES)
324426 @rm -f applygeo$(EXEEXT)
325 $(LINK) $(applygeo_OBJECTS) $(applygeo_LDADD) $(LIBS)
326 geotifcp$(EXEEXT): $(geotifcp_OBJECTS) $(geotifcp_DEPENDENCIES)
427 $(AM_V_CCLD)$(LINK) $(applygeo_OBJECTS) $(applygeo_LDADD) $(LIBS)
428
429 geotifcp$(EXEEXT): $(geotifcp_OBJECTS) $(geotifcp_DEPENDENCIES) $(EXTRA_geotifcp_DEPENDENCIES)
327430 @rm -f geotifcp$(EXEEXT)
328 $(LINK) $(geotifcp_OBJECTS) $(geotifcp_LDADD) $(LIBS)
329 listgeo$(EXEEXT): $(listgeo_OBJECTS) $(listgeo_DEPENDENCIES)
431 $(AM_V_CCLD)$(LINK) $(geotifcp_OBJECTS) $(geotifcp_LDADD) $(LIBS)
432
433 listgeo$(EXEEXT): $(listgeo_OBJECTS) $(listgeo_DEPENDENCIES) $(EXTRA_listgeo_DEPENDENCIES)
330434 @rm -f listgeo$(EXEEXT)
331 $(LINK) $(listgeo_OBJECTS) $(listgeo_LDADD) $(LIBS)
332 makegeo$(EXEEXT): $(makegeo_OBJECTS) $(makegeo_DEPENDENCIES)
435 $(AM_V_CCLD)$(LINK) $(listgeo_OBJECTS) $(listgeo_LDADD) $(LIBS)
436
437 makegeo$(EXEEXT): $(makegeo_OBJECTS) $(makegeo_DEPENDENCIES) $(EXTRA_makegeo_DEPENDENCIES)
333438 @rm -f makegeo$(EXEEXT)
334 $(LINK) $(makegeo_OBJECTS) $(makegeo_LDADD) $(LIBS)
439 $(AM_V_CCLD)$(LINK) $(makegeo_OBJECTS) $(makegeo_LDADD) $(LIBS)
335440
336441 mostlyclean-compile:
337442 -rm -f *.$(OBJEXT)
345450 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makegeo.Po@am__quote@
346451
347452 .c.o:
348 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
349 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
453 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
454 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
455 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
351456 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
457 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
353458
354459 .c.obj:
355 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
356 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
357 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
460 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
461 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
462 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
358463 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
359 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
464 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
360465
361466 .c.lo:
362 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
363 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
364 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
467 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
468 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
469 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
365470 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
366 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
471 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
367472
368473 mostlyclean-libtool:
369474 -rm -f *.lo
371476 clean-libtool:
372477 -rm -rf .libs _libs
373478
374 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 mkid -fID $$unique
382 tags: TAGS
383
384 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
385 $(TAGS_FILES) $(LISP)
479 ID: $(am__tagged_files)
480 $(am__define_uniq_tagged_files); mkid -fID $$unique
481 tags: tags-am
482 TAGS: tags
483
484 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
386485 set x; \
387486 here=`pwd`; \
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
487 $(am__define_uniq_tagged_files); \
394488 shift; \
395489 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
396490 test -n "$$unique" || unique=$$empty_fix; \
402496 $$unique; \
403497 fi; \
404498 fi
405 ctags: CTAGS
406 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
407 $(TAGS_FILES) $(LISP)
408 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | \
412 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413 END { if (nonempty) { for (i in files) print i; }; }'`; \
499 ctags: ctags-am
500
501 CTAGS: ctags
502 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
503 $(am__define_uniq_tagged_files); \
414504 test -z "$(CTAGS_ARGS)$$unique" \
415505 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
416506 $$unique
419509 here=`$(am__cd) $(top_builddir) && pwd` \
420510 && $(am__cd) $(top_srcdir) \
421511 && gtags -i $(GTAGS_ARGS) "$$here"
512 cscopelist: cscopelist-am
513
514 cscopelist-am: $(am__tagged_files)
515 list='$(am__tagged_files)'; \
516 case "$(srcdir)" in \
517 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
518 *) sdir=$(subdir)/$(srcdir) ;; \
519 esac; \
520 for i in $$list; do \
521 if test -f "$$i"; then \
522 echo "$(subdir)/$$i"; \
523 else \
524 echo "$$sdir/$$i"; \
525 fi; \
526 done >> $(top_builddir)/cscope.files
422527
423528 distclean-tags:
424529 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
470575
471576 installcheck: installcheck-am
472577 install-strip:
473 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
474 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
475 `test -z '$(STRIP)' || \
476 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
578 if test -z '$(STRIP)'; then \
579 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
580 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
581 install; \
582 else \
583 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
584 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
585 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
586 fi
477587 mostlyclean-generic:
478588
479589 clean-generic:
557667
558668 .MAKE: install-am install-strip
559669
560 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
561 clean-generic clean-libtool ctags distclean distclean-compile \
562 distclean-generic distclean-libtool distclean-tags distdir dvi \
563 dvi-am html html-am info info-am install install-am \
564 install-binPROGRAMS install-data install-data-am install-dvi \
565 install-dvi-am install-exec install-exec-am install-html \
566 install-html-am install-info install-info-am install-man \
567 install-pdf install-pdf-am install-ps install-ps-am \
568 install-strip installcheck installcheck-am installdirs \
569 maintainer-clean maintainer-clean-generic mostlyclean \
570 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
571 pdf pdf-am ps ps-am tags uninstall uninstall-am \
572 uninstall-binPROGRAMS
670 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
671 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
672 ctags ctags-am distclean distclean-compile distclean-generic \
673 distclean-libtool distclean-tags distdir dvi dvi-am html \
674 html-am info info-am install install-am install-binPROGRAMS \
675 install-data install-data-am install-dvi install-dvi-am \
676 install-exec install-exec-am install-html install-html-am \
677 install-info install-info-am install-man install-pdf \
678 install-pdf-am install-ps install-ps-am install-strip \
679 installcheck installcheck-am installdirs maintainer-clean \
680 maintainer-clean-generic mostlyclean mostlyclean-compile \
681 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
682 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
573683
574684
575685 # Tell versions [3.59,3.63) of GNU make to not export all variables.
7575 uint32 diroff = 0;
7676 TIFF* in;
7777 TIFF* out;
78 const char* mode = "w";
78 char mode[10];
79 char* mp = mode;
7980 int c;
8081 extern int optind;
8182 extern char* optarg;
8283
83 while ((c = getopt(argc, argv, "c:f:l:o:p:r:w:e:g:4:aistd")) != -1)
84 *mp++ = 'w';
85 *mp = '\0';
86 while ((c = getopt(argc, argv, "c:f:l:o:p:r:w:e:g:4:aistd8BLMC")) != -1)
8487 switch (c) {
8588 case 'a': /* append to output */
86 mode = "a";
89 mode[0] = 'a';
8790 break;
8891 case 'd': /* down cast 8bit to 4bit */
8992 convert_8_to_4 = 1;
140143 outtiled = TRUE;
141144 deftilewidth = atoi(optarg);
142145 break;
146 case 'B':
147 *mp++ = 'b'; *mp = '\0';
148 break;
149 case 'L':
150 *mp++ = 'l'; *mp = '\0';
151 break;
152 case 'M':
153 *mp++ = 'm'; *mp = '\0';
154 break;
155 case 'C':
156 *mp++ = 'c'; *mp = '\0';
157 break;
158 case '8':
159 *mp++ = '8'; *mp = '\0';
160 break;
143161 case '?':
144162 usage();
145163 /*NOTREACHED*/
146164 }
147165 if (argc - optind < 2)
148166 usage();
167 printf( "mode=%s\n", mode);
149168 out = TIFFOpen(argv[argc-1], mode);
150169 if (out == NULL)
151170 return (-2);
184203 {
185204 FILE *tfw;
186205 double pixsize[3], xoff, yoff, tiepoint[6], x_rot, y_rot;
206 int success;
187207
188208 /*
189209 * Read the world file. Note we currently ignore rotational coefficients!
195215 return;
196216 }
197217
198 fscanf( tfw, "%lf", pixsize + 0 );
199 fscanf( tfw, "%lf", &y_rot );
200 fscanf( tfw, "%lf", &x_rot );
201 fscanf( tfw, "%lf", pixsize + 1 );
202 fscanf( tfw, "%lf", &xoff );
203 fscanf( tfw, "%lf", &yoff );
218 success = fscanf( tfw, "%lf", pixsize + 0 );
219 success &= fscanf( tfw, "%lf", &y_rot );
220 success &= fscanf( tfw, "%lf", &x_rot );
221 success &= fscanf( tfw, "%lf", pixsize + 1 );
222 success &= fscanf( tfw, "%lf", &xoff );
223 success &= fscanf( tfw, "%lf", &yoff );
204224
205225 fclose( tfw );
226
227 if( success != 1 )
228 {
229 fprintf( stderr, "Failure parsing one or more lines of world file.\n");
230 return;
231 }
206232
207233 /*
208234 * Write out pixel scale, and tiepoint information.
371397 " -4 proj4_str install GeoTIFF metadata from proj4 string",
372398 " -e file install positioning info from ESRI Worldfile <file>",
373399 " -a append to output instead of overwriting",
400 " -8 write BigTIFF instead of default ClassicTIFF",
374401 " -o offset set initial directory offset",
375402 " -p contig pack samples contiguously (e.g. RGBRGB...)",
376403 " -p separate store samples separately (e.g. RRR...GGG...BBB...)",
476503 { TIFFTAG_DATETIME, 1, TIFF_ASCII },
477504 { TIFFTAG_ARTIST, 1, TIFF_ASCII },
478505 { TIFFTAG_HOSTCOMPUTER, 1, TIFF_ASCII },
479 { TIFFTAG_WHITEPOINT, 1, TIFF_RATIONAL },
506 { TIFFTAG_WHITEPOINT, (uint16) -1,TIFF_RATIONAL },
480507 { TIFFTAG_PRIMARYCHROMATICITIES,(uint16) -1,TIFF_RATIONAL },
481508 { TIFFTAG_HALFTONEHINTS, 2, TIFF_SHORT },
482509 { TIFFTAG_BADFAXLINES, 1, TIFF_LONG },
0 #############################################################################
1 # Config file generation and installation
2 #############################################################################
3
4 # geotiff-config.cmake for the install tree. It's installed in
5 # ${INSTALL_CMAKE_DIR} and @PROJECT_ROOT_DIR@ is the relative
6 # path to the root from there. (Note that the whole install tree can
7 # be relocated.)
8 if (NOT WIN32)
9 set (INSTALL_CMAKE_DIR "share/cmake/${PROJECT_NAME}")
10 set (PROJECT_ROOT_DIR "../../..")
11 else ()
12 set (INSTALL_CMAKE_DIR "cmake")
13 set (PROJECT_ROOT_DIR "..")
14 endif ()
15
16 configure_file (project-config.cmake.in project-config.cmake @ONLY)
17 configure_file (project-config-version.cmake.in
18 project-config-version.cmake @ONLY)
19 install (FILES
20 "${CMAKE_CURRENT_BINARY_DIR}/project-config.cmake"
21 DESTINATION "${INSTALL_CMAKE_DIR}"
22 RENAME "${PROJECT_NAME_LOWER}-config.cmake")
23 install (FILES
24 "${CMAKE_CURRENT_BINARY_DIR}/project-config-version.cmake"
25 DESTINATION "${INSTALL_CMAKE_DIR}"
26 RENAME "${PROJECT_NAME_LOWER}-config-version.cmake")
27 # Make information about the cmake targets (the library and the tools)
28 # available.
29 install (EXPORT depends
30 FILE ${PROJECT_NAME_LOWER}-depends.cmake
31 DESTINATION "${INSTALL_CMAKE_DIR}")
00 EXTRA_DIST = FindGeoTIFF.cmake \
11 FindPROJ4.cmake \
2 geo_config.h.in
2 geo_config.h.in \
3 project-config-version.cmake.in \
4 project-config.cmake.in \
5 CMakeLists.txt
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1761 pkgdatadir = $(datadir)/@PACKAGE@
1862 pkgincludedir = $(includedir)/@PACKAGE@
1963 pkglibdir = $(libdir)/@PACKAGE@
3377 build_triplet = @build@
3478 host_triplet = @host@
3579 subdir = cmake
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
3781 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3882 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
3983 $(top_srcdir)/configure.ac
4387 CONFIG_HEADER = $(top_builddir)/geo_config.h
4488 CONFIG_CLEAN_FILES =
4589 CONFIG_CLEAN_VPATH_FILES =
90 AM_V_P = $(am__v_P_@AM_V@)
91 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
92 am__v_P_0 = false
93 am__v_P_1 = :
94 AM_V_GEN = $(am__v_GEN_@AM_V@)
95 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
96 am__v_GEN_0 = @echo " GEN " $@;
97 am__v_GEN_1 =
98 AM_V_at = $(am__v_at_@AM_V@)
99 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
100 am__v_at_0 = @
101 am__v_at_1 =
46102 SOURCES =
47103 DIST_SOURCES =
104 am__can_run_installinfo = \
105 case $$AM_UPDATE_INFO_DIR in \
106 n|no|NO) false;; \
107 *) (install-info --version) >/dev/null 2>&1;; \
108 esac
109 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
48110 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
49111 ACLOCAL = @ACLOCAL@
50112 AMTAR = @AMTAR@
113 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
51114 AR = @AR@
52115 AUTOCONF = @AUTOCONF@
53116 AUTOHEADER = @AUTOHEADER@
65128 CYGPATH_W = @CYGPATH_W@
66129 DEFS = @DEFS@
67130 DEPDIR = @DEPDIR@
131 DLLTOOL = @DLLTOOL@
68132 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
69133 DSYMUTIL = @DSYMUTIL@
70134 DUMPBIN = @DUMPBIN@
117181 LTLIBOBJS = @LTLIBOBJS@
118182 MAINT = @MAINT@
119183 MAKEINFO = @MAKEINFO@
184 MANIFEST_TOOL = @MANIFEST_TOOL@
120185 MKDIR_P = @MKDIR_P@
121186 NM = @NM@
122187 NMEDIT = @NMEDIT@
148213 abs_srcdir = @abs_srcdir@
149214 abs_top_builddir = @abs_top_builddir@
150215 abs_top_srcdir = @abs_top_srcdir@
216 ac_ct_AR = @ac_ct_AR@
151217 ac_ct_CC = @ac_ct_CC@
152218 ac_ct_CXX = @ac_ct_CXX@
153219 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
181247 libexecdir = @libexecdir@
182248 localedir = @localedir@
183249 localstatedir = @localstatedir@
184 lt_ECHO = @lt_ECHO@
185250 mandir = @mandir@
186251 mkdir_p = @mkdir_p@
187252 oldincludedir = @oldincludedir@
199264 top_srcdir = @top_srcdir@
200265 EXTRA_DIST = FindGeoTIFF.cmake \
201266 FindPROJ4.cmake \
202 geo_config.h.in
267 geo_config.h.in \
268 project-config-version.cmake.in \
269 project-config.cmake.in \
270 CMakeLists.txt
203271
204272 all: all-am
205273
240308
241309 clean-libtool:
242310 -rm -rf .libs _libs
243 tags: TAGS
244 TAGS:
245
246 ctags: CTAGS
247 CTAGS:
311 tags TAGS:
312
313 ctags CTAGS:
314
315 cscope cscopelist:
248316
249317
250318 distdir: $(DISTFILES)
291359
292360 installcheck: installcheck-am
293361 install-strip:
294 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
295 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
296 `test -z '$(STRIP)' || \
297 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
362 if test -z '$(STRIP)'; then \
363 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
364 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
365 install; \
366 else \
367 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
368 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
369 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
370 fi
298371 mostlyclean-generic:
299372
300373 clean-generic:
375448 .MAKE: install-am install-strip
376449
377450 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
378 distclean distclean-generic distclean-libtool distdir dvi \
379 dvi-am html html-am info info-am install install-am \
380 install-data install-data-am install-dvi install-dvi-am \
381 install-exec install-exec-am install-html install-html-am \
382 install-info install-info-am install-man install-pdf \
383 install-pdf-am install-ps install-ps-am install-strip \
384 installcheck installcheck-am installdirs maintainer-clean \
385 maintainer-clean-generic mostlyclean mostlyclean-generic \
386 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
451 cscopelist-am ctags-am distclean distclean-generic \
452 distclean-libtool distdir dvi dvi-am html html-am info info-am \
453 install install-am install-data install-data-am install-dvi \
454 install-dvi-am install-exec install-exec-am install-html \
455 install-html-am install-info install-info-am install-man \
456 install-pdf install-pdf-am install-ps install-ps-am \
457 install-strip installcheck installcheck-am installdirs \
458 maintainer-clean maintainer-clean-generic mostlyclean \
459 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
460 tags-am uninstall uninstall-am
387461
388462
389463 # Tell versions [3.59,3.63) of GNU make to not export all variables.
99 /* Define if you have the <strings.h> header file. */
1010 #cmakedefine HAVE_STRING_H
1111
12 #cmakedefine GEO_NORMALIZE_DISABLE_TOWGS84
13
1214 #endif /* ndef GEO_CONFIG_H */
0 # Version checking for @PROJECT_NAME@
1
2 set (PACKAGE_VERSION "@PROJECT_VERSION@")
3 set (PACKAGE_VERSION_MAJOR "@PROJECT_VERSION_MAJOR@")
4 set (PACKAGE_VERSION_MINOR "@PROJECT_VERSION_MINOR@")
5 set (PACKAGE_VERSION_PATCH "@PROJECT_VERSION_PATCH@")
6
7 if (NOT PACKAGE_FIND_NAME STREQUAL "@PROJECT_NAME@")
8 # Check package name (in particular, because of the way cmake finds
9 # package config files, the capitalization could easily be "wrong").
10 # This is necessary to ensure that the automatically generated
11 # variables, e.g., <package>_FOUND, are consistently spelled. Make
12 # this a WARNING, because this is a user error that needs to be fixed.
13 message (WARNING
14 "Mismatched package names: use find_package(@PROJECT_NAME@ ...) instead"
15 " of find_package(${PACKAGE_FIND_NAME} ...)")
16 set (PACKAGE_VERSION_UNSUITABLE TRUE)
17 elseif (NOT (APPLE OR CMAKE_SIZEOF_VOID_P EQUAL @CMAKE_SIZEOF_VOID_P@))
18 # Reject if there's a 32-bit/64-bit mismatch (may not be necessary
19 # with Apple since a multi-architecture library might be built for
20 # that platform).
21 message (STATUS
22 "${CMAKE_CURRENT_LIST_FILE} unsuitable because package built with "
23 "sizeof(*void) = @CMAKE_SIZEOF_VOID_P@")
24 set (PACKAGE_VERSION_UNSUITABLE TRUE)
25 elseif (PACKAGE_FIND_VERSION)
26 if (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
27 set (PACKAGE_VERSION_EXACT TRUE)
28 elseif (PACKAGE_FIND_VERSION VERSION_LESS PACKAGE_VERSION
29 AND PACKAGE_FIND_VERSION_MAJOR EQUAL PACKAGE_VERSION_MAJOR)
30 set (PACKAGE_VERSION_COMPATIBLE TRUE)
31 endif ()
32 endif ()
0 # Configure @PROJECT_NAME@
1 #
2 # Set
3 # @PROJECT_NAME@_FOUND = 1
4 # @PROJECT_NAME@_INCLUDE_DIRS = /usr/local/include
5 # @PROJECT_NAME@_SHARED_LIBRARIES = geotiff_library
6 # @PROJECT_NAME@_STATIC_LIBRARIES = geotiff_archive
7 # @PROJECT_NAME@_LIBRARY_DIRS = /usr/local/lib
8 # @PROJECT_NAME@_BINARY_DIRS = /usr/local/bin
9 # @PROJECT_NAME@_VERSION = 1.4.1 (for example)
10 # Depending on @PROJECT_NAME@_USE_STATIC_LIBS
11 # @PROJECT_NAME@_LIBRARIES = ${@PROJECT_NAME@_SHARED_LIBRARIES}, if OFF
12 # @PROJECT_NAME@_LIBRARIES = ${@PROJECT_NAME@_STATIC_LIBRARIES}, if ON
13
14 # For compatibility with FindGeoTIFF.cmake, also set
15 # @PROJECT_NAME_UPPER@_FOUND
16 # @PROJECT_NAME_UPPER@_INCLUDE_DIR
17 # @PROJECT_NAME_UPPER@_LIBRARY
18 # @PROJECT_NAME_UPPER@_LIBRARIES
19
20 message (STATUS "Reading ${CMAKE_CURRENT_LIST_FILE}")
21 # @PROJECT_NAME@_VERSION is set by version file
22 message (STATUS
23 "@PROJECT_NAME@ configuration, version ${@PROJECT_NAME@_VERSION}")
24
25 # Tell the user project where to find our headers and libraries
26 get_filename_component (_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
27 get_filename_component (_ROOT "${_DIR}/@PROJECT_ROOT_DIR@" ABSOLUTE)
28 set (@PROJECT_NAME@_INCLUDE_DIRS "${_ROOT}/include")
29 set (@PROJECT_NAME@_LIBRARY_DIRS "${_ROOT}/lib")
30 set (@PROJECT_NAME@_BINARY_DIRS "${_ROOT}/bin")
31
32 message (STATUS " include directory: \${@PROJECT_NAME@_INCLUDE_DIRS}")
33
34 set (@PROJECT_NAME@_SHARED_LIBRARIES @GEOTIFF_LIBRARY_TARGET@)
35 set (@PROJECT_NAME@_STATIC_LIBRARIES @GEOTIFF_ARCHIVE_TARGET@)
36 # Read in the exported definition of the library
37 include ("${_DIR}/@PROJECT_NAME_LOWER@-depends.cmake")
38
39 unset (_ROOT)
40 unset (_DIR)
41
42 if (@PROJECT_NAME@_USE_STATIC_LIBS)
43 set (@PROJECT_NAME@_LIBRARIES ${@PROJECT_NAME@_STATIC_LIBRARIES})
44 message (STATUS " \${@PROJECT_NAME@_LIBRARIES} set to static library")
45 else ()
46 set (@PROJECT_NAME@_LIBRARIES ${@PROJECT_NAME@_SHARED_LIBRARIES})
47 message (STATUS " \${@PROJECT_NAME@_LIBRARIES} set to shared library")
48 endif ()
49
50 # For compatibility with FindGeoTIFF.cmake
51 set (@PROJECT_NAME_UPPER@_FOUND 1)
52 set (@PROJECT_NAME_UPPER@_LIBRARIES ${@PROJECT_NAME@_LIBRARIES})
53 set (@PROJECT_NAME_UPPER@_INCLUDE_DIR ${@PROJECT_NAME@_INCLUDE_DIRS})
54 set (@PROJECT_NAME_UPPER@_LIBRARY ${@PROJECT_NAME@_LIBRARIES})
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-06-10'
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-06-10'
75
86 # This file is free software; you can redistribute it and/or modify it
97 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
8 # the Free Software Foundation; either version 3 of the License, or
119 # (at your option) any later version.
1210 #
1311 # This program is distributed in the hope that it will be useful, but
1614 # General Public License for more details.
1715 #
1816 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2218 #
2319 # As a special exception to the GNU General Public License, if you
2420 # distribute this file as part of a program that contains a
2521 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
3225 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
26 # Originally written by Per Bothner.
3627 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
28 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
32
3933
4034 me=`echo "$0" | sed -e 's,.*/,,'`
4135
5549 GNU config.guess ($timestamp)
5650
5751 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
52 Copyright 1992-2013 Free Software Foundation, Inc.
6053
6154 This is free software; see the source for copying conditions. There is NO
6255 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
138131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140133
134 case "${UNAME_SYSTEM}" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
152 ;;
153 esac
154
141155 # Note: order is significant - the case branches are not exclusive.
142156
143157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144158 *:NetBSD:*:*)
145159 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
160 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
147161 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148162 # switched to ELF, *-*-netbsd* would select the old
149163 # object file format. This provides both forward
179193 fi
180194 ;;
181195 *)
182 os=netbsd
196 os=netbsd
183197 ;;
184198 esac
185199 # The OS release
200214 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201215 echo "${machine}-${os}${release}"
202216 exit ;;
217 *:Bitrig:*:*)
218 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
220 exit ;;
203221 *:OpenBSD:*:*)
204222 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205223 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
222240 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223241 ;;
224242 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
243 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226244 ;;
227245 esac
228246 # According to Compaq, /usr/sbin/psrinfo has been available on
268286 # A Xn.n version is an unreleased experimental baselevel.
269287 # 1.2 uses "1.2" for uname -r.
270288 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
289 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290 exitcode=$?
291 trap '' 0
292 exit $exitcode ;;
272293 Alpha\ *:Windows_NT*:*)
273294 # How do we know it's Interix rather than the generic POSIX subsystem?
274295 # Should we change UNAME_MACHINE based on the output of uname instead
294315 echo s390-ibm-zvmoe
295316 exit ;;
296317 *:OS400:*:*)
297 echo powerpc-ibm-os400
318 echo powerpc-ibm-os400
298319 exit ;;
299320 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300321 echo arm-acorn-riscix${UNAME_RELEASE}
301322 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
323 arm*:riscos:*:*|arm*:RISCOS:*:*)
303324 echo arm-unknown-riscos
304325 exit ;;
305326 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
331352 exit ;;
332353 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
333354 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
355 exit ;;
356 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
357 echo i386-pc-auroraux${UNAME_RELEASE}
334358 exit ;;
335359 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
336360 eval $set_cc_for_build
390414 # MiNT. But MiNT is downward compatible to TOS, so this should
391415 # be no problem.
392416 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
393 echo m68k-atari-mint${UNAME_RELEASE}
417 echo m68k-atari-mint${UNAME_RELEASE}
394418 exit ;;
395419 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
396420 echo m68k-atari-mint${UNAME_RELEASE}
397 exit ;;
421 exit ;;
398422 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
399 echo m68k-atari-mint${UNAME_RELEASE}
423 echo m68k-atari-mint${UNAME_RELEASE}
400424 exit ;;
401425 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
402 echo m68k-milan-mint${UNAME_RELEASE}
403 exit ;;
426 echo m68k-milan-mint${UNAME_RELEASE}
427 exit ;;
404428 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
405 echo m68k-hades-mint${UNAME_RELEASE}
406 exit ;;
429 echo m68k-hades-mint${UNAME_RELEASE}
430 exit ;;
407431 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
408 echo m68k-unknown-mint${UNAME_RELEASE}
409 exit ;;
432 echo m68k-unknown-mint${UNAME_RELEASE}
433 exit ;;
410434 m68k:machten:*:*)
411435 echo m68k-apple-machten${UNAME_RELEASE}
412436 exit ;;
476500 echo m88k-motorola-sysv3
477501 exit ;;
478502 AViiON:dgux:*:*)
479 # DG/UX returns AViiON for all architectures
480 UNAME_PROCESSOR=`/usr/bin/uname -p`
503 # DG/UX returns AViiON for all architectures
504 UNAME_PROCESSOR=`/usr/bin/uname -p`
481505 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
482506 then
483507 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
490514 else
491515 echo i586-dg-dgux${UNAME_RELEASE}
492516 fi
493 exit ;;
517 exit ;;
494518 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
495519 echo m88k-dolphin-sysv3
496520 exit ;;
547571 echo rs6000-ibm-aix3.2
548572 fi
549573 exit ;;
550 *:AIX:*:[456])
574 *:AIX:*:[4567])
551575 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
552576 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
553577 IBM_ARCH=rs6000
590614 9000/[678][0-9][0-9])
591615 if [ -x /usr/bin/getconf ]; then
592616 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
593 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
594 case "${sc_cpu_version}" in
595 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
596 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
597 532) # CPU_PA_RISC2_0
598 case "${sc_kernel_bits}" in
599 32) HP_ARCH="hppa2.0n" ;;
600 64) HP_ARCH="hppa2.0w" ;;
617 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
618 case "${sc_cpu_version}" in
619 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
620 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
621 532) # CPU_PA_RISC2_0
622 case "${sc_kernel_bits}" in
623 32) HP_ARCH="hppa2.0n" ;;
624 64) HP_ARCH="hppa2.0w" ;;
601625 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
602 esac ;;
603 esac
626 esac ;;
627 esac
604628 fi
605629 if [ "${HP_ARCH}" = "" ]; then
606630 eval $set_cc_for_build
607 sed 's/^ //' << EOF >$dummy.c
608
609 #define _HPUX_SOURCE
610 #include <stdlib.h>
611 #include <unistd.h>
612
613 int main ()
614 {
615 #if defined(_SC_KERNEL_BITS)
616 long bits = sysconf(_SC_KERNEL_BITS);
617 #endif
618 long cpu = sysconf (_SC_CPU_VERSION);
619
620 switch (cpu)
621 {
622 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
623 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
624 case CPU_PA_RISC2_0:
625 #if defined(_SC_KERNEL_BITS)
626 switch (bits)
627 {
628 case 64: puts ("hppa2.0w"); break;
629 case 32: puts ("hppa2.0n"); break;
630 default: puts ("hppa2.0"); break;
631 } break;
632 #else /* !defined(_SC_KERNEL_BITS) */
633 puts ("hppa2.0"); break;
634 #endif
635 default: puts ("hppa1.0"); break;
636 }
637 exit (0);
638 }
631 sed 's/^ //' << EOF >$dummy.c
632
633 #define _HPUX_SOURCE
634 #include <stdlib.h>
635 #include <unistd.h>
636
637 int main ()
638 {
639 #if defined(_SC_KERNEL_BITS)
640 long bits = sysconf(_SC_KERNEL_BITS);
641 #endif
642 long cpu = sysconf (_SC_CPU_VERSION);
643
644 switch (cpu)
645 {
646 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
647 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
648 case CPU_PA_RISC2_0:
649 #if defined(_SC_KERNEL_BITS)
650 switch (bits)
651 {
652 case 64: puts ("hppa2.0w"); break;
653 case 32: puts ("hppa2.0n"); break;
654 default: puts ("hppa2.0"); break;
655 } break;
656 #else /* !defined(_SC_KERNEL_BITS) */
657 puts ("hppa2.0"); break;
658 #endif
659 default: puts ("hppa1.0"); break;
660 }
661 exit (0);
662 }
639663 EOF
640664 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
641665 test -z "$HP_ARCH" && HP_ARCH=hppa
726750 exit ;;
727751 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
728752 echo c1-convex-bsd
729 exit ;;
753 exit ;;
730754 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
731755 if getsysinfo -f scalar_acc
732756 then echo c32-convex-bsd
733757 else echo c2-convex-bsd
734758 fi
735 exit ;;
759 exit ;;
736760 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
737761 echo c34-convex-bsd
738 exit ;;
762 exit ;;
739763 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
740764 echo c38-convex-bsd
741 exit ;;
765 exit ;;
742766 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
743767 echo c4-convex-bsd
744 exit ;;
768 exit ;;
745769 CRAY*Y-MP:*:*:*)
746770 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
747771 exit ;;
765789 exit ;;
766790 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
767791 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
768 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
769 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
770 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
771 exit ;;
792 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
793 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
794 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
795 exit ;;
772796 5000:UNIX_System_V:4.*:*)
773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
775 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
797 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
798 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
799 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776800 exit ;;
777801 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
778802 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
784808 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
785809 exit ;;
786810 *:FreeBSD:*:*)
787 case ${UNAME_MACHINE} in
788 pc98)
789 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
811 UNAME_PROCESSOR=`/usr/bin/uname -p`
812 case ${UNAME_PROCESSOR} in
790813 amd64)
791814 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792815 *)
793 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
816 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794817 esac
795818 exit ;;
796819 i*:CYGWIN*:*)
797820 echo ${UNAME_MACHINE}-pc-cygwin
798821 exit ;;
822 *:MINGW64*:*)
823 echo ${UNAME_MACHINE}-pc-mingw64
824 exit ;;
799825 *:MINGW*:*)
800826 echo ${UNAME_MACHINE}-pc-mingw32
801827 exit ;;
828 i*:MSYS*:*)
829 echo ${UNAME_MACHINE}-pc-msys
830 exit ;;
802831 i*:windows32*:*)
803 # uname -m includes "-pc" on this system.
804 echo ${UNAME_MACHINE}-mingw32
832 # uname -m includes "-pc" on this system.
833 echo ${UNAME_MACHINE}-mingw32
805834 exit ;;
806835 i*:PW*:*)
807836 echo ${UNAME_MACHINE}-pc-pw32
808837 exit ;;
809 *:Interix*:[3456]*)
810 case ${UNAME_MACHINE} in
838 *:Interix*:*)
839 case ${UNAME_MACHINE} in
811840 x86)
812841 echo i586-pc-interix${UNAME_RELEASE}
813842 exit ;;
814 EM64T | authenticamd | genuineintel)
843 authenticamd | genuineintel | EM64T)
815844 echo x86_64-unknown-interix${UNAME_RELEASE}
816845 exit ;;
817846 IA64)
844873 exit ;;
845874 *:GNU:*:*)
846875 # the GNU system
847 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
876 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
848877 exit ;;
849878 *:GNU/*:*:*)
850879 # other systems with GNU libc and userland
851 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
880 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
852881 exit ;;
853882 i*86:Minix:*:*)
854883 echo ${UNAME_MACHINE}-pc-minix
884 exit ;;
885 aarch64:Linux:*:*)
886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
887 exit ;;
888 aarch64_be:Linux:*:*)
889 UNAME_MACHINE=aarch64_be
890 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
891 exit ;;
892 alpha:Linux:*:*)
893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894 EV5) UNAME_MACHINE=alphaev5 ;;
895 EV56) UNAME_MACHINE=alphaev56 ;;
896 PCA56) UNAME_MACHINE=alphapca56 ;;
897 PCA57) UNAME_MACHINE=alphapca56 ;;
898 EV6) UNAME_MACHINE=alphaev6 ;;
899 EV67) UNAME_MACHINE=alphaev67 ;;
900 EV68*) UNAME_MACHINE=alphaev68 ;;
901 esac
902 objdump --private-headers /bin/sh | grep -q ld.so.1
903 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
905 exit ;;
906 arc:Linux:*:* | arceb:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
855908 exit ;;
856909 arm*:Linux:*:*)
857910 eval $set_cc_for_build
858911 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
859912 | grep -q __ARM_EABI__
860913 then
861 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
862915 else
863 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
916 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
917 | grep -q __ARM_PCS_VFP
918 then
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
920 else
921 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
922 fi
864923 fi
865924 exit ;;
866925 avr32*:Linux:*:*)
867 echo ${UNAME_MACHINE}-unknown-linux-gnu
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
868927 exit ;;
869928 cris:Linux:*:*)
870 echo cris-axis-linux-gnu
929 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
871930 exit ;;
872931 crisv32:Linux:*:*)
873 echo crisv32-axis-linux-gnu
932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
874933 exit ;;
875934 frv:Linux:*:*)
876 echo frv-unknown-linux-gnu
935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
936 exit ;;
937 hexagon:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
939 exit ;;
940 i*86:Linux:*:*)
941 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
877942 exit ;;
878943 ia64:Linux:*:*)
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
880945 exit ;;
881946 m32r*:Linux:*:*)
882 echo ${UNAME_MACHINE}-unknown-linux-gnu
947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
883948 exit ;;
884949 m68*:Linux:*:*)
885 echo ${UNAME_MACHINE}-unknown-linux-gnu
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
886951 exit ;;
887952 mips:Linux:*:* | mips64:Linux:*:*)
888953 eval $set_cc_for_build
900965 #endif
901966 #endif
902967 EOF
903 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
904 /^CPU/{
905 s: ::g
906 p
907 }'`"
908 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
968 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
969 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
909970 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
910974 or32:Linux:*:*)
911 echo or32-unknown-linux-gnu
912 exit ;;
913 ppc:Linux:*:*)
914 echo powerpc-unknown-linux-gnu
915 exit ;;
916 ppc64:Linux:*:*)
917 echo powerpc64-unknown-linux-gnu
918 exit ;;
919 alpha:Linux:*:*)
920 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
921 EV5) UNAME_MACHINE=alphaev5 ;;
922 EV56) UNAME_MACHINE=alphaev56 ;;
923 PCA56) UNAME_MACHINE=alphapca56 ;;
924 PCA57) UNAME_MACHINE=alphapca56 ;;
925 EV6) UNAME_MACHINE=alphaev6 ;;
926 EV67) UNAME_MACHINE=alphaev67 ;;
927 EV68*) UNAME_MACHINE=alphaev68 ;;
928 esac
929 objdump --private-headers /bin/sh | grep -q ld.so.1
930 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
931 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
932976 exit ;;
933977 padre:Linux:*:*)
934 echo sparc-unknown-linux-gnu
978 echo sparc-unknown-linux-${LIBC}
979 exit ;;
980 parisc64:Linux:*:* | hppa64:Linux:*:*)
981 echo hppa64-unknown-linux-${LIBC}
935982 exit ;;
936983 parisc:Linux:*:* | hppa:Linux:*:*)
937984 # Look for CPU level
938985 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
939 PA7*) echo hppa1.1-unknown-linux-gnu ;;
940 PA8*) echo hppa2.0-unknown-linux-gnu ;;
941 *) echo hppa-unknown-linux-gnu ;;
986 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
987 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
988 *) echo hppa-unknown-linux-${LIBC} ;;
942989 esac
943990 exit ;;
944 parisc64:Linux:*:* | hppa64:Linux:*:*)
945 echo hppa64-unknown-linux-gnu
991 ppc64:Linux:*:*)
992 echo powerpc64-unknown-linux-${LIBC}
993 exit ;;
994 ppc:Linux:*:*)
995 echo powerpc-unknown-linux-${LIBC}
996 exit ;;
997 ppc64le:Linux:*:*)
998 echo powerpc64le-unknown-linux-${LIBC}
999 exit ;;
1000 ppcle:Linux:*:*)
1001 echo powerpcle-unknown-linux-${LIBC}
9461002 exit ;;
9471003 s390:Linux:*:* | s390x:Linux:*:*)
948 echo ${UNAME_MACHINE}-ibm-linux
1004 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
9491005 exit ;;
9501006 sh64*:Linux:*:*)
951 echo ${UNAME_MACHINE}-unknown-linux-gnu
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9521008 exit ;;
9531009 sh*:Linux:*:*)
954 echo ${UNAME_MACHINE}-unknown-linux-gnu
1010 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9551011 exit ;;
9561012 sparc:Linux:*:* | sparc64:Linux:*:*)
957 echo ${UNAME_MACHINE}-unknown-linux-gnu
1013 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1014 exit ;;
1015 tile*:Linux:*:*)
1016 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9581017 exit ;;
9591018 vax:Linux:*:*)
960 echo ${UNAME_MACHINE}-dec-linux-gnu
1019 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
9611020 exit ;;
9621021 x86_64:Linux:*:*)
963 echo x86_64-unknown-linux-gnu
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9641023 exit ;;
9651024 xtensa*:Linux:*:*)
966 echo ${UNAME_MACHINE}-unknown-linux-gnu
967 exit ;;
968 i*86:Linux:*:*)
969 # The BFD linker knows what the default object file format is, so
970 # first see if it will tell us. cd to the root directory to prevent
971 # problems with other programs or directories called `ld' in the path.
972 # Set LC_ALL=C to ensure ld outputs messages in English.
973 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
974 | sed -ne '/supported targets:/!d
975 s/[ ][ ]*/ /g
976 s/.*supported targets: *//
977 s/ .*//
978 p'`
979 case "$ld_supported_targets" in
980 elf32-i386)
981 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
982 ;;
983 esac
984 # Determine whether the default compiler is a.out or elf
985 eval $set_cc_for_build
986 sed 's/^ //' << EOF >$dummy.c
987 #include <features.h>
988 #ifdef __ELF__
989 # ifdef __GLIBC__
990 # if __GLIBC__ >= 2
991 LIBC=gnu
992 # else
993 LIBC=gnulibc1
994 # endif
995 # else
996 LIBC=gnulibc1
997 # endif
998 #else
999 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1000 LIBC=gnu
1001 #else
1002 LIBC=gnuaout
1003 #endif
1004 #endif
1005 #ifdef __dietlibc__
1006 LIBC=dietlibc
1007 #endif
1008 EOF
1009 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1010 /^LIBC/{
1011 s: ::g
1012 p
1013 }'`"
1014 test x"${LIBC}" != x && {
1015 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1016 exit
1017 }
1018 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1019 ;;
1025 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1026 exit ;;
10201027 i*86:DYNIX/ptx:4*:*)
10211028 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10221029 # earlier versions are messed up and put the nodename in both
10241031 echo i386-sequent-sysv4
10251032 exit ;;
10261033 i*86:UNIX_SV:4.2MP:2.*)
1027 # Unixware is an offshoot of SVR4, but it has its own version
1028 # number series starting with 2...
1029 # I am not positive that other SVR4 systems won't match this,
1034 # Unixware is an offshoot of SVR4, but it has its own version
1035 # number series starting with 2...
1036 # I am not positive that other SVR4 systems won't match this,
10301037 # I just have to hope. -- rms.
1031 # Use sysv4.2uw... so that sysv4* matches it.
1038 # Use sysv4.2uw... so that sysv4* matches it.
10321039 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
10331040 exit ;;
10341041 i*86:OS/2:*:*)
10601067 fi
10611068 exit ;;
10621069 i*86:*:5:[678]*)
1063 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1070 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10641071 case `/bin/uname -X | grep "^Machine"` in
10651072 *486*) UNAME_MACHINE=i486 ;;
10661073 *Pentium) UNAME_MACHINE=i586 ;;
10881095 exit ;;
10891096 pc:*:*:*)
10901097 # Left here for compatibility:
1091 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1092 # the processor, so we play safe by assuming i586.
1098 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1099 # the processor, so we play safe by assuming i586.
10931100 # Note: whatever this is, it MUST be the same as what config.sub
10941101 # prints for the "djgpp" host, or else GDB configury will decide that
10951102 # this is a cross-build.
10961103 echo i586-pc-msdosdjgpp
1097 exit ;;
1104 exit ;;
10981105 Intel:Mach:3*:*)
10991106 echo i386-pc-mach3
11001107 exit ;;
11291136 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
11301137 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11311138 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1132 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133 && { echo i486-ncr-sysv4; exit; } ;;
1139 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1140 && { echo i486-ncr-sysv4; exit; } ;;
11341141 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
11351142 OS_REL='.3'
11361143 test -r /etc/.relid \
11731180 echo ns32k-sni-sysv
11741181 fi
11751182 exit ;;
1176 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1177 # says <Richard.M.Bartel@ccMail.Census.GOV>
1178 echo i586-unisys-sysv4
1179 exit ;;
1183 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1184 # says <Richard.M.Bartel@ccMail.Census.GOV>
1185 echo i586-unisys-sysv4
1186 exit ;;
11801187 *:UNIX_System_V:4*:FTX*)
11811188 # From Gerald Hewes <hewes@openmarket.com>.
11821189 # How about differentiating between stratus architectures? -djm
12021209 exit ;;
12031210 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12041211 if [ -d /usr/nec ]; then
1205 echo mips-nec-sysv${UNAME_RELEASE}
1212 echo mips-nec-sysv${UNAME_RELEASE}
12061213 else
1207 echo mips-unknown-sysv${UNAME_RELEASE}
1208 fi
1209 exit ;;
1214 echo mips-unknown-sysv${UNAME_RELEASE}
1215 fi
1216 exit ;;
12101217 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12111218 echo powerpc-be-beos
12121219 exit ;;
12191226 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
12201227 echo i586-pc-haiku
12211228 exit ;;
1229 x86_64:Haiku:*:*)
1230 echo x86_64-unknown-haiku
1231 exit ;;
12221232 SX-4:SUPER-UX:*:*)
12231233 echo sx4-nec-superux${UNAME_RELEASE}
12241234 exit ;;
12451255 exit ;;
12461256 *:Darwin:*:*)
12471257 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1248 case $UNAME_PROCESSOR in
1249 unknown) UNAME_PROCESSOR=powerpc ;;
1250 esac
1258 eval $set_cc_for_build
1259 if test "$UNAME_PROCESSOR" = unknown ; then
1260 UNAME_PROCESSOR=powerpc
1261 fi
1262 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1263 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265 grep IS_64BIT_ARCH >/dev/null
1266 then
1267 case $UNAME_PROCESSOR in
1268 i386) UNAME_PROCESSOR=x86_64 ;;
1269 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1270 esac
1271 fi
1272 fi
12511273 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12521274 exit ;;
12531275 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12611283 *:QNX:*:4*)
12621284 echo i386-pc-qnx
12631285 exit ;;
1264 NSE-?:NONSTOP_KERNEL:*:*)
1286 NEO-?:NONSTOP_KERNEL:*:*)
1287 echo neo-tandem-nsk${UNAME_RELEASE}
1288 exit ;;
1289 NSE-*:NONSTOP_KERNEL:*:*)
12651290 echo nse-tandem-nsk${UNAME_RELEASE}
12661291 exit ;;
12671292 NSR-?:NONSTOP_KERNEL:*:*)
13061331 echo pdp10-unknown-its
13071332 exit ;;
13081333 SEI:*:*:SEIUX)
1309 echo mips-sei-seiux${UNAME_RELEASE}
1334 echo mips-sei-seiux${UNAME_RELEASE}
13101335 exit ;;
13111336 *:DragonFly:*:*)
13121337 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
13131338 exit ;;
13141339 *:*VMS:*:*)
1315 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1340 UNAME_MACHINE=`(uname -p) 2>/dev/null`
13161341 case "${UNAME_MACHINE}" in
13171342 A*) echo alpha-dec-vms ; exit ;;
13181343 I*) echo ia64-dec-vms ; exit ;;
13301355 i*86:AROS:*:*)
13311356 echo ${UNAME_MACHINE}-pc-aros
13321357 exit ;;
1358 x86_64:VMkernel:*:*)
1359 echo ${UNAME_MACHINE}-unknown-esx
1360 exit ;;
13331361 esac
1334
1335 #echo '(No uname command or uname output not recognized.)' 1>&2
1336 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13371362
13381363 eval $set_cc_for_build
13391364 cat >$dummy.c <<EOF
13521377 #include <sys/param.h>
13531378 printf ("m68k-sony-newsos%s\n",
13541379 #ifdef NEWSOS4
1355 "4"
1380 "4"
13561381 #else
1357 ""
1358 #endif
1359 ); exit (0);
1382 ""
1383 #endif
1384 ); exit (0);
13601385 #endif
13611386 #endif
13621387
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-06-11'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-08-10'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
159 # (at your option) any later version.
1610 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
2115 #
2216 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2618 #
2719 # As a special exception to the GNU General Public License, if you
2820 # distribute this file as part of a program that contains a
2921 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
3528 #
3629 # Configuration subroutine to validate and canonicalize a configuration type.
3730 # Supply the specified configuration type as an argument.
3831 # If it is invalid, we print an error message on stderr and exit with code 1.
3932 # Otherwise, we print the canonical config type on stdout and succeed.
33
34 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
4036
4137 # This file is supposed to be the same for all GNU packages
4238 # and recognize all the CPU types, system types and aliases
7167 version="\
7268 GNU config.sub ($timestamp)
7369
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
70 Copyright 1992-2013 Free Software Foundation, Inc.
7671
7772 This is free software; see the source for copying conditions. There is NO
7873 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
119114 # Here we must recognize all the valid KERNEL-OS combinations.
120115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121116 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
124120 kopensolaris*-gnu* | \
125121 storm-chaos* | os2-emx* | rtmk-nova*)
126122 os=-$maybe_os
127123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128128 ;;
129129 *)
130130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
148148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray)
151 -apple | -axis | -knuth | -cray | -microblaze*)
152152 os=
153153 basic_machine=$1
154154 ;;
155 -bluegene*)
156 os=-cnk
155 -bluegene*)
156 os=-cnk
157157 ;;
158158 -sim | -cisco | -oki | -wec | -winbond)
159159 os=
169169 os=-chorusos
170170 basic_machine=$1
171171 ;;
172 -chorusrdb)
173 os=-chorusrdb
172 -chorusrdb)
173 os=-chorusrdb
174174 basic_machine=$1
175 ;;
175 ;;
176176 -hiux*)
177177 os=-hiuxwe2
178178 ;;
216216 ;;
217217 -isc*)
218218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
219225 ;;
220226 -lynx*)
221227 os=-lynxos
241247 # Some are omitted here because they have special meanings below.
242248 1750a | 580 \
243249 | a29k \
250 | aarch64 | aarch64_be \
244251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
245252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
246253 | am33_2.0 \
247 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
248258 | bfin \
249 | c4x | clipper \
259 | c4x | c8051 | clipper \
250260 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
251262 | fido | fr30 | frv \
252263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264 | hexagon \
253265 | i370 | i860 | i960 | ia64 \
254266 | ip2k | iq2000 \
267 | le32 | le64 \
255268 | lm32 \
256269 | m32c | m32r | m32rle | m68000 | m68k | m88k \
257 | maxq | mb | microblaze | mcore | mep | metag \
270 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
258271 | mips | mipsbe | mipseb | mipsel | mipsle \
259272 | mips16 \
260273 | mips64 | mips64el \
272285 | mipsisa64r2 | mipsisa64r2el \
273286 | mipsisa64sb1 | mipsisa64sb1el \
274287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
275289 | mipstx39 | mipstx39el \
276290 | mn10200 | mn10300 \
277291 | moxie \
278292 | mt \
279293 | msp430 \
280 | nios | nios2 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
281296 | ns16k | ns32k \
282 | or32 \
297 | open8 \
298 | or1k | or32 \
283299 | pdp10 | pdp11 | pj | pjl \
284 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
300 | powerpc | powerpc64 | powerpc64le | powerpcle \
285301 | pyramid \
302 | rl78 | rx \
286303 | score \
287304 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
288305 | sh64 | sh64le \
289306 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
290307 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
291 | spu | strongarm \
292 | tahoe | thumb | tic4x | tic80 | tron \
293 | v850 | v850e \
308 | spu \
309 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
310 | ubicom32 \
311 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
294312 | we32k \
295 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
313 | x86 | xc16x | xstormy16 | xtensa \
296314 | z8k | z80)
297315 basic_machine=$basic_machine-unknown
298316 ;;
299 m6811 | m68hc11 | m6812 | m68hc12)
300 # Motorola 68HC11/12.
317 c54x)
318 basic_machine=tic54x-unknown
319 ;;
320 c55x)
321 basic_machine=tic55x-unknown
322 ;;
323 c6x)
324 basic_machine=tic6x-unknown
325 ;;
326 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
301327 basic_machine=$basic_machine-unknown
302328 os=-none
303329 ;;
305331 ;;
306332 ms1)
307333 basic_machine=mt-unknown
334 ;;
335
336 strongarm | thumb | xscale)
337 basic_machine=arm-unknown
338 ;;
339 xgate)
340 basic_machine=$basic_machine-unknown
341 os=-none
342 ;;
343 xscaleeb)
344 basic_machine=armeb-unknown
345 ;;
346
347 xscaleel)
348 basic_machine=armel-unknown
308349 ;;
309350
310351 # We use `pc' rather than `unknown'
321362 # Recognize the basic CPU types with company name.
322363 580-* \
323364 | a29k-* \
365 | aarch64-* | aarch64_be-* \
324366 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
325367 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
326 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
327369 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
328370 | avr-* | avr32-* \
371 | be32-* | be64-* \
329372 | bfin-* | bs2000-* \
330 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
331 | clipper-* | craynv-* | cydra-* \
373 | c[123]* | c30-* | [cjt]90-* | c4x-* \
374 | c8051-* | clipper-* | craynv-* | cydra-* \
332375 | d10v-* | d30v-* | dlx-* \
333376 | elxsi-* \
334377 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
335378 | h8300-* | h8500-* \
336379 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
380 | hexagon-* \
337381 | i*86-* | i860-* | i960-* | ia64-* \
338382 | ip2k-* | iq2000-* \
383 | le32-* | le64-* \
339384 | lm32-* \
340385 | m32c-* | m32r-* | m32rle-* \
341386 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
342387 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
388 | microblaze-* | microblazeel-* \
343389 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
344390 | mips16-* \
345391 | mips64-* | mips64el-* \
357403 | mipsisa64r2-* | mipsisa64r2el-* \
358404 | mipsisa64sb1-* | mipsisa64sb1el-* \
359405 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406 | mipsr5900-* | mipsr5900el-* \
360407 | mipstx39-* | mipstx39el-* \
361408 | mmix-* \
362409 | mt-* \
363410 | msp430-* \
364 | nios-* | nios2-* \
411 | nds32-* | nds32le-* | nds32be-* \
412 | nios-* | nios2-* | nios2eb-* | nios2el-* \
365413 | none-* | np1-* | ns16k-* | ns32k-* \
414 | open8-* \
366415 | orion-* \
367416 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
368 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
417 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
369418 | pyramid-* \
370 | romp-* | rs6000-* \
419 | rl78-* | romp-* | rs6000-* | rx-* \
371420 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
372421 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
373422 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
374423 | sparclite-* \
375 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
376 | tahoe-* | thumb-* \
377 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
424 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
425 | tahoe-* \
426 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
427 | tile*-* \
378428 | tron-* \
379 | v850-* | v850e-* | vax-* \
429 | ubicom32-* \
430 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
431 | vax-* \
380432 | we32k-* \
381 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
433 | x86-* | x86_64-* | xc16x-* | xps100-* \
382434 | xstormy16-* | xtensa*-* \
383435 | ymp-* \
384436 | z8k-* | z80-*)
403455 basic_machine=a29k-amd
404456 os=-udi
405457 ;;
406 abacus)
458 abacus)
407459 basic_machine=abacus-unknown
408460 ;;
409461 adobe68k)
473525 basic_machine=powerpc-ibm
474526 os=-cnk
475527 ;;
528 c54x-*)
529 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
530 ;;
531 c55x-*)
532 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
533 ;;
534 c6x-*)
535 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
536 ;;
476537 c90)
477538 basic_machine=c90-cray
478539 os=-unicos
479540 ;;
480 cegcc)
541 cegcc)
481542 basic_machine=arm-unknown
482543 os=-cegcc
483544 ;;
509570 basic_machine=craynv-cray
510571 os=-unicosmp
511572 ;;
512 cr16)
573 cr16 | cr16-*)
513574 basic_machine=cr16-unknown
514575 os=-elf
515576 ;;
667728 i370-ibm* | ibm*)
668729 basic_machine=i370-ibm
669730 ;;
670 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
671731 i*86v32)
672732 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
673733 os=-sysv32
725785 basic_machine=ns32k-utek
726786 os=-sysv
727787 ;;
788 microblaze*)
789 basic_machine=microblaze-xilinx
790 ;;
791 mingw64)
792 basic_machine=x86_64-pc
793 os=-mingw64
794 ;;
728795 mingw32)
729 basic_machine=i386-pc
796 basic_machine=i686-pc
730797 os=-mingw32
731798 ;;
732799 mingw32ce)
761828 ms1-*)
762829 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
763830 ;;
831 msys)
832 basic_machine=i686-pc
833 os=-msys
834 ;;
764835 mvs)
765836 basic_machine=i370-ibm
766837 os=-mvs
838 ;;
839 nacl)
840 basic_machine=le32-unknown
841 os=-nacl
767842 ;;
768843 ncr3000)
769844 basic_machine=i486-ncr
829904 np1)
830905 basic_machine=np1-gould
831906 ;;
907 neo-tandem)
908 basic_machine=neo-tandem
909 ;;
910 nse-tandem)
911 basic_machine=nse-tandem
912 ;;
832913 nsr-tandem)
833914 basic_machine=nsr-tandem
834915 ;;
911992 ;;
912993 power) basic_machine=power-ibm
913994 ;;
914 ppc) basic_machine=powerpc-unknown
915 ;;
916 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
995 ppc | ppcbe) basic_machine=powerpc-unknown
996 ;;
997 ppc-* | ppcbe-*)
998 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
917999 ;;
9181000 ppcle | powerpclittle | ppc-le | powerpc-little)
9191001 basic_machine=powerpcle-unknown
9381020 basic_machine=i586-unknown
9391021 os=-pw32
9401022 ;;
941 rdos)
1023 rdos | rdos64)
1024 basic_machine=x86_64-pc
1025 os=-rdos
1026 ;;
1027 rdos32)
9421028 basic_machine=i386-pc
9431029 os=-rdos
9441030 ;;
10071093 basic_machine=i860-stratus
10081094 os=-sysv4
10091095 ;;
1096 strongarm-* | thumb-*)
1097 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1098 ;;
10101099 sun2)
10111100 basic_machine=m68000-sun
10121101 ;;
10631152 basic_machine=t90-cray
10641153 os=-unicos
10651154 ;;
1066 tic54x | c54x*)
1067 basic_machine=tic54x-unknown
1068 os=-coff
1069 ;;
1070 tic55x | c55x*)
1071 basic_machine=tic55x-unknown
1072 os=-coff
1073 ;;
1074 tic6x | c6x*)
1075 basic_machine=tic6x-unknown
1076 os=-coff
1077 ;;
10781155 tile*)
1079 basic_machine=tile-unknown
1156 basic_machine=$basic_machine-unknown
10801157 os=-linux-gnu
10811158 ;;
10821159 tx39)
11451222 ;;
11461223 xps | xps100)
11471224 basic_machine=xps100-honeywell
1225 ;;
1226 xscale-* | xscalee[bl]-*)
1227 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11481228 ;;
11491229 ymp)
11501230 basic_machine=ymp-cray
12431323 if [ x"$os" != x"" ]
12441324 then
12451325 case $os in
1246 # First match some system type aliases
1247 # that might get confused with valid system types.
1326 # First match some system type aliases
1327 # that might get confused with valid system types.
12481328 # -solaris* is a basic system type, with this one exception.
1329 -auroraux)
1330 os=-auroraux
1331 ;;
12491332 -solaris1 | -solaris1.*)
12501333 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12511334 ;;
12671350 # -sysv* is not here because it comes later, after sysvr4.
12681351 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
12691352 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1270 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1271 | -kopensolaris* \
1353 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1354 | -sym* | -kopensolaris* | -plan9* \
12721355 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
12731356 | -aos* | -aros* \
12741357 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
12751358 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
12761359 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1277 | -openbsd* | -solidbsd* \
1360 | -bitrig* | -openbsd* | -solidbsd* \
12781361 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
12791362 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
12801363 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
12811364 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
12821365 | -chorusos* | -chorusrdb* | -cegcc* \
1283 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1284 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1366 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1367 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1368 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
12851369 | -uxpv* | -beos* | -mpeix* | -udk* \
12861370 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
12871371 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
12891373 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
12901374 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
12911375 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1292 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1376 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
12931377 # Remember, each alternative MUST END IN *, to match a version number.
12941378 ;;
12951379 -qnx*)
13281412 -opened*)
13291413 os=-openedition
13301414 ;;
1331 -os400*)
1415 -os400*)
13321416 os=-os400
13331417 ;;
13341418 -wince*)
13771461 -sinix*)
13781462 os=-sysv4
13791463 ;;
1380 -tpf*)
1464 -tpf*)
13811465 os=-tpf
13821466 ;;
13831467 -triton*)
14131497 -aros*)
14141498 os=-aros
14151499 ;;
1416 -kaos*)
1417 os=-kaos
1418 ;;
14191500 -zvmoe)
14201501 os=-zvmoe
14211502 ;;
14221503 -dicos*)
14231504 os=-dicos
1505 ;;
1506 -nacl*)
14241507 ;;
14251508 -none)
14261509 ;;
14441527 # system, and we'll never get to this point.
14451528
14461529 case $basic_machine in
1447 score-*)
1530 score-*)
14481531 os=-elf
14491532 ;;
1450 spu-*)
1533 spu-*)
14511534 os=-elf
14521535 ;;
14531536 *-acorn)
14591542 arm*-semi)
14601543 os=-aout
14611544 ;;
1462 c4x-* | tic4x-*)
1463 os=-coff
1545 c4x-* | tic4x-*)
1546 os=-coff
1547 ;;
1548 c8051-*)
1549 os=-elf
1550 ;;
1551 hexagon-*)
1552 os=-elf
1553 ;;
1554 tic54x-*)
1555 os=-coff
1556 ;;
1557 tic55x-*)
1558 os=-coff
1559 ;;
1560 tic6x-*)
1561 os=-coff
14641562 ;;
14651563 # This must come before the *-dec entry.
14661564 pdp10-*)
14801578 ;;
14811579 m68000-sun)
14821580 os=-sunos3
1483 # This also exists in the configure program, but was not the
1484 # default.
1485 # os=-sunos4
14861581 ;;
14871582 m68*-cisco)
14881583 os=-aout
14891584 ;;
1490 mep-*)
1585 mep-*)
14911586 os=-elf
14921587 ;;
14931588 mips*-cisco)
14961591 mips*-*)
14971592 os=-elf
14981593 ;;
1594 or1k-*)
1595 os=-elf
1596 ;;
14991597 or32-*)
15001598 os=-coff
15011599 ;;
15141612 *-ibm)
15151613 os=-aix
15161614 ;;
1517 *-knuth)
1615 *-knuth)
15181616 os=-mmixware
15191617 ;;
15201618 *-wec)
+3220
-2307
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.65 for libgeotiff 1.4.0.
2 # Generated by GNU Autoconf 2.69 for libgeotiff 1.4.1.
33 #
44 # Report bugs to <warmerdam@pobox.com>.
55 #
66 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9 # Inc.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
108 #
119 #
1210 # This configure script is free software; the Free Software Foundation
9088 IFS=" "" $as_nl"
9189
9290 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
9392 case $0 in #((
9493 *[\\/]* ) as_myself=$0 ;;
9594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134133 # CDPATH.
135134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
137161 if test "x$CONFIG_SHELL" = x; then
138162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139163 emulate sh
167191 else
168192 exitcode=1; echo positional parameters were not saved.
169193 fi
170 test x\$exitcode = x0 || exit 1"
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
171196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
175208 test \$(( 1 + 1 )) = 2 || exit 1"
176209 if (eval "$as_required") 2>/dev/null; then :
177210 as_have_required=yes
212245
213246
214247 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
223267 fi
224268
225269 if test x$as_have_required = xno; then :
318362 test -d "$as_dir" && break
319363 done
320364 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322366
323367
324368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
325377 # as_fn_append VAR VALUE
326378 # ----------------------
327379 # Append the text in VALUE to the end of the definition contained in VAR. Take
358410 fi # as_fn_arith
359411
360412
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
363415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
417 # script with STATUS, using 1 if that was 0.
366418 as_fn_error ()
367419 {
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
372424 fi
373 $as_echo "$as_me: error: $1" >&2
425 $as_echo "$as_me: error: $2" >&2
374426 as_fn_exit $as_status
375427 } # as_fn_error
376428
443495 chmod +x "$as_me.lineno" ||
444496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
446502 # Don't try to exec as it changes $[0], causing all sort of problems
447503 # (the dirname of $[0] is not the place where we might find the
448504 # original and so on. Autoconf is especially sensitive to this).
477533 # ... but there are two gotchas:
478534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
536 # In both cases, we have to default to `cp -pR'.
481537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 as_ln_s='cp -p'
538 as_ln_s='cp -pR'
483539 elif ln conf$$.file conf$$ 2>/dev/null; then
484540 as_ln_s=ln
485541 else
486 as_ln_s='cp -p'
542 as_ln_s='cp -pR'
487543 fi
488544 else
489 as_ln_s='cp -p'
545 as_ln_s='cp -pR'
490546 fi
491547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492548 rmdir conf$$.dir 2>/dev/null
498554 as_mkdir_p=false
499555 fi
500556
501 if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503 else
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
508 fi
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
520 '
521 fi
522 as_executable_p=$as_test_x
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
523559
524560 # Sed expression to map a string onto a valid CPP name.
525561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527563 # Sed expression to map a string onto a valid variable name.
528564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529565
530
531
532 # Check that we are running under the correct shell.
533566 SHELL=${CONFIG_SHELL-/bin/sh}
534
535 case X$lt_ECHO in
536 X*--fallback-echo)
537 # Remove one level of quotation (which was required for Make).
538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 ;;
540 esac
541
542 ECHO=${lt_ECHO-echo}
543 if test "X$1" = X--no-reexec; then
544 # Discard the --no-reexec flag, and continue.
545 shift
546 elif test "X$1" = X--fallback-echo; then
547 # Avoid inline document here, it may be left over
548 :
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550 # Yippee, $ECHO works!
551 :
552 else
553 # Restart under the correct shell.
554 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 fi
556
557 if test "X$1" = X--fallback-echo; then
558 # used as fallback echo
559 shift
560 cat <<_LT_EOF
561 $*
562 _LT_EOF
563 exit 0
564 fi
565
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 # if CDPATH is set.
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570 if test -z "$lt_ECHO"; then
571 if test "X${echo_test_string+set}" != Xset; then
572 # find a string as large as possible, as long as the shell can cope with it
573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577 then
578 break
579 fi
580 done
581 fi
582
583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
586 :
587 else
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
591 #
592 # So, first we look for a working echo in the user's PATH.
593
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
596 IFS="$lt_save_ifs"
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
601 ECHO="$dir/echo"
602 break
603 fi
604 done
605 IFS="$lt_save_ifs"
606
607 if test "X$ECHO" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
613 ECHO='print -r'
614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
620 export CONFIG_SHELL
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622 else
623 # Try using printf.
624 ECHO='printf %s\n'
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 # Cool, printf works
629 :
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 export CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
637 export SHELL
638 ECHO="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 else
645 # maybe with a smaller string...
646 prev=:
647
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650 then
651 break
652 fi
653 prev="$cmd"
654 done
655
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 else
661 # Oops. We lost completely, so just stick with echo.
662 ECHO=echo
663 fi
664 fi
665 fi
666 fi
667 fi
668 fi
669
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 lt_ECHO=$ECHO
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675 fi
676
677
678567
679568
680569 test -n "$DJDIR" || exec 7<&0 </dev/null
681570 exec 6>&1
682571
683572 # Name of the host.
684 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
685574 # so uname gets run too.
686575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687576
700589 # Identity of this package.
701590 PACKAGE_NAME='libgeotiff'
702591 PACKAGE_TARNAME='libgeotiff'
703 PACKAGE_VERSION='1.4.0'
704 PACKAGE_STRING='libgeotiff 1.4.0'
592 PACKAGE_VERSION='1.4.1'
593 PACKAGE_STRING='libgeotiff 1.4.1'
705594 PACKAGE_BUGREPORT='warmerdam@pobox.com'
706595 PACKAGE_URL=''
707596
818707 LIPO
819708 NMEDIT
820709 DSYMUTIL
821 lt_ECHO
710 MANIFEST_TOOL
822711 RANLIB
712 ac_ct_AR
823713 AR
714 DLLTOOL
824715 OBJDUMP
825716 NM
826717 ac_ct_DUMPBIN
846737 am__fastdepCC_FALSE
847738 am__fastdepCC_TRUE
848739 CCDEPMODE
740 am__nodep
849741 AMDEPBACKSLASH
850742 AMDEP_FALSE
851743 AMDEP_TRUE
862754 MAINT
863755 MAINTAINER_MODE_FALSE
864756 MAINTAINER_MODE_TRUE
757 AM_BACKSLASH
758 AM_DEFAULT_VERBOSITY
759 AM_DEFAULT_V
760 AM_V
865761 am__untar
866762 am__tar
867763 AMTAR
931827 ac_subst_files=''
932828 ac_user_opts='
933829 enable_option_checking
830 enable_silent_rules
934831 enable_maintainer_mode
935832 enable_dependency_tracking
936833 enable_shared
938835 with_pic
939836 enable_fast_install
940837 with_gnu_ld
838 with_sysroot
941839 enable_libtool_lock
942840 enable_debug
943841 with_zip
947845 with_libtiff
948846 with_proj
949847 enable_incode_epsg
848 enable_towgs84
950849 enable_doxygen_doc
951850 enable_doxygen_dot
952851 enable_doxygen_man
1034933 fi
1035934
1036935 case $ac_option in
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *) ac_optarg=yes ;;
936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 *=) ac_optarg= ;;
938 *) ac_optarg=yes ;;
1039939 esac
1040940
1041941 # Accept the important Cygnus configure options, so we can diagnose typos.
1080980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081981 # Reject names that are not valid shell variable names.
1082982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
983 as_fn_error $? "invalid feature name: $ac_useropt"
1084984 ac_useropt_orig=$ac_useropt
1085985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086986 case $ac_user_opts in
11061006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
11071007 # Reject names that are not valid shell variable names.
11081008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid feature name: $ac_useropt"
1009 as_fn_error $? "invalid feature name: $ac_useropt"
11101010 ac_useropt_orig=$ac_useropt
11111011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11121012 case $ac_user_opts in
13101210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
13111211 # Reject names that are not valid shell variable names.
13121212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1213 as_fn_error $? "invalid package name: $ac_useropt"
13141214 ac_useropt_orig=$ac_useropt
13151215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13161216 case $ac_user_opts in
13261226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
13271227 # Reject names that are not valid shell variable names.
13281228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1229 as_fn_error $? "invalid package name: $ac_useropt"
13301230 ac_useropt_orig=$ac_useropt
13311231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13321232 case $ac_user_opts in
13561256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13571257 x_libraries=$ac_optarg ;;
13581258
1359 -*) as_fn_error "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
13611261 ;;
13621262
13631263 *=*)
13651265 # Reject names that are not valid shell variable names.
13661266 case $ac_envvar in #(
13671267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
13691269 esac
13701270 eval $ac_envvar=\$ac_optarg
13711271 export $ac_envvar ;;
13751275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13761276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
13771277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
13791279 ;;
13801280
13811281 esac
13831283
13841284 if test -n "$ac_prev"; then
13851285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error "missing argument to $ac_option"
1286 as_fn_error $? "missing argument to $ac_option"
13871287 fi
13881288
13891289 if test -n "$ac_unrecognized_opts"; then
13901290 case $enable_option_checking in
13911291 no) ;;
1392 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
13931293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13941294 esac
13951295 fi
14121312 [\\/$]* | ?:[\\/]* ) continue;;
14131313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
14141314 esac
1415 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
14161316 done
14171317
14181318 # There might be people who depend on the old broken behavior: `$host'
14261326 if test "x$host_alias" != x; then
14271327 if test "x$build_alias" = x; then
14281328 cross_compiling=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
14311329 elif test "x$build_alias" != "x$host_alias"; then
14321330 cross_compiling=yes
14331331 fi
14421340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
14431341 ac_ls_di=`ls -di .` &&
14441342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 as_fn_error "working directory cannot be determined"
1343 as_fn_error $? "working directory cannot be determined"
14461344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 as_fn_error "pwd does not report name of working directory"
1345 as_fn_error $? "pwd does not report name of working directory"
14481346
14491347
14501348 # Find the source files, if location was not specified.
14831381 fi
14841382 if test ! -r "$srcdir/$ac_unique_file"; then
14851383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
14871385 fi
14881386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
14891387 ac_abs_confdir=`(
1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
14911389 pwd)`
14921390 # When building in place, set srcdir=.
14931391 if test "$ac_abs_confdir" = "$ac_pwd"; then
15131411 # Omit some internal or obsolete options to make the list less imposing.
15141412 # This message is too long to be a string in the A/UX 3.1 sh.
15151413 cat <<_ACEOF
1516 \`configure' configures libgeotiff 1.4.0 to adapt to many kinds of systems.
1414 \`configure' configures libgeotiff 1.4.1 to adapt to many kinds of systems.
15171415
15181416 Usage: $0 [OPTION]... [VAR=VALUE]...
15191417
15271425 --help=short display options specific to this package
15281426 --help=recursive display the short help of all the included packages
15291427 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking...' messages
1428 -q, --quiet, --silent do not print \`checking ...' messages
15311429 --cache-file=FILE cache test results in FILE [disabled]
15321430 -C, --config-cache alias for \`--cache-file=config.cache'
15331431 -n, --no-create do not create output files
15831481
15841482 if test -n "$ac_init_help"; then
15851483 case $ac_init_help in
1586 short | recursive ) echo "Configuration of libgeotiff 1.4.0:";;
1484 short | recursive ) echo "Configuration of libgeotiff 1.4.1:";;
15871485 esac
15881486 cat <<\_ACEOF
15891487
15911489 --disable-option-checking ignore unrecognized --enable/--with options
15921490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
15931491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --enable-maintainer-mode enable make rules and dependencies not useful
1595 (and sometimes confusing) to the casual installer
1596 --disable-dependency-tracking speeds up one-time build
1597 --enable-dependency-tracking do not reject slow dependency extractors
1492 --enable-silent-rules less verbose build output (undo: "make V=1")
1493 --disable-silent-rules verbose build output (undo: "make V=0")
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
15981501 --enable-shared[=PKGS] build shared libraries [default=yes]
15991502 --enable-static[=PKGS] build static libraries [default=yes]
16001503 --enable-fast-install[=PKGS]
16031506 --enable-debug=ARG Enable debug compilation mode [yes|no],
16041507 default=no
16051508 --enable-incode-epsg Use C code EPSG tables
1509 --disable-towgs84 Disable WGS84 parameters for binary compatibility with pre-1.4.1
16061510 --disable-doxygen-doc don't generate any doxygen documentation
16071511 --disable-doxygen-dot don't generate graphics for doxygen documentation
16081512 --disable-doxygen-man don't generate doxygen manual pages
16181522 Optional Packages:
16191523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
16201524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1621 --with-pic try to use only PIC/non-PIC objects [default=use
1525 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
16221526 both]
16231527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-sysroot=DIR Search for dependent libraries within DIR
1529 (or the compiler's sysroot if not specified).
16241530 --with-zip=ARG zlib library to use (yes or path)
16251531 --with-zlib=ARG alias for --with-zip
16261532 --with-libz=ARG alias for --with-zip
17091615 test -n "$ac_init_help" && exit $ac_status
17101616 if $ac_init_version; then
17111617 cat <<\_ACEOF
1712 libgeotiff configure 1.4.0
1713 generated by GNU Autoconf 2.65
1714
1715 Copyright (C) 2009 Free Software Foundation, Inc.
1618 libgeotiff configure 1.4.1
1619 generated by GNU Autoconf 2.69
1620
1621 Copyright (C) 2012 Free Software Foundation, Inc.
17161622 This configure script is free software; the Free Software Foundation
17171623 gives unlimited permission to copy, distribute and modify it.
17181624 _ACEOF
17561662
17571663 ac_retval=1
17581664 fi
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17601666 as_fn_set_status $ac_retval
17611667
17621668 } # ac_fn_c_try_compile
17941700
17951701 ac_retval=1
17961702 fi
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17981704 as_fn_set_status $ac_retval
17991705
18001706 } # ac_fn_cxx_try_compile
18201726 mv -f conftest.er1 conftest.err
18211727 fi
18221728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } >/dev/null && {
1729 test $ac_status = 0; } > conftest.i && {
18241730 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
18251731 test ! -s conftest.err
18261732 }; then :
18311737
18321738 ac_retval=1
18331739 fi
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18351741 as_fn_set_status $ac_retval
18361742
18371743 } # ac_fn_cxx_try_cpp
18631769 test ! -s conftest.err
18641770 } && test -s conftest$ac_exeext && {
18651771 test "$cross_compiling" = yes ||
1866 $as_test_x conftest$ac_exeext
1772 test -x conftest$ac_exeext
18671773 }; then :
18681774 ac_retval=0
18691775 else
18771783 # interfere with the next link command; also delete a directory that is
18781784 # left behind by Apple's compiler. We do this before executing the actions.
18791785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18811787 as_fn_set_status $ac_retval
18821788
18831789 } # ac_fn_c_try_link
18911797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18921798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18931799 $as_echo_n "checking for $2... " >&6; }
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 if eval \${$3+:} false; then :
18951801 $as_echo_n "(cached) " >&6
18961802 else
18971803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091815 eval ac_res=\$$3
19101816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19111817 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19131819
19141820 } # ac_fn_c_check_header_compile
19151821
19341840 mv -f conftest.er1 conftest.err
19351841 fi
19361842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1843 test $ac_status = 0; } > conftest.i && {
19381844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19391845 test ! -s conftest.err
19401846 }; then :
19451851
19461852 ac_retval=1
19471853 fi
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19491855 as_fn_set_status $ac_retval
19501856
19511857 } # ac_fn_c_try_cpp
19871893 ac_retval=$ac_status
19881894 fi
19891895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19911897 as_fn_set_status $ac_retval
19921898
19931899 } # ac_fn_c_try_run
20001906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20011907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
20021908 $as_echo_n "checking for $2... " >&6; }
2003 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 if eval \${$3+:} false; then :
20041910 $as_echo_n "(cached) " >&6
20051911 else
20061912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551961 eval ac_res=\$$3
20561962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20571963 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20591965
20601966 } # ac_fn_c_check_func
20611967
20861992 test ! -s conftest.err
20871993 } && test -s conftest$ac_exeext && {
20881994 test "$cross_compiling" = yes ||
2089 $as_test_x conftest$ac_exeext
1995 test -x conftest$ac_exeext
20901996 }; then :
20911997 ac_retval=0
20921998 else
21002006 # interfere with the next link command; also delete a directory that is
21012007 # left behind by Apple's compiler. We do this before executing the actions.
21022008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21042010 as_fn_set_status $ac_retval
21052011
21062012 } # ac_fn_cxx_try_link
21132019 ac_fn_c_check_header_mongrel ()
21142020 {
21152021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 if eval \${$3+:} false; then :
21172023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
21182024 $as_echo_n "checking for $2... " >&6; }
2119 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 if eval \${$3+:} false; then :
21202026 $as_echo_n "(cached) " >&6
21212027 fi
21222028 eval ac_res=\$$3
21522058 else
21532059 ac_header_preproc=no
21542060 fi
2155 rm -f conftest.err conftest.$ac_ext
2061 rm -f conftest.err conftest.i conftest.$ac_ext
21562062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
21572063 $as_echo "$ac_header_preproc" >&6; }
21582064
21752081 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
21762082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
21772083 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 ( cat <<\_ASBOX
2179 ## ---------------------------------- ##
2084 ( $as_echo "## ---------------------------------- ##
21802085 ## Report this to warmerdam@pobox.com ##
2181 ## ---------------------------------- ##
2182 _ASBOX
2086 ## ---------------------------------- ##"
21832087 ) | sed "s/^/$as_me: WARNING: /" >&2
21842088 ;;
21852089 esac
21862090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
21872091 $as_echo_n "checking for $2... " >&6; }
2188 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 if eval \${$3+:} false; then :
21892093 $as_echo_n "(cached) " >&6
21902094 else
21912095 eval "$3=\$ac_header_compiler"
21942098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21952099 $as_echo "$ac_res" >&6; }
21962100 fi
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21982102
21992103 } # ac_fn_c_check_header_mongrel
22002104 cat >config.log <<_ACEOF
22012105 This file contains any messages produced by compilers while
22022106 running configure, to aid debugging if configure makes a mistake.
22032107
2204 It was created by libgeotiff $as_me 1.4.0, which was
2205 generated by GNU Autoconf 2.65. Invocation command line was
2108 It was created by libgeotiff $as_me 1.4.1, which was
2109 generated by GNU Autoconf 2.69. Invocation command line was
22062110
22072111 $ $0 $@
22082112
23122216 {
23132217 echo
23142218
2315 cat <<\_ASBOX
2316 ## ---------------- ##
2219 $as_echo "## ---------------- ##
23172220 ## Cache variables. ##
2318 ## ---------------- ##
2319 _ASBOX
2221 ## ---------------- ##"
23202222 echo
23212223 # The following way of writing the cache mishandles newlines in values,
23222224 (
23502252 )
23512253 echo
23522254
2353 cat <<\_ASBOX
2354 ## ----------------- ##
2255 $as_echo "## ----------------- ##
23552256 ## Output variables. ##
2356 ## ----------------- ##
2357 _ASBOX
2257 ## ----------------- ##"
23582258 echo
23592259 for ac_var in $ac_subst_vars
23602260 do
23672267 echo
23682268
23692269 if test -n "$ac_subst_files"; then
2370 cat <<\_ASBOX
2371 ## ------------------- ##
2270 $as_echo "## ------------------- ##
23722271 ## File substitutions. ##
2373 ## ------------------- ##
2374 _ASBOX
2272 ## ------------------- ##"
23752273 echo
23762274 for ac_var in $ac_subst_files
23772275 do
23852283 fi
23862284
23872285 if test -s confdefs.h; then
2388 cat <<\_ASBOX
2389 ## ----------- ##
2286 $as_echo "## ----------- ##
23902287 ## confdefs.h. ##
2391 ## ----------- ##
2392 _ASBOX
2288 ## ----------- ##"
23932289 echo
23942290 cat confdefs.h
23952291 echo
24442340 ac_site_file1=NONE
24452341 ac_site_file2=NONE
24462342 if test -n "$CONFIG_SITE"; then
2447 ac_site_file1=$CONFIG_SITE
2343 # We do not want a PATH search for config.site.
2344 case $CONFIG_SITE in #((
2345 -*) ac_site_file1=./$CONFIG_SITE;;
2346 */*) ac_site_file1=$CONFIG_SITE;;
2347 *) ac_site_file1=./$CONFIG_SITE;;
2348 esac
24482349 elif test "x$prefix" != xNONE; then
24492350 ac_site_file1=$prefix/share/config.site
24502351 ac_site_file2=$prefix/etc/config.site
24592360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
24602361 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
24612362 sed 's/^/| /' "$ac_site_file" >&5
2462 . "$ac_site_file"
2363 . "$ac_site_file" \
2364 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366 as_fn_error $? "failed to load site script $ac_site_file
2367 See \`config.log' for more details" "$LINENO" 5; }
24632368 fi
24642369 done
24652370
25352440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25362441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
25372442 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
25392444 fi
25402445 ## -------------------- ##
25412446 ## Main body of script. ##
25502455
25512456 ac_aux_dir=
25522457 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2553 for ac_t in install-sh install.sh shtool; do
2554 if test -f "$ac_dir/$ac_t"; then
2555 ac_aux_dir=$ac_dir
2556 ac_install_sh="$ac_aux_dir/$ac_t -c"
2557 break 2
2558 fi
2559 done
2458 if test -f "$ac_dir/install-sh"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/install-sh -c"
2461 break
2462 elif test -f "$ac_dir/install.sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install.sh -c"
2465 break
2466 elif test -f "$ac_dir/shtool"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/shtool install -c"
2469 break
2470 fi
25602471 done
25612472 if test -z "$ac_aux_dir"; then
2562 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2473 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
25632474 fi
25642475
25652476 # These three variables are undocumented and unsupported,
25732484
25742485 # Make sure we can run config.sub.
25752486 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2576 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2487 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
25772488
25782489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
25792490 $as_echo_n "checking build system type... " >&6; }
2580 if test "${ac_cv_build+set}" = set; then :
2491 if ${ac_cv_build+:} false; then :
25812492 $as_echo_n "(cached) " >&6
25822493 else
25832494 ac_build_alias=$build_alias
25842495 test "x$ac_build_alias" = x &&
25852496 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
25862497 test "x$ac_build_alias" = x &&
2587 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2498 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
25882499 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2589 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
25902501
25912502 fi
25922503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
25932504 $as_echo "$ac_cv_build" >&6; }
25942505 case $ac_cv_build in
25952506 *-*-*) ;;
2596 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2507 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
25972508 esac
25982509 build=$ac_cv_build
25992510 ac_save_IFS=$IFS; IFS='-'
26122523
26132524
26142525
2615 RELEASE_VERSION=1.4.0
2526 RELEASE_VERSION=1.4.1
26162527
26172528 ac_config_headers="$ac_config_headers geo_config.h"
26182529
26192530
26202531
2621 am__api_version='1.11'
2532 am__api_version='1.14'
26222533
26232534 # Find a good install program. We prefer a C program (faster),
26242535 # so one script is as good as another. But avoid the broken or
26372548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26382549 $as_echo_n "checking for a BSD-compatible install... " >&6; }
26392550 if test -z "$INSTALL"; then
2640 if test "${ac_cv_path_install+set}" = set; then :
2551 if ${ac_cv_path_install+:} false; then :
26412552 $as_echo_n "(cached) " >&6
26422553 else
26432554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26572568 # by default.
26582569 for ac_prog in ginstall scoinst install; do
26592570 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2571 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
26612572 if test $ac_prog = install &&
26622573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26632574 # AIX install. It has an incompatible calling convention.
27152626
27162627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
27172628 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 # Just in case
2719 sleep 1
2720 echo timestamp > conftest.file
27212629 # Reject unsafe characters in $srcdir or the absolute working directory
27222630 # name. Accept space and tab only in the latter.
27232631 am_lf='
27242632 '
27252633 case `pwd` in
27262634 *[\\\"\#\$\&\'\`$am_lf]*)
2727 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2635 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
27282636 esac
27292637 case $srcdir in
27302638 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2731 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2639 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
27322640 esac
27332641
2734 # Do `set' in a subshell so we don't clobber the current shell's
2642 # Do 'set' in a subshell so we don't clobber the current shell's
27352643 # arguments. Must try -L first in case configure is actually a
27362644 # symlink; some systems play weird games with the mod time of symlinks
27372645 # (eg FreeBSD returns the mod time of the symlink's containing
27382646 # directory).
27392647 if (
2740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741 if test "$*" = "X"; then
2742 # -L didn't work.
2743 set X `ls -t "$srcdir/configure" conftest.file`
2744 fi
2745 rm -f conftest.file
2746 if test "$*" != "X $srcdir/configure conftest.file" \
2747 && test "$*" != "X conftest.file $srcdir/configure"; then
2748
2749 # If neither matched, then we have a broken ls. This can happen
2750 # if, for instance, CONFIG_SHELL is bash and it inherits a
2751 # broken ls alias from the environment. This has actually
2752 # happened. Such a system could not be considered "sane".
2753 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2755 fi
2756
2648 am_has_slept=no
2649 for am_try in 1 2; do
2650 echo "timestamp, slept: $am_has_slept" > conftest.file
2651 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2652 if test "$*" = "X"; then
2653 # -L didn't work.
2654 set X `ls -t "$srcdir/configure" conftest.file`
2655 fi
2656 if test "$*" != "X $srcdir/configure conftest.file" \
2657 && test "$*" != "X conftest.file $srcdir/configure"; then
2658
2659 # If neither matched, then we have a broken ls. This can happen
2660 # if, for instance, CONFIG_SHELL is bash and it inherits a
2661 # broken ls alias from the environment. This has actually
2662 # happened. Such a system could not be considered "sane".
2663 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2664 alias in your environment" "$LINENO" 5
2665 fi
2666 if test "$2" = conftest.file || test $am_try -eq 2; then
2667 break
2668 fi
2669 # Just in case.
2670 sleep 1
2671 am_has_slept=yes
2672 done
27572673 test "$2" = conftest.file
27582674 )
27592675 then
27602676 # Ok.
27612677 :
27622678 else
2763 as_fn_error "newly created file is older than distributed files!
2679 as_fn_error $? "newly created file is older than distributed files!
27642680 Check your system clock" "$LINENO" 5
27652681 fi
27662682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27672683 $as_echo "yes" >&6; }
2684 # If we didn't sleep, we still need to ensure time stamps of config.status and
2685 # generated files are strictly newer.
2686 am_sleep_pid=
2687 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2688 ( sleep 1 ) &
2689 am_sleep_pid=$!
2690 fi
2691
2692 rm -f conftest.file
2693
27682694 test "$program_prefix" != NONE &&
27692695 program_transform_name="s&^&$program_prefix&;$program_transform_name"
27702696 # Use a double $ so make ignores it.
27872713 esac
27882714 fi
27892715 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2716 if eval "$MISSING --is-lightweight"; then
2717 am_missing_run="$MISSING "
27922718 else
27932719 am_missing_run=
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2795 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2721 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
27962722 fi
27972723
27982724 if test x"${install_sh}" != xset; then
28042730 esac
28052731 fi
28062732
2807 # Installed binaries are usually stripped using `strip' when the user
2808 # run `make install-strip'. However `strip' might not be the right
2733 # Installed binaries are usually stripped using 'strip' when the user
2734 # run "make install-strip". However 'strip' might not be the right
28092735 # tool to use in cross-compilation environments, therefore Automake
2810 # will honor the `STRIP' environment variable to overrule this program.
2736 # will honor the 'STRIP' environment variable to overrule this program.
28112737 if test "$cross_compiling" != no; then
28122738 if test -n "$ac_tool_prefix"; then
28132739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
28142740 set dummy ${ac_tool_prefix}strip; ac_word=$2
28152741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28162742 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_STRIP+set}" = set; then :
2743 if ${ac_cv_prog_STRIP+:} false; then :
28182744 $as_echo_n "(cached) " >&6
28192745 else
28202746 if test -n "$STRIP"; then
28262752 IFS=$as_save_IFS
28272753 test -z "$as_dir" && as_dir=.
28282754 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28302756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
28312757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28322758 break 2
28542780 set dummy strip; ac_word=$2
28552781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28562782 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2783 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
28582784 $as_echo_n "(cached) " >&6
28592785 else
28602786 if test -n "$ac_ct_STRIP"; then
28662792 IFS=$as_save_IFS
28672793 test -z "$as_dir" && as_dir=.
28682794 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28702796 ac_cv_prog_ac_ct_STRIP="strip"
28712797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28722798 break 2
29072833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
29082834 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
29092835 if test -z "$MKDIR_P"; then
2910 if test "${ac_cv_path_mkdir+set}" = set; then :
2836 if ${ac_cv_path_mkdir+:} false; then :
29112837 $as_echo_n "(cached) " >&6
29122838 else
29132839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29172843 test -z "$as_dir" && as_dir=.
29182844 for ac_prog in mkdir gmkdir; do
29192845 for ac_exec_ext in '' $ac_executable_extensions; do
2920 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2846 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
29212847 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
29222848 'mkdir (GNU coreutils) '* | \
29232849 'mkdir (coreutils) '* | \
29462872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
29472873 $as_echo "$MKDIR_P" >&6; }
29482874
2949 mkdir_p="$MKDIR_P"
2950 case $mkdir_p in
2951 [\\/$]* | ?:[\\/]*) ;;
2952 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2953 esac
2954
29552875 for ac_prog in gawk mawk nawk awk
29562876 do
29572877 # Extract the first word of "$ac_prog", so it can be a program name with args.
29582878 set dummy $ac_prog; ac_word=$2
29592879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29602880 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_AWK+set}" = set; then :
2881 if ${ac_cv_prog_AWK+:} false; then :
29622882 $as_echo_n "(cached) " >&6
29632883 else
29642884 if test -n "$AWK"; then
29702890 IFS=$as_save_IFS
29712891 test -z "$as_dir" && as_dir=.
29722892 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29742894 ac_cv_prog_AWK="$ac_prog"
29752895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29762896 break 2
29982918 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29992919 set x ${MAKE-make}
30002920 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3001 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2921 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
30022922 $as_echo_n "(cached) " >&6
30032923 else
30042924 cat >conftest.make <<\_ACEOF
30062926 all:
30072927 @echo '@@@%%%=$(MAKE)=@@@%%%'
30082928 _ACEOF
3009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2929 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30102930 case `${MAKE-make} -f conftest.make 2>/dev/null` in
30112931 *@@@%%%=?*=@@@%%%*)
30122932 eval ac_cv_prog_make_${ac_make}_set=yes;;
30342954 fi
30352955 rmdir .tst 2>/dev/null
30362956
2957 # Check whether --enable-silent-rules was given.
2958 if test "${enable_silent_rules+set}" = set; then :
2959 enableval=$enable_silent_rules;
2960 fi
2961
2962 case $enable_silent_rules in # (((
2963 yes) AM_DEFAULT_VERBOSITY=0;;
2964 no) AM_DEFAULT_VERBOSITY=1;;
2965 *) AM_DEFAULT_VERBOSITY=1;;
2966 esac
2967 am_make=${MAKE-make}
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2969 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2970 if ${am_cv_make_support_nested_variables+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if $as_echo 'TRUE=$(BAR$(V))
2974 BAR0=false
2975 BAR1=true
2976 V=1
2977 am__doit:
2978 @$(TRUE)
2979 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2980 am_cv_make_support_nested_variables=yes
2981 else
2982 am_cv_make_support_nested_variables=no
2983 fi
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2986 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2987 if test $am_cv_make_support_nested_variables = yes; then
2988 AM_V='$(V)'
2989 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2990 else
2991 AM_V=$AM_DEFAULT_VERBOSITY
2992 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2993 fi
2994 AM_BACKSLASH='\'
2995
30372996 if test "`cd $srcdir && pwd`" != "`pwd`"; then
30382997 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
30392998 # is not polluted with repeated "-I."
30402999 am__isrc=' -I$(srcdir)'
30413000 # test to see if srcdir already configured
30423001 if test -f $srcdir/config.status; then
3043 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3002 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
30443003 fi
30453004 fi
30463005
30563015
30573016 # Define the identity of the package.
30583017 PACKAGE='libgeotiff'
3059 VERSION='1.4.0'
3018 VERSION='1.4.1'
30603019
30613020
30623021 cat >>confdefs.h <<_ACEOF
30843043
30853044 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
30863045
3046 # For better backward compatibility. To be removed once Automake 1.9.x
3047 # dies out for good. For more background, see:
3048 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3049 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3050 mkdir_p='$(MKDIR_P)'
3051
30873052 # We need awk for the "check" target. The system "awk" is bad on
30883053 # some platforms.
3089 # Always define AMTAR for backward compatibility.
3090
3091 AMTAR=${AMTAR-"${am_missing_run}tar"}
3092
3093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3094
3095
3096
3097
3098
3054 # Always define AMTAR for backward compatibility. Yes, it's still used
3055 # in the wild :-( We should find a proper way to deprecate it ...
3056 AMTAR='$${TAR-tar}'
3057
3058
3059 # We'll loop over all known methods to create a tar archive until one works.
3060 _am_tools='gnutar pax cpio none'
3061
3062 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3063
3064
3065
3066
3067
3068
3069 # POSIX will say in a future version that running "rm -f" with no argument
3070 # is OK; and we want to be able to make that assumption in our Makefile
3071 # recipes. So use an aggressive probe to check that the usage we want is
3072 # actually supported "in the wild" to an acceptable degree.
3073 # See automake bug#10828.
3074 # To make any issue more visible, cause the running configure to be aborted
3075 # by default if the 'rm' program in use doesn't match our expectations; the
3076 # user can still override this though.
3077 if rm -f && rm -fr && rm -rf; then : OK; else
3078 cat >&2 <<'END'
3079 Oops!
3080
3081 Your 'rm' program seems unable to run without file operands specified
3082 on the command line, even when the '-f' option is present. This is contrary
3083 to the behaviour of most rm programs out there, and not conforming with
3084 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3085
3086 Please tell bug-automake@gnu.org about your system, including the value
3087 of your $PATH and any error possibly output before this message. This
3088 can help us improve future automake versions.
3089
3090 END
3091 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3092 echo 'Configuration will proceed anyway, since you have set the' >&2
3093 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3094 echo >&2
3095 else
3096 cat >&2 <<'END'
3097 Aborting the configuration process, to ensure you take notice of the issue.
3098
3099 You can download and install GNU coreutils to get an 'rm' implementation
3100 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3101
3102 If you want to complete the configuration process using your problematic
3103 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3104 to "yes", and re-run configure.
3105
3106 END
3107 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3108 fi
3109 fi
30993110
31003111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31013112 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31293140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
31303141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31313142 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_CC+set}" = set; then :
3143 if ${ac_cv_prog_CC+:} false; then :
31333144 $as_echo_n "(cached) " >&6
31343145 else
31353146 if test -n "$CC"; then
31413152 IFS=$as_save_IFS
31423153 test -z "$as_dir" && as_dir=.
31433154 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31453156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
31463157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31473158 break 2
31693180 set dummy gcc; ac_word=$2
31703181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31713182 $as_echo_n "checking for $ac_word... " >&6; }
3172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3183 if ${ac_cv_prog_ac_ct_CC+:} false; then :
31733184 $as_echo_n "(cached) " >&6
31743185 else
31753186 if test -n "$ac_ct_CC"; then
31813192 IFS=$as_save_IFS
31823193 test -z "$as_dir" && as_dir=.
31833194 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31853196 ac_cv_prog_ac_ct_CC="gcc"
31863197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31873198 break 2
32223233 set dummy ${ac_tool_prefix}cc; ac_word=$2
32233234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32243235 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then :
3236 if ${ac_cv_prog_CC+:} false; then :
32263237 $as_echo_n "(cached) " >&6
32273238 else
32283239 if test -n "$CC"; then
32343245 IFS=$as_save_IFS
32353246 test -z "$as_dir" && as_dir=.
32363247 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32383249 ac_cv_prog_CC="${ac_tool_prefix}cc"
32393250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32403251 break 2
32623273 set dummy cc; ac_word=$2
32633274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32643275 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then :
3276 if ${ac_cv_prog_CC+:} false; then :
32663277 $as_echo_n "(cached) " >&6
32673278 else
32683279 if test -n "$CC"; then
32753286 IFS=$as_save_IFS
32763287 test -z "$as_dir" && as_dir=.
32773288 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32793290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
32803291 ac_prog_rejected=yes
32813292 continue
33213332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33223333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33233334 $as_echo_n "checking for $ac_word... " >&6; }
3324 if test "${ac_cv_prog_CC+set}" = set; then :
3335 if ${ac_cv_prog_CC+:} false; then :
33253336 $as_echo_n "(cached) " >&6
33263337 else
33273338 if test -n "$CC"; then
33333344 IFS=$as_save_IFS
33343345 test -z "$as_dir" && as_dir=.
33353346 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33373348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
33383349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33393350 break 2
33653376 set dummy $ac_prog; ac_word=$2
33663377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33673378 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
33693380 $as_echo_n "(cached) " >&6
33703381 else
33713382 if test -n "$ac_ct_CC"; then
33773388 IFS=$as_save_IFS
33783389 test -z "$as_dir" && as_dir=.
33793390 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33813392 ac_cv_prog_ac_ct_CC="$ac_prog"
33823393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33833394 break 2
34193430
34203431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34213432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error "no acceptable C compiler found in \$PATH
3423 See \`config.log' for more details." "$LINENO" 5; }
3433 as_fn_error $? "no acceptable C compiler found in \$PATH
3434 See \`config.log' for more details" "$LINENO" 5; }
34243435
34253436 # Provide some information about the compiler.
34263437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
35343545
35353546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35363547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { as_fn_set_status 77
3538 as_fn_error "C compiler cannot create executables
3539 See \`config.log' for more details." "$LINENO" 5; }; }
3548 as_fn_error 77 "C compiler cannot create executables
3549 See \`config.log' for more details" "$LINENO" 5; }
35403550 else
35413551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35423552 $as_echo "yes" >&6; }
35783588 else
35793589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35803590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error "cannot compute suffix of executables: cannot compile and link
3582 See \`config.log' for more details." "$LINENO" 5; }
3591 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3592 See \`config.log' for more details" "$LINENO" 5; }
35833593 fi
35843594 rm -f conftest conftest$ac_cv_exeext
35853595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
36363646 else
36373647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36383648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error "cannot run C compiled programs.
3649 as_fn_error $? "cannot run C compiled programs.
36403650 If you meant to cross compile, use \`--host'.
3641 See \`config.log' for more details." "$LINENO" 5; }
3651 See \`config.log' for more details" "$LINENO" 5; }
36423652 fi
36433653 fi
36443654 fi
36493659 ac_clean_files=$ac_clean_files_save
36503660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
36513661 $as_echo_n "checking for suffix of object files... " >&6; }
3652 if test "${ac_cv_objext+set}" = set; then :
3662 if ${ac_cv_objext+:} false; then :
36533663 $as_echo_n "(cached) " >&6
36543664 else
36553665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36893699
36903700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36913701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error "cannot compute suffix of object files: cannot compile
3693 See \`config.log' for more details." "$LINENO" 5; }
3702 as_fn_error $? "cannot compute suffix of object files: cannot compile
3703 See \`config.log' for more details" "$LINENO" 5; }
36943704 fi
36953705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
36963706 fi
37003710 ac_objext=$OBJEXT
37013711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
37023712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3703 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3713 if ${ac_cv_c_compiler_gnu+:} false; then :
37043714 $as_echo_n "(cached) " >&6
37053715 else
37063716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37373747 ac_save_CFLAGS=$CFLAGS
37383748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
37393749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3740 if test "${ac_cv_prog_cc_g+set}" = set; then :
3750 if ${ac_cv_prog_cc_g+:} false; then :
37413751 $as_echo_n "(cached) " >&6
37423752 else
37433753 ac_save_c_werror_flag=$ac_c_werror_flag
38153825 fi
38163826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
38173827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3818 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3828 if ${ac_cv_prog_cc_c89+:} false; then :
38193829 $as_echo_n "(cached) " >&6
38203830 else
38213831 ac_cv_prog_cc_c89=no
38243834 /* end confdefs.h. */
38253835 #include <stdarg.h>
38263836 #include <stdio.h>
3827 #include <sys/types.h>
3828 #include <sys/stat.h>
3837 struct stat;
38293838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
38303839 struct buf { int x; };
38313840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
39093918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39103919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39113920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3929 if ${am_cv_prog_cc_c_o+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main ()
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 # Make sure it works both with $CC and with simple cc.
3944 # Following AC_PROG_CC_C_O, we do the test twice because some
3945 # compilers refuse to overwrite an existing .o file with -o,
3946 # though they will create one.
3947 am_cv_prog_cc_c_o=yes
3948 for am_i in 1 2; do
3949 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3950 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } \
3954 && test -f conftest2.$ac_objext; then
3955 : OK
3956 else
3957 am_cv_prog_cc_c_o=no
3958 break
3959 fi
3960 done
3961 rm -f core conftest*
3962 unset am_i
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3966 if test "$am_cv_prog_cc_c_o" != yes; then
3967 # Losing compiler, so override with the script.
3968 # FIXME: It is wrong to rewrite CC.
3969 # But if we don't then we get into trouble of one sort or another.
3970 # A longer-term fix would be to have automake use am__CC in this case,
3971 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3972 CC="$am_aux_dir/compile $CC"
3973 fi
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
39123980 DEPDIR="${am__leading_dot}deps"
39133981
39143982 ac_config_commands="$ac_config_commands depfiles"
39283996 _am_result=none
39293997 # First try GNU make style include.
39303998 echo "include confinc" > confmf
3931 # Ignore all kinds of additional output from `make'.
3999 # Ignore all kinds of additional output from 'make'.
39324000 case `$am_make -s -f confmf 2> /dev/null` in #(
39334001 *the\ am__doit\ target*)
39344002 am__include=include
39614029 if test "x$enable_dependency_tracking" != xno; then
39624030 am_depcomp="$ac_aux_dir/depcomp"
39634031 AMDEPBACKSLASH='\'
4032 am__nodep='_no'
39644033 fi
39654034 if test "x$enable_dependency_tracking" != xno; then
39664035 AMDEP_TRUE=
39764045
39774046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
39784047 $as_echo_n "checking dependency style of $depcc... " >&6; }
3979 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
39804049 $as_echo_n "(cached) " >&6
39814050 else
39824051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
39834052 # We make a subdir and do the tests there. Otherwise we can end up
39844053 # making bogus files that we don't know about and never remove. For
39854054 # instance it was reported that on HP-UX the gcc test will end up
3986 # making a dummy file named `D' -- because `-MD' means `put the output
3987 # in D'.
4055 # making a dummy file named 'D' -- because '-MD' means "put the output
4056 # in D".
4057 rm -rf conftest.dir
39884058 mkdir conftest.dir
39894059 # Copy depcomp to subdir because otherwise we won't find it if we're
39904060 # using a relative directory.
40184088 : > sub/conftest.c
40194089 for i in 1 2 3 4 5 6; do
40204090 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4021 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4022 # Solaris 8's {/usr,}/bin/sh.
4023 touch sub/conftst$i.h
4091 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4092 # Solaris 10 /bin/sh.
4093 echo '/* dummy */' > sub/conftst$i.h
40244094 done
40254095 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
40264096
4027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4097 # We check with '-c' and '-o' for the sake of the "dashmstdout"
40284098 # mode. It turns out that the SunPro C++ compiler does not properly
4029 # handle `-M -o', and we need to detect this. Also, some Intel
4030 # versions had trouble with output in subdirs
4099 # handle '-M -o', and we need to detect this. Also, some Intel
4100 # versions had trouble with output in subdirs.
40314101 am__obj=sub/conftest.${OBJEXT-o}
40324102 am__minus_obj="-o $am__obj"
40334103 case $depmode in
40364106 test "$am__universal" = false || continue
40374107 ;;
40384108 nosideeffect)
4039 # after this tag, mechanisms are not by side-effect, so they'll
4040 # only be used when explicitly requested
4109 # After this tag, mechanisms are not by side-effect, so they'll
4110 # only be used when explicitly requested.
40414111 if test "x$enable_dependency_tracking" = xyes; then
40424112 continue
40434113 else
40444114 break
40454115 fi
40464116 ;;
4047 msvisualcpp | msvcmsys)
4048 # This compiler won't grok `-c -o', but also, the minuso test has
4117 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4118 # This compiler won't grok '-c -o', but also, the minuso test has
40494119 # not run yet. These depmodes are late enough in the game, and
40504120 # so weak that their functioning should not be impacted.
40514121 am__obj=conftest.${OBJEXT-o}
41154185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
41164186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41174187 $as_echo_n "checking for $ac_word... " >&6; }
4118 if test "${ac_cv_prog_CXX+set}" = set; then :
4188 if ${ac_cv_prog_CXX+:} false; then :
41194189 $as_echo_n "(cached) " >&6
41204190 else
41214191 if test -n "$CXX"; then
41274197 IFS=$as_save_IFS
41284198 test -z "$as_dir" && as_dir=.
41294199 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41314201 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
41324202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41334203 break 2
41594229 set dummy $ac_prog; ac_word=$2
41604230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41614231 $as_echo_n "checking for $ac_word... " >&6; }
4162 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4232 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
41634233 $as_echo_n "(cached) " >&6
41644234 else
41654235 if test -n "$ac_ct_CXX"; then
41714241 IFS=$as_save_IFS
41724242 test -z "$as_dir" && as_dir=.
41734243 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41754245 ac_cv_prog_ac_ct_CXX="$ac_prog"
41764246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41774247 break 2
42374307
42384308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
42394309 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4310 if ${ac_cv_cxx_compiler_gnu+:} false; then :
42414311 $as_echo_n "(cached) " >&6
42424312 else
42434313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42744344 ac_save_CXXFLAGS=$CXXFLAGS
42754345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
42764346 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4277 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4347 if ${ac_cv_prog_cxx_g+:} false; then :
42784348 $as_echo_n "(cached) " >&6
42794349 else
42804350 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
43604430
43614431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
43624432 $as_echo_n "checking dependency style of $depcc... " >&6; }
4363 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4433 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
43644434 $as_echo_n "(cached) " >&6
43654435 else
43664436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
43674437 # We make a subdir and do the tests there. Otherwise we can end up
43684438 # making bogus files that we don't know about and never remove. For
43694439 # instance it was reported that on HP-UX the gcc test will end up
4370 # making a dummy file named `D' -- because `-MD' means `put the output
4371 # in D'.
4440 # making a dummy file named 'D' -- because '-MD' means "put the output
4441 # in D".
4442 rm -rf conftest.dir
43724443 mkdir conftest.dir
43734444 # Copy depcomp to subdir because otherwise we won't find it if we're
43744445 # using a relative directory.
44024473 : > sub/conftest.c
44034474 for i in 1 2 3 4 5 6; do
44044475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4405 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4406 # Solaris 8's {/usr,}/bin/sh.
4407 touch sub/conftst$i.h
4476 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4477 # Solaris 10 /bin/sh.
4478 echo '/* dummy */' > sub/conftst$i.h
44084479 done
44094480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
44104481
4411 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4482 # We check with '-c' and '-o' for the sake of the "dashmstdout"
44124483 # mode. It turns out that the SunPro C++ compiler does not properly
4413 # handle `-M -o', and we need to detect this. Also, some Intel
4414 # versions had trouble with output in subdirs
4484 # handle '-M -o', and we need to detect this. Also, some Intel
4485 # versions had trouble with output in subdirs.
44154486 am__obj=sub/conftest.${OBJEXT-o}
44164487 am__minus_obj="-o $am__obj"
44174488 case $depmode in
44204491 test "$am__universal" = false || continue
44214492 ;;
44224493 nosideeffect)
4423 # after this tag, mechanisms are not by side-effect, so they'll
4424 # only be used when explicitly requested
4494 # After this tag, mechanisms are not by side-effect, so they'll
4495 # only be used when explicitly requested.
44254496 if test "x$enable_dependency_tracking" = xyes; then
44264497 continue
44274498 else
44284499 break
44294500 fi
44304501 ;;
4431 msvisualcpp | msvcmsys)
4432 # This compiler won't grok `-c -o', but also, the minuso test has
4502 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4503 # This compiler won't grok '-c -o', but also, the minuso test has
44334504 # not run yet. These depmodes are late enough in the game, and
44344505 # so weak that their functioning should not be impacted.
44354506 am__obj=conftest.${OBJEXT-o}
44914562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
44924563 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
44934564 if test -z "$CXXCPP"; then
4494 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4565 if ${ac_cv_prog_CXXCPP+:} false; then :
44954566 $as_echo_n "(cached) " >&6
44964567 else
44974568 # Double quotes because CXXCPP needs to be expanded
45214592 # Broken: fails on valid input.
45224593 continue
45234594 fi
4524 rm -f conftest.err conftest.$ac_ext
4595 rm -f conftest.err conftest.i conftest.$ac_ext
45254596
45264597 # OK, works on sane cases. Now check whether nonexistent headers
45274598 # can be detected and how.
45374608 ac_preproc_ok=:
45384609 break
45394610 fi
4540 rm -f conftest.err conftest.$ac_ext
4611 rm -f conftest.err conftest.i conftest.$ac_ext
45414612
45424613 done
45434614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544 rm -f conftest.err conftest.$ac_ext
4615 rm -f conftest.i conftest.err conftest.$ac_ext
45454616 if $ac_preproc_ok; then :
45464617 break
45474618 fi
45804651 # Broken: fails on valid input.
45814652 continue
45824653 fi
4583 rm -f conftest.err conftest.$ac_ext
4654 rm -f conftest.err conftest.i conftest.$ac_ext
45844655
45854656 # OK, works on sane cases. Now check whether nonexistent headers
45864657 # can be detected and how.
45964667 ac_preproc_ok=:
45974668 break
45984669 fi
4599 rm -f conftest.err conftest.$ac_ext
4670 rm -f conftest.err conftest.i conftest.$ac_ext
46004671
46014672 done
46024673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.err conftest.$ac_ext
4674 rm -f conftest.i conftest.err conftest.$ac_ext
46044675 if $ac_preproc_ok; then :
46054676
46064677 else
46074678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46084679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4610 See \`config.log' for more details." "$LINENO" 5; }
4680 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4681 See \`config.log' for more details" "$LINENO" 5; }
46114682 fi
46124683
46134684 ac_ext=c
46324703 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
46334704 set x ${MAKE-make}
46344705 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4635 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4706 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
46364707 $as_echo_n "(cached) " >&6
46374708 else
46384709 cat >conftest.make <<\_ACEOF
46404711 all:
46414712 @echo '@@@%%%=$(MAKE)=@@@%%%'
46424713 _ACEOF
4643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4714 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
46444715 case `${MAKE-make} -f conftest.make 2>/dev/null` in
46454716 *@@@%%%=?*=@@@%%%*)
46464717 eval ac_cv_prog_make_${ac_make}_set=yes;;
46674738
46684739
46694740
4670 macro_version='2.2.6b'
4671 macro_revision='1.3017'
4741 macro_version='2.4.2'
4742 macro_revision='1.3337'
46724743
46734744
46744745
46864757
46874758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
46884759 $as_echo_n "checking host system type... " >&6; }
4689 if test "${ac_cv_host+set}" = set; then :
4760 if ${ac_cv_host+:} false; then :
46904761 $as_echo_n "(cached) " >&6
46914762 else
46924763 if test "x$host_alias" = x; then
46934764 ac_cv_host=$ac_cv_build
46944765 else
46954766 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4696 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
46974768 fi
46984769
46994770 fi
47014772 $as_echo "$ac_cv_host" >&6; }
47024773 case $ac_cv_host in
47034774 *-*-*) ;;
4704 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4775 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
47054776 esac
47064777 host=$ac_cv_host
47074778 ac_save_IFS=$IFS; IFS='-'
47174788 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47184789
47194790
4791 # Backslashify metacharacters that are still active within
4792 # double-quoted strings.
4793 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4794
4795 # Same as above, but do not quote variable references.
4796 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4797
4798 # Sed substitution to delay expansion of an escaped shell variable in a
4799 # double_quote_subst'ed string.
4800 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4801
4802 # Sed substitution to delay expansion of an escaped single quote.
4803 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4804
4805 # Sed substitution to avoid accidental globbing in evaled expressions
4806 no_glob_subst='s/\*/\\\*/g'
4807
4808 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4810 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4813 $as_echo_n "checking how to print strings... " >&6; }
4814 # Test print first, because it will be a builtin if present.
4815 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4816 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4817 ECHO='print -r --'
4818 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4819 ECHO='printf %s\n'
4820 else
4821 # Use this function as a fallback that always works.
4822 func_fallback_echo ()
4823 {
4824 eval 'cat <<_LTECHO_EOF
4825 $1
4826 _LTECHO_EOF'
4827 }
4828 ECHO='func_fallback_echo'
4829 fi
4830
4831 # func_echo_all arg...
4832 # Invoke $ECHO with all args, space-separated.
4833 func_echo_all ()
4834 {
4835 $ECHO ""
4836 }
4837
4838 case "$ECHO" in
4839 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4840 $as_echo "printf" >&6; } ;;
4841 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4842 $as_echo "print -r" >&6; } ;;
4843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4844 $as_echo "cat" >&6; } ;;
4845 esac
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
47204860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47214861 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4722 if test "${ac_cv_path_SED+set}" = set; then :
4862 if ${ac_cv_path_SED+:} false; then :
47234863 $as_echo_n "(cached) " >&6
47244864 else
47254865 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
47394879 for ac_prog in sed gsed; do
47404880 for ac_exec_ext in '' $ac_executable_extensions; do
47414881 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4742 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4882 as_fn_executable_p "$ac_path_SED" || continue
47434883 # Check for GNU ac_path_SED and select it if it is found.
47444884 # Check for GNU $ac_path_SED
47454885 case `"$ac_path_SED" --version 2>&1` in
47744914 done
47754915 IFS=$as_save_IFS
47764916 if test -z "$ac_cv_path_SED"; then
4777 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4917 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47784918 fi
47794919 else
47804920 ac_cv_path_SED=$SED
48014941
48024942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
48034943 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4804 if test "${ac_cv_path_GREP+set}" = set; then :
4944 if ${ac_cv_path_GREP+:} false; then :
48054945 $as_echo_n "(cached) " >&6
48064946 else
48074947 if test -z "$GREP"; then
48154955 for ac_prog in grep ggrep; do
48164956 for ac_exec_ext in '' $ac_executable_extensions; do
48174957 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4818 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4958 as_fn_executable_p "$ac_path_GREP" || continue
48194959 # Check for GNU ac_path_GREP and select it if it is found.
48204960 # Check for GNU $ac_path_GREP
48214961 case `"$ac_path_GREP" --version 2>&1` in
48504990 done
48514991 IFS=$as_save_IFS
48524992 if test -z "$ac_cv_path_GREP"; then
4853 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48544994 fi
48554995 else
48564996 ac_cv_path_GREP=$GREP
48645004
48655005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
48665006 $as_echo_n "checking for egrep... " >&6; }
4867 if test "${ac_cv_path_EGREP+set}" = set; then :
5007 if ${ac_cv_path_EGREP+:} false; then :
48685008 $as_echo_n "(cached) " >&6
48695009 else
48705010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
48815021 for ac_prog in egrep; do
48825022 for ac_exec_ext in '' $ac_executable_extensions; do
48835023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4884 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5024 as_fn_executable_p "$ac_path_EGREP" || continue
48855025 # Check for GNU ac_path_EGREP and select it if it is found.
48865026 # Check for GNU $ac_path_EGREP
48875027 case `"$ac_path_EGREP" --version 2>&1` in
49165056 done
49175057 IFS=$as_save_IFS
49185058 if test -z "$ac_cv_path_EGREP"; then
4919 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5059 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
49205060 fi
49215061 else
49225062 ac_cv_path_EGREP=$EGREP
49315071
49325072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
49335073 $as_echo_n "checking for fgrep... " >&6; }
4934 if test "${ac_cv_path_FGREP+set}" = set; then :
5074 if ${ac_cv_path_FGREP+:} false; then :
49355075 $as_echo_n "(cached) " >&6
49365076 else
49375077 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
49485088 for ac_prog in fgrep; do
49495089 for ac_exec_ext in '' $ac_executable_extensions; do
49505090 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4951 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5091 as_fn_executable_p "$ac_path_FGREP" || continue
49525092 # Check for GNU ac_path_FGREP and select it if it is found.
49535093 # Check for GNU $ac_path_FGREP
49545094 case `"$ac_path_FGREP" --version 2>&1` in
49835123 done
49845124 IFS=$as_save_IFS
49855125 if test -z "$ac_cv_path_FGREP"; then
4986 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5126 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
49875127 fi
49885128 else
49895129 ac_cv_path_FGREP=$FGREP
50625202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
50635203 $as_echo_n "checking for non-GNU ld... " >&6; }
50645204 fi
5065 if test "${lt_cv_path_LD+set}" = set; then :
5205 if ${lt_cv_path_LD+:} false; then :
50665206 $as_echo_n "(cached) " >&6
50675207 else
50685208 if test -z "$LD"; then
50995239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51005240 $as_echo "no" >&6; }
51015241 fi
5102 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5242 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
51035243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
51045244 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5105 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5245 if ${lt_cv_prog_gnu_ld+:} false; then :
51065246 $as_echo_n "(cached) " >&6
51075247 else
51085248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
51295269
51305270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
51315271 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5132 if test "${lt_cv_path_NM+set}" = set; then :
5272 if ${lt_cv_path_NM+:} false; then :
51335273 $as_echo_n "(cached) " >&6
51345274 else
51355275 if test -n "$NM"; then
51825322 NM="$lt_cv_path_NM"
51835323 else
51845324 # Didn't find any BSD compatible name lister, look for dumpbin.
5185 if test -n "$ac_tool_prefix"; then
5186 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5325 if test -n "$DUMPBIN"; then :
5326 # Let the user override the test.
5327 else
5328 if test -n "$ac_tool_prefix"; then
5329 for ac_prog in dumpbin "link -dump"
51875330 do
51885331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
51895332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
51905333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51915334 $as_echo_n "checking for $ac_word... " >&6; }
5192 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5335 if ${ac_cv_prog_DUMPBIN+:} false; then :
51935336 $as_echo_n "(cached) " >&6
51945337 else
51955338 if test -n "$DUMPBIN"; then
52015344 IFS=$as_save_IFS
52025345 test -z "$as_dir" && as_dir=.
52035346 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52055348 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
52065349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52075350 break 2
52275370 fi
52285371 if test -z "$DUMPBIN"; then
52295372 ac_ct_DUMPBIN=$DUMPBIN
5230 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5373 for ac_prog in dumpbin "link -dump"
52315374 do
52325375 # Extract the first word of "$ac_prog", so it can be a program name with args.
52335376 set dummy $ac_prog; ac_word=$2
52345377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52355378 $as_echo_n "checking for $ac_word... " >&6; }
5236 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5379 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
52375380 $as_echo_n "(cached) " >&6
52385381 else
52395382 if test -n "$ac_ct_DUMPBIN"; then
52455388 IFS=$as_save_IFS
52465389 test -z "$as_dir" && as_dir=.
52475390 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52495392 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
52505393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52515394 break 2
52825425 fi
52835426 fi
52845427
5428 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5429 *COFF*)
5430 DUMPBIN="$DUMPBIN -symbols"
5431 ;;
5432 *)
5433 DUMPBIN=:
5434 ;;
5435 esac
5436 fi
52855437
52865438 if test "$DUMPBIN" != ":"; then
52875439 NM="$DUMPBIN"
52965448
52975449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
52985450 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5299 if test "${lt_cv_nm_interface+set}" = set; then :
5451 if ${lt_cv_nm_interface+:} false; then :
53005452 $as_echo_n "(cached) " >&6
53015453 else
53025454 lt_cv_nm_interface="BSD nm"
53035455 echo "int some_variable = 0;" > conftest.$ac_ext
5304 (eval echo "\"\$as_me:5305: $ac_compile\"" >&5)
5456 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
53055457 (eval "$ac_compile" 2>conftest.err)
53065458 cat conftest.err >&5
5307 (eval echo "\"\$as_me:5308: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5459 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
53085460 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
53095461 cat conftest.err >&5
5310 (eval echo "\"\$as_me:5311: output\"" >&5)
5462 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
53115463 cat conftest.out >&5
53125464 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
53135465 lt_cv_nm_interface="MS dumpbin"
53205472 # find the maximum length of command line arguments
53215473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
53225474 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5323 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5475 if ${lt_cv_sys_max_cmd_len+:} false; then :
53245476 $as_echo_n "(cached) " >&6
53255477 else
53265478 i=0
53505502 # the test eventually succeeds (with a max line length of 256k).
53515503 # Instead, let's just punt: use the minimum linelength reported by
53525504 # all of the supported platforms: 8192 (on NT/2K/XP).
5505 lt_cv_sys_max_cmd_len=8192;
5506 ;;
5507
5508 mint*)
5509 # On MiNT this can take a long time and run out of memory.
53535510 lt_cv_sys_max_cmd_len=8192;
53545511 ;;
53555512
53765533 interix*)
53775534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
53785535 lt_cv_sys_max_cmd_len=196608
5536 ;;
5537
5538 os2*)
5539 # The test takes a long time on OS/2.
5540 lt_cv_sys_max_cmd_len=8192
53795541 ;;
53805542
53815543 osf*)
54045566 ;;
54055567 *)
54065568 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5407 if test -n "$lt_cv_sys_max_cmd_len"; then
5569 if test -n "$lt_cv_sys_max_cmd_len" && \
5570 test undefined != "$lt_cv_sys_max_cmd_len"; then
54085571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
54095572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
54105573 else
54175580 # If test is not a shell built-in, we'll probably end up computing a
54185581 # maximum length that is only half of the actual maximum length, but
54195582 # we can't tell.
5420 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5421 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5583 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5584 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
54225585 test $i != 17 # 1/2 MB should be enough
54235586 do
54245587 i=`expr $i + 1`
54605623 # Try some XSI features
54615624 xsi_shell=no
54625625 ( _lt_dummy="a/b/c"
5463 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5464 = c,a/b,, \
5626 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5627 = c,a/b,b/c, \
54655628 && eval 'test $(( 1 + 1 )) -eq 2 \
54665629 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
54675630 && xsi_shell=yes
55105673
55115674
55125675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5677 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5678 if ${lt_cv_to_host_file_cmd+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 case $host in
5682 *-*-mingw* )
5683 case $build in
5684 *-*-mingw* ) # actually msys
5685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5686 ;;
5687 *-*-cygwin* )
5688 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5689 ;;
5690 * ) # otherwise, assume *nix
5691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5692 ;;
5693 esac
5694 ;;
5695 *-*-cygwin* )
5696 case $build in
5697 *-*-mingw* ) # actually msys
5698 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5699 ;;
5700 *-*-cygwin* )
5701 lt_cv_to_host_file_cmd=func_convert_file_noop
5702 ;;
5703 * ) # otherwise, assume *nix
5704 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5705 ;;
5706 esac
5707 ;;
5708 * ) # unhandled hosts (and "normal" native builds)
5709 lt_cv_to_host_file_cmd=func_convert_file_noop
5710 ;;
5711 esac
5712
5713 fi
5714
5715 to_host_file_cmd=$lt_cv_to_host_file_cmd
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5717 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5724 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5725 if ${lt_cv_to_tool_file_cmd+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 #assume ordinary cross tools, or native build.
5729 lt_cv_to_tool_file_cmd=func_convert_file_noop
5730 case $host in
5731 *-*-mingw* )
5732 case $build in
5733 *-*-mingw* ) # actually msys
5734 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5735 ;;
5736 esac
5737 ;;
5738 esac
5739
5740 fi
5741
5742 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5744 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5745
5746
5747
5748
5749
55135750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
55145751 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5515 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5752 if ${lt_cv_ld_reload_flag+:} false; then :
55165753 $as_echo_n "(cached) " >&6
55175754 else
55185755 lt_cv_ld_reload_flag='-r'
55265763 esac
55275764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
55285765 case $host_os in
5766 cygwin* | mingw* | pw32* | cegcc*)
5767 if test "$GCC" != yes; then
5768 reload_cmds=false
5769 fi
5770 ;;
55295771 darwin*)
55305772 if test "$GCC" = yes; then
55315773 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
55485790 set dummy ${ac_tool_prefix}objdump; ac_word=$2
55495791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55505792 $as_echo_n "checking for $ac_word... " >&6; }
5551 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5793 if ${ac_cv_prog_OBJDUMP+:} false; then :
55525794 $as_echo_n "(cached) " >&6
55535795 else
55545796 if test -n "$OBJDUMP"; then
55605802 IFS=$as_save_IFS
55615803 test -z "$as_dir" && as_dir=.
55625804 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55645806 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
55655807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55665808 break 2
55885830 set dummy objdump; ac_word=$2
55895831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55905832 $as_echo_n "checking for $ac_word... " >&6; }
5591 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5833 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
55925834 $as_echo_n "(cached) " >&6
55935835 else
55945836 if test -n "$ac_ct_OBJDUMP"; then
56005842 IFS=$as_save_IFS
56015843 test -z "$as_dir" && as_dir=.
56025844 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56045846 ac_cv_prog_ac_ct_OBJDUMP="objdump"
56055847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56065848 break 2
56475889
56485890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
56495891 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5650 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5892 if ${lt_cv_deplibs_check_method+:} false; then :
56515893 $as_echo_n "(cached) " >&6
56525894 else
56535895 lt_cv_file_magic_cmd='$MAGIC_CMD'
56895931 # Base MSYS/MinGW do not provide the 'file' command needed by
56905932 # func_win32_libid shell function, so use a weaker test based on 'objdump',
56915933 # unless we find 'file', for example because we are cross-compiling.
5692 if ( file / ) >/dev/null 2>&1; then
5934 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5935 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
56935936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
56945937 lt_cv_file_magic_cmd='func_win32_libid'
56955938 else
5696 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5939 # Keep this pattern in sync with the one in func_win32_libid.
5940 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
56975941 lt_cv_file_magic_cmd='$OBJDUMP -f'
56985942 fi
56995943 ;;
57005944
5701 cegcc)
5945 cegcc*)
57025946 # use the weaker test based on 'objdump'. See mingw*.
57035947 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
57045948 lt_cv_file_magic_cmd='$OBJDUMP -f'
57245968 fi
57255969 ;;
57265970
5727 gnu*)
5971 haiku*)
57285972 lt_cv_deplibs_check_method=pass_all
57295973 ;;
57305974
57365980 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
57375981 ;;
57385982 hppa*64*)
5739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
57405984 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
57415985 ;;
57425986 *)
5743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
57445988 lt_cv_file_magic_test_file=/usr/lib/libc.sl
57455989 ;;
57465990 esac
57616005 lt_cv_deplibs_check_method=pass_all
57626006 ;;
57636007
5764 # This must be Linux ELF.
5765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6008 # This must be glibc/ELF.
6009 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
57666010 lt_cv_deplibs_check_method=pass_all
57676011 ;;
57686012
58436087 fi
58446088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
58456089 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6090
6091 file_magic_glob=
6092 want_nocaseglob=no
6093 if test "$build" = "$host"; then
6094 case $host_os in
6095 mingw* | pw32*)
6096 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6097 want_nocaseglob=yes
6098 else
6099 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6100 fi
6101 ;;
6102 esac
6103 fi
6104
58466105 file_magic_cmd=$lt_cv_file_magic_cmd
58476106 deplibs_check_method=$lt_cv_deplibs_check_method
58486107 test -z "$deplibs_check_method" && deplibs_check_method=unknown
58586117
58596118
58606119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
58616130 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}ar; ac_word=$2
6131 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6132 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
58646133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58656134 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_AR+set}" = set; then :
6135 if ${ac_cv_prog_DLLTOOL+:} false; then :
58676136 $as_echo_n "(cached) " >&6
58686137 else
5869 if test -n "$AR"; then
5870 ac_cv_prog_AR="$AR" # Let the user override the test.
6138 if test -n "$DLLTOOL"; then
6139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
58716140 else
58726141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58736142 for as_dir in $PATH
58756144 IFS=$as_save_IFS
58766145 test -z "$as_dir" && as_dir=.
58776146 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_AR="${ac_tool_prefix}ar"
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
58806149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
58816150 break 2
58826151 fi
58866155
58876156 fi
58886157 fi
5889 AR=$ac_cv_prog_AR
5890 if test -n "$AR"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5892 $as_echo "$AR" >&6; }
6158 DLLTOOL=$ac_cv_prog_DLLTOOL
6159 if test -n "$DLLTOOL"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6161 $as_echo "$DLLTOOL" >&6; }
58936162 else
58946163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58956164 $as_echo "no" >&6; }
58976166
58986167
58996168 fi
5900 if test -z "$ac_cv_prog_AR"; then
5901 ac_ct_AR=$AR
5902 # Extract the first word of "ar", so it can be a program name with args.
5903 set dummy ar; ac_word=$2
6169 if test -z "$ac_cv_prog_DLLTOOL"; then
6170 ac_ct_DLLTOOL=$DLLTOOL
6171 # Extract the first word of "dlltool", so it can be a program name with args.
6172 set dummy dlltool; ac_word=$2
59046173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59056174 $as_echo_n "checking for $ac_word... " >&6; }
5906 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6175 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
59076176 $as_echo_n "(cached) " >&6
59086177 else
5909 if test -n "$ac_ct_AR"; then
5910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6178 if test -n "$ac_ct_DLLTOOL"; then
6179 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
59116180 else
59126181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59136182 for as_dir in $PATH
59156184 IFS=$as_save_IFS
59166185 test -z "$as_dir" && as_dir=.
59176186 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_ac_ct_AR="ar"
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
59206189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59216190 break 2
59226191 fi
59266195
59276196 fi
59286197 fi
6198 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6199 if test -n "$ac_ct_DLLTOOL"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6201 $as_echo "$ac_ct_DLLTOOL" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207 if test "x$ac_ct_DLLTOOL" = x; then
6208 DLLTOOL="false"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216 DLLTOOL=$ac_ct_DLLTOOL
6217 fi
6218 else
6219 DLLTOOL="$ac_cv_prog_DLLTOOL"
6220 fi
6221
6222 test -z "$DLLTOOL" && DLLTOOL=dlltool
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6234 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6235 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 lt_cv_sharedlib_from_linklib_cmd='unknown'
6239
6240 case $host_os in
6241 cygwin* | mingw* | pw32* | cegcc*)
6242 # two different shell functions defined in ltmain.sh
6243 # decide which to use based on capabilities of $DLLTOOL
6244 case `$DLLTOOL --help 2>&1` in
6245 *--identify-strict*)
6246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6247 ;;
6248 *)
6249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6250 ;;
6251 esac
6252 ;;
6253 *)
6254 # fallback: assume linklib IS sharedlib
6255 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6256 ;;
6257 esac
6258
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6261 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6262 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6263 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6264
6265
6266
6267
6268
6269
6270
6271
6272 if test -n "$ac_tool_prefix"; then
6273 for ac_prog in ar
6274 do
6275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_AR+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$AR"; then
6283 ac_cv_prog_AR="$AR" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 AR=$ac_cv_prog_AR
6303 if test -n "$AR"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6305 $as_echo "$AR" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311
6312 test -n "$AR" && break
6313 done
6314 fi
6315 if test -z "$AR"; then
6316 ac_ct_AR=$AR
6317 for ac_prog in ar
6318 do
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320 set dummy $ac_prog; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$ac_ct_AR"; then
6327 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_ac_ct_AR="$ac_prog"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
59296346 ac_ct_AR=$ac_cv_prog_ac_ct_AR
59306347 if test -n "$ac_ct_AR"; then
59316348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
59346351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59356352 $as_echo "no" >&6; }
59366353 fi
6354
6355
6356 test -n "$ac_ct_AR" && break
6357 done
59376358
59386359 if test "x$ac_ct_AR" = x; then
59396360 AR="false"
59466367 esac
59476368 AR=$ac_ct_AR
59486369 fi
5949 else
5950 AR="$ac_cv_prog_AR"
5951 fi
5952
5953 test -z "$AR" && AR=ar
5954 test -z "$AR_FLAGS" && AR_FLAGS=cru
5955
5956
5957
5958
6370 fi
6371
6372 : ${AR=ar}
6373 : ${AR_FLAGS=cru}
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6386 $as_echo_n "checking for archiver @FILE support... " >&6; }
6387 if ${lt_cv_ar_at_file+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 lt_cv_ar_at_file=no
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393
6394 int
6395 main ()
6396 {
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403 echo conftest.$ac_objext > conftest.lst
6404 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6406 (eval $lt_ar_try) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }
6410 if test "$ac_status" -eq 0; then
6411 # Ensure the archiver fails upon bogus file names.
6412 rm -f conftest.$ac_objext libconftest.a
6413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6414 (eval $lt_ar_try) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }
6418 if test "$ac_status" -ne 0; then
6419 lt_cv_ar_at_file=@
6420 fi
6421 fi
6422 rm -f conftest.* libconftest.a
6423
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6429 $as_echo "$lt_cv_ar_at_file" >&6; }
6430
6431 if test "x$lt_cv_ar_at_file" = xno; then
6432 archiver_list_spec=
6433 else
6434 archiver_list_spec=$lt_cv_ar_at_file
6435 fi
59596436
59606437
59616438
59686445 set dummy ${ac_tool_prefix}strip; ac_word=$2
59696446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59706447 $as_echo_n "checking for $ac_word... " >&6; }
5971 if test "${ac_cv_prog_STRIP+set}" = set; then :
6448 if ${ac_cv_prog_STRIP+:} false; then :
59726449 $as_echo_n "(cached) " >&6
59736450 else
59746451 if test -n "$STRIP"; then
59806457 IFS=$as_save_IFS
59816458 test -z "$as_dir" && as_dir=.
59826459 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59846461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59856462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59866463 break 2
60086485 set dummy strip; ac_word=$2
60096486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60106487 $as_echo_n "checking for $ac_word... " >&6; }
6011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6488 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
60126489 $as_echo_n "(cached) " >&6
60136490 else
60146491 if test -n "$ac_ct_STRIP"; then
60206497 IFS=$as_save_IFS
60216498 test -z "$as_dir" && as_dir=.
60226499 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60246501 ac_cv_prog_ac_ct_STRIP="strip"
60256502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60266503 break 2
60676544 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
60686545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60696546 $as_echo_n "checking for $ac_word... " >&6; }
6070 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6547 if ${ac_cv_prog_RANLIB+:} false; then :
60716548 $as_echo_n "(cached) " >&6
60726549 else
60736550 if test -n "$RANLIB"; then
60796556 IFS=$as_save_IFS
60806557 test -z "$as_dir" && as_dir=.
60816558 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60836560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
60846561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60856562 break 2
61076584 set dummy ranlib; ac_word=$2
61086585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61096586 $as_echo_n "checking for $ac_word... " >&6; }
6110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6587 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
61116588 $as_echo_n "(cached) " >&6
61126589 else
61136590 if test -n "$ac_ct_RANLIB"; then
61196596 IFS=$as_save_IFS
61206597 test -z "$as_dir" && as_dir=.
61216598 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61236600 ac_cv_prog_ac_ct_RANLIB="ranlib"
61246601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61256602 break 2
61696646 if test -n "$RANLIB"; then
61706647 case $host_os in
61716648 openbsd*)
6172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6649 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
61736650 ;;
61746651 *)
6175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
61766653 ;;
61776654 esac
6178 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6179 fi
6655 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6656 fi
6657
6658 case $host_os in
6659 darwin*)
6660 lock_old_archive_extraction=yes ;;
6661 *)
6662 lock_old_archive_extraction=no ;;
6663 esac
6664
6665
6666
6667
6668
61806669
61816670
61826671
62246713 # Check for command to grab the raw symbol name followed by C symbol from nm.
62256714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
62266715 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6227 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6716 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
62286717 $as_echo_n "(cached) " >&6
62296718 else
62306719
62856774 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
62866775
62876776 # Transform an extracted symbol line into symbol name and symbol address
6288 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6289 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6777 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6778 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
62906779
62916780 # Handle CRLF in mingw tool chain
62926781 opt_cr=
63106799 # which start with @ or ?.
63116800 lt_cv_sys_global_symbol_pipe="$AWK '"\
63126801 " {last_section=section; section=\$ 3};"\
6802 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
63136803 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
63146804 " \$ 0!~/External *\|/{next};"\
63156805 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
63226812 else
63236813 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
63246814 fi
6815 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
63256816
63266817 # Check to see that the pipe works correctly.
63276818 pipe_works=no
63476838 test $ac_status = 0; }; then
63486839 # Now try to grab the symbols.
63496840 nlist=conftest.nm
6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6351 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6842 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
63526843 ac_status=$?
63536844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63546845 test $ac_status = 0; } && test -s "$nlist"; then
63636854 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
63646855 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
63656856 cat <<_LT_EOF > conftest.$ac_ext
6857 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6858 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6859 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6860 relocations are performed -- see ld's documentation on pseudo-relocs. */
6861 # define LT_DLSYM_CONST
6862 #elif defined(__osf__)
6863 /* This system does not cope well with relocations in const data. */
6864 # define LT_DLSYM_CONST
6865 #else
6866 # define LT_DLSYM_CONST const
6867 #endif
6868
63666869 #ifdef __cplusplus
63676870 extern "C" {
63686871 #endif
63746877 cat <<_LT_EOF >> conftest.$ac_ext
63756878
63766879 /* The mapping between symbol names and symbols. */
6377 const struct {
6880 LT_DLSYM_CONST struct {
63786881 const char *name;
63796882 void *address;
63806883 }
64006903 _LT_EOF
64016904 # Now try linking the two files.
64026905 mv conftest.$ac_objext conftstm.$ac_objext
6403 lt_save_LIBS="$LIBS"
6404 lt_save_CFLAGS="$CFLAGS"
6906 lt_globsym_save_LIBS=$LIBS
6907 lt_globsym_save_CFLAGS=$CFLAGS
64056908 LIBS="conftstm.$ac_objext"
64066909 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
64076910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
64116914 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
64126915 pipe_works=yes
64136916 fi
6414 LIBS="$lt_save_LIBS"
6415 CFLAGS="$lt_save_CFLAGS"
6917 LIBS=$lt_globsym_save_LIBS
6918 CFLAGS=$lt_globsym_save_CFLAGS
64166919 else
64176920 echo "cannot find nm_test_func in $nlist" >&5
64186921 fi
64496952 $as_echo "ok" >&6; }
64506953 fi
64516954
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6955 # Response file support.
6956 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6957 nm_file_list_spec='@'
6958 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6959 nm_file_list_spec='@'
6960 fi
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6989 $as_echo_n "checking for sysroot... " >&6; }
6990
6991 # Check whether --with-sysroot was given.
6992 if test "${with_sysroot+set}" = set; then :
6993 withval=$with_sysroot;
6994 else
6995 with_sysroot=no
6996 fi
6997
6998
6999 lt_sysroot=
7000 case ${with_sysroot} in #(
7001 yes)
7002 if test "$GCC" = yes; then
7003 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7004 fi
7005 ;; #(
7006 /*)
7007 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7008 ;; #(
7009 no|'')
7010 ;; #(
7011 *)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7013 $as_echo "${with_sysroot}" >&6; }
7014 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7015 ;;
7016 esac
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7019 $as_echo "${lt_sysroot:-no}" >&6; }
64697020
64707021
64717022
65027053 ;;
65037054 *-*-irix6*)
65047055 # Find out which ABI we are using.
6505 echo '#line 6506 "configure"' > conftest.$ac_ext
7056 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
65067057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65077058 (eval $ac_compile) 2>&5
65087059 ac_status=$?
65377088 rm -rf conftest*
65387089 ;;
65397090
6540 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7091 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
65417092 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
65427093 # Find out which ABI we are using.
65437094 echo 'int i;' > conftest.$ac_ext
65537104 LD="${LD-ld} -m elf_i386_fbsd"
65547105 ;;
65557106 x86_64-*linux*)
6556 LD="${LD-ld} -m elf_i386"
7107 case `/usr/bin/file conftest.o` in
7108 *x86-64*)
7109 LD="${LD-ld} -m elf32_x86_64"
7110 ;;
7111 *)
7112 LD="${LD-ld} -m elf_i386"
7113 ;;
7114 esac
65577115 ;;
6558 ppc64-*linux*|powerpc64-*linux*)
7116 powerpc64le-*)
7117 LD="${LD-ld} -m elf32lppclinux"
7118 ;;
7119 powerpc64-*)
65597120 LD="${LD-ld} -m elf32ppclinux"
65607121 ;;
65617122 s390x-*linux*)
65747135 x86_64-*linux*)
65757136 LD="${LD-ld} -m elf_x86_64"
65767137 ;;
6577 ppc*-*linux*|powerpc*-*linux*)
7138 powerpcle-*)
7139 LD="${LD-ld} -m elf64lppc"
7140 ;;
7141 powerpc-*)
65787142 LD="${LD-ld} -m elf64ppc"
65797143 ;;
65807144 s390*-*linux*|s390*-*tpf*)
65967160 CFLAGS="$CFLAGS -belf"
65977161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
65987162 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6599 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7163 if ${lt_cv_cc_needs_belf+:} false; then :
66007164 $as_echo_n "(cached) " >&6
66017165 else
66027166 ac_ext=c
66377201 CFLAGS="$SAVE_CFLAGS"
66387202 fi
66397203 ;;
6640 sparc*-*solaris*)
7204 *-*solaris*)
66417205 # Find out which ABI we are using.
66427206 echo 'int i;' > conftest.$ac_ext
66437207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
66487212 case `/usr/bin/file conftest.o` in
66497213 *64-bit*)
66507214 case $lt_cv_prog_gnu_ld in
6651 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7215 yes*)
7216 case $host in
7217 i?86-*-solaris*)
7218 LD="${LD-ld} -m elf_x86_64"
7219 ;;
7220 sparc*-*-solaris*)
7221 LD="${LD-ld} -m elf64_sparc"
7222 ;;
7223 esac
7224 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7225 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7226 LD="${LD-ld}_sol2"
7227 fi
7228 ;;
66527229 *)
66537230 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
66547231 LD="${LD-ld} -64"
66647241
66657242 need_locks="$enable_libtool_lock"
66667243
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}mt; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$MANIFEST_TOOL"; then
7253 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7273 if test -n "$MANIFEST_TOOL"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7275 $as_echo "$MANIFEST_TOOL" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7284 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7285 # Extract the first word of "mt", so it can be a program name with args.
7286 set dummy mt; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$ac_ct_MANIFEST_TOOL"; then
7293 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7313 if test -n "$ac_ct_MANIFEST_TOOL"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7315 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7322 MANIFEST_TOOL=":"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7331 fi
7332 else
7333 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7334 fi
7335
7336 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7338 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7339 if ${lt_cv_path_mainfest_tool+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 lt_cv_path_mainfest_tool=no
7343 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7344 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7345 cat conftest.err >&5
7346 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7347 lt_cv_path_mainfest_tool=yes
7348 fi
7349 rm -f conftest*
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7352 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7353 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7354 MANIFEST_TOOL=:
7355 fi
7356
7357
7358
7359
7360
66677361
66687362 case $host_os in
66697363 rhapsody* | darwin*)
66727366 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
66737367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66747368 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7369 if ${ac_cv_prog_DSYMUTIL+:} false; then :
66767370 $as_echo_n "(cached) " >&6
66777371 else
66787372 if test -n "$DSYMUTIL"; then
66847378 IFS=$as_save_IFS
66857379 test -z "$as_dir" && as_dir=.
66867380 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66887382 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
66897383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
66907384 break 2
67127406 set dummy dsymutil; ac_word=$2
67137407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
67147408 $as_echo_n "checking for $ac_word... " >&6; }
6715 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7409 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
67167410 $as_echo_n "(cached) " >&6
67177411 else
67187412 if test -n "$ac_ct_DSYMUTIL"; then
67247418 IFS=$as_save_IFS
67257419 test -z "$as_dir" && as_dir=.
67267420 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67287422 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
67297423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
67307424 break 2
67647458 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
67657459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
67667460 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7461 if ${ac_cv_prog_NMEDIT+:} false; then :
67687462 $as_echo_n "(cached) " >&6
67697463 else
67707464 if test -n "$NMEDIT"; then
67767470 IFS=$as_save_IFS
67777471 test -z "$as_dir" && as_dir=.
67787472 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67807474 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
67817475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
67827476 break 2
68047498 set dummy nmedit; ac_word=$2
68057499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
68067500 $as_echo_n "checking for $ac_word... " >&6; }
6807 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7501 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
68087502 $as_echo_n "(cached) " >&6
68097503 else
68107504 if test -n "$ac_ct_NMEDIT"; then
68167510 IFS=$as_save_IFS
68177511 test -z "$as_dir" && as_dir=.
68187512 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68207514 ac_cv_prog_ac_ct_NMEDIT="nmedit"
68217515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68227516 break 2
68567550 set dummy ${ac_tool_prefix}lipo; ac_word=$2
68577551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
68587552 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_LIPO+set}" = set; then :
7553 if ${ac_cv_prog_LIPO+:} false; then :
68607554 $as_echo_n "(cached) " >&6
68617555 else
68627556 if test -n "$LIPO"; then
68687562 IFS=$as_save_IFS
68697563 test -z "$as_dir" && as_dir=.
68707564 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68727566 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
68737567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68747568 break 2
68967590 set dummy lipo; ac_word=$2
68977591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
68987592 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7593 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
69007594 $as_echo_n "(cached) " >&6
69017595 else
69027596 if test -n "$ac_ct_LIPO"; then
69087602 IFS=$as_save_IFS
69097603 test -z "$as_dir" && as_dir=.
69107604 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69127606 ac_cv_prog_ac_ct_LIPO="lipo"
69137607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69147608 break 2
69487642 set dummy ${ac_tool_prefix}otool; ac_word=$2
69497643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69507644 $as_echo_n "checking for $ac_word... " >&6; }
6951 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7645 if ${ac_cv_prog_OTOOL+:} false; then :
69527646 $as_echo_n "(cached) " >&6
69537647 else
69547648 if test -n "$OTOOL"; then
69607654 IFS=$as_save_IFS
69617655 test -z "$as_dir" && as_dir=.
69627656 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69647658 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
69657659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69667660 break 2
69887682 set dummy otool; ac_word=$2
69897683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69907684 $as_echo_n "checking for $ac_word... " >&6; }
6991 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7685 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
69927686 $as_echo_n "(cached) " >&6
69937687 else
69947688 if test -n "$ac_ct_OTOOL"; then
70007694 IFS=$as_save_IFS
70017695 test -z "$as_dir" && as_dir=.
70027696 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70047698 ac_cv_prog_ac_ct_OTOOL="otool"
70057699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70067700 break 2
70407734 set dummy ${ac_tool_prefix}otool64; ac_word=$2
70417735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70427736 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7737 if ${ac_cv_prog_OTOOL64+:} false; then :
70447738 $as_echo_n "(cached) " >&6
70457739 else
70467740 if test -n "$OTOOL64"; then
70527746 IFS=$as_save_IFS
70537747 test -z "$as_dir" && as_dir=.
70547748 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70567750 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
70577751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70587752 break 2
70807774 set dummy otool64; ac_word=$2
70817775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70827776 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7777 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
70847778 $as_echo_n "(cached) " >&6
70857779 else
70867780 if test -n "$ac_ct_OTOOL64"; then
70927786 IFS=$as_save_IFS
70937787 test -z "$as_dir" && as_dir=.
70947788 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70967790 ac_cv_prog_ac_ct_OTOOL64="otool64"
70977791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70987792 break 2
71557849
71567850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
71577851 $as_echo_n "checking for -single_module linker flag... " >&6; }
7158 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7852 if ${lt_cv_apple_cc_single_mod+:} false; then :
71597853 $as_echo_n "(cached) " >&6
71607854 else
71617855 lt_cv_apple_cc_single_mod=no
71717865 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
71727866 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
71737867 _lt_result=$?
7174 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7868 # If there is a non-empty error log, and "single_module"
7869 # appears in it, assume the flag caused a linker warning
7870 if test -s conftest.err && $GREP single_module conftest.err; then
7871 cat conftest.err >&5
7872 # Otherwise, if the output was created with a 0 exit code from
7873 # the compiler, it worked.
7874 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
71757875 lt_cv_apple_cc_single_mod=yes
71767876 else
71777877 cat conftest.err >&5
71827882 fi
71837883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
71847884 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7885
71857886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
71867887 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7187 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7888 if ${lt_cv_ld_exported_symbols_list+:} false; then :
71887889 $as_echo_n "(cached) " >&6
71897890 else
71907891 lt_cv_ld_exported_symbols_list=no
72147915 fi
72157916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
72167917 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7920 $as_echo_n "checking for -force_load linker flag... " >&6; }
7921 if ${lt_cv_ld_force_load+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 lt_cv_ld_force_load=no
7925 cat > conftest.c << _LT_EOF
7926 int forced_loaded() { return 2;}
7927 _LT_EOF
7928 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7929 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7930 echo "$AR cru libconftest.a conftest.o" >&5
7931 $AR cru libconftest.a conftest.o 2>&5
7932 echo "$RANLIB libconftest.a" >&5
7933 $RANLIB libconftest.a 2>&5
7934 cat > conftest.c << _LT_EOF
7935 int main() { return 0;}
7936 _LT_EOF
7937 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7938 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7939 _lt_result=$?
7940 if test -s conftest.err && $GREP force_load conftest.err; then
7941 cat conftest.err >&5
7942 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7943 lt_cv_ld_force_load=yes
7944 else
7945 cat conftest.err >&5
7946 fi
7947 rm -f conftest.err libconftest.a conftest conftest.c
7948 rm -rf conftest.dSYM
7949
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7952 $as_echo "$lt_cv_ld_force_load" >&6; }
72177953 case $host_os in
72187954 rhapsody* | darwin1.[012])
72197955 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
72417977 else
72427978 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
72437979 fi
7244 if test "$DSYMUTIL" != ":"; then
7980 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
72457981 _lt_dsymutil='~$DSYMUTIL $lib || :'
72467982 else
72477983 _lt_dsymutil=
72617997 CPP=
72627998 fi
72637999 if test -z "$CPP"; then
7264 if test "${ac_cv_prog_CPP+set}" = set; then :
8000 if ${ac_cv_prog_CPP+:} false; then :
72658001 $as_echo_n "(cached) " >&6
72668002 else
72678003 # Double quotes because CPP needs to be expanded
72918027 # Broken: fails on valid input.
72928028 continue
72938029 fi
7294 rm -f conftest.err conftest.$ac_ext
8030 rm -f conftest.err conftest.i conftest.$ac_ext
72958031
72968032 # OK, works on sane cases. Now check whether nonexistent headers
72978033 # can be detected and how.
73078043 ac_preproc_ok=:
73088044 break
73098045 fi
7310 rm -f conftest.err conftest.$ac_ext
8046 rm -f conftest.err conftest.i conftest.$ac_ext
73118047
73128048 done
73138049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7314 rm -f conftest.err conftest.$ac_ext
8050 rm -f conftest.i conftest.err conftest.$ac_ext
73158051 if $ac_preproc_ok; then :
73168052 break
73178053 fi
73508086 # Broken: fails on valid input.
73518087 continue
73528088 fi
7353 rm -f conftest.err conftest.$ac_ext
8089 rm -f conftest.err conftest.i conftest.$ac_ext
73548090
73558091 # OK, works on sane cases. Now check whether nonexistent headers
73568092 # can be detected and how.
73668102 ac_preproc_ok=:
73678103 break
73688104 fi
7369 rm -f conftest.err conftest.$ac_ext
8105 rm -f conftest.err conftest.i conftest.$ac_ext
73708106
73718107 done
73728108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373 rm -f conftest.err conftest.$ac_ext
8109 rm -f conftest.i conftest.err conftest.$ac_ext
73748110 if $ac_preproc_ok; then :
73758111
73768112 else
73778113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
73788114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7379 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7380 See \`config.log' for more details." "$LINENO" 5; }
8115 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8116 See \`config.log' for more details" "$LINENO" 5; }
73818117 fi
73828118
73838119 ac_ext=c
73898125
73908126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
73918127 $as_echo_n "checking for ANSI C header files... " >&6; }
7392 if test "${ac_cv_header_stdc+set}" = set; then :
8128 if ${ac_cv_header_stdc+:} false; then :
73938129 $as_echo_n "(cached) " >&6
73948130 else
73958131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75068242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
75078243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
75088244 "
7509 eval as_val=\$$as_ac_Header
7510 if test "x$as_val" = x""yes; then :
8245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
75118246 cat >>confdefs.h <<_ACEOF
75128247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
75138248 _ACEOF
75218256 do :
75228257 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
75238258 "
7524 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8259 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
75258260 cat >>confdefs.h <<_ACEOF
75268261 #define HAVE_DLFCN_H 1
75278262 _ACEOF
75328267
75338268
75348269
7535 ac_ext=cpp
7536 ac_cpp='$CXXCPP $CPPFLAGS'
7537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7540 if test -z "$CXX"; then
7541 if test -n "$CCC"; then
7542 CXX=$CCC
7543 else
7544 if test -n "$ac_tool_prefix"; then
7545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7546 do
7547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if test "${ac_cv_prog_CXX+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 if test -n "$CXX"; then
7555 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 CXX=$ac_cv_prog_CXX
7575 if test -n "$CXX"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7577 $as_echo "$CXX" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583
7584 test -n "$CXX" && break
7585 done
7586 fi
7587 if test -z "$CXX"; then
7588 ac_ct_CXX=$CXX
7589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7590 do
7591 # Extract the first word of "$ac_prog", so it can be a program name with args.
7592 set dummy $ac_prog; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$ac_ct_CXX"; then
7599 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_ac_ct_CXX="$ac_prog"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7619 if test -n "$ac_ct_CXX"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7621 $as_echo "$ac_ct_CXX" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628 test -n "$ac_ct_CXX" && break
7629 done
7630
7631 if test "x$ac_ct_CXX" = x; then
7632 CXX="g++"
7633 else
7634 case $cross_compiling:$ac_tool_warned in
7635 yes:)
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638 ac_tool_warned=yes ;;
7639 esac
7640 CXX=$ac_ct_CXX
7641 fi
7642 fi
7643
7644 fi
7645 fi
7646 # Provide some information about the compiler.
7647 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7648 set X $ac_compile
7649 ac_compiler=$2
7650 for ac_option in --version -v -V -qversion; do
7651 { { ac_try="$ac_compiler $ac_option >&5"
7652 case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655 esac
7656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7657 $as_echo "$ac_try_echo"; } >&5
7658 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7659 ac_status=$?
7660 if test -s conftest.err; then
7661 sed '10a\
7662 ... rest of stderr output deleted ...
7663 10q' conftest.err >conftest.er1
7664 cat conftest.er1 >&5
7665 fi
7666 rm -f conftest.er1 conftest.err
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }
7669 done
7670
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7672 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7673 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678
7679 int
7680 main ()
8270
8271 func_stripname_cnf ()
76818272 {
7682 #ifndef __GNUC__
7683 choke me
7684 #endif
7685
7686 ;
7687 return 0;
7688 }
7689 _ACEOF
7690 if ac_fn_cxx_try_compile "$LINENO"; then :
7691 ac_compiler_gnu=yes
7692 else
7693 ac_compiler_gnu=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7697
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7700 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7701 if test $ac_compiler_gnu = yes; then
7702 GXX=yes
7703 else
7704 GXX=
7705 fi
7706 ac_test_CXXFLAGS=${CXXFLAGS+set}
7707 ac_save_CXXFLAGS=$CXXFLAGS
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7709 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7710 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7714 ac_cxx_werror_flag=yes
7715 ac_cv_prog_cxx_g=no
7716 CXXFLAGS="-g"
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719
7720 int
7721 main ()
7722 {
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_cxx_try_compile "$LINENO"; then :
7729 ac_cv_prog_cxx_g=yes
7730 else
7731 CXXFLAGS=""
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734
7735 int
7736 main ()
7737 {
7738
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_cxx_try_compile "$LINENO"; then :
7744
7745 else
7746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7747 CXXFLAGS="-g"
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750
7751 int
7752 main ()
7753 {
7754
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_cxx_try_compile "$LINENO"; then :
7760 ac_cv_prog_cxx_g=yes
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7770 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7771 if test "$ac_test_CXXFLAGS" = set; then
7772 CXXFLAGS=$ac_save_CXXFLAGS
7773 elif test $ac_cv_prog_cxx_g = yes; then
7774 if test "$GXX" = yes; then
7775 CXXFLAGS="-g -O2"
7776 else
7777 CXXFLAGS="-g"
7778 fi
7779 else
7780 if test "$GXX" = yes; then
7781 CXXFLAGS="-O2"
7782 else
7783 CXXFLAGS=
7784 fi
7785 fi
7786 ac_ext=c
7787 ac_cpp='$CPP $CPPFLAGS'
7788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7791
7792 depcc="$CXX" am_compiler_list=
7793
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7795 $as_echo_n "checking dependency style of $depcc... " >&6; }
7796 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7800 # We make a subdir and do the tests there. Otherwise we can end up
7801 # making bogus files that we don't know about and never remove. For
7802 # instance it was reported that on HP-UX the gcc test will end up
7803 # making a dummy file named `D' -- because `-MD' means `put the output
7804 # in D'.
7805 mkdir conftest.dir
7806 # Copy depcomp to subdir because otherwise we won't find it if we're
7807 # using a relative directory.
7808 cp "$am_depcomp" conftest.dir
7809 cd conftest.dir
7810 # We will build objects and dependencies in a subdirectory because
7811 # it helps to detect inapplicable dependency modes. For instance
7812 # both Tru64's cc and ICC support -MD to output dependencies as a
7813 # side effect of compilation, but ICC will put the dependencies in
7814 # the current directory while Tru64 will put them in the object
7815 # directory.
7816 mkdir sub
7817
7818 am_cv_CXX_dependencies_compiler_type=none
7819 if test "$am_compiler_list" = ""; then
7820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7821 fi
7822 am__universal=false
7823 case " $depcc " in #(
7824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7825 esac
7826
7827 for depmode in $am_compiler_list; do
7828 # Setup a source with many dependencies, because some compilers
7829 # like to wrap large dependency lists on column 80 (with \), and
7830 # we should not choose a depcomp mode which is confused by this.
7831 #
7832 # We need to recreate these files for each test, as the compiler may
7833 # overwrite some of them when testing with obscure command lines.
7834 # This happens at least with the AIX C compiler.
7835 : > sub/conftest.c
7836 for i in 1 2 3 4 5 6; do
7837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7838 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7839 # Solaris 8's {/usr,}/bin/sh.
7840 touch sub/conftst$i.h
7841 done
7842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7843
7844 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7845 # mode. It turns out that the SunPro C++ compiler does not properly
7846 # handle `-M -o', and we need to detect this. Also, some Intel
7847 # versions had trouble with output in subdirs
7848 am__obj=sub/conftest.${OBJEXT-o}
7849 am__minus_obj="-o $am__obj"
7850 case $depmode in
7851 gcc)
7852 # This depmode causes a compiler race in universal mode.
7853 test "$am__universal" = false || continue
7854 ;;
7855 nosideeffect)
7856 # after this tag, mechanisms are not by side-effect, so they'll
7857 # only be used when explicitly requested
7858 if test "x$enable_dependency_tracking" = xyes; then
7859 continue
7860 else
7861 break
7862 fi
7863 ;;
7864 msvisualcpp | msvcmsys)
7865 # This compiler won't grok `-c -o', but also, the minuso test has
7866 # not run yet. These depmodes are late enough in the game, and
7867 # so weak that their functioning should not be impacted.
7868 am__obj=conftest.${OBJEXT-o}
7869 am__minus_obj=
7870 ;;
7871 none) break ;;
7872 esac
7873 if depmode=$depmode \
7874 source=sub/conftest.c object=$am__obj \
7875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7877 >/dev/null 2>conftest.err &&
7878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7882 # icc doesn't choke on unknown options, it will just issue warnings
7883 # or remarks (even with -Werror). So we grep stderr for any message
7884 # that says an option was ignored or not supported.
7885 # When given -MP, icc 7.0 and 7.1 complain thusly:
7886 # icc: Command line warning: ignoring option '-M'; no argument required
7887 # The diagnosis changed in icc 8.0:
7888 # icc: Command line remark: option '-MP' not supported
7889 if (grep 'ignoring option' conftest.err ||
7890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7891 am_cv_CXX_dependencies_compiler_type=$depmode
7892 break
7893 fi
7894 fi
7895 done
7896
7897 cd ..
7898 rm -rf conftest.dir
7899 else
7900 am_cv_CXX_dependencies_compiler_type=none
7901 fi
7902
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7905 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7906 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7907
7908 if
7909 test "x$enable_dependency_tracking" != xno \
7910 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7911 am__fastdepCXX_TRUE=
7912 am__fastdepCXX_FALSE='#'
7913 else
7914 am__fastdepCXX_TRUE='#'
7915 am__fastdepCXX_FALSE=
7916 fi
7917
7918
7919 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7920 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7921 (test "X$CXX" != "Xg++"))) ; then
7922 ac_ext=cpp
7923 ac_cpp='$CXXCPP $CPPFLAGS'
7924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7928 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7929 if test -z "$CXXCPP"; then
7930 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 # Double quotes because CXXCPP needs to be expanded
7934 for CXXCPP in "$CXX -E" "/lib/cpp"
7935 do
7936 ac_preproc_ok=false
7937 for ac_cxx_preproc_warn_flag in '' yes
7938 do
7939 # Use a header file that comes with gcc, so configuring glibc
7940 # with a fresh cross-compiler works.
7941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7942 # <limits.h> exists even on freestanding compilers.
7943 # On the NeXT, cc -E runs the code through the compiler's parser,
7944 # not just through cpp. "Syntax error" is here to catch this case.
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #ifdef __STDC__
7948 # include <limits.h>
7949 #else
7950 # include <assert.h>
7951 #endif
7952 Syntax error
7953 _ACEOF
7954 if ac_fn_cxx_try_cpp "$LINENO"; then :
7955
7956 else
7957 # Broken: fails on valid input.
7958 continue
7959 fi
7960 rm -f conftest.err conftest.$ac_ext
7961
7962 # OK, works on sane cases. Now check whether nonexistent headers
7963 # can be detected and how.
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 #include <ac_nonexistent.h>
7967 _ACEOF
7968 if ac_fn_cxx_try_cpp "$LINENO"; then :
7969 # Broken: success on invalid input.
7970 continue
7971 else
7972 # Passes both tests.
7973 ac_preproc_ok=:
7974 break
7975 fi
7976 rm -f conftest.err conftest.$ac_ext
7977
7978 done
7979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7980 rm -f conftest.err conftest.$ac_ext
7981 if $ac_preproc_ok; then :
7982 break
7983 fi
7984
7985 done
7986 ac_cv_prog_CXXCPP=$CXXCPP
7987
7988 fi
7989 CXXCPP=$ac_cv_prog_CXXCPP
7990 else
7991 ac_cv_prog_CXXCPP=$CXXCPP
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7994 $as_echo "$CXXCPP" >&6; }
7995 ac_preproc_ok=false
7996 for ac_cxx_preproc_warn_flag in '' yes
7997 do
7998 # Use a header file that comes with gcc, so configuring glibc
7999 # with a fresh cross-compiler works.
8000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8001 # <limits.h> exists even on freestanding compilers.
8002 # On the NeXT, cc -E runs the code through the compiler's parser,
8003 # not just through cpp. "Syntax error" is here to catch this case.
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #ifdef __STDC__
8007 # include <limits.h>
8008 #else
8009 # include <assert.h>
8010 #endif
8011 Syntax error
8012 _ACEOF
8013 if ac_fn_cxx_try_cpp "$LINENO"; then :
8014
8015 else
8016 # Broken: fails on valid input.
8017 continue
8018 fi
8019 rm -f conftest.err conftest.$ac_ext
8020
8021 # OK, works on sane cases. Now check whether nonexistent headers
8022 # can be detected and how.
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8025 #include <ac_nonexistent.h>
8026 _ACEOF
8027 if ac_fn_cxx_try_cpp "$LINENO"; then :
8028 # Broken: success on invalid input.
8029 continue
8030 else
8031 # Passes both tests.
8032 ac_preproc_ok=:
8033 break
8034 fi
8035 rm -f conftest.err conftest.$ac_ext
8036
8037 done
8038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8039 rm -f conftest.err conftest.$ac_ext
8040 if $ac_preproc_ok; then :
8041
8042 else
8043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8045 _lt_caught_CXX_error=yes; }
8046 fi
8047
8048 ac_ext=c
8049 ac_cpp='$CPP $CPPFLAGS'
8050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8053
8054 else
8055 _lt_caught_CXX_error=yes
8056 fi
8273 case ${2} in
8274 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8275 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8276 esac
8277 } # func_stripname_cnf
80578278
80588279
80598280
81348355
81358356 # Check whether --with-pic was given.
81368357 if test "${with_pic+set}" = set; then :
8137 withval=$with_pic; pic_mode="$withval"
8358 withval=$with_pic; lt_p=${PACKAGE-default}
8359 case $withval in
8360 yes|no) pic_mode=$withval ;;
8361 *)
8362 pic_mode=default
8363 # Look at the argument we got. We use all the common list separators.
8364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8365 for lt_pkg in $withval; do
8366 IFS="$lt_save_ifs"
8367 if test "X$lt_pkg" = "X$lt_p"; then
8368 pic_mode=yes
8369 fi
8370 done
8371 IFS="$lt_save_ifs"
8372 ;;
8373 esac
81388374 else
81398375 pic_mode=default
81408376 fi
82118447
82128448
82138449
8450
8451
8452
8453
8454
82148455 test -z "$LN_S" && LN_S="ln -s"
82158456
82168457
82328473
82338474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
82348475 $as_echo_n "checking for objdir... " >&6; }
8235 if test "${lt_cv_objdir+set}" = set; then :
8476 if ${lt_cv_objdir+:} false; then :
82368477 $as_echo_n "(cached) " >&6
82378478 else
82388479 rm -f .libs 2>/dev/null
82568497 cat >>confdefs.h <<_ACEOF
82578498 #define LT_OBJDIR "$lt_cv_objdir/"
82588499 _ACEOF
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
82728500
82738501
82748502
82858513 ;;
82868514 esac
82878515
8288 # Sed substitution that helps us do robust quoting. It backslashifies
8289 # metacharacters that are still active within double-quoted strings.
8290 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8291
8292 # Same as above, but do not quote variable references.
8293 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8294
8295 # Sed substitution to delay expansion of an escaped shell variable in a
8296 # double_quote_subst'ed string.
8297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8298
8299 # Sed substitution to delay expansion of an escaped single quote.
8300 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8301
8302 # Sed substitution to avoid accidental globbing in evaled expressions
8303 no_glob_subst='s/\*/\\\*/g'
8304
83058516 # Global variables:
83068517 ofile=libtool
83078518 can_build_shared=yes
83308541 *) break;;
83318542 esac
83328543 done
8333 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8544 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
83348545
83358546
83368547 # Only perform the check for file, if the check method requires it
83408551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
83418552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
83428553 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8343 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8554 if ${lt_cv_path_MAGIC_CMD+:} false; then :
83448555 $as_echo_n "(cached) " >&6
83458556 else
83468557 case $MAGIC_CMD in
84068617 if test -n "$ac_tool_prefix"; then
84078618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
84088619 $as_echo_n "checking for file... " >&6; }
8409 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8620 if ${lt_cv_path_MAGIC_CMD+:} false; then :
84108621 $as_echo_n "(cached) " >&6
84118622 else
84128623 case $MAGIC_CMD in
85358746 lt_prog_compiler_no_builtin_flag=
85368747
85378748 if test "$GCC" = yes; then
8538 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8749 case $cc_basename in
8750 nvcc*)
8751 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8752 *)
8753 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8754 esac
85398755
85408756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
85418757 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8758 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
85438759 $as_echo_n "(cached) " >&6
85448760 else
85458761 lt_cv_prog_compiler_rtti_exceptions=no
85558771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
85568772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
85578773 -e 's:$: $lt_compiler_flag:'`
8558 (eval echo "\"\$as_me:8559: $lt_compile\"" >&5)
8774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
85598775 (eval "$lt_compile" 2>conftest.err)
85608776 ac_status=$?
85618777 cat conftest.err >&5
8562 echo "$as_me:8563: \$? = $ac_status" >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
85638779 if (exit $ac_status) && test -s "$ac_outfile"; then
85648780 # The compiler can only warn and ignore the option if not recognized
85658781 # So say no if there are warnings other than the usual output.
8566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
85678783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
85688784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
85698785 lt_cv_prog_compiler_rtti_exceptions=yes
85928808 lt_prog_compiler_pic=
85938809 lt_prog_compiler_static=
85948810
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
85978811
85988812 if test "$GCC" = yes; then
85998813 lt_prog_compiler_wl='-Wl,'
86418855 lt_prog_compiler_pic='-fno-common'
86428856 ;;
86438857
8858 haiku*)
8859 # PIC is the default for Haiku.
8860 # The "-static" flag exists, but is broken.
8861 lt_prog_compiler_static=
8862 ;;
8863
86448864 hpux*)
86458865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
86468866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
86818901
86828902 *)
86838903 lt_prog_compiler_pic='-fPIC'
8904 ;;
8905 esac
8906
8907 case $cc_basename in
8908 nvcc*) # Cuda Compiler Driver 2.2
8909 lt_prog_compiler_wl='-Xlinker '
8910 if test -n "$lt_prog_compiler_pic"; then
8911 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8912 fi
86848913 ;;
86858914 esac
86868915 else
87248953 lt_prog_compiler_static='-non_shared'
87258954 ;;
87268955
8727 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8956 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
87288957 case $cc_basename in
87298958 # old Intel for x86_64 which still supported -KPIC.
87308959 ecc*)
87458974 lt_prog_compiler_pic='--shared'
87468975 lt_prog_compiler_static='--static'
87478976 ;;
8748 pgcc* | pgf77* | pgf90* | pgf95*)
8977 nagfor*)
8978 # NAG Fortran compiler
8979 lt_prog_compiler_wl='-Wl,-Wl,,'
8980 lt_prog_compiler_pic='-PIC'
8981 lt_prog_compiler_static='-Bstatic'
8982 ;;
8983 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
87498984 # Portland Group compilers (*not* the Pentium gcc compiler,
87508985 # which looks to be a dead project)
87518986 lt_prog_compiler_wl='-Wl,'
87578992 # All Alpha code is PIC.
87588993 lt_prog_compiler_static='-non_shared'
87598994 ;;
8760 xl*)
8761 # IBM XL C 8.0/Fortran 10.1 on PPC
8995 xl* | bgxl* | bgf* | mpixl*)
8996 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
87628997 lt_prog_compiler_wl='-Wl,'
87638998 lt_prog_compiler_pic='-qpic'
87648999 lt_prog_compiler_static='-qstaticlink'
87659000 ;;
87669001 *)
87679002 case `$CC -V 2>&1 | sed 5q` in
9003 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9004 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9005 lt_prog_compiler_pic='-KPIC'
9006 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_wl=''
9008 ;;
9009 *Sun\ F* | *Sun*Fortran*)
9010 lt_prog_compiler_pic='-KPIC'
9011 lt_prog_compiler_static='-Bstatic'
9012 lt_prog_compiler_wl='-Qoption ld '
9013 ;;
87689014 *Sun\ C*)
87699015 # Sun C 5.9
87709016 lt_prog_compiler_pic='-KPIC'
87719017 lt_prog_compiler_static='-Bstatic'
87729018 lt_prog_compiler_wl='-Wl,'
87739019 ;;
8774 *Sun\ F*)
8775 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8776 lt_prog_compiler_pic='-KPIC'
9020 *Intel*\ [CF]*Compiler*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-fPIC'
9023 lt_prog_compiler_static='-static'
9024 ;;
9025 *Portland\ Group*)
9026 lt_prog_compiler_wl='-Wl,'
9027 lt_prog_compiler_pic='-fpic'
87779028 lt_prog_compiler_static='-Bstatic'
8778 lt_prog_compiler_wl=''
87799029 ;;
87809030 esac
87819031 ;;
88079057 lt_prog_compiler_pic='-KPIC'
88089058 lt_prog_compiler_static='-Bstatic'
88099059 case $cc_basename in
8810 f77* | f90* | f95*)
9060 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
88119061 lt_prog_compiler_wl='-Qoption ld ';;
88129062 *)
88139063 lt_prog_compiler_wl='-Wl,';;
88649114 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
88659115 ;;
88669116 esac
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8868 $as_echo "$lt_prog_compiler_pic" >&6; }
8869
8870
8871
8872
8873
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9119 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9120 if ${lt_cv_prog_compiler_pic+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9126 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9127 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
88749128
88759129 #
88769130 # Check to make sure the PIC flag actually works.
88789132 if test -n "$lt_prog_compiler_pic"; then
88799133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
88809134 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8881 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9135 if ${lt_cv_prog_compiler_pic_works+:} false; then :
88829136 $as_echo_n "(cached) " >&6
88839137 else
88849138 lt_cv_prog_compiler_pic_works=no
88949148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
88959149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
88969150 -e 's:$: $lt_compiler_flag:'`
8897 (eval echo "\"\$as_me:8898: $lt_compile\"" >&5)
9151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
88989152 (eval "$lt_compile" 2>conftest.err)
88999153 ac_status=$?
89009154 cat conftest.err >&5
8901 echo "$as_me:8902: \$? = $ac_status" >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
89029156 if (exit $ac_status) && test -s "$ac_outfile"; then
89039157 # The compiler can only warn and ignore the option if not recognized
89049158 # So say no if there are warnings other than the usual output.
8905 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
89069160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
89079161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
89089162 lt_cv_prog_compiler_pic_works=yes
89319185
89329186
89339187
9188
9189
9190
9191
9192
89349193 #
89359194 # Check to make sure the static flag actually works.
89369195 #
89379196 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
89389197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
89399198 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8940 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9199 if ${lt_cv_prog_compiler_static_works+:} false; then :
89419200 $as_echo_n "(cached) " >&6
89429201 else
89439202 lt_cv_prog_compiler_static_works=no
89509209 if test -s conftest.err; then
89519210 # Append any errors to the config.log.
89529211 cat conftest.err 1>&5
8953 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
89549213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
89559214 if diff conftest.exp conftest.er2 >/dev/null; then
89569215 lt_cv_prog_compiler_static_works=yes
89809239
89819240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
89829241 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9242 if ${lt_cv_prog_compiler_c_o+:} false; then :
89849243 $as_echo_n "(cached) " >&6
89859244 else
89869245 lt_cv_prog_compiler_c_o=no
89999258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
90009259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
90019260 -e 's:$: $lt_compiler_flag:'`
9002 (eval echo "\"\$as_me:9003: $lt_compile\"" >&5)
9261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
90039262 (eval "$lt_compile" 2>out/conftest.err)
90049263 ac_status=$?
90059264 cat out/conftest.err >&5
9006 echo "$as_me:9007: \$? = $ac_status" >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90079266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
90089267 then
90099268 # The compiler can only warn and ignore the option if not recognized
90109269 # So say no if there are warnings
9011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
90129271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
90139272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
90149273 lt_cv_prog_compiler_c_o=yes
90359294
90369295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
90379296 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9038 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9297 if ${lt_cv_prog_compiler_c_o+:} false; then :
90399298 $as_echo_n "(cached) " >&6
90409299 else
90419300 lt_cv_prog_compiler_c_o=no
90549313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
90559314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
90569315 -e 's:$: $lt_compiler_flag:'`
9057 (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
9316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
90589317 (eval "$lt_compile" 2>out/conftest.err)
90599318 ac_status=$?
90609319 cat out/conftest.err >&5
9061 echo "$as_me:9062: \$? = $ac_status" >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90629321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
90639322 then
90649323 # The compiler can only warn and ignore the option if not recognized
90659324 # So say no if there are warnings
9066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
90679326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
90689327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
90699328 lt_cv_prog_compiler_c_o=yes
91299388 hardcode_direct=no
91309389 hardcode_direct_absolute=no
91319390 hardcode_libdir_flag_spec=
9132 hardcode_libdir_flag_spec_ld=
91339391 hardcode_libdir_separator=
91349392 hardcode_minus_L=no
91359393 hardcode_shlibpath_var=unsupported
91739431 openbsd*)
91749432 with_gnu_ld=no
91759433 ;;
9176 linux* | k*bsd*-gnu)
9434 linux* | k*bsd*-gnu | gnu*)
91779435 link_all_deplibs=no
91789436 ;;
91799437 esac
91809438
91819439 ld_shlibs=yes
9440
9441 # On some targets, GNU ld is compatible enough with the native linker
9442 # that we're better off using the native interface for both.
9443 lt_use_gnu_ld_interface=no
91829444 if test "$with_gnu_ld" = yes; then
9445 case $host_os in
9446 aix*)
9447 # The AIX port of GNU ld has always aspired to compatibility
9448 # with the native linker. However, as the warning in the GNU ld
9449 # block says, versions before 2.19.5* couldn't really create working
9450 # shared libraries, regardless of the interface used.
9451 case `$LD -v 2>&1` in
9452 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9453 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9454 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9455 *)
9456 lt_use_gnu_ld_interface=yes
9457 ;;
9458 esac
9459 ;;
9460 *)
9461 lt_use_gnu_ld_interface=yes
9462 ;;
9463 esac
9464 fi
9465
9466 if test "$lt_use_gnu_ld_interface" = yes; then
91839467 # If archive_cmds runs LD, not CC, wlarc should be empty
91849468 wlarc='${wl}'
91859469
92139497 ld_shlibs=no
92149498 cat <<_LT_EOF 1>&2
92159499
9216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9500 *** Warning: the GNU linker, at least up to release 2.19, is reported
92179501 *** to be unable to reliably create shared libraries on AIX.
92189502 *** Therefore, libtool is disabling shared libraries support. If you
9219 *** really care for shared libraries, you may want to modify your PATH
9220 *** so that a non-GNU linker is found, and then restart.
9503 *** really care for shared libraries, you may want to install binutils
9504 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9505 *** You will then need to restart the configuration process.
92219506
92229507 _LT_EOF
92239508 fi
92539538 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
92549539 # as there is no search path for DLLs.
92559540 hardcode_libdir_flag_spec='-L$libdir'
9541 export_dynamic_flag_spec='${wl}--export-all-symbols'
92569542 allow_undefined_flag=unsupported
92579543 always_export_symbols=no
92589544 enable_shared_with_static_runtimes=yes
9259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9546 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
92609547
92619548 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
92629549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
92749561 fi
92759562 ;;
92769563
9564 haiku*)
9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566 link_all_deplibs=yes
9567 ;;
9568
92779569 interix[3-9]*)
92789570 hardcode_direct=no
92799571 hardcode_shlibpath_var=no
92999591 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
93009592 && test "$tmp_diet" = no
93019593 then
9302 tmp_addflag=
9594 tmp_addflag=' $pic_flag'
93039595 tmp_sharedflag='-shared'
93049596 case $cc_basename,$host_cpu in
93059597 pgcc*) # Portland Group C compiler
9306 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9598 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
93079599 tmp_addflag=' $pic_flag'
93089600 ;;
9309 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9310 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9601 pgf77* | pgf90* | pgf95* | pgfortran*)
9602 # Portland Group f77 and f90 compilers
9603 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
93119604 tmp_addflag=' $pic_flag -Mnomain' ;;
93129605 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
93139606 tmp_addflag=' -i_dynamic' ;;
93189611 lf95*) # Lahey Fortran 8.1
93199612 whole_archive_flag_spec=
93209613 tmp_sharedflag='--shared' ;;
9321 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9614 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
93229615 tmp_sharedflag='-qmkshrobj'
93239616 tmp_addflag= ;;
9617 nvcc*) # Cuda Compiler Driver 2.2
9618 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9619 compiler_needs_object=yes
9620 ;;
93249621 esac
93259622 case `$CC -V 2>&1 | sed 5q` in
93269623 *Sun\ C*) # Sun C 5.9
9327 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9624 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
93289625 compiler_needs_object=yes
93299626 tmp_sharedflag='-G' ;;
93309627 *Sun\ F*) # Sun Fortran 8.3
93409637 fi
93419638
93429639 case $cc_basename in
9343 xlf*)
9640 xlf* | bgf* | bgxlf* | mpixlf*)
93449641 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
93459642 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9346 hardcode_libdir_flag_spec=
9347 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9348 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9644 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
93499645 if test "x$supports_anon_versioning" = xyes; then
93509646 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
93519647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
93529648 echo "local: *; };" >> $output_objdir/$libname.ver~
9353 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9649 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
93549650 fi
93559651 ;;
93569652 esac
93649660 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
93659661 wlarc=
93669662 else
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
93699665 fi
93709666 ;;
93719667
93839679
93849680 _LT_EOF
93859681 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
93889684 else
93899685 ld_shlibs=no
93909686 fi
94309726
94319727 *)
94329728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9729 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
94359731 else
94369732 ld_shlibs=no
94379733 fi
94719767 else
94729768 # If we're using GNU nm, then we don't want the "-C" option.
94739769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9770 # Also, AIX nm treats weak defined symbols like other global
9771 # defined symbols, whereas GNU nm marks them as "W".
94749772 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9475 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9773 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
94769774 else
94779775 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
94789776 fi
95609858 allow_undefined_flag='-berok'
95619859 # Determine the default libpath from the value encoded in an
95629860 # empty executable.
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 if test "${lt_cv_aix_libpath+set}" = set; then
9862 aix_libpath=$lt_cv_aix_libpath
9863 else
9864 if ${lt_cv_aix_libpath_+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95649868 /* end confdefs.h. */
95659869
95669870 int
95739877 _ACEOF
95749878 if ac_fn_c_try_link "$LINENO"; then :
95759879
9576 lt_aix_libpath_sed='
9577 /Import File Strings/,/^$/ {
9578 /^0/ {
9579 s/^0 *\(.*\)$/\1/
9580 p
9581 }
9582 }'
9583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 # Check for a 64-bit object if we didn't find anything.
9585 if test -z "$aix_libpath"; then
9586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587 fi
9880 lt_aix_libpath_sed='
9881 /Import File Strings/,/^$/ {
9882 /^0/ {
9883 s/^0 *\([^ ]*\) *$/\1/
9884 p
9885 }
9886 }'
9887 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9888 # Check for a 64-bit object if we didn't find anything.
9889 if test -z "$lt_cv_aix_libpath_"; then
9890 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9891 fi
95889892 fi
95899893 rm -f core conftest.err conftest.$ac_objext \
95909894 conftest$ac_exeext conftest.$ac_ext
9591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9895 if test -z "$lt_cv_aix_libpath_"; then
9896 lt_cv_aix_libpath_="/usr/lib:/lib"
9897 fi
9898
9899 fi
9900
9901 aix_libpath=$lt_cv_aix_libpath_
9902 fi
95929903
95939904 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9594 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9905 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
95959906 else
95969907 if test "$host_cpu" = ia64; then
95979908 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
96009911 else
96019912 # Determine the default libpath from the value encoded in an
96029913 # empty executable.
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 if test "${lt_cv_aix_libpath+set}" = set; then
9915 aix_libpath=$lt_cv_aix_libpath
9916 else
9917 if ${lt_cv_aix_libpath_+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96049921 /* end confdefs.h. */
96059922
96069923 int
96139930 _ACEOF
96149931 if ac_fn_c_try_link "$LINENO"; then :
96159932
9616 lt_aix_libpath_sed='
9617 /Import File Strings/,/^$/ {
9618 /^0/ {
9619 s/^0 *\(.*\)$/\1/
9620 p
9621 }
9622 }'
9623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624 # Check for a 64-bit object if we didn't find anything.
9625 if test -z "$aix_libpath"; then
9626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627 fi
9933 lt_aix_libpath_sed='
9934 /Import File Strings/,/^$/ {
9935 /^0/ {
9936 s/^0 *\([^ ]*\) *$/\1/
9937 p
9938 }
9939 }'
9940 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9941 # Check for a 64-bit object if we didn't find anything.
9942 if test -z "$lt_cv_aix_libpath_"; then
9943 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9944 fi
96289945 fi
96299946 rm -f core conftest.err conftest.$ac_objext \
96309947 conftest$ac_exeext conftest.$ac_ext
9631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9948 if test -z "$lt_cv_aix_libpath_"; then
9949 lt_cv_aix_libpath_="/usr/lib:/lib"
9950 fi
9951
9952 fi
9953
9954 aix_libpath=$lt_cv_aix_libpath_
9955 fi
96329956
96339957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
96349958 # Warning - without using the other run time loading flags,
96359959 # -berok will link without error, but may produce a broken library.
96369960 no_undefined_flag=' ${wl}-bernotok'
96379961 allow_undefined_flag=' ${wl}-berok'
9638 # Exported symbols can be pulled into shared objects from archives
9639 whole_archive_flag_spec='$convenience'
9962 if test "$with_gnu_ld" = yes; then
9963 # We only use this code for GNU lds that support --whole-archive.
9964 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9965 else
9966 # Exported symbols can be pulled into shared objects from archives
9967 whole_archive_flag_spec='$convenience'
9968 fi
96409969 archive_cmds_need_lc=yes
96419970 # This is similar to how AIX traditionally builds its shared libraries.
96429971 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
96689997 # Microsoft Visual C++.
96699998 # hardcode_libdir_flag_spec is actually meaningless, as there is
96709999 # no search path for DLLs.
9671 hardcode_libdir_flag_spec=' '
9672 allow_undefined_flag=unsupported
9673 # Tell ltmain to make .lib files, not .a files.
9674 libext=lib
9675 # Tell ltmain to make .dll files, not .so files.
9676 shrext_cmds=".dll"
9677 # FIXME: Setting linknames here is a bad hack.
9678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9679 # The linker will automatically build a .lib file if we build a DLL.
9680 old_archive_from_new_cmds='true'
9681 # FIXME: Should let the user specify the lib program.
9682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683 fix_srcfile_path='`cygpath -w "$srcfile"`'
9684 enable_shared_with_static_runtimes=yes
10000 case $cc_basename in
10001 cl*)
10002 # Native MSVC
10003 hardcode_libdir_flag_spec=' '
10004 allow_undefined_flag=unsupported
10005 always_export_symbols=yes
10006 file_list_spec='@'
10007 # Tell ltmain to make .lib files, not .a files.
10008 libext=lib
10009 # Tell ltmain to make .dll files, not .so files.
10010 shrext_cmds=".dll"
10011 # FIXME: Setting linknames here is a bad hack.
10012 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10013 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10014 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10015 else
10016 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10017 fi~
10018 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10019 linknames='
10020 # The linker will not automatically build a static lib if we build a DLL.
10021 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10022 enable_shared_with_static_runtimes=yes
10023 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10025 # Don't use ranlib
10026 old_postinstall_cmds='chmod 644 $oldlib'
10027 postlink_cmds='lt_outputfile="@OUTPUT@"~
10028 lt_tool_outputfile="@TOOL_OUTPUT@"~
10029 case $lt_outputfile in
10030 *.exe|*.EXE) ;;
10031 *)
10032 lt_outputfile="$lt_outputfile.exe"
10033 lt_tool_outputfile="$lt_tool_outputfile.exe"
10034 ;;
10035 esac~
10036 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10037 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10038 $RM "$lt_outputfile.manifest";
10039 fi'
10040 ;;
10041 *)
10042 # Assume MSVC wrapper
10043 hardcode_libdir_flag_spec=' '
10044 allow_undefined_flag=unsupported
10045 # Tell ltmain to make .lib files, not .a files.
10046 libext=lib
10047 # Tell ltmain to make .dll files, not .so files.
10048 shrext_cmds=".dll"
10049 # FIXME: Setting linknames here is a bad hack.
10050 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10051 # The linker will automatically build a .lib file if we build a DLL.
10052 old_archive_from_new_cmds='true'
10053 # FIXME: Should let the user specify the lib program.
10054 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10055 enable_shared_with_static_runtimes=yes
10056 ;;
10057 esac
968510058 ;;
968610059
968710060 darwin* | rhapsody*)
969110064 hardcode_direct=no
969210065 hardcode_automatic=yes
969310066 hardcode_shlibpath_var=unsupported
9694 whole_archive_flag_spec=''
10067 if test "$lt_cv_ld_force_load" = "yes"; then
10068 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10069
10070 else
10071 whole_archive_flag_spec=''
10072 fi
969510073 link_all_deplibs=yes
969610074 allow_undefined_flag="$_lt_dar_allow_undefined"
969710075 case $cc_basename in
969910077 *) _lt_dar_can_shared=$GCC ;;
970010078 esac
970110079 if test "$_lt_dar_can_shared" = "yes"; then
9702 output_verbose_link_cmd=echo
10080 output_verbose_link_cmd=func_echo_all
970310081 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
970410082 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
970510083 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
971510093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
971610094 hardcode_libdir_flag_spec='-L$libdir'
971710095 hardcode_shlibpath_var=no
9718 ;;
9719
9720 freebsd1*)
9721 ld_shlibs=no
972210096 ;;
972310097
972410098 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
973310107 ;;
973410108
973510109 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9736 freebsd2*)
10110 freebsd2.*)
973710111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
973810112 hardcode_direct=yes
973910113 hardcode_minus_L=yes
974210116
974310117 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
974410118 freebsd* | dragonfly*)
9745 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
974610120 hardcode_libdir_flag_spec='-R$libdir'
974710121 hardcode_direct=yes
974810122 hardcode_shlibpath_var=no
975010124
975110125 hpux9*)
975210126 if test "$GCC" = yes; then
9753 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10127 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
975410128 else
975510129 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
975610130 fi
976510139 ;;
976610140
976710141 hpux10*)
9768 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10142 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10143 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
977010144 else
977110145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
977210146 fi
977310147 if test "$with_gnu_ld" = no; then
977410148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9775 hardcode_libdir_flag_spec_ld='+b $libdir'
977610149 hardcode_libdir_separator=:
977710150 hardcode_direct=yes
977810151 hardcode_direct_absolute=yes
978410157 ;;
978510158
978610159 hpux11*)
9787 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10160 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
978810161 case $host_cpu in
978910162 hppa*64*)
979010163 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
979110164 ;;
979210165 ia64*)
9793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
979410167 ;;
979510168 *)
9796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
979710170 ;;
979810171 esac
979910172 else
980510178 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
980610179 ;;
980710180 *)
9808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10181
10182 # Older versions of the 11.00 compiler do not understand -b yet
10183 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10185 $as_echo_n "checking if $CC understands -b... " >&6; }
10186 if ${lt_cv_prog_compiler__b+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 lt_cv_prog_compiler__b=no
10190 save_LDFLAGS="$LDFLAGS"
10191 LDFLAGS="$LDFLAGS -b"
10192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10194 # The linker can only warn and ignore the option if not recognized
10195 # So say no if there are warnings
10196 if test -s conftest.err; then
10197 # Append any errors to the config.log.
10198 cat conftest.err 1>&5
10199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10201 if diff conftest.exp conftest.er2 >/dev/null; then
10202 lt_cv_prog_compiler__b=yes
10203 fi
10204 else
10205 lt_cv_prog_compiler__b=yes
10206 fi
10207 fi
10208 $RM -r conftest*
10209 LDFLAGS="$save_LDFLAGS"
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10213 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10214
10215 if test x"$lt_cv_prog_compiler__b" = xyes; then
10216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10217 else
10218 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10219 fi
10220
980910221 ;;
981010222 esac
981110223 fi
983310245
983410246 irix5* | irix6* | nonstopux*)
983510247 if test "$GCC" = yes; then
9836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
983710249 # Try to use the -exported_symbol ld option, if it does not
983810250 # work, assume that -exports_file does not work either and
983910251 # implicitly export all symbols.
9840 save_LDFLAGS="$LDFLAGS"
9841 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 # This should be the same for all languages, so no per-tag cache variable.
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10254 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10255 if ${lt_cv_irix_exported_symbol+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 save_LDFLAGS="$LDFLAGS"
10259 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
984310261 /* end confdefs.h. */
9844 int foo(void) {}
10262 int foo (void) { return 0; }
984510263 _ACEOF
984610264 if ac_fn_c_try_link "$LINENO"; then :
9847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9848
10265 lt_cv_irix_exported_symbol=yes
10266 else
10267 lt_cv_irix_exported_symbol=no
984910268 fi
985010269 rm -f core conftest.err conftest.$ac_objext \
985110270 conftest$ac_exeext conftest.$ac_ext
9852 LDFLAGS="$save_LDFLAGS"
10271 LDFLAGS="$save_LDFLAGS"
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10274 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10275 if test "$lt_cv_irix_exported_symbol" = yes; then
10276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10277 fi
985310278 else
9854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
985610281 fi
985710282 archive_cmds_need_lc='no'
985810283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
991410339 hardcode_libdir_flag_spec='-L$libdir'
991510340 hardcode_minus_L=yes
991610341 allow_undefined_flag=unsupported
9917 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10342 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
991810343 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
991910344 ;;
992010345
992110346 osf3*)
992210347 if test "$GCC" = yes; then
992310348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9924 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10349 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
992510350 else
992610351 allow_undefined_flag=' -expect_unresolved \*'
9927 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10352 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
992810353 fi
992910354 archive_cmds_need_lc='no'
993010355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
993410359 osf4* | osf5*) # as osf3* with the addition of -msym flag
993510360 if test "$GCC" = yes; then
993610361 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9937 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10362 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
993810363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
993910364 else
994010365 allow_undefined_flag=' -expect_unresolved \*'
9941 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10366 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
994210367 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9943 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10368 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
994410369
994510370 # Both c and cxx compiler support -rpath directly
994610371 hardcode_libdir_flag_spec='-rpath $libdir'
995310378 no_undefined_flag=' -z defs'
995410379 if test "$GCC" = yes; then
995510380 wlarc='${wl}'
9956 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10381 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
995710382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9958 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10383 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
995910384 else
996010385 case `$CC -V 2>&1` in
996110386 *"Compilers 5.0"*)
1014310568 # to ld, don't add -lc before -lgcc.
1014410569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1014510570 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10146 $RM conftest*
10147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10148
10149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10571 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 $RM conftest*
10575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10576
10577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1015010578 (eval $ac_compile) 2>&5
1015110579 ac_status=$?
1015210580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1015310581 test $ac_status = 0; } 2>conftest.err; then
10154 soname=conftest
10155 lib=conftest
10156 libobjs=conftest.$ac_objext
10157 deplibs=
10158 wl=$lt_prog_compiler_wl
10159 pic_flag=$lt_prog_compiler_pic
10160 compiler_flags=-v
10161 linker_flags=-v
10162 verstring=
10163 output_objdir=.
10164 libname=conftest
10165 lt_save_allow_undefined_flag=$allow_undefined_flag
10166 allow_undefined_flag=
10167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10582 soname=conftest
10583 lib=conftest
10584 libobjs=conftest.$ac_objext
10585 deplibs=
10586 wl=$lt_prog_compiler_wl
10587 pic_flag=$lt_prog_compiler_pic
10588 compiler_flags=-v
10589 linker_flags=-v
10590 verstring=
10591 output_objdir=.
10592 libname=conftest
10593 lt_save_allow_undefined_flag=$allow_undefined_flag
10594 allow_undefined_flag=
10595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1016810596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1016910597 ac_status=$?
1017010598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1017110599 test $ac_status = 0; }
10172 then
10173 archive_cmds_need_lc=no
10174 else
10175 archive_cmds_need_lc=yes
10176 fi
10177 allow_undefined_flag=$lt_save_allow_undefined_flag
10178 else
10179 cat conftest.err 1>&5
10180 fi
10181 $RM conftest*
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10183 $as_echo "$archive_cmds_need_lc" >&6; }
10600 then
10601 lt_cv_archive_cmds_need_lc=no
10602 else
10603 lt_cv_archive_cmds_need_lc=yes
10604 fi
10605 allow_undefined_flag=$lt_save_allow_undefined_flag
10606 else
10607 cat conftest.err 1>&5
10608 fi
10609 $RM conftest*
10610
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10613 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10614 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1018410615 ;;
1018510616 esac
1018610617 fi
1033810769
1033910770
1034010771
10341
10342
10343
10344
10345
1034610772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1034710773 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1034810774
1035110777 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1035210778 *) lt_awk_arg="/^libraries:/" ;;
1035310779 esac
10354 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10355 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10780 case $host_os in
10781 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10782 *) lt_sed_strip_eq="s,=/,/,g" ;;
10783 esac
10784 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10785 case $lt_search_path_spec in
10786 *\;*)
1035610787 # if the path contains ";" then we assume it to be the separator
1035710788 # otherwise default to the standard path separator (i.e. ":") - it is
1035810789 # assumed that no part of a normal pathname contains ";" but that should
1035910790 # okay in the real world where ";" in dirpaths is itself problematic.
10360 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10361 else
10362 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10363 fi
10791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10792 ;;
10793 *)
10794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10795 ;;
10796 esac
1036410797 # Ok, now we have the path, separated by spaces, we can step through it
1036510798 # and add multilib dir if necessary.
1036610799 lt_tmp_lt_search_path_spec=
1037310806 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1037410807 fi
1037510808 done
10376 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10809 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1037710810 BEGIN {RS=" "; FS="/|\n";} {
1037810811 lt_foo="";
1037910812 lt_count=0;
1039310826 if (lt_foo != "") { lt_freq[lt_foo]++; }
1039410827 if (lt_freq[lt_foo] == 1) { print lt_foo; }
1039510828 }'`
10396 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10829 # AWK program above erroneously prepends '/' to C:/dos/paths
10830 # for these hosts.
10831 case $host_os in
10832 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10833 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10834 esac
10835 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1039710836 else
1039810837 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1039910838 fi
1041910858
1042010859 case $host_os in
1042110860 aix3*)
10422 version_type=linux
10861 version_type=linux # correct to gnu/linux during the next big refactor
1042310862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1042410863 shlibpath_var=LIBPATH
1042510864
1042810867 ;;
1042910868
1043010869 aix[4-9]*)
10431 version_type=linux
10870 version_type=linux # correct to gnu/linux during the next big refactor
1043210871 need_lib_prefix=no
1043310872 need_version=no
1043410873 hardcode_into_libs=yes
1048110920 m68k)
1048210921 library_names_spec='$libname.ixlibrary $libname.a'
1048310922 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10484 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10923 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1048510924 ;;
1048610925 esac
1048710926 ;;
1049310932 ;;
1049410933
1049510934 bsdi[45]*)
10496 version_type=linux
10935 version_type=linux # correct to gnu/linux during the next big refactor
1049710936 need_version=no
1049810937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1049910938 soname_spec='${libname}${release}${shared_ext}$major'
1051210951 need_version=no
1051310952 need_lib_prefix=no
1051410953
10515 case $GCC,$host_os in
10516 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10954 case $GCC,$cc_basename in
10955 yes,*)
10956 # gcc
1051710957 library_names_spec='$libname.dll.a'
1051810958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1051910959 postinstall_cmds='base_file=`basename \${file}`~
1053410974 cygwin*)
1053510975 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1053610976 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10977
10978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1053810979 ;;
1053910980 mingw* | cegcc*)
1054010981 # MinGW DLLs use traditional 'lib' prefix
1054110982 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10542 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10543 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10544 # It is most probably a Windows format PATH printed by
10545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10546 # path with ; separators, and with drive letters. We can handle the
10547 # drive letters (cygwin fileutils understands them), so leave them,
10548 # especially as we might pass files found there to a mingw objdump,
10549 # which wouldn't understand a cygwinified path. Ahh.
10550 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10551 else
10552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10553 fi
1055410983 ;;
1055510984 pw32*)
1055610985 # pw32 DLLs use 'pw' prefix rather than 'lib'
1055710986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1055810987 ;;
1055910988 esac
10989 dynamic_linker='Win32 ld.exe'
1056010990 ;;
1056110991
10992 *,cl*)
10993 # Native MSVC
10994 libname_spec='$name'
10995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10996 library_names_spec='${libname}.dll.lib'
10997
10998 case $build_os in
10999 mingw*)
11000 sys_lib_search_path_spec=
11001 lt_save_ifs=$IFS
11002 IFS=';'
11003 for lt_path in $LIB
11004 do
11005 IFS=$lt_save_ifs
11006 # Let DOS variable expansion print the short 8.3 style file name.
11007 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11008 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11009 done
11010 IFS=$lt_save_ifs
11011 # Convert to MSYS style.
11012 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11013 ;;
11014 cygwin*)
11015 # Convert to unix form, then to dos form, then back to unix form
11016 # but this time dos style (no spaces!) so that the unix form looks
11017 # like /cygdrive/c/PROGRA~1:/cygdr...
11018 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11019 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11020 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11021 ;;
11022 *)
11023 sys_lib_search_path_spec="$LIB"
11024 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11025 # It is most probably a Windows format PATH.
11026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11027 else
11028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11029 fi
11030 # FIXME: find the short name or the path components, as spaces are
11031 # common. (e.g. "Program Files" -> "PROGRA~1")
11032 ;;
11033 esac
11034
11035 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11036 postinstall_cmds='base_file=`basename \${file}`~
11037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11038 dldir=$destdir/`dirname \$dlpath`~
11039 test -d \$dldir || mkdir -p \$dldir~
11040 $install_prog $dir/$dlname \$dldir/$dlname'
11041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11042 dlpath=$dir/\$dldll~
11043 $RM \$dlpath'
11044 shlibpath_overrides_runpath=yes
11045 dynamic_linker='Win32 link.exe'
11046 ;;
11047
1056211048 *)
11049 # Assume MSVC wrapper
1056311050 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11051 dynamic_linker='Win32 ld.exe'
1056411052 ;;
1056511053 esac
10566 dynamic_linker='Win32 ld.exe'
1056711054 # FIXME: first we should search . and the directory the executable is in
1056811055 shlibpath_var=PATH
1056911056 ;;
1058411071 ;;
1058511072
1058611073 dgux*)
10587 version_type=linux
11074 version_type=linux # correct to gnu/linux during the next big refactor
1058811075 need_lib_prefix=no
1058911076 need_version=no
1059011077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1059111078 soname_spec='${libname}${release}${shared_ext}$major'
1059211079 shlibpath_var=LD_LIBRARY_PATH
10593 ;;
10594
10595 freebsd1*)
10596 dynamic_linker=no
1059711080 ;;
1059811081
1059911082 freebsd* | dragonfly*)
1060311086 objformat=`/usr/bin/objformat`
1060411087 else
1060511088 case $host_os in
10606 freebsd[123]*) objformat=aout ;;
11089 freebsd[23].*) objformat=aout ;;
1060711090 *) objformat=elf ;;
1060811091 esac
1060911092 fi
1062111104 esac
1062211105 shlibpath_var=LD_LIBRARY_PATH
1062311106 case $host_os in
10624 freebsd2*)
11107 freebsd2.*)
1062511108 shlibpath_overrides_runpath=yes
1062611109 ;;
1062711110 freebsd3.[01]* | freebsdelf3.[01]*)
1064011123 esac
1064111124 ;;
1064211125
10643 gnu*)
10644 version_type=linux
11126 haiku*)
11127 version_type=linux # correct to gnu/linux during the next big refactor
1064511128 need_lib_prefix=no
1064611129 need_version=no
11130 dynamic_linker="$host_os runtime_loader"
1064711131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1064811132 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_var=LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11135 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1065011136 hardcode_into_libs=yes
1065111137 ;;
1065211138
1069211178 soname_spec='${libname}${release}${shared_ext}$major'
1069311179 ;;
1069411180 esac
10695 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11181 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1069611182 postinstall_cmds='chmod 555 $lib'
11183 # or fails outright, so override atomically:
11184 install_override_mode=555
1069711185 ;;
1069811186
1069911187 interix[3-9]*)
10700 version_type=linux
11188 version_type=linux # correct to gnu/linux during the next big refactor
1070111189 need_lib_prefix=no
1070211190 need_version=no
1070311191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1071311201 nonstopux*) version_type=nonstopux ;;
1071411202 *)
1071511203 if test "$lt_cv_prog_gnu_ld" = yes; then
10716 version_type=linux
11204 version_type=linux # correct to gnu/linux during the next big refactor
1071711205 else
1071811206 version_type=irix
1071911207 fi ;;
1075011238 dynamic_linker=no
1075111239 ;;
1075211240
10753 # This must be Linux ELF.
10754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10755 version_type=linux
11241 # This must be glibc/ELF.
11242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11243 version_type=linux # correct to gnu/linux during the next big refactor
1075611244 need_lib_prefix=no
1075711245 need_version=no
1075811246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1076011248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1076111249 shlibpath_var=LD_LIBRARY_PATH
1076211250 shlibpath_overrides_runpath=no
11251
1076311252 # Some binutils ld are patched to set DT_RUNPATH
10764 save_LDFLAGS=$LDFLAGS
10765 save_libdir=$libdir
10766 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10767 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 lt_cv_shlibpath_overrides_runpath=no
11257 save_LDFLAGS=$LDFLAGS
11258 save_libdir=$libdir
11259 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11260 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1076911262 /* end confdefs.h. */
1077011263
1077111264 int
1077811271 _ACEOF
1077911272 if ac_fn_c_try_link "$LINENO"; then :
1078011273 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10781 shlibpath_overrides_runpath=yes
11274 lt_cv_shlibpath_overrides_runpath=yes
1078211275 fi
1078311276 fi
1078411277 rm -f core conftest.err conftest.$ac_objext \
1078511278 conftest$ac_exeext conftest.$ac_ext
10786 LDFLAGS=$save_LDFLAGS
10787 libdir=$save_libdir
11279 LDFLAGS=$save_LDFLAGS
11280 libdir=$save_libdir
11281
11282 fi
11283
11284 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1078811285
1078911286 # This implies no fast_install, which is unacceptable.
1079011287 # Some rework will be needed to allow for fast_install
1079311290
1079411291 # Append ld.so.conf contents to the search path
1079511292 if test -f /etc/ld.so.conf; then
10796 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11293 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1079711294 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1079811295 fi
1079911296
1083711334 ;;
1083811335
1083911336 newsos6)
10840 version_type=linux
11337 version_type=linux # correct to gnu/linux during the next big refactor
1084111338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1084211339 shlibpath_var=LD_LIBRARY_PATH
1084311340 shlibpath_overrides_runpath=yes
1090611403 ;;
1090711404
1090811405 solaris*)
10909 version_type=linux
11406 version_type=linux # correct to gnu/linux during the next big refactor
1091011407 need_lib_prefix=no
1091111408 need_version=no
1091211409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1093111428 ;;
1093211429
1093311430 sysv4 | sysv4.3*)
10934 version_type=linux
11431 version_type=linux # correct to gnu/linux during the next big refactor
1093511432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1093611433 soname_spec='${libname}${release}${shared_ext}$major'
1093711434 shlibpath_var=LD_LIBRARY_PATH
1095511452
1095611453 sysv4*MP*)
1095711454 if test -d /usr/nec ;then
10958 version_type=linux
11455 version_type=linux # correct to gnu/linux during the next big refactor
1095911456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1096011457 soname_spec='$libname${shared_ext}.$major'
1096111458 shlibpath_var=LD_LIBRARY_PATH
1098611483
1098711484 tpf*)
1098811485 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10989 version_type=linux
11486 version_type=linux # correct to gnu/linux during the next big refactor
1099011487 need_lib_prefix=no
1099111488 need_version=no
1099211489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1099611493 ;;
1099711494
1099811495 uts4*)
10999 version_type=linux
11496 version_type=linux # correct to gnu/linux during the next big refactor
1100011497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1100111498 soname_spec='${libname}${release}${shared_ext}$major'
1100211499 shlibpath_var=LD_LIBRARY_PATH
1102111518 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1102211519 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1102311520 fi
11521
11522
11523
11524
11525
1102411526
1102511527
1102611528
1118011682 # if libdl is installed we need to link against it
1118111683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1118211684 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11685 if ${ac_cv_lib_dl_dlopen+:} false; then :
1118411686 $as_echo_n "(cached) " >&6
1118511687 else
1118611688 ac_check_lib_save_LIBS=$LIBS
1121411716 fi
1121511717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1121611718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11217 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11719 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1121811720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1121911721 else
1122011722
1122811730
1122911731 *)
1123011732 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11231 if test "x$ac_cv_func_shl_load" = x""yes; then :
11733 if test "x$ac_cv_func_shl_load" = xyes; then :
1123211734 lt_cv_dlopen="shl_load"
1123311735 else
1123411736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1123511737 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11236 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11738 if ${ac_cv_lib_dld_shl_load+:} false; then :
1123711739 $as_echo_n "(cached) " >&6
1123811740 else
1123911741 ac_check_lib_save_LIBS=$LIBS
1126711769 fi
1126811770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1126911771 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11270 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11772 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1127111773 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1127211774 else
1127311775 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11274 if test "x$ac_cv_func_dlopen" = x""yes; then :
11776 if test "x$ac_cv_func_dlopen" = xyes; then :
1127511777 lt_cv_dlopen="dlopen"
1127611778 else
1127711779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1127811780 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11781 if ${ac_cv_lib_dl_dlopen+:} false; then :
1128011782 $as_echo_n "(cached) " >&6
1128111783 else
1128211784 ac_check_lib_save_LIBS=$LIBS
1131011812 fi
1131111813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1131211814 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11313 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11815 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1131411816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1131511817 else
1131611818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1131711819 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11318 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11820 if ${ac_cv_lib_svld_dlopen+:} false; then :
1131911821 $as_echo_n "(cached) " >&6
1132011822 else
1132111823 ac_check_lib_save_LIBS=$LIBS
1134911851 fi
1135011852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1135111853 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11352 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11854 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1135311855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1135411856 else
1135511857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1135611858 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11357 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11859 if ${ac_cv_lib_dld_dld_link+:} false; then :
1135811860 $as_echo_n "(cached) " >&6
1135911861 else
1136011862 ac_check_lib_save_LIBS=$LIBS
1138811890 fi
1138911891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1139011892 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11391 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11893 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1139211894 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1139311895 fi
1139411896
1142911931
1143011932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1143111933 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11432 if test "${lt_cv_dlopen_self+set}" = set; then :
11934 if ${lt_cv_dlopen_self+:} false; then :
1143311935 $as_echo_n "(cached) " >&6
1143411936 else
1143511937 if test "$cross_compiling" = yes; then :
1143811940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1143911941 lt_status=$lt_dlunknown
1144011942 cat > conftest.$ac_ext <<_LT_EOF
11441 #line 11442 "configure"
11943 #line $LINENO "configure"
1144211944 #include "confdefs.h"
1144311945
1144411946 #if HAVE_DLFCN_H
1147911981 # endif
1148011982 #endif
1148111983
11482 void fnord() { int i=42;}
11984 /* When -fvisbility=hidden is used, assume the code has been annotated
11985 correspondingly for the symbols needed. */
11986 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11987 int fnord () __attribute__((visibility("default")));
11988 #endif
11989
11990 int fnord () { return 42; }
1148311991 int main ()
1148411992 {
1148511993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1148811996 if (self)
1148911997 {
1149011998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11491 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11999 else
12000 {
12001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12002 else puts (dlerror ());
12003 }
1149212004 /* dlclose (self); */
1149312005 }
1149412006 else
1152512037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1152612038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1152712039 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11528 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12040 if ${lt_cv_dlopen_self_static+:} false; then :
1152912041 $as_echo_n "(cached) " >&6
1153012042 else
1153112043 if test "$cross_compiling" = yes; then :
1153412046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1153512047 lt_status=$lt_dlunknown
1153612048 cat > conftest.$ac_ext <<_LT_EOF
11537 #line 11538 "configure"
12049 #line $LINENO "configure"
1153812050 #include "confdefs.h"
1153912051
1154012052 #if HAVE_DLFCN_H
1157512087 # endif
1157612088 #endif
1157712089
11578 void fnord() { int i=42;}
12090 /* When -fvisbility=hidden is used, assume the code has been annotated
12091 correspondingly for the symbols needed. */
12092 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12093 int fnord () __attribute__((visibility("default")));
12094 #endif
12095
12096 int fnord () { return 42; }
1157912097 int main ()
1158012098 {
1158112099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1158412102 if (self)
1158512103 {
1158612104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11587 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12105 else
12106 {
12107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12108 else puts (dlerror ());
12109 }
1158812110 /* dlclose (self); */
1158912111 }
1159012112 else
1174112263
1174212264 CC="$lt_save_CC"
1174312265
12266 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12267 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12268 (test "X$CXX" != "Xg++"))) ; then
12269 ac_ext=cpp
12270 ac_cpp='$CXXCPP $CPPFLAGS'
12271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12275 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12276 if test -z "$CXXCPP"; then
12277 if ${ac_cv_prog_CXXCPP+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 # Double quotes because CXXCPP needs to be expanded
12281 for CXXCPP in "$CXX -E" "/lib/cpp"
12282 do
12283 ac_preproc_ok=false
12284 for ac_cxx_preproc_warn_flag in '' yes
12285 do
12286 # Use a header file that comes with gcc, so configuring glibc
12287 # with a fresh cross-compiler works.
12288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12289 # <limits.h> exists even on freestanding compilers.
12290 # On the NeXT, cc -E runs the code through the compiler's parser,
12291 # not just through cpp. "Syntax error" is here to catch this case.
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294 #ifdef __STDC__
12295 # include <limits.h>
12296 #else
12297 # include <assert.h>
12298 #endif
12299 Syntax error
12300 _ACEOF
12301 if ac_fn_cxx_try_cpp "$LINENO"; then :
12302
12303 else
12304 # Broken: fails on valid input.
12305 continue
12306 fi
12307 rm -f conftest.err conftest.i conftest.$ac_ext
12308
12309 # OK, works on sane cases. Now check whether nonexistent headers
12310 # can be detected and how.
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313 #include <ac_nonexistent.h>
12314 _ACEOF
12315 if ac_fn_cxx_try_cpp "$LINENO"; then :
12316 # Broken: success on invalid input.
12317 continue
12318 else
12319 # Passes both tests.
12320 ac_preproc_ok=:
12321 break
12322 fi
12323 rm -f conftest.err conftest.i conftest.$ac_ext
12324
12325 done
12326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12327 rm -f conftest.i conftest.err conftest.$ac_ext
12328 if $ac_preproc_ok; then :
12329 break
12330 fi
12331
12332 done
12333 ac_cv_prog_CXXCPP=$CXXCPP
12334
12335 fi
12336 CXXCPP=$ac_cv_prog_CXXCPP
12337 else
12338 ac_cv_prog_CXXCPP=$CXXCPP
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12341 $as_echo "$CXXCPP" >&6; }
12342 ac_preproc_ok=false
12343 for ac_cxx_preproc_warn_flag in '' yes
12344 do
12345 # Use a header file that comes with gcc, so configuring glibc
12346 # with a fresh cross-compiler works.
12347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12348 # <limits.h> exists even on freestanding compilers.
12349 # On the NeXT, cc -E runs the code through the compiler's parser,
12350 # not just through cpp. "Syntax error" is here to catch this case.
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353 #ifdef __STDC__
12354 # include <limits.h>
12355 #else
12356 # include <assert.h>
12357 #endif
12358 Syntax error
12359 _ACEOF
12360 if ac_fn_cxx_try_cpp "$LINENO"; then :
12361
12362 else
12363 # Broken: fails on valid input.
12364 continue
12365 fi
12366 rm -f conftest.err conftest.i conftest.$ac_ext
12367
12368 # OK, works on sane cases. Now check whether nonexistent headers
12369 # can be detected and how.
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372 #include <ac_nonexistent.h>
12373 _ACEOF
12374 if ac_fn_cxx_try_cpp "$LINENO"; then :
12375 # Broken: success on invalid input.
12376 continue
12377 else
12378 # Passes both tests.
12379 ac_preproc_ok=:
12380 break
12381 fi
12382 rm -f conftest.err conftest.i conftest.$ac_ext
12383
12384 done
12385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12386 rm -f conftest.i conftest.err conftest.$ac_ext
12387 if $ac_preproc_ok; then :
12388
12389 else
12390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12392 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12393 See \`config.log' for more details" "$LINENO" 5; }
12394 fi
12395
12396 ac_ext=c
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401
12402 else
12403 _lt_caught_CXX_error=yes
12404 fi
1174412405
1174512406 ac_ext=cpp
1174612407 ac_cpp='$CXXCPP $CPPFLAGS'
1175712418 hardcode_direct_CXX=no
1175812419 hardcode_direct_absolute_CXX=no
1175912420 hardcode_libdir_flag_spec_CXX=
11760 hardcode_libdir_flag_spec_ld_CXX=
1176112421 hardcode_libdir_separator_CXX=
1176212422 hardcode_minus_L_CXX=no
1176312423 hardcode_shlibpath_var_CXX=unsupported
1176712427 module_expsym_cmds_CXX=
1176812428 link_all_deplibs_CXX=unknown
1176912429 old_archive_cmds_CXX=$old_archive_cmds
12430 reload_flag_CXX=$reload_flag
12431 reload_cmds_CXX=$reload_cmds
1177012432 no_undefined_flag_CXX=
1177112433 whole_archive_flag_spec_CXX=
1177212434 enable_shared_with_static_runtimes_CXX=no
1182212484
1182312485 # Allow CC to be a program name with arguments.
1182412486 lt_save_CC=$CC
12487 lt_save_CFLAGS=$CFLAGS
1182512488 lt_save_LD=$LD
1182612489 lt_save_GCC=$GCC
1182712490 GCC=$GXX
1183912502 fi
1184012503 test -z "${LDCXX+set}" || LD=$LDCXX
1184112504 CC=${CXX-"c++"}
12505 CFLAGS=$CXXFLAGS
1184212506 compiler=$CC
1184312507 compiler_CXX=$CC
1184412508 for cc_temp in $compiler""; do
1184912513 *) break;;
1185012514 esac
1185112515 done
11852 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1185312517
1185412518
1185512519 if test -n "$compiler"; then
1191212576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
1191312577 $as_echo_n "checking for non-GNU ld... " >&6; }
1191412578 fi
11915 if test "${lt_cv_path_LD+set}" = set; then :
12579 if ${lt_cv_path_LD+:} false; then :
1191612580 $as_echo_n "(cached) " >&6
1191712581 else
1191812582 if test -z "$LD"; then
1194912613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1195012614 $as_echo "no" >&6; }
1195112615 fi
11952 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1195312617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
1195412618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11955 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12619 if ${lt_cv_prog_gnu_ld+:} false; then :
1195612620 $as_echo_n "(cached) " >&6
1195712621 else
1195812622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
1197812642 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1197912643 # archiving commands below assume that GNU ld is being used.
1198012644 if test "$with_gnu_ld" = yes; then
11981 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11982 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12645 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1198312647
1198412648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1198512649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1201112675 # Commands to make compiler produce verbose output that lists
1201212676 # what "hidden" libraries, object files and flags are used when
1201312677 # linking a shared library.
12014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1201512679
1201612680 else
1201712681 GXX=no
1212112785 allow_undefined_flag_CXX='-berok'
1212212786 # Determine the default libpath from the value encoded in an empty
1212312787 # executable.
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 if test "${lt_cv_aix_libpath+set}" = set; then
12789 aix_libpath=$lt_cv_aix_libpath
12790 else
12791 if ${lt_cv_aix_libpath__CXX+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1212512795 /* end confdefs.h. */
1212612796
1212712797 int
1213412804 _ACEOF
1213512805 if ac_fn_cxx_try_link "$LINENO"; then :
1213612806
12137 lt_aix_libpath_sed='
12138 /Import File Strings/,/^$/ {
12139 /^0/ {
12140 s/^0 *\(.*\)$/\1/
12141 p
12142 }
12143 }'
12144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12145 # Check for a 64-bit object if we didn't find anything.
12146 if test -z "$aix_libpath"; then
12147 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12148 fi
12807 lt_aix_libpath_sed='
12808 /Import File Strings/,/^$/ {
12809 /^0/ {
12810 s/^0 *\([^ ]*\) *$/\1/
12811 p
12812 }
12813 }'
12814 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12815 # Check for a 64-bit object if we didn't find anything.
12816 if test -z "$lt_cv_aix_libpath__CXX"; then
12817 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12818 fi
1214912819 fi
1215012820 rm -f core conftest.err conftest.$ac_objext \
1215112821 conftest$ac_exeext conftest.$ac_ext
12152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12822 if test -z "$lt_cv_aix_libpath__CXX"; then
12823 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12824 fi
12825
12826 fi
12827
12828 aix_libpath=$lt_cv_aix_libpath__CXX
12829 fi
1215312830
1215412831 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1215512832
12156 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12833 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1215712834 else
1215812835 if test "$host_cpu" = ia64; then
1215912836 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
1216212839 else
1216312840 # Determine the default libpath from the value encoded in an
1216412841 # empty executable.
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 if test "${lt_cv_aix_libpath+set}" = set; then
12843 aix_libpath=$lt_cv_aix_libpath
12844 else
12845 if ${lt_cv_aix_libpath__CXX+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1216612849 /* end confdefs.h. */
1216712850
1216812851 int
1217512858 _ACEOF
1217612859 if ac_fn_cxx_try_link "$LINENO"; then :
1217712860
12178 lt_aix_libpath_sed='
12179 /Import File Strings/,/^$/ {
12180 /^0/ {
12181 s/^0 *\(.*\)$/\1/
12182 p
12183 }
12184 }'
12185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12186 # Check for a 64-bit object if we didn't find anything.
12187 if test -z "$aix_libpath"; then
12188 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12189 fi
12861 lt_aix_libpath_sed='
12862 /Import File Strings/,/^$/ {
12863 /^0/ {
12864 s/^0 *\([^ ]*\) *$/\1/
12865 p
12866 }
12867 }'
12868 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12869 # Check for a 64-bit object if we didn't find anything.
12870 if test -z "$lt_cv_aix_libpath__CXX"; then
12871 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12872 fi
1219012873 fi
1219112874 rm -f core conftest.err conftest.$ac_objext \
1219212875 conftest$ac_exeext conftest.$ac_ext
12193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12876 if test -z "$lt_cv_aix_libpath__CXX"; then
12877 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12878 fi
12879
12880 fi
12881
12882 aix_libpath=$lt_cv_aix_libpath__CXX
12883 fi
1219412884
1219512885 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1219612886 # Warning - without using the other run time loading flags,
1219712887 # -berok will link without error, but may produce a broken library.
1219812888 no_undefined_flag_CXX=' ${wl}-bernotok'
1219912889 allow_undefined_flag_CXX=' ${wl}-berok'
12200 # Exported symbols can be pulled into shared objects from archives
12201 whole_archive_flag_spec_CXX='$convenience'
12890 if test "$with_gnu_ld" = yes; then
12891 # We only use this code for GNU lds that support --whole-archive.
12892 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12893 else
12894 # Exported symbols can be pulled into shared objects from archives
12895 whole_archive_flag_spec_CXX='$convenience'
12896 fi
1220212897 archive_cmds_need_lc_CXX=yes
1220312898 # This is similar to how AIX traditionally builds its shared
1220412899 # libraries.
1222812923 ;;
1222912924
1223012925 cygwin* | mingw* | pw32* | cegcc*)
12231 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12232 # as there is no search path for DLLs.
12233 hardcode_libdir_flag_spec_CXX='-L$libdir'
12234 allow_undefined_flag_CXX=unsupported
12235 always_export_symbols_CXX=no
12236 enable_shared_with_static_runtimes_CXX=yes
12237
12238 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12239 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'
12240 # If the export-symbols file already is a .def file (1st line
12241 # is EXPORTS), use it as is; otherwise, prepend...
12242 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12243 cp $export_symbols $output_objdir/$soname.def;
12244 else
12245 echo EXPORTS > $output_objdir/$soname.def;
12246 cat $export_symbols >> $output_objdir/$soname.def;
12247 fi~
12248 $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'
12249 else
12250 ld_shlibs_CXX=no
12251 fi
12252 ;;
12926 case $GXX,$cc_basename in
12927 ,cl* | no,cl*)
12928 # Native MSVC
12929 # hardcode_libdir_flag_spec is actually meaningless, as there is
12930 # no search path for DLLs.
12931 hardcode_libdir_flag_spec_CXX=' '
12932 allow_undefined_flag_CXX=unsupported
12933 always_export_symbols_CXX=yes
12934 file_list_spec_CXX='@'
12935 # Tell ltmain to make .lib files, not .a files.
12936 libext=lib
12937 # Tell ltmain to make .dll files, not .so files.
12938 shrext_cmds=".dll"
12939 # FIXME: Setting linknames here is a bad hack.
12940 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12941 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12942 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12943 else
12944 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12945 fi~
12946 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12947 linknames='
12948 # The linker will not automatically build a static lib if we build a DLL.
12949 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12950 enable_shared_with_static_runtimes_CXX=yes
12951 # Don't use ranlib
12952 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12953 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12954 lt_tool_outputfile="@TOOL_OUTPUT@"~
12955 case $lt_outputfile in
12956 *.exe|*.EXE) ;;
12957 *)
12958 lt_outputfile="$lt_outputfile.exe"
12959 lt_tool_outputfile="$lt_tool_outputfile.exe"
12960 ;;
12961 esac~
12962 func_to_tool_file "$lt_outputfile"~
12963 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12964 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12965 $RM "$lt_outputfile.manifest";
12966 fi'
12967 ;;
12968 *)
12969 # g++
12970 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12971 # as there is no search path for DLLs.
12972 hardcode_libdir_flag_spec_CXX='-L$libdir'
12973 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12974 allow_undefined_flag_CXX=unsupported
12975 always_export_symbols_CXX=no
12976 enable_shared_with_static_runtimes_CXX=yes
12977
12978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12979 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12980 # If the export-symbols file already is a .def file (1st line
12981 # is EXPORTS), use it as is; otherwise, prepend...
12982 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12983 cp $export_symbols $output_objdir/$soname.def;
12984 else
12985 echo EXPORTS > $output_objdir/$soname.def;
12986 cat $export_symbols >> $output_objdir/$soname.def;
12987 fi~
12988 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12989 else
12990 ld_shlibs_CXX=no
12991 fi
12992 ;;
12993 esac
12994 ;;
1225312995 darwin* | rhapsody*)
1225412996
1225512997
1225712999 hardcode_direct_CXX=no
1225813000 hardcode_automatic_CXX=yes
1225913001 hardcode_shlibpath_var_CXX=unsupported
12260 whole_archive_flag_spec_CXX=''
13002 if test "$lt_cv_ld_force_load" = "yes"; then
13003 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13004
13005 else
13006 whole_archive_flag_spec_CXX=''
13007 fi
1226113008 link_all_deplibs_CXX=yes
1226213009 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
1226313010 case $cc_basename in
1226513012 *) _lt_dar_can_shared=$GCC ;;
1226613013 esac
1226713014 if test "$_lt_dar_can_shared" = "yes"; then
12268 output_verbose_link_cmd=echo
13015 output_verbose_link_cmd=func_echo_all
1226913016 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}"
1227013017 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1227113018 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}"
1229913046 esac
1230013047 ;;
1230113048
12302 freebsd[12]*)
13049 freebsd2.*)
1230313050 # C++ shared libraries reported to be fairly broken before
1230413051 # switch to ELF
1230513052 ld_shlibs_CXX=no
1231513062 ld_shlibs_CXX=yes
1231613063 ;;
1231713064
12318 gnu*)
13065 haiku*)
13066 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067 link_all_deplibs_CXX=yes
1231913068 ;;
1232013069
1232113070 hpux9*)
1234213091 # explicitly linking system object files so we need to strip them
1234313092 # from the output so that they don't get included in the library
1234413093 # dependencies.
12345 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13094 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1234613095 ;;
1234713096 *)
1234813097 if test "$GXX" = yes; then
12349 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13098 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1235013099 else
1235113100 # FIXME: insert proper C++ library support
1235213101 ld_shlibs_CXX=no
1240713156 # explicitly linking system object files so we need to strip them
1240813157 # from the output so that they don't get included in the library
1240913158 # dependencies.
12410 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13159 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1241113160 ;;
1241213161 *)
1241313162 if test "$GXX" = yes; then
1241713166 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1241813167 ;;
1241913168 ia64*)
12420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13169 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1242113170 ;;
1242213171 *)
12423 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13172 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1242413173 ;;
1242513174 esac
1242613175 fi
1245013199 case $cc_basename in
1245113200 CC*)
1245213201 # SGI C++
12453 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13202 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1245413203
1245513204 # Archives containing C++ object files must be created using
1245613205 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1246113210 *)
1246213211 if test "$GXX" = yes; then
1246313212 if test "$with_gnu_ld" = no; then
12464 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13213 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1246513214 else
12466 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13215 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
1246713216 fi
1246813217 fi
1246913218 link_all_deplibs_CXX=yes
1247413223 inherit_rpath_CXX=yes
1247513224 ;;
1247613225
12477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1247813227 case $cc_basename in
1247913228 KCC*)
1248013229 # Kuck and Associates, Inc. (KAI) C++ Compiler
1249213241 # explicitly linking system object files so we need to strip them
1249313242 # from the output so that they don't get included in the library
1249413243 # dependencies.
12495 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13244 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1249613245
1249713246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1249813247 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1252913278 pgCC* | pgcpp*)
1253013279 # Portland Group C++ compiler
1253113280 case `$CC -V` in
12532 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13281 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1253313282 prelink_cmds_CXX='tpldir=Template.dir~
1253413283 rm -rf $tpldir~
1253513284 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12536 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13285 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1253713286 old_archive_cmds_CXX='tpldir=Template.dir~
1253813287 rm -rf $tpldir~
1253913288 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12540 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13289 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
1254113290 $RANLIB $oldlib'
1254213291 archive_cmds_CXX='tpldir=Template.dir~
1254313292 rm -rf $tpldir~
1254413293 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12545 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13294 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1254613295 archive_expsym_cmds_CXX='tpldir=Template.dir~
1254713296 rm -rf $tpldir~
1254813297 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12549 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13298 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1255013299 ;;
12551 *) # Version 6 will use weak symbols
13300 *) # Version 6 and above use weak symbols
1255213301 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1255313302 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'
1255413303 ;;
1255613305
1255713306 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
1255813307 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12559 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13308 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1256013309 ;;
1256113310 cxx*)
1256213311 # Compaq C++
1257513324 # explicitly linking system object files so we need to strip them
1257613325 # from the output so that they don't get included in the library
1257713326 # dependencies.
12578 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13327 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
1257913328 ;;
12580 xl*)
13329 xl* | mpixl* | bgxl*)
1258113330 # IBM XL 8.0 on PPC, with GNU ld
1258213331 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1258313332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1259713346 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1259813347 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'
1259913348 hardcode_libdir_flag_spec_CXX='-R$libdir'
12600 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13349 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1260113350 compiler_needs_object_CXX=yes
1260213351
1260313352 # Not sure whether something based on
1260413353 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
1260513354 # would be better.
12606 output_verbose_link_cmd='echo'
13355 output_verbose_link_cmd='func_echo_all'
1260713356
1260813357 # Archives containing C++ object files must be created using
1260913358 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1267213421 export_dynamic_flag_spec_CXX='${wl}-E'
1267313422 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1267413423 fi
12675 output_verbose_link_cmd=echo
13424 output_verbose_link_cmd=func_echo_all
1267613425 else
1267713426 ld_shlibs_CXX=no
1267813427 fi
1270713456 case $host in
1270813457 osf3*)
1270913458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12710 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13459 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1271113460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1271213461 ;;
1271313462 *)
1271413463 allow_undefined_flag_CXX=' -expect_unresolved \*'
12715 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13464 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1271613465 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1271713466 echo "-hidden">> $lib.exp~
12718 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13467 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
1271913468 $RM $lib.exp'
1272013469 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1272113470 ;;
1273113480 # explicitly linking system object files so we need to strip them
1273213481 # from the output so that they don't get included in the library
1273313482 # dependencies.
12734 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13483 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1273513484 ;;
1273613485 *)
1273713486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1273813487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1273913488 case $host in
1274013489 osf3*)
12741 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13490 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1274213491 ;;
1274313492 *)
12744 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13493 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1274513494 ;;
1274613495 esac
1274713496
1275113500 # Commands to make compiler produce verbose output that lists
1275213501 # what "hidden" libraries, object files and flags are used when
1275313502 # linking a shared library.
12754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1275513504
1275613505 else
1275713506 # FIXME: insert proper C++ library support
1278713536
1278813537 solaris*)
1278913538 case $cc_basename in
12790 CC*)
13539 CC* | sunCC*)
1279113540 # Sun C++ 4.2, 5.x and Centerline C++
1279213541 archive_cmds_need_lc_CXX=yes
1279313542 no_undefined_flag_CXX=' -zdefs'
1280813557 esac
1280913558 link_all_deplibs_CXX=yes
1281013559
12811 output_verbose_link_cmd='echo'
13560 output_verbose_link_cmd='func_echo_all'
1281213561
1281313562 # Archives containing C++ object files must be created using
1281413563 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1282813577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1282913578 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
1283013579 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12831 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13580 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1283213581 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12833 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13582 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1283413583
1283513584 # Commands to make compiler produce verbose output that lists
1283613585 # what "hidden" libraries, object files and flags are used when
1283713586 # linking a shared library.
12838 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1283913588 else
1284013589 # g++ 2.7 appears to require `-G' NOT `-shared' on this
1284113590 # platform.
1284613595 # Commands to make compiler produce verbose output that lists
1284713596 # what "hidden" libraries, object files and flags are used when
1284813597 # linking a shared library.
12849 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13598 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1285013599 fi
1285113600
1285213601 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1290013649 CC*)
1290113650 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1290213651 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13653 '"$old_archive_cmds_CXX"
13654 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13655 '"$reload_cmds_CXX"
1290313656 ;;
1290413657 *)
1290513658 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1296113714 };
1296213715 _LT_EOF
1296313716
13717
13718 _lt_libdeps_save_CFLAGS=$CFLAGS
13719 case "$CC $CFLAGS " in #(
13720 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13721 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13722 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13723 esac
13724
1296413725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1296513726 (eval $ac_compile) 2>&5
1296613727 ac_status=$?
1297413735 pre_test_object_deps_done=no
1297513736
1297613737 for p in `eval "$output_verbose_link_cmd"`; do
12977 case $p in
13738 case ${prev}${p} in
1297813739
1297913740 -L* | -R* | -l*)
1298013741 # Some compilers place space between "-{L,R}" and the path.
1298313744 test $p = "-R"; then
1298413745 prev=$p
1298513746 continue
12986 else
12987 prev=
1298813747 fi
1298913748
13749 # Expand the sysroot to ease extracting the directories later.
13750 if test -z "$prev"; then
13751 case $p in
13752 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13753 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13754 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13755 esac
13756 fi
13757 case $p in
13758 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13759 esac
1299013760 if test "$pre_test_object_deps_done" = no; then
12991 case $p in
12992 -L* | -R*)
13761 case ${prev} in
13762 -L | -R)
1299313763 # Internal compiler library paths should come after those
1299413764 # provided the user. The postdeps already come after the
1299513765 # user supplied libs so there is no need to process them.
1300913779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
1301013780 fi
1301113781 fi
13782 prev=
1301213783 ;;
1301313784
13785 *.lto.$objext) ;; # Ignore GCC LTO objects
1301413786 *.$objext)
1301513787 # This assumes that the test object file only shows up
1301613788 # once in the compiler output.
1304613818 fi
1304713819
1304813820 $RM -f confest.$objext
13821 CFLAGS=$_lt_libdeps_save_CFLAGS
1304913822
1305013823 # PORTME: override above test on systems where it is broken
1305113824 case $host_os in
1308113854
1308213855 solaris*)
1308313856 case $cc_basename in
13084 CC*)
13857 CC* | sunCC*)
1308513858 # The more standards-conforming stlport4 library is
1308613859 # incompatible with the Cstd library. Avoid specifying
1308713860 # it if it's in CXXFLAGS. Ignore libCrun as
1314613919 lt_prog_compiler_pic_CXX=
1314713920 lt_prog_compiler_static_CXX=
1314813921
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13150 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1315113922
1315213923 # C++ specific cases for pic, static, wl, etc.
1315313924 if test "$GXX" = yes; then
1319613967 *djgpp*)
1319713968 # DJGPP does not support shared libraries at all
1319813969 lt_prog_compiler_pic_CXX=
13970 ;;
13971 haiku*)
13972 # PIC is the default for Haiku.
13973 # The "-static" flag exists, but is broken.
13974 lt_prog_compiler_static_CXX=
1319913975 ;;
1320013976 interix[3-9]*)
1320113977 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1324514021 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
1324614022 ;;
1324714023 esac
14024 ;;
14025 mingw* | cygwin* | os2* | pw32* | cegcc*)
14026 # This hack is so that the source file can tell whether it is being
14027 # built for inclusion in a dll (and should export symbols for example).
14028 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1324814029 ;;
1324914030 dgux*)
1325014031 case $cc_basename in
1330214083 ;;
1330314084 esac
1330414085 ;;
13305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14086 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1330614087 case $cc_basename in
1330714088 KCC*)
1330814089 # KAI C++ Compiler
1333514116 lt_prog_compiler_pic_CXX=
1333614117 lt_prog_compiler_static_CXX='-non_shared'
1333714118 ;;
13338 xlc* | xlC*)
13339 # IBM XL 8.0 on PPC
14119 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14120 # IBM XL 8.0, 9.0 on PPC and BlueGene
1334014121 lt_prog_compiler_wl_CXX='-Wl,'
1334114122 lt_prog_compiler_pic_CXX='-qpic'
1334214123 lt_prog_compiler_static_CXX='-qstaticlink'
1339814179 ;;
1339914180 solaris*)
1340014181 case $cc_basename in
13401 CC*)
14182 CC* | sunCC*)
1340214183 # Sun C++ 4.2, 5.x and Centerline C++
1340314184 lt_prog_compiler_pic_CXX='-KPIC'
1340414185 lt_prog_compiler_static_CXX='-Bstatic'
1346314244 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1346414245 ;;
1346514246 esac
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13467 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13468
13469
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14249 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14250 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14254 fi
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14256 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14257 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
1347014258
1347114259 #
1347214260 # Check to make sure the PIC flag actually works.
1347414262 if test -n "$lt_prog_compiler_pic_CXX"; then
1347514263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
1347614264 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13477 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14265 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
1347814266 $as_echo_n "(cached) " >&6
1347914267 else
1348014268 lt_cv_prog_compiler_pic_works_CXX=no
1349014278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1349114279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1349214280 -e 's:$: $lt_compiler_flag:'`
13493 (eval echo "\"\$as_me:13494: $lt_compile\"" >&5)
14281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1349414282 (eval "$lt_compile" 2>conftest.err)
1349514283 ac_status=$?
1349614284 cat conftest.err >&5
13497 echo "$as_me:13498: \$? = $ac_status" >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1349814286 if (exit $ac_status) && test -s "$ac_outfile"; then
1349914287 # The compiler can only warn and ignore the option if not recognized
1350014288 # So say no if there are warnings other than the usual output.
13501 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1350214290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1350314291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1350414292 lt_cv_prog_compiler_pic_works_CXX=yes
1352414312
1352514313
1352614314
14315
14316
1352714317 #
1352814318 # Check to make sure the static flag actually works.
1352914319 #
1353014320 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1353114321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1353214322 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13533 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14323 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
1353414324 $as_echo_n "(cached) " >&6
1353514325 else
1353614326 lt_cv_prog_compiler_static_works_CXX=no
1354314333 if test -s conftest.err; then
1354414334 # Append any errors to the config.log.
1354514335 cat conftest.err 1>&5
13546 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1354714337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1354814338 if diff conftest.exp conftest.er2 >/dev/null; then
1354914339 lt_cv_prog_compiler_static_works_CXX=yes
1357014360
1357114361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1357214362 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13573 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14363 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
1357414364 $as_echo_n "(cached) " >&6
1357514365 else
1357614366 lt_cv_prog_compiler_c_o_CXX=no
1358914379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1359014380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1359114381 -e 's:$: $lt_compiler_flag:'`
13592 (eval echo "\"\$as_me:13593: $lt_compile\"" >&5)
14382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1359314383 (eval "$lt_compile" 2>out/conftest.err)
1359414384 ac_status=$?
1359514385 cat out/conftest.err >&5
13596 echo "$as_me:13597: \$? = $ac_status" >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1359714387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1359814388 then
1359914389 # The compiler can only warn and ignore the option if not recognized
1360014390 # So say no if there are warnings
13601 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1360214392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1360314393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1360414394 lt_cv_prog_compiler_c_o_CXX=yes
1362214412
1362314413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1362414414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13625 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14415 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
1362614416 $as_echo_n "(cached) " >&6
1362714417 else
1362814418 lt_cv_prog_compiler_c_o_CXX=no
1364114431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1364214432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1364314433 -e 's:$: $lt_compiler_flag:'`
13644 (eval echo "\"\$as_me:13645: $lt_compile\"" >&5)
14434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1364514435 (eval "$lt_compile" 2>out/conftest.err)
1364614436 ac_status=$?
1364714437 cat out/conftest.err >&5
13648 echo "$as_me:13649: \$? = $ac_status" >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1364914439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1365014440 then
1365114441 # The compiler can only warn and ignore the option if not recognized
1365214442 # So say no if there are warnings
13653 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1365414444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1365514445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1365614446 lt_cv_prog_compiler_c_o_CXX=yes
1370114491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1370214492
1370314493 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14494 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1370414495 case $host_os in
1370514496 aix[4-9]*)
1370614497 # If we're using GNU nm, then we don't want the "-C" option.
1370714498 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14499 # Also, AIX nm treats weak defined symbols like other global defined
14500 # symbols, whereas GNU nm marks them as "W".
1370814501 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13709 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14502 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1371014503 else
1371114504 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1371214505 fi
1371314506 ;;
1371414507 pw32*)
1371514508 export_symbols_cmds_CXX="$ltdll_cmds"
13716 ;;
14509 ;;
1371714510 cygwin* | mingw* | cegcc*)
13718 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13719 ;;
13720 linux* | k*bsd*-gnu)
14511 case $cc_basename in
14512 cl*)
14513 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14514 ;;
14515 *)
14516 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14517 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14518 ;;
14519 esac
14520 ;;
14521 linux* | k*bsd*-gnu | gnu*)
1372114522 link_all_deplibs_CXX=no
13722 ;;
14523 ;;
1372314524 *)
1372414525 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13725 ;;
14526 ;;
1372614527 esac
13727 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1372814528
1372914529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1373014530 $as_echo "$ld_shlibs_CXX" >&6; }
1375614556 # to ld, don't add -lc before -lgcc.
1375714557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1375814558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13759 $RM conftest*
13760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13761
13762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14559 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 $RM conftest*
14563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14564
14565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1376314566 (eval $ac_compile) 2>&5
1376414567 ac_status=$?
1376514568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1376614569 test $ac_status = 0; } 2>conftest.err; then
13767 soname=conftest
13768 lib=conftest
13769 libobjs=conftest.$ac_objext
13770 deplibs=
13771 wl=$lt_prog_compiler_wl_CXX
13772 pic_flag=$lt_prog_compiler_pic_CXX
13773 compiler_flags=-v
13774 linker_flags=-v
13775 verstring=
13776 output_objdir=.
13777 libname=conftest
13778 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13779 allow_undefined_flag_CXX=
13780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14570 soname=conftest
14571 lib=conftest
14572 libobjs=conftest.$ac_objext
14573 deplibs=
14574 wl=$lt_prog_compiler_wl_CXX
14575 pic_flag=$lt_prog_compiler_pic_CXX
14576 compiler_flags=-v
14577 linker_flags=-v
14578 verstring=
14579 output_objdir=.
14580 libname=conftest
14581 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14582 allow_undefined_flag_CXX=
14583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1378114584 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1378214585 ac_status=$?
1378314586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1378414587 test $ac_status = 0; }
13785 then
13786 archive_cmds_need_lc_CXX=no
13787 else
13788 archive_cmds_need_lc_CXX=yes
13789 fi
13790 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13791 else
13792 cat conftest.err 1>&5
13793 fi
13794 $RM conftest*
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13796 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14588 then
14589 lt_cv_archive_cmds_need_lc_CXX=no
14590 else
14591 lt_cv_archive_cmds_need_lc_CXX=yes
14592 fi
14593 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14594 else
14595 cat conftest.err 1>&5
14596 fi
14597 $RM conftest*
14598
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14601 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14602 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1379714603 ;;
1379814604 esac
1379914605 fi
1380014606 ;;
1380114607 esac
13802
13803
1380414608
1380514609
1380614610
1388814692
1388914693 case $host_os in
1389014694 aix3*)
13891 version_type=linux
14695 version_type=linux # correct to gnu/linux during the next big refactor
1389214696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1389314697 shlibpath_var=LIBPATH
1389414698
1389714701 ;;
1389814702
1389914703 aix[4-9]*)
13900 version_type=linux
14704 version_type=linux # correct to gnu/linux during the next big refactor
1390114705 need_lib_prefix=no
1390214706 need_version=no
1390314707 hardcode_into_libs=yes
1395014754 m68k)
1395114755 library_names_spec='$libname.ixlibrary $libname.a'
1395214756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13953 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1395414758 ;;
1395514759 esac
1395614760 ;;
1396214766 ;;
1396314767
1396414768 bsdi[45]*)
13965 version_type=linux
14769 version_type=linux # correct to gnu/linux during the next big refactor
1396614770 need_version=no
1396714771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1396814772 soname_spec='${libname}${release}${shared_ext}$major'
1398114785 need_version=no
1398214786 need_lib_prefix=no
1398314787
13984 case $GCC,$host_os in
13985 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14788 case $GCC,$cc_basename in
14789 yes,*)
14790 # gcc
1398614791 library_names_spec='$libname.dll.a'
1398714792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1398814793 postinstall_cmds='base_file=`basename \${file}`~
1400314808 cygwin*)
1400414809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1400514810 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14006 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14811
1400714812 ;;
1400814813 mingw* | cegcc*)
1400914814 # MinGW DLLs use traditional 'lib' prefix
1401014815 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14011 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14012 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14013 # It is most probably a Windows format PATH printed by
14014 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14015 # path with ; separators, and with drive letters. We can handle the
14016 # drive letters (cygwin fileutils understands them), so leave them,
14017 # especially as we might pass files found there to a mingw objdump,
14018 # which wouldn't understand a cygwinified path. Ahh.
14019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14020 else
14021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14022 fi
1402314816 ;;
1402414817 pw32*)
1402514818 # pw32 DLLs use 'pw' prefix rather than 'lib'
1402614819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1402714820 ;;
1402814821 esac
14822 dynamic_linker='Win32 ld.exe'
1402914823 ;;
1403014824
14825 *,cl*)
14826 # Native MSVC
14827 libname_spec='$name'
14828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14829 library_names_spec='${libname}.dll.lib'
14830
14831 case $build_os in
14832 mingw*)
14833 sys_lib_search_path_spec=
14834 lt_save_ifs=$IFS
14835 IFS=';'
14836 for lt_path in $LIB
14837 do
14838 IFS=$lt_save_ifs
14839 # Let DOS variable expansion print the short 8.3 style file name.
14840 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14841 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14842 done
14843 IFS=$lt_save_ifs
14844 # Convert to MSYS style.
14845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14846 ;;
14847 cygwin*)
14848 # Convert to unix form, then to dos form, then back to unix form
14849 # but this time dos style (no spaces!) so that the unix form looks
14850 # like /cygdrive/c/PROGRA~1:/cygdr...
14851 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14852 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14853 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14854 ;;
14855 *)
14856 sys_lib_search_path_spec="$LIB"
14857 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14858 # It is most probably a Windows format PATH.
14859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14860 else
14861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14862 fi
14863 # FIXME: find the short name or the path components, as spaces are
14864 # common. (e.g. "Program Files" -> "PROGRA~1")
14865 ;;
14866 esac
14867
14868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14869 postinstall_cmds='base_file=`basename \${file}`~
14870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14871 dldir=$destdir/`dirname \$dlpath`~
14872 test -d \$dldir || mkdir -p \$dldir~
14873 $install_prog $dir/$dlname \$dldir/$dlname'
14874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14875 dlpath=$dir/\$dldll~
14876 $RM \$dlpath'
14877 shlibpath_overrides_runpath=yes
14878 dynamic_linker='Win32 link.exe'
14879 ;;
14880
1403114881 *)
14882 # Assume MSVC wrapper
1403214883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14884 dynamic_linker='Win32 ld.exe'
1403314885 ;;
1403414886 esac
14035 dynamic_linker='Win32 ld.exe'
1403614887 # FIXME: first we should search . and the directory the executable is in
1403714888 shlibpath_var=PATH
1403814889 ;;
1405214903 ;;
1405314904
1405414905 dgux*)
14055 version_type=linux
14906 version_type=linux # correct to gnu/linux during the next big refactor
1405614907 need_lib_prefix=no
1405714908 need_version=no
1405814909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1405914910 soname_spec='${libname}${release}${shared_ext}$major'
1406014911 shlibpath_var=LD_LIBRARY_PATH
14061 ;;
14062
14063 freebsd1*)
14064 dynamic_linker=no
1406514912 ;;
1406614913
1406714914 freebsd* | dragonfly*)
1407114918 objformat=`/usr/bin/objformat`
1407214919 else
1407314920 case $host_os in
14074 freebsd[123]*) objformat=aout ;;
14921 freebsd[23].*) objformat=aout ;;
1407514922 *) objformat=elf ;;
1407614923 esac
1407714924 fi
1408914936 esac
1409014937 shlibpath_var=LD_LIBRARY_PATH
1409114938 case $host_os in
14092 freebsd2*)
14939 freebsd2.*)
1409314940 shlibpath_overrides_runpath=yes
1409414941 ;;
1409514942 freebsd3.[01]* | freebsdelf3.[01]*)
1410814955 esac
1410914956 ;;
1411014957
14111 gnu*)
14112 version_type=linux
14958 haiku*)
14959 version_type=linux # correct to gnu/linux during the next big refactor
1411314960 need_lib_prefix=no
1411414961 need_version=no
14962 dynamic_linker="$host_os runtime_loader"
1411514963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1411614964 soname_spec='${libname}${release}${shared_ext}$major'
14117 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_var=LIBRARY_PATH
14966 shlibpath_overrides_runpath=yes
14967 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1411814968 hardcode_into_libs=yes
1411914969 ;;
1412014970
1416015010 soname_spec='${libname}${release}${shared_ext}$major'
1416115011 ;;
1416215012 esac
14163 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15013 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1416415014 postinstall_cmds='chmod 555 $lib'
15015 # or fails outright, so override atomically:
15016 install_override_mode=555
1416515017 ;;
1416615018
1416715019 interix[3-9]*)
14168 version_type=linux
15020 version_type=linux # correct to gnu/linux during the next big refactor
1416915021 need_lib_prefix=no
1417015022 need_version=no
1417115023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1418115033 nonstopux*) version_type=nonstopux ;;
1418215034 *)
1418315035 if test "$lt_cv_prog_gnu_ld" = yes; then
14184 version_type=linux
15036 version_type=linux # correct to gnu/linux during the next big refactor
1418515037 else
1418615038 version_type=irix
1418715039 fi ;;
1421815070 dynamic_linker=no
1421915071 ;;
1422015072
14221 # This must be Linux ELF.
14222 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14223 version_type=linux
15073 # This must be glibc/ELF.
15074 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15075 version_type=linux # correct to gnu/linux during the next big refactor
1422415076 need_lib_prefix=no
1422515077 need_version=no
1422615078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1422815080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1422915081 shlibpath_var=LD_LIBRARY_PATH
1423015082 shlibpath_overrides_runpath=no
15083
1423115084 # Some binutils ld are patched to set DT_RUNPATH
14232 save_LDFLAGS=$LDFLAGS
14233 save_libdir=$libdir
14234 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14235 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 lt_cv_shlibpath_overrides_runpath=no
15089 save_LDFLAGS=$LDFLAGS
15090 save_libdir=$libdir
15091 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15092 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1423715094 /* end confdefs.h. */
1423815095
1423915096 int
1424615103 _ACEOF
1424715104 if ac_fn_cxx_try_link "$LINENO"; then :
1424815105 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14249 shlibpath_overrides_runpath=yes
15106 lt_cv_shlibpath_overrides_runpath=yes
1425015107 fi
1425115108 fi
1425215109 rm -f core conftest.err conftest.$ac_objext \
1425315110 conftest$ac_exeext conftest.$ac_ext
14254 LDFLAGS=$save_LDFLAGS
14255 libdir=$save_libdir
15111 LDFLAGS=$save_LDFLAGS
15112 libdir=$save_libdir
15113
15114 fi
15115
15116 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1425615117
1425715118 # This implies no fast_install, which is unacceptable.
1425815119 # Some rework will be needed to allow for fast_install
1426115122
1426215123 # Append ld.so.conf contents to the search path
1426315124 if test -f /etc/ld.so.conf; then
14264 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15125 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1426515126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1426615127 fi
1426715128
1430515166 ;;
1430615167
1430715168 newsos6)
14308 version_type=linux
15169 version_type=linux # correct to gnu/linux during the next big refactor
1430915170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1431015171 shlibpath_var=LD_LIBRARY_PATH
1431115172 shlibpath_overrides_runpath=yes
1437415235 ;;
1437515236
1437615237 solaris*)
14377 version_type=linux
15238 version_type=linux # correct to gnu/linux during the next big refactor
1437815239 need_lib_prefix=no
1437915240 need_version=no
1438015241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1439915260 ;;
1440015261
1440115262 sysv4 | sysv4.3*)
14402 version_type=linux
15263 version_type=linux # correct to gnu/linux during the next big refactor
1440315264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1440415265 soname_spec='${libname}${release}${shared_ext}$major'
1440515266 shlibpath_var=LD_LIBRARY_PATH
1442315284
1442415285 sysv4*MP*)
1442515286 if test -d /usr/nec ;then
14426 version_type=linux
15287 version_type=linux # correct to gnu/linux during the next big refactor
1442715288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1442815289 soname_spec='$libname${shared_ext}.$major'
1442915290 shlibpath_var=LD_LIBRARY_PATH
1445415315
1445515316 tpf*)
1445615317 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14457 version_type=linux
15318 version_type=linux # correct to gnu/linux during the next big refactor
1445815319 need_lib_prefix=no
1445915320 need_version=no
1446015321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1446415325 ;;
1446515326
1446615327 uts4*)
14467 version_type=linux
15328 version_type=linux # correct to gnu/linux during the next big refactor
1446815329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1446915330 soname_spec='${libname}${release}${shared_ext}$major'
1447015331 shlibpath_var=LD_LIBRARY_PATH
1448915350 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1449015351 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1449115352 fi
15353
15354
1449215355
1449315356
1449415357
1457215435 fi # test -n "$compiler"
1457315436
1457415437 CC=$lt_save_CC
15438 CFLAGS=$lt_save_CFLAGS
1457515439 LDCXX=$LD
1457615440 LD=$lt_save_LD
1457715441 GCC=$lt_save_GCC
1460015464
1460115465
1460215466
15467
15468
1460315469 ac_config_commands="$ac_config_commands libtool"
1460415470
1460515471
1462315489 for ac_header in string.h
1462415490 do :
1462515491 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14626 if test "x$ac_cv_header_string_h" = x""yes; then :
15492 if test "x$ac_cv_header_string_h" = xyes; then :
1462715493 cat >>confdefs.h <<_ACEOF
1462815494 #define HAVE_STRING_H 1
1462915495 _ACEOF
1463015496 HAVE_STRING_H=1
1463115497 else
14632 as_fn_error "cannot find string.h, bailing out" "$LINENO" 5
15498 as_fn_error $? "cannot find string.h, bailing out" "$LINENO" 5
1463315499 fi
1463415500
1463515501 done
1463715503 for ac_header in stdio.h
1463815504 do :
1463915505 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14640 if test "x$ac_cv_header_stdio_h" = x""yes; then :
15506 if test "x$ac_cv_header_stdio_h" = xyes; then :
1464115507 cat >>confdefs.h <<_ACEOF
1464215508 #define HAVE_STDIO_H 1
1464315509 _ACEOF
1464415510
1464515511 else
14646 as_fn_error "cannot find stdio.h, bailing out" "$LINENO" 5
15512 as_fn_error $? "cannot find stdio.h, bailing out" "$LINENO" 5
1464715513 fi
1464815514
1464915515 done
1465115517 for ac_header in stdlib.h
1465215518 do :
1465315519 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14654 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15520 if test "x$ac_cv_header_stdlib_h" = xyes; then :
1465515521 cat >>confdefs.h <<_ACEOF
1465615522 #define HAVE_STDLIB_H 1
1465715523 _ACEOF
1465815524
1465915525 else
14660 as_fn_error "cannot find stdlib.h, bailing out" "$LINENO" 5
15526 as_fn_error $? "cannot find stdlib.h, bailing out" "$LINENO" 5
1466115527 fi
1466215528
1466315529 done
1466615532 for ac_header in locale.h
1466715533 do :
1466815534 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14669 if test "x$ac_cv_header_locale_h" = x""yes; then :
15535 if test "x$ac_cv_header_locale_h" = xyes; then :
1467015536 cat >>confdefs.h <<_ACEOF
1467115537 #define HAVE_LOCALE_H 1
1467215538 _ACEOF
1470615572
1470715573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
1470815574 $as_echo_n "checking for exp in -lm... " >&6; }
14709 if test "${ac_cv_lib_m_exp+set}" = set; then :
15575 if ${ac_cv_lib_m_exp+:} false; then :
1471015576 $as_echo_n "(cached) " >&6
1471115577 else
1471215578 ac_check_lib_save_LIBS=$LIBS
1474015606 fi
1474115607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
1474215608 $as_echo "$ac_cv_lib_m_exp" >&6; }
14743 if test "x$ac_cv_lib_m_exp" = x""yes; then :
15609 if test "x$ac_cv_lib_m_exp" = xyes; then :
1474415610 cat >>confdefs.h <<_ACEOF
1474515611 #define HAVE_LIBM 1
1474615612 _ACEOF
1479015656 for ac_header in zlib.h
1479115657 do :
1479215658 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14793 if test "x$ac_cv_header_zlib_h" = x""yes; then :
15659 if test "x$ac_cv_header_zlib_h" = xyes; then :
1479415660 cat >>confdefs.h <<_ACEOF
1479515661 #define HAVE_ZLIB_H 1
1479615662 _ACEOF
1479715663
1479815664 else
14799 as_fn_error "cannot find zlib.h, bailing out" "$LINENO" 5
15665 as_fn_error $? "cannot find zlib.h, bailing out" "$LINENO" 5
1480015666 fi
1480115667
1480215668 done
1480315669
1480415670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateInit_" >&5
1480515671 $as_echo_n "checking for library containing inflateInit_... " >&6; }
14806 if test "${ac_cv_search_inflateInit_+set}" = set; then :
15672 if ${ac_cv_search_inflateInit_+:} false; then :
1480715673 $as_echo_n "(cached) " >&6
1480815674 else
1480915675 ac_func_search_save_LIBS=$LIBS
1483715703 fi
1483815704 rm -f core conftest.err conftest.$ac_objext \
1483915705 conftest$ac_exeext
14840 if test "${ac_cv_search_inflateInit_+set}" = set; then :
15706 if ${ac_cv_search_inflateInit_+:} false; then :
1484115707 break
1484215708 fi
1484315709 done
14844 if test "${ac_cv_search_inflateInit_+set}" = set; then :
15710 if ${ac_cv_search_inflateInit_+:} false; then :
1484515711
1484615712 else
1484715713 ac_cv_search_inflateInit_=no
1491315779 else
1491415780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jinit_compress_master" >&5
1491515781 $as_echo_n "checking for library containing jinit_compress_master... " >&6; }
14916 if test "${ac_cv_search_jinit_compress_master+set}" = set; then :
15782 if ${ac_cv_search_jinit_compress_master+:} false; then :
1491715783 $as_echo_n "(cached) " >&6
1491815784 else
1491915785 ac_func_search_save_LIBS=$LIBS
1494715813 fi
1494815814 rm -f core conftest.err conftest.$ac_objext \
1494915815 conftest$ac_exeext
14950 if test "${ac_cv_search_jinit_compress_master+set}" = set; then :
15816 if ${ac_cv_search_jinit_compress_master+:} false; then :
1495115817 break
1495215818 fi
1495315819 done
14954 if test "${ac_cv_search_jinit_compress_master+set}" = set; then :
15820 if ${ac_cv_search_jinit_compress_master+:} false; then :
1495515821
1495615822 else
1495715823 ac_cv_search_jinit_compress_master=no
1501715883 LIBS_SAVED="$LIBS"
1501815884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
1501915885 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15020 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15886 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
1502115887 $as_echo_n "(cached) " >&6
1502215888 else
1502315889 ac_check_lib_save_LIBS=$LIBS
1505115917 fi
1505215918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
1505315919 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15054 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15920 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
1505515921 TIFF_CONFIG=yes
1505615922 else
15057 as_fn_error "failed to link with -ltiff to find TIFFOpen" "$LINENO" 5
15923 as_fn_error $? "failed to link with -ltiff to find TIFFOpen" "$LINENO" 5
1505815924 fi
1505915925
1506015926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFMergeFieldInfo in -ltiff" >&5
1506115927 $as_echo_n "checking for TIFFMergeFieldInfo in -ltiff... " >&6; }
15062 if test "${ac_cv_lib_tiff_TIFFMergeFieldInfo+set}" = set; then :
15928 if ${ac_cv_lib_tiff_TIFFMergeFieldInfo+:} false; then :
1506315929 $as_echo_n "(cached) " >&6
1506415930 else
1506515931 ac_check_lib_save_LIBS=$LIBS
1509315959 fi
1509415960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
1509515961 $as_echo "$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
15096 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = x""yes; then :
15962 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = xyes; then :
1509715963 TIFF_CONFIG=yes
1509815964 else
15099 as_fn_error "Libtiff 3.6.0 Beta or later required for this version of
15965 as_fn_error $? "Libtiff 3.6.0 Beta or later required for this version of
1510015966 libgeotiff. Please upgrade or use an older version of libgeotiff." "$LINENO" 5
1510115967 fi
1510215968
1510415970 else
1510515971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
1510615972 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15107 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15973 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
1510815974 $as_echo_n "(cached) " >&6
1510915975 else
1511015976 ac_check_lib_save_LIBS=$LIBS
1513816004 fi
1513916005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
1514016006 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15141 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
16007 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
1514216008 TIFF_CONFIG=yes
1514316009 else
15144 as_fn_error "You will need to substantially rewrite libxtiff to
16010 as_fn_error $? "You will need to substantially rewrite libxtiff to
1514516011 build libgeotiff without libtiff" "$LINENO" 5
1514616012 fi
1514716013
1514816014 LIBS_SAVED="$LIBS"
1514916015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFMergeFieldInfo in -ltiff" >&5
1515016016 $as_echo_n "checking for TIFFMergeFieldInfo in -ltiff... " >&6; }
15151 if test "${ac_cv_lib_tiff_TIFFMergeFieldInfo+set}" = set; then :
16017 if ${ac_cv_lib_tiff_TIFFMergeFieldInfo+:} false; then :
1515216018 $as_echo_n "(cached) " >&6
1515316019 else
1515416020 ac_check_lib_save_LIBS=$LIBS
1518216048 fi
1518316049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
1518416050 $as_echo "$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
15185 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = x""yes; then :
16051 if test "x$ac_cv_lib_tiff_TIFFMergeFieldInfo" = xyes; then :
1518616052 TIFF_CONFIG=yes
1518716053 else
15188 as_fn_error "Libtiff 3.6.0 Beta or later required for this version of
16054 as_fn_error $? "Libtiff 3.6.0 Beta or later required for this version of
1518916055 libgeotiff. Please upgrade libtiff or use an older version of libgeotiff." "$LINENO" 5
1519016056 fi
1519116057
1526716133 else
1526816134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
1526916135 $as_echo_n "checking for pj_init in -lproj... " >&6; }
15270 if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
16136 if ${ac_cv_lib_proj_pj_init+:} false; then :
1527116137 $as_echo_n "(cached) " >&6
1527216138 else
1527316139 ac_check_lib_save_LIBS=$LIBS
1530116167 fi
1530216168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
1530316169 $as_echo "$ac_cv_lib_proj_pj_init" >&6; }
15304 if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
16170 if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
1530516171 cat >>confdefs.h <<_ACEOF
1530616172 #define HAVE_LIBPROJ 1
1530716173 _ACEOF
1531316179 for ac_header in proj_api.h
1531416180 do :
1531516181 ac_fn_c_check_header_mongrel "$LINENO" "proj_api.h" "ac_cv_header_proj_api_h" "$ac_includes_default"
15316 if test "x$ac_cv_header_proj_api_h" = x""yes; then :
16182 if test "x$ac_cv_header_proj_api_h" = xyes; then :
1531716183 cat >>confdefs.h <<_ACEOF
1531816184 #define HAVE_PROJ_API_H 1
1531916185 _ACEOF
1537316239 else
1537416240 CSV_IS_CONFIG_TRUE='#'
1537516241 CSV_IS_CONFIG_FALSE=
16242 fi
16243
16244
16245
16246 # Check whether --enable-towgs84 was given.
16247 if test "${enable_towgs84+set}" = set; then :
16248 enableval=$enable_towgs84; $as_echo "#define GEO_NORMALIZE_DISABLE_TOWGS84 1" >>confdefs.h
16249
1537616250 fi
1537716251
1537816252
1542616300
1542716301 ;; #(
1542816302 *)
15429 as_fn_error "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16303 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
1543016304 ;;
1543116305 esac
1543216306
1544516319 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
1544616320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1544716321 $as_echo_n "checking for $ac_word... " >&6; }
15448 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
16322 if ${ac_cv_path_DX_DOXYGEN+:} false; then :
1544916323 $as_echo_n "(cached) " >&6
1545016324 else
1545116325 case $DX_DOXYGEN in
1545916333 IFS=$as_save_IFS
1546016334 test -z "$as_dir" && as_dir=.
1546116335 for ac_exec_ext in '' $ac_executable_extensions; do
15462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546316337 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
1546416338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1546516339 break 2
1548816362 set dummy doxygen; ac_word=$2
1548916363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1549016364 $as_echo_n "checking for $ac_word... " >&6; }
15491 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
16365 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
1549216366 $as_echo_n "(cached) " >&6
1549316367 else
1549416368 case $ac_pt_DX_DOXYGEN in
1550216376 IFS=$as_save_IFS
1550316377 test -z "$as_dir" && as_dir=.
1550416378 for ac_exec_ext in '' $ac_executable_extensions; do
15505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550616380 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
1550716381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1550816382 break 2
1555116425 set dummy ${ac_tool_prefix}perl; ac_word=$2
1555216426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1555316427 $as_echo_n "checking for $ac_word... " >&6; }
15554 if test "${ac_cv_path_DX_PERL+set}" = set; then :
16428 if ${ac_cv_path_DX_PERL+:} false; then :
1555516429 $as_echo_n "(cached) " >&6
1555616430 else
1555716431 case $DX_PERL in
1556516439 IFS=$as_save_IFS
1556616440 test -z "$as_dir" && as_dir=.
1556716441 for ac_exec_ext in '' $ac_executable_extensions; do
15568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556916443 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
1557016444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1557116445 break 2
1559416468 set dummy perl; ac_word=$2
1559516469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1559616470 $as_echo_n "checking for $ac_word... " >&6; }
15597 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
16471 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
1559816472 $as_echo_n "(cached) " >&6
1559916473 else
1560016474 case $ac_pt_DX_PERL in
1560816482 IFS=$as_save_IFS
1560916483 test -z "$as_dir" && as_dir=.
1561016484 for ac_exec_ext in '' $ac_executable_extensions; do
15611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561216486 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
1561316487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1561416488 break 2
1569416568
1569516569
1569616570 test "$DX_FLAG_doc" = "1" \
15697 || as_fn_error "doxygen-dot requires doxygen-dot" "$LINENO" 5
16571 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
1569816572
1569916573 ;; #(
1570016574 n|N|no|No|NO)
1570216576
1570316577 ;; #(
1570416578 *)
15705 as_fn_error "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16579 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
1570616580 ;;
1570716581 esac
1570816582
1572416598 set dummy ${ac_tool_prefix}dot; ac_word=$2
1572516599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1572616600 $as_echo_n "checking for $ac_word... " >&6; }
15727 if test "${ac_cv_path_DX_DOT+set}" = set; then :
16601 if ${ac_cv_path_DX_DOT+:} false; then :
1572816602 $as_echo_n "(cached) " >&6
1572916603 else
1573016604 case $DX_DOT in
1573816612 IFS=$as_save_IFS
1573916613 test -z "$as_dir" && as_dir=.
1574016614 for ac_exec_ext in '' $ac_executable_extensions; do
15741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574216616 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
1574316617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1574416618 break 2
1576716641 set dummy dot; ac_word=$2
1576816642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1576916643 $as_echo_n "checking for $ac_word... " >&6; }
15770 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
16644 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
1577116645 $as_echo_n "(cached) " >&6
1577216646 else
1577316647 case $ac_pt_DX_DOT in
1578116655 IFS=$as_save_IFS
1578216656 test -z "$as_dir" && as_dir=.
1578316657 for ac_exec_ext in '' $ac_executable_extensions; do
15784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578516659 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
1578616660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1578716661 break 2
1587016744
1587116745
1587216746 test "$DX_FLAG_doc" = "1" \
15873 || as_fn_error "doxygen-man requires doxygen-man" "$LINENO" 5
16747 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
1587416748
1587516749 ;; #(
1587616750 n|N|no|No|NO)
1587816752
1587916753 ;; #(
1588016754 *)
15881 as_fn_error "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
16755 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
1588216756 ;;
1588316757 esac
1588416758
1593916813
1594016814
1594116815 test "$DX_FLAG_doc" = "1" \
15942 || as_fn_error "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
16816 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
1594316817
1594416818 ;; #(
1594516819 n|N|no|No|NO)
1594716821
1594816822 ;; #(
1594916823 *)
15950 as_fn_error "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
16824 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
1595116825 ;;
1595216826 esac
1595316827
1600816882
1600916883
1601016884 test "$DX_FLAG_doc" = "1" \
16011 || as_fn_error "doxygen-xml requires doxygen-xml" "$LINENO" 5
16885 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
1601216886
1601316887 ;; #(
1601416888 n|N|no|No|NO)
1601616890
1601716891 ;; #(
1601816892 *)
16019 as_fn_error "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
16893 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
1602016894 ;;
1602116895 esac
1602216896
1607716951
1607816952
1607916953 test "$DX_FLAG_doc" = "1" \
16080 || as_fn_error "doxygen-chm requires doxygen-chm" "$LINENO" 5
16954 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
1608116955
1608216956 ;; #(
1608316957 n|N|no|No|NO)
1608516959
1608616960 ;; #(
1608716961 *)
16088 as_fn_error "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
16962 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
1608916963 ;;
1609016964 esac
1609116965
1610716981 set dummy ${ac_tool_prefix}hhc; ac_word=$2
1610816982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1610916983 $as_echo_n "checking for $ac_word... " >&6; }
16110 if test "${ac_cv_path_DX_HHC+set}" = set; then :
16984 if ${ac_cv_path_DX_HHC+:} false; then :
1611116985 $as_echo_n "(cached) " >&6
1611216986 else
1611316987 case $DX_HHC in
1612116995 IFS=$as_save_IFS
1612216996 test -z "$as_dir" && as_dir=.
1612316997 for ac_exec_ext in '' $ac_executable_extensions; do
16124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612516999 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
1612617000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1612717001 break 2
1615017024 set dummy hhc; ac_word=$2
1615117025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1615217026 $as_echo_n "checking for $ac_word... " >&6; }
16153 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
17027 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
1615417028 $as_echo_n "(cached) " >&6
1615517029 else
1615617030 case $ac_pt_DX_HHC in
1616417038 IFS=$as_save_IFS
1616517039 test -z "$as_dir" && as_dir=.
1616617040 for ac_exec_ext in '' $ac_executable_extensions; do
16167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616817042 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
1616917043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1617017044 break 2
1625517129
1625617130
1625717131 test "$DX_FLAG_chm" = "1" \
16258 || as_fn_error "doxygen-chi requires doxygen-chi" "$LINENO" 5
17132 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
1625917133
1626017134 ;; #(
1626117135 n|N|no|No|NO)
1626317137
1626417138 ;; #(
1626517139 *)
16266 as_fn_error "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17140 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
1626717141 ;;
1626817142 esac
1626917143
1632417198
1632517199
1632617200 test "$DX_FLAG_doc" = "1" \
16327 || as_fn_error "doxygen-html requires doxygen-html" "$LINENO" 5
17201 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
1632817202
1632917203 test "$DX_FLAG_chm" = "0" \
16330 || as_fn_error "doxygen-html contradicts doxygen-html" "$LINENO" 5
17204 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
1633117205
1633217206 ;; #(
1633317207 n|N|no|No|NO)
1633517209
1633617210 ;; #(
1633717211 *)
16338 as_fn_error "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17212 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
1633917213 ;;
1634017214 esac
1634117215
1639917273
1640017274
1640117275 test "$DX_FLAG_doc" = "1" \
16402 || as_fn_error "doxygen-ps requires doxygen-ps" "$LINENO" 5
17276 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
1640317277
1640417278 ;; #(
1640517279 n|N|no|No|NO)
1640717281
1640817282 ;; #(
1640917283 *)
16410 as_fn_error "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17284 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
1641117285 ;;
1641217286 esac
1641317287
1642917303 set dummy ${ac_tool_prefix}latex; ac_word=$2
1643017304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1643117305 $as_echo_n "checking for $ac_word... " >&6; }
16432 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
17306 if ${ac_cv_path_DX_LATEX+:} false; then :
1643317307 $as_echo_n "(cached) " >&6
1643417308 else
1643517309 case $DX_LATEX in
1644317317 IFS=$as_save_IFS
1644417318 test -z "$as_dir" && as_dir=.
1644517319 for ac_exec_ext in '' $ac_executable_extensions; do
16446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644717321 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
1644817322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1644917323 break 2
1647217346 set dummy latex; ac_word=$2
1647317347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1647417348 $as_echo_n "checking for $ac_word... " >&6; }
16475 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
17349 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
1647617350 $as_echo_n "(cached) " >&6
1647717351 else
1647817352 case $ac_pt_DX_LATEX in
1648617360 IFS=$as_save_IFS
1648717361 test -z "$as_dir" && as_dir=.
1648817362 for ac_exec_ext in '' $ac_executable_extensions; do
16489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649017364 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
1649117365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1649217366 break 2
1653517409 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
1653617410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1653717411 $as_echo_n "checking for $ac_word... " >&6; }
16538 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
17412 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
1653917413 $as_echo_n "(cached) " >&6
1654017414 else
1654117415 case $DX_MAKEINDEX in
1654917423 IFS=$as_save_IFS
1655017424 test -z "$as_dir" && as_dir=.
1655117425 for ac_exec_ext in '' $ac_executable_extensions; do
16552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655317427 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1655417428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1655517429 break 2
1657817452 set dummy makeindex; ac_word=$2
1657917453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1658017454 $as_echo_n "checking for $ac_word... " >&6; }
16581 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
17455 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
1658217456 $as_echo_n "(cached) " >&6
1658317457 else
1658417458 case $ac_pt_DX_MAKEINDEX in
1659217466 IFS=$as_save_IFS
1659317467 test -z "$as_dir" && as_dir=.
1659417468 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659617470 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1659717471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1659817472 break 2
1664117515 set dummy ${ac_tool_prefix}dvips; ac_word=$2
1664217516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1664317517 $as_echo_n "checking for $ac_word... " >&6; }
16644 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
17518 if ${ac_cv_path_DX_DVIPS+:} false; then :
1664517519 $as_echo_n "(cached) " >&6
1664617520 else
1664717521 case $DX_DVIPS in
1665517529 IFS=$as_save_IFS
1665617530 test -z "$as_dir" && as_dir=.
1665717531 for ac_exec_ext in '' $ac_executable_extensions; do
16658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665917533 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
1666017534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1666117535 break 2
1668417558 set dummy dvips; ac_word=$2
1668517559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1668617560 $as_echo_n "checking for $ac_word... " >&6; }
16687 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
17561 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
1668817562 $as_echo_n "(cached) " >&6
1668917563 else
1669017564 case $ac_pt_DX_DVIPS in
1669817572 IFS=$as_save_IFS
1669917573 test -z "$as_dir" && as_dir=.
1670017574 for ac_exec_ext in '' $ac_executable_extensions; do
16701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670217576 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
1670317577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1670417578 break 2
1674717621 set dummy ${ac_tool_prefix}egrep; ac_word=$2
1674817622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1674917623 $as_echo_n "checking for $ac_word... " >&6; }
16750 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
17624 if ${ac_cv_path_DX_EGREP+:} false; then :
1675117625 $as_echo_n "(cached) " >&6
1675217626 else
1675317627 case $DX_EGREP in
1676117635 IFS=$as_save_IFS
1676217636 test -z "$as_dir" && as_dir=.
1676317637 for ac_exec_ext in '' $ac_executable_extensions; do
16764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676517639 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1676617640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1676717641 break 2
1679017664 set dummy egrep; ac_word=$2
1679117665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1679217666 $as_echo_n "checking for $ac_word... " >&6; }
16793 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
17667 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
1679417668 $as_echo_n "(cached) " >&6
1679517669 else
1679617670 case $ac_pt_DX_EGREP in
1680417678 IFS=$as_save_IFS
1680517679 test -z "$as_dir" && as_dir=.
1680617680 for ac_exec_ext in '' $ac_executable_extensions; do
16807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680817682 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1680917683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1681017684 break 2
1688917763
1689017764
1689117765 test "$DX_FLAG_doc" = "1" \
16892 || as_fn_error "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
17766 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
1689317767
1689417768 ;; #(
1689517769 n|N|no|No|NO)
1689717771
1689817772 ;; #(
1689917773 *)
16900 as_fn_error "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17774 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
1690117775 ;;
1690217776 esac
1690317777
1691917793 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
1692017794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1692117795 $as_echo_n "checking for $ac_word... " >&6; }
16922 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
17796 if ${ac_cv_path_DX_PDFLATEX+:} false; then :
1692317797 $as_echo_n "(cached) " >&6
1692417798 else
1692517799 case $DX_PDFLATEX in
1693317807 IFS=$as_save_IFS
1693417808 test -z "$as_dir" && as_dir=.
1693517809 for ac_exec_ext in '' $ac_executable_extensions; do
16936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693717811 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
1693817812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1693917813 break 2
1696217836 set dummy pdflatex; ac_word=$2
1696317837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1696417838 $as_echo_n "checking for $ac_word... " >&6; }
16965 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
17839 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
1696617840 $as_echo_n "(cached) " >&6
1696717841 else
1696817842 case $ac_pt_DX_PDFLATEX in
1697617850 IFS=$as_save_IFS
1697717851 test -z "$as_dir" && as_dir=.
1697817852 for ac_exec_ext in '' $ac_executable_extensions; do
16979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698017854 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
1698117855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1698217856 break 2
1702517899 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
1702617900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1702717901 $as_echo_n "checking for $ac_word... " >&6; }
17028 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
17902 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
1702917903 $as_echo_n "(cached) " >&6
1703017904 else
1703117905 case $DX_MAKEINDEX in
1703917913 IFS=$as_save_IFS
1704017914 test -z "$as_dir" && as_dir=.
1704117915 for ac_exec_ext in '' $ac_executable_extensions; do
17042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704317917 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1704417918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1704517919 break 2
1706817942 set dummy makeindex; ac_word=$2
1706917943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1707017944 $as_echo_n "checking for $ac_word... " >&6; }
17071 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
17945 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
1707217946 $as_echo_n "(cached) " >&6
1707317947 else
1707417948 case $ac_pt_DX_MAKEINDEX in
1708217956 IFS=$as_save_IFS
1708317957 test -z "$as_dir" && as_dir=.
1708417958 for ac_exec_ext in '' $ac_executable_extensions; do
17085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708617960 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
1708717961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1708817962 break 2
1713118005 set dummy ${ac_tool_prefix}egrep; ac_word=$2
1713218006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1713318007 $as_echo_n "checking for $ac_word... " >&6; }
17134 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
18008 if ${ac_cv_path_DX_EGREP+:} false; then :
1713518009 $as_echo_n "(cached) " >&6
1713618010 else
1713718011 case $DX_EGREP in
1714518019 IFS=$as_save_IFS
1714618020 test -z "$as_dir" && as_dir=.
1714718021 for ac_exec_ext in '' $ac_executable_extensions; do
17148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714918023 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1715018024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1715118025 break 2
1717418048 set dummy egrep; ac_word=$2
1717518049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1717618050 $as_echo_n "checking for $ac_word... " >&6; }
17177 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
18051 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
1717818052 $as_echo_n "(cached) " >&6
1717918053 else
1718018054 case $ac_pt_DX_EGREP in
1718818062 IFS=$as_save_IFS
1718918063 test -z "$as_dir" && as_dir=.
1719018064 for ac_exec_ext in '' $ac_executable_extensions; do
17191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719218066 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
1719318067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1719418068 break 2
1729618170
1729718171 ;; #(
1729818172 *)
17299 as_fn_error "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18173 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
1730018174 ;;
1730118175 esac
1730218176
1738418258 :end' >>confcache
1738518259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1738618260 if test -w "$cache_file"; then
17387 test "x$cache_file" != "x/dev/null" &&
18261 if test "x$cache_file" != "x/dev/null"; then
1738818262 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1738918263 $as_echo "$as_me: updating cache $cache_file" >&6;}
17390 cat confcache >$cache_file
18264 if test ! -f "$cache_file" || test -h "$cache_file"; then
18265 cat confcache >"$cache_file"
18266 else
18267 case $cache_file in #(
18268 */* | ?:*)
18269 mv -f confcache "$cache_file"$$ &&
18270 mv -f "$cache_file"$$ "$cache_file" ;; #(
18271 *)
18272 mv -f confcache "$cache_file" ;;
18273 esac
18274 fi
18275 fi
1739118276 else
1739218277 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1739318278 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1740318288
1740418289 ac_libobjs=
1740518290 ac_ltlibobjs=
18291 U=
1740618292 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1740718293 # 1. Remove the extension, and $U if already installed.
1740818294 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1741718303 LTLIBOBJS=$ac_ltlibobjs
1741818304
1741918305
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18307 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18308 if test -n "$am_sleep_pid"; then
18309 # Hide warnings about reused PIDs.
18310 wait $am_sleep_pid 2>/dev/null
18311 fi
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18313 $as_echo "done" >&6; }
1742018314 if test -n "$EXEEXT"; then
1742118315 am__EXEEXT_TRUE=
1742218316 am__EXEEXT_FALSE='#'
1742618320 fi
1742718321
1742818322 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17429 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
18323 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1743018324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1743118325 fi
1743218326 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17433 as_fn_error "conditional \"AMDEP\" was never defined.
18327 as_fn_error $? "conditional \"AMDEP\" was never defined.
1743418328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1743518329 fi
1743618330 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17437 as_fn_error "conditional \"am__fastdepCC\" was never defined.
18331 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1743818332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1743918333 fi
1744018334 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17441 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18335 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1744218336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1744318337 fi
17444 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17445 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18338 if test -z "${ZIP_IS_CONFIG_TRUE}" && test -z "${ZIP_IS_CONFIG_FALSE}"; then
18339 as_fn_error $? "conditional \"ZIP_IS_CONFIG\" was never defined.
1744618340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1744718341 fi
17448 if test -z "${ZIP_IS_CONFIG_TRUE}" && test -z "${ZIP_IS_CONFIG_FALSE}"; then
17449 as_fn_error "conditional \"ZIP_IS_CONFIG\" was never defined.
18342 if test -z "${JPEG_IS_CONFIG_TRUE}" && test -z "${JPEG_IS_CONFIG_FALSE}"; then
18343 as_fn_error $? "conditional \"JPEG_IS_CONFIG\" was never defined.
1745018344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1745118345 fi
17452 if test -z "${JPEG_IS_CONFIG_TRUE}" && test -z "${JPEG_IS_CONFIG_FALSE}"; then
17453 as_fn_error "conditional \"JPEG_IS_CONFIG\" was never defined.
18346 if test -z "${TIFF_IS_CONFIG_TRUE}" && test -z "${TIFF_IS_CONFIG_FALSE}"; then
18347 as_fn_error $? "conditional \"TIFF_IS_CONFIG\" was never defined.
1745418348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1745518349 fi
17456 if test -z "${TIFF_IS_CONFIG_TRUE}" && test -z "${TIFF_IS_CONFIG_FALSE}"; then
17457 as_fn_error "conditional \"TIFF_IS_CONFIG\" was never defined.
18350 if test -z "${PROJ_IS_CONFIG_TRUE}" && test -z "${PROJ_IS_CONFIG_FALSE}"; then
18351 as_fn_error $? "conditional \"PROJ_IS_CONFIG\" was never defined.
1745818352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1745918353 fi
17460 if test -z "${PROJ_IS_CONFIG_TRUE}" && test -z "${PROJ_IS_CONFIG_FALSE}"; then
17461 as_fn_error "conditional \"PROJ_IS_CONFIG\" was never defined.
18354 if test -z "${PROJECTS_H_IS_CONFIG_TRUE}" && test -z "${PROJECTS_H_IS_CONFIG_FALSE}"; then
18355 as_fn_error $? "conditional \"PROJECTS_H_IS_CONFIG\" was never defined.
1746218356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1746318357 fi
17464 if test -z "${PROJECTS_H_IS_CONFIG_TRUE}" && test -z "${PROJECTS_H_IS_CONFIG_FALSE}"; then
17465 as_fn_error "conditional \"PROJECTS_H_IS_CONFIG\" was never defined.
18358 if test -z "${CSV_IS_CONFIG_TRUE}" && test -z "${CSV_IS_CONFIG_FALSE}"; then
18359 as_fn_error $? "conditional \"CSV_IS_CONFIG\" was never defined.
1746618360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1746718361 fi
17468 if test -z "${CSV_IS_CONFIG_TRUE}" && test -z "${CSV_IS_CONFIG_FALSE}"; then
17469 as_fn_error "conditional \"CSV_IS_CONFIG\" was never defined.
18362 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18363 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
1747018364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1747118365 fi
1747218366 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
17473 as_fn_error "conditional \"DX_COND_doc\" was never defined.
18367 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
1747418368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1747518369 fi
17476 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
17477 as_fn_error "conditional \"DX_COND_doc\" was never defined.
18370 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18371 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
1747818372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1747918373 fi
1748018374 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
17481 as_fn_error "conditional \"DX_COND_dot\" was never defined.
18375 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
1748218376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1748318377 fi
17484 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
17485 as_fn_error "conditional \"DX_COND_dot\" was never defined.
18378 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18379 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
1748618380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1748718381 fi
1748818382 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
17489 as_fn_error "conditional \"DX_COND_man\" was never defined.
18383 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
1749018384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1749118385 fi
17492 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
17493 as_fn_error "conditional \"DX_COND_man\" was never defined.
18386 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18387 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
1749418388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1749518389 fi
1749618390 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
17497 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
18391 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
1749818392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1749918393 fi
17500 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
17501 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
18394 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18395 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
1750218396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1750318397 fi
1750418398 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
17505 as_fn_error "conditional \"DX_COND_xml\" was never defined.
18399 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
1750618400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1750718401 fi
17508 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
17509 as_fn_error "conditional \"DX_COND_xml\" was never defined.
18402 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18403 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
1751018404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1751118405 fi
1751218406 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
17513 as_fn_error "conditional \"DX_COND_chm\" was never defined.
18407 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
1751418408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1751518409 fi
17516 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
17517 as_fn_error "conditional \"DX_COND_chm\" was never defined.
18410 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18411 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
1751818412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1751918413 fi
1752018414 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
17521 as_fn_error "conditional \"DX_COND_chi\" was never defined.
18415 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
1752218416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1752318417 fi
17524 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
17525 as_fn_error "conditional \"DX_COND_chi\" was never defined.
18418 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18419 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
1752618420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1752718421 fi
1752818422 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
17529 as_fn_error "conditional \"DX_COND_html\" was never defined.
18423 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
1753018424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1753118425 fi
17532 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
17533 as_fn_error "conditional \"DX_COND_html\" was never defined.
18426 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18427 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
1753418428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1753518429 fi
1753618430 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
17537 as_fn_error "conditional \"DX_COND_ps\" was never defined.
18431 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
1753818432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1753918433 fi
17540 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
17541 as_fn_error "conditional \"DX_COND_ps\" was never defined.
18434 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18435 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
1754218436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1754318437 fi
1754418438 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
17545 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
18439 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
1754618440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1754718441 fi
17548 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
17549 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
18442 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18443 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
1755018444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1755118445 fi
1755218446 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
17553 as_fn_error "conditional \"DX_COND_latex\" was never defined.
18447 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
1755418448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1755518449 fi
17556 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
17557 as_fn_error "conditional \"DX_COND_latex\" was never defined.
17558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17559 fi
17560
17561 : ${CONFIG_STATUS=./config.status}
18450
18451 : "${CONFIG_STATUS=./config.status}"
1756218452 ac_write_fail=0
1756318453 ac_clean_files_save=$ac_clean_files
1756418454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1765918549 IFS=" "" $as_nl"
1766018550
1766118551 # Find who we are. Look in the path if we contain no directory separator.
18552 as_myself=
1766218553 case $0 in #((
1766318554 *[\\/]* ) as_myself=$0 ;;
1766418555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770418595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1770518596
1770618597
17707 # as_fn_error ERROR [LINENO LOG_FD]
17708 # ---------------------------------
18598 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18599 # ----------------------------------------
1770918600 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1771018601 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17711 # script with status $?, using 1 if that was 0.
18602 # script with STATUS, using 1 if that was 0.
1771218603 as_fn_error ()
1771318604 {
17714 as_status=$?; test $as_status -eq 0 && as_status=1
17715 if test "$3"; then
17716 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17717 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18605 as_status=$1; test $as_status -eq 0 && as_status=1
18606 if test "$4"; then
18607 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18608 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1771818609 fi
17719 $as_echo "$as_me: error: $1" >&2
18610 $as_echo "$as_me: error: $2" >&2
1772018611 as_fn_exit $as_status
1772118612 } # as_fn_error
1772218613
1785418745 # ... but there are two gotchas:
1785518746 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1785618747 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17857 # In both cases, we have to default to `cp -p'.
18748 # In both cases, we have to default to `cp -pR'.
1785818749 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17859 as_ln_s='cp -p'
18750 as_ln_s='cp -pR'
1786018751 elif ln conf$$.file conf$$ 2>/dev/null; then
1786118752 as_ln_s=ln
1786218753 else
17863 as_ln_s='cp -p'
18754 as_ln_s='cp -pR'
1786418755 fi
1786518756 else
17866 as_ln_s='cp -p'
18757 as_ln_s='cp -pR'
1786718758 fi
1786818759 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1786918760 rmdir conf$$.dir 2>/dev/null
1791218803 test -d "$as_dir" && break
1791318804 done
1791418805 test -z "$as_dirs" || eval "mkdir $as_dirs"
17915 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18806 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1791618807
1791718808
1791818809 } # as_fn_mkdir_p
1792318814 as_mkdir_p=false
1792418815 fi
1792518816
17926 if test -x / >/dev/null 2>&1; then
17927 as_test_x='test -x'
17928 else
17929 if ls -dL / >/dev/null 2>&1; then
17930 as_ls_L_option=L
17931 else
17932 as_ls_L_option=
17933 fi
17934 as_test_x='
17935 eval sh -c '\''
17936 if test -d "$1"; then
17937 test -d "$1/.";
17938 else
17939 case $1 in #(
17940 -*)set "./$1";;
17941 esac;
17942 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17943 ???[sx]*):;;*)false;;esac;fi
17944 '\'' sh
17945 '
17946 fi
17947 as_executable_p=$as_test_x
18817
18818 # as_fn_executable_p FILE
18819 # -----------------------
18820 # Test if FILE is an executable regular file.
18821 as_fn_executable_p ()
18822 {
18823 test -f "$1" && test -x "$1"
18824 } # as_fn_executable_p
18825 as_test_x='test -x'
18826 as_executable_p=as_fn_executable_p
1794818827
1794918828 # Sed expression to map a string onto a valid CPP name.
1795018829 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1796518844 # report actual input values of CONFIG_FILES etc. instead of their
1796618845 # values after options handling.
1796718846 ac_log="
17968 This file was extended by libgeotiff $as_me 1.4.0, which was
17969 generated by GNU Autoconf 2.65. Invocation command line was
18847 This file was extended by libgeotiff $as_me 1.4.1, which was
18848 generated by GNU Autoconf 2.69. Invocation command line was
1797018849
1797118850 CONFIG_FILES = $CONFIG_FILES
1797218851 CONFIG_HEADERS = $CONFIG_HEADERS
1803118910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1803218911 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1803318912 ac_cs_version="\\
18034 libgeotiff config.status 1.4.0
18035 configured by $0, generated by GNU Autoconf 2.65,
18913 libgeotiff config.status 1.4.1
18914 configured by $0, generated by GNU Autoconf 2.69,
1803618915 with options \\"\$ac_cs_config\\"
1803718916
18038 Copyright (C) 2009 Free Software Foundation, Inc.
18917 Copyright (C) 2012 Free Software Foundation, Inc.
1803918918 This config.status script is free software; the Free Software Foundation
1804018919 gives unlimited permission to copy, distribute and modify it."
1804118920
1805318932 while test $# != 0
1805418933 do
1805518934 case $1 in
18056 --*=*)
18935 --*=?*)
1805718936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
1805818937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18938 ac_shift=:
18939 ;;
18940 --*=)
18941 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18942 ac_optarg=
1805918943 ac_shift=:
1806018944 ;;
1806118945 *)
1807918963 $ac_shift
1808018964 case $ac_optarg in
1808118965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18966 '') as_fn_error $? "missing file argument" ;;
1808218967 esac
1808318968 as_fn_append CONFIG_FILES " '$ac_optarg'"
1808418969 ac_need_defaults=false;;
1809118976 ac_need_defaults=false;;
1809218977 --he | --h)
1809318978 # Conflict between --help and --header
18094 as_fn_error "ambiguous option: \`$1'
18979 as_fn_error $? "ambiguous option: \`$1'
1809518980 Try \`$0 --help' for more information.";;
1809618981 --help | --hel | -h )
1809718982 $as_echo "$ac_cs_usage"; exit ;;
1810018985 ac_cs_silent=: ;;
1810118986
1810218987 # This is an error.
18103 -*) as_fn_error "unrecognized option: \`$1'
18988 -*) as_fn_error $? "unrecognized option: \`$1'
1810418989 Try \`$0 --help' for more information." ;;
1810518990
1810618991 *) as_fn_append ac_config_targets " $1"
1812019005 _ACEOF
1812119006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1812219007 if \$ac_cs_recheck; then
18123 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19008 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1812419009 shift
1812519010 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1812619011 CONFIG_SHELL='$SHELL'
1815419039 sed_quote_subst='$sed_quote_subst'
1815519040 double_quote_subst='$double_quote_subst'
1815619041 delay_variable_subst='$delay_variable_subst'
18157 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18158 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18159 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18160 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18161 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18162 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18163 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18164 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18165 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18166 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18167 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18168 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18169 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18170 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18171 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18172 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18173 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18174 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18175 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18176 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18177 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18178 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18179 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18180 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18181 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18182 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18183 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18184 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18185 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18186 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18187 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18188 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18189 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18190 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18191 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18192 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18193 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18194 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18195 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18196 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18197 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18198 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18199 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18200 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18201 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18202 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18203 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18204 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18205 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18206 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18207 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18208 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18209 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18210 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18211 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18212 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18213 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18214 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18215 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18216 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18217 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18218 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18219 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18220 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18221 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18222 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18223 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18224 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18225 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18226 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18227 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18228 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18229 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18230 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18231 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18232 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18233 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18234 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18235 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18236 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18237 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18238 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18239 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18240 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18241 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18242 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18243 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18244 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18245 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18246 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18247 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18248 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18249 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18250 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18251 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18252 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18253 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18254 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18255 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18256 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18257 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18258 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18259 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18260 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18261 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18262 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18263 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18264 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18265 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18266 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18267 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18268 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18269 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18270 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18271 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18272 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18273 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18274 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18275 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18276 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18277 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18278 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18279 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18280 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18281 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18282 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18283 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18284 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18285 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18286 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18287 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18288 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18289 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18290 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18291 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18292 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18293 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18294 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18295 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18296 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18297 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18298 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18299 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18300 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18301 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18302 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18303 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18304 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18305 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18306 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18307 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18308 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18309 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18310 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18311 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18312 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18313 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18314 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18315 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18316 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18317 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18318 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18319 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18320 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18321 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18322 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18323 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18324 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18325 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18326 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18327 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19042 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19043 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19044 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19045 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19046 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19047 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19048 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19049 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19050 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19051 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19052 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19053 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19054 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19055 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19056 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19057 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19058 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19059 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19060 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19061 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19062 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19063 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19064 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19065 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19066 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19067 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19068 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19069 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19070 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19071 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19072 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19073 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19074 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19075 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19076 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19077 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19078 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19079 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19080 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19081 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19082 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19083 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19084 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19085 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19086 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19087 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19088 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19089 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19090 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19091 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19092 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19093 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19094 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19095 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19096 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19097 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19099 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19100 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19101 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19102 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19103 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19104 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19106 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19107 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19108 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19109 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19133 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19134 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19135 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19136 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19137 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19138 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19139 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19140 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19141 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19142 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19143 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19144 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19145 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19146 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19147 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19148 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19149 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19150 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19151 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19152 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19153 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19154 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19155 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19156 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19157 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19158 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19159 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19160 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19161 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19162 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19163 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19164 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19165 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19166 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19167 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19168 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19169 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19170 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19171 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19172 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19173 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19174 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19175 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19176 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19177 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19178 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19179 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19180 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19181 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19182 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19183 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19184 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19185 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19186 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19187 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19188 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19189 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19190 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19191 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19192 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19193 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19194 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19195 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19196 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19197 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19198 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19199 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19200 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19201 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19202 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19203 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19204 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19205 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19206 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19207 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19208 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19209 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19210 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19211 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19212 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19213 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19214 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19215 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19216 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19217 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19218 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19219 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19220 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19221 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19222 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19223 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19224 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19225 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
1832819226
1832919227 LTCC='$LTCC'
1833019228 LTCFLAGS='$LTCFLAGS'
1833119229 compiler='$compiler_DEFAULT'
1833219230
19231 # A function that is used when there is no print builtin or printf.
19232 func_fallback_echo ()
19233 {
19234 eval 'cat <<_LTECHO_EOF
19235 \$1
19236 _LTECHO_EOF'
19237 }
19238
1833319239 # Quote evaled strings.
18334 for var in SED \
19240 for var in SHELL \
19241 ECHO \
19242 PATH_SEPARATOR \
19243 SED \
1833519244 GREP \
1833619245 EGREP \
1833719246 FGREP \
1834419253 OBJDUMP \
1834519254 deplibs_check_method \
1834619255 file_magic_cmd \
19256 file_magic_glob \
19257 want_nocaseglob \
19258 DLLTOOL \
19259 sharedlib_from_linklib_cmd \
1834719260 AR \
1834819261 AR_FLAGS \
19262 archiver_list_spec \
1834919263 STRIP \
1835019264 RANLIB \
1835119265 CC \
1835519269 lt_cv_sys_global_symbol_to_cdecl \
1835619270 lt_cv_sys_global_symbol_to_c_name_address \
1835719271 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18358 SHELL \
18359 ECHO \
19272 nm_file_list_spec \
1836019273 lt_prog_compiler_no_builtin_flag \
19274 lt_prog_compiler_pic \
1836119275 lt_prog_compiler_wl \
18362 lt_prog_compiler_pic \
1836319276 lt_prog_compiler_static \
1836419277 lt_cv_prog_compiler_c_o \
1836519278 need_locks \
19279 MANIFEST_TOOL \
1836619280 DSYMUTIL \
1836719281 NMEDIT \
1836819282 LIPO \
1837619290 allow_undefined_flag \
1837719291 no_undefined_flag \
1837819292 hardcode_libdir_flag_spec \
18379 hardcode_libdir_flag_spec_ld \
1838019293 hardcode_libdir_separator \
18381 fix_srcfile_path \
1838219294 exclude_expsyms \
1838319295 include_expsyms \
1838419296 file_list_spec \
1838619298 libname_spec \
1838719299 library_names_spec \
1838819300 soname_spec \
19301 install_override_mode \
1838919302 finish_eval \
1839019303 old_striplib \
1839119304 striplib \
1839619309 postdeps \
1839719310 compiler_lib_search_path \
1839819311 LD_CXX \
19312 reload_flag_CXX \
1839919313 compiler_CXX \
1840019314 lt_prog_compiler_no_builtin_flag_CXX \
19315 lt_prog_compiler_pic_CXX \
1840119316 lt_prog_compiler_wl_CXX \
18402 lt_prog_compiler_pic_CXX \
1840319317 lt_prog_compiler_static_CXX \
1840419318 lt_cv_prog_compiler_c_o_CXX \
1840519319 export_dynamic_flag_spec_CXX \
1840919323 allow_undefined_flag_CXX \
1841019324 no_undefined_flag_CXX \
1841119325 hardcode_libdir_flag_spec_CXX \
18412 hardcode_libdir_flag_spec_ld_CXX \
1841319326 hardcode_libdir_separator_CXX \
18414 fix_srcfile_path_CXX \
1841519327 exclude_expsyms_CXX \
1841619328 include_expsyms_CXX \
1841719329 file_list_spec_CXX \
1842119333 predeps_CXX \
1842219334 postdeps_CXX \
1842319335 compiler_lib_search_path_CXX; do
18424 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19336 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1842519337 *[\\\\\\\`\\"\\\$]*)
18426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19338 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1842719339 ;;
1842819340 *)
1842919341 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1844519357 module_expsym_cmds \
1844619358 export_symbols_cmds \
1844719359 prelink_cmds \
19360 postlink_cmds \
1844819361 postinstall_cmds \
1844919362 postuninstall_cmds \
1845019363 finish_cmds \
1845119364 sys_lib_search_path_spec \
1845219365 sys_lib_dlsearch_path_spec \
19366 reload_cmds_CXX \
1845319367 old_archive_cmds_CXX \
1845419368 old_archive_from_new_cmds_CXX \
1845519369 old_archive_from_expsyms_cmds_CXX \
1845819372 module_cmds_CXX \
1845919373 module_expsym_cmds_CXX \
1846019374 export_symbols_cmds_CXX \
18461 prelink_cmds_CXX; do
18462 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19375 prelink_cmds_CXX \
19376 postlink_cmds_CXX; do
19377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1846319378 *[\\\\\\\`\\"\\\$]*)
18464 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1846519380 ;;
1846619381 *)
1846719382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1846819383 ;;
1846919384 esac
1847019385 done
18471
18472 # Fix-up fallback echo if it was mangled by the above quoting rules.
18473 case \$lt_ECHO in
18474 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18475 ;;
18476 esac
1847719386
1847819387 ac_aux_dir='$ac_aux_dir'
1847919388 xsi_shell='$xsi_shell'
1851519424 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
1851619425 "cmake/Makefile") CONFIG_FILES="$CONFIG_FILES cmake/Makefile" ;;
1851719426
18518 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1851919428 esac
1852019429 done
1852119430
1853819447 # after its creation but before its name has been assigned to `$tmp'.
1853919448 $debug ||
1854019449 {
18541 tmp=
19450 tmp= ac_tmp=
1854219451 trap 'exit_status=$?
18543 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19452 : "${ac_tmp:=$tmp}"
19453 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1854419454 ' 0
1854519455 trap 'as_fn_exit 1' 1 2 13 15
1854619456 }
1854819458
1854919459 {
1855019460 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18551 test -n "$tmp" && test -d "$tmp"
19461 test -d "$tmp"
1855219462 } ||
1855319463 {
1855419464 tmp=./conf$$-$RANDOM
1855519465 (umask 077 && mkdir "$tmp")
18556 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19466 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19467 ac_tmp=$tmp
1855719468
1855819469 # Set up the scripts for CONFIG_FILES section.
1855919470 # No need to generate them if there are no CONFIG_FILES.
1857019481 fi
1857119482 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1857219483 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18573 ac_cs_awk_cr='\r'
19484 ac_cs_awk_cr='\\r'
1857419485 else
1857519486 ac_cs_awk_cr=$ac_cr
1857619487 fi
1857719488
18578 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19489 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1857919490 _ACEOF
1858019491
1858119492
1858419495 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1858519496 echo "_ACEOF"
1858619497 } >conf$$subs.sh ||
18587 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1858919500 ac_delim='%!_!# '
1859019501 for ac_last_try in false false false false false :; do
1859119502 . ./conf$$subs.sh ||
18592 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1859319504
1859419505 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1859519506 if test $ac_delim_n = $ac_delim_num; then
1859619507 break
1859719508 elif $ac_last_try; then
18598 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1859919510 else
1860019511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1860119512 fi
1860319514 rm -f conf$$subs.sh
1860419515
1860519516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18606 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19517 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1860719518 _ACEOF
1860819519 sed -n '
1860919520 h
1865119562 rm -f conf$$subs.awk
1865219563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1865319564 _ACAWK
18654 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19565 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1865519566 for (key in S) S_is_set[key] = 1
1865619567 FS = ""
1865719568
1868319594 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1868419595 else
1868519596 cat
18686 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18687 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19597 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19598 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1868819599 _ACEOF
1868919600
18690 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18691 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19601 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19602 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1869219603 # trailing colons and then remove the whole line if VPATH becomes empty
1869319604 # (actually we leave an empty line to preserve line numbers).
1869419605 if test "x$srcdir" = x.; then
18695 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18696 s/:*\$(srcdir):*/:/
18697 s/:*\${srcdir}:*/:/
18698 s/:*@srcdir@:*/:/
18699 s/^\([^=]*=[ ]*\):*/\1/
19606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19607 h
19608 s///
19609 s/^/:/
19610 s/[ ]*$/:/
19611 s/:\$(srcdir):/:/g
19612 s/:\${srcdir}:/:/g
19613 s/:@srcdir@:/:/g
19614 s/^:*//
1870019615 s/:*$//
19616 x
19617 s/\(=[ ]*\).*/\1/
19618 G
19619 s/\n//
1870119620 s/^[^=]*=[ ]*$//
1870219621 }'
1870319622 fi
1870919628 # No need to generate them if there are no CONFIG_HEADERS.
1871019629 # This happens for instance with `./config.status Makefile'.
1871119630 if test -n "$CONFIG_HEADERS"; then
18712 cat >"$tmp/defines.awk" <<\_ACAWK ||
19631 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1871319632 BEGIN {
1871419633 _ACEOF
1871519634
1872119640 # handling of long lines.
1872219641 ac_delim='%!_!# '
1872319642 for ac_last_try in false false :; do
18724 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18725 if test -z "$ac_t"; then
19643 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19644 if test -z "$ac_tt"; then
1872619645 break
1872719646 elif $ac_last_try; then
18728 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19647 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1872919648 else
1873019649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1873119650 fi
1881019729 _ACAWK
1881119730 _ACEOF
1881219731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18813 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19732 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1881419733 fi # test -n "$CONFIG_HEADERS"
1881519734
1881619735
1882319742 esac
1882419743 case $ac_mode$ac_tag in
1882519744 :[FHL]*:*);;
18826 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19745 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1882719746 :[FH]-) ac_tag=-:-;;
1882819747 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1882919748 esac
1884219761 for ac_f
1884319762 do
1884419763 case $ac_f in
18845 -) ac_f="$tmp/stdin";;
19764 -) ac_f="$ac_tmp/stdin";;
1884619765 *) # Look for the file first in the build tree, then in the source tree
1884719766 # (if the path is not absolute). The absolute path cannot be DOS-style,
1884819767 # because $ac_f cannot contain `:'.
1885119770 [\\/$]*) false;;
1885219771 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1885319772 esac ||
18854 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19773 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1885519774 esac
1885619775 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1885719776 as_fn_append ac_file_inputs " '$ac_f'"
1887719796 esac
1887819797
1887919798 case $ac_tag in
18880 *:-:* | *:-) cat >"$tmp/stdin" \
18881 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19799 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1888219801 esac
1888319802 ;;
1888419803 esac
1901419933 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1901519934 $ac_datarootdir_hack
1901619935 "
19017 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19018 || as_fn_error "could not create $ac_file" "$LINENO" 5
19936 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19937 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1901919938
1902019939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19021 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19940 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19942 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1902319943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19024 which seems to be undefined. Please make sure it is defined." >&5
19944 which seems to be undefined. Please make sure it is defined" >&5
1902519945 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19026 which seems to be undefined. Please make sure it is defined." >&2;}
19027
19028 rm -f "$tmp/stdin"
19946 which seems to be undefined. Please make sure it is defined" >&2;}
19947
19948 rm -f "$ac_tmp/stdin"
1902919949 case $ac_file in
19030 -) cat "$tmp/out" && rm -f "$tmp/out";;
19031 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19950 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19951 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1903219952 esac \
19033 || as_fn_error "could not create $ac_file" "$LINENO" 5
19953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1903419954 ;;
1903519955 :H)
1903619956 #
1903919959 if test x"$ac_file" != x-; then
1904019960 {
1904119961 $as_echo "/* $configure_input */" \
19042 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19043 } >"$tmp/config.h" \
19044 || as_fn_error "could not create $ac_file" "$LINENO" 5
19045 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19963 } >"$ac_tmp/config.h" \
19964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19965 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1904619966 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1904719967 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1904819968 else
1904919969 rm -f "$ac_file"
19050 mv "$tmp/config.h" "$ac_file" \
19051 || as_fn_error "could not create $ac_file" "$LINENO" 5
19970 mv "$ac_tmp/config.h" "$ac_file" \
19971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1905219972 fi
1905319973 else
1905419974 $as_echo "/* $configure_input */" \
19055 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19056 || as_fn_error "could not create -" "$LINENO" 5
19975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19976 || as_fn_error $? "could not create -" "$LINENO" 5
1905719977 fi
1905819978 # Compute "$ac_file"'s index in $config_headers.
1905919979 _am_arg="$ac_file"
1909920019
1910020020 case $ac_file$ac_mode in
1910120021 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19102 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20022 # Older Autoconf quotes --file arguments for eval, but not when files
1910320023 # are listed without --file. Let's play safe and only enable the eval
1910420024 # if we detect the quoting.
1910520025 case $CONFIG_FILES in
1911220032 # Strip MF so we end up with the name of the file.
1911320033 mf=`echo "$mf" | sed -e 's/:.*$//'`
1911420034 # Check whether this is an Automake generated Makefile or not.
19115 # We used to match only the files named `Makefile.in', but
20035 # We used to match only the files named 'Makefile.in', but
1911620036 # some people rename them; so instead we look at the file content.
1911720037 # Grep'ing the first line is not enough: some people post-process
1911820038 # each Makefile.in and add a new line on top of each file to say so.
1914620066 continue
1914720067 fi
1914820068 # Extract the definition of DEPDIR, am__include, and am__quote
19149 # from the Makefile without running `make'.
20069 # from the Makefile without running 'make'.
1915020070 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1915120071 test -z "$DEPDIR" && continue
1915220072 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19153 test -z "am__include" && continue
20073 test -z "$am__include" && continue
1915420074 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19155 # When using ansi2knr, U may be empty or an underscore; expand it
19156 U=`sed -n 's/^U = //p' < "$mf"`
1915720075 # Find all dependency output files, they are included files with
1915820076 # $(DEPDIR) in their names. We invoke sed twice because it is the
1915920077 # simplest approach to changing $(DEPDIR) to its actual value in the
1916020078 # expansion.
1916120079 for file in `sed -n "
1916220080 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19163 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20081 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1916420082 # Make sure the directory exists.
1916520083 test -f "$dirpart/$file" && continue
1916620084 fdir=`$as_dirname -- "$file" ||
1921420132 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1921520133 #
1921620134 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19217 # 2006, 2007, 2008 Free Software Foundation, Inc.
20135 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20136 # Foundation, Inc.
1921820137 # Written by Gordon Matzigkeit, 1996
1921920138 #
1922020139 # This file is part of GNU Libtool.
1926220181 # Whether or not to optimize for fast installation.
1926320182 fast_install=$enable_fast_install
1926420183
20184 # Shell to use when invoking shell scripts.
20185 SHELL=$lt_SHELL
20186
20187 # An echo program that protects backslashes.
20188 ECHO=$lt_ECHO
20189
20190 # The PATH separator for the build system.
20191 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20192
1926520193 # The host system.
1926620194 host_alias=$host_alias
1926720195 host=$host
1931120239 # turn newlines into spaces.
1931220240 NL2SP=$lt_lt_NL2SP
1931320241
19314 # How to create reloadable object files.
19315 reload_flag=$lt_reload_flag
19316 reload_cmds=$lt_reload_cmds
20242 # convert \$build file names to \$host format.
20243 to_host_file_cmd=$lt_cv_to_host_file_cmd
20244
20245 # convert \$build files to toolchain format.
20246 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1931720247
1931820248 # An object symbol dumper.
1931920249 OBJDUMP=$lt_OBJDUMP
1932120251 # Method to check whether dependent libraries are shared objects.
1932220252 deplibs_check_method=$lt_deplibs_check_method
1932320253
19324 # Command to use when deplibs_check_method == "file_magic".
20254 # Command to use when deplibs_check_method = "file_magic".
1932520255 file_magic_cmd=$lt_file_magic_cmd
20256
20257 # How to find potential files when deplibs_check_method = "file_magic".
20258 file_magic_glob=$lt_file_magic_glob
20259
20260 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20261 want_nocaseglob=$lt_want_nocaseglob
20262
20263 # DLL creation program.
20264 DLLTOOL=$lt_DLLTOOL
20265
20266 # Command to associate shared and link libraries.
20267 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1932620268
1932720269 # The archiver.
1932820270 AR=$lt_AR
20271
20272 # Flags to create an archive.
1932920273 AR_FLAGS=$lt_AR_FLAGS
20274
20275 # How to feed a file listing to the archiver.
20276 archiver_list_spec=$lt_archiver_list_spec
1933020277
1933120278 # A symbol stripping program.
1933220279 STRIP=$lt_STRIP
1933620283 old_postinstall_cmds=$lt_old_postinstall_cmds
1933720284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
1933820285
20286 # Whether to use a lock for old archive extraction.
20287 lock_old_archive_extraction=$lock_old_archive_extraction
20288
1933920289 # A C compiler.
1934020290 LTCC=$lt_CC
1934120291
1935420304 # Transform the output of nm in a C name address pair when lib prefix is needed.
1935520305 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1935620306
20307 # Specify filename containing input files for \$NM.
20308 nm_file_list_spec=$lt_nm_file_list_spec
20309
20310 # The root where to search for dependent libraries,and in which our libraries should be installed.
20311 lt_sysroot=$lt_sysroot
20312
1935720313 # The name of the directory that contains temporary libtool files.
1935820314 objdir=$objdir
1935920315
19360 # Shell to use when invoking shell scripts.
19361 SHELL=$lt_SHELL
19362
19363 # An echo program that does not interpret backslashes.
19364 ECHO=$lt_ECHO
19365
1936620316 # Used to examine libraries when file_magic_cmd begins with "file".
1936720317 MAGIC_CMD=$MAGIC_CMD
1936820318
1936920319 # Must we lock files when doing compilation?
1937020320 need_locks=$lt_need_locks
20321
20322 # Manifest tool.
20323 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1937120324
1937220325 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1937320326 DSYMUTIL=$lt_DSYMUTIL
1942520378 # The coded name of the library, if different from the real name.
1942620379 soname_spec=$lt_soname_spec
1942720380
20381 # Permission mode override for installation of shared libraries.
20382 install_override_mode=$lt_install_override_mode
20383
1942820384 # Command to use after installation of a shared archive.
1942920385 postinstall_cmds=$lt_postinstall_cmds
1943020386
1946420420 # The linker used to build libraries.
1946520421 LD=$lt_LD
1946620422
20423 # How to create reloadable object files.
20424 reload_flag=$lt_reload_flag
20425 reload_cmds=$lt_reload_cmds
20426
1946720427 # Commands used to build an old-style archive.
1946820428 old_archive_cmds=$lt_old_archive_cmds
1946920429
1947620436 # Compiler flag to turn off builtin functions.
1947720437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1947820438
20439 # Additional compiler flags for building library objects.
20440 pic_flag=$lt_lt_prog_compiler_pic
20441
1947920442 # How to pass a linker flag through the compiler.
1948020443 wl=$lt_lt_prog_compiler_wl
19481
19482 # Additional compiler flags for building library objects.
19483 pic_flag=$lt_lt_prog_compiler_pic
1948420444
1948520445 # Compiler flag to prevent dynamic linking.
1948620446 link_static_flag=$lt_lt_prog_compiler_static
1953020490 # Flag to hardcode \$libdir into a binary during linking.
1953120491 # This must work even if \$libdir does not exist
1953220492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19533
19534 # If ld is used when linking, flag to hardcode \$libdir into a binary
19535 # during linking. This must work even if \$libdir does not exist.
19536 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1953720493
1953820494 # Whether we need a single "-rpath" flag with a separated argument.
1953920495 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1956820524 # Whether libtool must link a program against all its dependency libraries.
1956920525 link_all_deplibs=$link_all_deplibs
1957020526
19571 # Fix the shell variable \$srcfile for the compiler.
19572 fix_srcfile_path=$lt_fix_srcfile_path
19573
1957420527 # Set to "yes" if exported symbols are required.
1957520528 always_export_symbols=$always_export_symbols
1957620529
1958520538
1958620539 # Commands necessary for linking programs (against libraries) with templates.
1958720540 prelink_cmds=$lt_prelink_cmds
20541
20542 # Commands necessary for finishing linking programs.
20543 postlink_cmds=$lt_postlink_cmds
1958820544
1958920545 # Specify filename containing input files.
1959020546 file_list_spec=$lt_file_list_spec
1963220588 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1963320589 # text mode, it properly converts lines to CR/LF. This bash problem
1963420590 # is reportedly fixed, but why not run on old versions too?
19635 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19636 || (rm -f "$cfgfile"; exit 1)
19637
19638 case $xsi_shell in
19639 yes)
19640 cat << \_LT_EOF >> "$cfgfile"
19641
19642 # func_dirname file append nondir_replacement
19643 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19644 # otherwise set result to NONDIR_REPLACEMENT.
19645 func_dirname ()
19646 {
19647 case ${1} in
19648 */*) func_dirname_result="${1%/*}${2}" ;;
19649 * ) func_dirname_result="${3}" ;;
19650 esac
19651 }
19652
19653 # func_basename file
19654 func_basename ()
19655 {
19656 func_basename_result="${1##*/}"
19657 }
19658
19659 # func_dirname_and_basename file append nondir_replacement
19660 # perform func_basename and func_dirname in a single function
19661 # call:
19662 # dirname: Compute the dirname of FILE. If nonempty,
19663 # add APPEND to the result, otherwise set result
19664 # to NONDIR_REPLACEMENT.
19665 # value returned in "$func_dirname_result"
19666 # basename: Compute filename of FILE.
19667 # value retuned in "$func_basename_result"
19668 # Implementation must be kept synchronized with func_dirname
19669 # and func_basename. For efficiency, we do not delegate to
19670 # those functions but instead duplicate the functionality here.
19671 func_dirname_and_basename ()
19672 {
19673 case ${1} in
19674 */*) func_dirname_result="${1%/*}${2}" ;;
19675 * ) func_dirname_result="${3}" ;;
19676 esac
19677 func_basename_result="${1##*/}"
19678 }
19679
19680 # func_stripname prefix suffix name
19681 # strip PREFIX and SUFFIX off of NAME.
19682 # PREFIX and SUFFIX must not contain globbing or regex special
19683 # characters, hashes, percent signs, but SUFFIX may contain a leading
19684 # dot (in which case that matches only a dot).
19685 func_stripname ()
19686 {
19687 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19688 # positional parameters, so assign one to ordinary parameter first.
19689 func_stripname_result=${3}
19690 func_stripname_result=${func_stripname_result#"${1}"}
19691 func_stripname_result=${func_stripname_result%"${2}"}
19692 }
19693
19694 # func_opt_split
19695 func_opt_split ()
19696 {
19697 func_opt_split_opt=${1%%=*}
19698 func_opt_split_arg=${1#*=}
19699 }
19700
19701 # func_lo2o object
19702 func_lo2o ()
19703 {
19704 case ${1} in
19705 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19706 *) func_lo2o_result=${1} ;;
19707 esac
19708 }
19709
19710 # func_xform libobj-or-source
19711 func_xform ()
19712 {
19713 func_xform_result=${1%.*}.lo
19714 }
19715
19716 # func_arith arithmetic-term...
19717 func_arith ()
19718 {
19719 func_arith_result=$(( $* ))
19720 }
19721
19722 # func_len string
19723 # STRING may not start with a hyphen.
19724 func_len ()
19725 {
19726 func_len_result=${#1}
19727 }
19728
19729 _LT_EOF
19730 ;;
19731 *) # Bourne compatible functions.
19732 cat << \_LT_EOF >> "$cfgfile"
19733
19734 # func_dirname file append nondir_replacement
19735 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19736 # otherwise set result to NONDIR_REPLACEMENT.
19737 func_dirname ()
19738 {
19739 # Extract subdirectory from the argument.
19740 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19741 if test "X$func_dirname_result" = "X${1}"; then
19742 func_dirname_result="${3}"
19743 else
19744 func_dirname_result="$func_dirname_result${2}"
19745 fi
19746 }
19747
19748 # func_basename file
19749 func_basename ()
19750 {
19751 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19752 }
19753
19754
19755 # func_stripname prefix suffix name
19756 # strip PREFIX and SUFFIX off of NAME.
19757 # PREFIX and SUFFIX must not contain globbing or regex special
19758 # characters, hashes, percent signs, but SUFFIX may contain a leading
19759 # dot (in which case that matches only a dot).
19760 # func_strip_suffix prefix name
19761 func_stripname ()
19762 {
19763 case ${2} in
19764 .*) func_stripname_result=`$ECHO "X${3}" \
19765 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19766 *) func_stripname_result=`$ECHO "X${3}" \
19767 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19768 esac
19769 }
19770
19771 # sed scripts:
19772 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19773 my_sed_long_arg='1s/^-[^=]*=//'
19774
19775 # func_opt_split
19776 func_opt_split ()
19777 {
19778 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19779 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19780 }
19781
19782 # func_lo2o object
19783 func_lo2o ()
19784 {
19785 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19786 }
19787
19788 # func_xform libobj-or-source
19789 func_xform ()
19790 {
19791 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19792 }
19793
19794 # func_arith arithmetic-term...
19795 func_arith ()
19796 {
19797 func_arith_result=`expr "$@"`
19798 }
19799
19800 # func_len string
19801 # STRING may not start with a hyphen.
19802 func_len ()
19803 {
19804 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19805 }
19806
19807 _LT_EOF
19808 esac
19809
19810 case $lt_shell_append in
19811 yes)
19812 cat << \_LT_EOF >> "$cfgfile"
19813
19814 # func_append var value
19815 # Append VALUE to the end of shell variable VAR.
19816 func_append ()
19817 {
19818 eval "$1+=\$2"
19819 }
19820 _LT_EOF
19821 ;;
19822 *)
19823 cat << \_LT_EOF >> "$cfgfile"
19824
19825 # func_append var value
19826 # Append VALUE to the end of shell variable VAR.
19827 func_append ()
19828 {
19829 eval "$1=\$$1\$2"
19830 }
19831
19832 _LT_EOF
19833 ;;
19834 esac
19835
19836
19837 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19838 || (rm -f "$cfgfile"; exit 1)
19839
19840 mv -f "$cfgfile" "$ofile" ||
20591 sed '$q' "$ltmain" >> "$cfgfile" \
20592 || (rm -f "$cfgfile"; exit 1)
20593
20594 if test x"$xsi_shell" = xyes; then
20595 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20596 func_dirname ()\
20597 {\
20598 \ case ${1} in\
20599 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20600 \ * ) func_dirname_result="${3}" ;;\
20601 \ esac\
20602 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20603 && mv -f "$cfgfile.tmp" "$cfgfile" \
20604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20605 test 0 -eq $? || _lt_function_replace_fail=:
20606
20607
20608 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20609 func_basename ()\
20610 {\
20611 \ func_basename_result="${1##*/}"\
20612 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20613 && mv -f "$cfgfile.tmp" "$cfgfile" \
20614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20615 test 0 -eq $? || _lt_function_replace_fail=:
20616
20617
20618 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20619 func_dirname_and_basename ()\
20620 {\
20621 \ case ${1} in\
20622 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20623 \ * ) func_dirname_result="${3}" ;;\
20624 \ esac\
20625 \ func_basename_result="${1##*/}"\
20626 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20627 && mv -f "$cfgfile.tmp" "$cfgfile" \
20628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20629 test 0 -eq $? || _lt_function_replace_fail=:
20630
20631
20632 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20633 func_stripname ()\
20634 {\
20635 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20636 \ # positional parameters, so assign one to ordinary parameter first.\
20637 \ func_stripname_result=${3}\
20638 \ func_stripname_result=${func_stripname_result#"${1}"}\
20639 \ func_stripname_result=${func_stripname_result%"${2}"}\
20640 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20641 && mv -f "$cfgfile.tmp" "$cfgfile" \
20642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20643 test 0 -eq $? || _lt_function_replace_fail=:
20644
20645
20646 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20647 func_split_long_opt ()\
20648 {\
20649 \ func_split_long_opt_name=${1%%=*}\
20650 \ func_split_long_opt_arg=${1#*=}\
20651 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20652 && mv -f "$cfgfile.tmp" "$cfgfile" \
20653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20654 test 0 -eq $? || _lt_function_replace_fail=:
20655
20656
20657 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20658 func_split_short_opt ()\
20659 {\
20660 \ func_split_short_opt_arg=${1#??}\
20661 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20662 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20663 && mv -f "$cfgfile.tmp" "$cfgfile" \
20664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20665 test 0 -eq $? || _lt_function_replace_fail=:
20666
20667
20668 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20669 func_lo2o ()\
20670 {\
20671 \ case ${1} in\
20672 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20673 \ *) func_lo2o_result=${1} ;;\
20674 \ esac\
20675 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20676 && mv -f "$cfgfile.tmp" "$cfgfile" \
20677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20678 test 0 -eq $? || _lt_function_replace_fail=:
20679
20680
20681 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20682 func_xform ()\
20683 {\
20684 func_xform_result=${1%.*}.lo\
20685 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20686 && mv -f "$cfgfile.tmp" "$cfgfile" \
20687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20688 test 0 -eq $? || _lt_function_replace_fail=:
20689
20690
20691 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20692 func_arith ()\
20693 {\
20694 func_arith_result=$(( $* ))\
20695 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20696 && mv -f "$cfgfile.tmp" "$cfgfile" \
20697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20698 test 0 -eq $? || _lt_function_replace_fail=:
20699
20700
20701 sed -e '/^func_len ()$/,/^} # func_len /c\
20702 func_len ()\
20703 {\
20704 func_len_result=${#1}\
20705 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20706 && mv -f "$cfgfile.tmp" "$cfgfile" \
20707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20708 test 0 -eq $? || _lt_function_replace_fail=:
20709
20710 fi
20711
20712 if test x"$lt_shell_append" = xyes; then
20713 sed -e '/^func_append ()$/,/^} # func_append /c\
20714 func_append ()\
20715 {\
20716 eval "${1}+=\\${2}"\
20717 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20718 && mv -f "$cfgfile.tmp" "$cfgfile" \
20719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20720 test 0 -eq $? || _lt_function_replace_fail=:
20721
20722
20723 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20724 func_append_quoted ()\
20725 {\
20726 \ func_quote_for_eval "${2}"\
20727 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20728 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20729 && mv -f "$cfgfile.tmp" "$cfgfile" \
20730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20731 test 0 -eq $? || _lt_function_replace_fail=:
20732
20733
20734 # Save a `func_append' function call where possible by direct use of '+='
20735 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20736 && mv -f "$cfgfile.tmp" "$cfgfile" \
20737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20738 test 0 -eq $? || _lt_function_replace_fail=:
20739 else
20740 # Save a `func_append' function call even when '+=' is not available
20741 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20742 && mv -f "$cfgfile.tmp" "$cfgfile" \
20743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20744 test 0 -eq $? || _lt_function_replace_fail=:
20745 fi
20746
20747 if test x"$_lt_function_replace_fail" = x":"; then
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20749 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20750 fi
20751
20752
20753 mv -f "$cfgfile" "$ofile" ||
1984120754 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1984220755 chmod +x "$ofile"
1984320756
1984920762 # The linker used to build libraries.
1985020763 LD=$lt_LD_CXX
1985120764
20765 # How to create reloadable object files.
20766 reload_flag=$lt_reload_flag_CXX
20767 reload_cmds=$lt_reload_cmds_CXX
20768
1985220769 # Commands used to build an old-style archive.
1985320770 old_archive_cmds=$lt_old_archive_cmds_CXX
1985420771
1986120778 # Compiler flag to turn off builtin functions.
1986220779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
1986320780
20781 # Additional compiler flags for building library objects.
20782 pic_flag=$lt_lt_prog_compiler_pic_CXX
20783
1986420784 # How to pass a linker flag through the compiler.
1986520785 wl=$lt_lt_prog_compiler_wl_CXX
19866
19867 # Additional compiler flags for building library objects.
19868 pic_flag=$lt_lt_prog_compiler_pic_CXX
1986920786
1987020787 # Compiler flag to prevent dynamic linking.
1987120788 link_static_flag=$lt_lt_prog_compiler_static_CXX
1991520832 # Flag to hardcode \$libdir into a binary during linking.
1991620833 # This must work even if \$libdir does not exist
1991720834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19918
19919 # If ld is used when linking, flag to hardcode \$libdir into a binary
19920 # during linking. This must work even if \$libdir does not exist.
19921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
1992220835
1992320836 # Whether we need a single "-rpath" flag with a separated argument.
1992420837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
1995320866 # Whether libtool must link a program against all its dependency libraries.
1995420867 link_all_deplibs=$link_all_deplibs_CXX
1995520868
19956 # Fix the shell variable \$srcfile for the compiler.
19957 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19958
1995920869 # Set to "yes" if exported symbols are required.
1996020870 always_export_symbols=$always_export_symbols_CXX
1996120871
1997020880
1997120881 # Commands necessary for linking programs (against libraries) with templates.
1997220882 prelink_cmds=$lt_prelink_cmds_CXX
20883
20884 # Commands necessary for finishing linking programs.
20885 postlink_cmds=$lt_postlink_cmds_CXX
1997320886
1997420887 # Specify filename containing input files.
1997520888 file_list_spec=$lt_file_list_spec_CXX
2000520918 ac_clean_files=$ac_clean_files_save
2000620919
2000720920 test $ac_write_fail = 0 ||
20008 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
2000920922
2001020923
2001120924 # configure is writing to config.log, and then calls config.status.
2002620939 exec 5>>config.log
2002720940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2002820941 # would make configure fail if this is the last instruction.
20029 $ac_cs_success || as_fn_exit $?
20942 $ac_cs_success || as_fn_exit 1
2003020943 fi
2003120944 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
2003220945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11
22 m4_define([VERSION_MAJOR], [1])
33 m4_define([VERSION_MINOR], [4])
4 m4_define([VERSION_POINT], [0])
4 m4_define([VERSION_POINT], [1])
55 m4_define([GEOTIFF_VERSION],
66 [VERSION_MAJOR.VERSION_MINOR.VERSION_POINT])
77
314314 fi
315315 AM_CONDITIONAL([CSV_IS_CONFIG], [test ! x$CSV_CONFIG = xno])
316316
317
318 AC_ARG_ENABLE(towgs84, [ --disable-towgs84 Disable WGS84 parameters for binary compatibility with pre-1.4.1], AC_DEFINE(GEO_NORMALIZE_DISABLE_TOWGS84))
319
317320 dnl #########################################################################
318321 dnl Doxygen settings
319322 dnl #########################################################################
+349
-188
depcomp less more
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3332 -h | --h*)
3433 cat <<\EOF
3534 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
3938
4039 Environment variables:
4140 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
4443 DEPDIR directory where to store dependencies.
4544 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
45 tmpdepfile Temporary file to use when outputting dependencies.
4746 libtool Whether libtool is used (yes/no).
4847
4948 Report bugs to <bug-automake@gnu.org>.
5655 ;;
5756 esac
5857
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
59118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61120 exit 1
67126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68127
69128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
70132
71133 # Some modes work just like other modes, but use different flags. We
72134 # parameterize here, but still list the modes in the big case below,
79141 fi
80142
81143 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
85147 fi
86148
87149 cygpath_u="cygpath -u -f -"
88150 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
94170 fi
95171
96172 case "$depmode" in
113189 done
114190 "$@"
115191 stat=$?
116 if test $stat -eq 0; then :
117 else
192 if test $stat -ne 0; then
118193 rm -f "$tmpdepfile"
119194 exit $stat
120195 fi
122197 ;;
123198
124199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
125203 ## There are various ways to get dependency output from gcc. Here's
126204 ## why we pick this rather obscure method:
127205 ## - Don't want to use -MD because we'd like the dependencies to end
128206 ## up in a subdir. Having to rename by hand is ugly.
129207 ## (We might end up doing this anyway to support other compilers.)
130208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
131 ## -MM, not -M (despite what the docs say).
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
132211 ## - Using -M directly means running the compiler twice (even worse
133212 ## than renaming).
134213 if test -z "$gccflag"; then
136215 fi
137216 "$@" -Wp,"$gccflag$tmpdepfile"
138217 stat=$?
139 if test $stat -eq 0; then :
140 else
218 if test $stat -ne 0; then
141219 rm -f "$tmpdepfile"
142220 exit $stat
143221 fi
144222 rm -f "$depfile"
145223 echo "$object : \\" > "$depfile"
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
148226 sed -e 's/^[^:]*: / /' \
149227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
150 ## This next piece of magic avoids the `deleted header file' problem.
228 ## This next piece of magic avoids the "deleted header file" problem.
151229 ## The problem is that when a header file which appears in a .P file
152230 ## is deleted, the dependency causes make to die (because there is
153231 ## typically no way to rebuild the header). We avoid this by adding
154232 ## dummy dependencies for each header file. Too bad gcc doesn't do
155233 ## this for us directly.
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
234 ## Some versions of gcc put a space before the ':'. On the theory
159235 ## that the space means something, we add a space to the output as
160 ## well.
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
161238 ## Some versions of the HPUX 10.20 sed can't process this invocation
162239 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
164243 rm -f "$tmpdepfile"
165244 ;;
166245
178257 "$@" -MDupdate "$tmpdepfile"
179258 fi
180259 stat=$?
181 if test $stat -eq 0; then :
182 else
260 if test $stat -ne 0; then
183261 rm -f "$tmpdepfile"
184262 exit $stat
185263 fi
187265
188266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
189267 echo "$object : \\" > "$depfile"
190
191268 # Clip off the initial element (the dependent). Don't try to be
192269 # clever and replace this with sed code, as IRIX sed won't handle
193270 # lines with more than a fixed number of characters (4096 in
194271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
195 # the IRIX cc adds comments like `#:fec' to the end of the
272 # the IRIX cc adds comments like '#:fec' to the end of the
196273 # dependency line.
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
202277 echo >> "$depfile"
203
204278 # The second pass generates a dummy entry for each header file.
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
209282 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
283 make_dummy_depfile
214284 fi
215285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
216293 ;;
217294
218295 aix)
219296 # The C for AIX Compiler uses -M and outputs the dependencies
220297 # in a .u file. In older versions, this file always lives in the
221 # current directory. Also, the AIX compiler puts `$object:' at the
298 # current directory. Also, the AIX compiler puts '$object:' at the
222299 # start of each line; $object doesn't have directory information.
223300 # Version 6 uses the directory in both cases.
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
227303 if test "$libtool" = yes; then
228304 tmpdepfile1=$dir$base.u
229305 tmpdepfile2=$base.u
236312 "$@" -M
237313 fi
238314 stat=$?
239
240 if test $stat -eq 0; then :
241 else
315 if test $stat -ne 0; then
242316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
243317 exit $stat
244318 fi
247321 do
248322 test -f "$tmpdepfile" && break
249323 done
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
263355 rm -f "$tmpdepfile"
264356 ;;
265357
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
278368 # foo.o: sub/foo.c sub/foo.h
279 # and will wrap long lines using \ :
369 # and will wrap long lines using '\' :
280370 # foo.o: sub/foo.c ... \
281371 # sub/foo.h ... \
282372 # ...
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
288418 rm -f "$tmpdepfile"
289419 exit $stat
290420 fi
296426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
297427 # Some versions of the HPUX 10.20 sed can't process this invocation
298428 # correctly. Breaking it into two sed invocations is a workaround.
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
301431 rm -f "$tmpdepfile"
302432 ;;
303433
308438 # 'foo.d', which lands next to the object file, wherever that
309439 # happens to be.
310440 # Much of this is similar to the tru64 case; see comments there.
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
314443 if test "$libtool" = yes; then
315444 tmpdepfile1=$dir$base.d
316445 tmpdepfile2=$dir.libs/$base.d
321450 "$@" +Maked
322451 fi
323452 stat=$?
324 if test $stat -eq 0; then :
325 else
453 if test $stat -ne 0; then
326454 rm -f "$tmpdepfile1" "$tmpdepfile2"
327455 exit $stat
328456 fi
332460 test -f "$tmpdepfile" && break
333461 done
334462 if test -f "$tmpdepfile"; then
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
337465 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
343471 else
344 echo "#dummy" > "$depfile"
472 make_dummy_depfile
345473 fi
346474 rm -f "$tmpdepfile" "$tmpdepfile2"
347475 ;;
348476
349477 tru64)
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
406564
407565 #nosideeffect)
408566 # This comment above is used by automake to tell side-effect
421579 shift
422580 fi
423581
424 # Remove `-o $object'.
582 # Remove '-o $object'.
425583 IFS=" "
426584 for arg
427585 do
441599 done
442600
443601 test -z "$dashmflag" && dashmflag=-M
444 # Require at least two characters before searching for `:'
602 # Require at least two characters before searching for ':'
445603 # in the target name. This is to cope with DOS-style filenames:
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
447605 "$@" $dashmflag |
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
449607 rm -f "$depfile"
450608 cat < "$tmpdepfile" > "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
456614 rm -f "$tmpdepfile"
457615 ;;
458616
502660 touch "$tmpdepfile"
503661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504662 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
511672 rm -f "$tmpdepfile" "$tmpdepfile".bak
512673 ;;
513674
524685 shift
525686 fi
526687
527 # Remove `-o $object'.
688 # Remove '-o $object'.
528689 IFS=" "
529690 for arg
530691 do
543704 esac
544705 done
545706
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
550711 rm -f "$depfile"
551712 echo "$object : \\" > "$depfile"
552713 cat < "$tmpdepfile" >> "$depfile"
578739 shift
579740 ;;
580741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
581 set fnord "$@"
582 shift
583 shift
584 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
585746 *)
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
590751 esac
591752 done
592753 "$@" -E 2>/dev/null |
593754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
594755 rm -f "$depfile"
595756 echo "$object : \\" > "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
598759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
599760 rm -f "$tmpdepfile"
600761 ;;
1616 #define HAVE_LIBPROJ 1
1717 /* #undef HAVE_PROJECTS_H */
1818
19 /* #undef GEO_NORMALIZE_DISABLE_TOWGS84 */
20
1921 #endif /* ndef GEO_CONFIG_H */
1515 #undef HAVE_LIBPROJ
1616 #undef HAVE_PROJECTS_H
1717
18 #undef GEO_NORMALIZE_DISABLE_TOWGS84
19
1820 #endif /* ndef GEO_CONFIG_H */
2727 /* Build as DLL */
2828 #define BUILD_AS_DLL 1
2929
30 /* Turn off TOWGS84 if necessary */
31 /* #define GEO_NORMALIZE_DISABLE_TOWGS84 1 */
32
3033 #endif /* ndef GEO_CONFIG_H */
00 /******************************************************************************
1 * $Id: geo_ctrans.inc 657 2005-03-04 03:59:11Z fwarmerdam $
1 * $Id: geo_ctrans.inc 2209 2012-05-09 01:34:58Z warmerdam $
22 *
33 * Project: libgeotiff
44 * Purpose: GeoTIFF Projection Method codes.
7575 /* Added Feb 2005 */
7676 ValuePair(CT_CylindricalEqualArea, 28)
7777
78 /* Added May 2012 - from now on we use the EPSG */
79 ValuePair(CT_HotineObliqueMercatorAzimuthCenter, 9815)
80
7881
7982 /* Aliases */
8083
8080 case ProjLinearUnitsGeoKey:
8181 case GeogAngularUnitsGeoKey:
8282 case GeogAzimuthUnitsGeoKey:
83 case VerticalUnitsGeoKey:
83 case VerticalUnitsGeoKey:
8484 info=_geounitsValue; break;
8585
8686 /* put other key-dependent lists here */
156156 case GeogLinearUnitsGeoKey:
157157 case ProjLinearUnitsGeoKey:
158158 case GeogAngularUnitsGeoKey:
159 case GeogAzimuthUnitsGeoKey:
159 case GeogAzimuthUnitsGeoKey:
160 case VerticalUnitsGeoKey:
160161 info=_geounitsValue; break;
161162
162163 /* put other key-dependent lists here */
00 /******************************************************************************
1 * $Id: geo_normalize.c 2037 2011-05-24 01:45:24Z warmerdam $
1 * $Id: geo_normalize.c 2473 2014-07-31 13:55:18Z hobu $
22 *
33 * Project: libgeotiff
44 * Purpose: Code to normalize PCS and other composite codes in a GeoTIFF file.
458458 char szSearchKey[24];
459459 double dfSemiMajor=0.0, dfToMeters = 1.0;
460460 int nUOMLength;
461 const char* pszFilename;
462461
463462 /* -------------------------------------------------------------------- */
464463 /* Try some well known ellipsoids. */
514513 /* Get the semi major axis. */
515514 /* -------------------------------------------------------------------- */
516515 sprintf( szSearchKey, "%d", nEllipseCode );
517 pszFilename = CSVFilename("ellipsoid.csv" );
518
519516 dfSemiMajor =
520 GTIFAtof(CSVGetField( pszFilename,
517 GTIFAtof(CSVGetField( CSVFilename("ellipsoid.csv"),
521518 "ELLIPSOID_CODE", szSearchKey, CC_Integer,
522519 "SEMI_MAJOR_AXIS" ) );
523520
529526 /* -------------------------------------------------------------------- */
530527 /* Get the translation factor into meters. */
531528 /* -------------------------------------------------------------------- */
532 nUOMLength = atoi(CSVGetField( pszFilename,
529 nUOMLength = atoi(CSVGetField( CSVFilename("ellipsoid.csv"),
533530 "ELLIPSOID_CODE", szSearchKey, CC_Integer,
534531 "UOM_CODE" ));
535532 GTIFGetUOMLengthInfo( nUOMLength, NULL, &dfToMeters );
546543 if( pdfSemiMinor != NULL )
547544 {
548545 *pdfSemiMinor =
549 GTIFAtof(CSVGetField( pszFilename,
546 GTIFAtof(CSVGetField( CSVFilename("ellipsoid.csv"),
550547 "ELLIPSOID_CODE", szSearchKey, CC_Integer,
551548 "SEMI_MINOR_AXIS" )) * dfToMeters;
552549
555552 double dfInvFlattening;
556553
557554 dfInvFlattening =
558 GTIFAtof(CSVGetField( pszFilename,
555 GTIFAtof(CSVGetField( CSVFilename("ellipsoid.csv"),
559556 "ELLIPSOID_CODE", szSearchKey, CC_Integer,
560557 "INV_FLATTENING" ));
561558 *pdfSemiMinor = dfSemiMajor * (1 - 1.0/dfInvFlattening);
567564 /* -------------------------------------------------------------------- */
568565 if( ppszName != NULL )
569566 *ppszName =
570 CPLStrdup(CSVGetField( pszFilename,
567 CPLStrdup(CSVGetField( CSVFilename("ellipsoid.csv"),
571568 "ELLIPSOID_CODE", szSearchKey, CC_Integer,
572569 "ELLIPSOID_NAME" ));
573570
10101007 return( CT_ObliqueStereographic );
10111008
10121009 case 9810:
1013 /* case 9829: variant B not quite the same */
1010 case 9829: /* variant B not quite the same - not sure how to handle */
10141011 return( CT_PolarStereographic );
10151012
10161013 case 9811:
10261023 return( CT_ObliqueMercator_Rosenmund ); /* swiss */
10271024
10281025 case 9815:
1029 return( CT_ObliqueMercator );
1026 return( CT_HotineObliqueMercatorAzimuthCenter );
10301027
10311028 case 9816: /* tunesia mining grid has no counterpart */
10321029 return( KvUserDefined );
10401037
10411038 case 9834:
10421039 return( CT_CylindricalEqualArea );
1040
1041 default: /* use the EPSG code for other methods */
1042 return nEPSG;
10431043 }
10441044
10451045 return( KvUserDefined );
10861086 return TRUE;
10871087
10881088 case CT_ObliqueMercator:
1089 case CT_HotineObliqueMercatorAzimuthCenter:
10891090 panProjParmId[0] = ProjCenterLatGeoKey;
10901091 panProjParmId[1] = ProjCenterLongGeoKey;
10911092 panProjParmId[2] = ProjAzimuthAngleGeoKey;
14301431 double dfFalseEasting = 0.0, dfFalseNorthing = 0.0, dfNatOriginScale = 1.0;
14311432 double dfStdParallel1 = 0.0, dfStdParallel2 = 0.0, dfAzimuth = 0.0;
14321433 int iParm;
1434 int bHaveSP1, bHaveNOS;
14331435
14341436 /* -------------------------------------------------------------------- */
14351437 /* Get the false easting, and northing if available. */
14901492 break;
14911493
14921494 /* -------------------------------------------------------------------- */
1495 case CT_Mercator:
1496 /* -------------------------------------------------------------------- */
1497 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
1498 &dfNatOriginLong, 0, 1 ) == 0
1499 && GTIFKeyGet(psGTIF, ProjFalseOriginLongGeoKey,
1500 &dfNatOriginLong, 0, 1 ) == 0
1501 && GTIFKeyGet(psGTIF, ProjCenterLongGeoKey,
1502 &dfNatOriginLong, 0, 1 ) == 0 )
1503 dfNatOriginLong = 0.0;
1504
1505 if( GTIFKeyGet(psGTIF, ProjNatOriginLatGeoKey,
1506 &dfNatOriginLat, 0, 1 ) == 0
1507 && GTIFKeyGet(psGTIF, ProjFalseOriginLatGeoKey,
1508 &dfNatOriginLat, 0, 1 ) == 0
1509 && GTIFKeyGet(psGTIF, ProjCenterLatGeoKey,
1510 &dfNatOriginLat, 0, 1 ) == 0 )
1511 dfNatOriginLat = 0.0;
1512
1513
1514 bHaveSP1 = GTIFKeyGet(psGTIF, ProjStdParallel1GeoKey,
1515 &dfStdParallel1, 0, 1 );
1516
1517 bHaveNOS = GTIFKeyGet(psGTIF, ProjScaleAtNatOriginGeoKey,
1518 &dfNatOriginScale, 0, 1 );
1519
1520 /* Default scale only if dfStdParallel1 isn't defined either */
1521 if( !bHaveNOS && !bHaveSP1)
1522 {
1523 bHaveNOS = TRUE;
1524 dfNatOriginScale = 1.0;
1525 }
1526
1527 /* notdef: should transform to decimal degrees at this point */
1528
1529 psDefn->ProjParm[0] = dfNatOriginLat;
1530 psDefn->ProjParmId[0] = ProjNatOriginLatGeoKey;
1531 psDefn->ProjParm[1] = dfNatOriginLong;
1532 psDefn->ProjParmId[1] = ProjNatOriginLongGeoKey;
1533 if( bHaveSP1 )
1534 {
1535 psDefn->ProjParm[2] = dfStdParallel1;
1536 psDefn->ProjParmId[2] = ProjStdParallel1GeoKey;
1537 }
1538 if( bHaveNOS )
1539 {
1540 psDefn->ProjParm[4] = dfNatOriginScale;
1541 psDefn->ProjParmId[4] = ProjScaleAtNatOriginGeoKey;
1542 }
1543 psDefn->ProjParm[5] = dfFalseEasting;
1544 psDefn->ProjParmId[5] = ProjFalseEastingGeoKey;
1545 psDefn->ProjParm[6] = dfFalseNorthing;
1546 psDefn->ProjParmId[6] = ProjFalseNorthingGeoKey;
1547
1548 psDefn->nParms = 7;
1549 break;
1550
1551 /* -------------------------------------------------------------------- */
14931552 case CT_LambertConfConic_1SP:
1494 case CT_Mercator:
14951553 case CT_ObliqueStereographic:
14961554 case CT_TransverseMercator:
14971555 case CT_TransvMercator_SouthOriented:
15341592
15351593 /* -------------------------------------------------------------------- */
15361594 case CT_ObliqueMercator: /* hotine */
1595 case CT_HotineObliqueMercatorAzimuthCenter:
15371596 /* -------------------------------------------------------------------- */
15381597 if( GTIFKeyGet(psGTIF, ProjNatOriginLongGeoKey,
15391598 &dfNatOriginLong, 0, 1 ) == 0
19271986
19281987 /**
19291988 @param psGTIF GeoTIFF information handle as returned by GTIFNew.
1930 @param psDefn Pointer to an existing GTIFDefn structure. This structure
1931 does not need to have been pre-initialized at all.
1989 @param psDefn Pointer to an existing GTIFDefn structure allocated by GTIFAllocDefn().
19321990
19331991 @return TRUE if the function has been successful, otherwise FALSE.
19341992
20652123 psDefn->SemiMinor = 0.0;
20662124 psDefn->PM = KvUserDefined;
20672125 psDefn->PMLongToGreenwich = 0.0;
2126 #if !defined(GEO_NORMALIZE_DISABLE_TOWGS84)
20682127 psDefn->TOWGS84Count = 0;
20692128 memset( psDefn->TOWGS84, 0, sizeof(psDefn->TOWGS84) );
2129 #endif
20702130
20712131 psDefn->ProjCode = KvUserDefined;
20722132 psDefn->Projection = KvUserDefined;
22582318 /* -------------------------------------------------------------------- */
22592319 /* Get the TOWGS84 parameters. */
22602320 /* -------------------------------------------------------------------- */
2321 #if !defined(GEO_NORMALIZE_DISABLE_TOWGS84)
22612322 psDefn->TOWGS84Count =
22622323 GTIFKeyGet(psGTIF, GeogTOWGS84GeoKey, &(psDefn->TOWGS84), 0, 7 );
2324 #endif
22632325
22642326 /* -------------------------------------------------------------------- */
22652327 /* Have the projection units of measure been overridden? We */
22732335 {
22742336 GTIFGetUOMLengthInfo( psDefn->UOMLength, NULL,
22752337 &(psDefn->UOMLengthInMeters) );
2338 }
2339 else
2340 {
2341 GTIFKeyGet(psGTIF,ProjLinearUnitSizeGeoKey,&(psDefn->UOMLengthInMeters),0,1);
22762342 }
22772343
22782344 /* -------------------------------------------------------------------- */
25312597 /* -------------------------------------------------------------------- */
25322598 /* Report TOWGS84 parameters. */
25332599 /* -------------------------------------------------------------------- */
2600 #if !defined(GEO_NORMALIZE_DISABLE_TOWGS84)
25342601 if( psDefn->TOWGS84Count > 0 )
25352602 {
25362603 int i;
25462613
25472614 fprintf( fp, "\n" );
25482615 }
2616 #endif
25492617
25502618 /* -------------------------------------------------------------------- */
25512619 /* Report the projection units of measure (currently just */
25632631 psDefn->UOMLength, pszName, psDefn->UOMLengthInMeters );
25642632 CPLFree( pszName );
25652633 }
2634 else
2635 {
2636 fprintf( fp, "Projection Linear Units: User-Defined (%fm)\n",
2637 psDefn->UOMLengthInMeters );
2638 }
25662639 }
25672640
25682641 /************************************************************************/
25902663 {
25912664 CSVDeaccess( NULL );
25922665 }
2666
2667 /************************************************************************/
2668 /* GTIFAllocDefn() */
2669 /* */
2670 /* This allocates a GTIF structure in such a way that the */
2671 /* calling application doesn't need to know the size and */
2672 /* initializes it appropriately. */
2673 /************************************************************************/
2674
2675 GTIFDefn *GTIFAllocDefn()
2676 {
2677 return (GTIFDefn *) CPLCalloc(sizeof(GTIFDefn),1);
2678 }
2679
2680 /************************************************************************/
2681 /* GTIFFreeDefn() */
2682 /* */
2683 /* Free a GTIF structure allocated by GTIFAllocDefn(). */
2684 /************************************************************************/
2685
2686 void GTIFFreeDefn( GTIFDefn *defn )
2687 {
2688 VSIFree( defn );
2689 }
00 /******************************************************************************
1 * $Id: geo_normalize.h 1983 2011-03-10 02:10:00Z warmerdam $
1 * $Id: geo_normalize.h 2233 2012-10-09 01:33:11Z warmerdam $
22 *
33 * Project: libgeotiff
44 * Purpose: Include file related to geo_normalize.c containing Code to
9494 /** The length of the semi minor ellipse axis in meters. */
9595 double SemiMinor;
9696
97 /* this #if is primary intended to maintain binary compatability with older
98 versions of libgeotiff for MrSID binaries (for example) */
99 #if !defined(GEO_NORMALIZE_DISABLE_TOWGS84)
97100 /** TOWGS84 transformation values (0/3/7) */
98101 short TOWGS84Count;
99102
100103 /** TOWGS84 transformation values */
101104 double TOWGS84[7];
105 #endif /* !defined(GEO_NORMALIZE_DISABLE_TOWGS84) */
102106
103107 /** Projection id from ProjectionGeoKey. For example Proj_UTM_11S. */
104108 short ProjCode;
171175
172176 int CPL_DLL GTIFGetDefn( GTIF *psGTIF, GTIFDefn * psDefn );
173177 void CPL_DLL GTIFPrintDefn( GTIFDefn *, FILE * );
174 void CPL_DLL GTIFFreeDefn( GTIF * );
178 GTIFDefn CPL_DLL *GTIFAllocDefn( void );
179 void CPL_DLL GTIFFreeDefn( GTIFDefn * );
175180
176181 void CPL_DLL SetCSVFilenameHook( const char *(*CSVFileOverride)(const char *) );
177182
488488 static void DefaultRead(char *string, void *aux)
489489 {
490490 /* Pretty boring */
491 fscanf((FILE *)aux,"%[^\n]\n",string);
492 }
493
491 fscanf((FILE *)aux,"%1023[^\n]\n",string);
492 }
493
2929 */
3030 #define GvCurrentVersion 1
3131
32 #define LIBGEOTIFF_VERSION 1400
32 #define LIBGEOTIFF_VERSION 1410
3333
3434 #include "geo_config.h"
3535 #include "geokeys.h"
6060 typedef unsigned short tifftag_t;
6161 typedef unsigned short geocode_t;
6262 typedef int (*GTIFPrintMethod)(char *string, void *aux);
63 typedef int (*GTIFReadMethod)(char *string, void *aux);
63 typedef int (*GTIFReadMethod)(char *string, void *aux); // string 1024+ in size
6464
6565 typedef enum {
6666 TYPE_BYTE=1,
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1615
1716
1817 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1963 pkgdatadir = $(datadir)/@PACKAGE@
2064 pkgincludedir = $(includedir)/@PACKAGE@
2165 pkglibdir = $(libdir)/@PACKAGE@
3579 build_triplet = @build@
3680 host_triplet = @host@
3781 subdir = libxtiff
38 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/depcomp $(include_HEADERS)
4084 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4185 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
4286 $(top_srcdir)/configure.ac
5094 libxtiff_la_LIBADD =
5195 am_libxtiff_la_OBJECTS = xtiff.lo
5296 libxtiff_la_OBJECTS = $(am_libxtiff_la_OBJECTS)
97 AM_V_lt = $(am__v_lt_@AM_V@)
98 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
99 am__v_lt_0 = --silent
100 am__v_lt_1 =
101 AM_V_P = $(am__v_P_@AM_V@)
102 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
103 am__v_P_0 = false
104 am__v_P_1 = :
105 AM_V_GEN = $(am__v_GEN_@AM_V@)
106 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
107 am__v_GEN_0 = @echo " GEN " $@;
108 am__v_GEN_1 =
109 AM_V_at = $(am__v_at_@AM_V@)
110 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
111 am__v_at_0 = @
112 am__v_at_1 =
53113 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
54114 depcomp = $(SHELL) $(top_srcdir)/depcomp
55115 am__depfiles_maybe = depfiles
56116 am__mv = mv -f
57117 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
58118 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
59 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
61 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
119 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
120 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
121 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
122 $(AM_CFLAGS) $(CFLAGS)
123 AM_V_CC = $(am__v_CC_@AM_V@)
124 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
125 am__v_CC_0 = @echo " CC " $@;
126 am__v_CC_1 =
62127 CCLD = $(CC)
63 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
65 $(LDFLAGS) -o $@
128 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
129 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
130 $(AM_LDFLAGS) $(LDFLAGS) -o $@
131 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
132 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
133 am__v_CCLD_0 = @echo " CCLD " $@;
134 am__v_CCLD_1 =
66135 SOURCES = $(libxtiff_la_SOURCES)
67136 DIST_SOURCES = $(libxtiff_la_SOURCES)
137 am__can_run_installinfo = \
138 case $$AM_UPDATE_INFO_DIR in \
139 n|no|NO) false;; \
140 *) (install-info --version) >/dev/null 2>&1;; \
141 esac
68142 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
69143 am__vpath_adj = case $$p in \
70144 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
86160 am__base_list = \
87161 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
88162 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
163 am__uninstall_files_from_dir = { \
164 test -z "$$files" \
165 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
166 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
167 $(am__cd) "$$dir" && rm -f $$files; }; \
168 }
89169 am__installdirs = "$(DESTDIR)$(includedir)"
90170 HEADERS = $(include_HEADERS)
171 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
172 # Read a list of newline-separated strings from the standard input,
173 # and print each of them once, without duplicates. Input order is
174 # *not* preserved.
175 am__uniquify_input = $(AWK) '\
176 BEGIN { nonempty = 0; } \
177 { items[$$0] = 1; nonempty = 1; } \
178 END { if (nonempty) { for (i in items) print i; }; } \
179 '
180 # Make sure the list of sources is unique. This is necessary because,
181 # e.g., the same source file might be shared among _SOURCES variables
182 # for different programs/libraries.
183 am__define_uniq_tagged_files = \
184 list='$(am__tagged_files)'; \
185 unique=`for i in $$list; do \
186 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
187 done | $(am__uniquify_input)`
91188 ETAGS = etags
92189 CTAGS = ctags
93190 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
94191 ACLOCAL = @ACLOCAL@
95192 AMTAR = @AMTAR@
193 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
96194 AR = @AR@
97195 AUTOCONF = @AUTOCONF@
98196 AUTOHEADER = @AUTOHEADER@
110208 CYGPATH_W = @CYGPATH_W@
111209 DEFS = @DEFS@
112210 DEPDIR = @DEPDIR@
211 DLLTOOL = @DLLTOOL@
113212 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
114213 DSYMUTIL = @DSYMUTIL@
115214 DUMPBIN = @DUMPBIN@
162261 LTLIBOBJS = @LTLIBOBJS@
163262 MAINT = @MAINT@
164263 MAKEINFO = @MAKEINFO@
264 MANIFEST_TOOL = @MANIFEST_TOOL@
165265 MKDIR_P = @MKDIR_P@
166266 NM = @NM@
167267 NMEDIT = @NMEDIT@
193293 abs_srcdir = @abs_srcdir@
194294 abs_top_builddir = @abs_top_builddir@
195295 abs_top_srcdir = @abs_top_srcdir@
296 ac_ct_AR = @ac_ct_AR@
196297 ac_ct_CC = @ac_ct_CC@
197298 ac_ct_CXX = @ac_ct_CXX@
198299 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
226327 libexecdir = @libexecdir@
227328 localedir = @localedir@
228329 localstatedir = @localstatedir@
229 lt_ECHO = @lt_ECHO@
230330 mandir = @mandir@
231331 mkdir_p = @mkdir_p@
232332 oldincludedir = @oldincludedir@
284384
285385 clean-noinstLTLIBRARIES:
286386 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
287 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293 libxtiff.la: $(libxtiff_la_OBJECTS) $(libxtiff_la_DEPENDENCIES)
294 $(LINK) $(libxtiff_la_OBJECTS) $(libxtiff_la_LIBADD) $(LIBS)
387 @list='$(noinst_LTLIBRARIES)'; \
388 locs=`for p in $$list; do echo $$p; done | \
389 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
390 sort -u`; \
391 test -z "$$locs" || { \
392 echo rm -f $${locs}; \
393 rm -f $${locs}; \
394 }
395
396 libxtiff.la: $(libxtiff_la_OBJECTS) $(libxtiff_la_DEPENDENCIES) $(EXTRA_libxtiff_la_DEPENDENCIES)
397 $(AM_V_CCLD)$(LINK) $(libxtiff_la_OBJECTS) $(libxtiff_la_LIBADD) $(LIBS)
295398
296399 mostlyclean-compile:
297400 -rm -f *.$(OBJEXT)
302405 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xtiff.Plo@am__quote@
303406
304407 .c.o:
305 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
408 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
409 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
410 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308411 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
412 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
310413
311414 .c.obj:
312 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
415 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
416 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
417 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315418 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
419 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
317420
318421 .c.lo:
319 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
422 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
423 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
424 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322425 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
426 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
324427
325428 mostlyclean-libtool:
326429 -rm -f *.lo
329432 -rm -rf .libs _libs
330433 install-includeHEADERS: $(include_HEADERS)
331434 @$(NORMAL_INSTALL)
332 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
333435 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
436 if test -n "$$list"; then \
437 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
438 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
439 fi; \
334440 for p in $$list; do \
335441 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
336442 echo "$$d$$p"; \
344450 @$(NORMAL_UNINSTALL)
345451 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
346452 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
347 test -n "$$files" || exit 0; \
348 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
349 cd "$(DESTDIR)$(includedir)" && rm -f $$files
350
351 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 mkid -fID $$unique
359 tags: TAGS
360
361 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
453 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
454
455 ID: $(am__tagged_files)
456 $(am__define_uniq_tagged_files); mkid -fID $$unique
457 tags: tags-am
458 TAGS: tags
459
460 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
363461 set x; \
364462 here=`pwd`; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
463 $(am__define_uniq_tagged_files); \
371464 shift; \
372465 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
373466 test -n "$$unique" || unique=$$empty_fix; \
379472 $$unique; \
380473 fi; \
381474 fi
382 ctags: CTAGS
383 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
384 $(TAGS_FILES) $(LISP)
385 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
386 unique=`for i in $$list; do \
387 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
388 done | \
389 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
390 END { if (nonempty) { for (i in files) print i; }; }'`; \
475 ctags: ctags-am
476
477 CTAGS: ctags
478 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
479 $(am__define_uniq_tagged_files); \
391480 test -z "$(CTAGS_ARGS)$$unique" \
392481 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
393482 $$unique
396485 here=`$(am__cd) $(top_builddir) && pwd` \
397486 && $(am__cd) $(top_srcdir) \
398487 && gtags -i $(GTAGS_ARGS) "$$here"
488 cscopelist: cscopelist-am
489
490 cscopelist-am: $(am__tagged_files)
491 list='$(am__tagged_files)'; \
492 case "$(srcdir)" in \
493 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
494 *) sdir=$(subdir)/$(srcdir) ;; \
495 esac; \
496 for i in $$list; do \
497 if test -f "$$i"; then \
498 echo "$(subdir)/$$i"; \
499 else \
500 echo "$$sdir/$$i"; \
501 fi; \
502 done >> $(top_builddir)/cscope.files
399503
400504 distclean-tags:
401505 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
447551
448552 installcheck: installcheck-am
449553 install-strip:
450 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
451 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
452 `test -z '$(STRIP)' || \
453 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
554 if test -z '$(STRIP)'; then \
555 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
556 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
557 install; \
558 else \
559 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
560 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
561 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
562 fi
454563 mostlyclean-generic:
455564
456565 clean-generic:
535644
536645 .MAKE: install-am install-strip
537646
538 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
539 clean-libtool clean-noinstLTLIBRARIES ctags distclean \
540 distclean-compile distclean-generic distclean-libtool \
541 distclean-tags distdir dvi dvi-am html html-am info info-am \
542 install install-am install-data install-data-am install-dvi \
543 install-dvi-am install-exec install-exec-am install-html \
544 install-html-am install-includeHEADERS install-info \
545 install-info-am install-man install-pdf install-pdf-am \
546 install-ps install-ps-am install-strip installcheck \
547 installcheck-am installdirs maintainer-clean \
548 maintainer-clean-generic mostlyclean mostlyclean-compile \
549 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
550 tags uninstall uninstall-am uninstall-includeHEADERS
647 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
648 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
649 ctags-am distclean distclean-compile distclean-generic \
650 distclean-libtool distclean-tags distdir dvi dvi-am html \
651 html-am info info-am install install-am install-data \
652 install-data-am install-dvi install-dvi-am install-exec \
653 install-exec-am install-html install-html-am \
654 install-includeHEADERS install-info install-info-am \
655 install-man install-pdf install-pdf-am install-ps \
656 install-ps-am install-strip installcheck installcheck-am \
657 installdirs maintainer-clean maintainer-clean-generic \
658 mostlyclean mostlyclean-compile mostlyclean-generic \
659 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
660 uninstall-am uninstall-includeHEADERS
551661
552662
553663 # Tell versions [3.59,3.63) of GNU make to not export all variables.
+2790
-1542
ltmain.sh less more
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6b
0
1 # libtool (GNU libtool) 2.4.2
32 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
43
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
66 # This is free software; see the source for copying conditions. There is NO
77 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
88
3131 #
3232 # Provide generalized library-building support services.
3333 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
4549 #
4650 # MODE must be one of the following:
4751 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
5559 #
56 # MODE-ARGS vary depending on the MODE.
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
5762 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
5863 #
5964 # When reporting a bug, please describe a test case to reproduce it and
6065 # include the following information:
6166 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
68 # automake: $automake_version
69 # autoconf: $autoconf_version
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
73 # automake: $automake_version
74 # autoconf: $autoconf_version
7075 #
7176 # Report bugs to <bug-libtool@gnu.org>.
72
73 PROGRAM=ltmain.sh
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
79
80 PROGRAM=libtool
7481 PACKAGE=libtool
75 VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
82 VERSION="2.4.2 Debian-2.4.2-1.7ubuntu1"
7683 TIMESTAMP=""
77 package_revision=1.3017
84 package_revision=1.3337
7885
7986 # Be Bourne compatible
8087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9097 BIN_SH=xpg4; export BIN_SH # for Tru64
9198 DUALCASE=1; export DUALCASE # for MKS sh
9299
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
93108 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97109 lt_user_locale=
98110 lt_safe_locale=
99111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
106118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107119 fi"
108120 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
109124
110125 $lt_unset CDPATH
111126
112127
128 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129 # is ksh but when the shell is invoked as "sh" and the current value of
130 # the _XPG environment variable is not equal to 1 (one), the special
131 # positional parameter $0, within a function call, is the name of the
132 # function.
133 progpath="$0"
113134
114135
115136
116137 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
122139 : ${MAKE="make"}
123140 : ${MKDIR="mkdir"}
124141 : ${MV="mv -f"}
125142 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128144 : ${Xsed="$SED -e 1s/^X//"}
129145
142158
143159 dirname="s,/[^/]*$,,"
144160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
163 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
145182
146183 # func_dirname_and_basename file append nondir_replacement
147184 # perform func_basename and func_dirname in a single function
157194 # those functions but instead duplicate the functionality here.
158195 func_dirname_and_basename ()
159196 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
201 else
202 func_dirname_result="$func_dirname_result${2}"
203 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
232
233 # func_normal_abspath PATH
234 # Remove doubled-up and trailing slashes, "." path components,
235 # and cancel out any ".." path components in PATH after making
236 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238 func_normal_abspath ()
239 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
287 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
337 fi
338 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
166360 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
178370
179371 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182372 func_dirname_and_basename "$progpath"
183373 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187374
188375 # Make sure we have an absolute path for reexecution:
189376 case $progpath in
195382 ;;
196383 *)
197384 save_IFS="$IFS"
198 IFS=:
385 IFS=${PATH_SEPARATOR-:}
199386 for progdir in $PATH; do
200387 IFS="$save_IFS"
201388 test -x "$progdir/$progname" && break
213400
214401 # Same as above, but do not quote variable references.
215402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
216412
217413 # Re-`\' parameter expansions in output of double_quote_subst that were
218414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
242438 # name if it has been set yet.
243439 func_echo ()
244440 {
245 $ECHO "$progname${mode+: }$mode: $*"
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
246442 }
247443
248444 # func_verbose arg...
257453 :
258454 }
259455
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
260463 # func_error arg...
261464 # Echo program name prefixed message to standard error.
262465 func_error ()
263466 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
265468 }
266469
267470 # func_warning arg...
268471 # Echo program name prefixed warning message to standard error.
269472 func_warning ()
270473 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
272475
273476 # bash bug again:
274477 :
325528 case $my_directory_path in */*) ;; *) break ;; esac
326529
327530 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
329532 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
331534
332535 save_mkdir_p_IFS="$IFS"; IFS=':'
333536 for my_dir in $my_dir_list; do
377580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378581 fi
379582
380 $ECHO "X$my_tmpdir" | $Xsed
583 $ECHO "$my_tmpdir"
381584 }
382585
383586
391594 {
392595 case $1 in
393596 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
395598 *)
396599 func_quote_for_eval_unquoted_result="$1" ;;
397600 esac
418621 {
419622 case $1 in
420623 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
624 my_arg=`$ECHO "$1" | $SED \
422625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423626 *)
424627 my_arg="$1" ;;
487690 fi
488691 }
489692
490
491
693 # func_tr_sh
694 # Turn $1 into a string suitable for a shell variable name.
695 # Result is stored in $func_tr_sh_result. All characters
696 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
697 # if $1 begins with a digit, a '_' is prepended as well.
698 func_tr_sh ()
699 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
492709
493710
494711 # func_version
495712 # Echo version message to standard output and exit.
496713 func_version ()
497714 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
499726 s/^# //
500727 s/^# *$//
501728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
508735 # Echo short help message to standard output and exit.
509736 func_usage ()
510737 {
511 $SED -n '/^# Usage:/,/# -h/ {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
512741 s/^# //
513742 s/^# *$//
514743 s/\$progname/'$progname'/
515744 p
516745 }' < "$progpath"
517 $ECHO
746 echo
518747 $ECHO "run \`$progname --help | more' for full usage"
519748 exit $?
520749 }
521750
522 # func_help
523 # Echo long help message to standard output and exit.
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
524754 func_help ()
525755 {
756 $opt_debug
757
526758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
527760 s/^# //
528761 s/^# *$//
529762 s*\$progname*'$progname'*
533766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534767 s*\$LD*'"$LD"'*
535768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
538771 p
539 }' < "$progpath"
540 exit $?
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
541781 }
542782
543783 # func_missing_arg argname
545785 # exit_cmd.
546786 func_missing_arg ()
547787 {
548 func_error "missing argument for $1"
788 $opt_debug
789
790 func_error "missing argument for $1."
549791 exit_cmd=exit
550792 }
551793
794
795 # func_split_short_opt shortopt
796 # Set func_split_short_opt_name and func_split_short_opt_arg shell
797 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
552820 exit_cmd=:
553821
554822
555823
556824
557
558 # Check that we have a working $ECHO.
559 if test "X$1" = X--no-reexec; then
560 # Discard the --no-reexec flag, and continue.
561 shift
562 elif test "X$1" = X--fallback-echo; then
563 # Avoid inline document here, it may be left over
564 :
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
567 :
568 else
569 # Restart under the correct shell, and then maybe $ECHO will work.
570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
571 fi
572
573 if test "X$1" = X--fallback-echo; then
574 # used as fallback echo
575 shift
576 cat <<EOF
577 $*
578 EOF
579 exit $EXIT_SUCCESS
580 fi
581825
582826 magic="%%%MAGIC variable%%%"
583827 magic_exe="%%%MAGIC EXE variable%%%"
584828
585829 # Global variables.
586 # $mode is unset
587830 nonopt=
588 execute_dlfiles=
589831 preserve_args=
590832 lo2o="s/\\.lo\$/.${objext}/"
591833 o2lo="s/\\.${objext}\$/.lo/"
592834 extracted_archives=
593835 extracted_serial=0
594836
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600837 # If this variable is set in any of the actions, the command in it
601838 # will be execed at the end. This prevents here-documents from being
602839 # left over by shells.
603840 exec_cmd=
604841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
605888 # func_fatal_configuration arg...
606889 # Echo program name prefixed message to standard error, followed by
607890 # a configuration failure hint, and exit.
635918 # Display the features supported by this script.
636919 func_features ()
637920 {
638 $ECHO "host: $host"
921 echo "host: $host"
639922 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
923 echo "enable shared libraries"
641924 else
642 $ECHO "disable shared libraries"
925 echo "disable shared libraries"
643926 fi
644927 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
928 echo "enable static libraries"
646929 else
647 $ECHO "disable static libraries"
930 echo "disable static libraries"
648931 fi
649932
650933 exit $?
689972 fi
690973 ;;
691974 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819975 }
820976
821977 # func_check_version_match
8541010 }
8551011
8561012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
1197 fi
1198
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
1219
1220
1221
8571222 ## ----------- ##
8581223 ## Main. ##
8591224 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
8881225
8891226 # func_lalib_p file
8901227 # True iff FILE is a libtool `.la' library or `.lo' object file.
9491286 # temporary ltwrapper_script.
9501287 func_ltwrapper_scriptname ()
9511288 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
1289 func_dirname_and_basename "$1" "" "."
1290 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
9581292 }
9591293
9601294 # func_ltwrapper_p file
10001334 }
10011335
10021336
1337 # func_resolve_sysroot PATH
1338 # Replace a leading = in PATH with a sysroot. Store the result into
1339 # func_resolve_sysroot_result
1340 func_resolve_sysroot ()
1341 {
1342 func_resolve_sysroot_result=$1
1343 case $func_resolve_sysroot_result in
1344 =*)
1345 func_stripname '=' '' "$func_resolve_sysroot_result"
1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1347 ;;
1348 esac
1349 }
1350
1351 # func_replace_sysroot PATH
1352 # If PATH begins with the sysroot, replace it with = and
1353 # store the result into func_replace_sysroot_result.
1354 func_replace_sysroot ()
1355 {
1356 case "$lt_sysroot:$1" in
1357 ?*:"$lt_sysroot"*)
1358 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
1360 ;;
1361 *)
1362 # Including no sysroot.
1363 func_replace_sysroot_result=$1
1364 ;;
1365 esac
1366 }
1367
10031368 # func_infer_tag arg
10041369 # Infer tagged configuration to use if any are available and
10051370 # if one wasn't chosen via the "--tag" command line option.
10121377 if test -n "$available_tags" && test -z "$tagname"; then
10131378 CC_quoted=
10141379 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1380 func_append_quoted CC_quoted "$arg"
10171381 done
1382 CC_expanded=`func_echo_all $CC`
1383 CC_quoted_expanded=`func_echo_all $CC_quoted`
10181384 case $@ in
10191385 # Blanks in the command may have been stripped by the calling shell,
10201386 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
10221389 # Blanks at the start of $base_compile will cause this to fail
10231390 # if we don't check for them as well.
10241391 *)
10291396 CC_quoted=
10301397 for arg in $CC; do
10311398 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1399 func_append_quoted CC_quoted "$arg"
10341400 done
1401 CC_expanded=`func_echo_all $CC`
1402 CC_quoted_expanded=`func_echo_all $CC_quoted`
10351403 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
10371406 # The compiler in the base compile command matches
10381407 # the one in the tagged configuration.
10391408 # Assume this is the tagged configuration we want.
10961465 }
10971466 }
10981467
1468
1469 ##################################################
1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1471 ##################################################
1472
1473 # func_convert_core_file_wine_to_w32 ARG
1474 # Helper function used by file name conversion functions when $build is *nix,
1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1476 # correctly configured wine environment available, with the winepath program
1477 # in $build's $PATH.
1478 #
1479 # ARG is the $build file name to be converted to w32 format.
1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1481 # be empty on error (or when ARG is empty)
1482 func_convert_core_file_wine_to_w32 ()
1483 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1488 # are forced to check the contents of stdout. On the other hand, if the
1489 # command is not found, the shell will set an exit code of 127 and print
1490 # *an error message* to stdout. So we must check for both error code of
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
1496 else
1497 func_convert_core_file_wine_to_w32_result=
1498 fi
1499 fi
1500 }
1501 # end: func_convert_core_file_wine_to_w32
1502
1503
1504 # func_convert_core_path_wine_to_w32 ARG
1505 # Helper function used by path conversion functions when $build is *nix, and
1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1507 # configured wine environment available, with the winepath program in $build's
1508 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1509 #
1510 # ARG is path to be converted from $build format to win32.
1511 # Result is available in $func_convert_core_path_wine_to_w32_result.
1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1513 # are convertible, then the result may be empty.
1514 func_convert_core_path_wine_to_w32 ()
1515 {
1516 $opt_debug
1517 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
1519 if test -n "$1"; then
1520 oldIFS=$IFS
1521 IFS=:
1522 for func_convert_core_path_wine_to_w32_f in $1; do
1523 IFS=$oldIFS
1524 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1528 else
1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1530 fi
1531 fi
1532 done
1533 IFS=$oldIFS
1534 fi
1535 }
1536 # end: func_convert_core_path_wine_to_w32
1537
1538
1539 # func_cygpath ARGS...
1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1544 # file name or path is assumed to be in w32 format, as previously converted
1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1546 # or path in func_cygpath_result (input file name or path is assumed to be in
1547 # Cygwin format). Returns an empty string on error.
1548 #
1549 # ARGS are passed to cygpath, with the last one being the file name or path to
1550 # be converted.
1551 #
1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1553 # environment variable; do not put it in $PATH.
1554 func_cygpath ()
1555 {
1556 $opt_debug
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1559 if test "$?" -ne 0; then
1560 # on failure, ensure result is empty
1561 func_cygpath_result=
1562 fi
1563 else
1564 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1566 fi
1567 }
1568 #end: func_cygpath
1569
1570
1571 # func_convert_core_msys_to_w32 ARG
1572 # Convert file name or path ARG from MSYS format to w32 format. Return
1573 # result in func_convert_core_msys_to_w32_result.
1574 func_convert_core_msys_to_w32 ()
1575 {
1576 $opt_debug
1577 # awkward: cmd appends spaces to result
1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1580 }
1581 #end: func_convert_core_msys_to_w32
1582
1583
1584 # func_convert_file_check ARG1 ARG2
1585 # Verify that ARG1 (a file name in $build format) was converted to $host
1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1587 # func_to_host_file_result to ARG1).
1588 func_convert_file_check ()
1589 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
1592 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
1594 func_error "Continuing, but uninstalled executables may not work."
1595 # Fallback:
1596 func_to_host_file_result="$1"
1597 fi
1598 }
1599 # end func_convert_file_check
1600
1601
1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1603 # Verify that FROM_PATH (a path in $build format) was converted to $host
1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1605 # func_to_host_file_result to a simplistic fallback value (see below).
1606 func_convert_path_check ()
1607 {
1608 $opt_debug
1609 if test -z "$4" && test -n "$3"; then
1610 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
1612 func_error "Continuing, but uninstalled executables may not work."
1613 # Fallback. This is a deliberately simplistic "conversion" and
1614 # should not be "improved". See libtool.info.
1615 if test "x$1" != "x$2"; then
1616 lt_replace_pathsep_chars="s|$1|$2|g"
1617 func_to_host_path_result=`echo "$3" |
1618 $SED -e "$lt_replace_pathsep_chars"`
1619 else
1620 func_to_host_path_result="$3"
1621 fi
1622 fi
1623 }
1624 # end func_convert_path_check
1625
1626
1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1629 # and appending REPL if ORIG matches BACKPAT.
1630 func_convert_path_front_back_pathsep ()
1631 {
1632 $opt_debug
1633 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1635 ;;
1636 esac
1637 case $4 in
1638 $2 ) func_append func_to_host_path_result "$3"
1639 ;;
1640 esac
1641 }
1642 # end func_convert_path_front_back_pathsep
1643
1644
1645 ##################################################
1646 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1647 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
1649 #
1650 # In each case, ARG is the path to be converted from $build to $host format.
1651 # Result will be available in $func_to_host_file_result.
1652
1653
1654 # func_to_host_file ARG
1655 # Converts the file name ARG from $build format to $host format. Return result
1656 # in func_to_host_file_result.
1657 func_to_host_file ()
1658 {
1659 $opt_debug
1660 $to_host_file_cmd "$1"
1661 }
1662 # end func_to_host_file
1663
1664
1665 # func_to_tool_file ARG LAZY
1666 # converts the file name ARG from $build format to toolchain format. Return
1667 # result in func_to_tool_file_result. If the conversion in use is listed
1668 # in (the comma separated) LAZY, no conversion takes place.
1669 func_to_tool_file ()
1670 {
1671 $opt_debug
1672 case ,$2, in
1673 *,"$to_tool_file_cmd",*)
1674 func_to_tool_file_result=$1
1675 ;;
1676 *)
1677 $to_tool_file_cmd "$1"
1678 func_to_tool_file_result=$func_to_host_file_result
1679 ;;
1680 esac
1681 }
1682 # end func_to_tool_file
1683
1684
1685 # func_convert_file_noop ARG
1686 # Copy ARG to func_to_host_file_result.
1687 func_convert_file_noop ()
1688 {
1689 func_to_host_file_result="$1"
1690 }
1691 # end func_convert_file_noop
1692
1693
1694 # func_convert_file_msys_to_w32 ARG
1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1696 # conversion to w32 is not available inside the cwrapper. Returns result in
1697 # func_to_host_file_result.
1698 func_convert_file_msys_to_w32 ()
1699 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
1702 if test -n "$1"; then
1703 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1705 fi
1706 func_convert_file_check "$1" "$func_to_host_file_result"
1707 }
1708 # end func_convert_file_msys_to_w32
1709
1710
1711 # func_convert_file_cygwin_to_w32 ARG
1712 # Convert file name ARG from Cygwin to w32 format. Returns result in
1713 # func_to_host_file_result.
1714 func_convert_file_cygwin_to_w32 ()
1715 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
1718 if test -n "$1"; then
1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1720 # LT_CYGPATH in this case.
1721 func_to_host_file_result=`cygpath -m "$1"`
1722 fi
1723 func_convert_file_check "$1" "$func_to_host_file_result"
1724 }
1725 # end func_convert_file_cygwin_to_w32
1726
1727
1728 # func_convert_file_nix_to_w32 ARG
1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1730 # and a working winepath. Returns result in func_to_host_file_result.
1731 func_convert_file_nix_to_w32 ()
1732 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
1735 if test -n "$1"; then
1736 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1738 fi
1739 func_convert_file_check "$1" "$func_to_host_file_result"
1740 }
1741 # end func_convert_file_nix_to_w32
1742
1743
1744 # func_convert_file_msys_to_cygwin ARG
1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1746 # Returns result in func_to_host_file_result.
1747 func_convert_file_msys_to_cygwin ()
1748 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
1751 if test -n "$1"; then
1752 func_convert_core_msys_to_w32 "$1"
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
1755 fi
1756 func_convert_file_check "$1" "$func_to_host_file_result"
1757 }
1758 # end func_convert_file_msys_to_cygwin
1759
1760
1761 # func_convert_file_nix_to_cygwin ARG
1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1764 # in func_to_host_file_result.
1765 func_convert_file_nix_to_cygwin ()
1766 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
1769 if test -n "$1"; then
1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1771 func_convert_core_file_wine_to_w32 "$1"
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
1774 fi
1775 func_convert_file_check "$1" "$func_to_host_file_result"
1776 }
1777 # end func_convert_file_nix_to_cygwin
1778
1779
1780 #############################################
1781 # $build to $host PATH CONVERSION FUNCTIONS #
1782 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
1784 #
1785 # In each case, ARG is the path to be converted from $build to $host format.
1786 # The result will be available in $func_to_host_path_result.
1787 #
1788 # Path separators are also converted from $build format to $host format. If
1789 # ARG begins or ends with a path separator character, it is preserved (but
1790 # converted to $host format) on output.
1791 #
1792 # All path conversion functions are named using the following convention:
1793 # file name conversion function : func_convert_file_X_to_Y ()
1794 # path conversion function : func_convert_path_X_to_Y ()
1795 # where, for any given $build/$host combination the 'X_to_Y' value is the
1796 # same. If conversion functions are added for new $build/$host combinations,
1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1798 # will break.
1799
1800
1801 # func_init_to_host_path_cmd
1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1803 # appropriate value, based on the value of $to_host_file_cmd.
1804 to_host_path_cmd=
1805 func_init_to_host_path_cmd ()
1806 {
1807 $opt_debug
1808 if test -z "$to_host_path_cmd"; then
1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1811 fi
1812 }
1813
1814
1815 # func_to_host_path ARG
1816 # Converts the path ARG from $build format to $host format. Return result
1817 # in func_to_host_path_result.
1818 func_to_host_path ()
1819 {
1820 $opt_debug
1821 func_init_to_host_path_cmd
1822 $to_host_path_cmd "$1"
1823 }
1824 # end func_to_host_path
1825
1826
1827 # func_convert_path_noop ARG
1828 # Copy ARG to func_to_host_path_result.
1829 func_convert_path_noop ()
1830 {
1831 func_to_host_path_result="$1"
1832 }
1833 # end func_convert_path_noop
1834
1835
1836 # func_convert_path_msys_to_w32 ARG
1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1838 # conversion to w32 is not available inside the cwrapper. Returns result in
1839 # func_to_host_path_result.
1840 func_convert_path_msys_to_w32 ()
1841 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
1844 if test -n "$1"; then
1845 # Remove leading and trailing path separator characters from ARG. MSYS
1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1847 # and winepath ignores them completely.
1848 func_stripname : : "$1"
1849 func_to_host_path_tmp1=$func_stripname_result
1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1852 func_convert_path_check : ";" \
1853 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1855 fi
1856 }
1857 # end func_convert_path_msys_to_w32
1858
1859
1860 # func_convert_path_cygwin_to_w32 ARG
1861 # Convert path ARG from Cygwin to w32 format. Returns result in
1862 # func_to_host_file_result.
1863 func_convert_path_cygwin_to_w32 ()
1864 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
1867 if test -n "$1"; then
1868 # See func_convert_path_msys_to_w32:
1869 func_stripname : : "$1"
1870 func_to_host_path_tmp1=$func_stripname_result
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1872 func_convert_path_check : ";" \
1873 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1875 fi
1876 }
1877 # end func_convert_path_cygwin_to_w32
1878
1879
1880 # func_convert_path_nix_to_w32 ARG
1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1882 # a working winepath. Returns result in func_to_host_file_result.
1883 func_convert_path_nix_to_w32 ()
1884 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
1887 if test -n "$1"; then
1888 # See func_convert_path_msys_to_w32:
1889 func_stripname : : "$1"
1890 func_to_host_path_tmp1=$func_stripname_result
1891 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1893 func_convert_path_check : ";" \
1894 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1896 fi
1897 }
1898 # end func_convert_path_nix_to_w32
1899
1900
1901 # func_convert_path_msys_to_cygwin ARG
1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1903 # Returns result in func_to_host_file_result.
1904 func_convert_path_msys_to_cygwin ()
1905 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
1908 if test -n "$1"; then
1909 # See func_convert_path_msys_to_w32:
1910 func_stripname : : "$1"
1911 func_to_host_path_tmp1=$func_stripname_result
1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
1915 func_convert_path_check : : \
1916 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1918 fi
1919 }
1920 # end func_convert_path_msys_to_cygwin
1921
1922
1923 # func_convert_path_nix_to_cygwin ARG
1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1926 # func_to_host_file_result.
1927 func_convert_path_nix_to_cygwin ()
1928 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
1931 if test -n "$1"; then
1932 # Remove leading and trailing path separator characters from
1933 # ARG. msys behavior is inconsistent here, cygpath turns them
1934 # into '.;' and ';.', and winepath ignores them completely.
1935 func_stripname : : "$1"
1936 func_to_host_path_tmp1=$func_stripname_result
1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
1940 func_convert_path_check : : \
1941 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1943 fi
1944 }
1945 # end func_convert_path_nix_to_cygwin
1946
1947
10991948 # func_mode_compile arg...
11001949 func_mode_compile ()
11011950 {
11361985 ;;
11371986
11381987 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1988 func_append pie_flag " $arg"
11401989 continue
11411990 ;;
11421991
11431992 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1993 func_append later " $arg"
11451994 continue
11461995 ;;
11471996
11622011 save_ifs="$IFS"; IFS=','
11632012 for arg in $args; do
11642013 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
2014 func_append_quoted lastarg "$arg"
11672015 done
11682016 IFS="$save_ifs"
11692017 func_stripname ' ' '' "$lastarg"
11702018 lastarg=$func_stripname_result
11712019
11722020 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
2021 func_append base_compile " $lastarg"
11742022 continue
11752023 ;;
11762024
11862034 esac # case $arg_mode
11872035
11882036 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
2037 func_append_quoted base_compile "$lastarg"
11912038 done # for arg
11922039
11932040 case $arg_mode in
12122059 *.[cCFSifmso] | \
12132060 *.ada | *.adb | *.ads | *.asm | \
12142061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
12162063 func_xform "$libobj"
12172064 libobj=$func_xform_result
12182065 ;;
12872134 # Calculate the filename of the output object if compiler does
12882135 # not support -o with -c
12892136 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
12912138 lockfile="$output_obj.lock"
12922139 else
12932140 output_obj=
13182165 $opt_dry_run || $RM $removelist
13192166 exit $EXIT_FAILURE
13202167 fi
1321 removelist="$removelist $output_obj"
2168 func_append removelist " $output_obj"
13222169 $ECHO "$srcfile" > "$lockfile"
13232170 fi
13242171
13252172 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
2173 func_append removelist " $lockfile"
13272174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
13282175
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
13322178 func_quote_for_eval "$srcfile"
13332179 qsrcfile=$func_quote_for_eval_result
13342180
13482194
13492195 if test -z "$output_obj"; then
13502196 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
2197 func_append command " -o $lobj"
13522198 fi
13532199
13542200 func_show_eval_locale "$command" \
13952241 command="$base_compile $qsrcfile $pic_flag"
13962242 fi
13972243 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
2244 func_append command " -o $obj"
13992245 fi
14002246
14012247 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
2248 func_append command "$suppress_output"
14032249 func_show_eval_locale "$command" \
14042250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
14052251
14442290 }
14452291
14462292 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
14482294 }
14492295
14502296 func_mode_help ()
14512297 {
14522298 # We need to display help for each of the modes.
1453 case $mode in
2299 case $opt_mode in
14542300 "")
14552301 # Generic help is extracted from the usage comments
14562302 # at the start of this file.
14812327
14822328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
14832329 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
14862332 -shared do not build a \`.o' file suitable for static linking
14872333 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
14882335
14892336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
14902337 from the given SOURCEFILE.
15372384
15382385 The following components of INSTALL-COMMAND are treated specially:
15392386
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
15412388
15422389 The rest of the components are interpreted as arguments to that command (only
15432390 BSD-compatible install options are recognized)."
15572404
15582405 -all-static do not do any dynamic linking at all
15592406 -avoid-version do not add a version suffix if possible
2407 -bindir BINDIR specify path to binaries directory (for systems where
2408 libraries must be found in the PATH setting at runtime)
15602409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
15612410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
15622411 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
15852434 -version-info CURRENT[:REVISION[:AGE]]
15862435 specify library version info [each variable defaults to 0]
15872436 -weak LIBNAME declare that the target provides the LIBNAME interface
2437 -Wc,FLAG
2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2439 -Wl,FLAG
2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
15882442
15892443 All other options (arguments beginning with \`-') are ignored.
15902444
16182472 ;;
16192473
16202474 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
16222476 ;;
16232477 esac
16242478
1625 $ECHO
2479 echo
16262480 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
2481 }
2482
2483 # Now that we've collected a possible --mode arg, show help if necessary
2484 if $opt_help; then
2485 if test "$opt_help" = :; then
2486 func_mode_help
2487 else
2488 {
2489 func_help noexit
2490 for opt_mode in compile link execute install finish uninstall clean; do
2491 func_mode_help
2492 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2494 {
2495 func_help noexit
2496 for opt_mode in compile link execute install finish uninstall clean; do
2497 echo
2498 func_mode_help
2499 done
2500 } |
2501 sed '1d
2502 /^When reporting/,/^Report/{
2503 H
2504 d
2505 }
2506 $x
2507 /information about other modes/d
2508 /more detailed .*MODE/d
2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2510 fi
2511 exit $?
2512 fi
16332513
16342514
16352515 # func_mode_execute arg...
16422522 func_fatal_help "you must specify a COMMAND"
16432523
16442524 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
2525 for file in $opt_dlopen; do
16462526 test -f "$file" \
16472527 || func_fatal_help "\`$file' is not a file"
16482528
16492529 dir=
16502530 case $file in
16512531 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
16522535 # Check to see that this really is a libtool archive.
16532536 func_lalib_unsafe_p "$file" \
16542537 || func_fatal_help "\`$lib' is not a valid libtool archive"
16702553 dir="$func_dirname_result"
16712554
16722555 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
2556 func_append dir "/$objdir"
16742557 else
16752558 if test ! -f "$dir/$dlname"; then
16762559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
17112594 for file
17122595 do
17132596 case $file in
1714 -*) ;;
2597 -* | *.la | *.lo ) ;;
17152598 *)
17162599 # Do a test to see if this is really a libtool program.
17172600 if func_ltwrapper_script_p "$file"; then
17272610 ;;
17282611 esac
17292612 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
2613 func_append_quoted args "$file"
17322614 done
17332615
17342616 if test "X$opt_dry_run" = Xfalse; then
17532635 # Display what would be done.
17542636 if test -n "$shlibpath_var"; then
17552637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
2638 echo "export $shlibpath_var"
17572639 fi
17582640 $ECHO "$cmd$args"
17592641 exit $EXIT_SUCCESS
17602642 fi
17612643 }
17622644
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
17642646
17652647
17662648 # func_mode_finish arg...
17672649 func_mode_finish ()
17682650 {
17692651 $opt_debug
1770 libdirs="$nonopt"
2652 libs=
2653 libdirs=
17712654 admincmds=
17722655
2656 for opt in "$nonopt" ${1+"$@"}
2657 do
2658 if test -d "$opt"; then
2659 func_append libdirs " $opt"
2660
2661 elif test -f "$opt"; then
2662 if func_lalib_unsafe_p "$opt"; then
2663 func_append libs " $opt"
2664 else
2665 func_warning "\`$opt' is not a valid libtool archive"
2666 fi
2667
2668 else
2669 func_fatal_error "invalid argument \`$opt'"
2670 fi
2671 done
2672
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2677 else
2678 sysroot_cmd=
2679 fi
2680
2681 # Remove sysroot references
2682 if $opt_dry_run; then
2683 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2685 done
2686 else
2687 tmpdir=`func_mktempdir`
2688 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2692 done
2693 ${RM}r "$tmpdir"
2694 fi
2695 fi
2696
17732697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
17792698 for libdir in $libdirs; do
17802699 if test -n "$finish_cmds"; then
17812700 # Do each command in the finish commands.
17852704 if test -n "$finish_eval"; then
17862705 # Do the single finish_eval.
17872706 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
17892708 $cmds"
17902709 fi
17912710 done
17942713 # Exit here if they wanted silent mode.
17952714 $opt_silent && exit $EXIT_SUCCESS
17962715
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2718 echo "Libraries have been installed in:"
2719 for libdir in $libdirs; do
2720 $ECHO " $libdir"
2721 done
2722 echo
2723 echo "If you ever happen to want to link against installed libraries"
2724 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2726 echo "flag during linking and do at least one of the following:"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2729 echo " during execution"
2730 fi
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2733 echo " during linking"
2734 fi
2735 if test -n "$hardcode_libdir_flag_spec"; then
2736 libdir=LIBDIR
2737 eval flag=\"$hardcode_libdir_flag_spec\"
2738
2739 $ECHO " - use the \`$flag' linker flag"
2740 fi
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2743 fi
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2746 fi
2747 echo
2748
2749 echo "See any operating system documentation about shared libraries for"
2750 case $host in
2751 solaris2.[6789]|solaris2.1[0-9])
2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2753 echo "pages."
2754 ;;
2755 *)
2756 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2757 ;;
2758 esac
2759 echo "----------------------------------------------------------------------"
18102760 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
18402761 exit $EXIT_SUCCESS
18412762 }
18422763
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
18442765
18452766
18462767 # func_mode_install arg...
18512772 # install_prog (especially on Windows NT).
18522773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
18532774 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
18552776 # Aesthetically quote it.
18562777 func_quote_for_eval "$nonopt"
18572778 install_prog="$func_quote_for_eval_result "
18652786 # The real first argument should be the name of the installation program.
18662787 # Aesthetically quote it.
18672788 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
2789 func_append install_prog "$func_quote_for_eval_result"
2790 install_shared_prog=$install_prog
2791 case " $install_prog " in
2792 *[\\\ /]cp\ *) install_cp=: ;;
2793 *) install_cp=false ;;
2794 esac
18692795
18702796 # We need to accept at least all the BSD install flags.
18712797 dest=
18752801 install_type=
18762802 isdir=no
18772803 stripme=
2804 no_mode=:
18782805 for arg
18792806 do
2807 arg2=
18802808 if test -n "$dest"; then
1881 files="$files $dest"
2809 func_append files " $dest"
18822810 dest=$arg
18832811 continue
18842812 fi
18862814 case $arg in
18872815 -d) isdir=yes ;;
18882816 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
2817 if $install_cp; then :; else
2818 prev=$arg
2819 fi
18932820 ;;
18942821 -g | -m | -o)
18952822 prev=$arg
19032830 *)
19042831 # If the previous option needed an argument, then skip it.
19052832 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2834 arg2=$install_override_mode
2835 no_mode=false
2836 fi
19062837 prev=
19072838 else
19082839 dest=$arg
19132844
19142845 # Aesthetically quote the argument.
19152846 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
2847 func_append install_prog " $func_quote_for_eval_result"
2848 if test -n "$arg2"; then
2849 func_quote_for_eval "$arg2"
2850 fi
2851 func_append install_shared_prog " $func_quote_for_eval_result"
19172852 done
19182853
19192854 test -z "$install_prog" && \
19212856
19222857 test -n "$prev" && \
19232858 func_fatal_help "the \`$prev' option requires an argument"
2859
2860 if test -n "$install_override_mode" && $no_mode; then
2861 if $install_cp; then :; else
2862 func_quote_for_eval "$install_override_mode"
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
2864 fi
2865 fi
19242866
19252867 if test -z "$files"; then
19262868 if test -z "$dest"; then
19762918 case $file in
19772919 *.$libext)
19782920 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
2921 func_append staticlibs " $file"
19802922 ;;
19812923
19822924 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
19832928 # Check to see that this really is a libtool archive.
19842929 func_lalib_unsafe_p "$file" \
19852930 || func_fatal_help "\`$file' is not a valid libtool archive"
19932938 if test "X$destdir" = "X$libdir"; then
19942939 case "$current_libdirs " in
19952940 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
2941 *) func_append current_libdirs " $libdir" ;;
19972942 esac
19982943 else
19992944 # Note the libdir as a future libdir.
20002945 case "$future_libdirs " in
20012946 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2947 *) func_append future_libdirs " $libdir" ;;
20032948 esac
20042949 fi
20052950
20062951 func_dirname "$file" "/" ""
20072952 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2953 func_append dir "$objdir"
20092954
20102955 if test -n "$relink_command"; then
20112956 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
20132958
20142959 # Don't allow the user to place us outside of our expected
20152960 # location b/c this prevents finding dependent libraries that
20222967
20232968 if test -n "$inst_prefix_dir"; then
20242969 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
20262971 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
20282973 fi
20292974
20302975 func_warning "relinking \`$file'"
20422987 test -n "$relink_command" && srcname="$realname"T
20432988
20442989 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
20462991 'exit $?'
20472992 tstripme="$stripme"
20482993 case $host_os in
20823027 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
20833028
20843029 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
20863031 ;;
20873032
20883033 *.lo)
21823127 if test -f "$lib"; then
21833128 func_source "$lib"
21843129 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
21863131 if test -n "$libdir" && test ! -f "$libfile"; then
21873132 func_warning "\`$lib' has not been installed in \`$libdir'"
21883133 finalize=no
22013146 file="$func_basename_result"
22023147 outputname="$tmpdir/$file"
22033148 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
22053150
22063151 $opt_silent || {
22073152 func_quote_for_expand "$relink_command"
22203165 }
22213166 else
22223167 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
22243169 fi
22253170 fi
22263171
22563201
22573202 # Set up the ranlib parameters.
22583203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
22593206
22603207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
22613208
22623209 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
22643211 fi
22653212
22663213 # Do each command in the postinstall commands.
22793226 fi
22803227 }
22813228
2282 test "$mode" = install && func_mode_install ${1+"$@"}
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
22833230
22843231
22853232 # func_generate_dlsyms outputname originator pic_p
23223269 extern \"C\" {
23233270 #endif
23243271
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3273 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3274 #endif
3275
3276 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3279 relocations are performed -- see ld's documentation on pseudo-relocs. */
3280 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
3282 /* This system does not cope well with relocations in const data. */
3283 # define LT_DLSYM_CONST
3284 #else
3285 # define LT_DLSYM_CONST const
3286 #endif
3287
23253288 /* External symbol declarations for the compiler. */\
23263289 "
23273290
23313294 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
23323295
23333296 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
23353298 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
3299 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3301 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
23383302 done
23393303
23403304 if test -n "$exclude_expsyms"; then
23703334 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
23713335 eval '$MV "$nlist"T "$nlist"'
23723336 case $host in
2373 *cygwin | *mingw* | *cegcc* )
3337 *cygwin* | *mingw* | *cegcc* )
23743338 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
23753339 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
23763340 ;;
23833347 func_verbose "extracting global C symbols from \`$dlprefile'"
23843348 func_basename "$dlprefile"
23853349 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
3350 case $host in
3351 *cygwin* | *mingw* | *cegcc* )
3352 # if an import library, we need to obtain dlname
3353 if func_win32_import_lib_p "$dlprefile"; then
3354 func_tr_sh "$dlprefile"
3355 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
3357 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 # Use subshell, to avoid clobbering current variable values
3359 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
3361 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
3363 else
3364 # no lafile. user explicitly requested -dlpreopen <import library>.
3365 $sharedlib_from_linklib_cmd "$dlprefile"
3366 dlprefile_dlbasename=$sharedlib_from_linklib_result
3367 fi
3368 fi
3369 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
3371 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3372 else
3373 func_warning "Could not compute DLL name from $name"
3374 eval '$ECHO ": $name " >> "$nlist"'
3375 fi
3376 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3377 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3378 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3379 }
3380 else # not an import lib
3381 $opt_dry_run || {
3382 eval '$ECHO ": $name " >> "$nlist"'
3383 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3384 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3385 }
3386 fi
3387 ;;
3388 *)
3389 $opt_dry_run || {
3390 eval '$ECHO ": $name " >> "$nlist"'
3391 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3392 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3393 }
3394 ;;
3395 esac
23903396 done
23913397
23923398 $opt_dry_run || {
24143420 if test -f "$nlist"S; then
24153421 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
24163422 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
3423 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
24183424 fi
24193425
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
3426 echo >> "$output_objdir/$my_dlsyms" "\
24213427
24223428 /* The mapping between symbol names and symbols. */
24233429 typedef struct {
24243430 const char *name;
24253431 void *address;
24263432 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
3433 extern LT_DLSYM_CONST lt_dlsymlist
24453434 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
3435 LT_DLSYM_CONST lt_dlsymlist
24473436 lt_${my_prefix}_LTX_preloaded_symbols[] =
24483437 {\
24493438 { \"$my_originator\", (void *) 0 },"
24563445 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
24573446 ;;
24583447 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
3448 echo >> "$output_objdir/$my_dlsyms" "\
24603449 {0, (void *) 0}
24613450 };
24623451
24833472 # linked before any other PIC object. But we must not use
24843473 # pic_flag when linking with -static. The problem exists in
24853474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
24873476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
24883477 *-*-hpux*)
24893478 pic_flag_for_symtable=" $pic_flag" ;;
24993488 for arg in $LTCFLAGS; do
25003489 case $arg in
25013490 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
3491 *) func_append symtab_cflags " $arg" ;;
25033492 esac
25043493 done
25053494
25143503 case $host in
25153504 *cygwin* | *mingw* | *cegcc* )
25163505 if test -f "$output_objdir/$my_outputname.def"; then
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3506 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3507 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
25193508 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3509 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3510 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25223511 fi
25233512 ;;
25243513 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3514 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3515 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25273516 ;;
25283517 esac
25293518 ;;
25373526 # really was required.
25383527
25393528 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
3529 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3530 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
25423531 fi
25433532 }
25443533
25483537 # Need a lot of goo to handle *both* DLLs and import libs
25493538 # Has to be a shell function in order to 'eat' the argument
25503539 # that is supplied when $file_magic_command is called.
3540 # Despite the name, also deal with 64 bit binaries.
25513541 func_win32_libid ()
25523542 {
25533543 $opt_debug
25583548 win32_libid_type="x86 archive import"
25593549 ;;
25603550 *ar\ archive*) # could be an import, or static
3551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
25613552 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
3553 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
25643556 $SED -n -e '
25653557 1,100{
25663558 / I /{
25893581 $ECHO "$win32_libid_type"
25903582 }
25913583
3584 # func_cygming_dll_for_implib ARG
3585 #
3586 # Platform-specific function to extract the
3587 # name of the DLL associated with the specified
3588 # import library ARG.
3589 # Invoked by eval'ing the libtool variable
3590 # $sharedlib_from_linklib_cmd
3591 # Result is available in the variable
3592 # $sharedlib_from_linklib_result
3593 func_cygming_dll_for_implib ()
3594 {
3595 $opt_debug
3596 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3597 }
3598
3599 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3600 #
3601 # The is the core of a fallback implementation of a
3602 # platform-specific function to extract the name of the
3603 # DLL associated with the specified import library LIBNAME.
3604 #
3605 # SECTION_NAME is either .idata$6 or .idata$7, depending
3606 # on the platform and compiler that created the implib.
3607 #
3608 # Echos the name of the DLL associated with the
3609 # specified import library.
3610 func_cygming_dll_for_implib_fallback_core ()
3611 {
3612 $opt_debug
3613 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3614 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3615 $SED '/^Contents of section '"$match_literal"':/{
3616 # Place marker at beginning of archive member dllname section
3617 s/.*/====MARK====/
3618 p
3619 d
3620 }
3621 # These lines can sometimes be longer than 43 characters, but
3622 # are always uninteresting
3623 /:[ ]*file format pe[i]\{,1\}-/d
3624 /^In archive [^:]*:/d
3625 # Ensure marker is printed
3626 /^====MARK====/p
3627 # Remove all lines with less than 43 characters
3628 /^.\{43\}/!d
3629 # From remaining lines, remove first 43 characters
3630 s/^.\{43\}//' |
3631 $SED -n '
3632 # Join marker and all lines until next marker into a single line
3633 /^====MARK====/ b para
3634 H
3635 $ b para
3636 b
3637 :para
3638 x
3639 s/\n//g
3640 # Remove the marker
3641 s/^====MARK====//
3642 # Remove trailing dots and whitespace
3643 s/[\. \t]*$//
3644 # Print
3645 /./p' |
3646 # we now have a list, one entry per line, of the stringified
3647 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
3650 # a '.' (that is, objdump's representation of an unprintable
3651 # character.) This should work for all archives with less than
3652 # 0x302f exports -- but will fail for DLLs whose name actually
3653 # begins with a literal '.' or a single character followed by
3654 # a '.'.
3655 #
3656 # Of those that remain, print the first one.
3657 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
3682 }
3683
3684 # func_cygming_dll_for_implib_fallback ARG
3685 # Platform-specific function to extract the
3686 # name of the DLL associated with the specified
3687 # import library ARG.
3688 #
3689 # This fallback implementation is for use when $DLLTOOL
3690 # does not support the --identify-strict option.
3691 # Invoked by eval'ing the libtool variable
3692 # $sharedlib_from_linklib_cmd
3693 # Result is available in the variable
3694 # $sharedlib_from_linklib_result
3695 func_cygming_dll_for_implib_fallback ()
3696 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
3699 # binutils import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
3702 # ms-generated import library
3703 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3704 else
3705 # unknown
3706 sharedlib_from_linklib_result=""
3707 fi
3708 }
25923709
25933710
25943711 # func_extract_an_archive dir oldlib
25973714 $opt_debug
25983715 f_ex_an_ar_dir="$1"; shift
25993716 f_ex_an_ar_oldlib="$1"
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
3717 if test "$lock_old_archive_extraction" = yes; then
3718 lockfile=$f_ex_an_ar_oldlib.lock
3719 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3720 func_echo "Waiting for $lockfile to be removed"
3721 sleep 2
3722 done
3723 fi
3724 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
3725 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
3727 $opt_dry_run || rm -f "$lockfile"
3728 fi
26013729 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
26023730 :
26033731 else
26683796 darwin_file=
26693797 darwin_files=
26703798 for darwin_file in $darwin_filelist; do
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
3799 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
26723800 $LIPO -create -output "$darwin_file" $darwin_files
26733801 done # $darwin_filelist
26743802 $RM -rf unfat-$$
26833811 func_extract_an_archive "$my_xdir" "$my_xabs"
26843812 ;;
26853813 esac
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3814 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
26873815 done
26883816
26893817 func_extract_archives_result="$my_oldobjs"
26903818 }
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
2782 esac
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
2802 fi
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
2813 fi
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
2818 esac
2819 fi
2820
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
2909 ;;
2910 esac
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
2921 fi
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
29263819
29273820
29283821 # func_emit_wrapper [arg=no]
29413834 # behavior.
29423835 func_emit_wrapper ()
29433836 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2947 fi
2948
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
2953 }
2954
2955
2956 # func_to_host_path arg
3837 func_emit_wrapper_arg1=${1-no}
3838
3839 $ECHO "\
3840 #! $SHELL
3841
3842 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
29573844 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
3845 # The $output program cannot be directly executed until all the libtool
3846 # libraries that it depends on are installed.
29733847 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
2992 ;;
2993 *cygwin* )
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
3848 # This wrapper script should never be moved out of the build directory.
3849 # If it is, it will not operate correctly.
3850
3851 # Sed substitution that helps us do robust quoting. It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 sed_quote_subst='$sed_quote_subst'
3854
3855 # Be Bourne compatible
3856 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3857 emulate sh
3858 NULLCMD=:
3859 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
3860 # is contrary to our usage. Disable this feature.
3861 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3862 setopt NO_GLOB_SUBST
3863 else
3864 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3865 fi
3866 BIN_SH=xpg4; export BIN_SH # for Tru64
3867 DUALCASE=1; export DUALCASE # for MKS sh
3868
3869 # The HP-UX ksh and POSIX shell print the target directory to stdout
3870 # if CDPATH is set.
3871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3872
3873 relink_command=\"$relink_command\"
3874
3875 # This environment variable determines our operation mode.
3876 if test \"\$libtool_install_magic\" = \"$magic\"; then
3877 # install mode needs the following variables:
3878 generated_by_libtool_version='$macro_version'
3879 notinst_deplibs='$notinst_deplibs'
3880 else
3881 # When we are sourced in execute mode, \$file and \$ECHO are already set.
3882 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3883 file=\"\$0\""
3884
3885 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
3886 $ECHO "\
3887
3888 # A function that is used when there is no print builtin or printf.
3889 func_fallback_echo ()
3890 {
3891 eval 'cat <<_LTECHO_EOF
3892 \$1
3893 _LTECHO_EOF'
3894 }
3895 ECHO=\"$qECHO\"
3896 fi
3897
3898 # Very basic option parsing. These options are (a) specific to
3899 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
3901 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
3903 # this pattern).
3904 #
3905 # There are only two supported options: --lt-debug and
3906 # --lt-dump-script. There is, deliberately, no --lt-help.
3907 #
3908 # The first argument to this parsing function should be the
3909 # script's $0 value, followed by "$@".
3910 lt_option_debug=
3911 func_parse_lt_options ()
3912 {
3913 lt_script_arg0=\$0
3914 shift
3915 for lt_opt
3916 do
3917 case \"\$lt_opt\" in
3918 --lt-debug) lt_option_debug=1 ;;
3919 --lt-dump-script)
3920 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3921 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3922 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3923 cat \"\$lt_dump_D/\$lt_dump_F\"
3924 exit 0
3925 ;;
3926 --lt-*)
3927 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3928 exit 1
3929 ;;
3930 esac
3931 done
3932
3933 # Print the debug banner immediately:
3934 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3936 fi
3937 }
3938
3939 # Used when --lt-debug. Prints its arguments to stdout
3940 # (redirection is the responsibility of the caller)
3941 func_lt_dump_args ()
3942 {
3943 lt_dump_args_N=1;
3944 for lt_arg
3945 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3947 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3948 done
3949 }
3950
3951 # Core function for launching the target application
3952 func_exec_program_core ()
3953 {
3954 "
3955 case $host in
3956 # Backslashes separate directories on plain windows
3957 *-*-mingw | *-*-os2* | *-cegcc*)
3958 $ECHO "\
3959 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3961 func_lt_dump_args \${1+\"\$@\"} 1>&2
3962 fi
3963 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3964 "
3965 ;;
3966
3967 *)
3968 $ECHO "\
3969 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3971 func_lt_dump_args \${1+\"\$@\"} 1>&2
3972 fi
3973 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3974 "
3975 ;;
3976 esac
3977 $ECHO "\
3978 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3979 exit 1
3980 }
3981
3982 # A function to encapsulate launching the target application
3983 # Strips options in the --lt-* namespace from \$@ and
3984 # launches target application with the remaining arguments.
3985 func_exec_program ()
3986 {
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
3998 func_exec_program_core \${1+\"\$@\"}
3999 }
4000
4001 # Parse options
4002 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
4003
4004 # Find the directory that this script lives in.
4005 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4006 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4007
4008 # Follow symbolic links until we get to the real thisdir.
4009 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4010 while test -n \"\$file\"; do
4011 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4012
4013 # If there was a directory component, then change thisdir.
4014 if test \"x\$destdir\" != \"x\$file\"; then
4015 case \"\$destdir\" in
4016 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4017 *) thisdir=\"\$thisdir/\$destdir\" ;;
4018 esac
4019 fi
4020
4021 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4022 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4023 done
4024
4025 # Usually 'no', except on cygwin/mingw when embedded into
4026 # the cwrapper.
4027 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4028 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4029 # special case for '.'
4030 if test \"\$thisdir\" = \".\"; then
4031 thisdir=\`pwd\`
4032 fi
4033 # remove .libs from thisdir
4034 case \"\$thisdir\" in
4035 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4036 $objdir ) thisdir=. ;;
30244037 esac
30254038 fi
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
3071 ;;
3072 *cygwin* )
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
4039
4040 # Try to get the absolute directory name.
4041 absdir=\`cd \"\$thisdir\" && pwd\`
4042 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4043 "
4044
4045 if test "$fast_install" = yes; then
4046 $ECHO "\
4047 program=lt-'$outputname'$exeext
4048 progdir=\"\$thisdir/$objdir\"
4049
4050 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4052 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4053
4054 file=\"\$\$-\$program\"
4055
4056 if test ! -d \"\$progdir\"; then
4057 $MKDIR \"\$progdir\"
4058 else
4059 $RM \"\$progdir/\$file\"
4060 fi"
4061
4062 $ECHO "\
4063
4064 # relink executable if necessary
4065 if test -n \"\$relink_command\"; then
4066 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4067 else
4068 $ECHO \"\$relink_command_output\" >&2
4069 $RM \"\$progdir/\$file\"
4070 exit 1
4071 fi
4072 fi
4073
4074 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4075 { $RM \"\$progdir/\$program\";
4076 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4077 $RM \"\$progdir/\$file\"
4078 fi"
4079 else
4080 $ECHO "\
4081 program='$outputname'
4082 progdir=\"\$thisdir/$objdir\"
4083 "
4084 fi
4085
4086 $ECHO "\
4087
4088 if test -f \"\$progdir/\$program\"; then"
4089
4090 # fixup the dll searchpath if we need to.
4091 #
4092 # Fix the DLL searchpath if we need to. Do this before prepending
4093 # to shlibpath, because on Windows, both are PATH and uninstalled
4094 # libraries must come first.
4095 if test -n "$dllsearchpath"; then
4096 $ECHO "\
4097 # Add the dll search path components to the executable PATH
4098 PATH=$dllsearchpath:\$PATH
4099 "
4100 fi
4101
4102 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4104 $ECHO "\
4105 # Add our own library path to $shlibpath_var
4106 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4107
4108 # Some systems cannot cope with colon-terminated $shlibpath_var
4109 # The second colon is a workaround for a bug in BeOS R4 sed
4110 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4111
4112 export $shlibpath_var
4113 "
4114 fi
4115
4116 $ECHO "\
4117 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4118 # Run the actual program with our arguments.
4119 func_exec_program \${1+\"\$@\"}
4120 fi
4121 else
4122 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4124 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4125 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4126 exit 1
31234127 fi
3124 }
3125 # end: func_to_host_pathlist
4128 fi\
4129 "
4130 }
4131
31264132
31274133 # func_emit_cwrapperexe_src
31284134 # emit the source code for a wrapper executable on stdout
31404146
31414147 This wrapper executable should never be moved out of the build directory.
31424148 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
31474149 */
31484150 EOF
31494151 cat <<"EOF"
4152 #ifdef _MSC_VER
4153 # define _CRT_SECURE_NO_DEPRECATE 1
4154 #endif
31504155 #include <stdio.h>
31514156 #include <stdlib.h>
31524157 #ifdef _MSC_VER
31534158 # include <direct.h>
31544159 # include <process.h>
31554160 # include <io.h>
3156 # define setmode _setmode
31574161 #else
31584162 # include <unistd.h>
31594163 # include <stdint.h>
31604164 # ifdef __CYGWIN__
31614165 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
31684166 # endif
31694167 #endif
31704168 #include <malloc.h>
31764174 #include <fcntl.h>
31774175 #include <sys/stat.h>
31784176
4177 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
4179 # ifdef __STRICT_ANSI__
4180 int _putenv (const char *);
4181 # endif
4182 #elif defined(__CYGWIN__)
4183 # ifdef __STRICT_ANSI__
4184 char *realpath (const char *, char *);
4185 int putenv (char *);
4186 int setenv (const char *, const char *, int);
4187 # endif
4188 /* #elif defined (other platforms) ... */
4189 #endif
4190
4191 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
4193 # define setmode _setmode
4194 # define stat _stat
4195 # define chmod _chmod
4196 # define getcwd _getcwd
4197 # define putenv _putenv
4198 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
4204 # define setmode _setmode
4205 # define stat _stat
4206 # define chmod _chmod
4207 # define getcwd _getcwd
4208 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
4210 # define HAVE_SETENV
4211 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
4213 #endif
4214
31794215 #if defined(PATH_MAX)
31804216 # define LT_PATHMAX PATH_MAX
31814217 #elif defined(MAXPATHLEN)
31914227 # define S_IXGRP 0
31924228 #endif
31934229
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
4230 /* path handling portability macros */
32024231 #ifndef DIR_SEPARATOR
32034232 # define DIR_SEPARATOR '/'
32044233 # define PATH_SEPARATOR ':'
32294258 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
32304259 #endif /* PATH_SEPARATOR_2 */
32314260
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
32364261 #ifndef FOPEN_WB
32374262 # define FOPEN_WB "w"
32384263 #endif
32454270 if (stale) { free ((void *) stale); stale = 0; } \
32464271 } while (0)
32474272
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
4273 #if defined(LT_DEBUGWRAPPER)
4274 static int lt_debug = 1;
32594275 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
4276 static int lt_debug = 0;
32614277 #endif
32624278
3263 const char *program_name = NULL;
4279 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
32644280
32654281 void *xmalloc (size_t num);
32664282 char *xstrdup (const char *string);
32704286 int make_executable (const char *path);
32714287 int check_executable (const char *path);
32724288 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
4289 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4290 void lt_fatal (const char *file, int line, const char *message, ...);
4291 static const char *nonnull (const char *s);
4292 static const char *nonempty (const char *s);
32744293 void lt_setenv (const char *name, const char *value);
32754294 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
32804295 void lt_update_exe_path (const char *name, const char *value);
32814296 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
4297 char **prepare_spawn (char **argv);
4298 void lt_dump_script (FILE *f);
32844299 EOF
32854300
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
32904301 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
4302 volatile const char * MAGIC_EXE = "$magic_exe";
33014303 const char * LIB_PATH_VARNAME = "$shlibpath_var";
33024304 EOF
33034305
33044306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
4307 func_to_host_path "$temp_rpath"
33064308 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
33084310 EOF
33094311 else
33104312 cat <<"EOF"
33134315 fi
33144316
33154317 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
4318 func_to_host_path "$dllsearchpath:"
33174319 cat <<EOF
33184320 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
33204322 EOF
33214323 else
33224324 cat <<"EOF"
33394341 cat <<"EOF"
33404342
33414343 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
4344
33454345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
33474346 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
4347 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
33604348
33614349 int
33624350 main (int argc, char *argv[])
33734361 int i;
33744362
33754363 program_name = (char *) xstrdup (base_name (argv[0]));
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
4364 newargz = XMALLOC (char *, argc + 1);
4365
4366 /* very simple arg parsing; don't want to rely on getopt
4367 * also, copy all non cwrapper options to newargz, except
4368 * argz[0], which is handled differently
4369 */
4370 newargc=0;
33804371 for (i = 1; i < argc; i++)
33814372 {
33824373 if (strcmp (argv[i], dumpscript_opt) == 0)
33904381 esac
33914382
33924383 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
4384 lt_dump_script (stdout);
33954385 return 0;
33964386 }
4387 if (strcmp (argv[i], debug_opt) == 0)
4388 {
4389 lt_debug = 1;
4390 continue;
4391 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4393 {
4394 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4395 namespace, but it is not one of the ones we know about and
4396 have already dealt with, above (inluding dump-script), then
4397 report an error. Otherwise, targets might begin to believe
4398 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4399 namespace. The first time any user complains about this, we'll
4400 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4401 or a configure.ac-settable value.
4402 */
4403 lt_fatal (__FILE__, __LINE__,
4404 "unrecognized %s option: '%s'",
4405 ltwrapper_option_prefix, argv[i]);
4406 }
4407 /* otherwise ... */
4408 newargz[++newargc] = xstrdup (argv[i]);
33974409 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
4410 newargz[++newargc] = NULL;
4411
4412 EOF
4413 cat <<EOF
4414 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4416 EOF
4417 cat <<"EOF"
4418 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4419 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4420
34004421 tmp_pathspec = find_executable (argv[0]);
34014422 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
4423 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4424 lt_debugprintf (__FILE__, __LINE__,
4425 "(main) found exe (before symlink chase) at: %s\n",
4426 tmp_pathspec);
34054427
34064428 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
4429 lt_debugprintf (__FILE__, __LINE__,
4430 "(main) found exe (after symlink chase) at: %s\n",
4431 actual_cwrapper_path);
34094432 XFREE (tmp_pathspec);
34104433
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
4434 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
34124435 strendzap (actual_cwrapper_path, actual_cwrapper_name);
34134436
34144437 /* wrapper name transforms */
34264449 target_name = tmp_pathspec;
34274450 tmp_pathspec = 0;
34284451
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
4452 lt_debugprintf (__FILE__, __LINE__,
4453 "(main) libtool target name: %s\n",
4454 target_name);
34314455 EOF
34324456
34334457 cat <<EOF
34774501
34784502 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
34794503 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4504 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4505 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4506 because on Windows, both *_VARNAMEs are PATH but uninstalled
4507 libraries must come first. */
4508 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
34804509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
4510
4511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4512 nonnull (lt_argv_zero));
35514513 for (i = 0; i < newargc; i++)
35524514 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
4515 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4516 i, nonnull (newargz[i]));
35544517 }
35554518
35564519 EOF
35594522 mingw*)
35604523 cat <<"EOF"
35614524 /* execv doesn't actually work on mingw as expected on unix */
4525 newargz = prepare_spawn (newargz);
35624526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
35634527 if (rval == -1)
35644528 {
35654529 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
4530 lt_debugprintf (__FILE__, __LINE__,
4531 "(main) failed to launch target \"%s\": %s\n",
4532 lt_argv_zero, nonnull (strerror (errno)));
35674533 return 127;
35684534 }
35694535 return rval;
35854551 {
35864552 void *p = (void *) malloc (num);
35874553 if (!p)
3588 lt_fatal ("Memory exhausted");
4554 lt_fatal (__FILE__, __LINE__, "memory exhausted");
35894555
35904556 return p;
35914557 }
36194585 {
36204586 struct stat st;
36214587
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
4588 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4589 nonempty (path));
36244590 if ((!path) || (!*path))
36254591 return 0;
36264592
36374603 int rval = 0;
36384604 struct stat st;
36394605
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
4606 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4607 nonempty (path));
36424608 if ((!path) || (!*path))
36434609 return 0;
36444610
36644630 int tmp_len;
36654631 char *concat_name;
36664632
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
4633 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4634 nonempty (wrapper));
36694635
36704636 if ((wrapper == NULL) || (*wrapper == '\0'))
36714637 return NULL;
37184684 {
37194685 /* empty path: current directory */
37204686 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
4687 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4688 nonnull (strerror (errno)));
37224689 tmp_len = strlen (tmp);
37234690 concat_name =
37244691 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37434710 }
37444711 /* Relative path | not found in path: prepend cwd */
37454712 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
4713 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4714 nonnull (strerror (errno)));
37474715 tmp_len = strlen (tmp);
37484716 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37494717 memcpy (concat_name, tmp, tmp_len);
37694737 int has_symlinks = 0;
37704738 while (strlen (tmp_pathspec) && !has_symlinks)
37714739 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
4740 lt_debugprintf (__FILE__, __LINE__,
4741 "checking path component for symlinks: %s\n",
4742 tmp_pathspec);
37744743 if (lstat (tmp_pathspec, &s) == 0)
37754744 {
37764745 if (S_ISLNK (s.st_mode) != 0)
37924761 }
37934762 else
37944763 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
4764 lt_fatal (__FILE__, __LINE__,
4765 "error accessing file \"%s\": %s",
4766 tmp_pathspec, nonnull (strerror (errno)));
37974767 }
37984768 }
37994769 XFREE (tmp_pathspec);
38064776 tmp_pathspec = realpath (pathspec, buf);
38074777 if (tmp_pathspec == 0)
38084778 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
4779 lt_fatal (__FILE__, __LINE__,
4780 "could not follow symlinks for %s", pathspec);
38104781 }
38114782 return xstrdup (tmp_pathspec);
38124783 #endif
38324803 return str;
38334804 }
38344805
4806 void
4807 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4808 {
4809 va_list args;
4810 if (lt_debug)
4811 {
4812 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4813 va_start (args, fmt);
4814 (void) vfprintf (stderr, fmt, args);
4815 va_end (args);
4816 }
4817 }
4818
38354819 static void
3836 lt_error_core (int exit_status, const char *mode,
4820 lt_error_core (int exit_status, const char *file,
4821 int line, const char *mode,
38374822 const char *message, va_list ap)
38384823 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
4824 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
38404825 vfprintf (stderr, message, ap);
38414826 fprintf (stderr, ".\n");
38424827
38454830 }
38464831
38474832 void
3848 lt_fatal (const char *message, ...)
4833 lt_fatal (const char *file, int line, const char *message, ...)
38494834 {
38504835 va_list ap;
38514836 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
4837 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
38534838 va_end (ap);
4839 }
4840
4841 static const char *
4842 nonnull (const char *s)
4843 {
4844 return s ? s : "(null)";
4845 }
4846
4847 static const char *
4848 nonempty (const char *s)
4849 {
4850 return (s && !*s) ? "(empty)" : nonnull (s);
38544851 }
38554852
38564853 void
38574854 lt_setenv (const char *name, const char *value)
38584855 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
4856 lt_debugprintf (__FILE__, __LINE__,
4857 "(lt_setenv) setting '%s' to '%s'\n",
4858 nonnull (name), nonnull (value));
38624859 {
38634860 #ifdef HAVE_SETENV
38644861 /* always make a copy, for consistency with !HAVE_SETENV */
39034900 return new_value;
39044901 }
39054902
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
39894903 void
39904904 lt_update_exe_path (const char *name, const char *value)
39914905 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
4906 lt_debugprintf (__FILE__, __LINE__,
4907 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4908 nonnull (name), nonnull (value));
39954909
39964910 if (name && *name && value && *value)
39974911 {
40104924 void
40114925 lt_update_lib_path (const char *name, const char *value)
40124926 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4927 lt_debugprintf (__FILE__, __LINE__,
4928 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4929 nonnull (name), nonnull (value));
40164930
40174931 if (name && *name && value && *value)
40184932 {
40224936 }
40234937 }
40244938
4025
40264939 EOF
4940 case $host_os in
4941 mingw*)
4942 cat <<"EOF"
4943
4944 /* Prepares an argument vector before calling spawn().
4945 Note that spawn() does not by itself call the command interpreter
4946 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4947 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4948 GetVersionEx(&v);
4949 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4950 }) ? "cmd.exe" : "command.com").
4951 Instead it simply concatenates the arguments, separated by ' ', and calls
4952 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4953 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4954 special way:
4955 - Space and tab are interpreted as delimiters. They are not treated as
4956 delimiters if they are surrounded by double quotes: "...".
4957 - Unescaped double quotes are removed from the input. Their only effect is
4958 that within double quotes, space and tab are treated like normal
4959 characters.
4960 - Backslashes not followed by double quotes are not special.
4961 - But 2*n+1 backslashes followed by a double quote become
4962 n backslashes followed by a double quote (n >= 0):
4963 \" -> "
4964 \\\" -> \"
4965 \\\\\" -> \\"
4966 */
4967 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4968 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4969 char **
4970 prepare_spawn (char **argv)
4971 {
4972 size_t argc;
4973 char **new_argv;
4974 size_t i;
4975
4976 /* Count number of arguments. */
4977 for (argc = 0; argv[argc] != NULL; argc++)
4978 ;
4979
4980 /* Allocate new argument vector. */
4981 new_argv = XMALLOC (char *, argc + 1);
4982
4983 /* Put quoted arguments into the new argument vector. */
4984 for (i = 0; i < argc; i++)
4985 {
4986 const char *string = argv[i];
4987
4988 if (string[0] == '\0')
4989 new_argv[i] = xstrdup ("\"\"");
4990 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4991 {
4992 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4993 size_t length;
4994 unsigned int backslashes;
4995 const char *s;
4996 char *quoted_string;
4997 char *p;
4998
4999 length = 0;
5000 backslashes = 0;
5001 if (quote_around)
5002 length++;
5003 for (s = string; *s != '\0'; s++)
5004 {
5005 char c = *s;
5006 if (c == '"')
5007 length += backslashes + 1;
5008 length++;
5009 if (c == '\\')
5010 backslashes++;
5011 else
5012 backslashes = 0;
5013 }
5014 if (quote_around)
5015 length += backslashes + 1;
5016
5017 quoted_string = XMALLOC (char, length + 1);
5018
5019 p = quoted_string;
5020 backslashes = 0;
5021 if (quote_around)
5022 *p++ = '"';
5023 for (s = string; *s != '\0'; s++)
5024 {
5025 char c = *s;
5026 if (c == '"')
5027 {
5028 unsigned int j;
5029 for (j = backslashes + 1; j > 0; j--)
5030 *p++ = '\\';
5031 }
5032 *p++ = c;
5033 if (c == '\\')
5034 backslashes++;
5035 else
5036 backslashes = 0;
5037 }
5038 if (quote_around)
5039 {
5040 unsigned int j;
5041 for (j = backslashes; j > 0; j--)
5042 *p++ = '\\';
5043 *p++ = '"';
5044 }
5045 *p = '\0';
5046
5047 new_argv[i] = quoted_string;
5048 }
5049 else
5050 new_argv[i] = (char *) string;
5051 }
5052 new_argv[argc] = NULL;
5053
5054 return new_argv;
5055 }
5056 EOF
5057 ;;
5058 esac
5059
5060 cat <<"EOF"
5061 void lt_dump_script (FILE* f)
5062 {
5063 EOF
5064 func_emit_wrapper yes |
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
5074 cat <<"EOF"
5075 }
5076 EOF
40275077 }
40285078 # end: func_emit_cwrapperexe_src
5079
5080 # func_win32_import_lib_p ARG
5081 # True if ARG is an import lib, as indicated by $file_magic_cmd
5082 func_win32_import_lib_p ()
5083 {
5084 $opt_debug
5085 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5086 *import*) : ;;
5087 *) false ;;
5088 esac
5089 }
40295090
40305091 # func_mode_link arg...
40315092 func_mode_link ()
40715132 new_inherited_linker_flags=
40725133
40735134 avoid_version=no
5135 bindir=
40745136 dlfiles=
40755137 dlprefiles=
40765138 dlself=no
41635225 esac
41645226
41655227 case $prev in
5228 bindir)
5229 bindir="$arg"
5230 prev=
5231 continue
5232 ;;
41665233 dlfiles|dlprefiles)
41675234 if test "$preload" = no; then
41685235 # Add the symbol object into the linking commands.
41945261 ;;
41955262 *)
41965263 if test "$prev" = dlfiles; then
4197 dlfiles="$dlfiles $arg"
5264 func_append dlfiles " $arg"
41985265 else
4199 dlprefiles="$dlprefiles $arg"
5266 func_append dlprefiles " $arg"
42005267 fi
42015268 prev=
42025269 continue
42205287 *-*-darwin*)
42215288 case "$deplibs " in
42225289 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
42245291 ;;
42255292 esac
42265293 ;;
42395306 moreargs=
42405307 for fil in `cat "$save_arg"`
42415308 do
4242 # moreargs="$moreargs $fil"
5309 # func_append moreargs " $fil"
42435310 arg=$fil
42445311 # A libtool-controlled object.
42455312
42685335
42695336 if test "$prev" = dlfiles; then
42705337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
5338 func_append dlfiles " $pic_object"
42725339 prev=
42735340 continue
42745341 else
42805347 # CHECK ME: I think I busted this. -Ossama
42815348 if test "$prev" = dlprefiles; then
42825349 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
5350 func_append dlprefiles " $pic_object"
42845351 prev=
42855352 fi
42865353
43505417 if test "$prev" = rpath; then
43515418 case "$rpath " in
43525419 *" $arg "*) ;;
4353 *) rpath="$rpath $arg" ;;
5420 *) func_append rpath " $arg" ;;
43545421 esac
43555422 else
43565423 case "$xrpath " in
43575424 *" $arg "*) ;;
4358 *) xrpath="$xrpath $arg" ;;
5425 *) func_append xrpath " $arg" ;;
43595426 esac
43605427 fi
43615428 prev=
43675434 continue
43685435 ;;
43695436 weak)
4370 weak_libs="$weak_libs $arg"
5437 func_append weak_libs " $arg"
43715438 prev=
43725439 continue
43735440 ;;
43745441 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
43775444 prev=
43785445 func_append compile_command " $qarg"
43795446 func_append finalize_command " $qarg"
43805447 continue
43815448 ;;
43825449 xcompiler)
4383 compiler_flags="$compiler_flags $qarg"
5450 func_append compiler_flags " $qarg"
43845451 prev=
43855452 func_append compile_command " $qarg"
43865453 func_append finalize_command " $qarg"
43875454 continue
43885455 ;;
43895456 xlinker)
4390 linker_flags="$linker_flags $qarg"
4391 compiler_flags="$compiler_flags $wl$qarg"
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
43925459 prev=
43935460 func_append compile_command " $wl$qarg"
43945461 func_append finalize_command " $wl$qarg"
44245491 continue
44255492 ;;
44265493
5494 -bindir)
5495 prev=bindir
5496 continue
5497 ;;
5498
44275499 -dlopen)
44285500 prev=dlfiles
44295501 continue
44745546 ;;
44755547
44765548 -L*)
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
44805551 if test "$#" -gt 0; then
44815552 func_fatal_error "require no space between \`-L' and \`$1'"
44825553 else
44835554 func_fatal_error "need path for \`-L' option"
44845555 fi
44855556 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
44865559 # We need an absolute path.
44875560 case $dir in
44885561 [\\/]* | [A-Za-z]:[\\/]*) ;;
44945567 ;;
44955568 esac
44965569 case "$deplibs " in
4497 *" -L$dir "*) ;;
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
44985573 *)
4499 deplibs="$deplibs -L$dir"
4500 lib_search_path="$lib_search_path $dir"
5574 # Preserve sysroot, but never include relative directories
5575 case $dir in
5576 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5577 *) func_append deplibs " -L$dir" ;;
5578 esac
5579 func_append lib_search_path " $dir"
45015580 ;;
45025581 esac
45035582 case $host in
45045583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
5584 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
45065585 case :$dllsearchpath: in
45075586 *":$dir:"*) ;;
45085587 ::) dllsearchpath=$dir;;
4509 *) dllsearchpath="$dllsearchpath:$dir";;
5588 *) func_append dllsearchpath ":$dir";;
45105589 esac
45115590 case :$dllsearchpath: in
45125591 *":$testbindir:"*) ;;
45135592 ::) dllsearchpath=$testbindir;;
4514 *) dllsearchpath="$dllsearchpath:$testbindir";;
5593 *) func_append dllsearchpath ":$testbindir";;
45155594 esac
45165595 ;;
45175596 esac
45215600 -l*)
45225601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
45235602 case $host in
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
5603 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
45255604 # These systems don't actually have a C or math library (as such)
45265605 continue
45275606 ;;
45355614 ;;
45365615 *-*-rhapsody* | *-*-darwin1.[012])
45375616 # Rhapsody C and math libraries are in the System framework
4538 deplibs="$deplibs System.ltframework"
5617 func_append deplibs " System.ltframework"
45395618 continue
45405619 ;;
45415620 *-*-sco3.2v5* | *-*-sco5v6*)
45555634 ;;
45565635 esac
45575636 fi
4558 deplibs="$deplibs $arg"
5637 func_append deplibs " $arg"
45595638 continue
45605639 ;;
45615640
45675646 # Tru64 UNIX uses -model [arg] to determine the layout of C++
45685647 # classes, name mangling, and exception handling.
45695648 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
45725651 func_append compile_command " $arg"
45735652 func_append finalize_command " $arg"
45745653 prev=xcompiler
45755654 continue
45765655 ;;
45775656
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
45805660 func_append compile_command " $arg"
45815661 func_append finalize_command " $arg"
45825662 case "$new_inherited_linker_flags " in
45835663 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
45855665 esac
45865666 continue
45875667 ;;
46485728 # We need an absolute path.
46495729 case $dir in
46505730 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
46515735 *)
46525736 func_fatal_error "only absolute run-paths are allowed"
46535737 ;;
46545738 esac
46555739 case "$xrpath " in
46565740 *" $dir "*) ;;
4657 *) xrpath="$xrpath $dir" ;;
5741 *) func_append xrpath " $dir" ;;
46585742 esac
46595743 continue
46605744 ;;
47075791 for flag in $args; do
47085792 IFS="$save_ifs"
47095793 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
47125796 done
47135797 IFS="$save_ifs"
47145798 func_stripname ' ' '' "$arg"
47235807 for flag in $args; do
47245808 IFS="$save_ifs"
47255809 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
5810 func_append arg " $wl$func_quote_for_eval_result"
5811 func_append compiler_flags " $wl$func_quote_for_eval_result"
5812 func_append linker_flags " $func_quote_for_eval_result"
47295813 done
47305814 IFS="$save_ifs"
47315815 func_stripname ' ' '' "$arg"
47535837 arg="$func_quote_for_eval_result"
47545838 ;;
47555839
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
5840 # Flags to be passed through unchanged, with rationale:
5841 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5842 # -r[0-9][0-9]* specify processor for the SGI compiler
5843 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5844 # +DA*, +DD* enable 64-bit mode for the HP compiler
5845 # -q* compiler args for the IBM compiler
5846 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5847 # -F/path path to uninstalled frameworks, gcc on darwin
5848 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5849 # @file GCC response files
5850 # -tp=* Portland pgcc target processor selection
5851 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
47665853 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
47685856 func_quote_for_eval "$arg"
47695857 arg="$func_quote_for_eval_result"
47705858 func_append compile_command " $arg"
47715859 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
5860 func_append compiler_flags " $arg"
47735861 continue
47745862 ;;
47755863
47815869
47825870 *.$objext)
47835871 # A standard object.
4784 objs="$objs $arg"
5872 func_append objs " $arg"
47855873 ;;
47865874
47875875 *.lo)
48125900
48135901 if test "$prev" = dlfiles; then
48145902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4815 dlfiles="$dlfiles $pic_object"
5903 func_append dlfiles " $pic_object"
48165904 prev=
48175905 continue
48185906 else
48245912 # CHECK ME: I think I busted this. -Ossama
48255913 if test "$prev" = dlprefiles; then
48265914 # Preload the old-style object.
4827 dlprefiles="$dlprefiles $pic_object"
5915 func_append dlprefiles " $pic_object"
48285916 prev=
48295917 fi
48305918
48695957
48705958 *.$libext)
48715959 # An archive.
4872 deplibs="$deplibs $arg"
4873 old_deplibs="$old_deplibs $arg"
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
48745962 continue
48755963 ;;
48765964
48775965 *.la)
48785966 # A libtool-controlled library.
48795967
5968 func_resolve_sysroot "$arg"
48805969 if test "$prev" = dlfiles; then
48815970 # This library was specified with -dlopen.
4882 dlfiles="$dlfiles $arg"
5971 func_append dlfiles " $func_resolve_sysroot_result"
48835972 prev=
48845973 elif test "$prev" = dlprefiles; then
48855974 # The library was specified with -dlpreopen.
4886 dlprefiles="$dlprefiles $arg"
5975 func_append dlprefiles " $func_resolve_sysroot_result"
48875976 prev=
48885977 else
4889 deplibs="$deplibs $arg"
5978 func_append deplibs " $func_resolve_sysroot_result"
48905979 fi
48915980 continue
48925981 ;;
49246013
49256014 if test -n "$shlibpath_var"; then
49266015 # get the directories listed in $shlibpath_var
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
49286017 else
49296018 shlib_search_path=
49306019 fi
49336022
49346023 func_dirname "$output" "/" ""
49356024 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
49366027 # Create the object directory.
49376028 func_mkdir_p "$output_objdir"
49386029
49536044 # Find all interdependent deplibs by searching for libraries
49546045 # that are linked more than once (e.g. -la -lb -la)
49556046 for deplib in $deplibs; do
4956 if $opt_duplicate_deps ; then
6047 if $opt_preserve_dup_deps ; then
49576048 case "$libs " in
4958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
49596050 esac
49606051 fi
4961 libs="$libs $deplib"
6052 func_append libs " $deplib"
49626053 done
49636054
49646055 if test "$linkmode" = lib; then
49716062 if $opt_duplicate_compiler_generated_deps; then
49726063 for pre_post_dep in $predeps $postdeps; do
49736064 case "$pre_post_deps " in
4974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
49756066 esac
4976 pre_post_deps="$pre_post_deps $pre_post_dep"
6067 func_append pre_post_deps " $pre_post_dep"
49776068 done
49786069 fi
49796070 pre_post_deps=
50436134 for lib in $dlprefiles; do
50446135 # Ignore non-libtool-libs
50456136 dependency_libs=
6137 func_resolve_sysroot "$lib"
50466138 case $lib in
5047 *.la) func_source "$lib" ;;
6139 *.la) func_source "$func_resolve_sysroot_result" ;;
50486140 esac
50496141
50506142 # Collect preopened libtool deplibs, except any this library
50516143 # has declared as weak libs
50526144 for deplib in $dependency_libs; do
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
6145 func_basename "$deplib"
6146 deplib_base=$func_basename_result
50546147 case " $weak_libs " in
50556148 *" $deplib_base "*) ;;
5056 *) deplibs="$deplibs $deplib" ;;
6149 *) func_append deplibs " $deplib" ;;
50576150 esac
50586151 done
50596152 done
50696162 lib=
50706163 found=no
50716164 case $deplib in
5072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6165 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6166 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
50736167 if test "$linkmode,$pass" = "prog,link"; then
50746168 compile_deplibs="$deplib $compile_deplibs"
50756169 finalize_deplibs="$deplib $finalize_deplibs"
50766170 else
5077 compiler_flags="$compiler_flags $deplib"
6171 func_append compiler_flags " $deplib"
50786172 if test "$linkmode" = lib ; then
50796173 case "$new_inherited_linker_flags " in
50806174 *" $deplib "*) ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6175 * ) func_append new_inherited_linker_flags " $deplib" ;;
50826176 esac
50836177 fi
50846178 fi
51636257 if test "$linkmode" = lib ; then
51646258 case "$new_inherited_linker_flags " in
51656259 *" $deplib "*) ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6260 * ) func_append new_inherited_linker_flags " $deplib" ;;
51676261 esac
51686262 fi
51696263 fi
51766270 test "$pass" = conv && continue
51776271 newdependency_libs="$deplib $newdependency_libs"
51786272 func_stripname '-L' '' "$deplib"
5179 newlib_search_path="$newlib_search_path $func_stripname_result"
6273 func_resolve_sysroot "$func_stripname_result"
6274 func_append newlib_search_path " $func_resolve_sysroot_result"
51806275 ;;
51816276 prog)
51826277 if test "$pass" = conv; then
51906285 finalize_deplibs="$deplib $finalize_deplibs"
51916286 fi
51926287 func_stripname '-L' '' "$deplib"
5193 newlib_search_path="$newlib_search_path $func_stripname_result"
6288 func_resolve_sysroot "$func_stripname_result"
6289 func_append newlib_search_path " $func_resolve_sysroot_result"
51946290 ;;
51956291 *)
51966292 func_warning "\`-L' is ignored for archives/objects"
52016297 -R*)
52026298 if test "$pass" = link; then
52036299 func_stripname '-R' '' "$deplib"
5204 dir=$func_stripname_result
6300 func_resolve_sysroot "$func_stripname_result"
6301 dir=$func_resolve_sysroot_result
52056302 # Make sure the xrpath contains only unique directories.
52066303 case "$xrpath " in
52076304 *" $dir "*) ;;
5208 *) xrpath="$xrpath $dir" ;;
6305 *) func_append xrpath " $dir" ;;
52096306 esac
52106307 fi
52116308 deplibs="$deplib $deplibs"
52126309 continue
52136310 ;;
5214 *.la) lib="$deplib" ;;
6311 *.la)
6312 func_resolve_sysroot "$deplib"
6313 lib=$func_resolve_sysroot_result
6314 ;;
52156315 *.$libext)
52166316 if test "$pass" = conv; then
52176317 deplibs="$deplib $deplibs"
52296329 match_pattern*)
52306330 set dummy $deplibs_check_method; shift
52316331 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
6332 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
52336333 | $EGREP "$match_pattern_regex" > /dev/null; then
52346334 valid_a_lib=yes
52356335 fi
52396339 ;;
52406340 esac
52416341 if test "$valid_a_lib" != yes; then
5242 $ECHO
6342 echo
52436343 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5244 $ECHO "*** I have the capability to make that library automatically link in when"
5245 $ECHO "*** you link to this library. But I can only do this if you have a"
5246 $ECHO "*** shared version of the library, which you do not appear to have"
5247 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5248 $ECHO "*** that it is just a static archive that I should not use here."
6344 echo "*** I have the capability to make that library automatically link in when"
6345 echo "*** you link to this library. But I can only do this if you have a"
6346 echo "*** shared version of the library, which you do not appear to have"
6347 echo "*** because the file extensions .$libext of this argument makes me believe"
6348 echo "*** that it is just a static archive that I should not use here."
52496349 else
5250 $ECHO
6350 echo
52516351 $ECHO "*** Warning: Linking the shared library $output against the"
52526352 $ECHO "*** static library $deplib is not portable!"
52536353 deplibs="$deplib $deplibs"
52746374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
52756375 # If there is no dlopen support or we're linking statically,
52766376 # we need to preload.
5277 newdlprefiles="$newdlprefiles $deplib"
6377 func_append newdlprefiles " $deplib"
52786378 compile_deplibs="$deplib $compile_deplibs"
52796379 finalize_deplibs="$deplib $finalize_deplibs"
52806380 else
5281 newdlfiles="$newdlfiles $deplib"
6381 func_append newdlfiles " $deplib"
52826382 fi
52836383 fi
52846384 continue
53206420
53216421 # Convert "-framework foo" to "foo.ltframework"
53226422 if test -n "$inherited_linker_flags"; then
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
6423 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
53246424 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
53256425 case " $new_inherited_linker_flags " in
53266426 *" $tmp_inherited_linker_flag "*) ;;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6427 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
53286428 esac
53296429 done
53306430 fi
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6431 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
53326432 if test "$linkmode,$pass" = "lib,link" ||
53336433 test "$linkmode,$pass" = "prog,scan" ||
53346434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5335 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5336 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6435 test -n "$dlopen" && func_append dlfiles " $dlopen"
6436 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
53376437 fi
53386438
53396439 if test "$pass" = conv; then
53446444 func_fatal_error "cannot find name of link library for \`$lib'"
53456445 fi
53466446 # It is a libtool convenience library, so add in its objects.
5347 convenience="$convenience $ladir/$objdir/$old_library"
5348 old_convenience="$old_convenience $ladir/$objdir/$old_library"
6447 func_append convenience " $ladir/$objdir/$old_library"
6448 func_append old_convenience " $ladir/$objdir/$old_library"
53496449 tmp_libs=
53506450 for deplib in $dependency_libs; do
53516451 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
6452 if $opt_preserve_dup_deps ; then
53536453 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
53556455 esac
53566456 fi
5357 tmp_libs="$tmp_libs $deplib"
6457 func_append tmp_libs " $deplib"
53586458 done
53596459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
53606460 func_fatal_error "\`$lib' is not a convenience library"
53656465
53666466 # Get the name of the library we link against.
53676467 linklib=
5368 for l in $old_library $library_names; do
5369 linklib="$l"
5370 done
6468 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
6471 linklib=$old_library
6472 else
6473 for l in $old_library $library_names; do
6474 linklib="$l"
6475 done
6476 fi
53716477 if test -z "$linklib"; then
53726478 func_fatal_error "cannot find name of link library for \`$lib'"
53736479 fi
53846490 # statically, we need to preload. We also need to preload any
53856491 # dependent libraries so libltdl's deplib preloader doesn't
53866492 # bomb out in the load deplibs phase.
5387 dlprefiles="$dlprefiles $lib $dependency_libs"
6493 func_append dlprefiles " $lib $dependency_libs"
53886494 else
5389 newdlfiles="$newdlfiles $lib"
6495 func_append newdlfiles " $lib"
53906496 fi
53916497 continue
53926498 fi # $pass = dlopen
54086514
54096515 # Find the relevant object directory and library name.
54106516 if test "X$installed" = Xyes; then
5411 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6517 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
54126518 func_warning "library \`$lib' was moved."
54136519 dir="$ladir"
54146520 absdir="$abs_ladir"
54156521 libdir="$abs_ladir"
54166522 else
5417 dir="$libdir"
5418 absdir="$libdir"
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
54196525 fi
54206526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
54216527 else
54236529 dir="$ladir"
54246530 absdir="$abs_ladir"
54256531 # Remove this search path later
5426 notinst_path="$notinst_path $abs_ladir"
6532 func_append notinst_path " $abs_ladir"
54276533 else
54286534 dir="$ladir/$objdir"
54296535 absdir="$abs_ladir/$objdir"
54306536 # Remove this search path later
5431 notinst_path="$notinst_path $abs_ladir"
6537 func_append notinst_path " $abs_ladir"
54326538 fi
54336539 fi # $installed = yes
54346540 func_stripname 'lib' '.la' "$laname"
54396545 if test -z "$libdir" && test "$linkmode" = prog; then
54406546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
54416547 fi
5442 # Prefer using a static library (so that no silly _DYNAMIC symbols
5443 # are required to link).
5444 if test -n "$old_library"; then
5445 newdlprefiles="$newdlprefiles $dir/$old_library"
5446 # Keep a list of preopened convenience libraries to check
5447 # that they are being used correctly in the link pass.
5448 test -z "$libdir" && \
5449 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5450 # Otherwise, use the dlname, so that lt_dlopen finds it.
5451 elif test -n "$dlname"; then
5452 newdlprefiles="$newdlprefiles $dir/$dlname"
5453 else
5454 newdlprefiles="$newdlprefiles $dir/$linklib"
5455 fi
6548 case "$host" in
6549 # special handling for platforms with PE-DLLs.
6550 *cygwin* | *mingw* | *cegcc* )
6551 # Linker will automatically link against shared library if both
6552 # static and shared are present. Therefore, ensure we extract
6553 # symbols from the import library if a shared library is present
6554 # (otherwise, the dlopen module name will be incorrect). We do
6555 # this by putting the import library name into $newdlprefiles.
6556 # We recover the dlopen module name by 'saving' the la file
6557 # name in a special purpose variable, and (later) extracting the
6558 # dlname from the la file.
6559 if test -n "$dlname"; then
6560 func_tr_sh "$dir/$linklib"
6561 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6562 func_append newdlprefiles " $dir/$linklib"
6563 else
6564 func_append newdlprefiles " $dir/$old_library"
6565 # Keep a list of preopened convenience libraries to check
6566 # that they are being used correctly in the link pass.
6567 test -z "$libdir" && \
6568 func_append dlpreconveniencelibs " $dir/$old_library"
6569 fi
6570 ;;
6571 * )
6572 # Prefer using a static library (so that no silly _DYNAMIC symbols
6573 # are required to link).
6574 if test -n "$old_library"; then
6575 func_append newdlprefiles " $dir/$old_library"
6576 # Keep a list of preopened convenience libraries to check
6577 # that they are being used correctly in the link pass.
6578 test -z "$libdir" && \
6579 func_append dlpreconveniencelibs " $dir/$old_library"
6580 # Otherwise, use the dlname, so that lt_dlopen finds it.
6581 elif test -n "$dlname"; then
6582 func_append newdlprefiles " $dir/$dlname"
6583 else
6584 func_append newdlprefiles " $dir/$linklib"
6585 fi
6586 ;;
6587 esac
54566588 fi # $pass = dlpreopen
54576589
54586590 if test -z "$libdir"; then
54706602
54716603
54726604 if test "$linkmode" = prog && test "$pass" != link; then
5473 newlib_search_path="$newlib_search_path $ladir"
6605 func_append newlib_search_path " $ladir"
54746606 deplibs="$lib $deplibs"
54756607
54766608 linkalldeplibs=no
54836615 for deplib in $dependency_libs; do
54846616 case $deplib in
54856617 -L*) func_stripname '-L' '' "$deplib"
5486 newlib_search_path="$newlib_search_path $func_stripname_result"
6618 func_resolve_sysroot "$func_stripname_result"
6619 func_append newlib_search_path " $func_resolve_sysroot_result"
54876620 ;;
54886621 esac
54896622 # Need to link against all dependency_libs?
54946627 # or/and link against static libraries
54956628 newdependency_libs="$deplib $newdependency_libs"
54966629 fi
5497 if $opt_duplicate_deps ; then
6630 if $opt_preserve_dup_deps ; then
54986631 case "$tmp_libs " in
5499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6632 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
55006633 esac
55016634 fi
5502 tmp_libs="$tmp_libs $deplib"
6635 func_append tmp_libs " $deplib"
55036636 done # for deplib
55046637 continue
55056638 fi # $linkmode = prog...
55146647 # Make sure the rpath contains only unique directories.
55156648 case "$temp_rpath:" in
55166649 *"$absdir:"*) ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
6650 *) func_append temp_rpath "$absdir:" ;;
55186651 esac
55196652 fi
55206653
55266659 *)
55276660 case "$compile_rpath " in
55286661 *" $absdir "*) ;;
5529 *) compile_rpath="$compile_rpath $absdir"
6662 *) func_append compile_rpath " $absdir" ;;
55306663 esac
55316664 ;;
55326665 esac
55356668 *)
55366669 case "$finalize_rpath " in
55376670 *" $libdir "*) ;;
5538 *) finalize_rpath="$finalize_rpath $libdir"
6671 *) func_append finalize_rpath " $libdir" ;;
55396672 esac
55406673 ;;
55416674 esac
55606693 case $host in
55616694 *cygwin* | *mingw* | *cegcc*)
55626695 # No point in relinking DLLs because paths are not encoded
5563 notinst_deplibs="$notinst_deplibs $lib"
6696 func_append notinst_deplibs " $lib"
55646697 need_relink=no
55656698 ;;
55666699 *)
55676700 if test "$installed" = no; then
5568 notinst_deplibs="$notinst_deplibs $lib"
6701 func_append notinst_deplibs " $lib"
55696702 need_relink=yes
55706703 fi
55716704 ;;
55826715 fi
55836716 done
55846717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5585 $ECHO
6718 echo
55866719 if test "$linkmode" = prog; then
55876720 $ECHO "*** Warning: Linking the executable $output against the loadable module"
55886721 else
56006733 *)
56016734 case "$compile_rpath " in
56026735 *" $absdir "*) ;;
5603 *) compile_rpath="$compile_rpath $absdir"
6736 *) func_append compile_rpath " $absdir" ;;
56046737 esac
56056738 ;;
56066739 esac
56096742 *)
56106743 case "$finalize_rpath " in
56116744 *" $libdir "*) ;;
5612 *) finalize_rpath="$finalize_rpath $libdir"
6745 *) func_append finalize_rpath " $libdir" ;;
56136746 esac
56146747 ;;
56156748 esac
56636796 linklib=$newlib
56646797 fi # test -n "$old_archive_from_expsyms_cmds"
56656798
5666 if test "$linkmode" = prog || test "$mode" != relink; then
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
56676800 add_shlibpath=
56686801 add_dir=
56696802 add=
56856818 if test "X$dlopenmodule" != "X$lib"; then
56866819 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
56876820 if test -z "$old_library" ; then
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
6821 echo
6822 echo "*** And there doesn't seem to be a static archive available"
6823 echo "*** The link will probably fail, sorry"
56916824 else
56926825 add="$dir/$old_library"
56936826 fi
57146847 test "$hardcode_direct_absolute" = no; then
57156848 add="$dir/$linklib"
57166849 elif test "$hardcode_minus_L" = yes; then
5717 add_dir="-L$dir"
6850 add_dir="-L$absdir"
57186851 # Try looking first in the location we're being installed to.
57196852 if test -n "$inst_prefix_dir"; then
57206853 case $libdir in
57216854 [\\/]*)
5722 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6855 func_append add_dir " -L$inst_prefix_dir$libdir"
57236856 ;;
57246857 esac
57256858 fi
57416874 if test -n "$add_shlibpath"; then
57426875 case :$compile_shlibpath: in
57436876 *":$add_shlibpath:"*) ;;
5744 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6877 *) func_append compile_shlibpath "$add_shlibpath:" ;;
57456878 esac
57466879 fi
57476880 if test "$linkmode" = prog; then
57556888 test "$hardcode_shlibpath_var" = yes; then
57566889 case :$finalize_shlibpath: in
57576890 *":$libdir:"*) ;;
5758 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6891 *) func_append finalize_shlibpath "$libdir:" ;;
57596892 esac
57606893 fi
57616894 fi
57626895 fi
57636896
5764 if test "$linkmode" = prog || test "$mode" = relink; then
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
57656898 add_shlibpath=
57666899 add_dir=
57676900 add=
57756908 elif test "$hardcode_shlibpath_var" = yes; then
57766909 case :$finalize_shlibpath: in
57776910 *":$libdir:"*) ;;
5778 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6911 *) func_append finalize_shlibpath "$libdir:" ;;
57796912 esac
57806913 add="-l$name"
57816914 elif test "$hardcode_automatic" = yes; then
57926925 if test -n "$inst_prefix_dir"; then
57936926 case $libdir in
57946927 [\\/]*)
5795 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6928 func_append add_dir " -L$inst_prefix_dir$libdir"
57966929 ;;
57976930 esac
57986931 fi
58276960
58286961 # Just print a warning and add the library to dependency_libs so
58296962 # that the program can be linked against the static library.
5830 $ECHO
6963 echo
58316964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5832 $ECHO "*** I have the capability to make that library automatically link in when"
5833 $ECHO "*** you link to this library. But I can only do this if you have a"
5834 $ECHO "*** shared version of the library, which you do not appear to have."
6965 echo "*** I have the capability to make that library automatically link in when"
6966 echo "*** you link to this library. But I can only do this if you have a"
6967 echo "*** shared version of the library, which you do not appear to have."
58356968 if test "$module" = yes; then
5836 $ECHO "*** But as you try to build a module library, libtool will still create "
5837 $ECHO "*** a static module, that should work as long as the dlopening application"
5838 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
6969 echo "*** But as you try to build a module library, libtool will still create "
6970 echo "*** a static module, that should work as long as the dlopening application"
6971 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
58396972 if test -z "$global_symbol_pipe"; then
5840 $ECHO
5841 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5842 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5843 $ECHO "*** not find such a program. So, this module is probably useless."
5844 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
6973 echo
6974 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6976 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
58456978 fi
58466979 if test "$build_old_libs" = no; then
58476980 build_libtool_libs=module
58697002 temp_xrpath=$func_stripname_result
58707003 case " $xrpath " in
58717004 *" $temp_xrpath "*) ;;
5872 *) xrpath="$xrpath $temp_xrpath";;
7005 *) func_append xrpath " $temp_xrpath";;
58737006 esac;;
5874 *) temp_deplibs="$temp_deplibs $libdir";;
7007 *) func_append temp_deplibs " $libdir";;
58757008 esac
58767009 done
58777010 dependency_libs="$temp_deplibs"
58787011 fi
58797012
5880 newlib_search_path="$newlib_search_path $absdir"
7013 func_append newlib_search_path " $absdir"
58817014 # Link against this library
58827015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
58837016 # ... and its dependency_libs
58847017 tmp_libs=
58857018 for deplib in $dependency_libs; do
58867019 newdependency_libs="$deplib $newdependency_libs"
5887 if $opt_duplicate_deps ; then
7020 case $deplib in
7021 -L*) func_stripname '-L' '' "$deplib"
7022 func_resolve_sysroot "$func_stripname_result";;
7023 *) func_resolve_sysroot "$deplib" ;;
7024 esac
7025 if $opt_preserve_dup_deps ; then
58887026 case "$tmp_libs " in
5889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7027 *" $func_resolve_sysroot_result "*)
7028 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
58907029 esac
58917030 fi
5892 tmp_libs="$tmp_libs $deplib"
7031 func_append tmp_libs " $func_resolve_sysroot_result"
58937032 done
58947033
58957034 if test "$link_all_deplibs" != no; then
58997038 case $deplib in
59007039 -L*) path="$deplib" ;;
59017040 *.la)
7041 func_resolve_sysroot "$deplib"
7042 deplib=$func_resolve_sysroot_result
59027043 func_dirname "$deplib" "" "."
5903 dir="$func_dirname_result"
7044 dir=$func_dirname_result
59047045 # We need an absolute path.
59057046 case $dir in
59067047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
59277068 if test -z "$darwin_install_name"; then
59287069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
59297070 fi
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
59327073 path=
59337074 fi
59347075 fi
59617102 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
59627103 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
59637104 else
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7105 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
59657106 fi
59667107 fi
59677108 dependency_libs="$newdependency_libs"
59787119 for dir in $newlib_search_path; do
59797120 case "$lib_search_path " in
59807121 *" $dir "*) ;;
5981 *) lib_search_path="$lib_search_path $dir" ;;
7122 *) func_append lib_search_path " $dir" ;;
59827123 esac
59837124 done
59847125 newlib_search_path=
60367177 -L*)
60377178 case " $tmp_libs " in
60387179 *" $deplib "*) ;;
6039 *) tmp_libs="$tmp_libs $deplib" ;;
7180 *) func_append tmp_libs " $deplib" ;;
60407181 esac
60417182 ;;
6042 *) tmp_libs="$tmp_libs $deplib" ;;
7183 *) func_append tmp_libs " $deplib" ;;
60437184 esac
60447185 done
60457186 eval $var=\"$tmp_libs\"
60557196 ;;
60567197 esac
60577198 if test -n "$i" ; then
6058 tmp_libs="$tmp_libs $i"
7199 func_append tmp_libs " $i"
60597200 fi
60607201 done
60617202 dependency_libs=$tmp_libs
60967237 # Now set the variables for building old libraries.
60977238 build_libtool_libs=no
60987239 oldlibs="$output"
6099 objs="$objs$old_deplibs"
7240 func_append objs "$old_deplibs"
61007241 ;;
61017242
61027243 lib)
61297270 if test "$deplibs_check_method" != pass_all; then
61307271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
61317272 else
6132 $ECHO
7273 echo
61337274 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
61347275 $ECHO "*** objects $objs is not portable!"
6135 libobjs="$libobjs $objs"
7276 func_append libobjs " $objs"
61367277 fi
61377278 fi
61387279
61917332 # which has an extra 1 added just for fun
61927333 #
61937334 case $version_type in
7335 # correct linux to gnu/linux during the next big refactor
61947336 darwin|linux|osf|windows|none)
61957337 func_arith $number_major + $number_minor
61967338 current=$func_arith_result
61977339 age="$number_minor"
61987340 revision="$number_revision"
61997341 ;;
6200 freebsd-aout|freebsd-elf|sunos)
7342 freebsd-aout|freebsd-elf|qnx|sunos)
62017343 current="$number_major"
62027344 revision="$number_minor"
62037345 age="0"
63107452 versuffix="$major.$revision"
63117453 ;;
63127454
6313 linux)
7455 linux) # correct to gnu/linux during the next big refactor
63147456 func_arith $current - $age
63157457 major=.$func_arith_result
63167458 versuffix="$major.$age.$revision"
63337475 done
63347476
63357477 # Make executables depend on our current version.
6336 verstring="$verstring:${current}.0"
7478 func_append verstring ":${current}.0"
63377479 ;;
63387480
63397481 qnx)
64017543 fi
64027544
64037545 func_generate_dlsyms "$libname" "$libname" "yes"
6404 libobjs="$libobjs $symfileobj"
7546 func_append libobjs " $symfileobj"
64057547 test "X$libobjs" = "X " && libobjs=
64067548
6407 if test "$mode" != relink; then
7549 if test "$opt_mode" != relink; then
64087550 # Remove our outputs, but don't remove object files since they
64097551 # may have been created when compiling PIC objects.
64107552 removelist=
64207562 continue
64217563 fi
64227564 fi
6423 removelist="$removelist $p"
7565 func_append removelist " $p"
64247566 ;;
64257567 *) ;;
64267568 esac
64317573
64327574 # Now set the variables for building old libraries.
64337575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7576 func_append oldlibs " $output_objdir/$libname.$libext"
64357577
64367578 # Transform .lo files to .o files.
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
64387580 fi
64397581
64407582 # Eliminate all temporary directories.
64417583 #for path in $notinst_path; do
6442 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6443 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6444 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
7584 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
7585 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7586 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
64457587 #done
64467588
64477589 if test -n "$xrpath"; then
64487590 # If the user specified any rpath flags, then add them.
64497591 temp_xrpath=
64507592 for libdir in $xrpath; do
6451 temp_xrpath="$temp_xrpath -R$libdir"
7593 func_replace_sysroot "$libdir"
7594 func_append temp_xrpath " -R$func_replace_sysroot_result"
64527595 case "$finalize_rpath " in
64537596 *" $libdir "*) ;;
6454 *) finalize_rpath="$finalize_rpath $libdir" ;;
7597 *) func_append finalize_rpath " $libdir" ;;
64557598 esac
64567599 done
64577600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
64657608 for lib in $old_dlfiles; do
64667609 case " $dlprefiles $dlfiles " in
64677610 *" $lib "*) ;;
6468 *) dlfiles="$dlfiles $lib" ;;
7611 *) func_append dlfiles " $lib" ;;
64697612 esac
64707613 done
64717614
64757618 for lib in $old_dlprefiles; do
64767619 case "$dlprefiles " in
64777620 *" $lib "*) ;;
6478 *) dlprefiles="$dlprefiles $lib" ;;
7621 *) func_append dlprefiles " $lib" ;;
64797622 esac
64807623 done
64817624
64827625 if test "$build_libtool_libs" = yes; then
64837626 if test -n "$rpath"; then
64847627 case $host in
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
7628 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
64867629 # these systems don't actually have a c library (as such)!
64877630 ;;
64887631 *-*-rhapsody* | *-*-darwin1.[012])
64897632 # Rhapsody C library is in the System framework
6490 deplibs="$deplibs System.ltframework"
7633 func_append deplibs " System.ltframework"
64917634 ;;
64927635 *-*-netbsd*)
64937636 # Don't link with libc until the a.out ld.so is fixed.
65047647 *)
65057648 # Add libc to deplibs on all other systems if necessary.
65067649 if test "$build_libtool_need_lc" = "yes"; then
6507 deplibs="$deplibs -lc"
7650 func_append deplibs " -lc"
65087651 fi
65097652 ;;
65107653 esac
65537696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65547697 case " $predeps $postdeps " in
65557698 *" $i "*)
6556 newdeplibs="$newdeplibs $i"
7699 func_append newdeplibs " $i"
65577700 i=""
65587701 ;;
65597702 esac
65647707 set dummy $deplib_matches; shift
65657708 deplib_match=$1
65667709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6567 newdeplibs="$newdeplibs $i"
7710 func_append newdeplibs " $i"
65687711 else
65697712 droppeddeps=yes
6570 $ECHO
7713 echo
65717714 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6572 $ECHO "*** I have the capability to make that library automatically link in when"
6573 $ECHO "*** you link to this library. But I can only do this if you have a"
6574 $ECHO "*** shared version of the library, which I believe you do not have"
6575 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6576 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
7715 echo "*** I have the capability to make that library automatically link in when"
7716 echo "*** you link to this library. But I can only do this if you have a"
7717 echo "*** shared version of the library, which I believe you do not have"
7718 echo "*** because a test_compile did reveal that the linker did not use it for"
7719 echo "*** its dynamic dependency list that programs get resolved with at runtime."
65777720 fi
65787721 fi
65797722 ;;
65807723 *)
6581 newdeplibs="$newdeplibs $i"
7724 func_append newdeplibs " $i"
65827725 ;;
65837726 esac
65847727 done
65967739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65977740 case " $predeps $postdeps " in
65987741 *" $i "*)
6599 newdeplibs="$newdeplibs $i"
7742 func_append newdeplibs " $i"
66007743 i=""
66017744 ;;
66027745 esac
66077750 set dummy $deplib_matches; shift
66087751 deplib_match=$1
66097752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6610 newdeplibs="$newdeplibs $i"
7753 func_append newdeplibs " $i"
66117754 else
66127755 droppeddeps=yes
6613 $ECHO
7756 echo
66147757 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6615 $ECHO "*** I have the capability to make that library automatically link in when"
6616 $ECHO "*** you link to this library. But I can only do this if you have a"
6617 $ECHO "*** shared version of the library, which you do not appear to have"
6618 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6619 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
7758 echo "*** I have the capability to make that library automatically link in when"
7759 echo "*** you link to this library. But I can only do this if you have a"
7760 echo "*** shared version of the library, which you do not appear to have"
7761 echo "*** because a test_compile did reveal that the linker did not use this one"
7762 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
66207763 fi
66217764 fi
66227765 else
66237766 droppeddeps=yes
6624 $ECHO
7767 echo
66257768 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6626 $ECHO "*** make it link in! You will probably need to install it or some"
6627 $ECHO "*** library that it depends on before this library will be fully"
6628 $ECHO "*** functional. Installing it before continuing would be even better."
7769 echo "*** make it link in! You will probably need to install it or some"
7770 echo "*** library that it depends on before this library will be fully"
7771 echo "*** functional. Installing it before continuing would be even better."
66297772 fi
66307773 ;;
66317774 *)
6632 newdeplibs="$newdeplibs $i"
7775 func_append newdeplibs " $i"
66337776 ;;
66347777 esac
66357778 done
66467789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
66477790 case " $predeps $postdeps " in
66487791 *" $a_deplib "*)
6649 newdeplibs="$newdeplibs $a_deplib"
7792 func_append newdeplibs " $a_deplib"
66507793 a_deplib=""
66517794 ;;
66527795 esac
66537796 fi
66547797 if test -n "$a_deplib" ; then
66557798 libname=`eval "\\$ECHO \"$libname_spec\""`
7799 if test -n "$file_magic_glob"; then
7800 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7801 else
7802 libnameglob=$libname
7803 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
66567805 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7806 if test "$want_nocaseglob" = yes; then
7807 shopt -s nocaseglob
7808 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7809 $nocaseglob
7810 else
7811 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7812 fi
66587813 for potent_lib in $potential_libs; do
66597814 # Follow soft links.
66607815 if ls -lLd "$potent_lib" 2>/dev/null |
66717826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
66727827 case $potliblink in
66737828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
66757830 esac
66767831 done
66777832 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
66787833 $SED -e 10q |
66797834 $EGREP "$file_magic_regex" > /dev/null; then
6680 newdeplibs="$newdeplibs $a_deplib"
7835 func_append newdeplibs " $a_deplib"
66817836 a_deplib=""
66827837 break 2
66837838 fi
66867841 fi
66877842 if test -n "$a_deplib" ; then
66887843 droppeddeps=yes
6689 $ECHO
7844 echo
66907845 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6691 $ECHO "*** I have the capability to make that library automatically link in when"
6692 $ECHO "*** you link to this library. But I can only do this if you have a"
6693 $ECHO "*** shared version of the library, which you do not appear to have"
6694 $ECHO "*** because I did check the linker path looking for a file starting"
7846 echo "*** I have the capability to make that library automatically link in when"
7847 echo "*** you link to this library. But I can only do this if you have a"
7848 echo "*** shared version of the library, which you do not appear to have"
7849 echo "*** because I did check the linker path looking for a file starting"
66957850 if test -z "$potlib" ; then
66967851 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
66977852 else
67027857 ;;
67037858 *)
67047859 # Add a -L argument.
6705 newdeplibs="$newdeplibs $a_deplib"
7860 func_append newdeplibs " $a_deplib"
67067861 ;;
67077862 esac
67087863 done # Gone through all deplibs.
67187873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67197874 case " $predeps $postdeps " in
67207875 *" $a_deplib "*)
6721 newdeplibs="$newdeplibs $a_deplib"
7876 func_append newdeplibs " $a_deplib"
67227877 a_deplib=""
67237878 ;;
67247879 esac
67297884 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
67307885 for potent_lib in $potential_libs; do
67317886 potlib="$potent_lib" # see symlink-check above in file_magic test
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
7887 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
67337888 $EGREP "$match_pattern_regex" > /dev/null; then
6734 newdeplibs="$newdeplibs $a_deplib"
7889 func_append newdeplibs " $a_deplib"
67357890 a_deplib=""
67367891 break 2
67377892 fi
67407895 fi
67417896 if test -n "$a_deplib" ; then
67427897 droppeddeps=yes
6743 $ECHO
7898 echo
67447899 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6745 $ECHO "*** I have the capability to make that library automatically link in when"
6746 $ECHO "*** you link to this library. But I can only do this if you have a"
6747 $ECHO "*** shared version of the library, which you do not appear to have"
6748 $ECHO "*** because I did check the linker path looking for a file starting"
7900 echo "*** I have the capability to make that library automatically link in when"
7901 echo "*** you link to this library. But I can only do this if you have a"
7902 echo "*** shared version of the library, which you do not appear to have"
7903 echo "*** because I did check the linker path looking for a file starting"
67497904 if test -z "$potlib" ; then
67507905 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
67517906 else
67567911 ;;
67577912 *)
67587913 # Add a -L argument.
6759 newdeplibs="$newdeplibs $a_deplib"
7914 func_append newdeplibs " $a_deplib"
67607915 ;;
67617916 esac
67627917 done # Gone through all deplibs.
67637918 ;;
67647919 none | unknown | *)
67657920 newdeplibs=""
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
7921 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
67687922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67697923 for i in $predeps $postdeps ; do
67707924 # can't use Xsed below, because $i might contain '/'
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
67727926 done
67737927 fi
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
7928 case $tmp_deplibs in
7929 *[!\ \ ]*)
7930 echo
67777931 if test "X$deplibs_check_method" = "Xnone"; then
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
7932 echo "*** Warning: inter-library dependencies are not supported in this platform."
67797933 else
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
7934 echo "*** Warning: inter-library dependencies are not known to be supported."
67817935 fi
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
7936 echo "*** All declared inter-library dependencies are being dropped."
67837937 droppeddeps=yes
6784 fi
7938 ;;
7939 esac
67857940 ;;
67867941 esac
67877942 versuffix=$versuffix_save
67937948 case $host in
67947949 *-*-rhapsody* | *-*-darwin1.[012])
67957950 # On Rhapsody replace the C library with the System framework
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7951 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
67977952 ;;
67987953 esac
67997954
68007955 if test "$droppeddeps" = yes; then
68017956 if test "$module" = yes; then
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
7957 echo
7958 echo "*** Warning: libtool could not satisfy all declared inter-library"
68047959 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
7960 echo "*** a static module, that should work as long as the dlopening"
7961 echo "*** application is linked with the -dlopen flag."
68077962 if test -z "$global_symbol_pipe"; then
6808 $ECHO
6809 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6810 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6811 $ECHO "*** not find such a program. So, this module is probably useless."
6812 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
7963 echo
7964 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7966 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
68137968 fi
68147969 if test "$build_old_libs" = no; then
68157970 oldlibs="$output_objdir/$libname.$libext"
68197974 build_libtool_libs=no
68207975 fi
68217976 else
6822 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6823 $ECHO "*** automatically added whenever a program is linked with this library"
6824 $ECHO "*** or is declared to -dlopen it."
7977 echo "*** The inter-library dependencies that have been dropped here will be"
7978 echo "*** automatically added whenever a program is linked with this library"
7979 echo "*** or is declared to -dlopen it."
68257980
68267981 if test "$allow_undefined" = no; then
6827 $ECHO
6828 $ECHO "*** Since this library must not contain undefined symbols,"
6829 $ECHO "*** because either the platform does not support them or"
6830 $ECHO "*** it was explicitly requested with -no-undefined,"
6831 $ECHO "*** libtool will only create a static version of it."
7982 echo
7983 echo "*** Since this library must not contain undefined symbols,"
7984 echo "*** because either the platform does not support them or"
7985 echo "*** it was explicitly requested with -no-undefined,"
7986 echo "*** libtool will only create a static version of it."
68327987 if test "$build_old_libs" = no; then
68337988 oldlibs="$output_objdir/$libname.$libext"
68347989 build_libtool_libs=module
68458000 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
68468001 case $host in
68478002 *-*-darwin*)
6848 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6849 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6850 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8003 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8004 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8005 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
68518006 ;;
68528007 esac
68538008
68608015 *)
68618016 case " $deplibs " in
68628017 *" -L$path/$objdir "*)
6863 new_libs="$new_libs -L$path/$objdir" ;;
8018 func_append new_libs " -L$path/$objdir" ;;
68648019 esac
68658020 ;;
68668021 esac
68708025 -L*)
68718026 case " $new_libs " in
68728027 *" $deplib "*) ;;
6873 *) new_libs="$new_libs $deplib" ;;
8028 *) func_append new_libs " $deplib" ;;
68748029 esac
68758030 ;;
6876 *) new_libs="$new_libs $deplib" ;;
8031 *) func_append new_libs " $deplib" ;;
68778032 esac
68788033 done
68798034 deplibs="$new_libs"
68858040
68868041 # Test again, we may have decided not to build it any more
68878042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
8044 # FIXME: should test the right _cmds variable.
8045 case $archive_cmds in
8046 *\$LD\ *) wl= ;;
8047 esac
68888048 if test "$hardcode_into_libs" = yes; then
68898049 # Hardcode the library paths
68908050 hardcode_libdirs=
68918051 dep_rpath=
68928052 rpath="$finalize_rpath"
6893 test "$mode" != relink && rpath="$compile_rpath$rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
68948054 for libdir in $rpath; do
68958055 if test -n "$hardcode_libdir_flag_spec"; then
68968056 if test -n "$hardcode_libdir_separator"; then
8057 func_replace_sysroot "$libdir"
8058 libdir=$func_replace_sysroot_result
68978059 if test -z "$hardcode_libdirs"; then
68988060 hardcode_libdirs="$libdir"
68998061 else
69028064 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
69038065 ;;
69048066 *)
6905 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8067 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
69068068 ;;
69078069 esac
69088070 fi
69098071 else
69108072 eval flag=\"$hardcode_libdir_flag_spec\"
6911 dep_rpath="$dep_rpath $flag"
8073 func_append dep_rpath " $flag"
69128074 fi
69138075 elif test -n "$runpath_var"; then
69148076 case "$perm_rpath " in
69158077 *" $libdir "*) ;;
6916 *) perm_rpath="$perm_rpath $libdir" ;;
8078 *) func_append perm_rpath " $libdir" ;;
69178079 esac
69188080 fi
69198081 done
69218083 if test -n "$hardcode_libdir_separator" &&
69228084 test -n "$hardcode_libdirs"; then
69238085 libdir="$hardcode_libdirs"
6924 if test -n "$hardcode_libdir_flag_spec_ld"; then
6925 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6926 else
6927 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6928 fi
8086 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
69298087 fi
69308088 if test -n "$runpath_var" && test -n "$perm_rpath"; then
69318089 # We should set the runpath_var.
69328090 rpath=
69338091 for dir in $perm_rpath; do
6934 rpath="$rpath$dir:"
8092 func_append rpath "$dir:"
69358093 done
69368094 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
69378095 fi
69398097 fi
69408098
69418099 shlibpath="$finalize_shlibpath"
6942 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
69438101 if test -n "$shlibpath"; then
69448102 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
69458103 fi
69658123 linknames=
69668124 for link
69678125 do
6968 linknames="$linknames $link"
8126 func_append linknames " $link"
69698127 done
69708128
69718129 # Use standard objects if they are pic
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8130 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
69738131 test "X$libobjs" = "X " && libobjs=
69748132
69758133 delfiles=
69768134 if test -n "$export_symbols" && test -n "$include_expsyms"; then
69778135 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
69788136 export_symbols="$output_objdir/$libname.uexp"
6979 delfiles="$delfiles $export_symbols"
8137 func_append delfiles " $export_symbols"
69808138 fi
69818139
69828140 orig_export_symbols=
70078165 $opt_dry_run || $RM $export_symbols
70088166 cmds=$export_symbols_cmds
70098167 save_ifs="$IFS"; IFS='~'
7010 for cmd in $cmds; do
8168 for cmd1 in $cmds; do
70118169 IFS="$save_ifs"
7012 eval cmd=\"$cmd\"
7013 func_len " $cmd"
7014 len=$func_len_result
7015 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8170 # Take the normal branch if the nm_file_list_spec branch
8171 # doesn't work or if tool conversion is not needed.
8172 case $nm_file_list_spec~$to_tool_file_cmd in
8173 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8174 try_normal_branch=yes
8175 eval cmd=\"$cmd1\"
8176 func_len " $cmd"
8177 len=$func_len_result
8178 ;;
8179 *)
8180 try_normal_branch=no
8181 ;;
8182 esac
8183 if test "$try_normal_branch" = yes \
8184 && { test "$len" -lt "$max_cmd_len" \
8185 || test "$max_cmd_len" -le -1; }
8186 then
70168187 func_show_eval "$cmd" 'exit $?'
8188 skipped_export=false
8189 elif test -n "$nm_file_list_spec"; then
8190 func_basename "$output"
8191 output_la=$func_basename_result
8192 save_libobjs=$libobjs
8193 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
8195 func_to_tool_file "$output"
8196 libobjs=$nm_file_list_spec$func_to_tool_file_result
8197 func_append delfiles " $output"
8198 func_verbose "creating $NM input file list: $output"
8199 for obj in $save_libobjs; do
8200 func_to_tool_file "$obj"
8201 $ECHO "$func_to_tool_file_result"
8202 done > "$output"
8203 eval cmd=\"$cmd1\"
8204 func_show_eval "$cmd" 'exit $?'
8205 output=$save_output
8206 libobjs=$save_libobjs
70178207 skipped_export=false
70188208 else
70198209 # The command line is too long to execute in one step.
70358225 if test -n "$export_symbols" && test -n "$include_expsyms"; then
70368226 tmp_export_symbols="$export_symbols"
70378227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8228 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
70398229 fi
70408230
70418231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
70478237 # global variables. join(1) would be nice here, but unfortunately
70488238 # isn't a blessed tool.
70498239 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8240 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
70518241 export_symbols=$output_objdir/$libname.def
70528242 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
70538243 fi
70578247 case " $convenience " in
70588248 *" $test_deplib "*) ;;
70598249 *)
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
8250 func_append tmp_deplibs " $test_deplib"
70618251 ;;
70628252 esac
70638253 done
70778267 test "X$libobjs" = "X " && libobjs=
70788268 else
70798269 gentop="$output_objdir/${outputname}x"
7080 generated="$generated $gentop"
8270 func_append generated " $gentop"
70818271
70828272 func_extract_archives $gentop $convenience
7083 libobjs="$libobjs $func_extract_archives_result"
8273 func_append libobjs " $func_extract_archives_result"
70848274 test "X$libobjs" = "X " && libobjs=
70858275 fi
70868276 fi
70878277
70888278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
70898279 eval flag=\"$thread_safe_flag_spec\"
7090 linker_flags="$linker_flags $flag"
8280 func_append linker_flags " $flag"
70918281 fi
70928282
70938283 # Make a backup of the uninstalled library when relinking
7094 if test "$mode" = relink; then
8284 if test "$opt_mode" = relink; then
70958285 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
70968286 fi
70978287
71368326 save_libobjs=$libobjs
71378327 fi
71388328 save_output=$output
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
8329 func_basename "$output"
8330 output_la=$func_basename_result
71408331
71418332 # Clear the reloadable object creation command queue and
71428333 # initialize k to one.
71498340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
71508341 output=${output_objdir}/${output_la}.lnkscript
71518342 func_verbose "creating GNU ld script: $output"
7152 $ECHO 'INPUT (' > $output
8343 echo 'INPUT (' > $output
71538344 for obj in $save_libobjs
71548345 do
7155 $ECHO "$obj" >> $output
8346 func_to_tool_file "$obj"
8347 $ECHO "$func_to_tool_file_result" >> $output
71568348 done
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
8349 echo ')' >> $output
8350 func_append delfiles " $output"
8351 func_to_tool_file "$output"
8352 output=$func_to_tool_file_result
71598353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
71608354 output=${output_objdir}/${output_la}.lnk
71618355 func_verbose "creating linker input file list: $output"
71698363 fi
71708364 for obj
71718365 do
7172 $ECHO "$obj" >> $output
8366 func_to_tool_file "$obj"
8367 $ECHO "$func_to_tool_file_result" >> $output
71738368 done
7174 delfiles="$delfiles $output"
7175 output=$firstobj\"$file_list_spec$output\"
8369 func_append delfiles " $output"
8370 func_to_tool_file "$output"
8371 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
71768372 else
71778373 if test -n "$save_libobjs"; then
71788374 func_verbose "creating reloadable object files..."
71968392 # command to the queue.
71978393 if test "$k" -eq 1 ; then
71988394 # The first file doesn't have a previous command to add.
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
8395 reload_objs=$objlist
8396 eval concat_cmds=\"$reload_cmds\"
72008397 else
72018398 # All subsequent reloadable object files will link in
72028399 # the last one created.
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
8400 reload_objs="$objlist $last_robj"
8401 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
72048402 fi
72058403 last_robj=$output_objdir/$output_la-${k}.$objext
72068404 func_arith $k + 1
72078405 k=$func_arith_result
72088406 output=$output_objdir/$output_la-${k}.$objext
7209 objlist=$obj
8407 objlist=" $obj"
72108408 func_len " $last_robj"
72118409 func_arith $len0 + $func_len_result
72128410 len=$func_arith_result
72168414 # reloadable object file. All subsequent reloadable object
72178415 # files will link in the last one created.
72188416 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
8417 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
72208419 if test -n "$last_robj"; then
72218420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
72228421 fi
7223 delfiles="$delfiles $output"
8422 func_append delfiles " $output"
72248423
72258424 else
72268425 output=
72548453 lt_exit=$?
72558454
72568455 # Restore the uninstalled library and exit
7257 if test "$mode" = relink; then
8456 if test "$opt_mode" = relink; then
72588457 ( cd "$output_objdir" && \
72598458 $RM "${realname}T" && \
72608459 $MV "${realname}U" "$realname" )
72758474 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72768475 tmp_export_symbols="$export_symbols"
72778476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8477 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
72798478 fi
72808479
72818480 if test -n "$orig_export_symbols"; then
72878486 # global variables. join(1) would be nice here, but unfortunately
72888487 # isn't a blessed tool.
72898488 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8489 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
72918490 export_symbols=$output_objdir/$libname.def
72928491 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
72938492 fi
73288527 # Add any objects from preloaded convenience libraries
73298528 if test -n "$dlprefiles"; then
73308529 gentop="$output_objdir/${outputname}x"
7331 generated="$generated $gentop"
8530 func_append generated " $gentop"
73328531
73338532 func_extract_archives $gentop $dlprefiles
7334 libobjs="$libobjs $func_extract_archives_result"
8533 func_append libobjs " $func_extract_archives_result"
73358534 test "X$libobjs" = "X " && libobjs=
73368535 fi
73378536
73478546 lt_exit=$?
73488547
73498548 # Restore the uninstalled library and exit
7350 if test "$mode" = relink; then
8549 if test "$opt_mode" = relink; then
73518550 ( cd "$output_objdir" && \
73528551 $RM "${realname}T" && \
73538552 $MV "${realname}U" "$realname" )
73598558 IFS="$save_ifs"
73608559
73618560 # Restore the uninstalled library and exit
7362 if test "$mode" = relink; then
8561 if test "$opt_mode" = relink; then
73638562 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
73648563
73658564 if test -n "$convenience"; then
74408639 if test -n "$convenience"; then
74418640 if test -n "$whole_archive_flag_spec"; then
74428641 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
74448643 else
74458644 gentop="$output_objdir/${obj}x"
7446 generated="$generated $gentop"
8645 func_append generated " $gentop"
74478646
74488647 func_extract_archives $gentop $convenience
74498648 reload_conv_objs="$reload_objs $func_extract_archives_result"
74508649 fi
74518650 fi
74528651
8652 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
8654
74538655 # Create the old-style object.
7454 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
74558657
74568658 output="$obj"
74578659 func_execute_cmds "$reload_cmds" 'exit $?'
75118713 case $host in
75128714 *-*-rhapsody* | *-*-darwin1.[012])
75138715 # On Rhapsody replace the C library is the System framework
7514 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7515 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
8716 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8717 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
75168718 ;;
75178719 esac
75188720
75238725 if test "$tagname" = CXX ; then
75248726 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
75258727 10.[0123])
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 finalize_command="$finalize_command ${wl}-bind_at_load"
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
75288730 ;;
75298731 esac
75308732 fi
75318733 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7532 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7533 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8734 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8735 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
75348736 ;;
75358737 esac
75368738
75448746 *)
75458747 case " $compile_deplibs " in
75468748 *" -L$path/$objdir "*)
7547 new_libs="$new_libs -L$path/$objdir" ;;
8749 func_append new_libs " -L$path/$objdir" ;;
75488750 esac
75498751 ;;
75508752 esac
75548756 -L*)
75558757 case " $new_libs " in
75568758 *" $deplib "*) ;;
7557 *) new_libs="$new_libs $deplib" ;;
8759 *) func_append new_libs " $deplib" ;;
75588760 esac
75598761 ;;
7560 *) new_libs="$new_libs $deplib" ;;
8762 *) func_append new_libs " $deplib" ;;
75618763 esac
75628764 done
75638765 compile_deplibs="$new_libs"
75648766
75658767
7566 compile_command="$compile_command $compile_deplibs"
7567 finalize_command="$finalize_command $finalize_deplibs"
8768 func_append compile_command " $compile_deplibs"
8769 func_append finalize_command " $finalize_deplibs"
75688770
75698771 if test -n "$rpath$xrpath"; then
75708772 # If the user specified any rpath flags, then add them.
75728774 # This is the magic to use -rpath.
75738775 case "$finalize_rpath " in
75748776 *" $libdir "*) ;;
7575 *) finalize_rpath="$finalize_rpath $libdir" ;;
8777 *) func_append finalize_rpath " $libdir" ;;
75768778 esac
75778779 done
75788780 fi
75918793 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
75928794 ;;
75938795 *)
7594 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8796 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
75958797 ;;
75968798 esac
75978799 fi
75988800 else
75998801 eval flag=\"$hardcode_libdir_flag_spec\"
7600 rpath="$rpath $flag"
8802 func_append rpath " $flag"
76018803 fi
76028804 elif test -n "$runpath_var"; then
76038805 case "$perm_rpath " in
76048806 *" $libdir "*) ;;
7605 *) perm_rpath="$perm_rpath $libdir" ;;
8807 *) func_append perm_rpath " $libdir" ;;
76068808 esac
76078809 fi
76088810 case $host in
76118813 case :$dllsearchpath: in
76128814 *":$libdir:"*) ;;
76138815 ::) dllsearchpath=$libdir;;
7614 *) dllsearchpath="$dllsearchpath:$libdir";;
8816 *) func_append dllsearchpath ":$libdir";;
76158817 esac
76168818 case :$dllsearchpath: in
76178819 *":$testbindir:"*) ;;
76188820 ::) dllsearchpath=$testbindir;;
7619 *) dllsearchpath="$dllsearchpath:$testbindir";;
8821 *) func_append dllsearchpath ":$testbindir";;
76208822 esac
76218823 ;;
76228824 esac
76428844 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
76438845 ;;
76448846 *)
7645 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8847 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
76468848 ;;
76478849 esac
76488850 fi
76498851 else
76508852 eval flag=\"$hardcode_libdir_flag_spec\"
7651 rpath="$rpath $flag"
8853 func_append rpath " $flag"
76528854 fi
76538855 elif test -n "$runpath_var"; then
76548856 case "$finalize_perm_rpath " in
76558857 *" $libdir "*) ;;
7656 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8858 *) func_append finalize_perm_rpath " $libdir" ;;
76578859 esac
76588860 fi
76598861 done
76678869
76688870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
76698871 # Transform all the library objects into standard objects.
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8872 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8873 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
76728874 fi
76738875
76748876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
76808882
76818883 wrappers_required=yes
76828884 case $host in
8885 *cegcc* | *mingw32ce*)
8886 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
8888 ;;
76838889 *cygwin* | *mingw* )
76848890 if test "$build_libtool_libs" != yes; then
76858891 wrappers_required=no
76868892 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
76918893 ;;
76928894 *)
76938895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
76978899 esac
76988900 if test "$wrappers_required" = no; then
76998901 # Replace the output file specification.
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8902 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77018903 link_command="$compile_command$compile_rpath"
77028904
77038905 # We have no uninstalled library dependencies, so finalize right now.
77048906 exit_status=0
77058907 func_show_eval "$link_command" 'exit_status=$?'
8908
8909 if test -n "$postlink_cmds"; then
8910 func_to_tool_file "$output"
8911 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8912 func_execute_cmds "$postlink_cmds" 'exit $?'
8913 fi
77068914
77078915 # Delete the generated files.
77088916 if test -f "$output_objdir/${outputname}S.${objext}"; then
77268934 # We should set the runpath_var.
77278935 rpath=
77288936 for dir in $perm_rpath; do
7729 rpath="$rpath$dir:"
8937 func_append rpath "$dir:"
77308938 done
77318939 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
77328940 fi
77348942 # We should set the runpath_var.
77358943 rpath=
77368944 for dir in $finalize_perm_rpath; do
7737 rpath="$rpath$dir:"
8945 func_append rpath "$dir:"
77388946 done
77398947 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
77408948 fi
77448952 # We don't need to create a wrapper script.
77458953 link_command="$compile_var$compile_command$compile_rpath"
77468954 # Replace the output file specification.
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8955 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77488956 # Delete the old output file.
77498957 $opt_dry_run || $RM $output
77508958 # Link the executable and exit
77518959 func_show_eval "$link_command" 'exit $?'
8960
8961 if test -n "$postlink_cmds"; then
8962 func_to_tool_file "$output"
8963 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8964 func_execute_cmds "$postlink_cmds" 'exit $?'
8965 fi
8966
77528967 exit $EXIT_SUCCESS
77538968 fi
77548969
77638978 if test "$fast_install" != no; then
77648979 link_command="$finalize_var$compile_command$finalize_rpath"
77658980 if test "$fast_install" = yes; then
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
77678982 else
77688983 # fast_install is set to needless
77698984 relink_command=
77758990 fi
77768991
77778992 # Replace the output file specification.
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8993 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
77798994
77808995 # Delete the old output files.
77818996 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
77828997
77838998 func_show_eval "$link_command" 'exit $?'
8999
9000 if test -n "$postlink_cmds"; then
9001 func_to_tool_file "$output_objdir/$outputname"
9002 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
9003 func_execute_cmds "$postlink_cmds" 'exit $?'
9004 fi
77849005
77859006 # Now create the wrapper script.
77869007 func_verbose "creating $output"
77999020 fi
78009021 done
78019022 relink_command="(cd `pwd`; $relink_command)"
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7803 fi
7804
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7807 case $progpath in
7808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7810 esac
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7812 else
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
9023 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
78149024 fi
78159025
78169026 # Only actually do things if not in dry run mode.
78909100 else
78919101 oldobjs="$old_deplibs $non_pic_objects"
78929102 if test "$preload" = yes && test -f "$symfileobj"; then
7893 oldobjs="$oldobjs $symfileobj"
9103 func_append oldobjs " $symfileobj"
78949104 fi
78959105 fi
78969106 addlibs="$old_convenience"
78989108
78999109 if test -n "$addlibs"; then
79009110 gentop="$output_objdir/${outputname}x"
7901 generated="$generated $gentop"
9111 func_append generated " $gentop"
79029112
79039113 func_extract_archives $gentop $addlibs
7904 oldobjs="$oldobjs $func_extract_archives_result"
9114 func_append oldobjs " $func_extract_archives_result"
79059115 fi
79069116
79079117 # Do each command in the archive commands.
79129122 # Add any objects from preloaded convenience libraries
79139123 if test -n "$dlprefiles"; then
79149124 gentop="$output_objdir/${outputname}x"
7915 generated="$generated $gentop"
9125 func_append generated " $gentop"
79169126
79179127 func_extract_archives $gentop $dlprefiles
7918 oldobjs="$oldobjs $func_extract_archives_result"
9128 func_append oldobjs " $func_extract_archives_result"
79199129 fi
79209130
79219131 # POSIX demands no paths to be encoded in archives. We have
79319141 done | sort | sort -uc >/dev/null 2>&1); then
79329142 :
79339143 else
7934 $ECHO "copying selected object files to avoid basename conflicts..."
9144 echo "copying selected object files to avoid basename conflicts..."
79359145 gentop="$output_objdir/${outputname}x"
7936 generated="$generated $gentop"
9146 func_append generated " $gentop"
79379147 func_mkdir_p "$gentop"
79389148 save_oldobjs=$oldobjs
79399149 oldobjs=
79579167 esac
79589168 done
79599169 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7960 oldobjs="$oldobjs $gentop/$newobj"
9170 func_append oldobjs " $gentop/$newobj"
79619171 ;;
7962 *) oldobjs="$oldobjs $obj" ;;
9172 *) func_append oldobjs " $obj" ;;
79639173 esac
79649174 done
79659175 fi
9176 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9177 tool_oldlib=$func_to_tool_file_result
79669178 eval cmds=\"$old_archive_cmds\"
79679179
79689180 func_len " $cmds"
79699181 len=$func_len_result
79709182 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9183 cmds=$old_archive_cmds
9184 elif test -n "$archiver_list_spec"; then
9185 func_verbose "using command file archive linking..."
9186 for obj in $oldobjs
9187 do
9188 func_to_tool_file "$obj"
9189 $ECHO "$func_to_tool_file_result"
9190 done > $output_objdir/$libname.libcmd
9191 func_to_tool_file "$output_objdir/$libname.libcmd"
9192 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
79719193 cmds=$old_archive_cmds
79729194 else
79739195 # the command line is too long to link in one step, link in parts
80429264 done
80439265 # Quote the link command for shipping.
80449266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9267 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
80469268 if test "$hardcode_automatic" = yes ; then
80479269 relink_command=
80489270 fi
80629284 *.la)
80639285 func_basename "$deplib"
80649286 name="$func_basename_result"
8065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9287 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
80669289 test -z "$libdir" && \
80679290 func_fatal_error "\`$deplib' is not a valid libtool archive"
8068 newdependency_libs="$newdependency_libs $libdir/$name"
9291 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
80699292 ;;
8070 *) newdependency_libs="$newdependency_libs $deplib" ;;
9293 -L*)
9294 func_stripname -L '' "$deplib"
9295 func_replace_sysroot "$func_stripname_result"
9296 func_append newdependency_libs " -L$func_replace_sysroot_result"
9297 ;;
9298 -R*)
9299 func_stripname -R '' "$deplib"
9300 func_replace_sysroot "$func_stripname_result"
9301 func_append newdependency_libs " -R$func_replace_sysroot_result"
9302 ;;
9303 *) func_append newdependency_libs " $deplib" ;;
80719304 esac
80729305 done
80739306 dependency_libs="$newdependency_libs"
80819314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
80829315 test -z "$libdir" && \
80839316 func_fatal_error "\`$lib' is not a valid libtool archive"
8084 newdlfiles="$newdlfiles $libdir/$name"
9317 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
80859318 ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
9319 *) func_append newdlfiles " $lib" ;;
80879320 esac
80889321 done
80899322 dlfiles="$newdlfiles"
81009333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
81019334 test -z "$libdir" && \
81029335 func_fatal_error "\`$lib' is not a valid libtool archive"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
9336 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
81049337 ;;
81059338 esac
81069339 done
81129345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81139346 *) abs=`pwd`"/$lib" ;;
81149347 esac
8115 newdlfiles="$newdlfiles $abs"
9348 func_append newdlfiles " $abs"
81169349 done
81179350 dlfiles="$newdlfiles"
81189351 newdlprefiles=
81219354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81229355 *) abs=`pwd`"/$lib" ;;
81239356 esac
8124 newdlprefiles="$newdlprefiles $abs"
9357 func_append newdlprefiles " $abs"
81259358 done
81269359 dlprefiles="$newdlprefiles"
81279360 fi
81289361 $RM $output
81299362 # place dlname in correct position for cygwin
9363 # In fact, it would be nice if we could use this code for all target
9364 # systems that can't hard-code library paths into their executables
9365 # and that have no shared library path variable independent of PATH,
9366 # but it turns out we can't easily determine that from inspecting
9367 # libtool variables, so we have to hard-code the OSs to which it
9368 # applies here; at the moment, that means platforms that use the PE
9369 # object format with DLL files. See the long comment at the top of
9370 # tests/bindir.at for full details.
81309371 tdlname=$dlname
81319372 case $host,$output,$installed,$module,$dlname in
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
9373 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9374 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
9377 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
9379 else
9380 # Otherwise fall back on heuristic.
9381 tdlname=../bin/$dlname
9382 fi
9383 ;;
81339384 esac
81349385 $ECHO > $output "\
81359386 # $outputname - a libtool library file
81889439 exit $EXIT_SUCCESS
81899440 }
81909441
8191 { test "$mode" = link || test "$mode" = relink; } &&
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
81929443 func_mode_link ${1+"$@"}
81939444
81949445
82089459 for arg
82099460 do
82109461 case $arg in
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
8213 *) files="$files $arg" ;;
9462 -f) func_append RM " $arg"; rmforce=yes ;;
9463 -*) func_append RM " $arg" ;;
9464 *) func_append files " $arg" ;;
82149465 esac
82159466 done
82169467
82199470
82209471 rmdirs=
82219472
8222 origobjdir="$objdir"
82239473 for file in $files; do
82249474 func_dirname "$file" "" "."
82259475 dir="$func_dirname_result"
82269476 if test "X$dir" = X.; then
8227 objdir="$origobjdir"
9477 odir="$objdir"
82289478 else
8229 objdir="$dir/$origobjdir"
9479 odir="$dir/$objdir"
82309480 fi
82319481 func_basename "$file"
82329482 name="$func_basename_result"
8233 test "$mode" = uninstall && objdir="$dir"
8234
8235 # Remember objdir for removal later, being careful to avoid duplicates
8236 if test "$mode" = clean; then
9483 test "$opt_mode" = uninstall && odir="$dir"
9484
9485 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
82379487 case " $rmdirs " in
8238 *" $objdir "*) ;;
8239 *) rmdirs="$rmdirs $objdir" ;;
9488 *" $odir "*) ;;
9489 *) func_append rmdirs " $odir" ;;
82409490 esac
82419491 fi
82429492
82629512
82639513 # Delete the libtool libraries and symlinks.
82649514 for n in $library_names; do
8265 rmfiles="$rmfiles $objdir/$n"
9515 func_append rmfiles " $odir/$n"
82669516 done
8267 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8268
8269 case "$mode" in
9517 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9518
9519 case "$opt_mode" in
82709520 clean)
8271 case " $library_names " in
8272 # " " in the beginning catches empty $dlname
9521 case " $library_names " in
82739522 *" $dlname "*) ;;
8274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9523 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
82759524 esac
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9525 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
82779526 ;;
82789527 uninstall)
82799528 if test -n "$library_names"; then
83019550 # Add PIC object to the list of files to remove.
83029551 if test -n "$pic_object" &&
83039552 test "$pic_object" != none; then
8304 rmfiles="$rmfiles $dir/$pic_object"
9553 func_append rmfiles " $dir/$pic_object"
83059554 fi
83069555
83079556 # Add non-PIC object to the list of files to remove.
83089557 if test -n "$non_pic_object" &&
83099558 test "$non_pic_object" != none; then
8310 rmfiles="$rmfiles $dir/$non_pic_object"
9559 func_append rmfiles " $dir/$non_pic_object"
83119560 fi
83129561 fi
83139562 ;;
83149563
83159564 *)
8316 if test "$mode" = clean ; then
9565 if test "$opt_mode" = clean ; then
83179566 noexename=$name
83189567 case $file in
83199568 *.exe)
83239572 noexename=$func_stripname_result
83249573 # $file with .exe has already been added to rmfiles,
83259574 # add $file without .exe
8326 rmfiles="$rmfiles $file"
9575 func_append rmfiles " $file"
83279576 ;;
83289577 esac
83299578 # Do a test to see if this is a libtool program.
83329581 func_ltwrapper_scriptname "$file"
83339582 relink_command=
83349583 func_source $func_ltwrapper_scriptname_result
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9584 func_append rmfiles " $func_ltwrapper_scriptname_result"
83369585 else
83379586 relink_command=
83389587 func_source $dir/$noexename
83409589
83419590 # note $name still contains .exe if it was in $file originally
83429591 # as does the version of $file that was added into $rmfiles
8343 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
83449593 if test "$fast_install" = yes && test -n "$relink_command"; then
8345 rmfiles="$rmfiles $objdir/lt-$name"
9594 func_append rmfiles " $odir/lt-$name"
83469595 fi
83479596 if test "X$noexename" != "X$name" ; then
8348 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9597 func_append rmfiles " $odir/lt-${noexename}.c"
83499598 fi
83509599 fi
83519600 fi
83539602 esac
83549603 func_show_eval "$RM $rmfiles" 'exit_status=1'
83559604 done
8356 objdir="$origobjdir"
83579605
83589606 # Try to remove the ${objdir}s in the directories where we deleted files
83599607 for dir in $rmdirs; do
83659613 exit $exit_status
83669614 }
83679615
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
83699617 func_mode_uninstall ${1+"$@"}
83709618
8371 test -z "$mode" && {
9619 test -z "$opt_mode" && {
83729620 help="$generic_help"
83739621 func_fatal_help "you must specify a MODE"
83749622 }
83759623
83769624 test -z "$exec_cmd" && \
8377 func_fatal_help "invalid operation mode \`$mode'"
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
83789626
83799627 if test -n "$exec_cmd"; then
83809628 eval exec "$exec_cmd"
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1761 pkgdatadir = $(datadir)/@PACKAGE@
1862 pkgincludedir = $(includedir)/@PACKAGE@
1963 pkglibdir = $(libdir)/@PACKAGE@
3377 build_triplet = @build@
3478 host_triplet = @host@
3579 subdir = man
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
3781 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3882 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
3983 $(top_srcdir)/configure.ac
4387 CONFIG_HEADER = $(top_builddir)/geo_config.h
4488 CONFIG_CLEAN_FILES =
4589 CONFIG_CLEAN_VPATH_FILES =
90 AM_V_P = $(am__v_P_@AM_V@)
91 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
92 am__v_P_0 = false
93 am__v_P_1 = :
94 AM_V_GEN = $(am__v_GEN_@AM_V@)
95 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
96 am__v_GEN_0 = @echo " GEN " $@;
97 am__v_GEN_1 =
98 AM_V_at = $(am__v_at_@AM_V@)
99 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
100 am__v_at_0 = @
101 am__v_at_1 =
46102 SOURCES =
47103 DIST_SOURCES =
48 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
49 html-recursive info-recursive install-data-recursive \
50 install-dvi-recursive install-exec-recursive \
51 install-html-recursive install-info-recursive \
52 install-pdf-recursive install-ps-recursive install-recursive \
53 installcheck-recursive installdirs-recursive pdf-recursive \
54 ps-recursive uninstall-recursive
104 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
105 ctags-recursive dvi-recursive html-recursive info-recursive \
106 install-data-recursive install-dvi-recursive \
107 install-exec-recursive install-html-recursive \
108 install-info-recursive install-pdf-recursive \
109 install-ps-recursive install-recursive installcheck-recursive \
110 installdirs-recursive pdf-recursive ps-recursive \
111 tags-recursive uninstall-recursive
112 am__can_run_installinfo = \
113 case $$AM_UPDATE_INFO_DIR in \
114 n|no|NO) false;; \
115 *) (install-info --version) >/dev/null 2>&1;; \
116 esac
55117 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
56118 distclean-recursive maintainer-clean-recursive
57 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
58 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
119 am__recursive_targets = \
120 $(RECURSIVE_TARGETS) \
121 $(RECURSIVE_CLEAN_TARGETS) \
122 $(am__extra_recursive_targets)
123 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
59124 distdir
125 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
126 # Read a list of newline-separated strings from the standard input,
127 # and print each of them once, without duplicates. Input order is
128 # *not* preserved.
129 am__uniquify_input = $(AWK) '\
130 BEGIN { nonempty = 0; } \
131 { items[$$0] = 1; nonempty = 1; } \
132 END { if (nonempty) { for (i in items) print i; }; } \
133 '
134 # Make sure the list of sources is unique. This is necessary because,
135 # e.g., the same source file might be shared among _SOURCES variables
136 # for different programs/libraries.
137 am__define_uniq_tagged_files = \
138 list='$(am__tagged_files)'; \
139 unique=`for i in $$list; do \
140 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
141 done | $(am__uniquify_input)`
60142 ETAGS = etags
61143 CTAGS = ctags
62144 DIST_SUBDIRS = $(SUBDIRS)
88170 reldir="$$dir2"
89171 ACLOCAL = @ACLOCAL@
90172 AMTAR = @AMTAR@
173 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
91174 AR = @AR@
92175 AUTOCONF = @AUTOCONF@
93176 AUTOHEADER = @AUTOHEADER@
105188 CYGPATH_W = @CYGPATH_W@
106189 DEFS = @DEFS@
107190 DEPDIR = @DEPDIR@
191 DLLTOOL = @DLLTOOL@
108192 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
109193 DSYMUTIL = @DSYMUTIL@
110194 DUMPBIN = @DUMPBIN@
157241 LTLIBOBJS = @LTLIBOBJS@
158242 MAINT = @MAINT@
159243 MAKEINFO = @MAKEINFO@
244 MANIFEST_TOOL = @MANIFEST_TOOL@
160245 MKDIR_P = @MKDIR_P@
161246 NM = @NM@
162247 NMEDIT = @NMEDIT@
188273 abs_srcdir = @abs_srcdir@
189274 abs_top_builddir = @abs_top_builddir@
190275 abs_top_srcdir = @abs_top_srcdir@
276 ac_ct_AR = @ac_ct_AR@
191277 ac_ct_CC = @ac_ct_CC@
192278 ac_ct_CXX = @ac_ct_CXX@
193279 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
221307 libexecdir = @libexecdir@
222308 localedir = @localedir@
223309 localstatedir = @localstatedir@
224 lt_ECHO = @lt_ECHO@
225310 mandir = @mandir@
226311 mkdir_p = @mkdir_p@
227312 oldincludedir = @oldincludedir@
279364 -rm -rf .libs _libs
280365
281366 # This directory's subdirectories are mostly independent; you can cd
282 # into them and run `make' without going through this Makefile.
283 # To change the values of `make' variables: instead of editing Makefiles,
284 # (1) if the variable is set in `config.status', edit `config.status'
285 # (which will cause the Makefiles to be regenerated when you run `make');
286 # (2) otherwise, pass the desired values on the `make' command line.
287 $(RECURSIVE_TARGETS):
288 @fail= failcom='exit 1'; \
289 for f in x $$MAKEFLAGS; do \
290 case $$f in \
291 *=* | --[!k]*);; \
292 *k*) failcom='fail=yes';; \
293 esac; \
294 done; \
367 # into them and run 'make' without going through this Makefile.
368 # To change the values of 'make' variables: instead of editing Makefiles,
369 # (1) if the variable is set in 'config.status', edit 'config.status'
370 # (which will cause the Makefiles to be regenerated when you run 'make');
371 # (2) otherwise, pass the desired values on the 'make' command line.
372 $(am__recursive_targets):
373 @fail=; \
374 if $(am__make_keepgoing); then \
375 failcom='fail=yes'; \
376 else \
377 failcom='exit 1'; \
378 fi; \
295379 dot_seen=no; \
296380 target=`echo $@ | sed s/-recursive//`; \
297 list='$(SUBDIRS)'; for subdir in $$list; do \
381 case "$@" in \
382 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
383 *) list='$(SUBDIRS)' ;; \
384 esac; \
385 for subdir in $$list; do \
298386 echo "Making $$target in $$subdir"; \
299387 if test "$$subdir" = "."; then \
300388 dot_seen=yes; \
309397 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
310398 fi; test -z "$$fail"
311399
312 $(RECURSIVE_CLEAN_TARGETS):
313 @fail= failcom='exit 1'; \
314 for f in x $$MAKEFLAGS; do \
315 case $$f in \
316 *=* | --[!k]*);; \
317 *k*) failcom='fail=yes';; \
318 esac; \
319 done; \
320 dot_seen=no; \
321 case "$@" in \
322 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
323 *) list='$(SUBDIRS)' ;; \
324 esac; \
325 rev=''; for subdir in $$list; do \
326 if test "$$subdir" = "."; then :; else \
327 rev="$$subdir $$rev"; \
328 fi; \
329 done; \
330 rev="$$rev ."; \
331 target=`echo $@ | sed s/-recursive//`; \
332 for subdir in $$rev; do \
333 echo "Making $$target in $$subdir"; \
334 if test "$$subdir" = "."; then \
335 local_target="$$target-am"; \
336 else \
337 local_target="$$target"; \
338 fi; \
339 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
340 || eval $$failcom; \
341 done && test -z "$$fail"
342 tags-recursive:
343 list='$(SUBDIRS)'; for subdir in $$list; do \
344 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
345 done
346 ctags-recursive:
347 list='$(SUBDIRS)'; for subdir in $$list; do \
348 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
349 done
350
351 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 mkid -fID $$unique
359 tags: TAGS
360
361 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
400 ID: $(am__tagged_files)
401 $(am__define_uniq_tagged_files); mkid -fID $$unique
402 tags: tags-recursive
403 TAGS: tags
404
405 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
363406 set x; \
364407 here=`pwd`; \
365408 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
375418 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
376419 fi; \
377420 done; \
378 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
379 unique=`for i in $$list; do \
380 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
381 done | \
382 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
383 END { if (nonempty) { for (i in files) print i; }; }'`; \
421 $(am__define_uniq_tagged_files); \
384422 shift; \
385423 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
386424 test -n "$$unique" || unique=$$empty_fix; \
392430 $$unique; \
393431 fi; \
394432 fi
395 ctags: CTAGS
396 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
397 $(TAGS_FILES) $(LISP)
398 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
399 unique=`for i in $$list; do \
400 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
401 done | \
402 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
403 END { if (nonempty) { for (i in files) print i; }; }'`; \
433 ctags: ctags-recursive
434
435 CTAGS: ctags
436 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
437 $(am__define_uniq_tagged_files); \
404438 test -z "$(CTAGS_ARGS)$$unique" \
405439 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
406440 $$unique
409443 here=`$(am__cd) $(top_builddir) && pwd` \
410444 && $(am__cd) $(top_srcdir) \
411445 && gtags -i $(GTAGS_ARGS) "$$here"
446 cscopelist: cscopelist-recursive
447
448 cscopelist-am: $(am__tagged_files)
449 list='$(am__tagged_files)'; \
450 case "$(srcdir)" in \
451 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
452 *) sdir=$(subdir)/$(srcdir) ;; \
453 esac; \
454 for i in $$list; do \
455 if test -f "$$i"; then \
456 echo "$(subdir)/$$i"; \
457 else \
458 echo "$$sdir/$$i"; \
459 fi; \
460 done >> $(top_builddir)/cscope.files
412461
413462 distclean-tags:
414463 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
445494 done
446495 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
447496 if test "$$subdir" = .; then :; else \
448 test -d "$(distdir)/$$subdir" \
449 || $(MKDIR_P) "$(distdir)/$$subdir" \
450 || exit 1; \
451 fi; \
452 done
453 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
454 if test "$$subdir" = .; then :; else \
497 $(am__make_dryrun) \
498 || test -d "$(distdir)/$$subdir" \
499 || $(MKDIR_P) "$(distdir)/$$subdir" \
500 || exit 1; \
455501 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
456502 $(am__relativize); \
457503 new_distdir=$$reldir; \
486532
487533 installcheck: installcheck-recursive
488534 install-strip:
489 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
490 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
491 `test -z '$(STRIP)' || \
492 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
535 if test -z '$(STRIP)'; then \
536 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
537 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
538 install; \
539 else \
540 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
541 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
542 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
543 fi
493544 mostlyclean-generic:
494545
495546 clean-generic:
567618
568619 uninstall-am:
569620
570 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
571 install-am install-strip tags-recursive
572
573 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
574 all all-am check check-am clean clean-generic clean-libtool \
575 ctags ctags-recursive distclean distclean-generic \
576 distclean-libtool distclean-tags distdir dvi dvi-am html \
577 html-am info info-am install install-am install-data \
578 install-data-am install-dvi install-dvi-am install-exec \
579 install-exec-am install-html install-html-am install-info \
580 install-info-am install-man install-pdf install-pdf-am \
581 install-ps install-ps-am install-strip installcheck \
582 installcheck-am installdirs installdirs-am maintainer-clean \
583 maintainer-clean-generic mostlyclean mostlyclean-generic \
584 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
585 uninstall uninstall-am
621 .MAKE: $(am__recursive_targets) install-am install-strip
622
623 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
624 check-am clean clean-generic clean-libtool cscopelist-am ctags \
625 ctags-am distclean distclean-generic distclean-libtool \
626 distclean-tags distdir dvi dvi-am html html-am info info-am \
627 install install-am install-data install-data-am install-dvi \
628 install-dvi-am install-exec install-exec-am install-html \
629 install-html-am install-info install-info-am install-man \
630 install-pdf install-pdf-am install-ps install-ps-am \
631 install-strip installcheck installcheck-am installdirs \
632 installdirs-am maintainer-clean maintainer-clean-generic \
633 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
634 ps ps-am tags tags-am uninstall uninstall-am
586635
587636
588637 # Tell versions [3.59,3.63) of GNU make to not export all variables.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1761 pkgdatadir = $(datadir)/@PACKAGE@
1862 pkgincludedir = $(includedir)/@PACKAGE@
1963 pkglibdir = $(libdir)/@PACKAGE@
3377 build_triplet = @build@
3478 host_triplet = @host@
3579 subdir = man/man1
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
3781 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3882 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
3983 $(top_srcdir)/configure.ac
4387 CONFIG_HEADER = $(top_builddir)/geo_config.h
4488 CONFIG_CLEAN_FILES =
4589 CONFIG_CLEAN_VPATH_FILES =
90 AM_V_P = $(am__v_P_@AM_V@)
91 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
92 am__v_P_0 = false
93 am__v_P_1 = :
94 AM_V_GEN = $(am__v_GEN_@AM_V@)
95 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
96 am__v_GEN_0 = @echo " GEN " $@;
97 am__v_GEN_1 =
98 AM_V_at = $(am__v_at_@AM_V@)
99 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
100 am__v_at_0 = @
101 am__v_at_1 =
46102 SOURCES =
47103 DIST_SOURCES =
104 am__can_run_installinfo = \
105 case $$AM_UPDATE_INFO_DIR in \
106 n|no|NO) false;; \
107 *) (install-info --version) >/dev/null 2>&1;; \
108 esac
48109 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49110 am__vpath_adj = case $$p in \
50111 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
66127 am__base_list = \
67128 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
68129 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
130 am__uninstall_files_from_dir = { \
131 test -z "$$files" \
132 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
133 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
134 $(am__cd) "$$dir" && rm -f $$files; }; \
135 }
69136 man1dir = $(mandir)/man1
70137 am__installdirs = "$(DESTDIR)$(man1dir)"
71138 NROFF = nroff
72139 MANS = $(man_MANS)
140 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
73141 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
74142 ACLOCAL = @ACLOCAL@
75143 AMTAR = @AMTAR@
144 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
76145 AR = @AR@
77146 AUTOCONF = @AUTOCONF@
78147 AUTOHEADER = @AUTOHEADER@
90159 CYGPATH_W = @CYGPATH_W@
91160 DEFS = @DEFS@
92161 DEPDIR = @DEPDIR@
162 DLLTOOL = @DLLTOOL@
93163 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
94164 DSYMUTIL = @DSYMUTIL@
95165 DUMPBIN = @DUMPBIN@
142212 LTLIBOBJS = @LTLIBOBJS@
143213 MAINT = @MAINT@
144214 MAKEINFO = @MAKEINFO@
215 MANIFEST_TOOL = @MANIFEST_TOOL@
145216 MKDIR_P = @MKDIR_P@
146217 NM = @NM@
147218 NMEDIT = @NMEDIT@
173244 abs_srcdir = @abs_srcdir@
174245 abs_top_builddir = @abs_top_builddir@
175246 abs_top_srcdir = @abs_top_srcdir@
247 ac_ct_AR = @ac_ct_AR@
176248 ac_ct_CC = @ac_ct_CC@
177249 ac_ct_CXX = @ac_ct_CXX@
178250 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
206278 libexecdir = @libexecdir@
207279 localedir = @localedir@
208280 localstatedir = @localstatedir@
209 lt_ECHO = @lt_ECHO@
210281 mandir = @mandir@
211282 mkdir_p = @mkdir_p@
212283 oldincludedir = @oldincludedir@
265336 -rm -rf .libs _libs
266337 install-man1: $(man_MANS)
267338 @$(NORMAL_INSTALL)
268 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
269 @list=''; test -n "$(man1dir)" || exit 0; \
270 { for i in $$list; do echo "$$i"; done; \
271 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
272 sed -n '/\.1[a-z]*$$/p'; \
339 @list1=''; \
340 list2='$(man_MANS)'; \
341 test -n "$(man1dir)" \
342 && test -n "`echo $$list1$$list2`" \
343 || exit 0; \
344 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
345 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
346 { for i in $$list1; do echo "$$i"; done; \
347 if test -n "$$list2"; then \
348 for i in $$list2; do echo "$$i"; done \
349 | sed -n '/\.1[a-z]*$$/p'; \
350 fi; \
273351 } | while read p; do \
274352 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
275353 echo "$$d$$p"; echo "$$p"; \
298376 sed -n '/\.1[a-z]*$$/p'; \
299377 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
300378 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
301 test -z "$$files" || { \
302 echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
303 cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
304 tags: TAGS
305 TAGS:
306
307 ctags: CTAGS
308 CTAGS:
379 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
380 tags TAGS:
381
382 ctags CTAGS:
383
384 cscope cscopelist:
309385
310386
311387 distdir: $(DISTFILES)
312 @list='$(MANS)'; if test -n "$$list"; then \
313 list=`for p in $$list; do \
314 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
315 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
316 if test -n "$$list" && \
317 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
318 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
319 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
320 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
321 echo " typically \`make maintainer-clean' will remove them" >&2; \
322 exit 1; \
323 else :; fi; \
324 else :; fi
325388 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
326389 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
327390 list='$(DISTFILES)'; \
368431
369432 installcheck: installcheck-am
370433 install-strip:
371 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
372 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
373 `test -z '$(STRIP)' || \
374 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
434 if test -z '$(STRIP)'; then \
435 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
436 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
437 install; \
438 else \
439 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
440 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
441 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
442 fi
375443 mostlyclean-generic:
376444
377445 clean-generic:
454522 .MAKE: install-am install-strip
455523
456524 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
457 distclean distclean-generic distclean-libtool distdir dvi \
458 dvi-am html html-am info info-am install install-am \
459 install-data install-data-am install-dvi install-dvi-am \
460 install-exec install-exec-am install-html install-html-am \
461 install-info install-info-am install-man install-man1 \
462 install-pdf install-pdf-am install-ps install-ps-am \
463 install-strip installcheck installcheck-am installdirs \
464 maintainer-clean maintainer-clean-generic mostlyclean \
465 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
466 uninstall uninstall-am uninstall-man uninstall-man1
525 cscopelist-am ctags-am distclean distclean-generic \
526 distclean-libtool distdir dvi dvi-am html html-am info info-am \
527 install install-am install-data install-data-am install-dvi \
528 install-dvi-am install-exec install-exec-am install-html \
529 install-html-am install-info install-info-am install-man \
530 install-man1 install-pdf install-pdf-am install-ps \
531 install-ps-am install-strip installcheck installcheck-am \
532 installdirs maintainer-clean maintainer-clean-generic \
533 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
534 ps ps-am tags-am uninstall uninstall-am uninstall-man \
535 uninstall-man1
467536
468537
469538 # Tell versions [3.59,3.63) of GNU make to not export all variables.
+155
-316
missing less more
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
109 # it under the terms of the GNU General Public License as published by
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
4631 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6243
6344 -h|--h|--he|--hel|--help)
6445 echo "\
6546 $0 [OPTION]... PROGRAM [ARGUMENT]...
6647
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6950
7051 Options:
7152 -h, --help display this help and exit
7253 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
7454
7555 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
9161
9262 Send bug reports to <bug-automake@gnu.org>."
9363 exit $?
9969 ;;
10070
10171 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
10474 exit 1
10575 ;;
10676
10777 esac
10878
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
368207
369208 # Local variables:
370209 # eval: (add-hook 'write-file-hooks 'time-stamp)