Package list libatasmart / 0897720
Merge tag 'upstream/0.19' Upstream version 0.19 Michael Biebl 9 years ago
29 changed file(s) with 16136 addition(s) and 15381 deletion(s). Raw diff Collapse all Expand all
1414 # You should have received a copy of the GNU Lesser General Public
1515 # License along with libatasmart. If not, If not, see
1616 # <http://www.gnu.org/licenses/>.
17
18 AM_CFLAGS = $(WARNINGFLAGS)
19 AM_LDFLAGS = $(GCLDFLAGS)
1720
1821 dist_doc_DATA = README
1922
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
5959 DIST_COMMON = README $(am__configure_deps) $(dist_doc_DATA) \
6060 $(include_HEADERS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
6161 $(srcdir)/config.h.in $(srcdir)/libatasmart.pc.in \
62 $(top_srcdir)/configure compile config.guess config.rpath \
63 config.sub depcomp install-sh ltmain.sh missing
62 $(top_srcdir)/configure build-aux/compile \
63 build-aux/config.guess build-aux/config.sub build-aux/depcomp \
64 build-aux/install-sh build-aux/ltmain.sh build-aux/missing
6465 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6566 am__aclocal_m4_deps = $(top_srcdir)/m4/attributes.m4 \
6667 $(top_srcdir)/m4/ax_cc_for_build.m4 \
9697 am__base_list = \
9798 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
9899 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
100 am__uninstall_files_from_dir = { \
101 test -z "$$files" \
102 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
103 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
104 $(am__cd) "$$dir" && rm -f $$files; }; \
105 }
99106 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(sbindir)" \
100107 "$(DESTDIR)$(docdir)" "$(DESTDIR)$(pkgconfigdir)" \
101108 "$(DESTDIR)$(vapidir)" "$(DESTDIR)$(includedir)"
104111 libatasmart_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
105112 am_libatasmart_la_OBJECTS = libatasmart_la-atasmart.strpool.lo
106113 libatasmart_la_OBJECTS = $(am_libatasmart_la_OBJECTS)
107 AM_V_lt = $(am__v_lt_$(V))
108 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
114 AM_V_lt = $(am__v_lt_@AM_V@)
115 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
109116 am__v_lt_0 = --silent
110117 libatasmart_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
111118 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
119126 sktest_OBJECTS = sktest.$(OBJEXT)
120127 sktest_DEPENDENCIES = libatasmart.la
121128 DEFAULT_INCLUDES = -I.@am__isrc@
122 depcomp = $(SHELL) $(top_srcdir)/depcomp
129 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
123130 am__depfiles_maybe = depfiles
124131 am__mv = mv -f
125132 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
128135 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
129136 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
130137 $(AM_CFLAGS) $(CFLAGS)
131 AM_V_CC = $(am__v_CC_$(V))
132 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
138 AM_V_CC = $(am__v_CC_@AM_V@)
139 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
133140 am__v_CC_0 = @echo " CC " $@;
134 AM_V_at = $(am__v_at_$(V))
135 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
141 AM_V_at = $(am__v_at_@AM_V@)
142 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
136143 am__v_at_0 = @
137144 CCLD = $(CC)
138145 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
139146 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
140147 $(AM_LDFLAGS) $(LDFLAGS) -o $@
141 AM_V_CCLD = $(am__v_CCLD_$(V))
142 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
148 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
149 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
143150 am__v_CCLD_0 = @echo " CCLD " $@;
144 AM_V_GEN = $(am__v_GEN_$(V))
145 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
151 AM_V_GEN = $(am__v_GEN_@AM_V@)
152 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
146153 am__v_GEN_0 = @echo " GEN " $@;
147154 SOURCES = $(libatasmart_la_SOURCES) $(skdump_SOURCES) sktest.c
148155 DIST_SOURCES = $(libatasmart_la_SOURCES) $(skdump_SOURCES) sktest.c
167174 distdir = $(PACKAGE)-$(VERSION)
168175 top_distdir = $(distdir)
169176 am__remove_distdir = \
170 { test ! -d "$(distdir)" \
171 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
172 && rm -fr "$(distdir)"; }; }
177 if test -d "$(distdir)"; then \
178 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
179 && rm -rf "$(distdir)" \
180 || { sleep 5 && rm -rf "$(distdir)"; }; \
181 else :; fi
173182 am__relativize = \
174183 dir0=`pwd`; \
175184 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
195204 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
196205 done; \
197206 reldir="$$dir2"
198 DIST_ARCHIVES = $(distdir).tar.gz
199207 GZIP_ENV = --best
208 DIST_ARCHIVES = $(distdir).tar.xz
200209 distuninstallcheck_listfiles = find . -type f -print
210 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
211 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
201212 distcleancheck_listfiles = find . -type f -print
202213 ACLOCAL = @ACLOCAL@
203214 AMTAR = @AMTAR@
228239 EXEEXT = @EXEEXT@
229240 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
230241 FGREP = @FGREP@
242 GCLDFLAGS = @GCLDFLAGS@
231243 GREP = @GREP@
232244 INSTALL = @INSTALL@
233245 INSTALL_DATA = @INSTALL_DATA@
271283 SHELL = @SHELL@
272284 STRIP = @STRIP@
273285 VERSION = @VERSION@
286 WARNINGFLAGS = @WARNINGFLAGS@
274287 abs_builddir = @abs_builddir@
275288 abs_srcdir = @abs_srcdir@
276289 abs_top_builddir = @abs_top_builddir@
323336 top_build_prefix = @top_build_prefix@
324337 top_builddir = @top_builddir@
325338 top_srcdir = @top_srcdir@
339 AM_CFLAGS = $(WARNINGFLAGS)
340 AM_LDFLAGS = $(GCLDFLAGS)
326341 dist_doc_DATA = README
327342 EXTRA_DIST = \
328343 autogen.sh \
400415
401416 .SUFFIXES:
402417 .SUFFIXES: .c .lo .o .obj
403 am--refresh:
418 am--refresh: Makefile
404419 @:
405420 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
406421 @for dep in $?; do \
436451 $(am__aclocal_m4_deps):
437452
438453 config.h: stamp-h1
439 @if test ! -f $@; then \
440 rm -f stamp-h1; \
441 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
442 else :; fi
454 @if test ! -f $@; then rm -f stamp-h1; else :; fi
455 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
443456
444457 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
445458 @rm -f stamp-h1
484497 echo "rm -f \"$${dir}/so_locations\""; \
485498 rm -f "$${dir}/so_locations"; \
486499 done
487 libatasmart.la: $(libatasmart_la_OBJECTS) $(libatasmart_la_DEPENDENCIES)
500 libatasmart.la: $(libatasmart_la_OBJECTS) $(libatasmart_la_DEPENDENCIES) $(EXTRA_libatasmart_la_DEPENDENCIES)
488501 $(AM_V_CCLD)$(libatasmart_la_LINK) -rpath $(libdir) $(libatasmart_la_OBJECTS) $(libatasmart_la_LIBADD) $(LIBS)
489502 install-sbinPROGRAMS: $(sbin_PROGRAMS)
490503 @$(NORMAL_INSTALL)
529542 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
530543 echo " rm -f" $$list; \
531544 rm -f $$list
532 skdump$(EXEEXT): $(skdump_OBJECTS) $(skdump_DEPENDENCIES)
545 skdump$(EXEEXT): $(skdump_OBJECTS) $(skdump_DEPENDENCIES) $(EXTRA_skdump_DEPENDENCIES)
533546 @rm -f skdump$(EXEEXT)
534547 $(AM_V_CCLD)$(LINK) $(skdump_OBJECTS) $(skdump_LDADD) $(LIBS)
535 sktest$(EXEEXT): $(sktest_OBJECTS) $(sktest_DEPENDENCIES)
548 sktest$(EXEEXT): $(sktest_OBJECTS) $(sktest_DEPENDENCIES) $(EXTRA_sktest_DEPENDENCIES)
536549 @rm -f sktest$(EXEEXT)
537550 $(AM_V_CCLD)$(LINK) $(sktest_OBJECTS) $(sktest_LDADD) $(LIBS)
538551
549562 .c.o:
550563 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
551564 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
552 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
553 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
565 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
554566 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
555 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
567 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
556568
557569 .c.obj:
558570 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
559571 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
560 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
561 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
572 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
562573 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
563 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
574 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
564575
565576 .c.lo:
566577 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
567578 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
568 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
569 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
579 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
570580 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
571 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
581 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
572582
573583 libatasmart_la-atasmart.strpool.lo: atasmart.strpool.c
574584 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libatasmart_la_CFLAGS) $(CFLAGS) -MT libatasmart_la-atasmart.strpool.lo -MD -MP -MF $(DEPDIR)/libatasmart_la-atasmart.strpool.Tpo -c -o libatasmart_la-atasmart.strpool.lo `test -f 'atasmart.strpool.c' || echo '$(srcdir)/'`atasmart.strpool.c
575585 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libatasmart_la-atasmart.strpool.Tpo $(DEPDIR)/libatasmart_la-atasmart.strpool.Plo
576 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
577 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='atasmart.strpool.c' object='libatasmart_la-atasmart.strpool.lo' libtool=yes @AMDEPBACKSLASH@
586 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='atasmart.strpool.c' object='libatasmart_la-atasmart.strpool.lo' libtool=yes @AMDEPBACKSLASH@
578587 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
579 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libatasmart_la_CFLAGS) $(CFLAGS) -c -o libatasmart_la-atasmart.strpool.lo `test -f 'atasmart.strpool.c' || echo '$(srcdir)/'`atasmart.strpool.c
588 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libatasmart_la_CFLAGS) $(CFLAGS) -c -o libatasmart_la-atasmart.strpool.lo `test -f 'atasmart.strpool.c' || echo '$(srcdir)/'`atasmart.strpool.c
580589
581590 mostlyclean-libtool:
582591 -rm -f *.lo
603612 @$(NORMAL_UNINSTALL)
604613 @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
605614 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
606 test -n "$$files" || exit 0; \
607 echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
608 cd "$(DESTDIR)$(docdir)" && rm -f $$files
615 dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
609616 install-pkgconfigDATA: $(pkgconfig_DATA)
610617 @$(NORMAL_INSTALL)
611618 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
623630 @$(NORMAL_UNINSTALL)
624631 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
625632 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
626 test -n "$$files" || exit 0; \
627 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
628 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
633 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
629634 install-vapiDATA: $(vapi_DATA)
630635 @$(NORMAL_INSTALL)
631636 test -z "$(vapidir)" || $(MKDIR_P) "$(DESTDIR)$(vapidir)"
643648 @$(NORMAL_UNINSTALL)
644649 @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \
645650 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
646 test -n "$$files" || exit 0; \
647 echo " ( cd '$(DESTDIR)$(vapidir)' && rm -f" $$files ")"; \
648 cd "$(DESTDIR)$(vapidir)" && rm -f $$files
651 dir='$(DESTDIR)$(vapidir)'; $(am__uninstall_files_from_dir)
649652 install-includeHEADERS: $(include_HEADERS)
650653 @$(NORMAL_INSTALL)
651654 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
663666 @$(NORMAL_UNINSTALL)
664667 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
665668 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
666 test -n "$$files" || exit 0; \
667 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
668 cd "$(DESTDIR)$(includedir)" && rm -f $$files
669 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
669670
670671 # This directory's subdirectories are mostly independent; you can cd
671672 # into them and run `make' without going through this Makefile.
874875 $(am__remove_distdir)
875876
876877 dist-bzip2: distdir
877 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
878 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
879 $(am__remove_distdir)
880
881 dist-lzip: distdir
882 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
878883 $(am__remove_distdir)
879884
880885 dist-lzma: distdir
881886 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
882887 $(am__remove_distdir)
883
884888 dist-xz: distdir
885 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
889 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
886890 $(am__remove_distdir)
887891
888892 dist-tarZ: distdir
899903 $(am__remove_distdir)
900904
901905 dist dist-all: distdir
902 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
906 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
903907 $(am__remove_distdir)
904908
905909 # This target untars the dist file and tries a VPATH configuration. Then
913917 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
914918 *.tar.lzma*) \
915919 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
920 *.tar.lz*) \
921 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
916922 *.tar.xz*) \
917923 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
918924 *.tar.Z*) \
932938 && am__cwd=`pwd` \
933939 && $(am__cd) $(distdir)/_build \
934940 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
941 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
935942 $(DISTCHECK_CONFIGURE_FLAGS) \
936943 && $(MAKE) $(AM_MAKEFLAGS) \
937944 && $(MAKE) $(AM_MAKEFLAGS) dvi \
960967 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
961968 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
962969 distuninstallcheck:
963 @$(am__cd) '$(distuninstallcheck_dir)' \
964 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
970 @test -n '$(distuninstallcheck_dir)' || { \
971 echo 'ERROR: trying to run $@ with an empty' \
972 '$$(distuninstallcheck_dir)' >&2; \
973 exit 1; \
974 }; \
975 $(am__cd) '$(distuninstallcheck_dir)' || { \
976 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
977 exit 1; \
978 }; \
979 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
965980 || { echo "ERROR: files left after uninstall:" ; \
966981 if test -n "$(DESTDIR)"; then \
967982 echo " (check DESTDIR support)"; \
9981013
9991014 installcheck: installcheck-recursive
10001015 install-strip:
1001 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1002 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1003 `test -z '$(STRIP)' || \
1004 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1016 if test -z '$(STRIP)'; then \
1017 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1018 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1019 install; \
1020 else \
1021 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1022 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1023 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1024 fi
10051025 mostlyclean-generic:
10061026
10071027 clean-generic:
11001120 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
11011121 all all-am am--refresh check check-am clean clean-generic \
11021122 clean-libLTLIBRARIES clean-libtool clean-sbinPROGRAMS ctags \
1103 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzma \
1104 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
1105 distclean-compile distclean-generic distclean-hdr \
1123 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzip \
1124 dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
1125 distclean distclean-compile distclean-generic distclean-hdr \
11061126 distclean-libtool distclean-tags distcleancheck distdir \
11071127 distuninstallcheck dvi dvi-am html html-am info info-am \
11081128 install install-am install-data install-data-am \
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
45 # This file is free software; the Free Software Foundation
56 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
176177 fi[]dnl
177178 ])# PKG_CHECK_MODULES
178179
179 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
180 #
181 # This file is free software; the Free Software Foundation
182 # gives unlimited permission to copy and/or distribute it,
183 # with or without modifications, as long as this notice is preserved.
180 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
181 # Foundation, Inc.
182 #
183 # This file is free software; the Free Software Foundation
184 # gives unlimited permission to copy and/or distribute it,
185 # with or without modifications, as long as this notice is preserved.
186
187 # serial 1
184188
185189 # AM_AUTOMAKE_VERSION(VERSION)
186190 # ----------------------------
191195 [am__api_version='1.11'
192196 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
193197 dnl require some minimum version. Point them to the right macro.
194 m4_if([$1], [1.11.1], [],
198 m4_if([$1], [1.11.3], [],
195199 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
196200 ])
197201
207211 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
208212 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
209213 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
210 [AM_AUTOMAKE_VERSION([1.11.1])dnl
214 [AM_AUTOMAKE_VERSION([1.11.3])dnl
211215 m4_ifndef([AC_AUTOCONF_VERSION],
212216 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
213217 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
214218
215219 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
216220
217 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
218 #
219 # This file is free software; the Free Software Foundation
220 # gives unlimited permission to copy and/or distribute it,
221 # with or without modifications, as long as this notice is preserved.
221 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
222 #
223 # This file is free software; the Free Software Foundation
224 # gives unlimited permission to copy and/or distribute it,
225 # with or without modifications, as long as this notice is preserved.
226
227 # serial 1
222228
223229 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
224230 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
301307 Usually this means the macro was only invoked conditionally.]])
302308 fi])])
303309
304 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
305 # Free Software Foundation, Inc.
306 #
307 # This file is free software; the Free Software Foundation
308 # gives unlimited permission to copy and/or distribute it,
309 # with or without modifications, as long as this notice is preserved.
310
311 # serial 10
310 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
311 # 2010, 2011 Free Software Foundation, Inc.
312 #
313 # This file is free software; the Free Software Foundation
314 # gives unlimited permission to copy and/or distribute it,
315 # with or without modifications, as long as this notice is preserved.
316
317 # serial 12
312318
313319 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
314320 # written in clear, in which case automake, when reading aclocal.m4,
348354 # instance it was reported that on HP-UX the gcc test will end up
349355 # making a dummy file named `D' -- because `-MD' means `put the output
350356 # in D'.
357 rm -rf conftest.dir
351358 mkdir conftest.dir
352359 # Copy depcomp to subdir because otherwise we won't find it if we're
353360 # using a relative directory.
412419 break
413420 fi
414421 ;;
415 msvisualcpp | msvcmsys)
422 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
416423 # This compiler won't grok `-c -o', but also, the minuso test has
417424 # not run yet. These depmodes are late enough in the game, and
418425 # so weak that their functioning should not be impacted.
477484 if test "x$enable_dependency_tracking" != xno; then
478485 am_depcomp="$ac_aux_dir/depcomp"
479486 AMDEPBACKSLASH='\'
487 am__nodep='_no'
480488 fi
481489 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
482490 AC_SUBST([AMDEPBACKSLASH])dnl
483491 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
492 AC_SUBST([am__nodep])dnl
493 _AM_SUBST_NOTMAKE([am__nodep])dnl
484494 ])
485495
486496 # Generate code to set up dependency tracking. -*- Autoconf -*-
702712 done
703713 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
704714
705 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
706 #
707 # This file is free software; the Free Software Foundation
708 # gives unlimited permission to copy and/or distribute it,
709 # with or without modifications, as long as this notice is preserved.
715 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
716 # Inc.
717 #
718 # This file is free software; the Free Software Foundation
719 # gives unlimited permission to copy and/or distribute it,
720 # with or without modifications, as long as this notice is preserved.
721
722 # serial 1
710723
711724 # AM_PROG_INSTALL_SH
712725 # ------------------
874887 fi
875888 ])
876889
877 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
878 #
879 # This file is free software; the Free Software Foundation
880 # gives unlimited permission to copy and/or distribute it,
881 # with or without modifications, as long as this notice is preserved.
890 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
891 # Inc.
892 #
893 # This file is free software; the Free Software Foundation
894 # gives unlimited permission to copy and/or distribute it,
895 # with or without modifications, as long as this notice is preserved.
896
897 # serial 1
882898
883899 # AM_PROG_MKDIR_P
884900 # ---------------
902918
903919 # Helper functions for option handling. -*- Autoconf -*-
904920
905 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
906 #
907 # This file is free software; the Free Software Foundation
908 # gives unlimited permission to copy and/or distribute it,
909 # with or without modifications, as long as this notice is preserved.
910
911 # serial 4
921 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
922 # Foundation, Inc.
923 #
924 # This file is free software; the Free Software Foundation
925 # gives unlimited permission to copy and/or distribute it,
926 # with or without modifications, as long as this notice is preserved.
927
928 # serial 5
912929
913930 # _AM_MANGLE_OPTION(NAME)
914931 # -----------------------
916933 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
917934
918935 # _AM_SET_OPTION(NAME)
919 # ------------------------------
936 # --------------------
920937 # Set option NAME. Presently that only means defining a flag for this option.
921938 AC_DEFUN([_AM_SET_OPTION],
922939 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
923940
924941 # _AM_SET_OPTIONS(OPTIONS)
925 # ----------------------------------
942 # ------------------------
926943 # OPTIONS is a space-separated list of Automake options.
927944 AC_DEFUN([_AM_SET_OPTIONS],
928945 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
933950 AC_DEFUN([_AM_IF_OPTION],
934951 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
935952
936 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
937 #
938 # This file is free software; the Free Software Foundation
939 # gives unlimited permission to copy and/or distribute it,
940 # with or without modifications, as long as this notice is preserved.
953 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
954 #
955 # This file is free software; the Free Software Foundation
956 # gives unlimited permission to copy and/or distribute it,
957 # with or without modifications, as long as this notice is preserved.
958
959 # serial 1
941960
942961 # AM_RUN_LOG(COMMAND)
943962 # -------------------
10151034 fi
10161035 AC_MSG_RESULT(yes)])
10171036
1018 # Copyright (C) 2009 Free Software Foundation, Inc.
1019 #
1020 # This file is free software; the Free Software Foundation
1021 # gives unlimited permission to copy and/or distribute it,
1022 # with or without modifications, as long as this notice is preserved.
1023
1024 # serial 1
1037 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1038 #
1039 # This file is free software; the Free Software Foundation
1040 # gives unlimited permission to copy and/or distribute it,
1041 # with or without modifications, as long as this notice is preserved.
1042
1043 # serial 2
10251044
10261045 # AM_SILENT_RULES([DEFAULT])
10271046 # --------------------------
10361055 no) AM_DEFAULT_VERBOSITY=1;;
10371056 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10381057 esac
1058 dnl
1059 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1060 dnl do not support nested variable expansions.
1061 dnl See automake bug#9928 and bug#10237.
1062 am_make=${MAKE-make}
1063 AC_CACHE_CHECK([whether $am_make supports nested variables],
1064 [am_cv_make_support_nested_variables],
1065 [if AS_ECHO([['TRUE=$(BAR$(V))
1066 BAR0=false
1067 BAR1=true
1068 V=1
1069 am__doit:
1070 @$(TRUE)
1071 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1072 am_cv_make_support_nested_variables=yes
1073 else
1074 am_cv_make_support_nested_variables=no
1075 fi])
1076 if test $am_cv_make_support_nested_variables = yes; then
1077 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1078 AM_V='$(V)'
1079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1080 else
1081 AM_V=$AM_DEFAULT_VERBOSITY
1082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1083 fi
1084 AC_SUBST([AM_V])dnl
1085 AM_SUBST_NOTMAKE([AM_V])dnl
1086 AC_SUBST([AM_DEFAULT_V])dnl
1087 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10391088 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10401089 AM_BACKSLASH='\'
10411090 AC_SUBST([AM_BACKSLASH])dnl
10421091 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10431092 ])
10441093
1045 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1046 #
1047 # This file is free software; the Free Software Foundation
1048 # gives unlimited permission to copy and/or distribute it,
1049 # with or without modifications, as long as this notice is preserved.
1094 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1095 #
1096 # This file is free software; the Free Software Foundation
1097 # gives unlimited permission to copy and/or distribute it,
1098 # with or without modifications, as long as this notice is preserved.
1099
1100 # serial 1
10501101
10511102 # AM_PROG_INSTALL_STRIP
10521103 # ---------------------
10701121 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10711122 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10721123
1073 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1074 #
1075 # This file is free software; the Free Software Foundation
1076 # gives unlimited permission to copy and/or distribute it,
1077 # with or without modifications, as long as this notice is preserved.
1078
1079 # serial 2
1124 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1125 #
1126 # This file is free software; the Free Software Foundation
1127 # gives unlimited permission to copy and/or distribute it,
1128 # with or without modifications, as long as this notice is preserved.
1129
1130 # serial 3
10801131
10811132 # _AM_SUBST_NOTMAKE(VARIABLE)
10821133 # ---------------------------
10851136 AC_DEFUN([_AM_SUBST_NOTMAKE])
10861137
10871138 # AM_SUBST_NOTMAKE(VARIABLE)
1088 # ---------------------------
1139 # --------------------------
10891140 # Public sister of _AM_SUBST_NOTMAKE.
10901141 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10911142
10921143 # Check how to create a tarball. -*- Autoconf -*-
10931144
1094 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1145 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
10951146 #
10961147 # This file is free software; the Free Software Foundation
10971148 # gives unlimited permission to copy and/or distribute it,
11131164 # a tarball read from stdin.
11141165 # $(am__untar) < result.tar
11151166 AC_DEFUN([_AM_PROG_TAR],
1116 [# Always define AMTAR for backward compatibility.
1117 AM_MISSING_PROG([AMTAR], [tar])
1167 [# Always define AMTAR for backward compatibility. Yes, it's still used
1168 # in the wild :-( We should find a proper way to deprecate it ...
1169 AC_SUBST([AMTAR], ['$${TAR-tar}'])
11181170 m4_if([$1], [v7],
1119 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1171 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
11201172 [m4_case([$1], [ustar],, [pax],,
11211173 [m4_fatal([Unknown tar format])])
11221174 AC_MSG_CHECKING([how to create a $1 tar archive])
13141314 [170] = { "available-reserved-space", SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL },
13151315 [171] = { "program-fail-count", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
13161316 [172] = { "erase-fail-count", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1317 [175] = { "program-fail-count-chip", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1318 [176] = { "erase-fail-count-chip", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1319 [177] = { "wear-leveling-count", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1320 [178] = { "used-reserved-blocks-chip", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1321 [179] = { "used-reserved-blocks-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1322 [180] = { "unused-reserved-blocks", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1323 [181] = { "program-fail-count-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1324 [182] = { "erase-fail-count-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1325 [183] = { "runtime-bad-block-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
13171326 [184] = { "end-to-end-error", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
13181327 [187] = { "reported-uncorrect", SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
13191328 [188] = { "command-timeout", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
15661575 }, {
15671576
15681577 /*** Intel */
1569 "^INTEL SSDSA2CW[0-9]{3}G3$",
1578 "^INTEL SSDSA2(CT|BT|CW|BW)[0-9]{3}G3.*$", /* 320 Series */
15701579 NULL,
15711580 SK_SMART_QUIRK_3_UNUSED|
15721581 SK_SMART_QUIRK_4_UNUSED|
0 /* Saved 140 relocations, saved 7 strings (90 b) due to suffix compression. */
0 /* Saved 149 relocations, saved 7 strings (90 b) due to suffix compression. */
11 static const char _strpool_[] =
22 "16 Byte SCSI ATA SAT Passthru\0"
33 "12 Byte SCSI ATA SAT Passthru\0"
5050 "available-reserved-space\0" ***/
5151 "program-fail-count\0"
5252 "erase-fail-count\0"
53 "program-fail-count-chip\0"
54 "erase-fail-count-chip\0"
55 "wear-leveling-count\0"
56 "used-reserved-blocks-chip\0"
57 "used-reserved-blocks-total\0"
58 "unused-reserved-blocks\0"
59 "program-fail-count-total\0"
60 "erase-fail-count-total\0"
61 "runtime-bad-block-total\0"
5362 "end-to-end-error\0"
5463 "reported-uncorrect\0"
5564 "command-timeout\0"
14581467 static const SkSmartAttributeInfo const attribute_info[256] = {
14591468 [1] = { ((const char*) 1501), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
14601469 [2] = { ((const char*) 1521), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1461 [3] = { ((const char*) 2919), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_short_time },
1462 [4] = { ((const char*) 2932), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1470 [3] = { ((const char*) 3133), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_short_time },
1471 [4] = { ((const char*) 3146), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
14631472 [5] = { ((const char*) 1544), SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
14641473 [6] = { ((const char*) 1569), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
14651474 [7] = { ((const char*) 1589), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
14691478 [11] = { ((const char*) 1659), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
14701479 [12] = { ((const char*) 1683), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
14711480 [13] = { ((const char*) 1701), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1472 [170] = { ((const char*) 3183), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL },
1481 [170] = { ((const char*) 3397), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL },
14731482 [171] = { ((const char*) 1722), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
14741483 [172] = { ((const char*) 1741), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1475 [184] = { ((const char*) 1758), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1476 [187] = { ((const char*) 1775), SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
1477 [188] = { ((const char*) 1794), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1478 [189] = { ((const char*) 1810), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1479 [190] = { ((const char*) 1826), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature },
1480 [191] = { ((const char*) 1854), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1481 [192] = { ((const char*) 1873), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1482 [193] = { ((const char*) 1897), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1483 [194] = { ((const char*) 1914), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature },
1484 [195] = { ((const char*) 1936), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1485 [196] = { ((const char*) 1959), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1486 [197] = { ((const char*) 1983), SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
1487 [198] = { ((const char*) 2006), SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
1488 [199] = { ((const char*) 2028), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1489 [200] = { ((const char*) 2049), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1490 [201] = { ((const char*) 2071), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1491 [202] = { ((const char*) 2092), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1492 [203] = { ((const char*) 2110), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1493 [204] = { ((const char*) 2125), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1494 [205] = { ((const char*) 2148), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1495 [206] = { ((const char*) 2170), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1496 [207] = { ((const char*) 2184), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1497 [208] = { ((const char*) 2202), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1498 [209] = { ((const char*) 2212), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1499 [220] = { ((const char*) 2237), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1500 [221] = { ((const char*) 2248), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1501 [222] = { ((const char*) 2269), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time },
1502 [223] = { ((const char*) 2282), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1503 [224] = { ((const char*) 2299), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1504 [225] = { ((const char*) 2313), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1505 [226] = { ((const char*) 2332), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_short_time },
1506 [227] = { ((const char*) 2345), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1507 [228] = { ((const char*) 2360), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1508 [230] = { ((const char*) 2386), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1509 [231] = { ((const char*) 1834), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature },
1484 [175] = { ((const char*) 1758), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1485 [176] = { ((const char*) 1782), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1486 [177] = { ((const char*) 1804), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1487 [178] = { ((const char*) 1824), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1488 [179] = { ((const char*) 1850), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1489 [180] = { ((const char*) 1877), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1490 [181] = { ((const char*) 1900), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1491 [182] = { ((const char*) 1925), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1492 [183] = { ((const char*) 1948), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1493 [184] = { ((const char*) 1972), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1494 [187] = { ((const char*) 1989), SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
1495 [188] = { ((const char*) 2008), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1496 [189] = { ((const char*) 2024), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1497 [190] = { ((const char*) 2040), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature },
1498 [191] = { ((const char*) 2068), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1499 [192] = { ((const char*) 2087), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1500 [193] = { ((const char*) 2111), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1501 [194] = { ((const char*) 2128), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature },
1502 [195] = { ((const char*) 2150), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1503 [196] = { ((const char*) 2173), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1504 [197] = { ((const char*) 2197), SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
1505 [198] = { ((const char*) 2220), SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors },
1506 [199] = { ((const char*) 2242), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1507 [200] = { ((const char*) 2263), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1508 [201] = { ((const char*) 2285), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1509 [202] = { ((const char*) 2306), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1510 [203] = { ((const char*) 2324), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1511 [204] = { ((const char*) 2339), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1512 [205] = { ((const char*) 2362), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1513 [206] = { ((const char*) 2384), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1514 [207] = { ((const char*) 2398), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1515 [208] = { ((const char*) 2416), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1516 [209] = { ((const char*) 2426), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1517 [220] = { ((const char*) 2451), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1518 [221] = { ((const char*) 2462), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1519 [222] = { ((const char*) 2483), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time },
1520 [223] = { ((const char*) 2496), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1521 [224] = { ((const char*) 2513), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1522 [225] = { ((const char*) 2527), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1523 [226] = { ((const char*) 2546), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_short_time },
1524 [227] = { ((const char*) 2559), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1525 [228] = { ((const char*) 2574), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL },
1526 [230] = { ((const char*) 2600), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1527 [231] = { ((const char*) 2048), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature },
15101528
15111529 /* http://www.adtron.com/pdf/SMART_for_XceedLite_SATA_RevA.pdf */
1512 [232] = { ((const char*) 2401), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL },
1513 [233] = { ((const char*) 2421), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1514 [234] = { ((const char*) 2440), SK_SMART_ATTRIBUTE_UNIT_SECTORS, NULL },
1515 [235] = { ((const char*) 2464), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1516
1517 [240] = { ((const char*) 2480), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time },
1518 [241] = { ((const char*) 3097), SK_SMART_ATTRIBUTE_UNIT_MB, NULL },
1519 [242] = { ((const char*) 2498), SK_SMART_ATTRIBUTE_UNIT_MB, NULL },
1520 [250] = { ((const char*) 2514), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }
1530 [232] = { ((const char*) 2615), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL },
1531 [233] = { ((const char*) 2635), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1532 [234] = { ((const char*) 2654), SK_SMART_ATTRIBUTE_UNIT_SECTORS, NULL },
1533 [235] = { ((const char*) 2678), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL },
1534
1535 [240] = { ((const char*) 2694), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time },
1536 [241] = { ((const char*) 3311), SK_SMART_ATTRIBUTE_UNIT_MB, NULL },
1537 [242] = { ((const char*) 2712), SK_SMART_ATTRIBUTE_UNIT_MB, NULL },
1538 [250] = { ((const char*) 2728), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }
15211539 };
15221540 /* %STRINGPOOLSTOP% */
15231541
15481566
15491567 /* %STRINGPOOLSTART% */
15501568 static const char *quirk_name[] = {
1551 ((const char*) 2536),
1552 ((const char*) 2553),
1553 ((const char*) 2570),
1554 ((const char*) 2591),
1555 ((const char*) 2619),
1556 ((const char*) 2634),
1557 ((const char*) 2649),
1558 ((const char*) 2661),
1559 ((const char*) 2681),
1560 ((const char*) 2701),
1561 ((const char*) 2711),
1562 ((const char*) 2721),
1563 ((const char*) 2733),
1564 ((const char*) 2745),
1565 ((const char*) 2757),
1569 ((const char*) 2750),
1570 ((const char*) 2767),
15661571 ((const char*) 2784),
1567 ((const char*) 2810),
1568 ((const char*) 2831),
1569 ((const char*) 2840),
1570 ((const char*) 2866),
1571 ((const char*) 2892),
1572 ((const char*) 2910),
1572 ((const char*) 2805),
1573 ((const char*) 2833),
1574 ((const char*) 2848),
1575 ((const char*) 2863),
1576 ((const char*) 2875),
1577 ((const char*) 2895),
1578 ((const char*) 2915),
1579 ((const char*) 2925),
1580 ((const char*) 2935),
1581 ((const char*) 2947),
1582 ((const char*) 2959),
1583 ((const char*) 2971),
1584 ((const char*) 2998),
1585 ((const char*) 3024),
1586 ((const char*) 3045),
1587 ((const char*) 3054),
1588 ((const char*) 3080),
1589 ((const char*) 3106),
1590 ((const char*) 3124),
15731591 NULL
15741592 };
15751593 /* %STRINGPOOLSTOP% */
17241742 }, {
17251743
17261744 /*** Intel */
1727 "^INTEL SSDSA2CW[0-9]{3}G3$",
1745 "^INTEL SSDSA2(CT|BT|CW|BW)[0-9]{3}G3.*$", /* 320 Series */
17281746 NULL,
17291747 SK_SMART_QUIRK_3_UNUSED|
17301748 SK_SMART_QUIRK_4_UNUSED|
18201838 /* %STRINGPOOLSTART% */
18211839 if (quirk & SK_SMART_QUIRK_3_UNUSED) {
18221840 static const SkSmartAttributeInfo a = {
1823 ((const char*) 2919), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL
1841 ((const char*) 3133), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL
18241842 };
18251843 return &a;
18261844 }
18321850 /* %STRINGPOOLSTART% */
18331851 if (quirk & SK_SMART_QUIRK_4_UNUSED) {
18341852 static const SkSmartAttributeInfo a = {
1835 ((const char*) 2932), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL
1853 ((const char*) 3146), SK_SMART_ATTRIBUTE_UNIT_UNKNOWN, NULL
18361854 };
18371855 return &a;
18381856 }
18501868 /* %STRINGPOOLSTART% */
18511869 if (quirk & SK_SMART_QUIRK_9_POWERONMINUTES) {
18521870 static const SkSmartAttributeInfo a = {
1853 ((const char*) 2949), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time
1871 ((const char*) 3163), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time
18541872 };
18551873 return &a;
18561874
18571875 } else if (quirk & SK_SMART_QUIRK_9_POWERONSECONDS) {
18581876 static const SkSmartAttributeInfo a = {
1859 ((const char*) 2966), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time
1877 ((const char*) 3180), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time
18601878 };
18611879 return &a;
18621880
18631881 } else if (quirk & SK_SMART_QUIRK_9_POWERONHALFMINUTES) {
18641882 static const SkSmartAttributeInfo a = {
1865 ((const char*) 2983), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time
1883 ((const char*) 3197), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, verify_long_time
18661884 };
18671885 return &a;
18681886 } else if (quirk & SK_SMART_QUIRK_9_UNKNOWN)
18811899 /* %STRINGPOOLSTART% */
18821900 if (quirk & SK_SMART_QUIRK_192_EMERGENCYRETRACTCYCLECT) {
18831901 static const SkSmartAttributeInfo a = {
1884 ((const char*) 3005), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL
1902 ((const char*) 3219), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL
18851903 };
18861904 return &a;
18871905 }
18931911 /* %STRINGPOOLSTART% */
18941912 if (quirk & SK_SMART_QUIRK_194_10XCELSIUS) {
18951913 static const SkSmartAttributeInfo a = {
1896 ((const char*) 3035), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature
1914 ((const char*) 3249), SK_SMART_ATTRIBUTE_UNIT_MKELVIN, verify_temperature
18971915 };
18981916 return &a;
18991917 } else if (quirk & SK_SMART_QUIRK_194_UNKNOWN)
19181936 /* %STRINGPOOLSTART% */
19191937 if (quirk & SK_SMART_QUIRK_200_WRITEERRORCOUNT) {
19201938 static const SkSmartAttributeInfo a = {
1921 ((const char*) 3061), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL
1939 ((const char*) 3275), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL
19221940 };
19231941 return &a;
19241942 }
19301948 /* %STRINGPOOLSTART% */
19311949 if (quirk & SK_SMART_QUIRK_201_DETECTEDTACOUNT) {
19321950 static const SkSmartAttributeInfo a = {
1933 ((const char*) 3079), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL
1951 ((const char*) 3293), SK_SMART_ATTRIBUTE_UNIT_NONE, NULL
19341952 };
19351953 return &a;
19361954 }
19421960 /* %STRINGPOOLSTART% */
19431961 if (quirk & SK_SMART_QUIRK_225_TOTALLBASWRITTEN) {
19441962 static const SkSmartAttributeInfo a = {
1945 ((const char*) 3097), SK_SMART_ATTRIBUTE_UNIT_MB, NULL
1963 ((const char*) 3311), SK_SMART_ATTRIBUTE_UNIT_MB, NULL
19461964 };
19471965 return &a;
19481966 }
19541972 /* %STRINGPOOLSTART% */
19551973 if (quirk & SK_SMART_QUIRK_226_TIMEWORKLOADMEDIAWEAR) {
19561974 static const SkSmartAttributeInfo a = {
1957 ((const char*) 3116), SK_SMART_ATTRIBUTE_UNIT_SMALL_PERCENT, NULL
1975 ((const char*) 3330), SK_SMART_ATTRIBUTE_UNIT_SMALL_PERCENT, NULL
19581976 };
19591977 return &a;
19601978 }
19661984 /* %STRINGPOOLSTART% */
19671985 if (quirk & SK_SMART_QUIRK_227_TIMEWORKLOADHOSTREADS) {
19681986 static const SkSmartAttributeInfo a = {
1969 ((const char*) 3142), SK_SMART_ATTRIBUTE_UNIT_SMALL_PERCENT, NULL
1987 ((const char*) 3356), SK_SMART_ATTRIBUTE_UNIT_SMALL_PERCENT, NULL
19701988 };
19711989 return &a;
19721990 }
19781996 /* %STRINGPOOLSTART% */
19791997 if (quirk & SK_SMART_QUIRK_228_WORKLOADTIMER) {
19801998 static const SkSmartAttributeInfo a = {
1981 ((const char*) 3168), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, NULL
1999 ((const char*) 3382), SK_SMART_ATTRIBUTE_UNIT_MSECONDS, NULL
19822000 };
19832001 return &a;
19842002 }
19902008 /* %STRINGPOOLSTART% */
19912009 if (quirk & SK_SMART_QUIRK_232_AVAILABLERESERVEDSPACE) {
19922010 static const SkSmartAttributeInfo a = {
1993 ((const char*) 3183), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL
2011 ((const char*) 3397), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL
19942012 };
19952013 return &a;
19962014 }
20012019 /* %STRINGPOOLSTART% */
20022020 if (quirk & SK_SMART_QUIRK_233_MEDIAWEAROUTINDICATOR) {
20032021 static const SkSmartAttributeInfo a = {
2004 ((const char*) 3208), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL
2022 ((const char*) 3422), SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL
20052023 };
20062024 return &a;
20072025 }
21962214 const char * const map[] = {
21972215 [SK_SMART_ATTRIBUTE_UNIT_UNKNOWN] = NULL,
21982216 [SK_SMART_ATTRIBUTE_UNIT_NONE] = ((const char*) 30),
2199 [SK_SMART_ATTRIBUTE_UNIT_MSECONDS] = ((const char*) 3232),
2200 [SK_SMART_ATTRIBUTE_UNIT_SECTORS] = ((const char*) 3235),
2201 [SK_SMART_ATTRIBUTE_UNIT_MKELVIN] = ((const char*) 3243),
2202 [SK_SMART_ATTRIBUTE_UNIT_PERCENT] = ((const char*) 3246),
2203 [SK_SMART_ATTRIBUTE_UNIT_SMALL_PERCENT] = ((const char*) 3246),
2204 [SK_SMART_ATTRIBUTE_UNIT_MB] = ((const char*) 3248)
2217 [SK_SMART_ATTRIBUTE_UNIT_MSECONDS] = ((const char*) 3446),
2218 [SK_SMART_ATTRIBUTE_UNIT_SECTORS] = ((const char*) 3449),
2219 [SK_SMART_ATTRIBUTE_UNIT_MKELVIN] = ((const char*) 3457),
2220 [SK_SMART_ATTRIBUTE_UNIT_PERCENT] = ((const char*) 3460),
2221 [SK_SMART_ATTRIBUTE_UNIT_SMALL_PERCENT] = ((const char*) 3460),
2222 [SK_SMART_ATTRIBUTE_UNIT_MB] = ((const char*) 3462)
22052223 };
22062224 /* %STRINGPOOLSTOP% */
22072225
23882406
23892407 /* %STRINGPOOLSTART% */
23902408 const char * const map[] = {
2391 [SK_SMART_OVERALL_GOOD] = ((const char*) 3251),
2392 [SK_SMART_OVERALL_BAD_ATTRIBUTE_IN_THE_PAST] = ((const char*) 3256),
2393 [SK_SMART_OVERALL_BAD_SECTOR] = ((const char*) 3282),
2394 [SK_SMART_OVERALL_BAD_ATTRIBUTE_NOW] = ((const char*) 3293),
2395 [SK_SMART_OVERALL_BAD_SECTOR_MANY] = ((const char*) 3311),
2396 [SK_SMART_OVERALL_BAD_STATUS] = ((const char*) 3327),
2409 [SK_SMART_OVERALL_GOOD] = ((const char*) 3465),
2410 [SK_SMART_OVERALL_BAD_ATTRIBUTE_IN_THE_PAST] = ((const char*) 3470),
2411 [SK_SMART_OVERALL_BAD_SECTOR] = ((const char*) 3496),
2412 [SK_SMART_OVERALL_BAD_ATTRIBUTE_NOW] = ((const char*) 3507),
2413 [SK_SMART_OVERALL_BAD_SECTOR_MANY] = ((const char*) 3525),
2414 [SK_SMART_OVERALL_BAD_STATUS] = ((const char*) 3541),
23972415 };
23982416 /* %STRINGPOOLSTOP% */
23992417
1717 # License along with libatasmart; If not, see
1818 # <http://www.gnu.org/licenses/>.
1919
20 AM_VERSION=1.11
21 AC_VERSION=2.63
20 if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
21 cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
22 chmod +x .git/hooks/pre-commit && \
23 echo "Activated pre-commit hook."
24 fi
2225
23 run_versioned() {
24 local P
25 local V
26 autoreconf --force --install --symlink
2627
27 V=$(echo "$2" | sed -e 's,\.,,g')
28
29 if [ -e "`which $1$V 2> /dev/null`" ] ; then
30 P="$1$V"
31 else
32 if [ -e "`which $1-$2 2> /dev/null`" ] ; then
33 P="$1-$2"
34 else
35 P="$1"
36 fi
37 fi
38
39 shift 2
40 "$P" "$@"
28 libdir() {
29 echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
4130 }
4231
43 set -ex
32 args="\
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --libdir=$(libdir /usr/lib) \
36 --libexecdir=/usr/lib"
4437
45 if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
46 cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
47 chmod +x .git/hooks/pre-commit && \
48 echo "Activated pre-commit hook."
38 if [ "x$1" == "xc" ]; then
39 ./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args
40 make clean
41 else
42 echo
43 echo "----------------------------------------------------------------"
44 echo "Initialized build system. For a common configuration please run:"
45 echo "----------------------------------------------------------------"
46 echo
47 echo "./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args"
48 echo
4949 fi
50
51 if type -p colorgcc > /dev/null ; then
52 export CC=colorgcc
53 fi
54
55 libdir() {
56 echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
57 }
58
59 if [ "x$1" = "xam" ] ; then
60 run_versioned automake "$AM_VERSION" -a -c --foreign
61 ./config.status
62 else
63 rm -rf autom4te.cache
64 rm -f config.cache
65
66 libtoolize -c --force
67 run_versioned aclocal "$AM_VERSION" -I m4
68 run_versioned autoconf "$AC_VERSION" -Wall
69 run_versioned autoheader "$AC_VERSION"
70 run_versioned automake "$AM_VERSION" --copy --foreign --add-missing
71
72 if [ "x$1" != "xac" ]; then
73 CFLAGS="$CFLAGS -g -O0" ./configure \
74 --sysconfdir=/etc \
75 --localstatedir=/var \
76 --libexecdir=/usr/lib \
77 --libdir=$(libdir /usr/local/lib) \
78 "$@"
79 make clean
80 fi
81 fi
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-01-04.17; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
6 # Software Foundation, Inc.
7 # Written by Tom Tromey <tromey@cygnus.com>.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # This file is maintained in Automake, please report
28 # bugs to <bug-automake@gnu.org> or send patches to
29 # <automake-patches@gnu.org>.
30
31 nl='
32 '
33
34 # We need space, tab and new line, in precisely that order. Quoting is
35 # there to prevent tools from complaining about whitespace usage.
36 IFS=" "" $nl"
37
38 file_conv=
39
40 # func_file_conv build_file lazy
41 # Convert a $build file to $host form and store it in $file
42 # Currently only supports Windows hosts. If the determined conversion
43 # type is listed in (the comma separated) LAZY, no conversion will
44 # take place.
45 func_file_conv ()
46 {
47 file=$1
48 case $file in
49 / | /[!/]*) # absolute file, and not a UNC file
50 if test -z "$file_conv"; then
51 # lazily determine how to convert abs files
52 case `uname -s` in
53 MINGW*)
54 file_conv=mingw
55 ;;
56 CYGWIN*)
57 file_conv=cygwin
58 ;;
59 *)
60 file_conv=wine
61 ;;
62 esac
63 fi
64 case $file_conv/,$2, in
65 *,$file_conv,*)
66 ;;
67 mingw/*)
68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
69 ;;
70 cygwin/*)
71 file=`cygpath -m "$file" || echo "$file"`
72 ;;
73 wine/*)
74 file=`winepath -w "$file" || echo "$file"`
75 ;;
76 esac
77 ;;
78 esac
79 }
80
81 # func_cl_wrapper cl arg...
82 # Adjust compile command to suit cl
83 func_cl_wrapper ()
84 {
85 # Assume a capable shell
86 lib_path=
87 shared=:
88 linker_opts=
89 for arg
90 do
91 if test -n "$eat"; then
92 eat=
93 else
94 case $1 in
95 -o)
96 # configure might choose to run compile as 'compile cc -o foo foo.c'.
97 eat=1
98 case $2 in
99 *.o | *.[oO][bB][jJ])
100 func_file_conv "$2"
101 set x "$@" -Fo"$file"
102 shift
103 ;;
104 *)
105 func_file_conv "$2"
106 set x "$@" -Fe"$file"
107 shift
108 ;;
109 esac
110 ;;
111 -I*)
112 func_file_conv "${1#-I}" mingw
113 set x "$@" -I"$file"
114 shift
115 ;;
116 -l*)
117 lib=${1#-l}
118 found=no
119 save_IFS=$IFS
120 IFS=';'
121 for dir in $lib_path $LIB
122 do
123 IFS=$save_IFS
124 if $shared && test -f "$dir/$lib.dll.lib"; then
125 found=yes
126 set x "$@" "$dir/$lib.dll.lib"
127 break
128 fi
129 if test -f "$dir/$lib.lib"; then
130 found=yes
131 set x "$@" "$dir/$lib.lib"
132 break
133 fi
134 done
135 IFS=$save_IFS
136
137 test "$found" != yes && set x "$@" "$lib.lib"
138 shift
139 ;;
140 -L*)
141 func_file_conv "${1#-L}"
142 if test -z "$lib_path"; then
143 lib_path=$file
144 else
145 lib_path="$lib_path;$file"
146 fi
147 linker_opts="$linker_opts -LIBPATH:$file"
148 ;;
149 -static)
150 shared=false
151 ;;
152 -Wl,*)
153 arg=${1#-Wl,}
154 save_ifs="$IFS"; IFS=','
155 for flag in $arg; do
156 IFS="$save_ifs"
157 linker_opts="$linker_opts $flag"
158 done
159 IFS="$save_ifs"
160 ;;
161 -Xlinker)
162 eat=1
163 linker_opts="$linker_opts $2"
164 ;;
165 -*)
166 set x "$@" "$1"
167 shift
168 ;;
169 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
170 func_file_conv "$1"
171 set x "$@" -Tp"$file"
172 shift
173 ;;
174 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
175 func_file_conv "$1" mingw
176 set x "$@" "$file"
177 shift
178 ;;
179 *)
180 set x "$@" "$1"
181 shift
182 ;;
183 esac
184 fi
185 shift
186 done
187 if test -n "$linker_opts"; then
188 linker_opts="-link$linker_opts"
189 fi
190 exec "$@" $linker_opts
191 exit 1
192 }
193
194 eat=
195
196 case $1 in
197 '')
198 echo "$0: No command. Try '$0 --help' for more information." 1>&2
199 exit 1;
200 ;;
201 -h | --h*)
202 cat <<\EOF
203 Usage: compile [--help] [--version] PROGRAM [ARGS]
204
205 Wrapper for compilers which do not understand '-c -o'.
206 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
207 arguments, and rename the output as expected.
208
209 If you are trying to build a whole package this is not the
210 right script to run: please start by reading the file 'INSTALL'.
211
212 Report bugs to <bug-automake@gnu.org>.
213 EOF
214 exit $?
215 ;;
216 -v | --v*)
217 echo "compile $scriptversion"
218 exit $?
219 ;;
220 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
221 func_cl_wrapper "$@" # Doesn't return...
222 ;;
223 esac
224
225 ofile=
226 cfile=
227
228 for arg
229 do
230 if test -n "$eat"; then
231 eat=
232 else
233 case $1 in
234 -o)
235 # configure might choose to run compile as 'compile cc -o foo foo.c'.
236 # So we strip '-o arg' only if arg is an object.
237 eat=1
238 case $2 in
239 *.o | *.obj)
240 ofile=$2
241 ;;
242 *)
243 set x "$@" -o "$2"
244 shift
245 ;;
246 esac
247 ;;
248 *.c)
249 cfile=$1
250 set x "$@" "$1"
251 shift
252 ;;
253 *)
254 set x "$@" "$1"
255 shift
256 ;;
257 esac
258 fi
259 shift
260 done
261
262 if test -z "$ofile" || test -z "$cfile"; then
263 # If no '-o' option was seen then we might have been invoked from a
264 # pattern rule where we don't need one. That is ok -- this is a
265 # normal compilation that the losing compiler can handle. If no
266 # '.c' file was seen then we are probably linking. That is also
267 # ok.
268 exec "$@"
269 fi
270
271 # Name of file we expect compiler to create.
272 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
273
274 # Create the lock directory.
275 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
276 # that we are using for the .o file. Also, base the name on the expected
277 # object file name, since that is what matters with a parallel build.
278 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
279 while true; do
280 if mkdir "$lockdir" >/dev/null 2>&1; then
281 break
282 fi
283 sleep 1
284 done
285 # FIXME: race condition here if user kills between mkdir and trap.
286 trap "rmdir '$lockdir'; exit 1" 1 2 15
287
288 # Run the compile.
289 "$@"
290 ret=$?
291
292 if test -f "$cofile"; then
293 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
294 elif test -f "${cofile}bj"; then
295 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
296 fi
297
298 rmdir "$lockdir"
299 exit $ret
300
301 # Local Variables:
302 # mode: shell-script
303 # sh-indentation: 2
304 # eval: (add-hook 'write-file-hooks 'time-stamp)
305 # time-stamp-start: "scriptversion="
306 # time-stamp-format: "%:y-%02m-%02d.%02H"
307 # time-stamp-time-zone: "UTC"
308 # time-stamp-end: "; # UTC"
309 # End:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-01-01'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
60 Free Software Foundation, Inc.
61
62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64
65 help="
66 Try \`$me --help' for more information."
67
68 # Parse command line
69 while test $# -gt 0 ; do
70 case $1 in
71 --time-stamp | --time* | -t )
72 echo "$timestamp" ; exit ;;
73 --version | -v )
74 echo "$version" ; exit ;;
75 --help | --h* | -h )
76 echo "$usage"; exit ;;
77 -- ) # Stop option processing
78 shift; break ;;
79 - ) # Use stdin as input.
80 break ;;
81 -* )
82 echo "$me: invalid option $1$help" >&2
83 exit 1 ;;
84 * )
85 break ;;
86 esac
87 done
88
89 if test $# != 0; then
90 echo "$me: too many arguments$help" >&2
91 exit 1
92 fi
93
94 trap 'exit 1' 1 2 15
95
96 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97 # compiler to aid in system detection is discouraged as it requires
98 # temporary files to be created and, as you can see below, it is a
99 # headache to deal with in a portable fashion.
100
101 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
102 # use `HOST_CC' if defined, but it is deprecated.
103
104 # Portable tmp directory creation inspired by the Autoconf team.
105
106 set_cc_for_build='
107 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109 : ${TMPDIR=/tmp} ;
110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
114 dummy=$tmp/dummy ;
115 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
116 case $CC_FOR_BUILD,$HOST_CC,$CC in
117 ,,) echo "int x;" > $dummy.c ;
118 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
120 CC_FOR_BUILD="$c"; break ;
121 fi ;
122 done ;
123 if test x"$CC_FOR_BUILD" = x ; then
124 CC_FOR_BUILD=no_compiler_found ;
125 fi
126 ;;
127 ,,*) CC_FOR_BUILD=$CC ;;
128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
129 esac ; set_cc_for_build= ;'
130
131 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
132 # (ghazi@noc.rutgers.edu 1994-08-24)
133 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
134 PATH=$PATH:/.attbin ; export PATH
135 fi
136
137 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142 # Note: order is significant - the case branches are not exclusive.
143
144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 *:NetBSD:*:*)
146 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old
150 # object file format. This provides both forward
151 # compatibility and a consistent mechanism for selecting the
152 # object file format.
153 #
154 # Note: NetBSD doesn't particularly care about the vendor
155 # portion of the name. We always set it to "unknown".
156 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
159 case "${UNAME_MACHINE_ARCH}" in
160 armeb) machine=armeb-unknown ;;
161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166 esac
167 # The Operating System including object format, if it has switched
168 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep -q __ELF__
174 then
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 # Return netbsd for either. FIX?
177 os=netbsd
178 else
179 os=netbsdelf
180 fi
181 ;;
182 *)
183 os=netbsd
184 ;;
185 esac
186 # The OS release
187 # Debian GNU/NetBSD machines have a different userland, and
188 # thus, need a distinct triplet. However, they do not need
189 # kernel version information, so it can be replaced with a
190 # suitable tag, in the style of linux-gnu.
191 case "${UNAME_VERSION}" in
192 Debian*)
193 release='-gnu'
194 ;;
195 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
197 ;;
198 esac
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200 # contains redundant information, the shorter form:
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
203 exit ;;
204 *:OpenBSD:*:*)
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
214 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;
217 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
220 alpha:OSF1:*:*)
221 case $UNAME_RELEASE in
222 *4.0)
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 ;;
225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 ;;
228 esac
229 # According to Compaq, /usr/sbin/psrinfo has been available on
230 # OSF/1 and Tru64 systems produced since 1995. I hope that
231 # covers most systems running today. This code pipes the CPU
232 # types through head -n 1, so we only detect the type of CPU 0.
233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234 case "$ALPHA_CPU_TYPE" in
235 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
239 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
241 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
243 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
245 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
247 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
249 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
251 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
253 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
259 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
261 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
263 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
265 esac
266 # A Pn.n version is a patched version.
267 # A Vn.n version is a released version.
268 # A Tn.n version is a released field test version.
269 # A Xn.n version is an unreleased experimental baselevel.
270 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
276 Alpha\ *:Windows_NT*:*)
277 # How do we know it's Interix rather than the generic POSIX subsystem?
278 # Should we change UNAME_MACHINE based on the output of uname instead
279 # of the specific Alpha model?
280 echo alpha-pc-interix
281 exit ;;
282 21064:Windows_NT:50:3)
283 echo alpha-dec-winnt3.5
284 exit ;;
285 Amiga*:UNIX_System_V:4.0:*)
286 echo m68k-unknown-sysv4
287 exit ;;
288 *:[Aa]miga[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-amigaos
290 exit ;;
291 *:[Mm]orph[Oo][Ss]:*:*)
292 echo ${UNAME_MACHINE}-unknown-morphos
293 exit ;;
294 *:OS/390:*:*)
295 echo i370-ibm-openedition
296 exit ;;
297 *:z/VM:*:*)
298 echo s390-ibm-zvmoe
299 exit ;;
300 *:OS400:*:*)
301 echo powerpc-ibm-os400
302 exit ;;
303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
304 echo arm-acorn-riscix${UNAME_RELEASE}
305 exit ;;
306 arm:riscos:*:*|arm:RISCOS:*:*)
307 echo arm-unknown-riscos
308 exit ;;
309 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
310 echo hppa1.1-hitachi-hiuxmpp
311 exit ;;
312 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
313 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
314 if test "`(/bin/universe) 2>/dev/null`" = att ; then
315 echo pyramid-pyramid-sysv3
316 else
317 echo pyramid-pyramid-bsd
318 fi
319 exit ;;
320 NILE*:*:*:dcosx)
321 echo pyramid-pyramid-svr4
322 exit ;;
323 DRS?6000:unix:4.0:6*)
324 echo sparc-icl-nx6
325 exit ;;
326 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
327 case `/usr/bin/uname -p` in
328 sparc) echo sparc-icl-nx7; exit ;;
329 esac ;;
330 s390x:SunOS:*:*)
331 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;
333 sun4H:SunOS:5.*:*)
334 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;
336 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
337 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338 exit ;;
339 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
340 echo i386-pc-auroraux${UNAME_RELEASE}
341 exit ;;
342 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
343 eval $set_cc_for_build
344 SUN_ARCH="i386"
345 # If there is a compiler, see if it is configured for 64-bit objects.
346 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
347 # This test works for both compilers.
348 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
349 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
350 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
351 grep IS_64BIT_ARCH >/dev/null
352 then
353 SUN_ARCH="x86_64"
354 fi
355 fi
356 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
357 exit ;;
358 sun4*:SunOS:6*:*)
359 # According to config.sub, this is the proper way to canonicalize
360 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
361 # it's likely to be more like Solaris than SunOS4.
362 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
363 exit ;;
364 sun4*:SunOS:*:*)
365 case "`/usr/bin/arch -k`" in
366 Series*|S4*)
367 UNAME_RELEASE=`uname -v`
368 ;;
369 esac
370 # Japanese Language versions have a version number like `4.1.3-JL'.
371 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
372 exit ;;
373 sun3*:SunOS:*:*)
374 echo m68k-sun-sunos${UNAME_RELEASE}
375 exit ;;
376 sun*:*:4.2BSD:*)
377 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
378 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
379 case "`/bin/arch`" in
380 sun3)
381 echo m68k-sun-sunos${UNAME_RELEASE}
382 ;;
383 sun4)
384 echo sparc-sun-sunos${UNAME_RELEASE}
385 ;;
386 esac
387 exit ;;
388 aushp:SunOS:*:*)
389 echo sparc-auspex-sunos${UNAME_RELEASE}
390 exit ;;
391 # The situation for MiNT is a little confusing. The machine name
392 # can be virtually everything (everything which is not
393 # "atarist" or "atariste" at least should have a processor
394 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
395 # to the lowercase version "mint" (or "freemint"). Finally
396 # the system name "TOS" denotes a system which is actually not
397 # MiNT. But MiNT is downward compatible to TOS, so this should
398 # be no problem.
399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
400 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
404 exit ;;
405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
406 echo m68k-atari-mint${UNAME_RELEASE}
407 exit ;;
408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
417 m68k:machten:*:*)
418 echo m68k-apple-machten${UNAME_RELEASE}
419 exit ;;
420 powerpc:machten:*:*)
421 echo powerpc-apple-machten${UNAME_RELEASE}
422 exit ;;
423 RISC*:Mach:*:*)
424 echo mips-dec-mach_bsd4.3
425 exit ;;
426 RISC*:ULTRIX:*:*)
427 echo mips-dec-ultrix${UNAME_RELEASE}
428 exit ;;
429 VAX*:ULTRIX*:*:*)
430 echo vax-dec-ultrix${UNAME_RELEASE}
431 exit ;;
432 2020:CLIX:*:* | 2430:CLIX:*:*)
433 echo clipper-intergraph-clix${UNAME_RELEASE}
434 exit ;;
435 mips:*:*:UMIPS | mips:*:*:RISCos)
436 eval $set_cc_for_build
437 sed 's/^ //' << EOF >$dummy.c
438 #ifdef __cplusplus
439 #include <stdio.h> /* for printf() prototype */
440 int main (int argc, char *argv[]) {
441 #else
442 int main (argc, argv) int argc; char *argv[]; {
443 #endif
444 #if defined (host_mips) && defined (MIPSEB)
445 #if defined (SYSTYPE_SYSV)
446 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
447 #endif
448 #if defined (SYSTYPE_SVR4)
449 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
450 #endif
451 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
452 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
453 #endif
454 #endif
455 exit (-1);
456 }
457 EOF
458 $CC_FOR_BUILD -o $dummy $dummy.c &&
459 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
460 SYSTEM_NAME=`$dummy $dummyarg` &&
461 { echo "$SYSTEM_NAME"; exit; }
462 echo mips-mips-riscos${UNAME_RELEASE}
463 exit ;;
464 Motorola:PowerMAX_OS:*:*)
465 echo powerpc-motorola-powermax
466 exit ;;
467 Motorola:*:4.3:PL8-*)
468 echo powerpc-harris-powermax
469 exit ;;
470 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
471 echo powerpc-harris-powermax
472 exit ;;
473 Night_Hawk:Power_UNIX:*:*)
474 echo powerpc-harris-powerunix
475 exit ;;
476 m88k:CX/UX:7*:*)
477 echo m88k-harris-cxux7
478 exit ;;
479 m88k:*:4*:R4*)
480 echo m88k-motorola-sysv4
481 exit ;;
482 m88k:*:3*:R3*)
483 echo m88k-motorola-sysv3
484 exit ;;
485 AViiON:dgux:*:*)
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
489 then
490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
491 [ ${TARGET_BINARY_INTERFACE}x = x ]
492 then
493 echo m88k-dg-dgux${UNAME_RELEASE}
494 else
495 echo m88k-dg-dguxbcs${UNAME_RELEASE}
496 fi
497 else
498 echo i586-dg-dgux${UNAME_RELEASE}
499 fi
500 exit ;;
501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
502 echo m88k-dolphin-sysv3
503 exit ;;
504 M88*:*:R3*:*)
505 # Delta 88k system running SVR3
506 echo m88k-motorola-sysv3
507 exit ;;
508 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
509 echo m88k-tektronix-sysv3
510 exit ;;
511 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
512 echo m68k-tektronix-bsd
513 exit ;;
514 *:IRIX*:*:*)
515 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
516 exit ;;
517 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
518 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
519 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
520 i*86:AIX:*:*)
521 echo i386-ibm-aix
522 exit ;;
523 ia64:AIX:*:*)
524 if [ -x /usr/bin/oslevel ] ; then
525 IBM_REV=`/usr/bin/oslevel`
526 else
527 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
528 fi
529 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
530 exit ;;
531 *:AIX:2:3)
532 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
533 eval $set_cc_for_build
534 sed 's/^ //' << EOF >$dummy.c
535 #include <sys/systemcfg.h>
536
537 main()
538 {
539 if (!__power_pc())
540 exit(1);
541 puts("powerpc-ibm-aix3.2.5");
542 exit(0);
543 }
544 EOF
545 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
546 then
547 echo "$SYSTEM_NAME"
548 else
549 echo rs6000-ibm-aix3.2.5
550 fi
551 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
552 echo rs6000-ibm-aix3.2.4
553 else
554 echo rs6000-ibm-aix3.2
555 fi
556 exit ;;
557 *:AIX:*:[4567])
558 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
559 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
560 IBM_ARCH=rs6000
561 else
562 IBM_ARCH=powerpc
563 fi
564 if [ -x /usr/bin/oslevel ] ; then
565 IBM_REV=`/usr/bin/oslevel`
566 else
567 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
568 fi
569 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
570 exit ;;
571 *:AIX:*:*)
572 echo rs6000-ibm-aix
573 exit ;;
574 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
575 echo romp-ibm-bsd4.4
576 exit ;;
577 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
578 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
579 exit ;; # report: romp-ibm BSD 4.3
580 *:BOSX:*:*)
581 echo rs6000-bull-bosx
582 exit ;;
583 DPX/2?00:B.O.S.:*:*)
584 echo m68k-bull-sysv3
585 exit ;;
586 9000/[34]??:4.3bsd:1.*:*)
587 echo m68k-hp-bsd
588 exit ;;
589 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
590 echo m68k-hp-bsd4.4
591 exit ;;
592 9000/[34678]??:HP-UX:*:*)
593 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
594 case "${UNAME_MACHINE}" in
595 9000/31? ) HP_ARCH=m68000 ;;
596 9000/[34]?? ) HP_ARCH=m68k ;;
597 9000/[678][0-9][0-9])
598 if [ -x /usr/bin/getconf ]; then
599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
609 esac ;;
610 esac
611 fi
612 if [ "${HP_ARCH}" = "" ]; then
613 eval $set_cc_for_build
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include <stdlib.h>
618 #include <unistd.h>
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
646 EOF
647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
648 test -z "$HP_ARCH" && HP_ARCH=hppa
649 fi ;;
650 esac
651 if [ ${HP_ARCH} = "hppa2.0w" ]
652 then
653 eval $set_cc_for_build
654
655 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
656 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
657 # generating 64-bit code. GNU and HP use different nomenclature:
658 #
659 # $ CC_FOR_BUILD=cc ./config.guess
660 # => hppa2.0w-hp-hpux11.23
661 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
662 # => hppa64-hp-hpux11.23
663
664 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
665 grep -q __LP64__
666 then
667 HP_ARCH="hppa2.0w"
668 else
669 HP_ARCH="hppa64"
670 fi
671 fi
672 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
673 exit ;;
674 ia64:HP-UX:*:*)
675 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
676 echo ia64-hp-hpux${HPUX_REV}
677 exit ;;
678 3050*:HI-UX:*:*)
679 eval $set_cc_for_build
680 sed 's/^ //' << EOF >$dummy.c
681 #include <unistd.h>
682 int
683 main ()
684 {
685 long cpu = sysconf (_SC_CPU_VERSION);
686 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
687 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
688 results, however. */
689 if (CPU_IS_PA_RISC (cpu))
690 {
691 switch (cpu)
692 {
693 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
694 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
695 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
696 default: puts ("hppa-hitachi-hiuxwe2"); break;
697 }
698 }
699 else if (CPU_IS_HP_MC68K (cpu))
700 puts ("m68k-hitachi-hiuxwe2");
701 else puts ("unknown-hitachi-hiuxwe2");
702 exit (0);
703 }
704 EOF
705 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
706 { echo "$SYSTEM_NAME"; exit; }
707 echo unknown-hitachi-hiuxwe2
708 exit ;;
709 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
710 echo hppa1.1-hp-bsd
711 exit ;;
712 9000/8??:4.3bsd:*:*)
713 echo hppa1.0-hp-bsd
714 exit ;;
715 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
716 echo hppa1.0-hp-mpeix
717 exit ;;
718 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
719 echo hppa1.1-hp-osf
720 exit ;;
721 hp8??:OSF1:*:*)
722 echo hppa1.0-hp-osf
723 exit ;;
724 i*86:OSF1:*:*)
725 if [ -x /usr/sbin/sysversion ] ; then
726 echo ${UNAME_MACHINE}-unknown-osf1mk
727 else
728 echo ${UNAME_MACHINE}-unknown-osf1
729 fi
730 exit ;;
731 parisc*:Lites*:*:*)
732 echo hppa1.1-hp-lites
733 exit ;;
734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
735 echo c1-convex-bsd
736 exit ;;
737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
738 if getsysinfo -f scalar_acc
739 then echo c32-convex-bsd
740 else echo c2-convex-bsd
741 fi
742 exit ;;
743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
744 echo c34-convex-bsd
745 exit ;;
746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
747 echo c38-convex-bsd
748 exit ;;
749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
750 echo c4-convex-bsd
751 exit ;;
752 CRAY*Y-MP:*:*:*)
753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
754 exit ;;
755 CRAY*[A-Z]90:*:*:*)
756 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
757 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
758 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
759 -e 's/\.[^.]*$/.X/'
760 exit ;;
761 CRAY*TS:*:*:*)
762 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 exit ;;
764 CRAY*T3E:*:*:*)
765 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
766 exit ;;
767 CRAY*SV1:*:*:*)
768 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
769 exit ;;
770 *:UNICOS/mp:*:*)
771 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
772 exit ;;
773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
774 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
779 5000:UNIX_System_V:4.*:*)
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
783 exit ;;
784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
786 exit ;;
787 sparc*:BSD/OS:*:*)
788 echo sparc-unknown-bsdi${UNAME_RELEASE}
789 exit ;;
790 *:BSD/OS:*:*)
791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
792 exit ;;
793 *:FreeBSD:*:*)
794 UNAME_PROCESSOR=`/usr/bin/uname -p`
795 case ${UNAME_PROCESSOR} in
796 amd64)
797 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798 *)
799 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
800 esac
801 exit ;;
802 i*:CYGWIN*:*)
803 echo ${UNAME_MACHINE}-pc-cygwin
804 exit ;;
805 *:MINGW*:*)
806 echo ${UNAME_MACHINE}-pc-mingw32
807 exit ;;
808 i*:MSYS*:*)
809 echo ${UNAME_MACHINE}-pc-msys
810 exit ;;
811 i*:windows32*:*)
812 # uname -m includes "-pc" on this system.
813 echo ${UNAME_MACHINE}-mingw32
814 exit ;;
815 i*:PW*:*)
816 echo ${UNAME_MACHINE}-pc-pw32
817 exit ;;
818 *:Interix*:*)
819 case ${UNAME_MACHINE} in
820 x86)
821 echo i586-pc-interix${UNAME_RELEASE}
822 exit ;;
823 authenticamd | genuineintel | EM64T)
824 echo x86_64-unknown-interix${UNAME_RELEASE}
825 exit ;;
826 IA64)
827 echo ia64-unknown-interix${UNAME_RELEASE}
828 exit ;;
829 esac ;;
830 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
831 echo i${UNAME_MACHINE}-pc-mks
832 exit ;;
833 8664:Windows_NT:*)
834 echo x86_64-pc-mks
835 exit ;;
836 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
837 # How do we know it's Interix rather than the generic POSIX subsystem?
838 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
839 # UNAME_MACHINE based on the output of uname instead of i386?
840 echo i586-pc-interix
841 exit ;;
842 i*:UWIN*:*)
843 echo ${UNAME_MACHINE}-pc-uwin
844 exit ;;
845 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
846 echo x86_64-unknown-cygwin
847 exit ;;
848 p*:CYGWIN*:*)
849 echo powerpcle-unknown-cygwin
850 exit ;;
851 prep*:SunOS:5.*:*)
852 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
853 exit ;;
854 *:GNU:*:*)
855 # the GNU system
856 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
857 exit ;;
858 *:GNU/*:*:*)
859 # other systems with GNU libc and userland
860 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
861 exit ;;
862 i*86:Minix:*:*)
863 echo ${UNAME_MACHINE}-pc-minix
864 exit ;;
865 alpha:Linux:*:*)
866 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
867 EV5) UNAME_MACHINE=alphaev5 ;;
868 EV56) UNAME_MACHINE=alphaev56 ;;
869 PCA56) UNAME_MACHINE=alphapca56 ;;
870 PCA57) UNAME_MACHINE=alphapca56 ;;
871 EV6) UNAME_MACHINE=alphaev6 ;;
872 EV67) UNAME_MACHINE=alphaev67 ;;
873 EV68*) UNAME_MACHINE=alphaev68 ;;
874 esac
875 objdump --private-headers /bin/sh | grep -q ld.so.1
876 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
877 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
878 exit ;;
879 arm*:Linux:*:*)
880 eval $set_cc_for_build
881 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
882 | grep -q __ARM_EABI__
883 then
884 echo ${UNAME_MACHINE}-unknown-linux-gnu
885 else
886 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
887 | grep -q __ARM_PCS_VFP
888 then
889 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
890 else
891 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
892 fi
893 fi
894 exit ;;
895 avr32*:Linux:*:*)
896 echo ${UNAME_MACHINE}-unknown-linux-gnu
897 exit ;;
898 cris:Linux:*:*)
899 echo ${UNAME_MACHINE}-axis-linux-gnu
900 exit ;;
901 crisv32:Linux:*:*)
902 echo ${UNAME_MACHINE}-axis-linux-gnu
903 exit ;;
904 frv:Linux:*:*)
905 echo ${UNAME_MACHINE}-unknown-linux-gnu
906 exit ;;
907 hexagon:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-gnu
909 exit ;;
910 i*86:Linux:*:*)
911 LIBC=gnu
912 eval $set_cc_for_build
913 sed 's/^ //' << EOF >$dummy.c
914 #ifdef __dietlibc__
915 LIBC=dietlibc
916 #endif
917 EOF
918 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
919 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
920 exit ;;
921 ia64:Linux:*:*)
922 echo ${UNAME_MACHINE}-unknown-linux-gnu
923 exit ;;
924 m32r*:Linux:*:*)
925 echo ${UNAME_MACHINE}-unknown-linux-gnu
926 exit ;;
927 m68*:Linux:*:*)
928 echo ${UNAME_MACHINE}-unknown-linux-gnu
929 exit ;;
930 mips:Linux:*:* | mips64:Linux:*:*)
931 eval $set_cc_for_build
932 sed 's/^ //' << EOF >$dummy.c
933 #undef CPU
934 #undef ${UNAME_MACHINE}
935 #undef ${UNAME_MACHINE}el
936 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
937 CPU=${UNAME_MACHINE}el
938 #else
939 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
940 CPU=${UNAME_MACHINE}
941 #else
942 CPU=
943 #endif
944 #endif
945 EOF
946 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
947 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
948 ;;
949 or32:Linux:*:*)
950 echo ${UNAME_MACHINE}-unknown-linux-gnu
951 exit ;;
952 padre:Linux:*:*)
953 echo sparc-unknown-linux-gnu
954 exit ;;
955 parisc64:Linux:*:* | hppa64:Linux:*:*)
956 echo hppa64-unknown-linux-gnu
957 exit ;;
958 parisc:Linux:*:* | hppa:Linux:*:*)
959 # Look for CPU level
960 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
961 PA7*) echo hppa1.1-unknown-linux-gnu ;;
962 PA8*) echo hppa2.0-unknown-linux-gnu ;;
963 *) echo hppa-unknown-linux-gnu ;;
964 esac
965 exit ;;
966 ppc64:Linux:*:*)
967 echo powerpc64-unknown-linux-gnu
968 exit ;;
969 ppc:Linux:*:*)
970 echo powerpc-unknown-linux-gnu
971 exit ;;
972 s390:Linux:*:* | s390x:Linux:*:*)
973 echo ${UNAME_MACHINE}-ibm-linux
974 exit ;;
975 sh64*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
977 exit ;;
978 sh*:Linux:*:*)
979 echo ${UNAME_MACHINE}-unknown-linux-gnu
980 exit ;;
981 sparc:Linux:*:* | sparc64:Linux:*:*)
982 echo ${UNAME_MACHINE}-unknown-linux-gnu
983 exit ;;
984 tile*:Linux:*:*)
985 echo ${UNAME_MACHINE}-unknown-linux-gnu
986 exit ;;
987 vax:Linux:*:*)
988 echo ${UNAME_MACHINE}-dec-linux-gnu
989 exit ;;
990 x86_64:Linux:*:*)
991 echo ${UNAME_MACHINE}-unknown-linux-gnu
992 exit ;;
993 xtensa*:Linux:*:*)
994 echo ${UNAME_MACHINE}-unknown-linux-gnu
995 exit ;;
996 i*86:DYNIX/ptx:4*:*)
997 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
998 # earlier versions are messed up and put the nodename in both
999 # sysname and nodename.
1000 echo i386-sequent-sysv4
1001 exit ;;
1002 i*86:UNIX_SV:4.2MP:2.*)
1003 # Unixware is an offshoot of SVR4, but it has its own version
1004 # number series starting with 2...
1005 # I am not positive that other SVR4 systems won't match this,
1006 # I just have to hope. -- rms.
1007 # Use sysv4.2uw... so that sysv4* matches it.
1008 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1009 exit ;;
1010 i*86:OS/2:*:*)
1011 # If we were able to find `uname', then EMX Unix compatibility
1012 # is probably installed.
1013 echo ${UNAME_MACHINE}-pc-os2-emx
1014 exit ;;
1015 i*86:XTS-300:*:STOP)
1016 echo ${UNAME_MACHINE}-unknown-stop
1017 exit ;;
1018 i*86:atheos:*:*)
1019 echo ${UNAME_MACHINE}-unknown-atheos
1020 exit ;;
1021 i*86:syllable:*:*)
1022 echo ${UNAME_MACHINE}-pc-syllable
1023 exit ;;
1024 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1025 echo i386-unknown-lynxos${UNAME_RELEASE}
1026 exit ;;
1027 i*86:*DOS:*:*)
1028 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1029 exit ;;
1030 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1031 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1032 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1033 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1034 else
1035 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1036 fi
1037 exit ;;
1038 i*86:*:5:[678]*)
1039 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1040 case `/bin/uname -X | grep "^Machine"` in
1041 *486*) UNAME_MACHINE=i486 ;;
1042 *Pentium) UNAME_MACHINE=i586 ;;
1043 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1044 esac
1045 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1046 exit ;;
1047 i*86:*:3.2:*)
1048 if test -f /usr/options/cb.name; then
1049 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1050 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1051 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1052 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1053 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1054 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1055 && UNAME_MACHINE=i586
1056 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1057 && UNAME_MACHINE=i686
1058 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1059 && UNAME_MACHINE=i686
1060 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1061 else
1062 echo ${UNAME_MACHINE}-pc-sysv32
1063 fi
1064 exit ;;
1065 pc:*:*:*)
1066 # Left here for compatibility:
1067 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1068 # the processor, so we play safe by assuming i586.
1069 # Note: whatever this is, it MUST be the same as what config.sub
1070 # prints for the "djgpp" host, or else GDB configury will decide that
1071 # this is a cross-build.
1072 echo i586-pc-msdosdjgpp
1073 exit ;;
1074 Intel:Mach:3*:*)
1075 echo i386-pc-mach3
1076 exit ;;
1077 paragon:*:*:*)
1078 echo i860-intel-osf1
1079 exit ;;
1080 i860:*:4.*:*) # i860-SVR4
1081 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1082 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1083 else # Add other i860-SVR4 vendors below as they are discovered.
1084 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1085 fi
1086 exit ;;
1087 mini*:CTIX:SYS*5:*)
1088 # "miniframe"
1089 echo m68010-convergent-sysv
1090 exit ;;
1091 mc68k:UNIX:SYSTEM5:3.51m)
1092 echo m68k-convergent-sysv
1093 exit ;;
1094 M680?0:D-NIX:5.3:*)
1095 echo m68k-diab-dnix
1096 exit ;;
1097 M68*:*:R3V[5678]*:*)
1098 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1099 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1100 OS_REL=''
1101 test -r /etc/.relid \
1102 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1103 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1104 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1105 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1106 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1107 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1108 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1109 && { echo i486-ncr-sysv4; exit; } ;;
1110 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1111 OS_REL='.3'
1112 test -r /etc/.relid \
1113 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1114 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1115 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1116 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1117 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1118 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1119 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1120 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1121 echo m68k-unknown-lynxos${UNAME_RELEASE}
1122 exit ;;
1123 mc68030:UNIX_System_V:4.*:*)
1124 echo m68k-atari-sysv4
1125 exit ;;
1126 TSUNAMI:LynxOS:2.*:*)
1127 echo sparc-unknown-lynxos${UNAME_RELEASE}
1128 exit ;;
1129 rs6000:LynxOS:2.*:*)
1130 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1131 exit ;;
1132 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1133 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1134 exit ;;
1135 SM[BE]S:UNIX_SV:*:*)
1136 echo mips-dde-sysv${UNAME_RELEASE}
1137 exit ;;
1138 RM*:ReliantUNIX-*:*:*)
1139 echo mips-sni-sysv4
1140 exit ;;
1141 RM*:SINIX-*:*:*)
1142 echo mips-sni-sysv4
1143 exit ;;
1144 *:SINIX-*:*:*)
1145 if uname -p 2>/dev/null >/dev/null ; then
1146 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1147 echo ${UNAME_MACHINE}-sni-sysv4
1148 else
1149 echo ns32k-sni-sysv
1150 fi
1151 exit ;;
1152 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1153 # says <Richard.M.Bartel@ccMail.Census.GOV>
1154 echo i586-unisys-sysv4
1155 exit ;;
1156 *:UNIX_System_V:4*:FTX*)
1157 # From Gerald Hewes <hewes@openmarket.com>.
1158 # How about differentiating between stratus architectures? -djm
1159 echo hppa1.1-stratus-sysv4
1160 exit ;;
1161 *:*:*:FTX*)
1162 # From seanf@swdc.stratus.com.
1163 echo i860-stratus-sysv4
1164 exit ;;
1165 i*86:VOS:*:*)
1166 # From Paul.Green@stratus.com.
1167 echo ${UNAME_MACHINE}-stratus-vos
1168 exit ;;
1169 *:VOS:*:*)
1170 # From Paul.Green@stratus.com.
1171 echo hppa1.1-stratus-vos
1172 exit ;;
1173 mc68*:A/UX:*:*)
1174 echo m68k-apple-aux${UNAME_RELEASE}
1175 exit ;;
1176 news*:NEWS-OS:6*:*)
1177 echo mips-sony-newsos6
1178 exit ;;
1179 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1180 if [ -d /usr/nec ]; then
1181 echo mips-nec-sysv${UNAME_RELEASE}
1182 else
1183 echo mips-unknown-sysv${UNAME_RELEASE}
1184 fi
1185 exit ;;
1186 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1187 echo powerpc-be-beos
1188 exit ;;
1189 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1190 echo powerpc-apple-beos
1191 exit ;;
1192 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1193 echo i586-pc-beos
1194 exit ;;
1195 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1196 echo i586-pc-haiku
1197 exit ;;
1198 SX-4:SUPER-UX:*:*)
1199 echo sx4-nec-superux${UNAME_RELEASE}
1200 exit ;;
1201 SX-5:SUPER-UX:*:*)
1202 echo sx5-nec-superux${UNAME_RELEASE}
1203 exit ;;
1204 SX-6:SUPER-UX:*:*)
1205 echo sx6-nec-superux${UNAME_RELEASE}
1206 exit ;;
1207 SX-7:SUPER-UX:*:*)
1208 echo sx7-nec-superux${UNAME_RELEASE}
1209 exit ;;
1210 SX-8:SUPER-UX:*:*)
1211 echo sx8-nec-superux${UNAME_RELEASE}
1212 exit ;;
1213 SX-8R:SUPER-UX:*:*)
1214 echo sx8r-nec-superux${UNAME_RELEASE}
1215 exit ;;
1216 Power*:Rhapsody:*:*)
1217 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1218 exit ;;
1219 *:Rhapsody:*:*)
1220 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1221 exit ;;
1222 *:Darwin:*:*)
1223 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1224 case $UNAME_PROCESSOR in
1225 i386)
1226 eval $set_cc_for_build
1227 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1228 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1229 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1230 grep IS_64BIT_ARCH >/dev/null
1231 then
1232 UNAME_PROCESSOR="x86_64"
1233 fi
1234 fi ;;
1235 unknown) UNAME_PROCESSOR=powerpc ;;
1236 esac
1237 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1238 exit ;;
1239 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1240 UNAME_PROCESSOR=`uname -p`
1241 if test "$UNAME_PROCESSOR" = "x86"; then
1242 UNAME_PROCESSOR=i386
1243 UNAME_MACHINE=pc
1244 fi
1245 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1246 exit ;;
1247 *:QNX:*:4*)
1248 echo i386-pc-qnx
1249 exit ;;
1250 NEO-?:NONSTOP_KERNEL:*:*)
1251 echo neo-tandem-nsk${UNAME_RELEASE}
1252 exit ;;
1253 NSE-?:NONSTOP_KERNEL:*:*)
1254 echo nse-tandem-nsk${UNAME_RELEASE}
1255 exit ;;
1256 NSR-?:NONSTOP_KERNEL:*:*)
1257 echo nsr-tandem-nsk${UNAME_RELEASE}
1258 exit ;;
1259 *:NonStop-UX:*:*)
1260 echo mips-compaq-nonstopux
1261 exit ;;
1262 BS2000:POSIX*:*:*)
1263 echo bs2000-siemens-sysv
1264 exit ;;
1265 DS/*:UNIX_System_V:*:*)
1266 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1267 exit ;;
1268 *:Plan9:*:*)
1269 # "uname -m" is not consistent, so use $cputype instead. 386
1270 # is converted to i386 for consistency with other x86
1271 # operating systems.
1272 if test "$cputype" = "386"; then
1273 UNAME_MACHINE=i386
1274 else
1275 UNAME_MACHINE="$cputype"
1276 fi
1277 echo ${UNAME_MACHINE}-unknown-plan9
1278 exit ;;
1279 *:TOPS-10:*:*)
1280 echo pdp10-unknown-tops10
1281 exit ;;
1282 *:TENEX:*:*)
1283 echo pdp10-unknown-tenex
1284 exit ;;
1285 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1286 echo pdp10-dec-tops20
1287 exit ;;
1288 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1289 echo pdp10-xkl-tops20
1290 exit ;;
1291 *:TOPS-20:*:*)
1292 echo pdp10-unknown-tops20
1293 exit ;;
1294 *:ITS:*:*)
1295 echo pdp10-unknown-its
1296 exit ;;
1297 SEI:*:*:SEIUX)
1298 echo mips-sei-seiux${UNAME_RELEASE}
1299 exit ;;
1300 *:DragonFly:*:*)
1301 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1302 exit ;;
1303 *:*VMS:*:*)
1304 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1305 case "${UNAME_MACHINE}" in
1306 A*) echo alpha-dec-vms ; exit ;;
1307 I*) echo ia64-dec-vms ; exit ;;
1308 V*) echo vax-dec-vms ; exit ;;
1309 esac ;;
1310 *:XENIX:*:SysV)
1311 echo i386-pc-xenix
1312 exit ;;
1313 i*86:skyos:*:*)
1314 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1315 exit ;;
1316 i*86:rdos:*:*)
1317 echo ${UNAME_MACHINE}-pc-rdos
1318 exit ;;
1319 i*86:AROS:*:*)
1320 echo ${UNAME_MACHINE}-pc-aros
1321 exit ;;
1322 esac
1323
1324 #echo '(No uname command or uname output not recognized.)' 1>&2
1325 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1326
1327 eval $set_cc_for_build
1328 cat >$dummy.c <<EOF
1329 #ifdef _SEQUENT_
1330 # include <sys/types.h>
1331 # include <sys/utsname.h>
1332 #endif
1333 main ()
1334 {
1335 #if defined (sony)
1336 #if defined (MIPSEB)
1337 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1338 I don't know.... */
1339 printf ("mips-sony-bsd\n"); exit (0);
1340 #else
1341 #include <sys/param.h>
1342 printf ("m68k-sony-newsos%s\n",
1343 #ifdef NEWSOS4
1344 "4"
1345 #else
1346 ""
1347 #endif
1348 ); exit (0);
1349 #endif
1350 #endif
1351
1352 #if defined (__arm) && defined (__acorn) && defined (__unix)
1353 printf ("arm-acorn-riscix\n"); exit (0);
1354 #endif
1355
1356 #if defined (hp300) && !defined (hpux)
1357 printf ("m68k-hp-bsd\n"); exit (0);
1358 #endif
1359
1360 #if defined (NeXT)
1361 #if !defined (__ARCHITECTURE__)
1362 #define __ARCHITECTURE__ "m68k"
1363 #endif
1364 int version;
1365 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1366 if (version < 4)
1367 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1368 else
1369 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1370 exit (0);
1371 #endif
1372
1373 #if defined (MULTIMAX) || defined (n16)
1374 #if defined (UMAXV)
1375 printf ("ns32k-encore-sysv\n"); exit (0);
1376 #else
1377 #if defined (CMU)
1378 printf ("ns32k-encore-mach\n"); exit (0);
1379 #else
1380 printf ("ns32k-encore-bsd\n"); exit (0);
1381 #endif
1382 #endif
1383 #endif
1384
1385 #if defined (__386BSD__)
1386 printf ("i386-pc-bsd\n"); exit (0);
1387 #endif
1388
1389 #if defined (sequent)
1390 #if defined (i386)
1391 printf ("i386-sequent-dynix\n"); exit (0);
1392 #endif
1393 #if defined (ns32000)
1394 printf ("ns32k-sequent-dynix\n"); exit (0);
1395 #endif
1396 #endif
1397
1398 #if defined (_SEQUENT_)
1399 struct utsname un;
1400
1401 uname(&un);
1402
1403 if (strncmp(un.version, "V2", 2) == 0) {
1404 printf ("i386-sequent-ptx2\n"); exit (0);
1405 }
1406 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1407 printf ("i386-sequent-ptx1\n"); exit (0);
1408 }
1409 printf ("i386-sequent-ptx\n"); exit (0);
1410
1411 #endif
1412
1413 #if defined (vax)
1414 # if !defined (ultrix)
1415 # include <sys/param.h>
1416 # if defined (BSD)
1417 # if BSD == 43
1418 printf ("vax-dec-bsd4.3\n"); exit (0);
1419 # else
1420 # if BSD == 199006
1421 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1422 # else
1423 printf ("vax-dec-bsd\n"); exit (0);
1424 # endif
1425 # endif
1426 # else
1427 printf ("vax-dec-bsd\n"); exit (0);
1428 # endif
1429 # else
1430 printf ("vax-dec-ultrix\n"); exit (0);
1431 # endif
1432 #endif
1433
1434 #if defined (alliant) && defined (i860)
1435 printf ("i860-alliant-bsd\n"); exit (0);
1436 #endif
1437
1438 exit (1);
1439 }
1440 EOF
1441
1442 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1443 { echo "$SYSTEM_NAME"; exit; }
1444
1445 # Apollos put the system type in the environment.
1446
1447 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1448
1449 # Convex versions that predate uname can use getsysinfo(1)
1450
1451 if [ -x /usr/convex/getsysinfo ]
1452 then
1453 case `getsysinfo -f cpu_type` in
1454 c1*)
1455 echo c1-convex-bsd
1456 exit ;;
1457 c2*)
1458 if getsysinfo -f scalar_acc
1459 then echo c32-convex-bsd
1460 else echo c2-convex-bsd
1461 fi
1462 exit ;;
1463 c34*)
1464 echo c34-convex-bsd
1465 exit ;;
1466 c38*)
1467 echo c38-convex-bsd
1468 exit ;;
1469 c4*)
1470 echo c4-convex-bsd
1471 exit ;;
1472 esac
1473 fi
1474
1475 cat >&2 <<EOF
1476 $0: unable to guess system type
1477
1478 This script, last modified $timestamp, has failed to recognize
1479 the operating system you are using. It is advised that you
1480 download the most up to date version of the config scripts from
1481
1482 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1483 and
1484 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1485
1486 If the version you run ($0) is already up to date, please
1487 send the following data and any information you think might be
1488 pertinent to <config-patches@gnu.org> in order to provide the needed
1489 information to handle your system.
1490
1491 config.guess timestamp = $timestamp
1492
1493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1497
1498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1500
1501 hostinfo = `(hostinfo) 2>/dev/null`
1502 /bin/universe = `(/bin/universe) 2>/dev/null`
1503 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1504 /bin/arch = `(/bin/arch) 2>/dev/null`
1505 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1507
1508 UNAME_MACHINE = ${UNAME_MACHINE}
1509 UNAME_RELEASE = ${UNAME_RELEASE}
1510 UNAME_SYSTEM = ${UNAME_SYSTEM}
1511 UNAME_VERSION = ${UNAME_VERSION}
1512 EOF
1513
1514 exit 1
1515
1516 # Local variables:
1517 # eval: (add-hook 'write-file-hooks 'time-stamp)
1518 # time-stamp-start: "timestamp='"
1519 # time-stamp-format: "%:y-%02m-%02d"
1520 # time-stamp-end: "'"
1521 # End:
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-01-01'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
43
44 # This file is supposed to be the same for all GNU packages
45 # and recognize all the CPU types, system types and aliases
46 # that are meaningful with *any* GNU software.
47 # Each package is responsible for reporting which valid configurations
48 # it does not support. The user should be able to distinguish
49 # a failure to support a valid configuration from a meaningless
50 # configuration.
51
52 # The goal of this file is to map all the various variations of a given
53 # machine specification into a single specification in the form:
54 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
55 # or in some cases, the newer four-part form:
56 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
57 # It is wrong to echo any other type of specification.
58
59 me=`echo "$0" | sed -e 's,.*/,,'`
60
61 usage="\
62 Usage: $0 [OPTION] CPU-MFR-OPSYS
63 $0 [OPTION] ALIAS
64
65 Canonicalize a configuration name.
66
67 Operation modes:
68 -h, --help print this help, then exit
69 -t, --time-stamp print date of last modification, then exit
70 -v, --version print version number, then exit
71
72 Report bugs and patches to <config-patches@gnu.org>."
73
74 version="\
75 GNU config.sub ($timestamp)
76
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
79 Free Software Foundation, Inc.
80
81 This is free software; see the source for copying conditions. There is NO
82 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
84 help="
85 Try \`$me --help' for more information."
86
87 # Parse command line
88 while test $# -gt 0 ; do
89 case $1 in
90 --time-stamp | --time* | -t )
91 echo "$timestamp" ; exit ;;
92 --version | -v )
93 echo "$version" ; exit ;;
94 --help | --h* | -h )
95 echo "$usage"; exit ;;
96 -- ) # Stop option processing
97 shift; break ;;
98 - ) # Use stdin as input.
99 break ;;
100 -* )
101 echo "$me: invalid option $1$help"
102 exit 1 ;;
103
104 *local*)
105 # First pass through any local machine types.
106 echo $1
107 exit ;;
108
109 * )
110 break ;;
111 esac
112 done
113
114 case $# in
115 0) echo "$me: missing argument$help" >&2
116 exit 1;;
117 1) ;;
118 *) echo "$me: too many arguments$help" >&2
119 exit 1;;
120 esac
121
122 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
123 # Here we must recognize all the valid KERNEL-OS combinations.
124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125 case $maybe_os in
126 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \
130 storm-chaos* | os2-emx* | rtmk-nova*)
131 os=-$maybe_os
132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133 ;;
134 *)
135 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136 if [ $basic_machine != $1 ]
137 then os=`echo $1 | sed 's/.*-/-/'`
138 else os=; fi
139 ;;
140 esac
141
142 ### Let's recognize common machines as not being operating systems so
143 ### that things like config.sub decstation-3100 work. We also
144 ### recognize some manufacturers as not being operating systems, so we
145 ### can provide default operating systems below.
146 case $os in
147 -sun*os*)
148 # Prevent following clause from handling this invalid input.
149 ;;
150 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
151 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
152 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156 -apple | -axis | -knuth | -cray | -microblaze)
157 os=