Update upstream source from tag 'upstream/1.7.0_rc1'
Update to upstream version '1.7.0~rc1'
with Debian dir 4d65ec8df8c8ce87a3c3164cb33eff1bfd7fff75
Bas Couwenberg
2 years ago
17 | 17 | |
18 | 18 | # Version information |
19 | 19 | set(PROJECT_VERSION_MAJOR 1) |
20 | set(PROJECT_VERSION_MINOR 6) | |
20 | set(PROJECT_VERSION_MINOR 7) | |
21 | 21 | set(PROJECT_VERSION_PATCH 0) |
22 | 22 | set(PROJECT_VERSION |
23 | 23 | "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") |
28 | 28 | # libgeotiff.so.2 -> libgeotiff.so.2.2.0 |
29 | 29 | # libgeotiff.so.2.2.0 |
30 | 30 | set(LINK_SOVERSION "5") |
31 | set(LINK_VERSION "5.0.1") | |
31 | set(LINK_VERSION "5.1.0") | |
32 | 32 | |
33 | 33 | string (TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER) |
34 | 34 | string (TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER) |
52 | 52 | geo_strtod.c \ |
53 | 53 | geotiff_proj4.c |
54 | 54 | |
55 | libgeotiff_la_LDFLAGS = -version-info 6:0:1 ${NOUNDEFINED} | |
55 | libgeotiff_la_LDFLAGS = -version-info 7:0:2 ${NOUNDEFINED} | |
56 | 56 | |
57 | 57 | libgeotiff_la_LIBADD = libxtiff/libxtiff.la |
58 | 58 |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
191 | 191 | am__v_at_1 = |
192 | 192 | DEFAULT_INCLUDES = -I.@am__isrc@ |
193 | 193 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
194 | am__depfiles_maybe = depfiles | |
194 | am__maybe_remake_depfiles = depfiles | |
195 | am__depfiles_remade = ./$(DEPDIR)/cpl_serv.Plo \ | |
196 | ./$(DEPDIR)/geo_extra.Plo ./$(DEPDIR)/geo_free.Plo \ | |
197 | ./$(DEPDIR)/geo_get.Plo ./$(DEPDIR)/geo_names.Plo \ | |
198 | ./$(DEPDIR)/geo_new.Plo ./$(DEPDIR)/geo_normalize.Plo \ | |
199 | ./$(DEPDIR)/geo_print.Plo ./$(DEPDIR)/geo_set.Plo \ | |
200 | ./$(DEPDIR)/geo_simpletags.Plo ./$(DEPDIR)/geo_strtod.Plo \ | |
201 | ./$(DEPDIR)/geo_tiffp.Plo ./$(DEPDIR)/geo_trans.Plo \ | |
202 | ./$(DEPDIR)/geo_write.Plo ./$(DEPDIR)/geotiff_proj4.Plo | |
195 | 203 | am__mv = mv -f |
196 | 204 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
197 | 205 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
234 | 242 | $(RECURSIVE_CLEAN_TARGETS) \ |
235 | 243 | $(am__extra_recursive_targets) |
236 | 244 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ |
237 | cscope distdir dist dist-all distcheck | |
245 | cscope distdir distdir-am dist dist-all distcheck | |
238 | 246 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ |
239 | 247 | $(LISP)geo_config.h.in |
240 | 248 | # Read a list of newline-separated strings from the standard input, |
528 | 536 | geo_strtod.c \ |
529 | 537 | geotiff_proj4.c |
530 | 538 | |
531 | libgeotiff_la_LDFLAGS = -version-info 6:0:1 ${NOUNDEFINED} | |
539 | libgeotiff_la_LDFLAGS = -version-info 7:0:2 ${NOUNDEFINED} | |
532 | 540 | libgeotiff_la_LIBADD = libxtiff/libxtiff.la |
533 | 541 | lib_LTLIBRARIES = libgeotiff.la |
534 | 542 | EXTRA_DIST = autogen.sh \ |
575 | 583 | echo ' $(SHELL) ./config.status'; \ |
576 | 584 | $(SHELL) ./config.status;; \ |
577 | 585 | *) \ |
578 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
579 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
586 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ | |
587 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ | |
580 | 588 | esac; |
581 | 589 | $(top_srcdir)/m4/doxygen.am $(am__empty): |
582 | 590 | |
648 | 656 | distclean-compile: |
649 | 657 | -rm -f *.tab.c |
650 | 658 | |
651 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpl_serv.Plo@am__quote@ | |
652 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_extra.Plo@am__quote@ | |
653 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_free.Plo@am__quote@ | |
654 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_get.Plo@am__quote@ | |
655 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_names.Plo@am__quote@ | |
656 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_new.Plo@am__quote@ | |
657 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_normalize.Plo@am__quote@ | |
658 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_print.Plo@am__quote@ | |
659 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_set.Plo@am__quote@ | |
660 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_simpletags.Plo@am__quote@ | |
661 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_strtod.Plo@am__quote@ | |
662 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_tiffp.Plo@am__quote@ | |
663 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_trans.Plo@am__quote@ | |
664 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_write.Plo@am__quote@ | |
665 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotiff_proj4.Plo@am__quote@ | |
659 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpl_serv.Plo@am__quote@ # am--include-marker | |
660 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_extra.Plo@am__quote@ # am--include-marker | |
661 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_free.Plo@am__quote@ # am--include-marker | |
662 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_get.Plo@am__quote@ # am--include-marker | |
663 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_names.Plo@am__quote@ # am--include-marker | |
664 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_new.Plo@am__quote@ # am--include-marker | |
665 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_normalize.Plo@am__quote@ # am--include-marker | |
666 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_print.Plo@am__quote@ # am--include-marker | |
667 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_set.Plo@am__quote@ # am--include-marker | |
668 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_simpletags.Plo@am__quote@ # am--include-marker | |
669 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_strtod.Plo@am__quote@ # am--include-marker | |
670 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_tiffp.Plo@am__quote@ # am--include-marker | |
671 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_trans.Plo@am__quote@ # am--include-marker | |
672 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_write.Plo@am__quote@ # am--include-marker | |
673 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotiff_proj4.Plo@am__quote@ # am--include-marker | |
674 | ||
675 | $(am__depfiles_remade): | |
676 | @$(MKDIR_P) $(@D) | |
677 | @echo '# dummy' >$@-t && $(am__mv) $@-t $@ | |
678 | ||
679 | am--depfiles: $(am__depfiles_remade) | |
666 | 680 | |
667 | 681 | .c.o: |
668 | 682 | @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ |
845 | 859 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
846 | 860 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
847 | 861 | |
848 | distdir: $(DISTFILES) | |
862 | distdir: $(BUILT_SOURCES) | |
863 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
864 | ||
865 | distdir-am: $(DISTFILES) | |
849 | 866 | $(am__remove_distdir) |
850 | 867 | test -d "$(distdir)" || mkdir "$(distdir)" |
851 | 868 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
910 | 927 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
911 | 928 | || chmod -R a+r "$(distdir)" |
912 | 929 | dist-gzip: distdir |
913 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
930 | tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz | |
914 | 931 | $(am__post_remove_distdir) |
915 | 932 | |
916 | 933 | dist-bzip2: distdir |
936 | 953 | @echo WARNING: "Support for shar distribution archives is" \ |
937 | 954 | "deprecated." >&2 |
938 | 955 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 |
939 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
956 | shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz | |
940 | 957 | $(am__post_remove_distdir) |
941 | 958 | dist-zip: distdir |
942 | 959 | -rm -f $(distdir).zip |
953 | 970 | distcheck: dist |
954 | 971 | case '$(DIST_ARCHIVES)' in \ |
955 | 972 | *.tar.gz*) \ |
956 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
973 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
957 | 974 | *.tar.bz2*) \ |
958 | 975 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
959 | 976 | *.tar.lz*) \ |
963 | 980 | *.tar.Z*) \ |
964 | 981 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
965 | 982 | *.shar.gz*) \ |
966 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
983 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | |
967 | 984 | *.zip*) \ |
968 | 985 | unzip $(distdir).zip ;;\ |
969 | 986 | esac |
1078 | 1095 | |
1079 | 1096 | distclean: distclean-recursive |
1080 | 1097 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1081 | -rm -rf ./$(DEPDIR) | |
1098 | -rm -f ./$(DEPDIR)/cpl_serv.Plo | |
1099 | -rm -f ./$(DEPDIR)/geo_extra.Plo | |
1100 | -rm -f ./$(DEPDIR)/geo_free.Plo | |
1101 | -rm -f ./$(DEPDIR)/geo_get.Plo | |
1102 | -rm -f ./$(DEPDIR)/geo_names.Plo | |
1103 | -rm -f ./$(DEPDIR)/geo_new.Plo | |
1104 | -rm -f ./$(DEPDIR)/geo_normalize.Plo | |
1105 | -rm -f ./$(DEPDIR)/geo_print.Plo | |
1106 | -rm -f ./$(DEPDIR)/geo_set.Plo | |
1107 | -rm -f ./$(DEPDIR)/geo_simpletags.Plo | |
1108 | -rm -f ./$(DEPDIR)/geo_strtod.Plo | |
1109 | -rm -f ./$(DEPDIR)/geo_tiffp.Plo | |
1110 | -rm -f ./$(DEPDIR)/geo_trans.Plo | |
1111 | -rm -f ./$(DEPDIR)/geo_write.Plo | |
1112 | -rm -f ./$(DEPDIR)/geotiff_proj4.Plo | |
1082 | 1113 | -rm -f Makefile |
1083 | 1114 | distclean-am: clean-am distclean-compile distclean-generic \ |
1084 | 1115 | distclean-hdr distclean-libtool distclean-tags |
1126 | 1157 | maintainer-clean: maintainer-clean-recursive |
1127 | 1158 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1128 | 1159 | -rm -rf $(top_srcdir)/autom4te.cache |
1129 | -rm -rf ./$(DEPDIR) | |
1160 | -rm -f ./$(DEPDIR)/cpl_serv.Plo | |
1161 | -rm -f ./$(DEPDIR)/geo_extra.Plo | |
1162 | -rm -f ./$(DEPDIR)/geo_free.Plo | |
1163 | -rm -f ./$(DEPDIR)/geo_get.Plo | |
1164 | -rm -f ./$(DEPDIR)/geo_names.Plo | |
1165 | -rm -f ./$(DEPDIR)/geo_new.Plo | |
1166 | -rm -f ./$(DEPDIR)/geo_normalize.Plo | |
1167 | -rm -f ./$(DEPDIR)/geo_print.Plo | |
1168 | -rm -f ./$(DEPDIR)/geo_set.Plo | |
1169 | -rm -f ./$(DEPDIR)/geo_simpletags.Plo | |
1170 | -rm -f ./$(DEPDIR)/geo_strtod.Plo | |
1171 | -rm -f ./$(DEPDIR)/geo_tiffp.Plo | |
1172 | -rm -f ./$(DEPDIR)/geo_trans.Plo | |
1173 | -rm -f ./$(DEPDIR)/geo_write.Plo | |
1174 | -rm -f ./$(DEPDIR)/geotiff_proj4.Plo | |
1130 | 1175 | -rm -f Makefile |
1131 | 1176 | maintainer-clean-am: distclean-am maintainer-clean-generic |
1132 | 1177 | |
1149 | 1194 | .MAKE: $(am__recursive_targets) all install-am install-strip |
1150 | 1195 | |
1151 | 1196 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ |
1152 | am--refresh check check-am clean clean-cscope clean-generic \ | |
1153 | clean-libLTLIBRARIES clean-libtool cscope cscopelist-am ctags \ | |
1154 | ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \ | |
1155 | dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ | |
1156 | distclean-compile distclean-generic distclean-hdr \ | |
1157 | distclean-libtool distclean-tags distcleancheck distdir \ | |
1158 | distuninstallcheck dvi dvi-am html html-am info info-am \ | |
1159 | install install-am install-data install-data-am install-dvi \ | |
1160 | install-dvi-am install-exec install-exec-am install-html \ | |
1161 | install-html-am install-includeHEADERS install-info \ | |
1162 | install-info-am install-libLTLIBRARIES install-man \ | |
1163 | install-nodist_includeHEADERS install-pdf install-pdf-am \ | |
1164 | install-ps install-ps-am install-strip installcheck \ | |
1165 | installcheck-am installdirs installdirs-am maintainer-clean \ | |
1166 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
1167 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | |
1168 | tags tags-am uninstall uninstall-am uninstall-includeHEADERS \ | |
1169 | uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS | |
1197 | am--depfiles am--refresh check check-am clean clean-cscope \ | |
1198 | clean-generic clean-libLTLIBRARIES clean-libtool cscope \ | |
1199 | cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ | |
1200 | dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ | |
1201 | distcheck distclean distclean-compile distclean-generic \ | |
1202 | distclean-hdr distclean-libtool distclean-tags distcleancheck \ | |
1203 | distdir distuninstallcheck dvi dvi-am html html-am info \ | |
1204 | info-am install install-am install-data install-data-am \ | |
1205 | install-dvi install-dvi-am install-exec install-exec-am \ | |
1206 | install-html install-html-am install-includeHEADERS \ | |
1207 | install-info install-info-am install-libLTLIBRARIES \ | |
1208 | install-man install-nodist_includeHEADERS install-pdf \ | |
1209 | install-pdf-am install-ps install-ps-am install-strip \ | |
1210 | installcheck installcheck-am installdirs installdirs-am \ | |
1211 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
1212 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ | |
1213 | pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ | |
1214 | uninstall-includeHEADERS uninstall-libLTLIBRARIES \ | |
1215 | uninstall-nodist_includeHEADERS | |
1170 | 1216 | |
1171 | 1217 | .PRECIOUS: Makefile |
1172 | 1218 |
0 | libgeotiff 1.7.0 | |
1 | ---------------- | |
2 | ||
3 | * Add CoordinateEpochGeoKey = 5120 of type DOUBLE to store coordinate epoch of | |
4 | tie points / geotransform matrix for dynamic CRS. | |
5 | See https://github.com/opengeospatial/geotiff/pull/99 | |
6 | * geo_normalize.h/c: rename variables to please codespell | |
7 | * GTIFGetGCSInfoEx(): use proj_crs_get_datum_forced() for PROJ >= 8 to avoid | |
8 | issues with datum ensembles (fixes #54) | |
9 | * GTIFGetGCSInfoEx(): remove dead code (GDAL Coverity CID 1432690) | |
10 | * geo_normalize.c: follow-up to e06625c4e5bcce9f9217d1d5a43dc6af73156283 to avoid | |
11 | look up of user-defined GeogGeodeticDatumGeoKey that cause PROJ warnings (fixes #41) | |
12 | ||
0 | 13 | libgeotiff 1.6.0 |
1 | 14 | ---------------- |
2 | 15 |
0 | # generated automatically by aclocal 1.15 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.16.1 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
3 | 3 | |
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
295 | 295 | AS_VAR_IF([$1], [""], [$5], [$4])dnl |
296 | 296 | ])dnl PKG_CHECK_VAR |
297 | 297 | |
298 | # Copyright (C) 2002-2014 Free Software Foundation, Inc. | |
298 | # Copyright (C) 2002-2018 Free Software Foundation, Inc. | |
299 | 299 | # |
300 | 300 | # This file is free software; the Free Software Foundation |
301 | 301 | # gives unlimited permission to copy and/or distribute it, |
307 | 307 | # generated from the m4 files accompanying Automake X.Y. |
308 | 308 | # (This private macro should not be called outside this file.) |
309 | 309 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
310 | [am__api_version='1.15' | |
310 | [am__api_version='1.16' | |
311 | 311 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
312 | 312 | dnl require some minimum version. Point them to the right macro. |
313 | m4_if([$1], [1.15], [], | |
313 | m4_if([$1], [1.16.1], [], | |
314 | 314 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
315 | 315 | ]) |
316 | 316 | |
326 | 326 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
327 | 327 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
328 | 328 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
329 | [AM_AUTOMAKE_VERSION([1.15])dnl | |
329 | [AM_AUTOMAKE_VERSION([1.16.1])dnl | |
330 | 330 | m4_ifndef([AC_AUTOCONF_VERSION], |
331 | 331 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
332 | 332 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
333 | 333 | |
334 | 334 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
335 | 335 | |
336 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
336 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
337 | 337 | # |
338 | 338 | # This file is free software; the Free Software Foundation |
339 | 339 | # gives unlimited permission to copy and/or distribute it, |
385 | 385 | |
386 | 386 | # AM_CONDITIONAL -*- Autoconf -*- |
387 | 387 | |
388 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
388 | # Copyright (C) 1997-2018 Free Software Foundation, Inc. | |
389 | 389 | # |
390 | 390 | # This file is free software; the Free Software Foundation |
391 | 391 | # gives unlimited permission to copy and/or distribute it, |
416 | 416 | Usually this means the macro was only invoked conditionally.]]) |
417 | 417 | fi])]) |
418 | 418 | |
419 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
419 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
420 | 420 | # |
421 | 421 | # This file is free software; the Free Software Foundation |
422 | 422 | # gives unlimited permission to copy and/or distribute it, |
607 | 607 | |
608 | 608 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
609 | 609 | |
610 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
611 | # | |
612 | # This file is free software; the Free Software Foundation | |
613 | # gives unlimited permission to copy and/or distribute it, | |
614 | # with or without modifications, as long as this notice is preserved. | |
615 | ||
610 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
611 | # | |
612 | # This file is free software; the Free Software Foundation | |
613 | # gives unlimited permission to copy and/or distribute it, | |
614 | # with or without modifications, as long as this notice is preserved. | |
616 | 615 | |
617 | 616 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
618 | 617 | # ------------------------------ |
621 | 620 | # Older Autoconf quotes --file arguments for eval, but not when files |
622 | 621 | # are listed without --file. Let's play safe and only enable the eval |
623 | 622 | # if we detect the quoting. |
624 | case $CONFIG_FILES in | |
625 | *\'*) eval set x "$CONFIG_FILES" ;; | |
626 | *) set x $CONFIG_FILES ;; | |
627 | esac | |
623 | # TODO: see whether this extra hack can be removed once we start | |
624 | # requiring Autoconf 2.70 or later. | |
625 | AS_CASE([$CONFIG_FILES], | |
626 | [*\'*], [eval set x "$CONFIG_FILES"], | |
627 | [*], [set x $CONFIG_FILES]) | |
628 | 628 | shift |
629 | for mf | |
629 | # Used to flag and report bootstrapping failures. | |
630 | am_rc=0 | |
631 | for am_mf | |
630 | 632 | do |
631 | 633 | # Strip MF so we end up with the name of the file. |
632 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
633 | # Check whether this is an Automake generated Makefile or not. | |
634 | # We used to match only the files named 'Makefile.in', but | |
635 | # some people rename them; so instead we look at the file content. | |
636 | # Grep'ing the first line is not enough: some people post-process | |
637 | # each Makefile.in and add a new line on top of each file to say so. | |
638 | # Grep'ing the whole file is not good either: AIX grep has a line | |
634 | am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` | |
635 | # Check whether this is an Automake generated Makefile which includes | |
636 | # dependency-tracking related rules and includes. | |
637 | # Grep'ing the whole file directly is not great: AIX grep has a line | |
639 | 638 | # limit of 2048, but all sed's we know have understand at least 4000. |
640 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
641 | dirpart=`AS_DIRNAME("$mf")` | |
642 | else | |
643 | continue | |
644 | fi | |
645 | # Extract the definition of DEPDIR, am__include, and am__quote | |
646 | # from the Makefile without running 'make'. | |
647 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
648 | test -z "$DEPDIR" && continue | |
649 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
650 | test -z "$am__include" && continue | |
651 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
652 | # Find all dependency output files, they are included files with | |
653 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
654 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
655 | # expansion. | |
656 | for file in `sed -n " | |
657 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
658 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
659 | # Make sure the directory exists. | |
660 | test -f "$dirpart/$file" && continue | |
661 | fdir=`AS_DIRNAME(["$file"])` | |
662 | AS_MKDIR_P([$dirpart/$fdir]) | |
663 | # echo "creating $dirpart/$file" | |
664 | echo '# dummy' > "$dirpart/$file" | |
665 | done | |
639 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ | |
640 | || continue | |
641 | am_dirpart=`AS_DIRNAME(["$am_mf"])` | |
642 | am_filepart=`AS_BASENAME(["$am_mf"])` | |
643 | AM_RUN_LOG([cd "$am_dirpart" \ | |
644 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
645 | | $MAKE -f - am--depfiles]) || am_rc=$? | |
666 | 646 | done |
647 | if test $am_rc -ne 0; then | |
648 | AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments | |
649 | for automatic dependency tracking. Try re-running configure with the | |
650 | '--disable-dependency-tracking' option to at least be able to build | |
651 | the package (albeit without support for automatic dependency tracking).]) | |
652 | fi | |
653 | AS_UNSET([am_dirpart]) | |
654 | AS_UNSET([am_filepart]) | |
655 | AS_UNSET([am_mf]) | |
656 | AS_UNSET([am_rc]) | |
657 | rm -f conftest-deps.mk | |
667 | 658 | } |
668 | 659 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
669 | 660 | |
672 | 663 | # ----------------------------- |
673 | 664 | # This macro should only be invoked once -- use via AC_REQUIRE. |
674 | 665 | # |
675 | # This code is only required when automatic dependency tracking | |
676 | # is enabled. FIXME. This creates each '.P' file that we will | |
677 | # need in order to bootstrap the dependency handling code. | |
666 | # This code is only required when automatic dependency tracking is enabled. | |
667 | # This creates each '.Po' and '.Plo' makefile fragment that we'll need in | |
668 | # order to bootstrap the dependency handling code. | |
678 | 669 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
679 | 670 | [AC_CONFIG_COMMANDS([depfiles], |
680 | 671 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
681 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
682 | ]) | |
672 | [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) | |
683 | 673 | |
684 | 674 | # Do all the work for Automake. -*- Autoconf -*- |
685 | 675 | |
686 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
676 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
687 | 677 | # |
688 | 678 | # This file is free software; the Free Software Foundation |
689 | 679 | # gives unlimited permission to copy and/or distribute it, |
770 | 760 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
771 | 761 | # For better backward compatibility. To be removed once Automake 1.9.x |
772 | 762 | # dies out for good. For more background, see: |
773 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
774 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
763 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
764 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
775 | 765 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) |
776 | 766 | # We need awk for the "check" target (and possibly the TAP driver). The |
777 | 767 | # system "awk" is bad on some platforms. |
838 | 828 | Aborting the configuration process, to ensure you take notice of the issue. |
839 | 829 | |
840 | 830 | You can download and install GNU coreutils to get an 'rm' implementation |
841 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
831 | that behaves properly: <https://www.gnu.org/software/coreutils/>. | |
842 | 832 | |
843 | 833 | If you want to complete the configuration process using your problematic |
844 | 834 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
880 | 870 | done |
881 | 871 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
882 | 872 | |
883 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
873 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
884 | 874 | # |
885 | 875 | # This file is free software; the Free Software Foundation |
886 | 876 | # gives unlimited permission to copy and/or distribute it, |
901 | 891 | fi |
902 | 892 | AC_SUBST([install_sh])]) |
903 | 893 | |
904 | # Copyright (C) 2003-2014 Free Software Foundation, Inc. | |
894 | # Copyright (C) 2003-2018 Free Software Foundation, Inc. | |
905 | 895 | # |
906 | 896 | # This file is free software; the Free Software Foundation |
907 | 897 | # gives unlimited permission to copy and/or distribute it, |
923 | 913 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
924 | 914 | # From Jim Meyering |
925 | 915 | |
926 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
916 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
927 | 917 | # |
928 | 918 | # This file is free software; the Free Software Foundation |
929 | 919 | # gives unlimited permission to copy and/or distribute it, |
958 | 948 | |
959 | 949 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
960 | 950 | |
961 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
951 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
962 | 952 | # |
963 | 953 | # This file is free software; the Free Software Foundation |
964 | 954 | # gives unlimited permission to copy and/or distribute it, |
966 | 956 | |
967 | 957 | # AM_MAKE_INCLUDE() |
968 | 958 | # ----------------- |
969 | # Check to see how make treats includes. | |
959 | # Check whether make has an 'include' directive that can support all | |
960 | # the idioms we need for our automatic dependency tracking code. | |
970 | 961 | AC_DEFUN([AM_MAKE_INCLUDE], |
971 | [am_make=${MAKE-make} | |
972 | cat > confinc << 'END' | |
962 | [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) | |
963 | cat > confinc.mk << 'END' | |
973 | 964 | am__doit: |
974 | @echo this is the am__doit target | |
965 | @echo this is the am__doit target >confinc.out | |
975 | 966 | .PHONY: am__doit |
976 | 967 | END |
977 | # If we don't find an include directive, just comment out the code. | |
978 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
979 | 968 | am__include="#" |
980 | 969 | am__quote= |
981 | _am_result=none | |
982 | # First try GNU make style include. | |
983 | echo "include confinc" > confmf | |
984 | # Ignore all kinds of additional output from 'make'. | |
985 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
986 | *the\ am__doit\ target*) | |
987 | am__include=include | |
988 | am__quote= | |
989 | _am_result=GNU | |
990 | ;; | |
991 | esac | |
992 | # Now try BSD make style include. | |
993 | if test "$am__include" = "#"; then | |
994 | echo '.include "confinc"' > confmf | |
995 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
996 | *the\ am__doit\ target*) | |
997 | am__include=.include | |
998 | am__quote="\"" | |
999 | _am_result=BSD | |
1000 | ;; | |
1001 | esac | |
1002 | fi | |
1003 | AC_SUBST([am__include]) | |
1004 | AC_SUBST([am__quote]) | |
1005 | AC_MSG_RESULT([$_am_result]) | |
1006 | rm -f confinc confmf | |
1007 | ]) | |
970 | # BSD make does it like this. | |
971 | echo '.include "confinc.mk" # ignored' > confmf.BSD | |
972 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. | |
973 | echo 'include confinc.mk # ignored' > confmf.GNU | |
974 | _am_result=no | |
975 | for s in GNU BSD; do | |
976 | AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) | |
977 | AS_CASE([$?:`cat confinc.out 2>/dev/null`], | |
978 | ['0:this is the am__doit target'], | |
979 | [AS_CASE([$s], | |
980 | [BSD], [am__include='.include' am__quote='"'], | |
981 | [am__include='include' am__quote=''])]) | |
982 | if test "$am__include" != "#"; then | |
983 | _am_result="yes ($s style)" | |
984 | break | |
985 | fi | |
986 | done | |
987 | rm -f confinc.* confmf.* | |
988 | AC_MSG_RESULT([${_am_result}]) | |
989 | AC_SUBST([am__include])]) | |
990 | AC_SUBST([am__quote])]) | |
1008 | 991 | |
1009 | 992 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
1010 | 993 | |
1011 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
994 | # Copyright (C) 1997-2018 Free Software Foundation, Inc. | |
1012 | 995 | # |
1013 | 996 | # This file is free software; the Free Software Foundation |
1014 | 997 | # gives unlimited permission to copy and/or distribute it, |
1047 | 1030 | |
1048 | 1031 | # Helper functions for option handling. -*- Autoconf -*- |
1049 | 1032 | |
1050 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
1033 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
1051 | 1034 | # |
1052 | 1035 | # This file is free software; the Free Software Foundation |
1053 | 1036 | # gives unlimited permission to copy and/or distribute it, |
1076 | 1059 | AC_DEFUN([_AM_IF_OPTION], |
1077 | 1060 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
1078 | 1061 | |
1079 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
1062 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
1080 | 1063 | # |
1081 | 1064 | # This file is free software; the Free Software Foundation |
1082 | 1065 | # gives unlimited permission to copy and/or distribute it, |
1123 | 1106 | # For backward compatibility. |
1124 | 1107 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
1125 | 1108 | |
1126 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
1109 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
1127 | 1110 | # |
1128 | 1111 | # This file is free software; the Free Software Foundation |
1129 | 1112 | # gives unlimited permission to copy and/or distribute it, |
1142 | 1125 | |
1143 | 1126 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
1144 | 1127 | |
1145 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
1128 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
1146 | 1129 | # |
1147 | 1130 | # This file is free software; the Free Software Foundation |
1148 | 1131 | # gives unlimited permission to copy and/or distribute it, |
1223 | 1206 | rm -f conftest.file |
1224 | 1207 | ]) |
1225 | 1208 | |
1226 | # Copyright (C) 2009-2014 Free Software Foundation, Inc. | |
1209 | # Copyright (C) 2009-2018 Free Software Foundation, Inc. | |
1227 | 1210 | # |
1228 | 1211 | # This file is free software; the Free Software Foundation |
1229 | 1212 | # gives unlimited permission to copy and/or distribute it, |
1283 | 1266 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
1284 | 1267 | ]) |
1285 | 1268 | |
1286 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
1269 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | |
1287 | 1270 | # |
1288 | 1271 | # This file is free software; the Free Software Foundation |
1289 | 1272 | # gives unlimited permission to copy and/or distribute it, |
1311 | 1294 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1312 | 1295 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1313 | 1296 | |
1314 | # Copyright (C) 2006-2014 Free Software Foundation, Inc. | |
1297 | # Copyright (C) 2006-2018 Free Software Foundation, Inc. | |
1315 | 1298 | # |
1316 | 1299 | # This file is free software; the Free Software Foundation |
1317 | 1300 | # gives unlimited permission to copy and/or distribute it, |
1330 | 1313 | |
1331 | 1314 | # Check how to create a tarball. -*- Autoconf -*- |
1332 | 1315 | |
1333 | # Copyright (C) 2004-2014 Free Software Foundation, Inc. | |
1316 | # Copyright (C) 2004-2018 Free Software Foundation, Inc. | |
1334 | 1317 | # |
1335 | 1318 | # This file is free software; the Free Software Foundation |
1336 | 1319 | # gives unlimited permission to copy and/or distribute it, |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
138 | 138 | am__v_at_1 = |
139 | 139 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
140 | 140 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
141 | am__depfiles_maybe = depfiles | |
141 | am__maybe_remake_depfiles = depfiles | |
142 | am__depfiles_remade = ./$(DEPDIR)/applygeo.Po ./$(DEPDIR)/geotifcp.Po \ | |
143 | ./$(DEPDIR)/listgeo.Po ./$(DEPDIR)/makegeo.Po | |
142 | 144 | am__mv = mv -f |
143 | 145 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
144 | 146 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
375 | 377 | *config.status*) \ |
376 | 378 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ |
377 | 379 | *) \ |
378 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | |
379 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | |
380 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
381 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
380 | 382 | esac; |
381 | 383 | |
382 | 384 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
468 | 470 | distclean-compile: |
469 | 471 | -rm -f *.tab.c |
470 | 472 | |
471 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/applygeo.Po@am__quote@ | |
472 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotifcp.Po@am__quote@ | |
473 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listgeo.Po@am__quote@ | |
474 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makegeo.Po@am__quote@ | |
473 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/applygeo.Po@am__quote@ # am--include-marker | |
474 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotifcp.Po@am__quote@ # am--include-marker | |
475 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listgeo.Po@am__quote@ # am--include-marker | |
476 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makegeo.Po@am__quote@ # am--include-marker | |
477 | ||
478 | $(am__depfiles_remade): | |
479 | @$(MKDIR_P) $(@D) | |
480 | @echo '# dummy' >$@-t && $(am__mv) $@-t $@ | |
481 | ||
482 | am--depfiles: $(am__depfiles_remade) | |
475 | 483 | |
476 | 484 | .c.o: |
477 | 485 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
552 | 560 | distclean-tags: |
553 | 561 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
554 | 562 | |
555 | distdir: $(DISTFILES) | |
563 | distdir: $(BUILT_SOURCES) | |
564 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
565 | ||
566 | distdir-am: $(DISTFILES) | |
556 | 567 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
557 | 568 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
558 | 569 | list='$(DISTFILES)'; \ |
625 | 636 | clean-noinstPROGRAMS mostlyclean-am |
626 | 637 | |
627 | 638 | distclean: distclean-am |
628 | -rm -rf ./$(DEPDIR) | |
639 | -rm -f ./$(DEPDIR)/applygeo.Po | |
640 | -rm -f ./$(DEPDIR)/geotifcp.Po | |
641 | -rm -f ./$(DEPDIR)/listgeo.Po | |
642 | -rm -f ./$(DEPDIR)/makegeo.Po | |
629 | 643 | -rm -f Makefile |
630 | 644 | distclean-am: clean-am distclean-compile distclean-generic \ |
631 | 645 | distclean-tags |
671 | 685 | installcheck-am: |
672 | 686 | |
673 | 687 | maintainer-clean: maintainer-clean-am |
674 | -rm -rf ./$(DEPDIR) | |
688 | -rm -f ./$(DEPDIR)/applygeo.Po | |
689 | -rm -f ./$(DEPDIR)/geotifcp.Po | |
690 | -rm -f ./$(DEPDIR)/listgeo.Po | |
691 | -rm -f ./$(DEPDIR)/makegeo.Po | |
675 | 692 | -rm -f Makefile |
676 | 693 | maintainer-clean-am: distclean-am maintainer-clean-generic |
677 | 694 | |
692 | 709 | |
693 | 710 | .MAKE: install-am install-strip |
694 | 711 | |
695 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ | |
712 | .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ | |
696 | 713 | clean-binPROGRAMS clean-generic clean-libtool \ |
697 | 714 | clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \ |
698 | 715 | distclean-compile distclean-generic distclean-libtool \ |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
306 | 306 | *config.status*) \ |
307 | 307 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ |
308 | 308 | *) \ |
309 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | |
310 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | |
309 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
310 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
311 | 311 | esac; |
312 | 312 | |
313 | 313 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
331 | 331 | cscope cscopelist: |
332 | 332 | |
333 | 333 | |
334 | distdir: $(DISTFILES) | |
334 | distdir: $(BUILT_SOURCES) | |
335 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
336 | ||
337 | distdir-am: $(DISTFILES) | |
335 | 338 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
336 | 339 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
337 | 340 | list='$(DISTFILES)'; \ |
0 | 0 | #! /bin/sh |
1 | 1 | # Wrapper for compilers which do not understand '-c -o'. |
2 | 2 | |
3 | scriptversion=2012-10-14.11; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
6 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
16 | 16 | # GNU General Public License for more details. |
17 | 17 | # |
18 | 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/>. | |
19 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
20 | 20 | |
21 | 21 | # As a special exception to the GNU General Public License, if you |
22 | 22 | # distribute this file as part of a program that contains a |
254 | 254 | echo "compile $scriptversion" |
255 | 255 | exit $? |
256 | 256 | ;; |
257 | cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) | |
257 | cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ | |
258 | icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) | |
258 | 259 | func_cl_wrapper "$@" # Doesn't return... |
259 | 260 | ;; |
260 | 261 | esac |
338 | 339 | # Local Variables: |
339 | 340 | # mode: shell-script |
340 | 341 | # sh-indentation: 2 |
341 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
342 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
342 | 343 | # time-stamp-start: "scriptversion=" |
343 | 344 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
344 | # time-stamp-time-zone: "UTC" | |
345 | # time-stamp-time-zone: "UTC0" | |
345 | 346 | # time-stamp-end: "; # UTC" |
346 | 347 | # End: |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | # Copyright 1992-2015 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2015-08-20' | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-02-24' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
26 | 26 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
27 | 27 | # |
28 | 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 | |
29 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
30 | 30 | # |
31 | 31 | # Please send patches to <config-patches@gnu.org>. |
32 | 32 | |
38 | 38 | |
39 | 39 | Output the configuration name of the system \`$me' is run on. |
40 | 40 | |
41 | Operation modes: | |
41 | Options: | |
42 | 42 | -h, --help print this help, then exit |
43 | 43 | -t, --time-stamp print date of last modification, then exit |
44 | 44 | -v, --version print version number, then exit |
49 | 49 | GNU config.guess ($timestamp) |
50 | 50 | |
51 | 51 | Originally written by Per Bothner. |
52 | Copyright 1992-2015 Free Software Foundation, Inc. | |
52 | Copyright 1992-2018 Free Software Foundation, Inc. | |
53 | 53 | |
54 | 54 | This is free software; see the source for copying conditions. There is NO |
55 | 55 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
106 | 106 | dummy=$tmp/dummy ; |
107 | 107 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
108 | 108 | case $CC_FOR_BUILD,$HOST_CC,$CC in |
109 | ,,) echo "int x;" > $dummy.c ; | |
109 | ,,) echo "int x;" > "$dummy.c" ; | |
110 | 110 | for c in cc gcc c89 c99 ; do |
111 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
111 | if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | |
112 | 112 | CC_FOR_BUILD="$c"; break ; |
113 | 113 | fi ; |
114 | 114 | done ; |
131 | 131 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
132 | 132 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
133 | 133 | |
134 | case "${UNAME_SYSTEM}" in | |
134 | case "$UNAME_SYSTEM" in | |
135 | 135 | Linux|GNU|GNU/*) |
136 | 136 | # If the system lacks a compiler, then just pick glibc. |
137 | 137 | # We could probably try harder. |
138 | 138 | LIBC=gnu |
139 | 139 | |
140 | eval $set_cc_for_build | |
141 | cat <<-EOF > $dummy.c | |
140 | eval "$set_cc_for_build" | |
141 | cat <<-EOF > "$dummy.c" | |
142 | 142 | #include <features.h> |
143 | 143 | #if defined(__UCLIBC__) |
144 | 144 | LIBC=uclibc |
148 | 148 | LIBC=gnu |
149 | 149 | #endif |
150 | 150 | EOF |
151 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` | |
151 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | |
152 | ||
153 | # If ldd exists, use it to detect musl libc. | |
154 | if command -v ldd >/dev/null && \ | |
155 | ldd --version 2>&1 | grep -q ^musl | |
156 | then | |
157 | LIBC=musl | |
158 | fi | |
152 | 159 | ;; |
153 | 160 | esac |
154 | 161 | |
155 | 162 | # Note: order is significant - the case branches are not exclusive. |
156 | 163 | |
157 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
164 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |
158 | 165 | *:NetBSD:*:*) |
159 | 166 | # NetBSD (nbsd) targets should (where applicable) match one or |
160 | 167 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
168 | 175 | # portion of the name. We always set it to "unknown". |
169 | 176 | sysctl="sysctl -n hw.machine_arch" |
170 | 177 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ |
171 | /sbin/$sysctl 2>/dev/null || \ | |
172 | /usr/sbin/$sysctl 2>/dev/null || \ | |
178 | "/sbin/$sysctl" 2>/dev/null || \ | |
179 | "/usr/sbin/$sysctl" 2>/dev/null || \ | |
173 | 180 | echo unknown)` |
174 | case "${UNAME_MACHINE_ARCH}" in | |
181 | case "$UNAME_MACHINE_ARCH" in | |
175 | 182 | armeb) machine=armeb-unknown ;; |
176 | 183 | arm*) machine=arm-unknown ;; |
177 | 184 | sh3el) machine=shl-unknown ;; |
178 | 185 | sh3eb) machine=sh-unknown ;; |
179 | 186 | sh5el) machine=sh5le-unknown ;; |
180 | 187 | earmv*) |
181 | arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
182 | endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` | |
183 | machine=${arch}${endian}-unknown | |
188 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
189 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` | |
190 | machine="${arch}${endian}"-unknown | |
184 | 191 | ;; |
185 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
192 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | |
186 | 193 | esac |
187 | 194 | # The Operating System including object format, if it has switched |
188 | # to ELF recently, or will in the future. | |
189 | case "${UNAME_MACHINE_ARCH}" in | |
190 | arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
191 | eval $set_cc_for_build | |
195 | # to ELF recently (or will in the future) and ABI. | |
196 | case "$UNAME_MACHINE_ARCH" in | |
197 | earm*) | |
198 | os=netbsdelf | |
199 | ;; | |
200 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
201 | eval "$set_cc_for_build" | |
192 | 202 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
193 | 203 | | grep -q __ELF__ |
194 | 204 | then |
204 | 214 | ;; |
205 | 215 | esac |
206 | 216 | # Determine ABI tags. |
207 | case "${UNAME_MACHINE_ARCH}" in | |
217 | case "$UNAME_MACHINE_ARCH" in | |
208 | 218 | earm*) |
209 | 219 | expr='s/^earmv[0-9]/-eabi/;s/eb$//' |
210 | abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` | |
220 | abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` | |
211 | 221 | ;; |
212 | 222 | esac |
213 | 223 | # The OS release |
215 | 225 | # thus, need a distinct triplet. However, they do not need |
216 | 226 | # kernel version information, so it can be replaced with a |
217 | 227 | # suitable tag, in the style of linux-gnu. |
218 | case "${UNAME_VERSION}" in | |
228 | case "$UNAME_VERSION" in | |
219 | 229 | Debian*) |
220 | 230 | release='-gnu' |
221 | 231 | ;; |
222 | 232 | *) |
223 | release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
233 | release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
224 | 234 | ;; |
225 | 235 | esac |
226 | 236 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
227 | 237 | # contains redundant information, the shorter form: |
228 | 238 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
229 | echo "${machine}-${os}${release}${abi}" | |
239 | echo "$machine-${os}${release}${abi}" | |
230 | 240 | exit ;; |
231 | 241 | *:Bitrig:*:*) |
232 | 242 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
233 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
243 | echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" | |
234 | 244 | exit ;; |
235 | 245 | *:OpenBSD:*:*) |
236 | 246 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
237 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
247 | echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" | |
248 | exit ;; | |
249 | *:LibertyBSD:*:*) | |
250 | UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` | |
251 | echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" | |
252 | exit ;; | |
253 | *:MidnightBSD:*:*) | |
254 | echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" | |
238 | 255 | exit ;; |
239 | 256 | *:ekkoBSD:*:*) |
240 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
257 | echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" | |
241 | 258 | exit ;; |
242 | 259 | *:SolidBSD:*:*) |
243 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
260 | echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" | |
244 | 261 | exit ;; |
245 | 262 | macppc:MirBSD:*:*) |
246 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
263 | echo powerpc-unknown-mirbsd"$UNAME_RELEASE" | |
247 | 264 | exit ;; |
248 | 265 | *:MirBSD:*:*) |
249 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
266 | echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" | |
250 | 267 | exit ;; |
251 | 268 | *:Sortix:*:*) |
252 | echo ${UNAME_MACHINE}-unknown-sortix | |
253 | exit ;; | |
269 | echo "$UNAME_MACHINE"-unknown-sortix | |
270 | exit ;; | |
271 | *:Redox:*:*) | |
272 | echo "$UNAME_MACHINE"-unknown-redox | |
273 | exit ;; | |
274 | mips:OSF1:*.*) | |
275 | echo mips-dec-osf1 | |
276 | exit ;; | |
254 | 277 | alpha:OSF1:*:*) |
255 | 278 | case $UNAME_RELEASE in |
256 | 279 | *4.0) |
267 | 290 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
268 | 291 | case "$ALPHA_CPU_TYPE" in |
269 | 292 | "EV4 (21064)") |
270 | UNAME_MACHINE="alpha" ;; | |
293 | UNAME_MACHINE=alpha ;; | |
271 | 294 | "EV4.5 (21064)") |
272 | UNAME_MACHINE="alpha" ;; | |
295 | UNAME_MACHINE=alpha ;; | |
273 | 296 | "LCA4 (21066/21068)") |
274 | UNAME_MACHINE="alpha" ;; | |
297 | UNAME_MACHINE=alpha ;; | |
275 | 298 | "EV5 (21164)") |
276 | UNAME_MACHINE="alphaev5" ;; | |
299 | UNAME_MACHINE=alphaev5 ;; | |
277 | 300 | "EV5.6 (21164A)") |
278 | UNAME_MACHINE="alphaev56" ;; | |
301 | UNAME_MACHINE=alphaev56 ;; | |
279 | 302 | "EV5.6 (21164PC)") |
280 | UNAME_MACHINE="alphapca56" ;; | |
303 | UNAME_MACHINE=alphapca56 ;; | |
281 | 304 | "EV5.7 (21164PC)") |
282 | UNAME_MACHINE="alphapca57" ;; | |
305 | UNAME_MACHINE=alphapca57 ;; | |
283 | 306 | "EV6 (21264)") |
284 | UNAME_MACHINE="alphaev6" ;; | |
307 | UNAME_MACHINE=alphaev6 ;; | |
285 | 308 | "EV6.7 (21264A)") |
286 | UNAME_MACHINE="alphaev67" ;; | |
309 | UNAME_MACHINE=alphaev67 ;; | |
287 | 310 | "EV6.8CB (21264C)") |
288 | UNAME_MACHINE="alphaev68" ;; | |
311 | UNAME_MACHINE=alphaev68 ;; | |
289 | 312 | "EV6.8AL (21264B)") |
290 | UNAME_MACHINE="alphaev68" ;; | |
313 | UNAME_MACHINE=alphaev68 ;; | |
291 | 314 | "EV6.8CX (21264D)") |
292 | UNAME_MACHINE="alphaev68" ;; | |
315 | UNAME_MACHINE=alphaev68 ;; | |
293 | 316 | "EV6.9A (21264/EV69A)") |
294 | UNAME_MACHINE="alphaev69" ;; | |
317 | UNAME_MACHINE=alphaev69 ;; | |
295 | 318 | "EV7 (21364)") |
296 | UNAME_MACHINE="alphaev7" ;; | |
319 | UNAME_MACHINE=alphaev7 ;; | |
297 | 320 | "EV7.9 (21364A)") |
298 | UNAME_MACHINE="alphaev79" ;; | |
321 | UNAME_MACHINE=alphaev79 ;; | |
299 | 322 | esac |
300 | 323 | # A Pn.n version is a patched version. |
301 | 324 | # A Vn.n version is a released version. |
302 | 325 | # A Tn.n version is a released field test version. |
303 | 326 | # A Xn.n version is an unreleased experimental baselevel. |
304 | 327 | # 1.2 uses "1.2" for uname -r. |
305 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
328 | echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | |
306 | 329 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
307 | 330 | exitcode=$? |
308 | 331 | trap '' 0 |
309 | 332 | exit $exitcode ;; |
310 | Alpha\ *:Windows_NT*:*) | |
311 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
312 | # Should we change UNAME_MACHINE based on the output of uname instead | |
313 | # of the specific Alpha model? | |
314 | echo alpha-pc-interix | |
315 | exit ;; | |
316 | 21064:Windows_NT:50:3) | |
317 | echo alpha-dec-winnt3.5 | |
318 | exit ;; | |
319 | 333 | Amiga*:UNIX_System_V:4.0:*) |
320 | 334 | echo m68k-unknown-sysv4 |
321 | 335 | exit ;; |
322 | 336 | *:[Aa]miga[Oo][Ss]:*:*) |
323 | echo ${UNAME_MACHINE}-unknown-amigaos | |
337 | echo "$UNAME_MACHINE"-unknown-amigaos | |
324 | 338 | exit ;; |
325 | 339 | *:[Mm]orph[Oo][Ss]:*:*) |
326 | echo ${UNAME_MACHINE}-unknown-morphos | |
340 | echo "$UNAME_MACHINE"-unknown-morphos | |
327 | 341 | exit ;; |
328 | 342 | *:OS/390:*:*) |
329 | 343 | echo i370-ibm-openedition |
335 | 349 | echo powerpc-ibm-os400 |
336 | 350 | exit ;; |
337 | 351 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
338 | echo arm-acorn-riscix${UNAME_RELEASE} | |
352 | echo arm-acorn-riscix"$UNAME_RELEASE" | |
339 | 353 | exit ;; |
340 | 354 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
341 | 355 | echo arm-unknown-riscos |
362 | 376 | sparc) echo sparc-icl-nx7; exit ;; |
363 | 377 | esac ;; |
364 | 378 | s390x:SunOS:*:*) |
365 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
379 | echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
366 | 380 | exit ;; |
367 | 381 | sun4H:SunOS:5.*:*) |
368 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
382 | echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
369 | 383 | exit ;; |
370 | 384 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
371 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
385 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
372 | 386 | exit ;; |
373 | 387 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
374 | echo i386-pc-auroraux${UNAME_RELEASE} | |
388 | echo i386-pc-auroraux"$UNAME_RELEASE" | |
375 | 389 | exit ;; |
376 | 390 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
377 | eval $set_cc_for_build | |
378 | SUN_ARCH="i386" | |
391 | eval "$set_cc_for_build" | |
392 | SUN_ARCH=i386 | |
379 | 393 | # If there is a compiler, see if it is configured for 64-bit objects. |
380 | 394 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
381 | 395 | # This test works for both compilers. |
382 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
396 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
383 | 397 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
384 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
398 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
385 | 399 | grep IS_64BIT_ARCH >/dev/null |
386 | 400 | then |
387 | SUN_ARCH="x86_64" | |
401 | SUN_ARCH=x86_64 | |
388 | 402 | fi |
389 | 403 | fi |
390 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
404 | echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
391 | 405 | exit ;; |
392 | 406 | sun4*:SunOS:6*:*) |
393 | 407 | # According to config.sub, this is the proper way to canonicalize |
394 | 408 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
395 | 409 | # it's likely to be more like Solaris than SunOS4. |
396 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
410 | echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
397 | 411 | exit ;; |
398 | 412 | sun4*:SunOS:*:*) |
399 | 413 | case "`/usr/bin/arch -k`" in |
402 | 416 | ;; |
403 | 417 | esac |
404 | 418 | # Japanese Language versions have a version number like `4.1.3-JL'. |
405 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | |
419 | echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" | |
406 | 420 | exit ;; |
407 | 421 | sun3*:SunOS:*:*) |
408 | echo m68k-sun-sunos${UNAME_RELEASE} | |
422 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
409 | 423 | exit ;; |
410 | 424 | sun*:*:4.2BSD:*) |
411 | 425 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
412 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | |
426 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 | |
413 | 427 | case "`/bin/arch`" in |
414 | 428 | sun3) |
415 | echo m68k-sun-sunos${UNAME_RELEASE} | |
429 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
416 | 430 | ;; |
417 | 431 | sun4) |
418 | echo sparc-sun-sunos${UNAME_RELEASE} | |
432 | echo sparc-sun-sunos"$UNAME_RELEASE" | |
419 | 433 | ;; |
420 | 434 | esac |
421 | 435 | exit ;; |
422 | 436 | aushp:SunOS:*:*) |
423 | echo sparc-auspex-sunos${UNAME_RELEASE} | |
437 | echo sparc-auspex-sunos"$UNAME_RELEASE" | |
424 | 438 | exit ;; |
425 | 439 | # The situation for MiNT is a little confusing. The machine name |
426 | 440 | # can be virtually everything (everything which is not |
431 | 445 | # MiNT. But MiNT is downward compatible to TOS, so this should |
432 | 446 | # be no problem. |
433 | 447 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
434 | echo m68k-atari-mint${UNAME_RELEASE} | |
448 | echo m68k-atari-mint"$UNAME_RELEASE" | |
435 | 449 | exit ;; |
436 | 450 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
437 | echo m68k-atari-mint${UNAME_RELEASE} | |
451 | echo m68k-atari-mint"$UNAME_RELEASE" | |
438 | 452 | exit ;; |
439 | 453 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
440 | echo m68k-atari-mint${UNAME_RELEASE} | |
454 | echo m68k-atari-mint"$UNAME_RELEASE" | |
441 | 455 | exit ;; |
442 | 456 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
443 | echo m68k-milan-mint${UNAME_RELEASE} | |
457 | echo m68k-milan-mint"$UNAME_RELEASE" | |
444 | 458 | exit ;; |
445 | 459 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
446 | echo m68k-hades-mint${UNAME_RELEASE} | |
460 | echo m68k-hades-mint"$UNAME_RELEASE" | |
447 | 461 | exit ;; |
448 | 462 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
449 | echo m68k-unknown-mint${UNAME_RELEASE} | |
463 | echo m68k-unknown-mint"$UNAME_RELEASE" | |
450 | 464 | exit ;; |
451 | 465 | m68k:machten:*:*) |
452 | echo m68k-apple-machten${UNAME_RELEASE} | |
466 | echo m68k-apple-machten"$UNAME_RELEASE" | |
453 | 467 | exit ;; |
454 | 468 | powerpc:machten:*:*) |
455 | echo powerpc-apple-machten${UNAME_RELEASE} | |
469 | echo powerpc-apple-machten"$UNAME_RELEASE" | |
456 | 470 | exit ;; |
457 | 471 | RISC*:Mach:*:*) |
458 | 472 | echo mips-dec-mach_bsd4.3 |
459 | 473 | exit ;; |
460 | 474 | RISC*:ULTRIX:*:*) |
461 | echo mips-dec-ultrix${UNAME_RELEASE} | |
475 | echo mips-dec-ultrix"$UNAME_RELEASE" | |
462 | 476 | exit ;; |
463 | 477 | VAX*:ULTRIX*:*:*) |
464 | echo vax-dec-ultrix${UNAME_RELEASE} | |
478 | echo vax-dec-ultrix"$UNAME_RELEASE" | |
465 | 479 | exit ;; |
466 | 480 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
467 | echo clipper-intergraph-clix${UNAME_RELEASE} | |
481 | echo clipper-intergraph-clix"$UNAME_RELEASE" | |
468 | 482 | exit ;; |
469 | 483 | mips:*:*:UMIPS | mips:*:*:RISCos) |
470 | eval $set_cc_for_build | |
471 | sed 's/^ //' << EOF >$dummy.c | |
484 | eval "$set_cc_for_build" | |
485 | sed 's/^ //' << EOF > "$dummy.c" | |
472 | 486 | #ifdef __cplusplus |
473 | 487 | #include <stdio.h> /* for printf() prototype */ |
474 | 488 | int main (int argc, char *argv[]) { |
477 | 491 | #endif |
478 | 492 | #if defined (host_mips) && defined (MIPSEB) |
479 | 493 | #if defined (SYSTYPE_SYSV) |
480 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
494 | printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); | |
481 | 495 | #endif |
482 | 496 | #if defined (SYSTYPE_SVR4) |
483 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
497 | printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); | |
484 | 498 | #endif |
485 | 499 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
486 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
500 | printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); | |
487 | 501 | #endif |
488 | 502 | #endif |
489 | 503 | exit (-1); |
490 | 504 | } |
491 | 505 | EOF |
492 | $CC_FOR_BUILD -o $dummy $dummy.c && | |
493 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
494 | SYSTEM_NAME=`$dummy $dummyarg` && | |
506 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && | |
507 | dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
508 | SYSTEM_NAME=`"$dummy" "$dummyarg"` && | |
495 | 509 | { echo "$SYSTEM_NAME"; exit; } |
496 | echo mips-mips-riscos${UNAME_RELEASE} | |
510 | echo mips-mips-riscos"$UNAME_RELEASE" | |
497 | 511 | exit ;; |
498 | 512 | Motorola:PowerMAX_OS:*:*) |
499 | 513 | echo powerpc-motorola-powermax |
519 | 533 | AViiON:dgux:*:*) |
520 | 534 | # DG/UX returns AViiON for all architectures |
521 | 535 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
522 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
536 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | |
523 | 537 | then |
524 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
525 | [ ${TARGET_BINARY_INTERFACE}x = x ] | |
538 | if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ | |
539 | [ "$TARGET_BINARY_INTERFACE"x = x ] | |
526 | 540 | then |
527 | echo m88k-dg-dgux${UNAME_RELEASE} | |
541 | echo m88k-dg-dgux"$UNAME_RELEASE" | |
528 | 542 | else |
529 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
543 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | |
530 | 544 | fi |
531 | 545 | else |
532 | echo i586-dg-dgux${UNAME_RELEASE} | |
546 | echo i586-dg-dgux"$UNAME_RELEASE" | |
533 | 547 | fi |
534 | 548 | exit ;; |
535 | 549 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
546 | 560 | echo m68k-tektronix-bsd |
547 | 561 | exit ;; |
548 | 562 | *:IRIX*:*:*) |
549 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | |
563 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | |
550 | 564 | exit ;; |
551 | 565 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
552 | 566 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
558 | 572 | if [ -x /usr/bin/oslevel ] ; then |
559 | 573 | IBM_REV=`/usr/bin/oslevel` |
560 | 574 | else |
561 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
562 | fi | |
563 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | |
575 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
576 | fi | |
577 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | |
564 | 578 | exit ;; |
565 | 579 | *:AIX:2:3) |
566 | 580 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
567 | eval $set_cc_for_build | |
568 | sed 's/^ //' << EOF >$dummy.c | |
581 | eval "$set_cc_for_build" | |
582 | sed 's/^ //' << EOF > "$dummy.c" | |
569 | 583 | #include <sys/systemcfg.h> |
570 | 584 | |
571 | 585 | main() |
576 | 590 | exit(0); |
577 | 591 | } |
578 | 592 | EOF |
579 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | |
593 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` | |
580 | 594 | then |
581 | 595 | echo "$SYSTEM_NAME" |
582 | 596 | else |
590 | 604 | exit ;; |
591 | 605 | *:AIX:*:[4567]) |
592 | 606 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
593 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
607 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | |
594 | 608 | IBM_ARCH=rs6000 |
595 | 609 | else |
596 | 610 | IBM_ARCH=powerpc |
599 | 613 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | |
600 | 614 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
601 | 615 | else |
602 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
603 | fi | |
604 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |
616 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
617 | fi | |
618 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | |
605 | 619 | exit ;; |
606 | 620 | *:AIX:*:*) |
607 | 621 | echo rs6000-ibm-aix |
608 | 622 | exit ;; |
609 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
623 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | |
610 | 624 | echo romp-ibm-bsd4.4 |
611 | 625 | exit ;; |
612 | 626 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
613 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | |
627 | echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to | |
614 | 628 | exit ;; # report: romp-ibm BSD 4.3 |
615 | 629 | *:BOSX:*:*) |
616 | 630 | echo rs6000-bull-bosx |
625 | 639 | echo m68k-hp-bsd4.4 |
626 | 640 | exit ;; |
627 | 641 | 9000/[34678]??:HP-UX:*:*) |
628 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
629 | case "${UNAME_MACHINE}" in | |
630 | 9000/31? ) HP_ARCH=m68000 ;; | |
631 | 9000/[34]?? ) HP_ARCH=m68k ;; | |
642 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
643 | case "$UNAME_MACHINE" in | |
644 | 9000/31?) HP_ARCH=m68000 ;; | |
645 | 9000/[34]??) HP_ARCH=m68k ;; | |
632 | 646 | 9000/[678][0-9][0-9]) |
633 | 647 | if [ -x /usr/bin/getconf ]; then |
634 | 648 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
635 | 649 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
636 | case "${sc_cpu_version}" in | |
637 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
638 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
650 | case "$sc_cpu_version" in | |
651 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | |
652 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | |
639 | 653 | 532) # CPU_PA_RISC2_0 |
640 | case "${sc_kernel_bits}" in | |
641 | 32) HP_ARCH="hppa2.0n" ;; | |
642 | 64) HP_ARCH="hppa2.0w" ;; | |
643 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
654 | case "$sc_kernel_bits" in | |
655 | 32) HP_ARCH=hppa2.0n ;; | |
656 | 64) HP_ARCH=hppa2.0w ;; | |
657 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 | |
644 | 658 | esac ;; |
645 | 659 | esac |
646 | 660 | fi |
647 | if [ "${HP_ARCH}" = "" ]; then | |
648 | eval $set_cc_for_build | |
649 | sed 's/^ //' << EOF >$dummy.c | |
661 | if [ "$HP_ARCH" = "" ]; then | |
662 | eval "$set_cc_for_build" | |
663 | sed 's/^ //' << EOF > "$dummy.c" | |
650 | 664 | |
651 | 665 | #define _HPUX_SOURCE |
652 | 666 | #include <stdlib.h> |
679 | 693 | exit (0); |
680 | 694 | } |
681 | 695 | EOF |
682 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
696 | (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` | |
683 | 697 | test -z "$HP_ARCH" && HP_ARCH=hppa |
684 | 698 | fi ;; |
685 | 699 | esac |
686 | if [ ${HP_ARCH} = "hppa2.0w" ] | |
700 | if [ "$HP_ARCH" = hppa2.0w ] | |
687 | 701 | then |
688 | eval $set_cc_for_build | |
702 | eval "$set_cc_for_build" | |
689 | 703 | |
690 | 704 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
691 | 705 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
696 | 710 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
697 | 711 | # => hppa64-hp-hpux11.23 |
698 | 712 | |
699 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
713 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | |
700 | 714 | grep -q __LP64__ |
701 | 715 | then |
702 | HP_ARCH="hppa2.0w" | |
716 | HP_ARCH=hppa2.0w | |
703 | 717 | else |
704 | HP_ARCH="hppa64" | |
718 | HP_ARCH=hppa64 | |
705 | 719 | fi |
706 | 720 | fi |
707 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
721 | echo "$HP_ARCH"-hp-hpux"$HPUX_REV" | |
708 | 722 | exit ;; |
709 | 723 | ia64:HP-UX:*:*) |
710 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
711 | echo ia64-hp-hpux${HPUX_REV} | |
724 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
725 | echo ia64-hp-hpux"$HPUX_REV" | |
712 | 726 | exit ;; |
713 | 727 | 3050*:HI-UX:*:*) |
714 | eval $set_cc_for_build | |
715 | sed 's/^ //' << EOF >$dummy.c | |
728 | eval "$set_cc_for_build" | |
729 | sed 's/^ //' << EOF > "$dummy.c" | |
716 | 730 | #include <unistd.h> |
717 | 731 | int |
718 | 732 | main () |
737 | 751 | exit (0); |
738 | 752 | } |
739 | 753 | EOF |
740 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
754 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && | |
741 | 755 | { echo "$SYSTEM_NAME"; exit; } |
742 | 756 | echo unknown-hitachi-hiuxwe2 |
743 | 757 | exit ;; |
744 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
758 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) | |
745 | 759 | echo hppa1.1-hp-bsd |
746 | 760 | exit ;; |
747 | 761 | 9000/8??:4.3bsd:*:*) |
750 | 764 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
751 | 765 | echo hppa1.0-hp-mpeix |
752 | 766 | exit ;; |
753 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
767 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | |
754 | 768 | echo hppa1.1-hp-osf |
755 | 769 | exit ;; |
756 | 770 | hp8??:OSF1:*:*) |
758 | 772 | exit ;; |
759 | 773 | i*86:OSF1:*:*) |
760 | 774 | if [ -x /usr/sbin/sysversion ] ; then |
761 | echo ${UNAME_MACHINE}-unknown-osf1mk | |
775 | echo "$UNAME_MACHINE"-unknown-osf1mk | |
762 | 776 | else |
763 | echo ${UNAME_MACHINE}-unknown-osf1 | |
777 | echo "$UNAME_MACHINE"-unknown-osf1 | |
764 | 778 | fi |
765 | 779 | exit ;; |
766 | 780 | parisc*:Lites*:*:*) |
785 | 799 | echo c4-convex-bsd |
786 | 800 | exit ;; |
787 | 801 | CRAY*Y-MP:*:*:*) |
788 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
802 | echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
789 | 803 | exit ;; |
790 | 804 | CRAY*[A-Z]90:*:*:*) |
791 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
805 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | |
792 | 806 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
793 | 807 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
794 | 808 | -e 's/\.[^.]*$/.X/' |
795 | 809 | exit ;; |
796 | 810 | CRAY*TS:*:*:*) |
797 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
811 | echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
798 | 812 | exit ;; |
799 | 813 | CRAY*T3E:*:*:*) |
800 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
814 | echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
801 | 815 | exit ;; |
802 | 816 | CRAY*SV1:*:*:*) |
803 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
817 | echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
804 | 818 | exit ;; |
805 | 819 | *:UNICOS/mp:*:*) |
806 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
820 | echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
807 | 821 | exit ;; |
808 | 822 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
809 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
810 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
811 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
823 | FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | |
824 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
825 | FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` | |
812 | 826 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
813 | 827 | exit ;; |
814 | 828 | 5000:UNIX_System_V:4.*:*) |
815 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
816 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
829 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
830 | FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` | |
817 | 831 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
818 | 832 | exit ;; |
819 | 833 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
820 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
834 | echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" | |
821 | 835 | exit ;; |
822 | 836 | sparc*:BSD/OS:*:*) |
823 | echo sparc-unknown-bsdi${UNAME_RELEASE} | |
837 | echo sparc-unknown-bsdi"$UNAME_RELEASE" | |
824 | 838 | exit ;; |
825 | 839 | *:BSD/OS:*:*) |
826 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
840 | echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" | |
827 | 841 | exit ;; |
828 | 842 | *:FreeBSD:*:*) |
829 | 843 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
830 | case ${UNAME_PROCESSOR} in | |
844 | case "$UNAME_PROCESSOR" in | |
831 | 845 | amd64) |
832 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
833 | *) | |
834 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
846 | UNAME_PROCESSOR=x86_64 ;; | |
847 | i386) | |
848 | UNAME_PROCESSOR=i586 ;; | |
835 | 849 | esac |
850 | echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
836 | 851 | exit ;; |
837 | 852 | i*:CYGWIN*:*) |
838 | echo ${UNAME_MACHINE}-pc-cygwin | |
853 | echo "$UNAME_MACHINE"-pc-cygwin | |
839 | 854 | exit ;; |
840 | 855 | *:MINGW64*:*) |
841 | echo ${UNAME_MACHINE}-pc-mingw64 | |
856 | echo "$UNAME_MACHINE"-pc-mingw64 | |
842 | 857 | exit ;; |
843 | 858 | *:MINGW*:*) |
844 | echo ${UNAME_MACHINE}-pc-mingw32 | |
859 | echo "$UNAME_MACHINE"-pc-mingw32 | |
845 | 860 | exit ;; |
846 | 861 | *:MSYS*:*) |
847 | echo ${UNAME_MACHINE}-pc-msys | |
848 | exit ;; | |
849 | i*:windows32*:*) | |
850 | # uname -m includes "-pc" on this system. | |
851 | echo ${UNAME_MACHINE}-mingw32 | |
862 | echo "$UNAME_MACHINE"-pc-msys | |
852 | 863 | exit ;; |
853 | 864 | i*:PW*:*) |
854 | echo ${UNAME_MACHINE}-pc-pw32 | |
865 | echo "$UNAME_MACHINE"-pc-pw32 | |
855 | 866 | exit ;; |
856 | 867 | *:Interix*:*) |
857 | case ${UNAME_MACHINE} in | |
868 | case "$UNAME_MACHINE" in | |
858 | 869 | x86) |
859 | echo i586-pc-interix${UNAME_RELEASE} | |
870 | echo i586-pc-interix"$UNAME_RELEASE" | |
860 | 871 | exit ;; |
861 | 872 | authenticamd | genuineintel | EM64T) |
862 | echo x86_64-unknown-interix${UNAME_RELEASE} | |
873 | echo x86_64-unknown-interix"$UNAME_RELEASE" | |
863 | 874 | exit ;; |
864 | 875 | IA64) |
865 | echo ia64-unknown-interix${UNAME_RELEASE} | |
876 | echo ia64-unknown-interix"$UNAME_RELEASE" | |
866 | 877 | exit ;; |
867 | 878 | esac ;; |
868 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
869 | echo i${UNAME_MACHINE}-pc-mks | |
870 | exit ;; | |
871 | 8664:Windows_NT:*) | |
872 | echo x86_64-pc-mks | |
873 | exit ;; | |
874 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
875 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
876 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
877 | # UNAME_MACHINE based on the output of uname instead of i386? | |
878 | echo i586-pc-interix | |
879 | exit ;; | |
880 | 879 | i*:UWIN*:*) |
881 | echo ${UNAME_MACHINE}-pc-uwin | |
880 | echo "$UNAME_MACHINE"-pc-uwin | |
882 | 881 | exit ;; |
883 | 882 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
884 | 883 | echo x86_64-unknown-cygwin |
885 | 884 | exit ;; |
886 | p*:CYGWIN*:*) | |
887 | echo powerpcle-unknown-cygwin | |
888 | exit ;; | |
889 | 885 | prep*:SunOS:5.*:*) |
890 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
886 | echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
891 | 887 | exit ;; |
892 | 888 | *:GNU:*:*) |
893 | 889 | # the GNU system |
894 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
890 | echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" | |
895 | 891 | exit ;; |
896 | 892 | *:GNU/*:*:*) |
897 | 893 | # other systems with GNU libc and userland |
898 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
894 | echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" | |
899 | 895 | exit ;; |
900 | 896 | i*86:Minix:*:*) |
901 | echo ${UNAME_MACHINE}-pc-minix | |
897 | echo "$UNAME_MACHINE"-pc-minix | |
902 | 898 | exit ;; |
903 | 899 | aarch64:Linux:*:*) |
904 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
900 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
905 | 901 | exit ;; |
906 | 902 | aarch64_be:Linux:*:*) |
907 | 903 | UNAME_MACHINE=aarch64_be |
908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
904 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
909 | 905 | exit ;; |
910 | 906 | alpha:Linux:*:*) |
911 | 907 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
918 | 914 | EV68*) UNAME_MACHINE=alphaev68 ;; |
919 | 915 | esac |
920 | 916 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
921 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
922 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
917 | if test "$?" = 0 ; then LIBC=gnulibc1 ; fi | |
918 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
923 | 919 | exit ;; |
924 | 920 | arc:Linux:*:* | arceb:Linux:*:*) |
925 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
921 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
926 | 922 | exit ;; |
927 | 923 | arm*:Linux:*:*) |
928 | eval $set_cc_for_build | |
924 | eval "$set_cc_for_build" | |
929 | 925 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
930 | 926 | | grep -q __ARM_EABI__ |
931 | 927 | then |
932 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
928 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
933 | 929 | else |
934 | 930 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
935 | 931 | | grep -q __ARM_PCS_VFP |
936 | 932 | then |
937 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
933 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi | |
938 | 934 | else |
939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
935 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf | |
940 | 936 | fi |
941 | 937 | fi |
942 | 938 | exit ;; |
943 | 939 | avr32*:Linux:*:*) |
944 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
940 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
945 | 941 | exit ;; |
946 | 942 | cris:Linux:*:*) |
947 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
943 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
948 | 944 | exit ;; |
949 | 945 | crisv32:Linux:*:*) |
950 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
946 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
951 | 947 | exit ;; |
952 | 948 | e2k:Linux:*:*) |
953 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
949 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
954 | 950 | exit ;; |
955 | 951 | frv:Linux:*:*) |
956 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
952 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
957 | 953 | exit ;; |
958 | 954 | hexagon:Linux:*:*) |
959 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
955 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
960 | 956 | exit ;; |
961 | 957 | i*86:Linux:*:*) |
962 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
958 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
963 | 959 | exit ;; |
964 | 960 | ia64:Linux:*:*) |
965 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
961 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
962 | exit ;; | |
963 | k1om:Linux:*:*) | |
964 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
966 | 965 | exit ;; |
967 | 966 | m32r*:Linux:*:*) |
968 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
967 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
969 | 968 | exit ;; |
970 | 969 | m68*:Linux:*:*) |
971 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
970 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
972 | 971 | exit ;; |
973 | 972 | mips:Linux:*:* | mips64:Linux:*:*) |
974 | eval $set_cc_for_build | |
975 | sed 's/^ //' << EOF >$dummy.c | |
973 | eval "$set_cc_for_build" | |
974 | sed 's/^ //' << EOF > "$dummy.c" | |
976 | 975 | #undef CPU |
977 | 976 | #undef ${UNAME_MACHINE} |
978 | 977 | #undef ${UNAME_MACHINE}el |
986 | 985 | #endif |
987 | 986 | #endif |
988 | 987 | EOF |
989 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
990 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |
988 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" | |
989 | test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } | |
991 | 990 | ;; |
991 | mips64el:Linux:*:*) | |
992 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
993 | exit ;; | |
992 | 994 | openrisc*:Linux:*:*) |
993 | echo or1k-unknown-linux-${LIBC} | |
995 | echo or1k-unknown-linux-"$LIBC" | |
994 | 996 | exit ;; |
995 | 997 | or32:Linux:*:* | or1k*:Linux:*:*) |
996 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
998 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
997 | 999 | exit ;; |
998 | 1000 | padre:Linux:*:*) |
999 | echo sparc-unknown-linux-${LIBC} | |
1001 | echo sparc-unknown-linux-"$LIBC" | |
1000 | 1002 | exit ;; |
1001 | 1003 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
1002 | echo hppa64-unknown-linux-${LIBC} | |
1004 | echo hppa64-unknown-linux-"$LIBC" | |
1003 | 1005 | exit ;; |
1004 | 1006 | parisc:Linux:*:* | hppa:Linux:*:*) |
1005 | 1007 | # Look for CPU level |
1006 | 1008 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
1007 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | |
1008 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | |
1009 | *) echo hppa-unknown-linux-${LIBC} ;; | |
1009 | PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; | |
1010 | PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; | |
1011 | *) echo hppa-unknown-linux-"$LIBC" ;; | |
1010 | 1012 | esac |
1011 | 1013 | exit ;; |
1012 | 1014 | ppc64:Linux:*:*) |
1013 | echo powerpc64-unknown-linux-${LIBC} | |
1015 | echo powerpc64-unknown-linux-"$LIBC" | |
1014 | 1016 | exit ;; |
1015 | 1017 | ppc:Linux:*:*) |
1016 | echo powerpc-unknown-linux-${LIBC} | |
1018 | echo powerpc-unknown-linux-"$LIBC" | |
1017 | 1019 | exit ;; |
1018 | 1020 | ppc64le:Linux:*:*) |
1019 | echo powerpc64le-unknown-linux-${LIBC} | |
1021 | echo powerpc64le-unknown-linux-"$LIBC" | |
1020 | 1022 | exit ;; |
1021 | 1023 | ppcle:Linux:*:*) |
1022 | echo powerpcle-unknown-linux-${LIBC} | |
1024 | echo powerpcle-unknown-linux-"$LIBC" | |
1025 | exit ;; | |
1026 | riscv32:Linux:*:* | riscv64:Linux:*:*) | |
1027 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1023 | 1028 | exit ;; |
1024 | 1029 | s390:Linux:*:* | s390x:Linux:*:*) |
1025 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
1030 | echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" | |
1026 | 1031 | exit ;; |
1027 | 1032 | sh64*:Linux:*:*) |
1028 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1033 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1029 | 1034 | exit ;; |
1030 | 1035 | sh*:Linux:*:*) |
1031 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1036 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1032 | 1037 | exit ;; |
1033 | 1038 | sparc:Linux:*:* | sparc64:Linux:*:*) |
1034 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1039 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1035 | 1040 | exit ;; |
1036 | 1041 | tile*:Linux:*:*) |
1037 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1042 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1038 | 1043 | exit ;; |
1039 | 1044 | vax:Linux:*:*) |
1040 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
1045 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | |
1041 | 1046 | exit ;; |
1042 | 1047 | x86_64:Linux:*:*) |
1043 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
1048 | if objdump -f /bin/sh | grep -q elf32-x86-64; then | |
1049 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 | |
1050 | else | |
1051 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
1052 | fi | |
1044 | 1053 | exit ;; |
1045 | 1054 | xtensa*:Linux:*:*) |
1046 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1055 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1047 | 1056 | exit ;; |
1048 | 1057 | i*86:DYNIX/ptx:4*:*) |
1049 | 1058 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1057 | 1066 | # I am not positive that other SVR4 systems won't match this, |
1058 | 1067 | # I just have to hope. -- rms. |
1059 | 1068 | # Use sysv4.2uw... so that sysv4* matches it. |
1060 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | |
1069 | echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" | |
1061 | 1070 | exit ;; |
1062 | 1071 | i*86:OS/2:*:*) |
1063 | 1072 | # If we were able to find `uname', then EMX Unix compatibility |
1064 | 1073 | # is probably installed. |
1065 | echo ${UNAME_MACHINE}-pc-os2-emx | |
1074 | echo "$UNAME_MACHINE"-pc-os2-emx | |
1066 | 1075 | exit ;; |
1067 | 1076 | i*86:XTS-300:*:STOP) |
1068 | echo ${UNAME_MACHINE}-unknown-stop | |
1077 | echo "$UNAME_MACHINE"-unknown-stop | |
1069 | 1078 | exit ;; |
1070 | 1079 | i*86:atheos:*:*) |
1071 | echo ${UNAME_MACHINE}-unknown-atheos | |
1080 | echo "$UNAME_MACHINE"-unknown-atheos | |
1072 | 1081 | exit ;; |
1073 | 1082 | i*86:syllable:*:*) |
1074 | echo ${UNAME_MACHINE}-pc-syllable | |
1083 | echo "$UNAME_MACHINE"-pc-syllable | |
1075 | 1084 | exit ;; |
1076 | 1085 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1077 | echo i386-unknown-lynxos${UNAME_RELEASE} | |
1086 | echo i386-unknown-lynxos"$UNAME_RELEASE" | |
1078 | 1087 | exit ;; |
1079 | 1088 | i*86:*DOS:*:*) |
1080 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
1081 | exit ;; | |
1082 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | |
1083 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | |
1089 | echo "$UNAME_MACHINE"-pc-msdosdjgpp | |
1090 | exit ;; | |
1091 | i*86:*:4.*:*) | |
1092 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` | |
1084 | 1093 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
1085 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | |
1094 | echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" | |
1086 | 1095 | else |
1087 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | |
1096 | echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" | |
1088 | 1097 | fi |
1089 | 1098 | exit ;; |
1090 | 1099 | i*86:*:5:[678]*) |
1094 | 1103 | *Pentium) UNAME_MACHINE=i586 ;; |
1095 | 1104 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1096 | 1105 | esac |
1097 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
1106 | echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" | |
1098 | 1107 | exit ;; |
1099 | 1108 | i*86:*:3.2:*) |
1100 | 1109 | if test -f /usr/options/cb.name; then |
1101 | 1110 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
1102 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | |
1111 | echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" | |
1103 | 1112 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
1104 | 1113 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
1105 | 1114 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
1109 | 1118 | && UNAME_MACHINE=i686 |
1110 | 1119 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
1111 | 1120 | && UNAME_MACHINE=i686 |
1112 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | |
1121 | echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" | |
1113 | 1122 | else |
1114 | echo ${UNAME_MACHINE}-pc-sysv32 | |
1123 | echo "$UNAME_MACHINE"-pc-sysv32 | |
1115 | 1124 | fi |
1116 | 1125 | exit ;; |
1117 | 1126 | pc:*:*:*) |
1119 | 1128 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1120 | 1129 | # the processor, so we play safe by assuming i586. |
1121 | 1130 | # Note: whatever this is, it MUST be the same as what config.sub |
1122 | # prints for the "djgpp" host, or else GDB configury will decide that | |
1131 | # prints for the "djgpp" host, or else GDB configure will decide that | |
1123 | 1132 | # this is a cross-build. |
1124 | 1133 | echo i586-pc-msdosdjgpp |
1125 | 1134 | exit ;; |
1131 | 1140 | exit ;; |
1132 | 1141 | i860:*:4.*:*) # i860-SVR4 |
1133 | 1142 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
1134 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | |
1143 | echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 | |
1135 | 1144 | else # Add other i860-SVR4 vendors below as they are discovered. |
1136 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | |
1145 | echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 | |
1137 | 1146 | fi |
1138 | 1147 | exit ;; |
1139 | 1148 | mini*:CTIX:SYS*5:*) |
1153 | 1162 | test -r /etc/.relid \ |
1154 | 1163 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1155 | 1164 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1156 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1165 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1157 | 1166 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1158 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1167 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1159 | 1168 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1160 | 1169 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1161 | 1170 | && { echo i486-ncr-sysv4; exit; } ;; |
1164 | 1173 | test -r /etc/.relid \ |
1165 | 1174 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1166 | 1175 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1167 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1176 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1168 | 1177 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1169 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
1178 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } | |
1170 | 1179 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
1171 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1180 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1172 | 1181 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1173 | echo m68k-unknown-lynxos${UNAME_RELEASE} | |
1182 | echo m68k-unknown-lynxos"$UNAME_RELEASE" | |
1174 | 1183 | exit ;; |
1175 | 1184 | mc68030:UNIX_System_V:4.*:*) |
1176 | 1185 | echo m68k-atari-sysv4 |
1177 | 1186 | exit ;; |
1178 | 1187 | TSUNAMI:LynxOS:2.*:*) |
1179 | echo sparc-unknown-lynxos${UNAME_RELEASE} | |
1188 | echo sparc-unknown-lynxos"$UNAME_RELEASE" | |
1180 | 1189 | exit ;; |
1181 | 1190 | rs6000:LynxOS:2.*:*) |
1182 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
1191 | echo rs6000-unknown-lynxos"$UNAME_RELEASE" | |
1183 | 1192 | exit ;; |
1184 | 1193 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1185 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | |
1194 | echo powerpc-unknown-lynxos"$UNAME_RELEASE" | |
1186 | 1195 | exit ;; |
1187 | 1196 | SM[BE]S:UNIX_SV:*:*) |
1188 | echo mips-dde-sysv${UNAME_RELEASE} | |
1197 | echo mips-dde-sysv"$UNAME_RELEASE" | |
1189 | 1198 | exit ;; |
1190 | 1199 | RM*:ReliantUNIX-*:*:*) |
1191 | 1200 | echo mips-sni-sysv4 |
1196 | 1205 | *:SINIX-*:*:*) |
1197 | 1206 | if uname -p 2>/dev/null >/dev/null ; then |
1198 | 1207 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1199 | echo ${UNAME_MACHINE}-sni-sysv4 | |
1208 | echo "$UNAME_MACHINE"-sni-sysv4 | |
1200 | 1209 | else |
1201 | 1210 | echo ns32k-sni-sysv |
1202 | 1211 | fi |
1216 | 1225 | exit ;; |
1217 | 1226 | i*86:VOS:*:*) |
1218 | 1227 | # From Paul.Green@stratus.com. |
1219 | echo ${UNAME_MACHINE}-stratus-vos | |
1228 | echo "$UNAME_MACHINE"-stratus-vos | |
1220 | 1229 | exit ;; |
1221 | 1230 | *:VOS:*:*) |
1222 | 1231 | # From Paul.Green@stratus.com. |
1223 | 1232 | echo hppa1.1-stratus-vos |
1224 | 1233 | exit ;; |
1225 | 1234 | mc68*:A/UX:*:*) |
1226 | echo m68k-apple-aux${UNAME_RELEASE} | |
1235 | echo m68k-apple-aux"$UNAME_RELEASE" | |
1227 | 1236 | exit ;; |
1228 | 1237 | news*:NEWS-OS:6*:*) |
1229 | 1238 | echo mips-sony-newsos6 |
1230 | 1239 | exit ;; |
1231 | 1240 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1232 | 1241 | if [ -d /usr/nec ]; then |
1233 | echo mips-nec-sysv${UNAME_RELEASE} | |
1242 | echo mips-nec-sysv"$UNAME_RELEASE" | |
1234 | 1243 | else |
1235 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1244 | echo mips-unknown-sysv"$UNAME_RELEASE" | |
1236 | 1245 | fi |
1237 | 1246 | exit ;; |
1238 | 1247 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1251 | 1260 | echo x86_64-unknown-haiku |
1252 | 1261 | exit ;; |
1253 | 1262 | SX-4:SUPER-UX:*:*) |
1254 | echo sx4-nec-superux${UNAME_RELEASE} | |
1263 | echo sx4-nec-superux"$UNAME_RELEASE" | |
1255 | 1264 | exit ;; |
1256 | 1265 | SX-5:SUPER-UX:*:*) |
1257 | echo sx5-nec-superux${UNAME_RELEASE} | |
1266 | echo sx5-nec-superux"$UNAME_RELEASE" | |
1258 | 1267 | exit ;; |
1259 | 1268 | SX-6:SUPER-UX:*:*) |
1260 | echo sx6-nec-superux${UNAME_RELEASE} | |
1269 | echo sx6-nec-superux"$UNAME_RELEASE" | |
1261 | 1270 | exit ;; |
1262 | 1271 | SX-7:SUPER-UX:*:*) |
1263 | echo sx7-nec-superux${UNAME_RELEASE} | |
1272 | echo sx7-nec-superux"$UNAME_RELEASE" | |
1264 | 1273 | exit ;; |
1265 | 1274 | SX-8:SUPER-UX:*:*) |
1266 | echo sx8-nec-superux${UNAME_RELEASE} | |
1275 | echo sx8-nec-superux"$UNAME_RELEASE" | |
1267 | 1276 | exit ;; |
1268 | 1277 | SX-8R:SUPER-UX:*:*) |
1269 | echo sx8r-nec-superux${UNAME_RELEASE} | |
1278 | echo sx8r-nec-superux"$UNAME_RELEASE" | |
1279 | exit ;; | |
1280 | SX-ACE:SUPER-UX:*:*) | |
1281 | echo sxace-nec-superux"$UNAME_RELEASE" | |
1270 | 1282 | exit ;; |
1271 | 1283 | Power*:Rhapsody:*:*) |
1272 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
1284 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | |
1273 | 1285 | exit ;; |
1274 | 1286 | *:Rhapsody:*:*) |
1275 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |
1287 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | |
1276 | 1288 | exit ;; |
1277 | 1289 | *:Darwin:*:*) |
1278 | 1290 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1279 | eval $set_cc_for_build | |
1291 | eval "$set_cc_for_build" | |
1280 | 1292 | if test "$UNAME_PROCESSOR" = unknown ; then |
1281 | 1293 | UNAME_PROCESSOR=powerpc |
1282 | 1294 | fi |
1283 | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | |
1284 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1295 | if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then | |
1296 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
1285 | 1297 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
1286 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1287 | grep IS_64BIT_ARCH >/dev/null | |
1298 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1299 | grep IS_64BIT_ARCH >/dev/null | |
1288 | 1300 | then |
1289 | 1301 | case $UNAME_PROCESSOR in |
1290 | 1302 | i386) UNAME_PROCESSOR=x86_64 ;; |
1291 | 1303 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
1292 | 1304 | esac |
1305 | fi | |
1306 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | |
1307 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | |
1308 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1309 | grep IS_PPC >/dev/null | |
1310 | then | |
1311 | UNAME_PROCESSOR=powerpc | |
1293 | 1312 | fi |
1294 | 1313 | fi |
1295 | 1314 | elif test "$UNAME_PROCESSOR" = i386 ; then |
1301 | 1320 | # that Apple uses in portable devices. |
1302 | 1321 | UNAME_PROCESSOR=x86_64 |
1303 | 1322 | fi |
1304 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
1323 | echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" | |
1305 | 1324 | exit ;; |
1306 | 1325 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1307 | 1326 | UNAME_PROCESSOR=`uname -p` |
1308 | if test "$UNAME_PROCESSOR" = "x86"; then | |
1327 | if test "$UNAME_PROCESSOR" = x86; then | |
1309 | 1328 | UNAME_PROCESSOR=i386 |
1310 | 1329 | UNAME_MACHINE=pc |
1311 | 1330 | fi |
1312 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |
1331 | echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" | |
1313 | 1332 | exit ;; |
1314 | 1333 | *:QNX:*:4*) |
1315 | 1334 | echo i386-pc-qnx |
1316 | 1335 | exit ;; |
1317 | NEO-?:NONSTOP_KERNEL:*:*) | |
1318 | echo neo-tandem-nsk${UNAME_RELEASE} | |
1336 | NEO-*:NONSTOP_KERNEL:*:*) | |
1337 | echo neo-tandem-nsk"$UNAME_RELEASE" | |
1319 | 1338 | exit ;; |
1320 | 1339 | NSE-*:NONSTOP_KERNEL:*:*) |
1321 | echo nse-tandem-nsk${UNAME_RELEASE} | |
1322 | exit ;; | |
1323 | NSR-?:NONSTOP_KERNEL:*:*) | |
1324 | echo nsr-tandem-nsk${UNAME_RELEASE} | |
1340 | echo nse-tandem-nsk"$UNAME_RELEASE" | |
1341 | exit ;; | |
1342 | NSR-*:NONSTOP_KERNEL:*:*) | |
1343 | echo nsr-tandem-nsk"$UNAME_RELEASE" | |
1344 | exit ;; | |
1345 | NSV-*:NONSTOP_KERNEL:*:*) | |
1346 | echo nsv-tandem-nsk"$UNAME_RELEASE" | |
1347 | exit ;; | |
1348 | NSX-*:NONSTOP_KERNEL:*:*) | |
1349 | echo nsx-tandem-nsk"$UNAME_RELEASE" | |
1325 | 1350 | exit ;; |
1326 | 1351 | *:NonStop-UX:*:*) |
1327 | 1352 | echo mips-compaq-nonstopux |
1330 | 1355 | echo bs2000-siemens-sysv |
1331 | 1356 | exit ;; |
1332 | 1357 | DS/*:UNIX_System_V:*:*) |
1333 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1358 | echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" | |
1334 | 1359 | exit ;; |
1335 | 1360 | *:Plan9:*:*) |
1336 | 1361 | # "uname -m" is not consistent, so use $cputype instead. 386 |
1337 | 1362 | # is converted to i386 for consistency with other x86 |
1338 | 1363 | # operating systems. |
1339 | if test "$cputype" = "386"; then | |
1364 | if test "$cputype" = 386; then | |
1340 | 1365 | UNAME_MACHINE=i386 |
1341 | 1366 | else |
1342 | 1367 | UNAME_MACHINE="$cputype" |
1343 | 1368 | fi |
1344 | echo ${UNAME_MACHINE}-unknown-plan9 | |
1369 | echo "$UNAME_MACHINE"-unknown-plan9 | |
1345 | 1370 | exit ;; |
1346 | 1371 | *:TOPS-10:*:*) |
1347 | 1372 | echo pdp10-unknown-tops10 |
1362 | 1387 | echo pdp10-unknown-its |
1363 | 1388 | exit ;; |
1364 | 1389 | SEI:*:*:SEIUX) |
1365 | echo mips-sei-seiux${UNAME_RELEASE} | |
1390 | echo mips-sei-seiux"$UNAME_RELEASE" | |
1366 | 1391 | exit ;; |
1367 | 1392 | *:DragonFly:*:*) |
1368 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | |
1393 | echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
1369 | 1394 | exit ;; |
1370 | 1395 | *:*VMS:*:*) |
1371 | 1396 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1372 | case "${UNAME_MACHINE}" in | |
1397 | case "$UNAME_MACHINE" in | |
1373 | 1398 | A*) echo alpha-dec-vms ; exit ;; |
1374 | 1399 | I*) echo ia64-dec-vms ; exit ;; |
1375 | 1400 | V*) echo vax-dec-vms ; exit ;; |
1378 | 1403 | echo i386-pc-xenix |
1379 | 1404 | exit ;; |
1380 | 1405 | i*86:skyos:*:*) |
1381 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | |
1406 | echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" | |
1382 | 1407 | exit ;; |
1383 | 1408 | i*86:rdos:*:*) |
1384 | echo ${UNAME_MACHINE}-pc-rdos | |
1409 | echo "$UNAME_MACHINE"-pc-rdos | |
1385 | 1410 | exit ;; |
1386 | 1411 | i*86:AROS:*:*) |
1387 | echo ${UNAME_MACHINE}-pc-aros | |
1412 | echo "$UNAME_MACHINE"-pc-aros | |
1388 | 1413 | exit ;; |
1389 | 1414 | x86_64:VMkernel:*:*) |
1390 | echo ${UNAME_MACHINE}-unknown-esx | |
1415 | echo "$UNAME_MACHINE"-unknown-esx | |
1416 | exit ;; | |
1417 | amd64:Isilon\ OneFS:*:*) | |
1418 | echo x86_64-unknown-onefs | |
1391 | 1419 | exit ;; |
1392 | 1420 | esac |
1393 | 1421 | |
1422 | echo "$0: unable to guess system type" >&2 | |
1423 | ||
1424 | case "$UNAME_MACHINE:$UNAME_SYSTEM" in | |
1425 | mips:Linux | mips64:Linux) | |
1426 | # If we got here on MIPS GNU/Linux, output extra information. | |
1427 | cat >&2 <<EOF | |
1428 | ||
1429 | NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize | |
1430 | the system type. Please install a C compiler and try again. | |
1431 | EOF | |
1432 | ;; | |
1433 | esac | |
1434 | ||
1394 | 1435 | cat >&2 <<EOF |
1395 | $0: unable to guess system type | |
1396 | ||
1397 | This script, last modified $timestamp, has failed to recognize | |
1398 | the operating system you are using. It is advised that you | |
1399 | download the most up to date version of the config scripts from | |
1400 | ||
1401 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
1436 | ||
1437 | This script (version $timestamp), has failed to recognize the | |
1438 | operating system you are using. If your script is old, overwrite *all* | |
1439 | copies of config.guess and config.sub with the latest versions from: | |
1440 | ||
1441 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
1402 | 1442 | and |
1403 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
1404 | ||
1405 | If the version you run ($0) is already up to date, please | |
1406 | send the following data and any information you think might be | |
1407 | pertinent to <config-patches@gnu.org> in order to provide the needed | |
1408 | information to handle your system. | |
1443 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
1444 | ||
1445 | If $0 has already been updated, send the following data and any | |
1446 | information you think might be pertinent to config-patches@gnu.org to | |
1447 | provide the necessary information to handle your system. | |
1409 | 1448 | |
1410 | 1449 | config.guess timestamp = $timestamp |
1411 | 1450 | |
1424 | 1463 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
1425 | 1464 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
1426 | 1465 | |
1427 | UNAME_MACHINE = ${UNAME_MACHINE} | |
1428 | UNAME_RELEASE = ${UNAME_RELEASE} | |
1429 | UNAME_SYSTEM = ${UNAME_SYSTEM} | |
1430 | UNAME_VERSION = ${UNAME_VERSION} | |
1466 | UNAME_MACHINE = "$UNAME_MACHINE" | |
1467 | UNAME_RELEASE = "$UNAME_RELEASE" | |
1468 | UNAME_SYSTEM = "$UNAME_SYSTEM" | |
1469 | UNAME_VERSION = "$UNAME_VERSION" | |
1431 | 1470 | EOF |
1432 | 1471 | |
1433 | 1472 | exit 1 |
1434 | 1473 | |
1435 | 1474 | # Local variables: |
1436 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1475 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1437 | 1476 | # time-stamp-start: "timestamp='" |
1438 | 1477 | # time-stamp-format: "%:y-%02m-%02d" |
1439 | 1478 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | # Copyright 1992-2015 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2015-08-20' | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-02-22' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
32 | 32 | # Otherwise, we print the canonical config type on stdout and succeed. |
33 | 33 | |
34 | 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 | |
35 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
36 | 36 | |
37 | 37 | # This file is supposed to be the same for all GNU packages |
38 | 38 | # and recognize all the CPU types, system types and aliases |
52 | 52 | me=`echo "$0" | sed -e 's,.*/,,'` |
53 | 53 | |
54 | 54 | usage="\ |
55 | Usage: $0 [OPTION] CPU-MFR-OPSYS | |
56 | $0 [OPTION] ALIAS | |
55 | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS | |
57 | 56 | |
58 | 57 | Canonicalize a configuration name. |
59 | 58 | |
60 | Operation modes: | |
59 | Options: | |
61 | 60 | -h, --help print this help, then exit |
62 | 61 | -t, --time-stamp print date of last modification, then exit |
63 | 62 | -v, --version print version number, then exit |
67 | 66 | version="\ |
68 | 67 | GNU config.sub ($timestamp) |
69 | 68 | |
70 | Copyright 1992-2015 Free Software Foundation, Inc. | |
69 | Copyright 1992-2018 Free Software Foundation, Inc. | |
71 | 70 | |
72 | 71 | This is free software; see the source for copying conditions. There is NO |
73 | 72 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
94 | 93 | |
95 | 94 | *local*) |
96 | 95 | # First pass through any local machine types. |
97 | echo $1 | |
96 | echo "$1" | |
98 | 97 | exit ;; |
99 | 98 | |
100 | 99 | * ) |
112 | 111 | |
113 | 112 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
114 | 113 | # Here we must recognize all the valid KERNEL-OS combinations. |
115 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
114 | maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
116 | 115 | case $maybe_os in |
117 | 116 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
118 | 117 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
119 | 118 | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ |
120 | kopensolaris*-gnu* | \ | |
119 | kopensolaris*-gnu* | cloudabi*-eabi* | \ | |
121 | 120 | storm-chaos* | os2-emx* | rtmk-nova*) |
122 | 121 | os=-$maybe_os |
123 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
122 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
124 | 123 | ;; |
125 | 124 | android-linux) |
126 | 125 | os=-linux-android |
127 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
126 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
128 | 127 | ;; |
129 | 128 | *) |
130 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
131 | if [ $basic_machine != $1 ] | |
132 | then os=`echo $1 | sed 's/.*-/-/'` | |
129 | basic_machine=`echo "$1" | sed 's/-[^-]*$//'` | |
130 | if [ "$basic_machine" != "$1" ] | |
131 | then os=`echo "$1" | sed 's/.*-/-/'` | |
133 | 132 | else os=; fi |
134 | 133 | ;; |
135 | 134 | esac |
178 | 177 | ;; |
179 | 178 | -sco6) |
180 | 179 | os=-sco5v6 |
181 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
180 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
182 | 181 | ;; |
183 | 182 | -sco5) |
184 | 183 | os=-sco3.2v5 |
185 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
184 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
186 | 185 | ;; |
187 | 186 | -sco4) |
188 | 187 | os=-sco3.2v4 |
189 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
188 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
190 | 189 | ;; |
191 | 190 | -sco3.2.[4-9]*) |
192 | 191 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
193 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
192 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
194 | 193 | ;; |
195 | 194 | -sco3.2v[4-9]*) |
196 | 195 | # Don't forget version if it is 3.2v4 or newer. |
197 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
196 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
198 | 197 | ;; |
199 | 198 | -sco5v6*) |
200 | 199 | # Don't forget version if it is 3.2v4 or newer. |
201 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
200 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
202 | 201 | ;; |
203 | 202 | -sco*) |
204 | 203 | os=-sco3.2v2 |
205 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
204 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
206 | 205 | ;; |
207 | 206 | -udk*) |
208 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
207 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
209 | 208 | ;; |
210 | 209 | -isc) |
211 | 210 | os=-isc2.2 |
212 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
211 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
213 | 212 | ;; |
214 | 213 | -clix*) |
215 | 214 | basic_machine=clipper-intergraph |
216 | 215 | ;; |
217 | 216 | -isc*) |
218 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
217 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
219 | 218 | ;; |
220 | 219 | -lynx*178) |
221 | 220 | os=-lynxos178 |
227 | 226 | os=-lynxos |
228 | 227 | ;; |
229 | 228 | -ptx*) |
230 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | |
231 | ;; | |
232 | -windowsnt*) | |
233 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | |
229 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` | |
234 | 230 | ;; |
235 | 231 | -psos*) |
236 | 232 | os=-psos |
263 | 259 | | fido | fr30 | frv | ft32 \ |
264 | 260 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
265 | 261 | | hexagon \ |
266 | | i370 | i860 | i960 | ia64 \ | |
262 | | i370 | i860 | i960 | ia16 | ia64 \ | |
267 | 263 | | ip2k | iq2000 \ |
268 | 264 | | k1om \ |
269 | 265 | | le32 | le64 \ |
299 | 295 | | nios | nios2 | nios2eb | nios2el \ |
300 | 296 | | ns16k | ns32k \ |
301 | 297 | | open8 | or1k | or1knd | or32 \ |
302 | | pdp10 | pdp11 | pj | pjl \ | |
298 | | pdp10 | pj | pjl \ | |
303 | 299 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
300 | | pru \ | |
304 | 301 | | pyramid \ |
305 | 302 | | riscv32 | riscv64 \ |
306 | 303 | | rl78 | rx \ |
314 | 311 | | ubicom32 \ |
315 | 312 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
316 | 313 | | visium \ |
317 | | we32k \ | |
314 | | wasm32 \ | |
318 | 315 | | x86 | xc16x | xstormy16 | xtensa \ |
319 | 316 | | z8k | z80) |
320 | 317 | basic_machine=$basic_machine-unknown |
335 | 332 | basic_machine=$basic_machine-unknown |
336 | 333 | os=-none |
337 | 334 | ;; |
338 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | |
335 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) | |
339 | 336 | ;; |
340 | 337 | ms1) |
341 | 338 | basic_machine=mt-unknown |
364 | 361 | ;; |
365 | 362 | # Object if more than one company name word. |
366 | 363 | *-*-*) |
367 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
364 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
368 | 365 | exit 1 |
369 | 366 | ;; |
370 | 367 | # Recognize the basic CPU types with company name. |
387 | 384 | | h8300-* | h8500-* \ |
388 | 385 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
389 | 386 | | hexagon-* \ |
390 | | i*86-* | i860-* | i960-* | ia64-* \ | |
387 | | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | |
391 | 388 | | ip2k-* | iq2000-* \ |
392 | 389 | | k1om-* \ |
393 | 390 | | le32-* | le64-* \ |
428 | 425 | | orion-* \ |
429 | 426 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
430 | 427 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
428 | | pru-* \ | |
431 | 429 | | pyramid-* \ |
432 | 430 | | riscv32-* | riscv64-* \ |
433 | 431 | | rl78-* | romp-* | rs6000-* | rx-* \ |
444 | 442 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
445 | 443 | | vax-* \ |
446 | 444 | | visium-* \ |
445 | | wasm32-* \ | |
447 | 446 | | we32k-* \ |
448 | 447 | | x86-* | x86_64-* | xc16x-* | xps100-* \ |
449 | 448 | | xstormy16-* | xtensa*-* \ |
457 | 456 | # Recognize the various machine names and aliases which stand |
458 | 457 | # for a CPU type and a company and sometimes even an OS. |
459 | 458 | 386bsd) |
460 | basic_machine=i386-unknown | |
459 | basic_machine=i386-pc | |
461 | 460 | os=-bsd |
462 | 461 | ;; |
463 | 462 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
491 | 490 | basic_machine=x86_64-pc |
492 | 491 | ;; |
493 | 492 | amd64-*) |
494 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
493 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
495 | 494 | ;; |
496 | 495 | amdahl) |
497 | 496 | basic_machine=580-amdahl |
520 | 519 | basic_machine=i386-pc |
521 | 520 | os=-aros |
522 | 521 | ;; |
523 | asmjs) | |
522 | asmjs) | |
524 | 523 | basic_machine=asmjs-unknown |
525 | 524 | ;; |
526 | 525 | aux) |
536 | 535 | os=-linux |
537 | 536 | ;; |
538 | 537 | blackfin-*) |
539 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
538 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
540 | 539 | os=-linux |
541 | 540 | ;; |
542 | 541 | bluegene*) |
544 | 543 | os=-cnk |
545 | 544 | ;; |
546 | 545 | c54x-*) |
547 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
546 | basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
548 | 547 | ;; |
549 | 548 | c55x-*) |
550 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
549 | basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
551 | 550 | ;; |
552 | 551 | c6x-*) |
553 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
552 | basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
554 | 553 | ;; |
555 | 554 | c90) |
556 | 555 | basic_machine=c90-cray |
639 | 638 | basic_machine=rs6000-bull |
640 | 639 | os=-bosx |
641 | 640 | ;; |
642 | dpx2* | dpx2*-bull) | |
641 | dpx2*) | |
643 | 642 | basic_machine=m68k-bull |
644 | 643 | os=-sysv3 |
644 | ;; | |
645 | e500v[12]) | |
646 | basic_machine=powerpc-unknown | |
647 | os=$os"spe" | |
648 | ;; | |
649 | e500v[12]-*) | |
650 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
651 | os=$os"spe" | |
645 | 652 | ;; |
646 | 653 | ebmon29k) |
647 | 654 | basic_machine=a29k-amd |
732 | 739 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
733 | 740 | basic_machine=hppa1.0-hp |
734 | 741 | ;; |
735 | hppa-next) | |
736 | os=-nextstep3 | |
737 | ;; | |
738 | 742 | hppaosf) |
739 | 743 | basic_machine=hppa1.1-hp |
740 | 744 | os=-osf |
747 | 751 | basic_machine=i370-ibm |
748 | 752 | ;; |
749 | 753 | i*86v32) |
750 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
754 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
751 | 755 | os=-sysv32 |
752 | 756 | ;; |
753 | 757 | i*86v4*) |
754 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
758 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
755 | 759 | os=-sysv4 |
756 | 760 | ;; |
757 | 761 | i*86v) |
758 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
762 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
759 | 763 | os=-sysv |
760 | 764 | ;; |
761 | 765 | i*86sol2) |
762 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
766 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
763 | 767 | os=-solaris2 |
764 | 768 | ;; |
765 | 769 | i386mach) |
766 | 770 | basic_machine=i386-mach |
767 | 771 | os=-mach |
768 | 772 | ;; |
769 | i386-vsta | vsta) | |
773 | vsta) | |
770 | 774 | basic_machine=i386-unknown |
771 | 775 | os=-vsta |
772 | 776 | ;; |
785 | 789 | os=-sysv |
786 | 790 | ;; |
787 | 791 | leon-*|leon[3-9]-*) |
788 | basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` | |
792 | basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` | |
789 | 793 | ;; |
790 | 794 | m68knommu) |
791 | 795 | basic_machine=m68k-unknown |
792 | 796 | os=-linux |
793 | 797 | ;; |
794 | 798 | m68knommu-*) |
795 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
799 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
796 | 800 | os=-linux |
797 | ;; | |
798 | m88k-omron*) | |
799 | basic_machine=m88k-omron | |
800 | 801 | ;; |
801 | 802 | magnum | m3230) |
802 | 803 | basic_machine=mips-mips |
829 | 830 | os=-mint |
830 | 831 | ;; |
831 | 832 | mips3*-*) |
832 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | |
833 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` | |
833 | 834 | ;; |
834 | 835 | mips3*) |
835 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | |
836 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown | |
836 | 837 | ;; |
837 | 838 | monitor) |
838 | 839 | basic_machine=m68k-rom68k |
851 | 852 | os=-msdos |
852 | 853 | ;; |
853 | 854 | ms1-*) |
854 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | |
855 | basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` | |
855 | 856 | ;; |
856 | 857 | msys) |
857 | 858 | basic_machine=i686-pc |
893 | 894 | basic_machine=v70-nec |
894 | 895 | os=-sysv |
895 | 896 | ;; |
896 | next | m*-next ) | |
897 | next | m*-next) | |
897 | 898 | basic_machine=m68k-next |
898 | 899 | case $os in |
899 | 900 | -nextstep* ) |
938 | 939 | nsr-tandem) |
939 | 940 | basic_machine=nsr-tandem |
940 | 941 | ;; |
942 | nsv-tandem) | |
943 | basic_machine=nsv-tandem | |
944 | ;; | |
945 | nsx-tandem) | |
946 | basic_machine=nsx-tandem | |
947 | ;; | |
941 | 948 | op50n-* | op60c-*) |
942 | 949 | basic_machine=hppa1.1-oki |
943 | 950 | os=-proelf |
970 | 977 | os=-linux |
971 | 978 | ;; |
972 | 979 | parisc-*) |
973 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
980 | basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
974 | 981 | os=-linux |
975 | 982 | ;; |
976 | 983 | pbd) |
986 | 993 | basic_machine=i386-pc |
987 | 994 | ;; |
988 | 995 | pc98-*) |
989 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | |
996 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
990 | 997 | ;; |
991 | 998 | pentium | p5 | k5 | k6 | nexgen | viac3) |
992 | 999 | basic_machine=i586-pc |
1001 | 1008 | basic_machine=i786-pc |
1002 | 1009 | ;; |
1003 | 1010 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
1004 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1011 | basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1005 | 1012 | ;; |
1006 | 1013 | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
1007 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1014 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1008 | 1015 | ;; |
1009 | 1016 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
1010 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1017 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1011 | 1018 | ;; |
1012 | 1019 | pentium4-*) |
1013 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1020 | basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1014 | 1021 | ;; |
1015 | 1022 | pn) |
1016 | 1023 | basic_machine=pn-gould |
1020 | 1027 | ppc | ppcbe) basic_machine=powerpc-unknown |
1021 | 1028 | ;; |
1022 | 1029 | ppc-* | ppcbe-*) |
1023 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1024 | ;; | |
1025 | ppcle | powerpclittle | ppc-le | powerpc-little) | |
1030 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1031 | ;; | |
1032 | ppcle | powerpclittle) | |
1026 | 1033 | basic_machine=powerpcle-unknown |
1027 | 1034 | ;; |
1028 | 1035 | ppcle-* | powerpclittle-*) |
1029 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1036 | basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1030 | 1037 | ;; |
1031 | 1038 | ppc64) basic_machine=powerpc64-unknown |
1032 | 1039 | ;; |
1033 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1034 | ;; | |
1035 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) | |
1040 | ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1041 | ;; | |
1042 | ppc64le | powerpc64little) | |
1036 | 1043 | basic_machine=powerpc64le-unknown |
1037 | 1044 | ;; |
1038 | 1045 | ppc64le-* | powerpc64little-*) |
1039 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1046 | basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1040 | 1047 | ;; |
1041 | 1048 | ps2) |
1042 | 1049 | basic_machine=i386-ibm |
1090 | 1097 | sequent) |
1091 | 1098 | basic_machine=i386-sequent |
1092 | 1099 | ;; |
1093 | sh) | |
1094 | basic_machine=sh-hitachi | |
1095 | os=-hms | |
1096 | ;; | |
1097 | 1100 | sh5el) |
1098 | 1101 | basic_machine=sh5le-unknown |
1099 | 1102 | ;; |
1100 | sh64) | |
1101 | basic_machine=sh64-unknown | |
1102 | ;; | |
1103 | sparclite-wrs | simso-wrs) | |
1103 | simso-wrs) | |
1104 | 1104 | basic_machine=sparclite-wrs |
1105 | 1105 | os=-vxworks |
1106 | 1106 | ;; |
1119 | 1119 | os=-sysv4 |
1120 | 1120 | ;; |
1121 | 1121 | strongarm-* | thumb-*) |
1122 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1122 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1123 | 1123 | ;; |
1124 | 1124 | sun2) |
1125 | 1125 | basic_machine=m68000-sun |
1241 | 1241 | basic_machine=hppa1.1-winbond |
1242 | 1242 | os=-proelf |
1243 | 1243 | ;; |
1244 | x64) | |
1245 | basic_machine=x86_64-pc | |
1246 | ;; | |
1244 | 1247 | xbox) |
1245 | 1248 | basic_machine=i686-pc |
1246 | 1249 | os=-mingw32 |
1249 | 1252 | basic_machine=xps100-honeywell |
1250 | 1253 | ;; |
1251 | 1254 | xscale-* | xscalee[bl]-*) |
1252 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1255 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` | |
1253 | 1256 | ;; |
1254 | 1257 | ymp) |
1255 | 1258 | basic_machine=ymp-cray |
1256 | 1259 | os=-unicos |
1257 | ;; | |
1258 | z8k-*-coff) | |
1259 | basic_machine=z8k-unknown | |
1260 | os=-sim | |
1261 | ;; | |
1262 | z80-*-coff) | |
1263 | basic_machine=z80-unknown | |
1264 | os=-sim | |
1265 | 1260 | ;; |
1266 | 1261 | none) |
1267 | 1262 | basic_machine=none-none |
1291 | 1286 | vax) |
1292 | 1287 | basic_machine=vax-dec |
1293 | 1288 | ;; |
1294 | pdp10) | |
1295 | # there are many clones, so DEC is not a safe bet | |
1296 | basic_machine=pdp10-unknown | |
1297 | ;; | |
1298 | 1289 | pdp11) |
1299 | 1290 | basic_machine=pdp11-dec |
1300 | 1291 | ;; |
1304 | 1295 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1305 | 1296 | basic_machine=sh-unknown |
1306 | 1297 | ;; |
1307 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | |
1308 | basic_machine=sparc-sun | |
1309 | ;; | |
1310 | 1298 | cydra) |
1311 | 1299 | basic_machine=cydra-cydrome |
1312 | 1300 | ;; |
1326 | 1314 | # Make sure to match an already-canonicalized machine name. |
1327 | 1315 | ;; |
1328 | 1316 | *) |
1329 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
1317 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
1330 | 1318 | exit 1 |
1331 | 1319 | ;; |
1332 | 1320 | esac |
1334 | 1322 | # Here we canonicalize certain aliases for manufacturers. |
1335 | 1323 | case $basic_machine in |
1336 | 1324 | *-digital*) |
1337 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
1325 | basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` | |
1338 | 1326 | ;; |
1339 | 1327 | *-commodore*) |
1340 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
1328 | basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` | |
1341 | 1329 | ;; |
1342 | 1330 | *) |
1343 | 1331 | ;; |
1348 | 1336 | if [ x"$os" != x"" ] |
1349 | 1337 | then |
1350 | 1338 | case $os in |
1351 | # First match some system type aliases | |
1352 | # that might get confused with valid system types. | |
1339 | # First match some system type aliases that might get confused | |
1340 | # with valid system types. | |
1353 | 1341 | # -solaris* is a basic system type, with this one exception. |
1354 | 1342 | -auroraux) |
1355 | 1343 | os=-auroraux |
1360 | 1348 | -solaris) |
1361 | 1349 | os=-solaris2 |
1362 | 1350 | ;; |
1363 | -svr4*) | |
1364 | os=-sysv4 | |
1365 | ;; | |
1366 | 1351 | -unixware*) |
1367 | 1352 | os=-sysv4.2uw |
1368 | 1353 | ;; |
1369 | 1354 | -gnu/linux*) |
1370 | 1355 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
1371 | 1356 | ;; |
1372 | # First accept the basic system types. | |
1357 | # es1800 is here to avoid being matched by es* (a different OS) | |
1358 | -es1800*) | |
1359 | os=-ose | |
1360 | ;; | |
1361 | # Now accept the basic system types. | |
1373 | 1362 | # The portable systems comes first. |
1374 | # Each alternative MUST END IN A *, to match a version number. | |
1363 | # Each alternative MUST end in a * to match a version number. | |
1375 | 1364 | # -sysv* is not here because it comes later, after sysvr4. |
1376 | 1365 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1377 | 1366 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1381 | 1370 | | -aos* | -aros* | -cloudabi* | -sortix* \ |
1382 | 1371 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1383 | 1372 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1384 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1385 | | -bitrig* | -openbsd* | -solidbsd* \ | |
1373 | | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1374 | | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | |
1386 | 1375 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1387 | 1376 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1388 | 1377 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1389 | 1378 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1390 | | -chorusos* | -chorusrdb* | -cegcc* \ | |
1379 | | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | |
1391 | 1380 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1392 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1381 | | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1393 | 1382 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
1394 | 1383 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ |
1395 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
1384 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | |
1396 | 1385 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1397 | 1386 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1398 | 1387 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1399 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1388 | | -morphos* | -superux* | -rtmk* | -windiss* \ | |
1400 | 1389 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1401 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) | |
1390 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | |
1391 | | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ | |
1392 | | -midnightbsd*) | |
1402 | 1393 | # Remember, each alternative MUST END IN *, to match a version number. |
1403 | 1394 | ;; |
1404 | 1395 | -qnx*) |
1415 | 1406 | -nto*) |
1416 | 1407 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1417 | 1408 | ;; |
1418 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | |
1419 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | |
1409 | -sim | -xray | -os68k* | -v88r* \ | |
1410 | | -windows* | -osx | -abug | -netware* | -os9* \ | |
1420 | 1411 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1421 | 1412 | ;; |
1422 | 1413 | -mac*) |
1423 | os=`echo $os | sed -e 's|mac|macos|'` | |
1414 | os=`echo "$os" | sed -e 's|mac|macos|'` | |
1424 | 1415 | ;; |
1425 | 1416 | -linux-dietlibc) |
1426 | 1417 | os=-linux-dietlibc |
1429 | 1420 | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
1430 | 1421 | ;; |
1431 | 1422 | -sunos5*) |
1432 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | |
1423 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` | |
1433 | 1424 | ;; |
1434 | 1425 | -sunos6*) |
1435 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | |
1426 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` | |
1436 | 1427 | ;; |
1437 | 1428 | -opened*) |
1438 | 1429 | os=-openedition |
1443 | 1434 | -wince*) |
1444 | 1435 | os=-wince |
1445 | 1436 | ;; |
1446 | -osfrose*) | |
1447 | os=-osfrose | |
1448 | ;; | |
1449 | -osf*) | |
1450 | os=-osf | |
1451 | ;; | |
1452 | 1437 | -utek*) |
1453 | 1438 | os=-bsd |
1454 | 1439 | ;; |
1473 | 1458 | -nova*) |
1474 | 1459 | os=-rtmk-nova |
1475 | 1460 | ;; |
1476 | -ns2 ) | |
1461 | -ns2) | |
1477 | 1462 | os=-nextstep2 |
1478 | 1463 | ;; |
1479 | 1464 | -nsk*) |
1495 | 1480 | -oss*) |
1496 | 1481 | os=-sysv3 |
1497 | 1482 | ;; |
1498 | -svr4) | |
1483 | -svr4*) | |
1499 | 1484 | os=-sysv4 |
1500 | 1485 | ;; |
1501 | 1486 | -svr3) |
1510 | 1495 | -ose*) |
1511 | 1496 | os=-ose |
1512 | 1497 | ;; |
1513 | -es1800*) | |
1514 | os=-ose | |
1515 | ;; | |
1516 | -xenix) | |
1517 | os=-xenix | |
1518 | ;; | |
1519 | 1498 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1520 | 1499 | os=-mint |
1521 | 1500 | ;; |
1522 | -aros*) | |
1523 | os=-aros | |
1524 | ;; | |
1525 | 1501 | -zvmoe) |
1526 | 1502 | os=-zvmoe |
1527 | 1503 | ;; |
1528 | 1504 | -dicos*) |
1529 | 1505 | os=-dicos |
1530 | 1506 | ;; |
1507 | -pikeos*) | |
1508 | # Until real need of OS specific support for | |
1509 | # particular features comes up, bare metal | |
1510 | # configurations are quite functional. | |
1511 | case $basic_machine in | |
1512 | arm*) | |
1513 | os=-eabi | |
1514 | ;; | |
1515 | *) | |
1516 | os=-elf | |
1517 | ;; | |
1518 | esac | |
1519 | ;; | |
1531 | 1520 | -nacl*) |
1521 | ;; | |
1522 | -ios) | |
1532 | 1523 | ;; |
1533 | 1524 | -none) |
1534 | 1525 | ;; |
1535 | 1526 | *) |
1536 | 1527 | # Get rid of the `-' at the beginning of $os. |
1537 | 1528 | os=`echo $os | sed 's/[^-]*-//'` |
1538 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | |
1529 | echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 | |
1539 | 1530 | exit 1 |
1540 | 1531 | ;; |
1541 | 1532 | esac |
1625 | 1616 | sparc-* | *-sun) |
1626 | 1617 | os=-sunos4.1.1 |
1627 | 1618 | ;; |
1619 | pru-*) | |
1620 | os=-elf | |
1621 | ;; | |
1628 | 1622 | *-be) |
1629 | 1623 | os=-beos |
1630 | 1624 | ;; |
1631 | *-haiku) | |
1632 | os=-haiku | |
1633 | ;; | |
1634 | 1625 | *-ibm) |
1635 | 1626 | os=-aix |
1636 | 1627 | ;; |
1670 | 1661 | m88k-omron*) |
1671 | 1662 | os=-luna |
1672 | 1663 | ;; |
1673 | *-next ) | |
1664 | *-next) | |
1674 | 1665 | os=-nextstep |
1675 | 1666 | ;; |
1676 | 1667 | *-sequent) |
1684 | 1675 | ;; |
1685 | 1676 | i370-*) |
1686 | 1677 | os=-mvs |
1687 | ;; | |
1688 | *-next) | |
1689 | os=-nextstep3 | |
1690 | 1678 | ;; |
1691 | 1679 | *-gould) |
1692 | 1680 | os=-sysv |
1797 | 1785 | vendor=stratus |
1798 | 1786 | ;; |
1799 | 1787 | esac |
1800 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
1788 | basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` | |
1801 | 1789 | ;; |
1802 | 1790 | esac |
1803 | 1791 | |
1804 | echo $basic_machine$os | |
1792 | echo "$basic_machine$os" | |
1805 | 1793 | exit |
1806 | 1794 | |
1807 | 1795 | # Local variables: |
1808 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1796 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1809 | 1797 | # time-stamp-start: "timestamp='" |
1810 | 1798 | # time-stamp-format: "%:y-%02m-%02d" |
1811 | 1799 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for libgeotiff 1.6.0. | |
2 | # Generated by GNU Autoconf 2.69 for libgeotiff 1.7.0. | |
3 | 3 | # |
4 | 4 | # Report bugs to <warmerdam@pobox.com>. |
5 | 5 | # |
589 | 589 | # Identity of this package. |
590 | 590 | PACKAGE_NAME='libgeotiff' |
591 | 591 | PACKAGE_TARNAME='libgeotiff' |
592 | PACKAGE_VERSION='1.6.0' | |
593 | PACKAGE_STRING='libgeotiff 1.6.0' | |
592 | PACKAGE_VERSION='1.7.0' | |
593 | PACKAGE_STRING='libgeotiff 1.7.0' | |
594 | 594 | PACKAGE_BUGREPORT='warmerdam@pobox.com' |
595 | 595 | PACKAGE_URL='' |
596 | 596 | |
736 | 736 | AMDEPBACKSLASH |
737 | 737 | AMDEP_FALSE |
738 | 738 | AMDEP_TRUE |
739 | am__quote | |
740 | 739 | am__include |
741 | 740 | DEPDIR |
742 | 741 | OBJEXT |
819 | 818 | PACKAGE_TARNAME |
820 | 819 | PACKAGE_NAME |
821 | 820 | PATH_SEPARATOR |
822 | SHELL' | |
821 | SHELL | |
822 | am__quote' | |
823 | 823 | ac_subst_files='' |
824 | 824 | ac_user_opts=' |
825 | 825 | enable_option_checking |
1421 | 1421 | # Omit some internal or obsolete options to make the list less imposing. |
1422 | 1422 | # This message is too long to be a string in the A/UX 3.1 sh. |
1423 | 1423 | cat <<_ACEOF |
1424 | \`configure' configures libgeotiff 1.6.0 to adapt to many kinds of systems. | |
1424 | \`configure' configures libgeotiff 1.7.0 to adapt to many kinds of systems. | |
1425 | 1425 | |
1426 | 1426 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1427 | 1427 | |
1492 | 1492 | |
1493 | 1493 | if test -n "$ac_init_help"; then |
1494 | 1494 | case $ac_init_help in |
1495 | short | recursive ) echo "Configuration of libgeotiff 1.6.0:";; | |
1495 | short | recursive ) echo "Configuration of libgeotiff 1.7.0:";; | |
1496 | 1496 | esac |
1497 | 1497 | cat <<\_ACEOF |
1498 | 1498 | |
1638 | 1638 | test -n "$ac_init_help" && exit $ac_status |
1639 | 1639 | if $ac_init_version; then |
1640 | 1640 | cat <<\_ACEOF |
1641 | libgeotiff configure 1.6.0 | |
1641 | libgeotiff configure 1.7.0 | |
1642 | 1642 | generated by GNU Autoconf 2.69 |
1643 | 1643 | |
1644 | 1644 | Copyright (C) 2012 Free Software Foundation, Inc. |
2007 | 2007 | This file contains any messages produced by compilers while |
2008 | 2008 | running configure, to aid debugging if configure makes a mistake. |
2009 | 2009 | |
2010 | It was created by libgeotiff $as_me 1.6.0, which was | |
2010 | It was created by libgeotiff $as_me 1.7.0, which was | |
2011 | 2011 | generated by GNU Autoconf 2.69. Invocation command line was |
2012 | 2012 | |
2013 | 2013 | $ $0 $@ |
2425 | 2425 | |
2426 | 2426 | |
2427 | 2427 | |
2428 | RELEASE_VERSION=1.6.0 | |
2428 | RELEASE_VERSION=1.7.0 | |
2429 | 2429 | |
2430 | 2430 | ac_config_headers="$ac_config_headers geo_config.h" |
2431 | 2431 | |
2432 | 2432 | |
2433 | 2433 | |
2434 | am__api_version='1.15' | |
2434 | am__api_version='1.16' | |
2435 | 2435 | |
2436 | 2436 | # Find a good install program. We prefer a C program (faster), |
2437 | 2437 | # so one script is as good as another. But avoid the broken or |
2917 | 2917 | |
2918 | 2918 | # Define the identity of the package. |
2919 | 2919 | PACKAGE='libgeotiff' |
2920 | VERSION='1.6.0' | |
2920 | VERSION='1.7.0' | |
2921 | 2921 | |
2922 | 2922 | |
2923 | 2923 | cat >>confdefs.h <<_ACEOF |
2947 | 2947 | |
2948 | 2948 | # For better backward compatibility. To be removed once Automake 1.9.x |
2949 | 2949 | # dies out for good. For more background, see: |
2950 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2951 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2950 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2951 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2952 | 2952 | mkdir_p='$(MKDIR_P)' |
2953 | 2953 | |
2954 | 2954 | # We need awk for the "check" target (and possibly the TAP driver). The |
2999 | 2999 | Aborting the configuration process, to ensure you take notice of the issue. |
3000 | 3000 | |
3001 | 3001 | You can download and install GNU coreutils to get an 'rm' implementation |
3002 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3002 | that behaves properly: <https://www.gnu.org/software/coreutils/>. | |
3003 | 3003 | |
3004 | 3004 | If you want to complete the configuration process using your problematic |
3005 | 3005 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
3884 | 3884 | |
3885 | 3885 | ac_config_commands="$ac_config_commands depfiles" |
3886 | 3886 | |
3887 | ||
3888 | am_make=${MAKE-make} | |
3889 | cat > confinc << 'END' | |
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 | |
3888 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } | |
3889 | cat > confinc.mk << 'END' | |
3890 | 3890 | am__doit: |
3891 | @echo this is the am__doit target | |
3891 | @echo this is the am__doit target >confinc.out | |
3892 | 3892 | .PHONY: am__doit |
3893 | 3893 | END |
3894 | # If we don't find an include directive, just comment out the code. | |
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3896 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3897 | 3894 | am__include="#" |
3898 | 3895 | am__quote= |
3899 | _am_result=none | |
3900 | # First try GNU make style include. | |
3901 | echo "include confinc" > confmf | |
3902 | # Ignore all kinds of additional output from 'make'. | |
3903 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3904 | *the\ am__doit\ target*) | |
3905 | am__include=include | |
3906 | am__quote= | |
3907 | _am_result=GNU | |
3908 | ;; | |
3896 | # BSD make does it like this. | |
3897 | echo '.include "confinc.mk" # ignored' > confmf.BSD | |
3898 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. | |
3899 | echo 'include confinc.mk # ignored' > confmf.GNU | |
3900 | _am_result=no | |
3901 | for s in GNU BSD; do | |
3902 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 | |
3903 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 | |
3904 | ac_status=$? | |
3905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3906 | (exit $ac_status); } | |
3907 | case $?:`cat confinc.out 2>/dev/null` in #( | |
3908 | '0:this is the am__doit target') : | |
3909 | case $s in #( | |
3910 | BSD) : | |
3911 | am__include='.include' am__quote='"' ;; #( | |
3912 | *) : | |
3913 | am__include='include' am__quote='' ;; | |
3914 | esac ;; #( | |
3915 | *) : | |
3916 | ;; | |
3909 | 3917 | esac |
3910 | # Now try BSD make style include. | |
3911 | if test "$am__include" = "#"; then | |
3912 | echo '.include "confinc"' > confmf | |
3913 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3914 | *the\ am__doit\ target*) | |
3915 | am__include=.include | |
3916 | am__quote="\"" | |
3917 | _am_result=BSD | |
3918 | ;; | |
3919 | esac | |
3920 | fi | |
3921 | ||
3922 | ||
3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3924 | $as_echo "$_am_result" >&6; } | |
3925 | rm -f confinc confmf | |
3918 | if test "$am__include" != "#"; then | |
3919 | _am_result="yes ($s style)" | |
3920 | break | |
3921 | fi | |
3922 | done | |
3923 | rm -f confinc.* confmf.* | |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 | |
3925 | $as_echo "${_am_result}" >&6; } | |
3926 | 3926 | |
3927 | 3927 | # Check whether --enable-dependency-tracking was given. |
3928 | 3928 | if test "${enable_dependency_tracking+set}" = set; then : |
5738 | 5738 | fi |
5739 | 5739 | |
5740 | 5740 | : ${AR=ar} |
5741 | : ${AR_FLAGS=cru} | |
5741 | : ${AR_FLAGS=cr} | |
5742 | 5742 | |
5743 | 5743 | |
5744 | 5744 | |
6239 | 6239 | test $ac_status = 0; }; then |
6240 | 6240 | # Now try to grab the symbols. |
6241 | 6241 | nlist=conftest.nm |
6242 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6243 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6244 | ac_status=$? | |
6245 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6246 | test $ac_status = 0; } && test -s "$nlist"; then | |
6242 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 | |
6243 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then | |
6247 | 6244 | # Try sorting and uniquifying the output. |
6248 | 6245 | if sort "$nlist" | uniq > "$nlist"T; then |
6249 | 6246 | mv -f "$nlist"T "$nlist" |
7462 | 7459 | _LT_EOF |
7463 | 7460 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
7464 | 7461 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
7465 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7466 | $AR cru libconftest.a conftest.o 2>&5 | |
7462 | echo "$AR cr libconftest.a conftest.o" >&5 | |
7463 | $AR cr libconftest.a conftest.o 2>&5 | |
7467 | 7464 | echo "$RANLIB libconftest.a" >&5 |
7468 | 7465 | $RANLIB libconftest.a 2>&5 |
7469 | 7466 | cat > conftest.c << _LT_EOF |
8590 | 8587 | ecc*) |
8591 | 8588 | lt_prog_compiler_wl='-Wl,' |
8592 | 8589 | lt_prog_compiler_pic='-KPIC' |
8590 | lt_prog_compiler_static='-static' | |
8591 | ;; | |
8592 | # flang / f18. f95 an alias for gfortran or flang on Debian | |
8593 | flang* | f18* | f95*) | |
8594 | lt_prog_compiler_wl='-Wl,' | |
8595 | lt_prog_compiler_pic='-fPIC' | |
8593 | 8596 | lt_prog_compiler_static='-static' |
8594 | 8597 | ;; |
8595 | 8598 | # icc used to be incompatible with GCC. |
16176 | 16179 | # report actual input values of CONFIG_FILES etc. instead of their |
16177 | 16180 | # values after options handling. |
16178 | 16181 | ac_log=" |
16179 | This file was extended by libgeotiff $as_me 1.6.0, which was | |
16182 | This file was extended by libgeotiff $as_me 1.7.0, which was | |
16180 | 16183 | generated by GNU Autoconf 2.69. Invocation command line was |
16181 | 16184 | |
16182 | 16185 | CONFIG_FILES = $CONFIG_FILES |
16242 | 16245 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16243 | 16246 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
16244 | 16247 | ac_cs_version="\\ |
16245 | libgeotiff config.status 1.6.0 | |
16248 | libgeotiff config.status 1.7.0 | |
16246 | 16249 | configured by $0, generated by GNU Autoconf 2.69, |
16247 | 16250 | with options \\"\$ac_cs_config\\" |
16248 | 16251 | |
16361 | 16364 | # |
16362 | 16365 | # INIT-COMMANDS |
16363 | 16366 | # |
16364 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
16367 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" | |
16365 | 16368 | |
16366 | 16369 | |
16367 | 16370 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
17263 | 17266 | # Older Autoconf quotes --file arguments for eval, but not when files |
17264 | 17267 | # are listed without --file. Let's play safe and only enable the eval |
17265 | 17268 | # if we detect the quoting. |
17266 | case $CONFIG_FILES in | |
17267 | *\'*) eval set x "$CONFIG_FILES" ;; | |
17268 | *) set x $CONFIG_FILES ;; | |
17269 | esac | |
17269 | # TODO: see whether this extra hack can be removed once we start | |
17270 | # requiring Autoconf 2.70 or later. | |
17271 | case $CONFIG_FILES in #( | |
17272 | *\'*) : | |
17273 | eval set x "$CONFIG_FILES" ;; #( | |
17274 | *) : | |
17275 | set x $CONFIG_FILES ;; #( | |
17276 | *) : | |
17277 | ;; | |
17278 | esac | |
17270 | 17279 | shift |
17271 | for mf | |
17280 | # Used to flag and report bootstrapping failures. | |
17281 | am_rc=0 | |
17282 | for am_mf | |
17272 | 17283 | do |
17273 | 17284 | # Strip MF so we end up with the name of the file. |
17274 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17275 | # Check whether this is an Automake generated Makefile or not. | |
17276 | # We used to match only the files named 'Makefile.in', but | |
17277 | # some people rename them; so instead we look at the file content. | |
17278 | # Grep'ing the first line is not enough: some people post-process | |
17279 | # each Makefile.in and add a new line on top of each file to say so. | |
17280 | # Grep'ing the whole file is not good either: AIX grep has a line | |
17285 | am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` | |
17286 | # Check whether this is an Automake generated Makefile which includes | |
17287 | # dependency-tracking related rules and includes. | |
17288 | # Grep'ing the whole file directly is not great: AIX grep has a line | |
17281 | 17289 | # limit of 2048, but all sed's we know have understand at least 4000. |
17282 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17283 | dirpart=`$as_dirname -- "$mf" || | |
17284 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17285 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17286 | X"$mf" : 'X\(//\)$' \| \ | |
17287 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
17288 | $as_echo X"$mf" | | |
17290 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ | |
17291 | || continue | |
17292 | am_dirpart=`$as_dirname -- "$am_mf" || | |
17293 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17294 | X"$am_mf" : 'X\(//\)[^/]' \| \ | |
17295 | X"$am_mf" : 'X\(//\)$' \| \ | |
17296 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || | |
17297 | $as_echo X"$am_mf" | | |
17289 | 17298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
17290 | 17299 | s//\1/ |
17291 | 17300 | q |
17303 | 17312 | q |
17304 | 17313 | } |
17305 | 17314 | s/.*/./; q'` |
17306 | else | |
17307 | continue | |
17308 | fi | |
17309 | # Extract the definition of DEPDIR, am__include, and am__quote | |
17310 | # from the Makefile without running 'make'. | |
17311 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
17312 | test -z "$DEPDIR" && continue | |
17313 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
17314 | test -z "$am__include" && continue | |
17315 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
17316 | # Find all dependency output files, they are included files with | |
17317 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17318 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17319 | # expansion. | |
17320 | for file in `sed -n " | |
17321 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
17322 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
17323 | # Make sure the directory exists. | |
17324 | test -f "$dirpart/$file" && continue | |
17325 | fdir=`$as_dirname -- "$file" || | |
17326 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17327 | X"$file" : 'X\(//\)[^/]' \| \ | |
17328 | X"$file" : 'X\(//\)$' \| \ | |
17329 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
17330 | $as_echo X"$file" | | |
17331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17315 | am_filepart=`$as_basename -- "$am_mf" || | |
17316 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ | |
17317 | X"$am_mf" : 'X\(//\)$' \| \ | |
17318 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || | |
17319 | $as_echo X/"$am_mf" | | |
17320 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17332 | 17321 | s//\1/ |
17333 | 17322 | q |
17334 | 17323 | } |
17335 | /^X\(\/\/\)[^/].*/{ | |
17324 | /^X\/\(\/\/\)$/{ | |
17336 | 17325 | s//\1/ |
17337 | 17326 | q |
17338 | 17327 | } |
17339 | /^X\(\/\/\)$/{ | |
17340 | s//\1/ | |
17341 | q | |
17342 | } | |
17343 | /^X\(\/\).*/{ | |
17328 | /^X\/\(\/\).*/{ | |
17344 | 17329 | s//\1/ |
17345 | 17330 | q |
17346 | 17331 | } |
17347 | 17332 | s/.*/./; q'` |
17348 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
17349 | # echo "creating $dirpart/$file" | |
17350 | echo '# dummy' > "$dirpart/$file" | |
17351 | done | |
17333 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ | |
17334 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
17335 | | $MAKE -f - am--depfiles" >&5 | |
17336 | (cd "$am_dirpart" \ | |
17337 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
17338 | | $MAKE -f - am--depfiles) >&5 2>&5 | |
17339 | ac_status=$? | |
17340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17341 | (exit $ac_status); } || am_rc=$? | |
17352 | 17342 | done |
17343 | if test $am_rc -ne 0; then | |
17344 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
17345 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17346 | as_fn_error $? "Something went wrong bootstrapping makefile fragments | |
17347 | for automatic dependency tracking. Try re-running configure with the | |
17348 | '--disable-dependency-tracking' option to at least be able to build | |
17349 | the package (albeit without support for automatic dependency tracking). | |
17350 | See \`config.log' for more details" "$LINENO" 5; } | |
17351 | fi | |
17352 | { am_dirpart=; unset am_dirpart;} | |
17353 | { am_filepart=; unset am_filepart;} | |
17354 | { am_mf=; unset am_mf;} | |
17355 | { am_rc=; unset am_rc;} | |
17356 | rm -f conftest-deps.mk | |
17353 | 17357 | } |
17354 | 17358 | ;; |
17355 | 17359 | "libtool":C) |
17367 | 17371 | cat <<_LT_EOF >> "$cfgfile" |
17368 | 17372 | #! $SHELL |
17369 | 17373 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
17370 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17371 | 17374 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
17372 | 17375 | |
17373 | 17376 | # Provide generalized library-building support services. |
0 | 0 | |
1 | 1 | |
2 | 2 | m4_define([VERSION_MAJOR], [1]) |
3 | m4_define([VERSION_MINOR], [6]) | |
3 | m4_define([VERSION_MINOR], [7]) | |
4 | 4 | m4_define([VERSION_POINT], [0]) |
5 | 5 | m4_define([GEOTIFF_VERSION], |
6 | 6 | [VERSION_MAJOR.VERSION_MINOR.VERSION_POINT]) |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
3 | scriptversion=2013-05-30.07; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
6 | 6 | |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
15 | 15 | # GNU General Public License for more details. |
16 | 16 | |
17 | 17 | # You should have received a copy of the GNU General Public License |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
19 | 19 | |
20 | 20 | # As a special exception to the GNU General Public License, if you |
21 | 21 | # distribute this file as part of a program that contains a |
782 | 782 | # Local Variables: |
783 | 783 | # mode: shell-script |
784 | 784 | # sh-indentation: 2 |
785 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
785 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
786 | 786 | # time-stamp-start: "scriptversion=" |
787 | 787 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
788 | # time-stamp-time-zone: "UTC" | |
788 | # time-stamp-time-zone: "UTC0" | |
789 | 789 | # time-stamp-end: "; # UTC" |
790 | 790 | # End: |
143 | 143 | ValuePair( VerticalCitationGeoKey, 4097) -- documentation -- |
144 | 144 | ValuePair( VerticalDatumGeoKey, 4098) -- Section 6.3.4.2 codes -- |
145 | 145 | ValuePair( VerticalUnitsGeoKey, 4099) -- Section 6.3.1 (.x) codes -- |
146 | ||
147 | See https://github.com/opengeospatial/geotiff/pull/99 | |
148 | ValuePair( CoordinateEpochGeoKey, 5120) -- GeoKey of type double | |
146 | 149 | </pre> |
147 | 150 | */ |
148 | 151 |
465 | 465 | return TRUE; |
466 | 466 | } |
467 | 467 | |
468 | ||
469 | if( nGCSCode == KvUserDefined ) | |
470 | return FALSE; | |
471 | ||
472 | 468 | /* -------------------------------------------------------------------- */ |
473 | 469 | /* Search the database. */ |
474 | 470 | /* -------------------------------------------------------------------- */ |
511 | 507 | |
512 | 508 | if( pnDatum ) |
513 | 509 | { |
510 | #if PROJ_VERSION_MAJOR >= 8 | |
511 | PJ* datum = proj_crs_get_datum_forced(ctx, geod_crs); | |
512 | #else | |
514 | 513 | PJ* datum = proj_crs_get_datum(ctx, geod_crs); |
514 | #endif | |
515 | 515 | if( !datum ) |
516 | 516 | { |
517 | 517 | proj_destroy(geod_crs); |
1062 | 1062 | return TRUE; |
1063 | 1063 | } |
1064 | 1064 | |
1065 | if( nUOMAngleCode == KvUserDefined ) | |
1066 | return FALSE; | |
1067 | ||
1065 | 1068 | /* -------------------------------------------------------------------- */ |
1066 | 1069 | /* Search the units database for this unit. If we don't find */ |
1067 | 1070 | /* it return failure. */ |
1198 | 1201 | } |
1199 | 1202 | |
1200 | 1203 | /************************************************************************/ |
1201 | /* SetGTParmIds() */ | |
1204 | /* SetGTParamIds() */ | |
1202 | 1205 | /* */ |
1203 | 1206 | /* This is hardcoded logic to set the GeoTIFF parameter */ |
1204 | 1207 | /* identifiers for all the EPSG supported projections. As new */ |
1205 | 1208 | /* projection methods are added, this code will need to be updated */ |
1206 | 1209 | /************************************************************************/ |
1207 | 1210 | |
1208 | static int SetGTParmIds( int nCTProjection, | |
1209 | int nEPSGProjMethod, | |
1210 | int *panProjParmId, | |
1211 | int *panEPSGCodes ) | |
1211 | static int SetGTParamIds( int nCTProjection, | |
1212 | int nEPSGProjMethod, | |
1213 | int *panProjParamId, | |
1214 | int *panEPSGCodes ) | |
1212 | 1215 | |
1213 | 1216 | { |
1214 | 1217 | int anWorkingDummy[7]; |
1215 | 1218 | |
1216 | 1219 | if( panEPSGCodes == NULL ) |
1217 | 1220 | panEPSGCodes = anWorkingDummy; |
1218 | if( panProjParmId == NULL ) | |
1219 | panProjParmId = anWorkingDummy; | |
1221 | if( panProjParamId == NULL ) | |
1222 | panProjParamId = anWorkingDummy; | |
1220 | 1223 | |
1221 | 1224 | memset( panEPSGCodes, 0, sizeof(int) * 7 ); |
1222 | 1225 | |
1227 | 1230 | case CT_CassiniSoldner: |
1228 | 1231 | case CT_NewZealandMapGrid: |
1229 | 1232 | case CT_Polyconic: |
1230 | panProjParmId[0] = ProjNatOriginLatGeoKey; | |
1231 | panProjParmId[1] = ProjNatOriginLongGeoKey; | |
1232 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1233 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1233 | panProjParamId[0] = ProjNatOriginLatGeoKey; | |
1234 | panProjParamId[1] = ProjNatOriginLongGeoKey; | |
1235 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1236 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1234 | 1237 | |
1235 | 1238 | panEPSGCodes[0] = EPSGNatOriginLat; |
1236 | 1239 | panEPSGCodes[1] = EPSGNatOriginLong; |
1240 | 1243 | |
1241 | 1244 | case CT_ObliqueMercator: |
1242 | 1245 | case CT_HotineObliqueMercatorAzimuthCenter: |
1243 | panProjParmId[0] = ProjCenterLatGeoKey; | |
1244 | panProjParmId[1] = ProjCenterLongGeoKey; | |
1245 | panProjParmId[2] = ProjAzimuthAngleGeoKey; | |
1246 | panProjParmId[3] = ProjRectifiedGridAngleGeoKey; | |
1247 | panProjParmId[4] = ProjScaleAtCenterGeoKey; | |
1248 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1249 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1246 | panProjParamId[0] = ProjCenterLatGeoKey; | |
1247 | panProjParamId[1] = ProjCenterLongGeoKey; | |
1248 | panProjParamId[2] = ProjAzimuthAngleGeoKey; | |
1249 | panProjParamId[3] = ProjRectifiedGridAngleGeoKey; | |
1250 | panProjParamId[4] = ProjScaleAtCenterGeoKey; | |
1251 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1252 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1250 | 1253 | |
1251 | 1254 | panEPSGCodes[0] = EPSGProjCenterLat; |
1252 | 1255 | panEPSGCodes[1] = EPSGProjCenterLong; |
1258 | 1261 | return TRUE; |
1259 | 1262 | |
1260 | 1263 | case CT_ObliqueMercator_Laborde: |
1261 | panProjParmId[0] = ProjCenterLatGeoKey; | |
1262 | panProjParmId[1] = ProjCenterLongGeoKey; | |
1263 | panProjParmId[2] = ProjAzimuthAngleGeoKey; | |
1264 | panProjParmId[4] = ProjScaleAtCenterGeoKey; | |
1265 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1266 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1264 | panProjParamId[0] = ProjCenterLatGeoKey; | |
1265 | panProjParamId[1] = ProjCenterLongGeoKey; | |
1266 | panProjParamId[2] = ProjAzimuthAngleGeoKey; | |
1267 | panProjParamId[4] = ProjScaleAtCenterGeoKey; | |
1268 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1269 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1267 | 1270 | |
1268 | 1271 | panEPSGCodes[0] = EPSGProjCenterLat; |
1269 | 1272 | panEPSGCodes[1] = EPSGProjCenterLong; |
1279 | 1282 | case CT_PolarStereographic: |
1280 | 1283 | case CT_TransverseMercator: |
1281 | 1284 | case CT_TransvMercator_SouthOriented: |
1282 | panProjParmId[0] = ProjNatOriginLatGeoKey; | |
1285 | panProjParamId[0] = ProjNatOriginLatGeoKey; | |
1283 | 1286 | if( nCTProjection == CT_PolarStereographic ) |
1284 | 1287 | { |
1285 | panProjParmId[1] = ProjStraightVertPoleLongGeoKey; | |
1288 | panProjParamId[1] = ProjStraightVertPoleLongGeoKey; | |
1286 | 1289 | } |
1287 | 1290 | else |
1288 | 1291 | { |
1289 | panProjParmId[1] = ProjNatOriginLongGeoKey; | |
1292 | panProjParamId[1] = ProjNatOriginLongGeoKey; | |
1290 | 1293 | } |
1291 | 1294 | if( nEPSGProjMethod == 9805 ) /* Mercator_2SP */ |
1292 | 1295 | { |
1293 | panProjParmId[2] = ProjStdParallel1GeoKey; | |
1294 | } | |
1295 | panProjParmId[4] = ProjScaleAtNatOriginGeoKey; | |
1296 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1297 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1296 | panProjParamId[2] = ProjStdParallel1GeoKey; | |
1297 | } | |
1298 | panProjParamId[4] = ProjScaleAtNatOriginGeoKey; | |
1299 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1300 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1298 | 1301 | |
1299 | 1302 | panEPSGCodes[0] = EPSGNatOriginLat; |
1300 | 1303 | panEPSGCodes[1] = EPSGNatOriginLong; |
1308 | 1311 | return TRUE; |
1309 | 1312 | |
1310 | 1313 | case CT_LambertConfConic_2SP: |
1311 | panProjParmId[0] = ProjFalseOriginLatGeoKey; | |
1312 | panProjParmId[1] = ProjFalseOriginLongGeoKey; | |
1313 | panProjParmId[2] = ProjStdParallel1GeoKey; | |
1314 | panProjParmId[3] = ProjStdParallel2GeoKey; | |
1315 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1316 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1314 | panProjParamId[0] = ProjFalseOriginLatGeoKey; | |
1315 | panProjParamId[1] = ProjFalseOriginLongGeoKey; | |
1316 | panProjParamId[2] = ProjStdParallel1GeoKey; | |
1317 | panProjParamId[3] = ProjStdParallel2GeoKey; | |
1318 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1319 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1317 | 1320 | |
1318 | 1321 | panEPSGCodes[0] = EPSGFalseOriginLat; |
1319 | 1322 | panEPSGCodes[1] = EPSGFalseOriginLong; |
1324 | 1327 | return TRUE; |
1325 | 1328 | |
1326 | 1329 | case CT_AlbersEqualArea: |
1327 | panProjParmId[0] = ProjStdParallel1GeoKey; | |
1328 | panProjParmId[1] = ProjStdParallel2GeoKey; | |
1329 | panProjParmId[2] = ProjNatOriginLatGeoKey; | |
1330 | panProjParmId[3] = ProjNatOriginLongGeoKey; | |
1331 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1332 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1330 | panProjParamId[0] = ProjStdParallel1GeoKey; | |
1331 | panProjParamId[1] = ProjStdParallel2GeoKey; | |
1332 | panProjParamId[2] = ProjNatOriginLatGeoKey; | |
1333 | panProjParamId[3] = ProjNatOriginLongGeoKey; | |
1334 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1335 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1333 | 1336 | |
1334 | 1337 | panEPSGCodes[0] = EPSGStdParallel1Lat; |
1335 | 1338 | panEPSGCodes[1] = EPSGStdParallel2Lat; |
1340 | 1343 | return TRUE; |
1341 | 1344 | |
1342 | 1345 | case CT_SwissObliqueCylindrical: |
1343 | panProjParmId[0] = ProjCenterLatGeoKey; | |
1344 | panProjParmId[1] = ProjCenterLongGeoKey; | |
1345 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1346 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1346 | panProjParamId[0] = ProjCenterLatGeoKey; | |
1347 | panProjParamId[1] = ProjCenterLongGeoKey; | |
1348 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1349 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1347 | 1350 | |
1348 | 1351 | /* EPSG codes? */ |
1349 | 1352 | return TRUE; |
1350 | 1353 | |
1351 | 1354 | case CT_LambertAzimEqualArea: |
1352 | panProjParmId[0] = ProjCenterLatGeoKey; | |
1353 | panProjParmId[1] = ProjCenterLongGeoKey; | |
1354 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1355 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1355 | panProjParamId[0] = ProjCenterLatGeoKey; | |
1356 | panProjParamId[1] = ProjCenterLongGeoKey; | |
1357 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1358 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1356 | 1359 | |
1357 | 1360 | panEPSGCodes[0] = EPSGNatOriginLat; |
1358 | 1361 | panEPSGCodes[1] = EPSGNatOriginLong; |
1361 | 1364 | return TRUE; |
1362 | 1365 | |
1363 | 1366 | case CT_CylindricalEqualArea: |
1364 | panProjParmId[0] = ProjStdParallel1GeoKey; | |
1365 | panProjParmId[1] = ProjNatOriginLongGeoKey; | |
1366 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1367 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1367 | panProjParamId[0] = ProjStdParallel1GeoKey; | |
1368 | panProjParamId[1] = ProjNatOriginLongGeoKey; | |
1369 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1370 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1368 | 1371 | |
1369 | 1372 | panEPSGCodes[0] = EPSGStdParallel1Lat; |
1370 | 1373 | panEPSGCodes[1] = EPSGFalseOriginLong; |
1373 | 1376 | return TRUE; |
1374 | 1377 | |
1375 | 1378 | case CT_Equirectangular: |
1376 | panProjParmId[0] = ProjCenterLatGeoKey; | |
1377 | panProjParmId[1] = ProjCenterLongGeoKey; | |
1378 | panProjParmId[2] = ProjStdParallel1GeoKey; | |
1379 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1380 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1379 | panProjParamId[0] = ProjCenterLatGeoKey; | |
1380 | panProjParamId[1] = ProjCenterLongGeoKey; | |
1381 | panProjParamId[2] = ProjStdParallel1GeoKey; | |
1382 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1383 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1381 | 1384 | |
1382 | 1385 | panEPSGCodes[0] = EPSGNatOriginLat; |
1383 | 1386 | panEPSGCodes[1] = EPSGNatOriginLong; |
1387 | 1390 | return TRUE; |
1388 | 1391 | |
1389 | 1392 | case CT_Ext_Mercator_2SP: |
1390 | panProjParmId[0] = ProjNatOriginLatGeoKey; | |
1391 | panProjParmId[1] = ProjNatOriginLongGeoKey; | |
1392 | panProjParmId[2] = ProjStdParallel1GeoKey; | |
1393 | panProjParmId[5] = ProjFalseEastingGeoKey; | |
1394 | panProjParmId[6] = ProjFalseNorthingGeoKey; | |
1393 | panProjParamId[0] = ProjNatOriginLatGeoKey; | |
1394 | panProjParamId[1] = ProjNatOriginLongGeoKey; | |
1395 | panProjParamId[2] = ProjStdParallel1GeoKey; | |
1396 | panProjParamId[5] = ProjFalseEastingGeoKey; | |
1397 | panProjParamId[6] = ProjFalseNorthingGeoKey; | |
1395 | 1398 | |
1396 | 1399 | panEPSGCodes[0] = EPSGNatOriginLat; |
1397 | 1400 | panEPSGCodes[1] = EPSGNatOriginLong; |
1418 | 1421 | int nProjTRFCode, |
1419 | 1422 | char **ppszProjTRFName, |
1420 | 1423 | short * pnProjMethod, |
1421 | double * padfProjParms ) | |
1424 | double * padfProjParams ) | |
1422 | 1425 | |
1423 | 1426 | { |
1424 | 1427 | PJ_CONTEXT* ctx = (PJ_CONTEXT*)ctxIn; |
1450 | 1453 | if (pnProjMethod) |
1451 | 1454 | *pnProjMethod = 9807; |
1452 | 1455 | |
1453 | if (padfProjParms) | |
1454 | { | |
1455 | padfProjParms[0] = 0; | |
1456 | padfProjParms[1] = -183 + 6 * nZone; | |
1457 | padfProjParms[2] = 0; | |
1458 | padfProjParms[3] = 0; | |
1459 | padfProjParms[4] = 0.9996; | |
1460 | padfProjParms[5] = 500000; | |
1461 | padfProjParms[6] = (bNorth) ? 0 : 10000000; | |
1456 | if (padfProjParams) | |
1457 | { | |
1458 | padfProjParams[0] = 0; | |
1459 | padfProjParams[1] = -183 + 6 * nZone; | |
1460 | padfProjParams[2] = 0; | |
1461 | padfProjParams[3] = 0; | |
1462 | padfProjParams[4] = 0.9996; | |
1463 | padfProjParams[5] = 500000; | |
1464 | padfProjParams[6] = (bNorth) ? 0 : 10000000; | |
1462 | 1465 | } |
1463 | 1466 | |
1464 | 1467 | return TRUE; |
1469 | 1472 | |
1470 | 1473 | { |
1471 | 1474 | int nProjMethod, i, anEPSGCodes[7]; |
1472 | double adfProjParms[7]; | |
1475 | double adfProjParams[7]; | |
1473 | 1476 | char szCode[12]; |
1474 | 1477 | const char* pszMethodCode = NULL; |
1475 | 1478 | int nCTProjMethod; |
1499 | 1502 | |
1500 | 1503 | /* -------------------------------------------------------------------- */ |
1501 | 1504 | /* Initialize a definition of what EPSG codes need to be loaded */ |
1502 | /* into what fields in adfProjParms. */ | |
1505 | /* into what fields in adfProjParams. */ | |
1503 | 1506 | /* -------------------------------------------------------------------- */ |
1504 | 1507 | nCTProjMethod = EPSGProjMethodToCTProjMethod( nProjMethod, TRUE ); |
1505 | SetGTParmIds( nCTProjMethod, nProjMethod, NULL, anEPSGCodes ); | |
1508 | SetGTParamIds( nCTProjMethod, nProjMethod, NULL, anEPSGCodes ); | |
1506 | 1509 | |
1507 | 1510 | /* -------------------------------------------------------------------- */ |
1508 | 1511 | /* Get the parameters for this projection. */ |
1519 | 1522 | |
1520 | 1523 | /* Establish default */ |
1521 | 1524 | if( nEPSGCode == EPSGAngleRectifiedToSkewedGrid ) |
1522 | adfProjParms[i] = 90.0; | |
1525 | adfProjParams[i] = 90.0; | |
1523 | 1526 | else if( nEPSGCode == EPSGNatOriginScaleFactor |
1524 | 1527 | || nEPSGCode == EPSGInitialLineScaleFactor |
1525 | 1528 | || nEPSGCode == EPSGPseudoStdParallelScaleFactor ) |
1526 | adfProjParms[i] = 1.0; | |
1529 | adfProjParams[i] = 1.0; | |
1527 | 1530 | else |
1528 | adfProjParms[i] = 0.0; | |
1531 | adfProjParams[i] = 0.0; | |
1529 | 1532 | |
1530 | 1533 | /* If there is no parameter, skip */ |
1531 | 1534 | if( nEPSGCode == 0 ) |
1603 | 1606 | |
1604 | 1607 | assert(pszUOMCategory); |
1605 | 1608 | |
1606 | adfProjParms[i] = dfValue * dfUnitConvFactor; | |
1609 | adfProjParams[i] = dfValue * dfUnitConvFactor; | |
1607 | 1610 | if( strcmp(pszUOMCategory, "angular") == 0.0 ) |
1608 | 1611 | { |
1609 | 1612 | /* Convert from radians to degrees */ |
1610 | adfProjParms[i] *= 180 / M_PI; | |
1613 | adfProjParams[i] *= 180 / M_PI; | |
1611 | 1614 | } |
1612 | 1615 | } |
1613 | 1616 | |
1632 | 1635 | if( pnProjMethod != NULL ) |
1633 | 1636 | *pnProjMethod = (short) nProjMethod; |
1634 | 1637 | |
1635 | if( padfProjParms != NULL ) | |
1638 | if( padfProjParams != NULL ) | |
1636 | 1639 | { |
1637 | 1640 | for( i = 0; i < 7; i++ ) |
1638 | padfProjParms[i] = adfProjParms[i]; | |
1641 | padfProjParams[i] = adfProjParams[i]; | |
1639 | 1642 | } |
1640 | 1643 | |
1641 | 1644 | proj_destroy(transf); |
1648 | 1651 | int nProjTRFCode, |
1649 | 1652 | char **ppszProjTRFName, |
1650 | 1653 | short * pnProjMethod, |
1651 | double * padfProjParms ) | |
1654 | double * padfProjParams ) | |
1652 | 1655 | { |
1653 | 1656 | PJ_CONTEXT* ctx = proj_context_create(); |
1654 | 1657 | int ret = GTIFGetProjTRFInfoEx( |
1655 | ctx, nProjTRFCode, ppszProjTRFName, pnProjMethod, padfProjParms); | |
1658 | ctx, nProjTRFCode, ppszProjTRFName, pnProjMethod, padfProjParams); | |
1656 | 1659 | proj_context_destroy(ctx); |
1657 | 1660 | return ret; |
1658 | 1661 | } |
1671 | 1674 | double dfNatOriginLong = 0.0, dfNatOriginLat = 0.0, dfRectGridAngle = 0.0; |
1672 | 1675 | double dfFalseEasting = 0.0, dfFalseNorthing = 0.0, dfNatOriginScale = 1.0; |
1673 | 1676 | double dfStdParallel1 = 0.0, dfStdParallel2 = 0.0, dfAzimuth = 0.0; |
1674 | int iParm; | |
1677 | int iParam; | |
1675 | 1678 | int bHaveSP1, bHaveNOS; |
1676 | 1679 | |
1677 | 1680 | /* -------------------------------------------------------------------- */ |
2248 | 2251 | /* the linear projection parameter tags are normally in the */ |
2249 | 2252 | /* units of the coordinate system described. */ |
2250 | 2253 | /* -------------------------------------------------------------------- */ |
2251 | for( iParm = 0; iParm < psDefn->nParms; iParm++ ) | |
2252 | { | |
2253 | switch( psDefn->ProjParmId[iParm] ) | |
2254 | for( iParam = 0; iParam < psDefn->nParms; iParam++ ) | |
2255 | { | |
2256 | switch( psDefn->ProjParmId[iParam] ) | |
2254 | 2257 | { |
2255 | 2258 | case ProjFalseEastingGeoKey: |
2256 | 2259 | case ProjFalseNorthingGeoKey: |
2261 | 2264 | if( psDefn->UOMLengthInMeters != 0 |
2262 | 2265 | && psDefn->UOMLengthInMeters != 1.0 ) |
2263 | 2266 | { |
2264 | psDefn->ProjParm[iParm] *= psDefn->UOMLengthInMeters; | |
2267 | psDefn->ProjParm[iParam] *= psDefn->UOMLengthInMeters; | |
2265 | 2268 | } |
2266 | 2269 | break; |
2267 | 2270 | |
2519 | 2522 | psDefn->CTProjection = (short) |
2520 | 2523 | EPSGProjMethodToCTProjMethod( psDefn->Projection, FALSE ); |
2521 | 2524 | |
2522 | SetGTParmIds( EPSGProjMethodToCTProjMethod(psDefn->Projection, TRUE), | |
2525 | SetGTParamIds( EPSGProjMethodToCTProjMethod(psDefn->Projection, TRUE), | |
2523 | 2526 | psDefn->Projection, |
2524 | 2527 | psDefn->ProjParmId, NULL); |
2525 | 2528 | psDefn->nParms = 7; |
154 | 154 | int nProjTRFCode, |
155 | 155 | char **ppszProjTRFName, |
156 | 156 | short * pnProjMethod, |
157 | double * padfProjParms ); | |
157 | double * padfProjParams ); | |
158 | 158 | int GTIF_DLL GTIFGetProjTRFInfo( int nProjTRFCode, |
159 | 159 | char ** ppszProjTRFName, |
160 | 160 | short * pnProjMethod, |
161 | double * padfProjParms ); | |
161 | double * padfProjParams ); | |
162 | 162 | |
163 | 163 | int GTIF_DLL GTIFGetGCSInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */ |
164 | 164 | int nGCSCode, char ** ppszName, |
73 | 73 | ValuePair( VerticalDatumGeoKey, 4098) /* Section 6.3.4.2 codes */ |
74 | 74 | ValuePair( VerticalUnitsGeoKey, 4099) /* Section 6.3.1 (.x) codes */ |
75 | 75 | |
76 | /* See https://github.com/opengeospatial/geotiff/pull/99 */ | |
77 | ValuePair( CoordinateEpochGeoKey, 5120) /* GeoKey of type double */ | |
78 | ||
76 | 79 | /* End of Data base */ |
46 | 46 | #define GEOTIFF_SPEC_1_1_MINOR_REVISION 1 |
47 | 47 | |
48 | 48 | /* Library version */ |
49 | #define LIBGEOTIFF_VERSION 1600 | |
49 | #define LIBGEOTIFF_VERSION 1700 | |
50 | 50 | |
51 | 51 | #include "geo_config.h" |
52 | 52 | #include "geokeys.h" |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
124 | 124 | am__v_at_1 = |
125 | 125 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
126 | 126 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
127 | am__depfiles_maybe = depfiles | |
127 | am__maybe_remake_depfiles = depfiles | |
128 | am__depfiles_remade = ./$(DEPDIR)/xtiff.Plo | |
128 | 129 | am__mv = mv -f |
129 | 130 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
130 | 131 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
385 | 386 | *config.status*) \ |
386 | 387 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ |
387 | 388 | *) \ |
388 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | |
389 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | |
389 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
390 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
390 | 391 | esac; |
391 | 392 | |
392 | 393 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
418 | 419 | distclean-compile: |
419 | 420 | -rm -f *.tab.c |
420 | 421 | |
421 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xtiff.Plo@am__quote@ | |
422 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xtiff.Plo@am__quote@ # am--include-marker | |
423 | ||
424 | $(am__depfiles_remade): | |
425 | @$(MKDIR_P) $(@D) | |
426 | @echo '# dummy' >$@-t && $(am__mv) $@-t $@ | |
427 | ||
428 | am--depfiles: $(am__depfiles_remade) | |
422 | 429 | |
423 | 430 | .c.o: |
424 | 431 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
520 | 527 | distclean-tags: |
521 | 528 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
522 | 529 | |
523 | distdir: $(DISTFILES) | |
530 | distdir: $(BUILT_SOURCES) | |
531 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
532 | ||
533 | distdir-am: $(DISTFILES) | |
524 | 534 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
525 | 535 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
526 | 536 | list='$(DISTFILES)'; \ |
593 | 603 | mostlyclean-am |
594 | 604 | |
595 | 605 | distclean: distclean-am |
596 | -rm -rf ./$(DEPDIR) | |
606 | -rm -f ./$(DEPDIR)/xtiff.Plo | |
597 | 607 | -rm -f Makefile |
598 | 608 | distclean-am: clean-am distclean-compile distclean-generic \ |
599 | 609 | distclean-tags |
639 | 649 | installcheck-am: |
640 | 650 | |
641 | 651 | maintainer-clean: maintainer-clean-am |
642 | -rm -rf ./$(DEPDIR) | |
652 | -rm -f ./$(DEPDIR)/xtiff.Plo | |
643 | 653 | -rm -f Makefile |
644 | 654 | maintainer-clean-am: distclean-am maintainer-clean-generic |
645 | 655 | |
660 | 670 | |
661 | 671 | .MAKE: install-am install-strip |
662 | 672 | |
663 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
664 | clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ | |
665 | ctags-am distclean distclean-compile distclean-generic \ | |
666 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
667 | html-am info info-am install install-am install-data \ | |
668 | install-data-am install-dvi install-dvi-am install-exec \ | |
669 | install-exec-am install-html install-html-am \ | |
673 | .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ | |
674 | clean-generic clean-libtool clean-noinstLTLIBRARIES \ | |
675 | cscopelist-am ctags ctags-am distclean distclean-compile \ | |
676 | distclean-generic distclean-libtool distclean-tags distdir dvi \ | |
677 | dvi-am html html-am info info-am install install-am \ | |
678 | install-data install-data-am install-dvi install-dvi-am \ | |
679 | install-exec install-exec-am install-html install-html-am \ | |
670 | 680 | install-includeHEADERS install-info install-info-am \ |
671 | 681 | install-man install-pdf install-pdf-am install-ps \ |
672 | 682 | install-ps-am install-strip installcheck installcheck-am \ |
30 | 30 | |
31 | 31 | PROGRAM=libtool |
32 | 32 | PACKAGE=libtool |
33 | VERSION="2.4.6 Debian-2.4.6-0.1" | |
33 | VERSION="2.4.6 Debian-2.4.6-14" | |
34 | 34 | package_revision=2.4.6 |
35 | 35 | |
36 | 36 | |
386 | 386 | # putting '$debug_cmd' at the start of all your functions, you can get |
387 | 387 | # bash to show function call trace with: |
388 | 388 | # |
389 | # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name | |
389 | # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name | |
390 | 390 | debug_cmd=${debug_cmd-":"} |
391 | 391 | exit_cmd=: |
392 | 392 | |
1369 | 1369 | #! /bin/sh |
1370 | 1370 | |
1371 | 1371 | # Set a version string for this script. |
1372 | scriptversion=2014-01-07.03; # UTC | |
1372 | scriptversion=2015-10-07.11; # UTC | |
1373 | 1373 | |
1374 | 1374 | # A portable, pluggable option parser for Bourne shell. |
1375 | 1375 | # Written by Gary V. Vaughan, 2010 |
1529 | 1529 | { |
1530 | 1530 | $debug_cmd |
1531 | 1531 | |
1532 | _G_rc_run_hooks=false | |
1533 | ||
1532 | 1534 | case " $hookable_fns " in |
1533 | 1535 | *" $1 "*) ;; |
1534 | 1536 | *) func_fatal_error "'$1' does not support hook funcions.n" ;; |
1537 | 1539 | eval _G_hook_fns=\$$1_hooks; shift |
1538 | 1540 | |
1539 | 1541 | for _G_hook in $_G_hook_fns; do |
1540 | eval $_G_hook '"$@"' | |
1541 | ||
1542 | # store returned options list back into positional | |
1543 | # parameters for next 'cmd' execution. | |
1544 | eval _G_hook_result=\$${_G_hook}_result | |
1545 | eval set dummy "$_G_hook_result"; shift | |
1542 | if eval $_G_hook '"$@"'; then | |
1543 | # store returned options list back into positional | |
1544 | # parameters for next 'cmd' execution. | |
1545 | eval _G_hook_result=\$${_G_hook}_result | |
1546 | eval set dummy "$_G_hook_result"; shift | |
1547 | _G_rc_run_hooks=: | |
1548 | fi | |
1546 | 1549 | done |
1547 | 1550 | |
1548 | func_quote_for_eval ${1+"$@"} | |
1549 | func_run_hooks_result=$func_quote_for_eval_result | |
1551 | $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result | |
1550 | 1552 | } |
1551 | 1553 | |
1552 | 1554 | |
1556 | 1558 | ## --------------- ## |
1557 | 1559 | |
1558 | 1560 | # In order to add your own option parsing hooks, you must accept the |
1559 | # full positional parameter list in your hook function, remove any | |
1560 | # options that you action, and then pass back the remaining unprocessed | |
1561 | # full positional parameter list in your hook function, you may remove/edit | |
1562 | # any options that you action, and then pass back the remaining unprocessed | |
1561 | 1563 | # options in '<hooked_function_name>_result', escaped suitably for |
1562 | # 'eval'. Like this: | |
1564 | # 'eval'. In this case you also must return $EXIT_SUCCESS to let the | |
1565 | # hook's caller know that it should pay attention to | |
1566 | # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that | |
1567 | # arguments are left untouched by the hook and therefore caller will ignore the | |
1568 | # result variable. | |
1569 | # | |
1570 | # Like this: | |
1563 | 1571 | # |
1564 | 1572 | # my_options_prep () |
1565 | 1573 | # { |
1569 | 1577 | # usage_message=$usage_message' |
1570 | 1578 | # -s, --silent don'\''t print informational messages |
1571 | 1579 | # ' |
1572 | # | |
1573 | # func_quote_for_eval ${1+"$@"} | |
1574 | # my_options_prep_result=$func_quote_for_eval_result | |
1580 | # # No change in '$@' (ignored completely by this hook). There is | |
1581 | # # no need to do the equivalent (but slower) action: | |
1582 | # # func_quote_for_eval ${1+"$@"} | |
1583 | # # my_options_prep_result=$func_quote_for_eval_result | |
1584 | # false | |
1575 | 1585 | # } |
1576 | 1586 | # func_add_hook func_options_prep my_options_prep |
1577 | 1587 | # |
1580 | 1590 | # { |
1581 | 1591 | # $debug_cmd |
1582 | 1592 | # |
1593 | # args_changed=false | |
1594 | # | |
1583 | 1595 | # # Note that for efficiency, we parse as many options as we can |
1584 | 1596 | # # recognise in a loop before passing the remainder back to the |
1585 | 1597 | # # caller on the first unrecognised argument we encounter. |
1586 | 1598 | # while test $# -gt 0; do |
1587 | 1599 | # opt=$1; shift |
1588 | 1600 | # case $opt in |
1589 | # --silent|-s) opt_silent=: ;; | |
1601 | # --silent|-s) opt_silent=: | |
1602 | # args_changed=: | |
1603 | # ;; | |
1590 | 1604 | # # Separate non-argument short options: |
1591 | 1605 | # -s*) func_split_short_opt "$_G_opt" |
1592 | 1606 | # set dummy "$func_split_short_opt_name" \ |
1593 | 1607 | # "-$func_split_short_opt_arg" ${1+"$@"} |
1594 | 1608 | # shift |
1609 | # args_changed=: | |
1595 | 1610 | # ;; |
1596 | # *) set dummy "$_G_opt" "$*"; shift; break ;; | |
1611 | # *) # Make sure the first unrecognised option "$_G_opt" | |
1612 | # # is added back to "$@", we could need that later | |
1613 | # # if $args_changed is true. | |
1614 | # set dummy "$_G_opt" ${1+"$@"}; shift; break ;; | |
1597 | 1615 | # esac |
1598 | 1616 | # done |
1599 | 1617 | # |
1600 | # func_quote_for_eval ${1+"$@"} | |
1601 | # my_silent_option_result=$func_quote_for_eval_result | |
1618 | # if $args_changed; then | |
1619 | # func_quote_for_eval ${1+"$@"} | |
1620 | # my_silent_option_result=$func_quote_for_eval_result | |
1621 | # fi | |
1622 | # | |
1623 | # $args_changed | |
1602 | 1624 | # } |
1603 | 1625 | # func_add_hook func_parse_options my_silent_option |
1604 | 1626 | # |
1610 | 1632 | # $opt_silent && $opt_verbose && func_fatal_help "\ |
1611 | 1633 | # '--silent' and '--verbose' options are mutually exclusive." |
1612 | 1634 | # |
1613 | # func_quote_for_eval ${1+"$@"} | |
1614 | # my_option_validation_result=$func_quote_for_eval_result | |
1635 | # false | |
1615 | 1636 | # } |
1616 | 1637 | # func_add_hook func_validate_options my_option_validation |
1617 | 1638 | # |
1618 | # You'll alse need to manually amend $usage_message to reflect the extra | |
1639 | # You'll also need to manually amend $usage_message to reflect the extra | |
1619 | 1640 | # options you parse. It's preferable to append if you can, so that |
1620 | 1641 | # multiple option parsing hooks can be added safely. |
1642 | ||
1643 | ||
1644 | # func_options_finish [ARG]... | |
1645 | # ---------------------------- | |
1646 | # Finishing the option parse loop (call 'func_options' hooks ATM). | |
1647 | func_options_finish () | |
1648 | { | |
1649 | $debug_cmd | |
1650 | ||
1651 | _G_func_options_finish_exit=false | |
1652 | if func_run_hooks func_options ${1+"$@"}; then | |
1653 | func_options_finish_result=$func_run_hooks_result | |
1654 | _G_func_options_finish_exit=: | |
1655 | fi | |
1656 | ||
1657 | $_G_func_options_finish_exit | |
1658 | } | |
1621 | 1659 | |
1622 | 1660 | |
1623 | 1661 | # func_options [ARG]... |
1629 | 1667 | { |
1630 | 1668 | $debug_cmd |
1631 | 1669 | |
1632 | func_options_prep ${1+"$@"} | |
1633 | eval func_parse_options \ | |
1634 | ${func_options_prep_result+"$func_options_prep_result"} | |
1635 | eval func_validate_options \ | |
1636 | ${func_parse_options_result+"$func_parse_options_result"} | |
1637 | ||
1638 | eval func_run_hooks func_options \ | |
1639 | ${func_validate_options_result+"$func_validate_options_result"} | |
1640 | ||
1641 | # save modified positional parameters for caller | |
1642 | func_options_result=$func_run_hooks_result | |
1670 | _G_rc_options=false | |
1671 | ||
1672 | for my_func in options_prep parse_options validate_options options_finish | |
1673 | do | |
1674 | if eval func_$my_func '${1+"$@"}'; then | |
1675 | eval _G_res_var='$'"func_${my_func}_result" | |
1676 | eval set dummy "$_G_res_var" ; shift | |
1677 | _G_rc_options=: | |
1678 | fi | |
1679 | done | |
1680 | ||
1681 | # Save modified positional parameters for caller. As a top-level | |
1682 | # options-parser function we always need to set the 'func_options_result' | |
1683 | # variable (regardless the $_G_rc_options value). | |
1684 | if $_G_rc_options; then | |
1685 | func_options_result=$_G_res_var | |
1686 | else | |
1687 | func_quote_for_eval ${1+"$@"} | |
1688 | func_options_result=$func_quote_for_eval_result | |
1689 | fi | |
1690 | ||
1691 | $_G_rc_options | |
1643 | 1692 | } |
1644 | 1693 | |
1645 | 1694 | |
1648 | 1697 | # All initialisations required before starting the option parse loop. |
1649 | 1698 | # Note that when calling hook functions, we pass through the list of |
1650 | 1699 | # positional parameters. If a hook function modifies that list, and |
1651 | # needs to propogate that back to rest of this script, then the complete | |
1700 | # needs to propagate that back to rest of this script, then the complete | |
1652 | 1701 | # modified list must be put in 'func_run_hooks_result' before |
1653 | # returning. | |
1702 | # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned). | |
1654 | 1703 | func_hookable func_options_prep |
1655 | 1704 | func_options_prep () |
1656 | 1705 | { |
1660 | 1709 | opt_verbose=false |
1661 | 1710 | opt_warning_types= |
1662 | 1711 | |
1663 | func_run_hooks func_options_prep ${1+"$@"} | |
1664 | ||
1665 | # save modified positional parameters for caller | |
1666 | func_options_prep_result=$func_run_hooks_result | |
1712 | _G_rc_options_prep=false | |
1713 | if func_run_hooks func_options_prep ${1+"$@"}; then | |
1714 | _G_rc_options_prep=: | |
1715 | # save modified positional parameters for caller | |
1716 | func_options_prep_result=$func_run_hooks_result | |
1717 | fi | |
1718 | ||
1719 | $_G_rc_options_prep | |
1667 | 1720 | } |
1668 | 1721 | |
1669 | 1722 | |
1677 | 1730 | |
1678 | 1731 | func_parse_options_result= |
1679 | 1732 | |
1733 | _G_rc_parse_options=false | |
1680 | 1734 | # this just eases exit handling |
1681 | 1735 | while test $# -gt 0; do |
1682 | 1736 | # Defer to hook functions for initial option parsing, so they |
1683 | 1737 | # get priority in the event of reusing an option name. |
1684 | func_run_hooks func_parse_options ${1+"$@"} | |
1685 | ||
1686 | # Adjust func_parse_options positional parameters to match | |
1687 | eval set dummy "$func_run_hooks_result"; shift | |
1738 | if func_run_hooks func_parse_options ${1+"$@"}; then | |
1739 | eval set dummy "$func_run_hooks_result"; shift | |
1740 | _G_rc_parse_options=: | |
1741 | fi | |
1688 | 1742 | |
1689 | 1743 | # Break out of the loop if we already parsed every option. |
1690 | 1744 | test $# -gt 0 || break |
1691 | 1745 | |
1746 | _G_match_parse_options=: | |
1692 | 1747 | _G_opt=$1 |
1693 | 1748 | shift |
1694 | 1749 | case $_G_opt in |
1703 | 1758 | ;; |
1704 | 1759 | |
1705 | 1760 | --warnings|--warning|-W) |
1706 | test $# = 0 && func_missing_arg $_G_opt && break | |
1761 | if test $# = 0 && func_missing_arg $_G_opt; then | |
1762 | _G_rc_parse_options=: | |
1763 | break | |
1764 | fi | |
1707 | 1765 | case " $warning_categories $1" in |
1708 | 1766 | *" $1 "*) |
1709 | 1767 | # trailing space prevents matching last $1 above |
1756 | 1814 | shift |
1757 | 1815 | ;; |
1758 | 1816 | |
1759 | --) break ;; | |
1817 | --) _G_rc_parse_options=: ; break ;; | |
1760 | 1818 | -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; |
1761 | *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; | |
1819 | *) set dummy "$_G_opt" ${1+"$@"}; shift | |
1820 | _G_match_parse_options=false | |
1821 | break | |
1822 | ;; | |
1762 | 1823 | esac |
1824 | ||
1825 | $_G_match_parse_options && _G_rc_parse_options=: | |
1763 | 1826 | done |
1764 | 1827 | |
1765 | # save modified positional parameters for caller | |
1766 | func_quote_for_eval ${1+"$@"} | |
1767 | func_parse_options_result=$func_quote_for_eval_result | |
1828 | ||
1829 | if $_G_rc_parse_options; then | |
1830 | # save modified positional parameters for caller | |
1831 | func_quote_for_eval ${1+"$@"} | |
1832 | func_parse_options_result=$func_quote_for_eval_result | |
1833 | fi | |
1834 | ||
1835 | $_G_rc_parse_options | |
1768 | 1836 | } |
1769 | 1837 | |
1770 | 1838 | |
1777 | 1845 | { |
1778 | 1846 | $debug_cmd |
1779 | 1847 | |
1848 | _G_rc_validate_options=false | |
1849 | ||
1780 | 1850 | # Display all warnings if -W was not given. |
1781 | 1851 | test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" |
1782 | 1852 | |
1783 | func_run_hooks func_validate_options ${1+"$@"} | |
1853 | if func_run_hooks func_validate_options ${1+"$@"}; then | |
1854 | # save modified positional parameters for caller | |
1855 | func_validate_options_result=$func_run_hooks_result | |
1856 | _G_rc_validate_options=: | |
1857 | fi | |
1784 | 1858 | |
1785 | 1859 | # Bail if the options were screwed! |
1786 | 1860 | $exit_cmd $EXIT_FAILURE |
1787 | 1861 | |
1788 | # save modified positional parameters for caller | |
1789 | func_validate_options_result=$func_run_hooks_result | |
1862 | $_G_rc_validate_options | |
1790 | 1863 | } |
1791 | 1864 | |
1792 | 1865 | |
2067 | 2140 | compiler: $LTCC |
2068 | 2141 | compiler flags: $LTCFLAGS |
2069 | 2142 | linker: $LD (gnu? $with_gnu_ld) |
2070 | version: $progname (GNU libtool) 2.4.6 | |
2143 | version: $progname $scriptversion Debian-2.4.6-14 | |
2071 | 2144 | automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` |
2072 | 2145 | autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` |
2073 | 2146 | |
2269 | 2342 | nonopt= |
2270 | 2343 | preserve_args= |
2271 | 2344 | |
2345 | _G_rc_lt_options_prep=: | |
2346 | ||
2272 | 2347 | # Shorthand for --mode=foo, only valid as the first argument |
2273 | 2348 | case $1 in |
2274 | 2349 | clean|clea|cle|cl) |
2292 | 2367 | uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) |
2293 | 2368 | shift; set dummy --mode uninstall ${1+"$@"}; shift |
2294 | 2369 | ;; |
2370 | *) | |
2371 | _G_rc_lt_options_prep=false | |
2372 | ;; | |
2295 | 2373 | esac |
2296 | 2374 | |
2297 | # Pass back the list of options. | |
2298 | func_quote_for_eval ${1+"$@"} | |
2299 | libtool_options_prep_result=$func_quote_for_eval_result | |
2375 | if $_G_rc_lt_options_prep; then | |
2376 | # Pass back the list of options. | |
2377 | func_quote_for_eval ${1+"$@"} | |
2378 | libtool_options_prep_result=$func_quote_for_eval_result | |
2379 | fi | |
2380 | ||
2381 | $_G_rc_lt_options_prep | |
2300 | 2382 | } |
2301 | 2383 | func_add_hook func_options_prep libtool_options_prep |
2302 | 2384 | |
2308 | 2390 | { |
2309 | 2391 | $debug_cmd |
2310 | 2392 | |
2393 | _G_rc_lt_parse_options=false | |
2394 | ||
2311 | 2395 | # Perform our own loop to consume as many options as possible in |
2312 | 2396 | # each iteration. |
2313 | 2397 | while test $# -gt 0; do |
2398 | _G_match_lt_parse_options=: | |
2314 | 2399 | _G_opt=$1 |
2315 | 2400 | shift |
2316 | 2401 | case $_G_opt in |
2385 | 2470 | func_append preserve_args " $_G_opt" |
2386 | 2471 | ;; |
2387 | 2472 | |
2388 | # An option not handled by this hook function: | |
2389 | *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; | |
2473 | # An option not handled by this hook function: | |
2474 | *) set dummy "$_G_opt" ${1+"$@"} ; shift | |
2475 | _G_match_lt_parse_options=false | |
2476 | break | |
2477 | ;; | |
2390 | 2478 | esac |
2479 | $_G_match_lt_parse_options && _G_rc_lt_parse_options=: | |
2391 | 2480 | done |
2392 | 2481 | |
2393 | ||
2394 | # save modified positional parameters for caller | |
2395 | func_quote_for_eval ${1+"$@"} | |
2396 | libtool_parse_options_result=$func_quote_for_eval_result | |
2482 | if $_G_rc_lt_parse_options; then | |
2483 | # save modified positional parameters for caller | |
2484 | func_quote_for_eval ${1+"$@"} | |
2485 | libtool_parse_options_result=$func_quote_for_eval_result | |
2486 | fi | |
2487 | ||
2488 | $_G_rc_lt_parse_options | |
2397 | 2489 | } |
2398 | 2490 | func_add_hook func_parse_options libtool_parse_options |
2399 | 2491 | |
7274 | 7366 | # -specs=* GCC specs files |
7275 | 7367 | # -stdlib=* select c++ std lib with clang |
7276 | 7368 | # -fsanitize=* Clang/GCC memory and address sanitizer |
7369 | # -fuse-ld=* Linker select flags for GCC | |
7370 | # -static-* direct GCC to link specific libraries statically | |
7371 | # -fcilkplus Cilk Plus language extension features for C/C++ | |
7277 | 7372 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ |
7278 | 7373 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ |
7279 | 7374 | -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ |
7280 | -specs=*|-fsanitize=*) | |
7375 | -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus) | |
7281 | 7376 | func_quote_for_eval "$arg" |
7282 | 7377 | arg=$func_quote_for_eval_result |
7283 | 7378 | func_append compile_command " $arg" |
727 | 727 | cat <<_LT_EOF >> "$cfgfile" |
728 | 728 | #! $SHELL |
729 | 729 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
730 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
731 | 730 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
732 | 731 | |
733 | 732 | # Provide generalized library-building support services. |
1041 | 1040 | _LT_EOF |
1042 | 1041 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
1043 | 1042 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
1044 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | |
1045 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | |
1043 | echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | |
1044 | $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | |
1046 | 1045 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
1047 | 1046 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
1048 | 1047 | cat > conftest.c << _LT_EOF |
1492 | 1491 | m4_defun([_LT_PROG_AR], |
1493 | 1492 | [AC_CHECK_TOOLS(AR, [ar], false) |
1494 | 1493 | : ${AR=ar} |
1495 | : ${AR_FLAGS=cru} | |
1494 | : ${AR_FLAGS=cr} | |
1496 | 1495 | _LT_DECL([], [AR], [1], [The archiver]) |
1497 | 1496 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
1498 | 1497 | |
4063 | 4062 | if AC_TRY_EVAL(ac_compile); then |
4064 | 4063 | # Now try to grab the symbols. |
4065 | 4064 | nlist=conftest.nm |
4066 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | |
4065 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD | |
4066 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then | |
4067 | 4067 | # Try sorting and uniquifying the output. |
4068 | 4068 | if sort "$nlist" | uniq > "$nlist"T; then |
4069 | 4069 | mv -f "$nlist"T "$nlist" |
4703 | 4703 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4704 | 4704 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4705 | 4705 | ;; |
4706 | # flang / f18. f95 an alias for gfortran or flang on Debian | |
4707 | flang* | f18* | f95*) | |
4708 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4709 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4710 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4711 | ;; | |
4706 | 4712 | # icc used to be incompatible with GCC. |
4707 | 4713 | # ICC 10 doesn't accept -KPIC any more. |
4708 | 4714 | icc* | ifort*) |
6438 | 6444 | # Commands to make compiler produce verbose output that lists |
6439 | 6445 | # what "hidden" libraries, object files and flags are used when |
6440 | 6446 | # linking a shared library. |
6441 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
6447 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' | |
6442 | 6448 | |
6443 | 6449 | else |
6444 | 6450 | GXX=no |
6813 | 6819 | # explicitly linking system object files so we need to strip them |
6814 | 6820 | # from the output so that they don't get included in the library |
6815 | 6821 | # dependencies. |
6816 | 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"' | |
6822 | 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"' | |
6817 | 6823 | ;; |
6818 | 6824 | *) |
6819 | 6825 | if test yes = "$GXX"; then |
6878 | 6884 | # explicitly linking system object files so we need to strip them |
6879 | 6885 | # from the output so that they don't get included in the library |
6880 | 6886 | # dependencies. |
6881 | 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"' | |
6887 | 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"' | |
6882 | 6888 | ;; |
6883 | 6889 | *) |
6884 | 6890 | if test yes = "$GXX"; then |
7217 | 7223 | # Commands to make compiler produce verbose output that lists |
7218 | 7224 | # what "hidden" libraries, object files and flags are used when |
7219 | 7225 | # linking a shared library. |
7220 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7226 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' | |
7221 | 7227 | |
7222 | 7228 | else |
7223 | 7229 | # FIXME: insert proper C++ library support |
7301 | 7307 | # Commands to make compiler produce verbose output that lists |
7302 | 7308 | # what "hidden" libraries, object files and flags are used when |
7303 | 7309 | # linking a shared library. |
7304 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7310 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' | |
7305 | 7311 | else |
7306 | 7312 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
7307 | 7313 | # platform. |
7312 | 7318 | # Commands to make compiler produce verbose output that lists |
7313 | 7319 | # what "hidden" libraries, object files and flags are used when |
7314 | 7320 | # linking a shared library. |
7315 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7321 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' | |
7316 | 7322 | fi |
7317 | 7323 | |
7318 | 7324 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
133 | 133 | $(RECURSIVE_CLEAN_TARGETS) \ |
134 | 134 | $(am__extra_recursive_targets) |
135 | 135 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ |
136 | distdir | |
136 | distdir distdir-am | |
137 | 137 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) |
138 | 138 | # Read a list of newline-separated strings from the standard input, |
139 | 139 | # and print each of them once, without duplicates. Input order is |
360 | 360 | *config.status*) \ |
361 | 361 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ |
362 | 362 | *) \ |
363 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | |
364 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | |
363 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
364 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
365 | 365 | esac; |
366 | 366 | |
367 | 367 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
478 | 478 | distclean-tags: |
479 | 479 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
480 | 480 | |
481 | distdir: $(DISTFILES) | |
481 | distdir: $(BUILT_SOURCES) | |
482 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
483 | ||
484 | distdir-am: $(DISTFILES) | |
482 | 485 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
483 | 486 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
484 | 487 | list='$(DISTFILES)'; \ |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
332 | 332 | *config.status*) \ |
333 | 333 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ |
334 | 334 | *) \ |
335 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | |
336 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | |
335 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
336 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
337 | 337 | esac; |
338 | 338 | |
339 | 339 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
400 | 400 | cscope cscopelist: |
401 | 401 | |
402 | 402 | |
403 | distdir: $(DISTFILES) | |
403 | distdir: $(BUILT_SOURCES) | |
404 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
405 | ||
406 | distdir-am: $(DISTFILES) | |
404 | 407 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
405 | 408 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
406 | 409 | list='$(DISTFILES)'; \ |
0 | 0 | #! /bin/sh |
1 | 1 | # Common wrapper for a few potentially missing GNU programs. |
2 | 2 | |
3 | scriptversion=2013-10-28.13; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
3 | scriptversion=2018-03-07.03; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | |
6 | 6 | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
7 | 7 | |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
16 | 16 | # GNU General Public License for more details. |
17 | 17 | |
18 | 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/>. | |
19 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
20 | 20 | |
21 | 21 | # As a special exception to the GNU General Public License, if you |
22 | 22 | # distribute this file as part of a program that contains a |
100 | 100 | exit $st |
101 | 101 | fi |
102 | 102 | |
103 | perl_URL=http://www.perl.org/ | |
104 | flex_URL=http://flex.sourceforge.net/ | |
105 | gnu_software_URL=http://www.gnu.org/software | |
103 | perl_URL=https://www.perl.org/ | |
104 | flex_URL=https://github.com/westes/flex | |
105 | gnu_software_URL=https://www.gnu.org/software | |
106 | 106 | |
107 | 107 | program_details () |
108 | 108 | { |
206 | 206 | exit $st |
207 | 207 | |
208 | 208 | # Local variables: |
209 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
209 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
210 | 210 | # time-stamp-start: "scriptversion=" |
211 | 211 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
212 | # time-stamp-time-zone: "UTC" | |
212 | # time-stamp-time-zone: "UTC0" | |
213 | 213 | # time-stamp-end: "; # UTC" |
214 | 214 | # End: |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
358 | 358 | *config.status*) \ |
359 | 359 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ |
360 | 360 | *) \ |
361 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | |
362 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | |
361 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ | |
362 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ | |
363 | 363 | esac; |
364 | 364 | |
365 | 365 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
383 | 383 | cscope cscopelist: |
384 | 384 | |
385 | 385 | |
386 | distdir: $(DISTFILES) | |
386 | distdir: $(BUILT_SOURCES) | |
387 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | |
388 | ||
389 | distdir-am: $(DISTFILES) | |
387 | 390 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
388 | 391 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
389 | 392 | list='$(DISTFILES)'; \ |