Codebase list virt-what / 475330f
New upstream version 1.24 Jeremy Bicha 1 year, 8 months ago
81 changed file(s) with 7502 addition(s) and 3918 deletion(s). Raw diff Collapse all Expand all
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
237237 unique=`for i in $$list; do \
238238 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
239239 done | $(am__uniquify_input)`
240 ETAGS = etags
241 CTAGS = ctags
242 CSCOPE = cscope
243240 DIST_SUBDIRS = $(SUBDIRS)
244241 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
245242 $(srcdir)/virt-what.in COPYING README compile config.guess \
282279 DIST_ARCHIVES = $(distdir).tar.gz
283280 GZIP_ENV = --best
284281 DIST_TARGETS = dist-gzip
282 # Exists only to be overridden by the user if desired.
283 AM_DISTCHECK_DVI_TARGET = dvi
285284 distuninstallcheck_listfiles = find . -type f -print
286285 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
287286 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
298297 CFLAGS = @CFLAGS@
299298 CPP = @CPP@
300299 CPPFLAGS = @CPPFLAGS@
300 CSCOPE = @CSCOPE@
301 CTAGS = @CTAGS@
301302 CYGPATH_W = @CYGPATH_W@
302303 DEFS = @DEFS@
303304 DEPDIR = @DEPDIR@
304305 ECHO_C = @ECHO_C@
305306 ECHO_N = @ECHO_N@
306307 ECHO_T = @ECHO_T@
308 ETAGS = @ETAGS@
307309 EXEEXT = @EXEEXT@
308310 INSTALL = @INSTALL@
309311 INSTALL_DATA = @INSTALL_DATA@
372374 prefix = @prefix@
373375 program_transform_name = @program_transform_name@
374376 psdir = @psdir@
377 runstatedir = @runstatedir@
375378 sbindir = @sbindir@
376379 sharedstatedir = @sharedstatedir@
377380 srcdir = @srcdir@
705708 distclean-tags:
706709 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
707710 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
708
709711 distdir: $(BUILT_SOURCES)
710712 $(MAKE) $(AM_MAKEFLAGS) distdir-am
711713
852854 $(DISTCHECK_CONFIGURE_FLAGS) \
853855 --srcdir=../.. --prefix="$$dc_install_base" \
854856 && $(MAKE) $(AM_MAKEFLAGS) \
855 && $(MAKE) $(AM_MAKEFLAGS) dvi \
857 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
856858 && $(MAKE) $(AM_MAKEFLAGS) check \
857859 && $(MAKE) $(AM_MAKEFLAGS) install \
858860 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
0 # generated automatically by aclocal 1.16.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3434 [am__api_version='1.16'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.2], [],
37 m4_if([$1], [1.16.5], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.2])dnl
53 [AM_AUTOMAKE_VERSION([1.16.5])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
109109
110110 # AM_CONDITIONAL -*- Autoconf -*-
111111
112 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
112 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
113113 #
114114 # This file is free software; the Free Software Foundation
115115 # gives unlimited permission to copy and/or distribute it,
140140 Usually this means the macro was only invoked conditionally.]])
141141 fi])])
142142
143 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
143 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
144144 #
145145 # This file is free software; the Free Software Foundation
146146 # gives unlimited permission to copy and/or distribute it,
331331
332332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333333
334 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
334 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
335335 #
336336 # This file is free software; the Free Software Foundation
337337 # gives unlimited permission to copy and/or distribute it,
399399
400400 # Do all the work for Automake. -*- Autoconf -*-
401401
402 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
402 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
403403 #
404404 # This file is free software; the Free Software Foundation
405405 # gives unlimited permission to copy and/or distribute it,
427427 # release and drop the old call support.
428428 AC_DEFUN([AM_INIT_AUTOMAKE],
429429 [AC_PREREQ([2.65])dnl
430 m4_ifdef([_$0_ALREADY_INIT],
431 [m4_fatal([$0 expanded multiple times
432 ]m4_defn([_$0_ALREADY_INIT]))],
433 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
430434 dnl Autoconf wants to disallow AM_ names. We explicitly allow
431435 dnl the ones we care about.
432436 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
463467 [_AM_SET_OPTIONS([$1])dnl
464468 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
465469 m4_if(
466 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
470 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
467471 [ok:ok],,
468472 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
469473 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
515519 [m4_define([AC_PROG_OBJCXX],
516520 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
517521 ])
522 # Variables for tags utilities; see am/tags.am
523 if test -z "$CTAGS"; then
524 CTAGS=ctags
525 fi
526 AC_SUBST([CTAGS])
527 if test -z "$ETAGS"; then
528 ETAGS=etags
529 fi
530 AC_SUBST([ETAGS])
531 if test -z "$CSCOPE"; then
532 CSCOPE=cscope
533 fi
534 AC_SUBST([CSCOPE])
535
518536 AC_REQUIRE([AM_SILENT_RULES])dnl
519537 dnl The testsuite driver may need to know about EXEEXT, so add the
520538 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
596614 done
597615 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
598616
599 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
617 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
600618 #
601619 # This file is free software; the Free Software Foundation
602620 # gives unlimited permission to copy and/or distribute it,
617635 fi
618636 AC_SUBST([install_sh])])
619637
620 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
638 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
621639 #
622640 # This file is free software; the Free Software Foundation
623641 # gives unlimited permission to copy and/or distribute it,
638656
639657 # Check to see how 'make' treats includes. -*- Autoconf -*-
640658
641 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
659 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
642660 #
643661 # This file is free software; the Free Software Foundation
644662 # gives unlimited permission to copy and/or distribute it,
681699
682700 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
683701
684 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
702 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
685703 #
686704 # This file is free software; the Free Software Foundation
687705 # gives unlimited permission to copy and/or distribute it,
702720 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
703721 AC_REQUIRE_AUX_FILE([missing])dnl
704722 if test x"${MISSING+set}" != xset; then
705 case $am_aux_dir in
706 *\ * | *\ *)
707 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
708 *)
709 MISSING="\${SHELL} $am_aux_dir/missing" ;;
710 esac
723 MISSING="\${SHELL} '$am_aux_dir/missing'"
711724 fi
712725 # Use eval to expand $SHELL
713726 if eval "$MISSING --is-lightweight"; then
720733
721734 # Helper functions for option handling. -*- Autoconf -*-
722735
723 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
736 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
724737 #
725738 # This file is free software; the Free Software Foundation
726739 # gives unlimited permission to copy and/or distribute it,
749762 AC_DEFUN([_AM_IF_OPTION],
750763 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
751764
752 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
765 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
753766 #
754767 # This file is free software; the Free Software Foundation
755768 # gives unlimited permission to copy and/or distribute it,
796809 # For backward compatibility.
797810 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
798811
799 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
812 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
800813 #
801814 # This file is free software; the Free Software Foundation
802815 # gives unlimited permission to copy and/or distribute it,
815828
816829 # Check to make sure that the build environment is sane. -*- Autoconf -*-
817830
818 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
831 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
819832 #
820833 # This file is free software; the Free Software Foundation
821834 # gives unlimited permission to copy and/or distribute it,
896909 rm -f conftest.file
897910 ])
898911
899 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
912 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
900913 #
901914 # This file is free software; the Free Software Foundation
902915 # gives unlimited permission to copy and/or distribute it,
956969 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
957970 ])
958971
959 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
972 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
960973 #
961974 # This file is free software; the Free Software Foundation
962975 # gives unlimited permission to copy and/or distribute it,
984997 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
985998 AC_SUBST([INSTALL_STRIP_PROGRAM])])
986999
987 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
1000 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
9881001 #
9891002 # This file is free software; the Free Software Foundation
9901003 # gives unlimited permission to copy and/or distribute it,
10031016
10041017 # Check how to create a tarball. -*- Autoconf -*-
10051018
1006 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
1019 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
10071020 #
10081021 # This file is free software; the Free Software Foundation
10091022 # gives unlimited permission to copy and/or distribute it,
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-03-05.13; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
111111 lib=$dir/$lib.lib
112112 break
113113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
114119 done
115120 IFS=$save_IFS
116121
249254 echo "compile $scriptversion"
250255 exit $?
251256 ;;
252 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
253259 func_cl_wrapper "$@" # Doesn't return...
254260 ;;
255261 esac
333339 # Local Variables:
334340 # mode: shell-script
335341 # sh-indentation: 2
336 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
337343 # time-stamp-start: "scriptversion="
338344 # time-stamp-format: "%:y-%02m-%02d.%02H"
339 # time-stamp-time-zone: "UTC"
345 # time-stamp-time-zone: "UTC0"
340346 # time-stamp-end: "; # UTC"
341347 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2016 Free Software Foundation, Inc.
3
4 timestamp='2016-01-01'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-08-29'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
2626 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3030 #
3131 # Please send patches to <config-patches@gnu.org>.
3232
3838
3939 Output the configuration name of the system \`$me' is run on.
4040
41 Operation modes:
41 Options:
4242 -h, --help print this help, then exit
4343 -t, --time-stamp print date of last modification, then exit
4444 -v, --version print version number, then exit
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2016 Free Software Foundation, Inc.
52 Copyright 1992-2018 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8383 exit 1
8484 fi
8585
86 trap 'exit 1' 1 2 15
87
8886 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
8987 # compiler to aid in system detection is discouraged as it requires
9088 # temporary files to be created and, as you can see below, it is a
9593
9694 # Portable tmp directory creation inspired by the Autoconf team.
9795
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > $dummy.c ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
96 tmp=
97 # shellcheck disable=SC2172
98 trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
99 trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
100
101 set_cc_for_build() {
102 : "${TMPDIR=/tmp}"
103 # shellcheck disable=SC2039
104 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
105 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
106 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
107 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
108 dummy=$tmp/dummy
109 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
110 ,,) echo "int x;" > "$dummy.c"
111 for driver in cc gcc c89 c99 ; do
112 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$driver"
114 break
115 fi
116 done
117 if test x"$CC_FOR_BUILD" = x ; then
118 CC_FOR_BUILD=no_compiler_found
119 fi
120 ;;
121 ,,*) CC_FOR_BUILD=$CC ;;
122 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
123 esac
124 }
122125
123126 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124127 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
128 if test -f /.attbin/uname ; then
126129 PATH=$PATH:/.attbin ; export PATH
127130 fi
128131
131134 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132135 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133136
134 case "${UNAME_SYSTEM}" in
137 case "$UNAME_SYSTEM" in
135138 Linux|GNU|GNU/*)
136139 # If the system lacks a compiler, then just pick glibc.
137140 # We could probably try harder.
138141 LIBC=gnu
139142
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
143 set_cc_for_build
144 cat <<-EOF > "$dummy.c"
142145 #include <features.h>
143146 #if defined(__UCLIBC__)
144147 LIBC=uclibc
148151 LIBC=gnu
149152 #endif
150153 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
154 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
155
156 # If ldd exists, use it to detect musl libc.
157 if command -v ldd >/dev/null && \
158 ldd --version 2>&1 | grep -q ^musl
159 then
160 LIBC=musl
161 fi
152162 ;;
153163 esac
154164
155165 # Note: order is significant - the case branches are not exclusive.
156166
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
167 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
158168 *:NetBSD:*:*)
159169 # NetBSD (nbsd) targets should (where applicable) match one or
160170 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
168178 # portion of the name. We always set it to "unknown".
169179 sysctl="sysctl -n hw.machine_arch"
170180 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
181 "/sbin/$sysctl" 2>/dev/null || \
182 "/usr/sbin/$sysctl" 2>/dev/null || \
173183 echo unknown)`
174 case "${UNAME_MACHINE_ARCH}" in
184 case "$UNAME_MACHINE_ARCH" in
175185 armeb) machine=armeb-unknown ;;
176186 arm*) machine=arm-unknown ;;
177187 sh3el) machine=shl-unknown ;;
178188 sh3eb) machine=sh-unknown ;;
179189 sh5el) machine=sh5le-unknown ;;
180190 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
191 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
192 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
193 machine="${arch}${endian}"-unknown
184194 ;;
185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
195 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
186196 esac
187197 # The Operating System including object format, if it has switched
188 # to ELF recently, or will in the future.
189 case "${UNAME_MACHINE_ARCH}" in
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
191 eval $set_cc_for_build
198 # to ELF recently (or will in the future) and ABI.
199 case "$UNAME_MACHINE_ARCH" in
200 earm*)
201 os=netbsdelf
202 ;;
203 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
204 set_cc_for_build
192205 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
193206 | grep -q __ELF__
194207 then
204217 ;;
205218 esac
206219 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
220 case "$UNAME_MACHINE_ARCH" in
208221 earm*)
209222 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
223 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
211224 ;;
212225 esac
213226 # The OS release
215228 # thus, need a distinct triplet. However, they do not need
216229 # kernel version information, so it can be replaced with a
217230 # suitable tag, in the style of linux-gnu.
218 case "${UNAME_VERSION}" in
231 case "$UNAME_VERSION" in
219232 Debian*)
220233 release='-gnu'
221234 ;;
222235 *)
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
236 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
224237 ;;
225238 esac
226239 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
227240 # contains redundant information, the shorter form:
228241 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
229 echo "${machine}-${os}${release}${abi}"
242 echo "$machine-${os}${release}${abi-}"
230243 exit ;;
231244 *:Bitrig:*:*)
232245 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
233 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
246 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
234247 exit ;;
235248 *:OpenBSD:*:*)
236249 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
237 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
250 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
251 exit ;;
252 *:LibertyBSD:*:*)
253 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
254 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
255 exit ;;
256 *:MidnightBSD:*:*)
257 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
238258 exit ;;
239259 *:ekkoBSD:*:*)
240 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
260 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
241261 exit ;;
242262 *:SolidBSD:*:*)
243 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
263 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
244264 exit ;;
245265 macppc:MirBSD:*:*)
246 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
266 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
247267 exit ;;
248268 *:MirBSD:*:*)
249 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
269 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
250270 exit ;;
251271 *:Sortix:*:*)
252 echo ${UNAME_MACHINE}-unknown-sortix
253 exit ;;
272 echo "$UNAME_MACHINE"-unknown-sortix
273 exit ;;
274 *:Redox:*:*)
275 echo "$UNAME_MACHINE"-unknown-redox
276 exit ;;
277 mips:OSF1:*.*)
278 echo mips-dec-osf1
279 exit ;;
254280 alpha:OSF1:*:*)
255281 case $UNAME_RELEASE in
256282 *4.0)
267293 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
268294 case "$ALPHA_CPU_TYPE" in
269295 "EV4 (21064)")
270 UNAME_MACHINE="alpha" ;;
296 UNAME_MACHINE=alpha ;;
271297 "EV4.5 (21064)")
272 UNAME_MACHINE="alpha" ;;
298 UNAME_MACHINE=alpha ;;
273299 "LCA4 (21066/21068)")
274 UNAME_MACHINE="alpha" ;;
300 UNAME_MACHINE=alpha ;;
275301 "EV5 (21164)")
276 UNAME_MACHINE="alphaev5" ;;
302 UNAME_MACHINE=alphaev5 ;;
277303 "EV5.6 (21164A)")
278 UNAME_MACHINE="alphaev56" ;;
304 UNAME_MACHINE=alphaev56 ;;
279305 "EV5.6 (21164PC)")
280 UNAME_MACHINE="alphapca56" ;;
306 UNAME_MACHINE=alphapca56 ;;
281307 "EV5.7 (21164PC)")
282 UNAME_MACHINE="alphapca57" ;;
308 UNAME_MACHINE=alphapca57 ;;
283309 "EV6 (21264)")
284 UNAME_MACHINE="alphaev6" ;;
310 UNAME_MACHINE=alphaev6 ;;
285311 "EV6.7 (21264A)")
286 UNAME_MACHINE="alphaev67" ;;
312 UNAME_MACHINE=alphaev67 ;;
287313 "EV6.8CB (21264C)")
288 UNAME_MACHINE="alphaev68" ;;
314 UNAME_MACHINE=alphaev68 ;;
289315 "EV6.8AL (21264B)")
290 UNAME_MACHINE="alphaev68" ;;
316 UNAME_MACHINE=alphaev68 ;;
291317 "EV6.8CX (21264D)")
292 UNAME_MACHINE="alphaev68" ;;
318 UNAME_MACHINE=alphaev68 ;;
293319 "EV6.9A (21264/EV69A)")
294 UNAME_MACHINE="alphaev69" ;;
320 UNAME_MACHINE=alphaev69 ;;
295321 "EV7 (21364)")
296 UNAME_MACHINE="alphaev7" ;;
322 UNAME_MACHINE=alphaev7 ;;
297323 "EV7.9 (21364A)")
298 UNAME_MACHINE="alphaev79" ;;
324 UNAME_MACHINE=alphaev79 ;;
299325 esac
300326 # A Pn.n version is a patched version.
301327 # A Vn.n version is a released version.
302328 # A Tn.n version is a released field test version.
303329 # A Xn.n version is an unreleased experimental baselevel.
304330 # 1.2 uses "1.2" for uname -r.
305 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
331 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
306332 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
307333 exitcode=$?
308334 trap '' 0
309335 exit $exitcode ;;
310 Alpha\ *:Windows_NT*:*)
311 # How do we know it's Interix rather than the generic POSIX subsystem?
312 # Should we change UNAME_MACHINE based on the output of uname instead
313 # of the specific Alpha model?
314 echo alpha-pc-interix
315 exit ;;
316 21064:Windows_NT:50:3)
317 echo alpha-dec-winnt3.5
318 exit ;;
319336 Amiga*:UNIX_System_V:4.0:*)
320337 echo m68k-unknown-sysv4
321338 exit ;;
322339 *:[Aa]miga[Oo][Ss]:*:*)
323 echo ${UNAME_MACHINE}-unknown-amigaos
340 echo "$UNAME_MACHINE"-unknown-amigaos
324341 exit ;;
325342 *:[Mm]orph[Oo][Ss]:*:*)
326 echo ${UNAME_MACHINE}-unknown-morphos
343 echo "$UNAME_MACHINE"-unknown-morphos
327344 exit ;;
328345 *:OS/390:*:*)
329346 echo i370-ibm-openedition
335352 echo powerpc-ibm-os400
336353 exit ;;
337354 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
338 echo arm-acorn-riscix${UNAME_RELEASE}
355 echo arm-acorn-riscix"$UNAME_RELEASE"
339356 exit ;;
340357 arm*:riscos:*:*|arm*:RISCOS:*:*)
341358 echo arm-unknown-riscos
362379 sparc) echo sparc-icl-nx7; exit ;;
363380 esac ;;
364381 s390x:SunOS:*:*)
365 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
366383 exit ;;
367384 sun4H:SunOS:5.*:*)
368 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
385 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
369386 exit ;;
370387 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
371 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
388 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
372389 exit ;;
373390 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
374 echo i386-pc-auroraux${UNAME_RELEASE}
391 echo i386-pc-auroraux"$UNAME_RELEASE"
375392 exit ;;
376393 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
377 eval $set_cc_for_build
378 SUN_ARCH="i386"
379 # If there is a compiler, see if it is configured for 64-bit objects.
380 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
381 # This test works for both compilers.
382 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
383 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
384 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
385 grep IS_64BIT_ARCH >/dev/null
386 then
387 SUN_ARCH="x86_64"
388 fi
389 fi
390 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
394 UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
395 case `isainfo -b` in
396 32)
397 echo i386-pc-solaris2"$UNAME_REL"
398 ;;
399 64)
400 echo x86_64-pc-solaris2"$UNAME_REL"
401 ;;
402 esac
391403 exit ;;
392404 sun4*:SunOS:6*:*)
393405 # According to config.sub, this is the proper way to canonicalize
394406 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
395407 # it's likely to be more like Solaris than SunOS4.
396 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
408 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
397409 exit ;;
398410 sun4*:SunOS:*:*)
399411 case "`/usr/bin/arch -k`" in
402414 ;;
403415 esac
404416 # Japanese Language versions have a version number like `4.1.3-JL'.
405 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
417 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
406418 exit ;;
407419 sun3*:SunOS:*:*)
408 echo m68k-sun-sunos${UNAME_RELEASE}
420 echo m68k-sun-sunos"$UNAME_RELEASE"
409421 exit ;;
410422 sun*:*:4.2BSD:*)
411423 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
412 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
424 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
413425 case "`/bin/arch`" in
414426 sun3)
415 echo m68k-sun-sunos${UNAME_RELEASE}
427 echo m68k-sun-sunos"$UNAME_RELEASE"
416428 ;;
417429 sun4)
418 echo sparc-sun-sunos${UNAME_RELEASE}
430 echo sparc-sun-sunos"$UNAME_RELEASE"
419431 ;;
420432 esac
421433 exit ;;
422434 aushp:SunOS:*:*)
423 echo sparc-auspex-sunos${UNAME_RELEASE}
435 echo sparc-auspex-sunos"$UNAME_RELEASE"
424436 exit ;;
425437 # The situation for MiNT is a little confusing. The machine name
426438 # can be virtually everything (everything which is not
431443 # MiNT. But MiNT is downward compatible to TOS, so this should
432444 # be no problem.
433445 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
434 echo m68k-atari-mint${UNAME_RELEASE}
446 echo m68k-atari-mint"$UNAME_RELEASE"
435447 exit ;;
436448 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
437 echo m68k-atari-mint${UNAME_RELEASE}
449 echo m68k-atari-mint"$UNAME_RELEASE"
438450 exit ;;
439451 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
440 echo m68k-atari-mint${UNAME_RELEASE}
452 echo m68k-atari-mint"$UNAME_RELEASE"
441453 exit ;;
442454 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
443 echo m68k-milan-mint${UNAME_RELEASE}
455 echo m68k-milan-mint"$UNAME_RELEASE"
444456 exit ;;
445457 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
446 echo m68k-hades-mint${UNAME_RELEASE}
458 echo m68k-hades-mint"$UNAME_RELEASE"
447459 exit ;;
448460 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
449 echo m68k-unknown-mint${UNAME_RELEASE}
461 echo m68k-unknown-mint"$UNAME_RELEASE"
450462 exit ;;
451463 m68k:machten:*:*)
452 echo m68k-apple-machten${UNAME_RELEASE}
464 echo m68k-apple-machten"$UNAME_RELEASE"
453465 exit ;;
454466 powerpc:machten:*:*)
455 echo powerpc-apple-machten${UNAME_RELEASE}
467 echo powerpc-apple-machten"$UNAME_RELEASE"
456468 exit ;;
457469 RISC*:Mach:*:*)
458470 echo mips-dec-mach_bsd4.3
459471 exit ;;
460472 RISC*:ULTRIX:*:*)
461 echo mips-dec-ultrix${UNAME_RELEASE}
473 echo mips-dec-ultrix"$UNAME_RELEASE"
462474 exit ;;
463475 VAX*:ULTRIX*:*:*)
464 echo vax-dec-ultrix${UNAME_RELEASE}
476 echo vax-dec-ultrix"$UNAME_RELEASE"
465477 exit ;;
466478 2020:CLIX:*:* | 2430:CLIX:*:*)
467 echo clipper-intergraph-clix${UNAME_RELEASE}
479 echo clipper-intergraph-clix"$UNAME_RELEASE"
468480 exit ;;
469481 mips:*:*:UMIPS | mips:*:*:RISCos)
470 eval $set_cc_for_build
471 sed 's/^ //' << EOF >$dummy.c
482 set_cc_for_build
483 sed 's/^ //' << EOF > "$dummy.c"
472484 #ifdef __cplusplus
473485 #include <stdio.h> /* for printf() prototype */
474486 int main (int argc, char *argv[]) {
477489 #endif
478490 #if defined (host_mips) && defined (MIPSEB)
479491 #if defined (SYSTYPE_SYSV)
480 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
492 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
481493 #endif
482494 #if defined (SYSTYPE_SVR4)
483 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
495 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
484496 #endif
485497 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
486 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
498 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
487499 #endif
488500 #endif
489501 exit (-1);
490502 }
491503 EOF
492 $CC_FOR_BUILD -o $dummy $dummy.c &&
493 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
494 SYSTEM_NAME=`$dummy $dummyarg` &&
504 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
505 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
506 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
495507 { echo "$SYSTEM_NAME"; exit; }
496 echo mips-mips-riscos${UNAME_RELEASE}
508 echo mips-mips-riscos"$UNAME_RELEASE"
497509 exit ;;
498510 Motorola:PowerMAX_OS:*:*)
499511 echo powerpc-motorola-powermax
519531 AViiON:dgux:*:*)
520532 # DG/UX returns AViiON for all architectures
521533 UNAME_PROCESSOR=`/usr/bin/uname -p`
522 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
534 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
523535 then
524 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
525 [ ${TARGET_BINARY_INTERFACE}x = x ]
536 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
537 [ "$TARGET_BINARY_INTERFACE"x = x ]
526538 then
527 echo m88k-dg-dgux${UNAME_RELEASE}
539 echo m88k-dg-dgux"$UNAME_RELEASE"
528540 else
529 echo m88k-dg-dguxbcs${UNAME_RELEASE}
541 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
530542 fi
531543 else
532 echo i586-dg-dgux${UNAME_RELEASE}
544 echo i586-dg-dgux"$UNAME_RELEASE"
533545 fi
534546 exit ;;
535547 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
546558 echo m68k-tektronix-bsd
547559 exit ;;
548560 *:IRIX*:*:*)
549 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
561 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
550562 exit ;;
551563 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
552564 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
558570 if [ -x /usr/bin/oslevel ] ; then
559571 IBM_REV=`/usr/bin/oslevel`
560572 else
561 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
562 fi
563 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
573 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
574 fi
575 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
564576 exit ;;
565577 *:AIX:2:3)
566578 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
567 eval $set_cc_for_build
568 sed 's/^ //' << EOF >$dummy.c
579 set_cc_for_build
580 sed 's/^ //' << EOF > "$dummy.c"
569581 #include <sys/systemcfg.h>
570582
571583 main()
576588 exit(0);
577589 }
578590 EOF
579 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
591 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
580592 then
581593 echo "$SYSTEM_NAME"
582594 else
590602 exit ;;
591603 *:AIX:*:[4567])
592604 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
593 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
605 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
594606 IBM_ARCH=rs6000
595607 else
596608 IBM_ARCH=powerpc
599611 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
600612 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
601613 else
602 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
603 fi
604 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
614 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
615 fi
616 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
605617 exit ;;
606618 *:AIX:*:*)
607619 echo rs6000-ibm-aix
608620 exit ;;
609 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
621 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
610622 echo romp-ibm-bsd4.4
611623 exit ;;
612624 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
613 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
625 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
614626 exit ;; # report: romp-ibm BSD 4.3
615627 *:BOSX:*:*)
616628 echo rs6000-bull-bosx
625637 echo m68k-hp-bsd4.4
626638 exit ;;
627639 9000/[34678]??:HP-UX:*:*)
628 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
629 case "${UNAME_MACHINE}" in
630 9000/31? ) HP_ARCH=m68000 ;;
631 9000/[34]?? ) HP_ARCH=m68k ;;
640 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
641 case "$UNAME_MACHINE" in
642 9000/31?) HP_ARCH=m68000 ;;
643 9000/[34]??) HP_ARCH=m68k ;;
632644 9000/[678][0-9][0-9])
633645 if [ -x /usr/bin/getconf ]; then
634646 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
635647 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
636 case "${sc_cpu_version}" in
637 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
638 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
648 case "$sc_cpu_version" in
649 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
650 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
639651 532) # CPU_PA_RISC2_0
640 case "${sc_kernel_bits}" in
641 32) HP_ARCH="hppa2.0n" ;;
642 64) HP_ARCH="hppa2.0w" ;;
643 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
652 case "$sc_kernel_bits" in
653 32) HP_ARCH=hppa2.0n ;;
654 64) HP_ARCH=hppa2.0w ;;
655 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
644656 esac ;;
645657 esac
646658 fi
647 if [ "${HP_ARCH}" = "" ]; then
648 eval $set_cc_for_build
649 sed 's/^ //' << EOF >$dummy.c
659 if [ "$HP_ARCH" = "" ]; then
660 set_cc_for_build
661 sed 's/^ //' << EOF > "$dummy.c"
650662
651663 #define _HPUX_SOURCE
652664 #include <stdlib.h>
679691 exit (0);
680692 }
681693 EOF
682 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
694 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
683695 test -z "$HP_ARCH" && HP_ARCH=hppa
684696 fi ;;
685697 esac
686 if [ ${HP_ARCH} = "hppa2.0w" ]
698 if [ "$HP_ARCH" = hppa2.0w ]
687699 then
688 eval $set_cc_for_build
700 set_cc_for_build
689701
690702 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
691703 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
696708 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
697709 # => hppa64-hp-hpux11.23
698710
699 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
711 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
700712 grep -q __LP64__
701713 then
702 HP_ARCH="hppa2.0w"
714 HP_ARCH=hppa2.0w
703715 else
704 HP_ARCH="hppa64"
716 HP_ARCH=hppa64
705717 fi
706718 fi
707 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
719 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
708720 exit ;;
709721 ia64:HP-UX:*:*)
710 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
711 echo ia64-hp-hpux${HPUX_REV}
722 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
723 echo ia64-hp-hpux"$HPUX_REV"
712724 exit ;;
713725 3050*:HI-UX:*:*)
714 eval $set_cc_for_build
715 sed 's/^ //' << EOF >$dummy.c
726 set_cc_for_build
727 sed 's/^ //' << EOF > "$dummy.c"
716728 #include <unistd.h>
717729 int
718730 main ()
737749 exit (0);
738750 }
739751 EOF
740 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
752 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
741753 { echo "$SYSTEM_NAME"; exit; }
742754 echo unknown-hitachi-hiuxwe2
743755 exit ;;
744 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
756 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
745757 echo hppa1.1-hp-bsd
746758 exit ;;
747759 9000/8??:4.3bsd:*:*)
750762 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
751763 echo hppa1.0-hp-mpeix
752764 exit ;;
753 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
765 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
754766 echo hppa1.1-hp-osf
755767 exit ;;
756768 hp8??:OSF1:*:*)
758770 exit ;;
759771 i*86:OSF1:*:*)
760772 if [ -x /usr/sbin/sysversion ] ; then
761 echo ${UNAME_MACHINE}-unknown-osf1mk
773 echo "$UNAME_MACHINE"-unknown-osf1mk
762774 else
763 echo ${UNAME_MACHINE}-unknown-osf1
775 echo "$UNAME_MACHINE"-unknown-osf1
764776 fi
765777 exit ;;
766778 parisc*:Lites*:*:*)
785797 echo c4-convex-bsd
786798 exit ;;
787799 CRAY*Y-MP:*:*:*)
788 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
800 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
789801 exit ;;
790802 CRAY*[A-Z]90:*:*:*)
791 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
803 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
792804 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
793805 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
794806 -e 's/\.[^.]*$/.X/'
795807 exit ;;
796808 CRAY*TS:*:*:*)
797 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
809 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
798810 exit ;;
799811 CRAY*T3E:*:*:*)
800 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
812 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
801813 exit ;;
802814 CRAY*SV1:*:*:*)
803 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
815 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
804816 exit ;;
805817 *:UNICOS/mp:*:*)
806 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
818 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
807819 exit ;;
808820 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
809 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
810 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
811 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
821 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
822 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
823 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
812824 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
813825 exit ;;
814826 5000:UNIX_System_V:4.*:*)
815 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
816 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
827 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
828 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
817829 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
818830 exit ;;
819831 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
820 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
832 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
821833 exit ;;
822834 sparc*:BSD/OS:*:*)
823 echo sparc-unknown-bsdi${UNAME_RELEASE}
835 echo sparc-unknown-bsdi"$UNAME_RELEASE"
824836 exit ;;
825837 *:BSD/OS:*:*)
826 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
838 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
839 exit ;;
840 arm:FreeBSD:*:*)
841 UNAME_PROCESSOR=`uname -p`
842 set_cc_for_build
843 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
844 | grep -q __ARM_PCS_VFP
845 then
846 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
847 else
848 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
849 fi
827850 exit ;;
828851 *:FreeBSD:*:*)
829852 UNAME_PROCESSOR=`/usr/bin/uname -p`
830 case ${UNAME_PROCESSOR} in
853 case "$UNAME_PROCESSOR" in
831854 amd64)
832 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
833 *)
834 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
855 UNAME_PROCESSOR=x86_64 ;;
856 i386)
857 UNAME_PROCESSOR=i586 ;;
835858 esac
859 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
836860 exit ;;
837861 i*:CYGWIN*:*)
838 echo ${UNAME_MACHINE}-pc-cygwin
862 echo "$UNAME_MACHINE"-pc-cygwin
839863 exit ;;
840864 *:MINGW64*:*)
841 echo ${UNAME_MACHINE}-pc-mingw64
865 echo "$UNAME_MACHINE"-pc-mingw64
842866 exit ;;
843867 *:MINGW*:*)
844 echo ${UNAME_MACHINE}-pc-mingw32
868 echo "$UNAME_MACHINE"-pc-mingw32
845869 exit ;;
846870 *:MSYS*:*)
847 echo ${UNAME_MACHINE}-pc-msys
848 exit ;;
849 i*:windows32*:*)
850 # uname -m includes "-pc" on this system.
851 echo ${UNAME_MACHINE}-mingw32
871 echo "$UNAME_MACHINE"-pc-msys
852872 exit ;;
853873 i*:PW*:*)
854 echo ${UNAME_MACHINE}-pc-pw32
874 echo "$UNAME_MACHINE"-pc-pw32
855875 exit ;;
856876 *:Interix*:*)
857 case ${UNAME_MACHINE} in
877 case "$UNAME_MACHINE" in
858878 x86)
859 echo i586-pc-interix${UNAME_RELEASE}
879 echo i586-pc-interix"$UNAME_RELEASE"
860880 exit ;;
861881 authenticamd | genuineintel | EM64T)
862 echo x86_64-unknown-interix${UNAME_RELEASE}
882 echo x86_64-unknown-interix"$UNAME_RELEASE"
863883 exit ;;
864884 IA64)
865 echo ia64-unknown-interix${UNAME_RELEASE}
885 echo ia64-unknown-interix"$UNAME_RELEASE"
866886 exit ;;
867887 esac ;;
868 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
869 echo i${UNAME_MACHINE}-pc-mks
870 exit ;;
871 8664:Windows_NT:*)
872 echo x86_64-pc-mks
873 exit ;;
874 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
875 # How do we know it's Interix rather than the generic POSIX subsystem?
876 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
877 # UNAME_MACHINE based on the output of uname instead of i386?
878 echo i586-pc-interix
879 exit ;;
880888 i*:UWIN*:*)
881 echo ${UNAME_MACHINE}-pc-uwin
889 echo "$UNAME_MACHINE"-pc-uwin
882890 exit ;;
883891 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
884892 echo x86_64-unknown-cygwin
885893 exit ;;
886 p*:CYGWIN*:*)
887 echo powerpcle-unknown-cygwin
888 exit ;;
889894 prep*:SunOS:5.*:*)
890 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
895 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
891896 exit ;;
892897 *:GNU:*:*)
893898 # the GNU system
894 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
899 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
895900 exit ;;
896901 *:GNU/*:*:*)
897902 # other systems with GNU libc and userland
898 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
899 exit ;;
900 i*86:Minix:*:*)
901 echo ${UNAME_MACHINE}-pc-minix
903 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
904 exit ;;
905 *:Minix:*:*)
906 echo "$UNAME_MACHINE"-unknown-minix
902907 exit ;;
903908 aarch64:Linux:*:*)
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
909 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905910 exit ;;
906911 aarch64_be:Linux:*:*)
907912 UNAME_MACHINE=aarch64_be
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
913 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
909914 exit ;;
910915 alpha:Linux:*:*)
911916 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
918923 EV68*) UNAME_MACHINE=alphaev68 ;;
919924 esac
920925 objdump --private-headers /bin/sh | grep -q ld.so.1
921 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
926 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
927 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
923928 exit ;;
924929 arc:Linux:*:* | arceb:Linux:*:*)
925 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
930 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
926931 exit ;;
927932 arm*:Linux:*:*)
928 eval $set_cc_for_build
933 set_cc_for_build
929934 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
930935 | grep -q __ARM_EABI__
931936 then
932 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
937 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
933938 else
934939 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
935940 | grep -q __ARM_PCS_VFP
936941 then
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
942 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
938943 else
939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
944 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
940945 fi
941946 fi
942947 exit ;;
943948 avr32*:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945950 exit ;;
946951 cris:Linux:*:*)
947 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
952 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
948953 exit ;;
949954 crisv32:Linux:*:*)
950 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
955 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
951956 exit ;;
952957 e2k:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
958 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
954959 exit ;;
955960 frv:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
957962 exit ;;
958963 hexagon:Linux:*:*)
959 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
960965 exit ;;
961966 i*86:Linux:*:*)
962 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
967 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
963968 exit ;;
964969 ia64:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
966971 exit ;;
967972 k1om:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
969974 exit ;;
970975 m32r*:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
976 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972977 exit ;;
973978 m68*:Linux:*:*)
974 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
979 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
975980 exit ;;
976981 mips:Linux:*:* | mips64:Linux:*:*)
977 eval $set_cc_for_build
978 sed 's/^ //' << EOF >$dummy.c
982 set_cc_for_build
983 sed 's/^ //' << EOF > "$dummy.c"
979984 #undef CPU
980985 #undef ${UNAME_MACHINE}
981986 #undef ${UNAME_MACHINE}el
989994 #endif
990995 #endif
991996 EOF
992 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
993 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
997 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
998 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
994999 ;;
1000 mips64el:Linux:*:*)
1001 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1002 exit ;;
9951003 openrisc*:Linux:*:*)
996 echo or1k-unknown-linux-${LIBC}
1004 echo or1k-unknown-linux-"$LIBC"
9971005 exit ;;
9981006 or32:Linux:*:* | or1k*:Linux:*:*)
999 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1007 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10001008 exit ;;
10011009 padre:Linux:*:*)
1002 echo sparc-unknown-linux-${LIBC}
1010 echo sparc-unknown-linux-"$LIBC"
10031011 exit ;;
10041012 parisc64:Linux:*:* | hppa64:Linux:*:*)
1005 echo hppa64-unknown-linux-${LIBC}
1013 echo hppa64-unknown-linux-"$LIBC"
10061014 exit ;;
10071015 parisc:Linux:*:* | hppa:Linux:*:*)
10081016 # Look for CPU level
10091017 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1010 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1011 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1012 *) echo hppa-unknown-linux-${LIBC} ;;
1018 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1019 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1020 *) echo hppa-unknown-linux-"$LIBC" ;;
10131021 esac
10141022 exit ;;
10151023 ppc64:Linux:*:*)
1016 echo powerpc64-unknown-linux-${LIBC}
1024 echo powerpc64-unknown-linux-"$LIBC"
10171025 exit ;;
10181026 ppc:Linux:*:*)
1019 echo powerpc-unknown-linux-${LIBC}
1027 echo powerpc-unknown-linux-"$LIBC"
10201028 exit ;;
10211029 ppc64le:Linux:*:*)
1022 echo powerpc64le-unknown-linux-${LIBC}
1030 echo powerpc64le-unknown-linux-"$LIBC"
10231031 exit ;;
10241032 ppcle:Linux:*:*)
1025 echo powerpcle-unknown-linux-${LIBC}
1033 echo powerpcle-unknown-linux-"$LIBC"
1034 exit ;;
1035 riscv32:Linux:*:* | riscv64:Linux:*:*)
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10261037 exit ;;
10271038 s390:Linux:*:* | s390x:Linux:*:*)
1028 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1039 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
10291040 exit ;;
10301041 sh64*:Linux:*:*)
1031 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10321043 exit ;;
10331044 sh*:Linux:*:*)
1034 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1045 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10351046 exit ;;
10361047 sparc:Linux:*:* | sparc64:Linux:*:*)
1037 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1048 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10381049 exit ;;
10391050 tile*:Linux:*:*)
1040 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1051 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10411052 exit ;;
10421053 vax:Linux:*:*)
1043 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1054 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
10441055 exit ;;
10451056 x86_64:Linux:*:*)
1046 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1057 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
10471058 exit ;;
10481059 xtensa*:Linux:*:*)
1049 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1060 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10501061 exit ;;
10511062 i*86:DYNIX/ptx:4*:*)
10521063 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10601071 # I am not positive that other SVR4 systems won't match this,
10611072 # I just have to hope. -- rms.
10621073 # Use sysv4.2uw... so that sysv4* matches it.
1063 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1074 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
10641075 exit ;;
10651076 i*86:OS/2:*:*)
10661077 # If we were able to find `uname', then EMX Unix compatibility
10671078 # is probably installed.
1068 echo ${UNAME_MACHINE}-pc-os2-emx
1079 echo "$UNAME_MACHINE"-pc-os2-emx
10691080 exit ;;
10701081 i*86:XTS-300:*:STOP)
1071 echo ${UNAME_MACHINE}-unknown-stop
1082 echo "$UNAME_MACHINE"-unknown-stop
10721083 exit ;;
10731084 i*86:atheos:*:*)
1074 echo ${UNAME_MACHINE}-unknown-atheos
1085 echo "$UNAME_MACHINE"-unknown-atheos
10751086 exit ;;
10761087 i*86:syllable:*:*)
1077 echo ${UNAME_MACHINE}-pc-syllable
1088 echo "$UNAME_MACHINE"-pc-syllable
10781089 exit ;;
10791090 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1080 echo i386-unknown-lynxos${UNAME_RELEASE}
1091 echo i386-unknown-lynxos"$UNAME_RELEASE"
10811092 exit ;;
10821093 i*86:*DOS:*:*)
1083 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1084 exit ;;
1085 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1086 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1094 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1095 exit ;;
1096 i*86:*:4.*:*)
1097 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10871098 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1088 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1099 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
10891100 else
1090 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1101 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
10911102 fi
10921103 exit ;;
10931104 i*86:*:5:[678]*)
10971108 *Pentium) UNAME_MACHINE=i586 ;;
10981109 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10991110 esac
1100 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1111 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
11011112 exit ;;
11021113 i*86:*:3.2:*)
11031114 if test -f /usr/options/cb.name; then
11041115 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1105 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1116 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
11061117 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11071118 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11081119 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11121123 && UNAME_MACHINE=i686
11131124 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11141125 && UNAME_MACHINE=i686
1115 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1126 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
11161127 else
1117 echo ${UNAME_MACHINE}-pc-sysv32
1128 echo "$UNAME_MACHINE"-pc-sysv32
11181129 fi
11191130 exit ;;
11201131 pc:*:*:*)
11341145 exit ;;
11351146 i860:*:4.*:*) # i860-SVR4
11361147 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1137 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1148 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
11381149 else # Add other i860-SVR4 vendors below as they are discovered.
1139 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1150 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
11401151 fi
11411152 exit ;;
11421153 mini*:CTIX:SYS*5:*)
11561167 test -r /etc/.relid \
11571168 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11581169 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1159 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1170 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11601171 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1161 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1172 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11621173 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11631174 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11641175 && { echo i486-ncr-sysv4; exit; } ;;
11671178 test -r /etc/.relid \
11681179 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11691180 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1170 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1181 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11711182 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1172 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1183 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11731184 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1174 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1185 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11751186 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1176 echo m68k-unknown-lynxos${UNAME_RELEASE}
1187 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11771188 exit ;;
11781189 mc68030:UNIX_System_V:4.*:*)
11791190 echo m68k-atari-sysv4
11801191 exit ;;
11811192 TSUNAMI:LynxOS:2.*:*)
1182 echo sparc-unknown-lynxos${UNAME_RELEASE}
1193 echo sparc-unknown-lynxos"$UNAME_RELEASE"
11831194 exit ;;
11841195 rs6000:LynxOS:2.*:*)
1185 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1196 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
11861197 exit ;;
11871198 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1188 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1199 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
11891200 exit ;;
11901201 SM[BE]S:UNIX_SV:*:*)
1191 echo mips-dde-sysv${UNAME_RELEASE}
1202 echo mips-dde-sysv"$UNAME_RELEASE"
11921203 exit ;;
11931204 RM*:ReliantUNIX-*:*:*)
11941205 echo mips-sni-sysv4
11991210 *:SINIX-*:*:*)
12001211 if uname -p 2>/dev/null >/dev/null ; then
12011212 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1202 echo ${UNAME_MACHINE}-sni-sysv4
1213 echo "$UNAME_MACHINE"-sni-sysv4
12031214 else
12041215 echo ns32k-sni-sysv
12051216 fi
12191230 exit ;;
12201231 i*86:VOS:*:*)
12211232 # From Paul.Green@stratus.com.
1222 echo ${UNAME_MACHINE}-stratus-vos
1233 echo "$UNAME_MACHINE"-stratus-vos
12231234 exit ;;
12241235 *:VOS:*:*)
12251236 # From Paul.Green@stratus.com.
12261237 echo hppa1.1-stratus-vos
12271238 exit ;;
12281239 mc68*:A/UX:*:*)
1229 echo m68k-apple-aux${UNAME_RELEASE}
1240 echo m68k-apple-aux"$UNAME_RELEASE"
12301241 exit ;;
12311242 news*:NEWS-OS:6*:*)
12321243 echo mips-sony-newsos6
12331244 exit ;;
12341245 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12351246 if [ -d /usr/nec ]; then
1236 echo mips-nec-sysv${UNAME_RELEASE}
1247 echo mips-nec-sysv"$UNAME_RELEASE"
12371248 else
1238 echo mips-unknown-sysv${UNAME_RELEASE}
1249 echo mips-unknown-sysv"$UNAME_RELEASE"
12391250 fi
12401251 exit ;;
12411252 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12541265 echo x86_64-unknown-haiku
12551266 exit ;;
12561267 SX-4:SUPER-UX:*:*)
1257 echo sx4-nec-superux${UNAME_RELEASE}
1268 echo sx4-nec-superux"$UNAME_RELEASE"
12581269 exit ;;
12591270 SX-5:SUPER-UX:*:*)
1260 echo sx5-nec-superux${UNAME_RELEASE}
1271 echo sx5-nec-superux"$UNAME_RELEASE"
12611272 exit ;;
12621273 SX-6:SUPER-UX:*:*)
1263 echo sx6-nec-superux${UNAME_RELEASE}
1274 echo sx6-nec-superux"$UNAME_RELEASE"
12641275 exit ;;
12651276 SX-7:SUPER-UX:*:*)
1266 echo sx7-nec-superux${UNAME_RELEASE}
1277 echo sx7-nec-superux"$UNAME_RELEASE"
12671278 exit ;;
12681279 SX-8:SUPER-UX:*:*)
1269 echo sx8-nec-superux${UNAME_RELEASE}
1280 echo sx8-nec-superux"$UNAME_RELEASE"
12701281 exit ;;
12711282 SX-8R:SUPER-UX:*:*)
1272 echo sx8r-nec-superux${UNAME_RELEASE}
1283 echo sx8r-nec-superux"$UNAME_RELEASE"
1284 exit ;;
1285 SX-ACE:SUPER-UX:*:*)
1286 echo sxace-nec-superux"$UNAME_RELEASE"
12731287 exit ;;
12741288 Power*:Rhapsody:*:*)
1275 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1289 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12761290 exit ;;
12771291 *:Rhapsody:*:*)
1278 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1292 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12791293 exit ;;
12801294 *:Darwin:*:*)
12811295 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1282 eval $set_cc_for_build
1296 set_cc_for_build
12831297 if test "$UNAME_PROCESSOR" = unknown ; then
12841298 UNAME_PROCESSOR=powerpc
12851299 fi
1286 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1287 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1300 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1301 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
12881302 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1289 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1290 grep IS_64BIT_ARCH >/dev/null
1303 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1304 grep IS_64BIT_ARCH >/dev/null
12911305 then
12921306 case $UNAME_PROCESSOR in
12931307 i386) UNAME_PROCESSOR=x86_64 ;;
12941308 powerpc) UNAME_PROCESSOR=powerpc64 ;;
12951309 esac
1310 fi
1311 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1312 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1313 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1314 grep IS_PPC >/dev/null
1315 then
1316 UNAME_PROCESSOR=powerpc
12961317 fi
12971318 fi
12981319 elif test "$UNAME_PROCESSOR" = i386 ; then
13041325 # that Apple uses in portable devices.
13051326 UNAME_PROCESSOR=x86_64
13061327 fi
1307 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1328 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
13081329 exit ;;
13091330 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13101331 UNAME_PROCESSOR=`uname -p`
1311 if test "$UNAME_PROCESSOR" = "x86"; then
1332 if test "$UNAME_PROCESSOR" = x86; then
13121333 UNAME_PROCESSOR=i386
13131334 UNAME_MACHINE=pc
13141335 fi
1315 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1336 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
13161337 exit ;;
13171338 *:QNX:*:4*)
13181339 echo i386-pc-qnx
13191340 exit ;;
1320 NEO-?:NONSTOP_KERNEL:*:*)
1321 echo neo-tandem-nsk${UNAME_RELEASE}
1341 NEO-*:NONSTOP_KERNEL:*:*)
1342 echo neo-tandem-nsk"$UNAME_RELEASE"
13221343 exit ;;
13231344 NSE-*:NONSTOP_KERNEL:*:*)
1324 echo nse-tandem-nsk${UNAME_RELEASE}
1325 exit ;;
1326 NSR-?:NONSTOP_KERNEL:*:*)
1327 echo nsr-tandem-nsk${UNAME_RELEASE}
1345 echo nse-tandem-nsk"$UNAME_RELEASE"
1346 exit ;;
1347 NSR-*:NONSTOP_KERNEL:*:*)
1348 echo nsr-tandem-nsk"$UNAME_RELEASE"
1349 exit ;;
1350 NSV-*:NONSTOP_KERNEL:*:*)
1351 echo nsv-tandem-nsk"$UNAME_RELEASE"
1352 exit ;;
1353 NSX-*:NONSTOP_KERNEL:*:*)
1354 echo nsx-tandem-nsk"$UNAME_RELEASE"
13281355 exit ;;
13291356 *:NonStop-UX:*:*)
13301357 echo mips-compaq-nonstopux
13331360 echo bs2000-siemens-sysv
13341361 exit ;;
13351362 DS/*:UNIX_System_V:*:*)
1336 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1363 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
13371364 exit ;;
13381365 *:Plan9:*:*)
13391366 # "uname -m" is not consistent, so use $cputype instead. 386
13401367 # is converted to i386 for consistency with other x86
13411368 # operating systems.
1342 if test "$cputype" = "386"; then
1369 # shellcheck disable=SC2154
1370 if test "$cputype" = 386; then
13431371 UNAME_MACHINE=i386
13441372 else
13451373 UNAME_MACHINE="$cputype"
13461374 fi
1347 echo ${UNAME_MACHINE}-unknown-plan9
1375 echo "$UNAME_MACHINE"-unknown-plan9
13481376 exit ;;
13491377 *:TOPS-10:*:*)
13501378 echo pdp10-unknown-tops10
13651393 echo pdp10-unknown-its
13661394 exit ;;
13671395 SEI:*:*:SEIUX)
1368 echo mips-sei-seiux${UNAME_RELEASE}
1396 echo mips-sei-seiux"$UNAME_RELEASE"
13691397 exit ;;
13701398 *:DragonFly:*:*)
1371 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1399 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
13721400 exit ;;
13731401 *:*VMS:*:*)
13741402 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1375 case "${UNAME_MACHINE}" in
1403 case "$UNAME_MACHINE" in
13761404 A*) echo alpha-dec-vms ; exit ;;
13771405 I*) echo ia64-dec-vms ; exit ;;
13781406 V*) echo vax-dec-vms ; exit ;;
13811409 echo i386-pc-xenix
13821410 exit ;;
13831411 i*86:skyos:*:*)
1384 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1412 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
13851413 exit ;;
13861414 i*86:rdos:*:*)
1387 echo ${UNAME_MACHINE}-pc-rdos
1415 echo "$UNAME_MACHINE"-pc-rdos
13881416 exit ;;
13891417 i*86:AROS:*:*)
1390 echo ${UNAME_MACHINE}-pc-aros
1418 echo "$UNAME_MACHINE"-pc-aros
13911419 exit ;;
13921420 x86_64:VMkernel:*:*)
1393 echo ${UNAME_MACHINE}-unknown-esx
1421 echo "$UNAME_MACHINE"-unknown-esx
13941422 exit ;;
13951423 amd64:Isilon\ OneFS:*:*)
13961424 echo x86_64-unknown-onefs
13971425 exit ;;
13981426 esac
13991427
1428 echo "$0: unable to guess system type" >&2
1429
1430 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1431 mips:Linux | mips64:Linux)
1432 # If we got here on MIPS GNU/Linux, output extra information.
1433 cat >&2 <<EOF
1434
1435 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1436 the system type. Please install a C compiler and try again.
1437 EOF
1438 ;;
1439 esac
1440
14001441 cat >&2 <<EOF
1401 $0: unable to guess system type
1402
1403 This script, last modified $timestamp, has failed to recognize
1404 the operating system you are using. It is advised that you
1405 download the most up to date version of the config scripts from
1406
1407 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1442
1443 This script (version $timestamp), has failed to recognize the
1444 operating system you are using. If your script is old, overwrite *all*
1445 copies of config.guess and config.sub with the latest versions from:
1446
1447 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
14081448 and
1409 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1410
1411 If the version you run ($0) is already up to date, please
1412 send the following data and any information you think might be
1413 pertinent to <config-patches@gnu.org> in order to provide the needed
1414 information to handle your system.
1449 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1450
1451 If $0 has already been updated, send the following data and any
1452 information you think might be pertinent to config-patches@gnu.org to
1453 provide the necessary information to handle your system.
14151454
14161455 config.guess timestamp = $timestamp
14171456
14301469 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14311470 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14321471
1433 UNAME_MACHINE = ${UNAME_MACHINE}
1434 UNAME_RELEASE = ${UNAME_RELEASE}
1435 UNAME_SYSTEM = ${UNAME_SYSTEM}
1436 UNAME_VERSION = ${UNAME_VERSION}
1472 UNAME_MACHINE = "$UNAME_MACHINE"
1473 UNAME_RELEASE = "$UNAME_RELEASE"
1474 UNAME_SYSTEM = "$UNAME_SYSTEM"
1475 UNAME_VERSION = "$UNAME_VERSION"
14371476 EOF
14381477
14391478 exit 1
14401479
14411480 # Local variables:
1442 # eval: (add-hook 'write-file-hooks 'time-stamp)
1481 # eval: (add-hook 'before-save-hook 'time-stamp)
14431482 # time-stamp-start: "timestamp='"
14441483 # time-stamp-format: "%:y-%02m-%02d"
14451484 # time-stamp-end: "'"
+1475
-1498
config.sub less more
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2016 Free Software Foundation, Inc.
3
4 timestamp='2016-01-01'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-08-29'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
3232 # Otherwise, we print the canonical config type on stdout and succeed.
3333
3434 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3636
3737 # This file is supposed to be the same for all GNU packages
3838 # and recognize all the CPU types, system types and aliases
5656
5757 Canonicalize a configuration name.
5858
59 Operation modes:
59 Options:
6060 -h, --help print this help, then exit
6161 -t, --time-stamp print date of last modification, then exit
6262 -v, --version print version number, then exit
6666 version="\
6767 GNU config.sub ($timestamp)
6868
69 Copyright 1992-2016 Free Software Foundation, Inc.
69 Copyright 1992-2018 Free Software Foundation, Inc.
7070
7171 This is free software; see the source for copying conditions. There is NO
7272 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9393
9494 *local*)
9595 # First pass through any local machine types.
96 echo $1
96 echo "$1"
9797 exit ;;
9898
9999 * )
109109 exit 1;;
110110 esac
111111
112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
113 # Here we must recognize all the valid KERNEL-OS combinations.
114 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 case $maybe_os in
116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
112 # Split fields of configuration type
113 IFS="-" read -r field1 field2 field3 field4 <<EOF
114 $1
115 EOF
116
117 # Separate into logical components for further validation
118 case $1 in
119 *-*-*-*-*)
120 echo Invalid configuration \`"$1"\': more than four components >&2
121 exit 1
122 ;;
123 *-*-*-*)
124 basic_machine=$field1-$field2
125 os=$field3-$field4
126 ;;
127 *-*-*)
128 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
129 # parts
130 maybe_os=$field2-$field3
131 case $maybe_os in
132 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
133 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
134 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
135 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
136 | storm-chaos* | os2-emx* | rtmk-nova*)
137 basic_machine=$field1
138 os=$maybe_os
139 ;;
140 android-linux)
141 basic_machine=$field1-unknown
142 os=linux-android
143 ;;
144 *)
145 basic_machine=$field1-$field2
146 os=$field3
147 ;;
148 esac
149 ;;
150 *-*)
151 # A lone config we happen to match not fitting any patern
152 case $field1-$field2 in
153 decstation-3100)
154 basic_machine=mips-dec
155 os=
156 ;;
157 *-*)
158 # Second component is usually, but not always the OS
159 case $field2 in
160 # Prevent following clause from handling this valid os
161 sun*os*)
162 basic_machine=$field1
163 os=$field2
164 ;;
165 # Manufacturers
166 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
167 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
168 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
169 | convergent* | ncr* | news | 32* | 3600* | 3100* \
170 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
171 | ultra | tti* | harris | dolphin | highlevel | gould \
172 | cbm | ns | masscomp | apple | axis | knuth | cray \
173 | microblaze* | sim | cisco \
174 | oki | wec | wrs | winbond)
175 basic_machine=$field1-$field2
176 os=
177 ;;
178 *)
179 basic_machine=$field1
180 os=$field2
181 ;;
182 esac
183 ;;
184 esac
185 ;;
186 *)
187 # Convert single-component short-hands not valid as part of
188 # multi-component configurations.
189 case $field1 in
190 386bsd)
191 basic_machine=i386-pc
192 os=bsd
193 ;;
194 a29khif)
195 basic_machine=a29k-amd
196 os=udi
197 ;;
198 adobe68k)
199 basic_machine=m68010-adobe
200 os=scout
201 ;;
202 alliant)
203 basic_machine=fx80-alliant
204 os=
205 ;;
206 altos | altos3068)
207 basic_machine=m68k-altos
208 os=
209 ;;
210 am29k)
211 basic_machine=a29k-none
212 os=bsd
213 ;;
214 amdahl)
215 basic_machine=580-amdahl
216 os=sysv
217 ;;
218 amiga)
219 basic_machine=m68k-unknown
220 os=
221 ;;
222 amigaos | amigados)
223 basic_machine=m68k-unknown
224 os=amigaos
225 ;;
226 amigaunix | amix)
227 basic_machine=m68k-unknown
228 os=sysv4
229 ;;
230 apollo68)
231 basic_machine=m68k-apollo
232 os=sysv
233 ;;
234 apollo68bsd)
235 basic_machine=m68k-apollo
236 os=bsd
237 ;;
238 aros)
239 basic_machine=i386-pc
240 os=aros
241 ;;
242 aux)
243 basic_machine=m68k-apple
244 os=aux
245 ;;
246 balance)
247 basic_machine=ns32k-sequent
248 os=dynix
249 ;;
250 blackfin)
251 basic_machine=bfin-unknown
252 os=linux
253 ;;
254 cegcc)
255 basic_machine=arm-unknown
256 os=cegcc
257 ;;
258 convex-c1)
259 basic_machine=c1-convex
260 os=bsd
261 ;;
262 convex-c2)
263 basic_machine=c2-convex
264 os=bsd
265 ;;
266 convex-c32)
267 basic_machine=c32-convex
268 os=bsd
269 ;;
270 convex-c34)
271 basic_machine=c34-convex
272 os=bsd
273 ;;
274 convex-c38)
275 basic_machine=c38-convex
276 os=bsd
277 ;;
278 cray)
279 basic_machine=j90-cray
280 os=unicos
281 ;;
282 crds | unos)
283 basic_machine=m68k-crds
284 os=
285 ;;
286 da30)
287 basic_machine=m68k-da30
288 os=
289 ;;
290 decstation | pmax | pmin | dec3100 | decstatn)
291 basic_machine=mips-dec
292 os=
293 ;;
294 delta88)
295 basic_machine=m88k-motorola
296 os=sysv3
297 ;;
298 dicos)
299 basic_machine=i686-pc
300 os=dicos
301 ;;
302 djgpp)
303 basic_machine=i586-pc
304 os=msdosdjgpp
305 ;;
306 ebmon29k)
307 basic_machine=a29k-amd
308 os=ebmon
309 ;;
310 es1800 | OSE68k | ose68k | ose | OSE)
311 basic_machine=m68k-ericsson
312 os=ose
313 ;;
314 gmicro)
315 basic_machine=tron-gmicro
316 os=sysv
317 ;;
318 go32)
319 basic_machine=i386-pc
320 os=go32
321 ;;
322 h8300hms)
323 basic_machine=h8300-hitachi
324 os=hms
325 ;;
326 h8300xray)
327 basic_machine=h8300-hitachi
328 os=xray
329 ;;
330 h8500hms)
331 basic_machine=h8500-hitachi
332 os=hms
333 ;;
334 harris)
335 basic_machine=m88k-harris
336 os=sysv3
337 ;;
338 hp300)
339 basic_machine=m68k-hp
340 ;;
341 hp300bsd)
342 basic_machine=m68k-hp
343 os=bsd
344 ;;
345 hp300hpux)
346 basic_machine=m68k-hp
347 os=hpux
348 ;;
349 hppaosf)
350 basic_machine=hppa1.1-hp
351 os=osf
352 ;;
353 hppro)
354 basic_machine=hppa1.1-hp
355 os=proelf
356 ;;
357 i386mach)
358 basic_machine=i386-mach
359 os=mach
360 ;;
361 vsta)
362 basic_machine=i386-pc
363 os=vsta
364 ;;
365 isi68 | isi)
366 basic_machine=m68k-isi
367 os=sysv
368 ;;
369 m68knommu)
370 basic_machine=m68k-unknown
371 os=linux
372 ;;
373 magnum | m3230)
374 basic_machine=mips-mips
375 os=sysv
376 ;;
377 merlin)
378 basic_machine=ns32k-utek
379 os=sysv
380 ;;
381 mingw64)
382 basic_machine=x86_64-pc
383 os=mingw64
384 ;;
385 mingw32)
386 basic_machine=i686-pc
387 os=mingw32
388 ;;
389 mingw32ce)
390 basic_machine=arm-unknown
391 os=mingw32ce
392 ;;
393 monitor)
394 basic_machine=m68k-rom68k
395 os=coff
396 ;;
397 morphos)
398 basic_machine=powerpc-unknown
399 os=morphos
400 ;;
401 moxiebox)
402 basic_machine=moxie-unknown
403 os=moxiebox
404 ;;
405 msdos)
406 basic_machine=i386-pc
407 os=msdos
408 ;;
409 msys)
410 basic_machine=i686-pc
411 os=msys
412 ;;
413 mvs)
414 basic_machine=i370-ibm
415 os=mvs
416 ;;
417 nacl)
418 basic_machine=le32-unknown
419 os=nacl
420 ;;
421 ncr3000)
422 basic_machine=i486-ncr
423 os=sysv4
424 ;;
425 netbsd386)
426 basic_machine=i386-pc
427 os=netbsd
428 ;;
429 netwinder)
430 basic_machine=armv4l-rebel
431 os=linux
432 ;;
433 news | news700 | news800 | news900)
434 basic_machine=m68k-sony
435 os=newsos
436 ;;
437 news1000)
438 basic_machine=m68030-sony
439 os=newsos
440 ;;
441 necv70)
442 basic_machine=v70-nec
443 os=sysv
444 ;;
445 nh3000)
446 basic_machine=m68k-harris
447 os=cxux
448 ;;
449 nh[45]000)
450 basic_machine=m88k-harris
451 os=cxux
452 ;;
453 nindy960)
454 basic_machine=i960-intel
455 os=nindy
456 ;;
457 mon960)
458 basic_machine=i960-intel
459 os=mon960
460 ;;
461 nonstopux)
462 basic_machine=mips-compaq
463 os=nonstopux
464 ;;
465 os400)
466 basic_machine=powerpc-ibm
467 os=os400
468 ;;
469 OSE68000 | ose68000)
470 basic_machine=m68000-ericsson
471 os=ose
472 ;;
473 os68k)
474 basic_machine=m68k-none
475 os=os68k
476 ;;
477 paragon)
478 basic_machine=i860-intel
479 os=osf
480 ;;
481 parisc)
482 basic_machine=hppa-unknown
483 os=linux
484 ;;
485 pw32)
486 basic_machine=i586-unknown
487 os=pw32
488 ;;
489 rdos | rdos64)
490 basic_machine=x86_64-pc
491 os=rdos
492 ;;
493 rdos32)
494 basic_machine=i386-pc
495 os=rdos
496 ;;
497 rom68k)
498 basic_machine=m68k-rom68k
499 os=coff
500 ;;
501 sa29200)
502 basic_machine=a29k-amd
503 os=udi
504 ;;
505 sei)
506 basic_machine=mips-sei
507 os=seiux
508 ;;
509 sequent)
510 basic_machine=i386-sequent
511 os=
512 ;;
513 sps7)
514 basic_machine=m68k-bull
515 os=sysv2
516 ;;
517 st2000)
518 basic_machine=m68k-tandem
519 os=
520 ;;
521 stratus)
522 basic_machine=i860-stratus
523 os=sysv4
524 ;;
525 sun2)
526 basic_machine=m68000-sun
527 os=
528 ;;
529 sun2os3)
530 basic_machine=m68000-sun
531 os=sunos3
532 ;;
533 sun2os4)
534 basic_machine=m68000-sun
535 os=sunos4
536 ;;
537 sun3)
538 basic_machine=m68k-sun
539 os=
540 ;;
541 sun3os3)
542 basic_machine=m68k-sun
543 os=sunos3
544 ;;
545 sun3os4)
546 basic_machine=m68k-sun
547 os=sunos4
548 ;;
549 sun4)
550 basic_machine=sparc-sun
551 os=
552 ;;
553 sun4os3)
554 basic_machine=sparc-sun
555 os=sunos3
556 ;;
557 sun4os4)
558 basic_machine=sparc-sun
559 os=sunos4
560 ;;
561 sun4sol2)
562 basic_machine=sparc-sun
563 os=solaris2
564 ;;
565 sun386 | sun386i | roadrunner)
566 basic_machine=i386-sun
567 os=
568 ;;
569 sv1)
570 basic_machine=sv1-cray
571 os=unicos
572 ;;
573 symmetry)
574 basic_machine=i386-sequent
575 os=dynix
576 ;;
577 t3e)
578 basic_machine=alphaev5-cray
579 os=unicos
580 ;;
581 t90)
582 basic_machine=t90-cray
583 os=unicos
584 ;;
585 toad1)
586 basic_machine=pdp10-xkl
587 os=tops20
588 ;;
589 tpf)
590 basic_machine=s390x-ibm
591 os=tpf
592 ;;
593 udi29k)
594 basic_machine=a29k-amd
595 os=udi
596 ;;
597 ultra3)
598 basic_machine=a29k-nyu
599 os=sym1
600 ;;
601 v810 | necv810)
602 basic_machine=v810-nec
603 os=none
604 ;;
605 vaxv)
606 basic_machine=vax-dec
607 os=sysv
608 ;;
609 vms)
610 basic_machine=vax-dec
611 os=vms
612 ;;
613 vxworks960)
614 basic_machine=i960-wrs
615 os=vxworks
616 ;;
617 vxworks68)
618 basic_machine=m68k-wrs
619 os=vxworks
620 ;;
621 vxworks29k)
622 basic_machine=a29k-wrs
623 os=vxworks
624 ;;
625 xbox)
626 basic_machine=i686-pc
627 os=mingw32
628 ;;
629 ymp)
630 basic_machine=ymp-cray
631 os=unicos
632 ;;
633 *)
634 basic_machine=$1
635 os=
636 ;;
637 esac
638 ;;
134639 esac
135640
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray | -microblaze*)
151 os=
152 basic_machine=$1
153 ;;
154 -bluegene*)
155 os=-cnk
156 ;;
157 -sim | -cisco | -oki | -wec | -winbond)
158 os=
159 basic_machine=$1
160 ;;
161 -scout)
162 ;;
163 -wrs)
164 os=-vxworks
165 basic_machine=$1
166 ;;
167 -chorusos*)
168 os=-chorusos
169 basic_machine=$1
170 ;;
171 -chorusrdb)
172 os=-chorusrdb
173 basic_machine=$1
174 ;;
175 -hiux*)
176 os=-hiuxwe2
177 ;;
178 -sco6)
179 os=-sco5v6
180 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
181 ;;
182 -sco5)
183 os=-sco3.2v5
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco4)
187 os=-sco3.2v4
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco3.2.[4-9]*)
191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2v[4-9]*)
195 # Don't forget version if it is 3.2v4 or newer.
196 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco5v6*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco*)
203 os=-sco3.2v2
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -udk*)
207 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
208 ;;
209 -isc)
210 os=-isc2.2
211 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -clix*)
214 basic_machine=clipper-intergraph
215 ;;
216 -isc*)
217 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -lynx*178)
220 os=-lynxos178
221 ;;
222 -lynx*5)
223 os=-lynxos5
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -windowsnt*)
232 os=`echo $os | sed -e 's/windowsnt/winnt/'`
233 ;;
234 -psos*)
235 os=-psos
236 ;;
237 -mint | -mint[0-9]*)
238 basic_machine=m68k-atari
239 os=-mint
240 ;;
241 esac
242
243 # Decode aliases for certain CPU-COMPANY combinations.
641 # Decode 1-component or ad-hoc basic machines
244642 case $basic_machine in
245 # Recognize the basic CPU types without company name.
246 # Some are omitted here because they have special meanings below.
247 1750a | 580 \
248 | a29k \
249 | aarch64 | aarch64_be \
250 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
251 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252 | am33_2.0 \
253 | arc | arceb \
254 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
255 | avr | avr32 \
256 | ba \
257 | be32 | be64 \
258 | bfin \
259 | c4x | c8051 | clipper \
260 | d10v | d30v | dlx | dsp16xx \
261 | e2k | epiphany \
262 | fido | fr30 | frv | ft32 \
263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264 | hexagon \
265 | i370 | i860 | i960 | ia64 \
266 | ip2k | iq2000 \
267 | k1om \
268 | le32 | le64 \
269 | lm32 \
270 | m32c | m32r | m32rle | m68000 | m68k | m88k \
271 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
272 | mips | mipsbe | mipseb | mipsel | mipsle \
273 | mips16 \
274 | mips64 | mips64el \
275 | mips64octeon | mips64octeonel \
276 | mips64orion | mips64orionel \
277 | mips64r5900 | mips64r5900el \
278 | mips64vr | mips64vrel \
279 | mips64vr4100 | mips64vr4100el \
280 | mips64vr4300 | mips64vr4300el \
281 | mips64vr5000 | mips64vr5000el \
282 | mips64vr5900 | mips64vr5900el \
283 | mipsisa32 | mipsisa32el \
284 | mipsisa32r2 | mipsisa32r2el \
285 | mipsisa32r6 | mipsisa32r6el \
286 | mipsisa64 | mipsisa64el \
287 | mipsisa64r2 | mipsisa64r2el \
288 | mipsisa64r6 | mipsisa64r6el \
289 | mipsisa64sb1 | mipsisa64sb1el \
290 | mipsisa64sr71k | mipsisa64sr71kel \
291 | mipsr5900 | mipsr5900el \
292 | mipstx39 | mipstx39el \
293 | mn10200 | mn10300 \
294 | moxie \
295 | mt \
296 | msp430 \
297 | nds32 | nds32le | nds32be \
298 | nios | nios2 | nios2eb | nios2el \
299 | ns16k | ns32k \
300 | open8 | or1k | or1knd | or32 \
301 | pdp10 | pdp11 | pj | pjl \
302 | powerpc | powerpc64 | powerpc64le | powerpcle \
303 | pyramid \
304 | riscv32 | riscv64 \
305 | rl78 | rx \
306 | score \
307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308 | sh64 | sh64le \
309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
311 | spu \
312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
313 | ubicom32 \
314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
315 | visium \
316 | we32k \
317 | x86 | xc16x | xstormy16 | xtensa \
318 | z8k | z80)
319 basic_machine=$basic_machine-unknown
320 ;;
321 c54x)
322 basic_machine=tic54x-unknown
323 ;;
324 c55x)
325 basic_machine=tic55x-unknown
326 ;;
327 c6x)
328 basic_machine=tic6x-unknown
643 # Here we handle the default manufacturer of certain CPU types. It is in
644 # some cases the only manufacturer, in others, it is the most popular.
645 w89k)
646 cpu=hppa1.1
647 vendor=winbond
648 ;;
649 op50n)
650 cpu=hppa1.1
651 vendor=oki
652 ;;
653 op60c)
654 cpu=hppa1.1
655 vendor=oki
656 ;;
657 ibm*)
658 cpu=i370
659 vendor=ibm
660 ;;
661 orion105)
662 cpu=clipper
663 vendor=highlevel
664 ;;
665 mac | mpw | mac-mpw)
666 cpu=m68k
667 vendor=apple
668 ;;
669 pmac | pmac-mpw)
670 cpu=powerpc
671 vendor=apple
672 ;;
673
674 # Recognize the various machine names and aliases which stand
675 # for a CPU type and a company and sometimes even an OS.
676 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
677 cpu=m68000
678 vendor=att
679 ;;
680 3b*)
681 cpu=we32k
682 vendor=att
683 ;;
684 bluegene*)
685 cpu=powerpc
686 vendor=ibm
687 os=cnk
688 ;;
689 decsystem10* | dec10*)
690 cpu=pdp10
691 vendor=dec
692 os=tops10
693 ;;
694 decsystem20* | dec20*)
695 cpu=pdp10
696 vendor=dec
697 os=tops20
698 ;;
699 delta | 3300 | motorola-3300 | motorola-delta \
700 | 3300-motorola | delta-motorola)
701 cpu=m68k
702 vendor=motorola
703 ;;
704 dpx2*)
705 cpu=m68k
706 vendor=bull
707 os=sysv3
708 ;;
709 encore | umax | mmax)
710 cpu=ns32k
711 vendor=encore
712 ;;
713 elxsi)
714 cpu=elxsi
715 vendor=elxsi
716 os=${os:-bsd}
717 ;;
718 fx2800)
719 cpu=i860
720 vendor=alliant
721 ;;
722 genix)
723 cpu=ns32k
724 vendor=ns
725 ;;
726 h3050r* | hiux*)
727 cpu=hppa1.1
728 vendor=hitachi
729 os=hiuxwe2
730 ;;
731 hp3k9[0-9][0-9] | hp9[0-9][0-9])
732 cpu=hppa1.0
733 vendor=hp
734 ;;
735 hp9k2[0-9][0-9] | hp9k31[0-9])
736 cpu=m68000
737 vendor=hp
738 ;;
739 hp9k3[2-9][0-9])
740 cpu=m68k
741 vendor=hp
742 ;;
743 hp9k6[0-9][0-9] | hp6[0-9][0-9])
744 cpu=hppa1.0
745 vendor=hp
746 ;;
747 hp9k7[0-79][0-9] | hp7[0-79][0-9])
748 cpu=hppa1.1
749 vendor=hp
750 ;;
751 hp9k78[0-9] | hp78[0-9])
752 # FIXME: really hppa2.0-hp
753 cpu=hppa1.1
754 vendor=hp
755 ;;
756 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
757 # FIXME: really hppa2.0-hp
758 cpu=hppa1.1
759 vendor=hp
760 ;;
761 hp9k8[0-9][13679] | hp8[0-9][13679])
762 cpu=hppa1.1
763 vendor=hp
764 ;;
765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
766 cpu=hppa1.0
767 vendor=hp
768 ;;
769 i*86v32)
770 cpu=`echo "$1" | sed -e 's/86.*/86/'`
771 vendor=pc
772 os=sysv32
773 ;;
774 i*86v4*)
775 cpu=`echo "$1" | sed -e 's/86.*/86/'`
776 vendor=pc
777 os=sysv4
778 ;;
779 i*86v)
780 cpu=`echo "$1" | sed -e 's/86.*/86/'`
781 vendor=pc
782 os=sysv
783 ;;
784 i*86sol2)
785 cpu=`echo "$1" | sed -e 's/86.*/86/'`
786 vendor=pc
787 os=solaris2
788 ;;
789 j90 | j90-cray)
790 cpu=j90
791 vendor=cray
792 os=${os:-unicos}
793 ;;
794 iris | iris4d)
795 cpu=mips
796 vendor=sgi
797 case $os in
798 irix*)
799 ;;
800 *)
801 os=irix4
802 ;;
803 esac
804 ;;
805 miniframe)
806 cpu=m68000
807 vendor=convergent
808 ;;
809 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
810 cpu=m68k
811 vendor=atari
812 os=mint
813 ;;
814 news-3600 | risc-news)
815 cpu=mips
816 vendor=sony
817 os=newsos
818 ;;
819 next | m*-next)
820 cpu=m68k
821 vendor=next
822 case $os in
823 nextstep* )
824 ;;
825 ns2*)
826 os=nextstep2
827 ;;
828 *)
829 os=nextstep3
830 ;;
831 esac
832 ;;
833 np1)
834 cpu=np1
835 vendor=gould
836 ;;
837 op50n-* | op60c-*)
838 cpu=hppa1.1
839 vendor=oki
840 os=proelf
841 ;;
842 pa-hitachi)
843 cpu=hppa1.1
844 vendor=hitachi
845 os=hiuxwe2
846 ;;
847 pbd)
848 cpu=sparc
849 vendor=tti
850 ;;
851 pbb)
852 cpu=m68k
853 vendor=tti
854 ;;
855 pc532)
856 cpu=ns32k
857 vendor=pc532
858 ;;
859 pn)
860 cpu=pn
861 vendor=gould
862 ;;
863 power)
864 cpu=power
865 vendor=ibm
866 ;;
867 ps2)
868 cpu=i386
869 vendor=ibm
870 ;;
871 rm[46]00)
872 cpu=mips
873 vendor=siemens
874 ;;
875 rtpc | rtpc-*)
876 cpu=romp
877 vendor=ibm
878 ;;
879 sde)
880 cpu=mipsisa32
881 vendor=sde
882 os=${os:-elf}
883 ;;
884 simso-wrs)
885 cpu=sparclite
886 vendor=wrs
887 os=vxworks
888 ;;
889 tower | tower-32)
890 cpu=m68k
891 vendor=ncr
892 ;;
893 vpp*|vx|vx-*)
894 cpu=f301
895 vendor=fujitsu
896 ;;
897 w65)
898 cpu=w65
899 vendor=wdc
900 ;;
901 w89k-*)
902 cpu=hppa1.1
903 vendor=winbond
904 os=proelf
905 ;;
906 none)
907 cpu=none
908 vendor=none
329909 ;;
330910 leon|leon[3-9])
331 basic_machine=sparc-$basic_machine
332 ;;
333 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
334 basic_machine=$basic_machine-unknown
335 os=-none
336 ;;
337 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
338 ;;
339 ms1)
340 basic_machine=mt-unknown
341 ;;
342
343 strongarm | thumb | xscale)
344 basic_machine=arm-unknown
345 ;;
346 xgate)
347 basic_machine=$basic_machine-unknown
348 os=-none
349 ;;
350 xscaleeb)
351 basic_machine=armeb-unknown
352 ;;
353
354 xscaleel)
355 basic_machine=armel-unknown
356 ;;
357
911 cpu=sparc
912 vendor=$basic_machine
913 ;;
914 leon-*|leon[3-9]-*)
915 cpu=sparc
916 vendor=`echo "$basic_machine" | sed 's/-.*//'`
917 ;;
918
919 *-*)
920 IFS="-" read -r cpu vendor <<EOF
921 $basic_machine
922 EOF
923 ;;
358924 # We use `pc' rather than `unknown'
359925 # because (1) that's what they normally are, and
360926 # (2) the word "unknown" tends to confuse beginning users.
361927 i*86 | x86_64)
362 basic_machine=$basic_machine-pc
363 ;;
364 # Object if more than one company name word.
365 *-*-*)
366 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
367 exit 1
368 ;;
369 # Recognize the basic CPU types with company name.
370 580-* \
371 | a29k-* \
372 | aarch64-* | aarch64_be-* \
373 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
374 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
375 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
376 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
377 | avr-* | avr32-* \
378 | ba-* \
379 | be32-* | be64-* \
380 | bfin-* | bs2000-* \
381 | c[123]* | c30-* | [cjt]90-* | c4x-* \
382 | c8051-* | clipper-* | craynv-* | cydra-* \
383 | d10v-* | d30v-* | dlx-* \
384 | e2k-* | elxsi-* \
385 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
386 | h8300-* | h8500-* \
387 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
388 | hexagon-* \
389 | i*86-* | i860-* | i960-* | ia64-* \
390 | ip2k-* | iq2000-* \
391 | k1om-* \
392 | le32-* | le64-* \
393 | lm32-* \
394 | m32c-* | m32r-* | m32rle-* \
395 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
396 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
397 | microblaze-* | microblazeel-* \
398 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
399 | mips16-* \
400 | mips64-* | mips64el-* \
401 | mips64octeon-* | mips64octeonel-* \
402 | mips64orion-* | mips64orionel-* \
403 | mips64r5900-* | mips64r5900el-* \
404 | mips64vr-* | mips64vrel-* \
405 | mips64vr4100-* | mips64vr4100el-* \
406 | mips64vr4300-* | mips64vr4300el-* \
407 | mips64vr5000-* | mips64vr5000el-* \
408 | mips64vr5900-* | mips64vr5900el-* \
409 | mipsisa32-* | mipsisa32el-* \
410 | mipsisa32r2-* | mipsisa32r2el-* \
411 | mipsisa32r6-* | mipsisa32r6el-* \
412 | mipsisa64-* | mipsisa64el-* \
413 | mipsisa64r2-* | mipsisa64r2el-* \
414 | mipsisa64r6-* | mipsisa64r6el-* \
415 | mipsisa64sb1-* | mipsisa64sb1el-* \
416 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
417 | mipsr5900-* | mipsr5900el-* \
418 | mipstx39-* | mipstx39el-* \
419 | mmix-* \
420 | mt-* \
421 | msp430-* \
422 | nds32-* | nds32le-* | nds32be-* \
423 | nios-* | nios2-* | nios2eb-* | nios2el-* \
424 | none-* | np1-* | ns16k-* | ns32k-* \
425 | open8-* \
426 | or1k*-* \
427 | orion-* \
428 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
429 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
430 | pyramid-* \
431 | riscv32-* | riscv64-* \
432 | rl78-* | romp-* | rs6000-* | rx-* \
433 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
434 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
435 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
436 | sparclite-* \
437 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
438 | tahoe-* \
439 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
440 | tile*-* \
441 | tron-* \
442 | ubicom32-* \
443 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
444 | vax-* \
445 | visium-* \
446 | we32k-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
448 | xstormy16-* | xtensa*-* \
449 | ymp-* \
450 | z8k-* | z80-*)
451 ;;
452 # Recognize the basic CPU types without company name, with glob match.
453 xtensa*)
454 basic_machine=$basic_machine-unknown
455 ;;
456 # Recognize the various machine names and aliases which stand
457 # for a CPU type and a company and sometimes even an OS.
458 386bsd)
459 basic_machine=i386-unknown
460 os=-bsd
461 ;;
462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
463 basic_machine=m68000-att
464 ;;
465 3b*)
466 basic_machine=we32k-att
467 ;;
468 a29khif)
469 basic_machine=a29k-amd
470 os=-udi
471 ;;
472 abacus)
473 basic_machine=abacus-unknown
474 ;;
475 adobe68k)
476 basic_machine=m68010-adobe
477 os=-scout
478 ;;
479 alliant | fx80)
480 basic_machine=fx80-alliant
481 ;;
482 altos | altos3068)
483 basic_machine=m68k-altos
484 ;;
485 am29k)
486 basic_machine=a29k-none
487 os=-bsd
488 ;;
489 amd64)
490 basic_machine=x86_64-pc
491 ;;
928 cpu=$basic_machine
929 vendor=pc
930 ;;
931 # These rules are duplicated from below for sake of the special case above;
932 # i.e. things that normalized to x86 arches should also default to "pc"
933 pc98)
934 cpu=i386
935 vendor=pc
936 ;;
937 x64 | amd64)
938 cpu=x86_64
939 vendor=pc
940 ;;
941 # Recognize the basic CPU types without company name.
942 *)
943 cpu=$basic_machine
944 vendor=unknown
945 ;;
946 esac
947
948 unset -v basic_machine
949
950 # Decode basic machines in the full and proper CPU-Company form.
951 case $cpu-$vendor in
952 # Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
953 # some cases the only manufacturer, in others, it is the most popular.
954 craynv-unknown)
955 vendor=cray
956 os=${os:-unicosmp}
957 ;;
958 c90-unknown | c90-cray)
959 vendor=cray
960 os=${os:-unicos}
961 ;;
962 fx80-unknown)
963 vendor=alliant
964 ;;
965 romp-unknown)
966 vendor=ibm
967 ;;
968 mmix-unknown)
969 vendor=knuth
970 ;;
971 microblaze-unknown | microblazeel-unknown)
972 vendor=xilinx
973 ;;
974 rs6000-unknown)
975 vendor=ibm
976 ;;
977 vax-unknown)
978 vendor=dec
979 ;;
980 pdp11-unknown)
981 vendor=dec
982 ;;
983 we32k-unknown)
984 vendor=att
985 ;;
986 cydra-unknown)
987 vendor=cydrome
988 ;;
989 i370-ibm*)
990 vendor=ibm
991 ;;
992 orion-unknown)
993 vendor=highlevel
994 ;;
995 xps-unknown | xps100-unknown)
996 cpu=xps100
997 vendor=honeywell
998 ;;
999
1000 # Here we normalize CPU types with a missing or matching vendor
1001 dpx20-unknown | dpx20-bull)
1002 cpu=rs6000
1003 vendor=bull
1004 os=${os:-bosx}
1005 ;;
1006
1007 # Here we normalize CPU types irrespective of the vendor
4921008 amd64-*)
493 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
494 ;;
495 amdahl)
496 basic_machine=580-amdahl
497 os=-sysv
498 ;;
499 amiga | amiga-*)
500 basic_machine=m68k-unknown
501 ;;
502 amigaos | amigados)
503 basic_machine=m68k-unknown
504 os=-amigaos
505 ;;
506 amigaunix | amix)
507 basic_machine=m68k-unknown
508 os=-sysv4
509 ;;
510 apollo68)
511 basic_machine=m68k-apollo
512 os=-sysv
513 ;;
514 apollo68bsd)
515 basic_machine=m68k-apollo
516 os=-bsd
517 ;;
518 aros)
519 basic_machine=i386-pc
520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
525 aux)
526 basic_machine=m68k-apple
527 os=-aux
528 ;;
529 balance)
530 basic_machine=ns32k-sequent
531 os=-dynix
532 ;;
533 blackfin)
534 basic_machine=bfin-unknown
535 os=-linux
1009 cpu=x86_64
5361010 ;;
5371011 blackfin-*)
538 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
539 os=-linux
1012 cpu=bfin
1013 os=linux
1014 ;;
1015 c54x-*)
1016 cpu=tic54x
1017 ;;
1018 c55x-*)
1019 cpu=tic55x
1020 ;;
1021 c6x-*)
1022 cpu=tic6x
1023 ;;
1024 e500v[12]-*)
1025 cpu=powerpc
1026 os=$os"spe"
1027 ;;
1028 mips3*-*)
1029 cpu=mips64
1030 ;;
1031 ms1-*)
1032 cpu=mt
1033 ;;
1034 m68knommu-*)
1035 cpu=m68k
1036 os=linux
1037 ;;
1038 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1039 cpu=s12z
1040 ;;
1041 openrisc-*)
1042 cpu=or32
1043 ;;
1044 parisc-*)
1045 cpu=hppa
1046 os=linux
1047 ;;
1048 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1049 cpu=i586
1050 ;;
1051 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1052 cpu=i686
1053 ;;
1054 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1055 cpu=i686
1056 ;;
1057 pentium4-*)
1058 cpu=i786
1059 ;;
1060 pc98-*)
1061 cpu=i386
1062 ;;
1063 ppc-* | ppcbe-*)
1064 cpu=powerpc
1065 ;;
1066 ppcle-* | powerpclittle-*)
1067 cpu=powerpcle
1068 ;;
1069 ppc64-*)
1070 cpu=powerpc64
1071 ;;
1072 ppc64le-* | powerpc64little-*)
1073 cpu=powerpc64le
1074 ;;
1075 sb1-*)
1076 cpu=mipsisa64sb1
1077 ;;
1078 sb1el-*)
1079 cpu=mipsisa64sb1el
1080 ;;
1081 sh5e[lb]-*)
1082 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1083 ;;
1084 spur-*)
1085 cpu=spur
1086 ;;
1087 strongarm-* | thumb-*)
1088 cpu=arm
1089 ;;
1090 tx39-*)
1091 cpu=mipstx39
1092 ;;
1093 tx39el-*)
1094 cpu=mipstx39el
1095 ;;
1096 x64-*)
1097 cpu=x86_64
1098 ;;
1099 xscale-* | xscalee[bl]-*)
1100 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1101 ;;
1102
1103 # Recognize the cannonical CPU Types that limit and/or modify the
1104 # company names they are paired with.
1105 cr16-*)
1106 os=${os:-elf}
1107 ;;
1108 crisv32-* | etraxfs*-*)
1109 cpu=crisv32
1110 vendor=axis
1111 ;;
1112 cris-* | etrax*-*)
1113 cpu=cris
1114 vendor=axis
1115 ;;
1116 crx-*)
1117 os=${os:-elf}
1118 ;;
1119 neo-tandem)
1120 cpu=neo
1121 vendor=tandem
1122 ;;
1123 nse-tandem)
1124 cpu=nse
1125 vendor=tandem
1126 ;;
1127 nsr-tandem)
1128 cpu=nsr
1129 vendor=tandem
1130 ;;
1131 nsv-tandem)
1132 cpu=nsv
1133 vendor=tandem
1134 ;;
1135 nsx-tandem)
1136 cpu=nsx
1137 vendor=tandem
1138 ;;
1139 s390-*)
1140 cpu=s390
1141 vendor=ibm
1142 ;;
1143 s390x-*)
1144 cpu=s390x
1145 vendor=ibm
1146 ;;
1147 tile*-*)
1148 os=${os:-linux-gnu}
1149 ;;
1150
1151 *)
1152 # Recognize the cannonical CPU types that are allowed with any
1153 # company name.
1154 case $cpu in
1155 1750a | 580 \
1156 | a29k \
1157 | aarch64 | aarch64_be \
1158 | abacus \
1159 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1160 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1161 | alphapca5[67] | alpha64pca5[67] \
1162 | am33_2.0 \
1163 | arc | arceb \
1164 | arm | arm[lb]e | arme[lb] | armv* \
1165 | avr | avr32 \
1166 | asmjs \
1167 | ba \
1168 | be32 | be64 \
1169 | bfin | bs2000 \
1170 | c[123]* | c30 | [cjt]90 | c4x \
1171 | c8051 | clipper | craynv | csky | cydra \
1172 | d10v | d30v | dlx | dsp16xx \
1173 | e2k | elxsi | epiphany \
1174 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1175 | h8300 | h8500 \
1176 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1177 | hexagon \
1178 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1179 | ip2k | iq2000 \
1180 | k1om \
1181 | le32 | le64 \
1182 | lm32 \
1183 | m32c | m32r | m32rle \
1184 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
1185 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
1186 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1187 | microblaze | microblazeel \
1188 | mips | mipsbe | mipseb | mipsel | mipsle \
1189 | mips16 \
1190 | mips64 | mips64el \
1191 | mips64octeon | mips64octeonel \
1192 | mips64orion | mips64orionel \
1193 | mips64r5900 | mips64r5900el \
1194 | mips64vr | mips64vrel \
1195 | mips64vr4100 | mips64vr4100el \
1196 | mips64vr4300 | mips64vr4300el \
1197 | mips64vr5000 | mips64vr5000el \
1198 | mips64vr5900 | mips64vr5900el \
1199 | mipsisa32 | mipsisa32el \
1200 | mipsisa32r2 | mipsisa32r2el \
1201 | mipsisa32r6 | mipsisa32r6el \
1202 | mipsisa64 | mipsisa64el \
1203 | mipsisa64r2 | mipsisa64r2el \
1204 | mipsisa64r6 | mipsisa64r6el \
1205 | mipsisa64sb1 | mipsisa64sb1el \
1206 | mipsisa64sr71k | mipsisa64sr71kel \
1207 | mipsr5900 | mipsr5900el \
1208 | mipstx39 | mipstx39el \
1209 | mmix \
1210 | mn10200 | mn10300 \
1211 | moxie \
1212 | mt \
1213 | msp430 \
1214 | nds32 | nds32le | nds32be \
1215 | nfp \
1216 | nios | nios2 | nios2eb | nios2el \
1217 | none | np1 | ns16k | ns32k \
1218 | open8 \
1219 | or1k* \
1220 | or32 \
1221 | orion \
1222 | pdp10 | pdp11 | pj | pjl | pn | power \
1223 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1224 | pru \
1225 | pyramid \
1226 | riscv | riscv32 | riscv64 \
1227 | rl78 | romp | rs6000 | rx \
1228 | score \
1229 | sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1230 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1231 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1232 | sparclite \
1233 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1234 | spu \
1235 | tahoe \
1236 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1237 | tron \
1238 | ubicom32 \
1239 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1240 | vax \
1241 | visium \
1242 | wasm32 \
1243 | we32k \
1244 | x86 | x86_64 | xc16x | xgate | xps100 \
1245 | xstormy16 | xtensa* \
1246 | ymp \
1247 | z8k | z80)
1248 ;;
1249
1250 *)
1251 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1252 exit 1
1253 ;;
1254 esac
1255 ;;
1256 esac
1257
1258 # Here we canonicalize certain aliases for manufacturers.
1259 case $vendor in
1260 digital*)
1261 vendor=dec
1262 ;;
1263 commodore*)
1264 vendor=cbm
1265 ;;
1266 *)
1267 ;;
1268 esac
1269
1270 # Decode manufacturer-specific aliases for certain operating systems.
1271
1272 if [ x$os != x ]
1273 then
1274 case $os in
1275 # First match some system type aliases that might get confused
1276 # with valid system types.
1277 # solaris* is a basic system type, with this one exception.
1278 auroraux)
1279 os=auroraux
5401280 ;;
5411281 bluegene*)
542 basic_machine=powerpc-ibm
543 os=-cnk
544 ;;
545 c54x-*)
546 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
547 ;;
548 c55x-*)
549 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
550 ;;
551 c6x-*)
552 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
553 ;;
554 c90)
555 basic_machine=c90-cray
556 os=-unicos
557 ;;
558 cegcc)
559 basic_machine=arm-unknown
560 os=-cegcc
561 ;;
562 convex-c1)
563 basic_machine=c1-convex
564 os=-bsd
565 ;;
566 convex-c2)
567 basic_machine=c2-convex
568 os=-bsd
569 ;;
570 convex-c32)
571 basic_machine=c32-convex
572 os=-bsd
573 ;;
574 convex-c34)
575 basic_machine=c34-convex
576 os=-bsd
577 ;;
578 convex-c38)
579 basic_machine=c38-convex
580 os=-bsd
581 ;;
582 cray | j90)
583 basic_machine=j90-cray
584 os=-unicos
585 ;;
586 craynv)
587 basic_machine=craynv-cray
588 os=-unicosmp
589 ;;
590 cr16 | cr16-*)
591 basic_machine=cr16-unknown
592 os=-elf
593 ;;
594 crds | unos)
595 basic_machine=m68k-crds
596 ;;
597 crisv32 | crisv32-* | etraxfs*)
598 basic_machine=crisv32-axis
599 ;;
600 cris | cris-* | etrax*)
601 basic_machine=cris-axis
602 ;;
603 crx)
604 basic_machine=crx-unknown
605 os=-elf
606 ;;
607 da30 | da30-*)
608 basic_machine=m68k-da30
609 ;;
610 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
611 basic_machine=mips-dec
612 ;;
613 decsystem10* | dec10*)
614 basic_machine=pdp10-dec
615 os=-tops10
616 ;;
617 decsystem20* | dec20*)
618 basic_machine=pdp10-dec
619 os=-tops20
620 ;;
621 delta | 3300 | motorola-3300 | motorola-delta \
622 | 3300-motorola | delta-motorola)
623 basic_machine=m68k-motorola
624 ;;
625 delta88)
626 basic_machine=m88k-motorola
627 os=-sysv3
628 ;;
629 dicos)
630 basic_machine=i686-pc
631 os=-dicos
632 ;;
633 djgpp)
634 basic_machine=i586-pc
635 os=-msdosdjgpp
636 ;;
637 dpx20 | dpx20-*)
638 basic_machine=rs6000-bull
639 os=-bosx
640 ;;
641 dpx2* | dpx2*-bull)
642 basic_machine=m68k-bull
643 os=-sysv3
644 ;;
645 ebmon29k)
646 basic_machine=a29k-amd
647 os=-ebmon
648 ;;
649 elxsi)
650 basic_machine=elxsi-elxsi
651 os=-bsd
652 ;;
653 encore | umax | mmax)
654 basic_machine=ns32k-encore
655 ;;
656 es1800 | OSE68k | ose68k | ose | OSE)
657 basic_machine=m68k-ericsson
658 os=-ose
659 ;;
660 fx2800)
661 basic_machine=i860-alliant
662 ;;
663 genix)
664 basic_machine=ns32k-ns
665 ;;
666 gmicro)
667 basic_machine=tron-gmicro
668 os=-sysv
669 ;;
670 go32)
671 basic_machine=i386-pc
672 os=-go32
673 ;;
674 h3050r* | hiux*)
675 basic_machine=hppa1.1-hitachi
676 os=-hiuxwe2
677 ;;
678 h8300hms)
679 basic_machine=h8300-hitachi
680 os=-hms
681 ;;
682 h8300xray)
683 basic_machine=h8300-hitachi
684 os=-xray
685 ;;
686 h8500hms)
687 basic_machine=h8500-hitachi
688 os=-hms
689 ;;
690 harris)
691 basic_machine=m88k-harris
692 os=-sysv3
693 ;;
694 hp300-*)
695 basic_machine=m68k-hp
696 ;;
697 hp300bsd)
698 basic_machine=m68k-hp
699 os=-bsd
700 ;;
701 hp300hpux)
702 basic_machine=m68k-hp
703 os=-hpux
704 ;;
705 hp3k9[0-9][0-9] | hp9[0-9][0-9])
706 basic_machine=hppa1.0-hp
707 ;;
708 hp9k2[0-9][0-9] | hp9k31[0-9])
709 basic_machine=m68000-hp
710 ;;
711 hp9k3[2-9][0-9])
712 basic_machine=m68k-hp
713 ;;
714 hp9k6[0-9][0-9] | hp6[0-9][0-9])
715 basic_machine=hppa1.0-hp
716 ;;
717 hp9k7[0-79][0-9] | hp7[0-79][0-9])
718 basic_machine=hppa1.1-hp
719 ;;
720 hp9k78[0-9] | hp78[0-9])
721 # FIXME: really hppa2.0-hp
722 basic_machine=hppa1.1-hp
723 ;;
724 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
725 # FIXME: really hppa2.0-hp
726 basic_machine=hppa1.1-hp
727 ;;
728 hp9k8[0-9][13679] | hp8[0-9][13679])
729 basic_machine=hppa1.1-hp
730 ;;
731 hp9k8[0-9][0-9] | hp8[0-9][0-9])
732 basic_machine=hppa1.0-hp
733 ;;
734 hppa-next)
735 os=-nextstep3
736 ;;
737 hppaosf)
738 basic_machine=hppa1.1-hp
739 os=-osf
740 ;;
741 hppro)
742 basic_machine=hppa1.1-hp
743 os=-proelf
744 ;;
745 i370-ibm* | ibm*)
746 basic_machine=i370-ibm
747 ;;
748 i*86v32)
749 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
750 os=-sysv32
751 ;;
752 i*86v4*)
753 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
754 os=-sysv4
755 ;;
756 i*86v)
757 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
758 os=-sysv
759 ;;
760 i*86sol2)
761 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 os=-solaris2
763 ;;
764 i386mach)
765 basic_machine=i386-mach
766 os=-mach
767 ;;
768 i386-vsta | vsta)
769 basic_machine=i386-unknown
770 os=-vsta
771 ;;
772 iris | iris4d)
773 basic_machine=mips-sgi
774 case $os in
775 -irix*)
1282 os=cnk
1283 ;;
1284 solaris1 | solaris1.*)
1285 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1286 ;;
1287 solaris)
1288 os=solaris2
1289 ;;
1290 unixware*)
1291 os=sysv4.2uw
1292 ;;
1293 gnu/linux*)
1294 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1295 ;;
1296 # es1800 is here to avoid being matched by es* (a different OS)
1297 es1800*)
1298 os=ose
1299 ;;
1300 # Some version numbers need modification
1301 chorusos*)
1302 os=chorusos
1303 ;;
1304 isc)
1305 os=isc2.2
1306 ;;
1307 sco6)
1308 os=sco5v6
1309 ;;
1310 sco5)
1311 os=sco3.2v5
1312 ;;
1313 sco4)
1314 os=sco3.2v4
1315 ;;
1316 sco3.2.[4-9]*)
1317 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1318 ;;
1319 sco3.2v[4-9]* | sco5v6*)
1320 # Don't forget version if it is 3.2v4 or newer.
1321 ;;
1322 scout)
1323 # Don't match below
1324 ;;
1325 sco*)
1326 os=sco3.2v2
1327 ;;
1328 psos*)
1329 os=psos
1330 ;;
1331 # Now accept the basic system types.
1332 # The portable systems comes first.
1333 # Each alternative MUST end in a * to match a version number.
1334 # sysv* is not here because it comes later, after sysvr4.
1335 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1336 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
1337 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1338 | sym* | kopensolaris* | plan9* \
1339 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1340 | aos* | aros* | cloudabi* | sortix* \
1341 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1342 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1343 | knetbsd* | mirbsd* | netbsd* \
1344 | bitrig* | openbsd* | solidbsd* | libertybsd* \
1345 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1346 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1347 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1348 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1349 | chorusrdb* | cegcc* | glidix* \
1350 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1351 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1352 | linux-newlib* | linux-musl* | linux-uclibc* \
1353 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1354 | interix* | uwin* | mks* | rhapsody* | darwin* \
1355 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1356 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1357 | os2* | vos* | palmos* | uclinux* | nucleus* \
1358 | morphos* | superux* | rtmk* | windiss* \
1359 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1360 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1361 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1362 | midnightbsd*)
1363 # Remember, each alternative MUST END IN *, to match a version number.
1364 ;;
1365 qnx*)
1366 case $cpu in
1367 x86 | i*86)
7761368 ;;
7771369 *)
778 os=-irix4
1370 os=nto-$os
7791371 ;;
7801372 esac
7811373 ;;
782 isi68 | isi)
783 basic_machine=m68k-isi
784 os=-sysv
785 ;;
786 leon-*|leon[3-9]-*)
787 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
788 ;;
789 m68knommu)
790 basic_machine=m68k-unknown
791 os=-linux
792 ;;
793 m68knommu-*)
794 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
795 os=-linux
796 ;;
797 m88k-omron*)
798 basic_machine=m88k-omron
799 ;;
800 magnum | m3230)
801 basic_machine=mips-mips
802 os=-sysv
803 ;;
804 merlin)
805 basic_machine=ns32k-utek
806 os=-sysv
807 ;;
808 microblaze*)
809 basic_machine=microblaze-xilinx
810 ;;
811 mingw64)
812 basic_machine=x86_64-pc
813 os=-mingw64
814 ;;
815 mingw32)
816 basic_machine=i686-pc
817 os=-mingw32
818 ;;
819 mingw32ce)
820 basic_machine=arm-unknown
821 os=-mingw32ce
822 ;;
823 miniframe)
824 basic_machine=m68000-convergent
825 ;;
826 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
827 basic_machine=m68k-atari
828 os=-mint
829 ;;
830 mips3*-*)
831 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
832 ;;
833 mips3*)
834 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
835 ;;
836 monitor)
837 basic_machine=m68k-rom68k
838 os=-coff
839 ;;
840 morphos)
841 basic_machine=powerpc-unknown
842 os=-morphos
843 ;;
844 moxiebox)
845 basic_machine=moxie-unknown
846 os=-moxiebox
847 ;;
848 msdos)
849 basic_machine=i386-pc
850 os=-msdos
851 ;;
852 ms1-*)
853 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
854 ;;
855 msys)
856 basic_machine=i686-pc
857 os=-msys
858 ;;
859 mvs)
860 basic_machine=i370-ibm
861 os=-mvs
862 ;;
863 nacl)
864 basic_machine=le32-unknown
865 os=-nacl
866 ;;
867 ncr3000)
868 basic_machine=i486-ncr
869 os=-sysv4
870 ;;
871 netbsd386)
872 basic_machine=i386-unknown
873 os=-netbsd
874 ;;
875 netwinder)
876 basic_machine=armv4l-rebel
877 os=-linux
878 ;;
879 news | news700 | news800 | news900)
880 basic_machine=m68k-sony
881 os=-newsos
882 ;;
883 news1000)
884 basic_machine=m68030-sony
885 os=-newsos
886 ;;
887 news-3600 | risc-news)
888 basic_machine=mips-sony
889 os=-newsos
890 ;;
891 necv70)
892 basic_machine=v70-nec
893 os=-sysv
894 ;;
895 next | m*-next )
896 basic_machine=m68k-next
897 case $os in
898 -nextstep* )
899 ;;
900 -ns2*)
901 os=-nextstep2
1374 hiux*)
1375 os=hiuxwe2
1376 ;;
1377 nto-qnx*)
1378 ;;
1379 nto*)
1380 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1381 ;;
1382 sim | xray | os68k* | v88r* \
1383 | windows* | osx | abug | netware* | os9* \
1384 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1385 ;;
1386 linux-dietlibc)
1387 os=linux-dietlibc
1388 ;;
1389 linux*)
1390 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1391 ;;
1392 lynx*178)
1393 os=lynxos178
1394 ;;
1395 lynx*5)
1396 os=lynxos5
1397 ;;
1398 lynx*)
1399 os=lynxos
1400 ;;
1401 mac*)
1402 os=`echo "$os" | sed -e 's|mac|macos|'`
1403 ;;
1404 opened*)
1405 os=openedition
1406 ;;
1407 os400*)
1408 os=os400
1409 ;;
1410 sunos5*)
1411 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1412 ;;
1413 sunos6*)
1414 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1415 ;;
1416 wince*)
1417 os=wince
1418 ;;
1419 utek*)
1420 os=bsd
1421 ;;
1422 dynix*)
1423 os=bsd
1424 ;;
1425 acis*)
1426 os=aos
1427 ;;
1428 atheos*)
1429 os=atheos
1430 ;;
1431 syllable*)
1432 os=syllable
1433 ;;
1434 386bsd)
1435 os=bsd
1436 ;;
1437 ctix* | uts*)
1438 os=sysv
1439 ;;
1440 nova*)
1441 os=rtmk-nova
1442 ;;
1443 ns2)
1444 os=nextstep2
1445 ;;
1446 nsk*)
1447 os=nsk
1448 ;;
1449 # Preserve the version number of sinix5.
1450 sinix5.*)
1451 os=`echo $os | sed -e 's|sinix|sysv|'`
1452 ;;
1453 sinix*)
1454 os=sysv4
1455 ;;
1456 tpf*)
1457 os=tpf
1458 ;;
1459 triton*)
1460 os=sysv3
1461 ;;
1462 oss*)
1463 os=sysv3
1464 ;;
1465 svr4*)
1466 os=sysv4
1467 ;;
1468 svr3)
1469 os=sysv3
1470 ;;
1471 sysvr4)
1472 os=sysv4
1473 ;;
1474 # This must come after sysvr4.
1475 sysv*)
1476 ;;
1477 ose*)
1478 os=ose
1479 ;;
1480 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1481 os=mint
1482 ;;
1483 zvmoe)
1484 os=zvmoe
1485 ;;
1486 dicos*)
1487 os=dicos
1488 ;;
1489 pikeos*)
1490 # Until real need of OS specific support for
1491 # particular features comes up, bare metal
1492 # configurations are quite functional.
1493 case $cpu in
1494 arm*)
1495 os=eabi
9021496 ;;
9031497 *)
904 os=-nextstep3
1498 os=elf
9051499 ;;
9061500 esac
9071501 ;;
908 nh3000)
909 basic_machine=m68k-harris
910 os=-cxux
911 ;;
912 nh[45]000)
913 basic_machine=m88k-harris
914 os=-cxux
915 ;;
916 nindy960)
917 basic_machine=i960-intel
918 os=-nindy
919 ;;
920 mon960)
921 basic_machine=i960-intel
922 os=-mon960
923 ;;
924 nonstopux)
925 basic_machine=mips-compaq
926 os=-nonstopux
927 ;;
928 np1)
929 basic_machine=np1-gould
930 ;;
931 neo-tandem)
932 basic_machine=neo-tandem
933 ;;
934 nse-tandem)
935 basic_machine=nse-tandem
936 ;;
937 nsr-tandem)
938 basic_machine=nsr-tandem
939 ;;
940 op50n-* | op60c-*)
941 basic_machine=hppa1.1-oki
942 os=-proelf
943 ;;
944 openrisc | openrisc-*)
945 basic_machine=or32-unknown
946 ;;
947 os400)
948 basic_machine=powerpc-ibm
949 os=-os400
950 ;;
951 OSE68000 | ose68000)
952 basic_machine=m68000-ericsson
953 os=-ose
954 ;;
955 os68k)
956 basic_machine=m68k-none
957 os=-os68k
958 ;;
959 pa-hitachi)
960 basic_machine=hppa1.1-hitachi
961 os=-hiuxwe2
962 ;;
963 paragon)
964 basic_machine=i860-intel
965 os=-osf
966 ;;
967 parisc)
968 basic_machine=hppa-unknown
969 os=-linux
970 ;;
971 parisc-*)
972 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
973 os=-linux
974 ;;
975 pbd)
976 basic_machine=sparc-tti
977 ;;
978 pbb)
979 basic_machine=m68k-tti
980 ;;
981 pc532 | pc532-*)
982 basic_machine=ns32k-pc532
983 ;;
984 pc98)
985 basic_machine=i386-pc
986 ;;
987 pc98-*)
988 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
989 ;;
990 pentium | p5 | k5 | k6 | nexgen | viac3)
991 basic_machine=i586-pc
992 ;;
993 pentiumpro | p6 | 6x86 | athlon | athlon_*)
994 basic_machine=i686-pc
995 ;;
996 pentiumii | pentium2 | pentiumiii | pentium3)
997 basic_machine=i686-pc
998 ;;
999 pentium4)
1000 basic_machine=i786-pc
1001 ;;
1002 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1003 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1004 ;;
1005 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1006 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1007 ;;
1008 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1009 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1010 ;;
1011 pentium4-*)
1012 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1013 ;;
1014 pn)
1015 basic_machine=pn-gould
1016 ;;
1017 power) basic_machine=power-ibm
1018 ;;
1019 ppc | ppcbe) basic_machine=powerpc-unknown
1020 ;;
1021 ppc-* | ppcbe-*)
1022 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1023 ;;
1024 ppcle | powerpclittle | ppc-le | powerpc-little)
1025 basic_machine=powerpcle-unknown
1026 ;;
1027 ppcle-* | powerpclittle-*)
1028 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1029 ;;
1030 ppc64) basic_machine=powerpc64-unknown
1031 ;;
1032 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1033 ;;
1034 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1035 basic_machine=powerpc64le-unknown
1036 ;;
1037 ppc64le-* | powerpc64little-*)
1038 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1039 ;;
1040 ps2)
1041 basic_machine=i386-ibm
1042 ;;
1043 pw32)
1044 basic_machine=i586-unknown
1045 os=-pw32
1046 ;;
1047 rdos | rdos64)
1048 basic_machine=x86_64-pc
1049 os=-rdos
1050 ;;
1051 rdos32)
1052 basic_machine=i386-pc
1053 os=-rdos
1054 ;;
1055 rom68k)
1056 basic_machine=m68k-rom68k
1057 os=-coff
1058 ;;
1059 rm[46]00)
1060 basic_machine=mips-siemens
1061 ;;
1062 rtpc | rtpc-*)
1063 basic_machine=romp-ibm
1064 ;;
1065 s390 | s390-*)
1066 basic_machine=s390-ibm
1067 ;;
1068 s390x | s390x-*)
1069 basic_machine=s390x-ibm
1070 ;;
1071 sa29200)
1072 basic_machine=a29k-amd
1073 os=-udi
1074 ;;
1075 sb1)
1076 basic_machine=mipsisa64sb1-unknown
1077 ;;
1078 sb1el)
1079 basic_machine=mipsisa64sb1el-unknown
1080 ;;
1081 sde)
1082 basic_machine=mipsisa32-sde
1083 os=-elf
1084 ;;
1085 sei)
1086 basic_machine=mips-sei
1087 os=-seiux
1088 ;;
1089 sequent)
1090 basic_machine=i386-sequent
1091 ;;
1092 sh)
1093 basic_machine=sh-hitachi
1094 os=-hms
1095 ;;
1096 sh5el)
1097 basic_machine=sh5le-unknown
1098 ;;
1099 sh64)
1100 basic_machine=sh64-unknown
1101 ;;
1102 sparclite-wrs | simso-wrs)
1103 basic_machine=sparclite-wrs
1104 os=-vxworks
1105 ;;
1106 sps7)
1107 basic_machine=m68k-bull
1108 os=-sysv2
1109 ;;
1110 spur)
1111 basic_machine=spur-unknown
1112 ;;
1113 st2000)
1114 basic_machine=m68k-tandem
1115 ;;
1116 stratus)
1117 basic_machine=i860-stratus
1118 os=-sysv4
1119 ;;
1120 strongarm-* | thumb-*)
1121 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1122 ;;
1123 sun2)
1124 basic_machine=m68000-sun
1125 ;;
1126 sun2os3)
1127 basic_machine=m68000-sun
1128 os=-sunos3
1129 ;;
1130 sun2os4)
1131 basic_machine=m68000-sun
1132 os=-sunos4
1133 ;;
1134 sun3os3)
1135 basic_machine=m68k-sun
1136 os=-sunos3
1137 ;;
1138 sun3os4)
1139 basic_machine=m68k-sun
1140 os=-sunos4
1141 ;;
1142 sun4os3)
1143 basic_machine=sparc-sun
1144 os=-sunos3
1145 ;;
1146 sun4os4)
1147 basic_machine=sparc-sun
1148 os=-sunos4
1149 ;;
1150 sun4sol2)
1151 basic_machine=sparc-sun
1152 os=-solaris2
1153 ;;
1154 sun3 | sun3-*)
1155 basic_machine=m68k-sun
1156 ;;
1157 sun4)
1158 basic_machine=sparc-sun
1159 ;;
1160 sun386 | sun386i | roadrunner)
1161 basic_machine=i386-sun
1162 ;;
1163 sv1)
1164 basic_machine=sv1-cray
1165 os=-unicos
1166 ;;
1167 symmetry)
1168 basic_machine=i386-sequent
1169 os=-dynix
1170 ;;
1171 t3e)
1172 basic_machine=alphaev5-cray
1173 os=-unicos
1174 ;;
1175 t90)
1176 basic_machine=t90-cray
1177 os=-unicos
1178 ;;
1179 tile*)
1180 basic_machine=$basic_machine-unknown
1181 os=-linux-gnu
1182 ;;
1183 tx39)
1184 basic_machine=mipstx39-unknown
1185 ;;
1186 tx39el)
1187 basic_machine=mipstx39el-unknown
1188 ;;
1189 toad1)
1190 basic_machine=pdp10-xkl
1191 os=-tops20
1192 ;;
1193 tower | tower-32)
1194 basic_machine=m68k-ncr
1195 ;;
1196 tpf)
1197 basic_machine=s390x-ibm
1198 os=-tpf
1199 ;;
1200 udi29k)
1201 basic_machine=a29k-amd
1202 os=-udi
1203 ;;
1204 ultra3)
1205 basic_machine=a29k-nyu
1206 os=-sym1
1207 ;;
1208 v810 | necv810)
1209 basic_machine=v810-nec
1210 os=-none
1211 ;;
1212 vaxv)
1213 basic_machine=vax-dec
1214 os=-sysv
1215 ;;
1216 vms)
1217 basic_machine=vax-dec
1218 os=-vms
1219 ;;
1220 vpp*|vx|vx-*)
1221 basic_machine=f301-fujitsu
1222 ;;
1223 vxworks960)
1224 basic_machine=i960-wrs
1225 os=-vxworks
1226 ;;
1227 vxworks68)
1228 basic_machine=m68k-wrs
1229 os=-vxworks
1230 ;;
1231 vxworks29k)
1232 basic_machine=a29k-wrs
1233 os=-vxworks
1234 ;;
1235 w65*)
1236 basic_machine=w65-wdc
1237 os=-none
1238 ;;
1239 w89k-*)
1240 basic_machine=hppa1.1-winbond
1241 os=-proelf
1242 ;;
1243 xbox)
1244 basic_machine=i686-pc
1245 os=-mingw32
1246 ;;
1247 xps | xps100)
1248 basic_machine=xps100-honeywell
1249 ;;
1250 xscale-* | xscalee[bl]-*)
1251 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1252 ;;
1253 ymp)
1254 basic_machine=ymp-cray
1255 os=-unicos
1256 ;;
1257 z8k-*-coff)
1258 basic_machine=z8k-unknown
1259 os=-sim
1260 ;;
1261 z80-*-coff)
1262 basic_machine=z80-unknown
1263 os=-sim
1502 nacl*)
1503 ;;
1504 ios)
12641505 ;;
12651506 none)
1266 basic_machine=none-none
1267 os=-none
1268 ;;
1269
1270 # Here we handle the default manufacturer of certain CPU types. It is in
1271 # some cases the only manufacturer, in others, it is the most popular.
1272 w89k)
1273 basic_machine=hppa1.1-winbond
1274 ;;
1275 op50n)
1276 basic_machine=hppa1.1-oki
1277 ;;
1278 op60c)
1279 basic_machine=hppa1.1-oki
1280 ;;
1281 romp)
1282 basic_machine=romp-ibm
1283 ;;
1284 mmix)
1285 basic_machine=mmix-knuth
1286 ;;
1287 rs6000)
1288 basic_machine=rs6000-ibm
1289 ;;
1290 vax)
1291 basic_machine=vax-dec
1292 ;;
1293 pdp10)
1294 # there are many clones, so DEC is not a safe bet
1295 basic_machine=pdp10-unknown
1296 ;;
1297 pdp11)
1298 basic_machine=pdp11-dec
1299 ;;
1300 we32k)
1301 basic_machine=we32k-att
1302 ;;
1303 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1304 basic_machine=sh-unknown
1305 ;;
1306 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1307 basic_machine=sparc-sun
1308 ;;
1309 cydra)
1310 basic_machine=cydra-cydrome
1311 ;;
1312 orion)
1313 basic_machine=orion-highlevel
1314 ;;
1315 orion105)
1316 basic_machine=clipper-highlevel
1317 ;;
1318 mac | mpw | mac-mpw)
1319 basic_machine=m68k-apple
1320 ;;
1321 pmac | pmac-mpw)
1322 basic_machine=powerpc-apple
1323 ;;
1324 *-unknown)
1325 # Make sure to match an already-canonicalized machine name.
1507 ;;
1508 *-eabi)
13261509 ;;
13271510 *)
1328 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1329 exit 1
1330 ;;
1331 esac
1332
1333 # Here we canonicalize certain aliases for manufacturers.
1334 case $basic_machine in
1335 *-digital*)
1336 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1337 ;;
1338 *-commodore*)
1339 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1340 ;;
1341 *)
1342 ;;
1343 esac
1344
1345 # Decode manufacturer-specific aliases for certain operating systems.
1346
1347 if [ x"$os" != x"" ]
1348 then
1349 case $os in
1350 # First match some system type aliases
1351 # that might get confused with valid system types.
1352 # -solaris* is a basic system type, with this one exception.
1353 -auroraux)
1354 os=-auroraux
1355 ;;
1356 -solaris1 | -solaris1.*)
1357 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1358 ;;
1359 -solaris)
1360 os=-solaris2
1361 ;;
1362 -svr4*)
1363 os=-sysv4
1364 ;;
1365 -unixware*)
1366 os=-sysv4.2uw
1367 ;;
1368 -gnu/linux*)
1369 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1370 ;;
1371 # First accept the basic system types.
1372 # The portable systems comes first.
1373 # Each alternative MUST END IN A *, to match a version number.
1374 # -sysv* is not here because it comes later, after sysvr4.
1375 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1376 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1377 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1378 | -sym* | -kopensolaris* | -plan9* \
1379 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1380 | -aos* | -aros* | -cloudabi* | -sortix* \
1381 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1382 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1383 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1384 | -bitrig* | -openbsd* | -solidbsd* \
1385 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1386 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1387 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1388 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1389 | -chorusos* | -chorusrdb* | -cegcc* \
1390 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1391 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1392 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1393 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1394 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1395 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1396 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1397 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1398 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1399 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1400 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1401 | -onefs* | -tirtos*)
1402 # Remember, each alternative MUST END IN *, to match a version number.
1403 ;;
1404 -qnx*)
1405 case $basic_machine in
1406 x86-* | i*86-*)
1407 ;;
1408 *)
1409 os=-nto$os
1410 ;;
1411 esac
1412 ;;
1413 -nto-qnx*)
1414 ;;
1415 -nto*)
1416 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1417 ;;
1418 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1419 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1420 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1421 ;;
1422 -mac*)
1423 os=`echo $os | sed -e 's|mac|macos|'`
1424 ;;
1425 -linux-dietlibc)
1426 os=-linux-dietlibc
1427 ;;
1428 -linux*)
1429 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1430 ;;
1431 -sunos5*)
1432 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1433 ;;
1434 -sunos6*)
1435 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1436 ;;
1437 -opened*)
1438 os=-openedition
1439 ;;
1440 -os400*)
1441 os=-os400
1442 ;;
1443 -wince*)
1444 os=-wince
1445 ;;
1446 -osfrose*)
1447 os=-osfrose
1448 ;;
1449 -osf*)
1450 os=-osf
1451 ;;
1452 -utek*)
1453 os=-bsd
1454 ;;
1455 -dynix*)
1456 os=-bsd
1457 ;;
1458 -acis*)
1459 os=-aos
1460 ;;
1461 -atheos*)
1462 os=-atheos
1463 ;;
1464 -syllable*)
1465 os=-syllable
1466 ;;
1467 -386bsd)
1468 os=-bsd
1469 ;;
1470 -ctix* | -uts*)
1471 os=-sysv
1472 ;;
1473 -nova*)
1474 os=-rtmk-nova
1475 ;;
1476 -ns2 )
1477 os=-nextstep2
1478 ;;
1479 -nsk*)
1480 os=-nsk
1481 ;;
1482 # Preserve the version number of sinix5.
1483 -sinix5.*)
1484 os=`echo $os | sed -e 's|sinix|sysv|'`
1485 ;;
1486 -sinix*)
1487 os=-sysv4
1488 ;;
1489 -tpf*)
1490 os=-tpf
1491 ;;
1492 -triton*)
1493 os=-sysv3
1494 ;;
1495 -oss*)
1496 os=-sysv3
1497 ;;
1498 -svr4)
1499 os=-sysv4
1500 ;;
1501 -svr3)
1502 os=-sysv3
1503 ;;
1504 -sysvr4)
1505 os=-sysv4
1506 ;;
1507 # This must come after -sysvr4.
1508 -sysv*)
1509 ;;
1510 -ose*)
1511 os=-ose
1512 ;;
1513 -es1800*)
1514 os=-ose
1515 ;;
1516 -xenix)
1517 os=-xenix
1518 ;;
1519 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1520 os=-mint
1521 ;;
1522 -aros*)
1523 os=-aros
1524 ;;
1525 -zvmoe)
1526 os=-zvmoe
1527 ;;
1528 -dicos*)
1529 os=-dicos
1530 ;;
1531 -nacl*)
1532 ;;
1533 -none)
1534 ;;
1535 *)
1536 # Get rid of the `-' at the beginning of $os.
1537 os=`echo $os | sed 's/[^-]*-//'`
1538 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1511 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15391512 exit 1
15401513 ;;
15411514 esac
15511524 # will signal an error saying that MANUFACTURER isn't an operating
15521525 # system, and we'll never get to this point.
15531526
1554 case $basic_machine in
1527 case $cpu-$vendor in
15551528 score-*)
1556 os=-elf
1529 os=elf
15571530 ;;
15581531 spu-*)
1559 os=-elf
1532 os=elf
15601533 ;;
15611534 *-acorn)
1562 os=-riscix1.2
1535 os=riscix1.2
15631536 ;;
15641537 arm*-rebel)
1565 os=-linux
1538 os=linux
15661539 ;;
15671540 arm*-semi)
1568 os=-aout
1541 os=aout
15691542 ;;
15701543 c4x-* | tic4x-*)
1571 os=-coff
1544 os=coff
15721545 ;;
15731546 c8051-*)
1574 os=-elf
1547 os=elf
1548 ;;
1549 clipper-intergraph)
1550 os=clix
15751551 ;;
15761552 hexagon-*)
1577 os=-elf
1553 os=elf
15781554 ;;
15791555 tic54x-*)
1580 os=-coff
1556 os=coff
15811557 ;;
15821558 tic55x-*)
1583 os=-coff
1559 os=coff
15841560 ;;
15851561 tic6x-*)
1586 os=-coff
1562 os=coff
15871563 ;;
15881564 # This must come before the *-dec entry.
15891565 pdp10-*)
1590 os=-tops20
1566 os=tops20
15911567 ;;
15921568 pdp11-*)
1593 os=-none
1569 os=none
15941570 ;;
15951571 *-dec | vax-*)
1596 os=-ultrix4.2
1572 os=ultrix4.2
15971573 ;;
15981574 m68*-apollo)
1599 os=-domain
1575 os=domain
16001576 ;;
16011577 i386-sun)
1602 os=-sunos4.0.2
1578 os=sunos4.0.2
16031579 ;;
16041580 m68000-sun)
1605 os=-sunos3
1581 os=sunos3
16061582 ;;
16071583 m68*-cisco)
1608 os=-aout
1584 os=aout
16091585 ;;
16101586 mep-*)
1611 os=-elf
1587 os=elf
16121588 ;;
16131589 mips*-cisco)
1614 os=-elf
1590 os=elf
16151591 ;;
16161592 mips*-*)
1617 os=-elf
1593 os=elf
16181594 ;;
16191595 or32-*)
1620 os=-coff
1596 os=coff
16211597 ;;
16221598 *-tti) # must be before sparc entry or we get the wrong os.
1623 os=-sysv3
1599 os=sysv3
16241600 ;;
16251601 sparc-* | *-sun)
1626 os=-sunos4.1.1
1602 os=sunos4.1.1
1603 ;;
1604 pru-*)
1605 os=elf
16271606 ;;
16281607 *-be)
1629 os=-beos
1630 ;;
1631 *-haiku)
1632 os=-haiku
1608 os=beos
16331609 ;;
16341610 *-ibm)
1635 os=-aix
1611 os=aix
16361612 ;;
16371613 *-knuth)
1638 os=-mmixware
1614 os=mmixware
16391615 ;;
16401616 *-wec)
1641 os=-proelf
1617 os=proelf
16421618 ;;
16431619 *-winbond)
1644 os=-proelf
1620 os=proelf
16451621 ;;
16461622 *-oki)
1647 os=-proelf
1623 os=proelf
16481624 ;;
16491625 *-hp)
1650 os=-hpux
1626 os=hpux
16511627 ;;
16521628 *-hitachi)
1653 os=-hiux
1629 os=hiux
16541630 ;;
16551631 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1656 os=-sysv
1632 os=sysv
16571633 ;;
16581634 *-cbm)
1659 os=-amigaos
1635 os=amigaos
16601636 ;;
16611637 *-dg)
1662 os=-dgux
1638 os=dgux
16631639 ;;
16641640 *-dolphin)
1665 os=-sysv3
1641 os=sysv3
16661642 ;;
16671643 m68k-ccur)
1668 os=-rtu
1644 os=rtu
16691645 ;;
16701646 m88k-omron*)
1671 os=-luna
1672 ;;
1673 *-next )
1674 os=-nextstep
1647 os=luna
1648 ;;
1649 *-next)
1650 os=nextstep
16751651 ;;
16761652 *-sequent)
1677 os=-ptx
1653 os=ptx
16781654 ;;
16791655 *-crds)
1680 os=-unos
1656 os=unos
16811657 ;;
16821658 *-ns)
1683 os=-genix
1659 os=genix
16841660 ;;
16851661 i370-*)
1686 os=-mvs
1687 ;;
1688 *-next)
1689 os=-nextstep3
1662 os=mvs
16901663 ;;
16911664 *-gould)
1692 os=-sysv
1665 os=sysv
16931666 ;;
16941667 *-highlevel)
1695 os=-bsd
1668 os=bsd
16961669 ;;
16971670 *-encore)
1698 os=-bsd
1671 os=bsd
16991672 ;;
17001673 *-sgi)
1701 os=-irix
1674 os=irix
17021675 ;;
17031676 *-siemens)
1704 os=-sysv4
1677 os=sysv4
17051678 ;;
17061679 *-masscomp)
1707 os=-rtu
1680 os=rtu
17081681 ;;
17091682 f30[01]-fujitsu | f700-fujitsu)
1710 os=-uxpv
1683 os=uxpv
17111684 ;;
17121685 *-rom68k)
1713 os=-coff
1686 os=coff
17141687 ;;
17151688 *-*bug)
1716 os=-coff
1689 os=coff
17171690 ;;
17181691 *-apple)
1719 os=-macos
1692 os=macos
17201693 ;;
17211694 *-atari*)
1722 os=-mint
1695 os=mint
1696 ;;
1697 *-wrs)
1698 os=vxworks
17231699 ;;
17241700 *)
1725 os=-none
1701 os=none
17261702 ;;
17271703 esac
17281704 fi
17291705
17301706 # Here we handle the case where we know the os, and the CPU type, but not the
17311707 # manufacturer. We pick the logical manufacturer.
1732 vendor=unknown
1733 case $basic_machine in
1734 *-unknown)
1708 case $vendor in
1709 unknown)
17351710 case $os in
1736 -riscix*)
1711 riscix*)
17371712 vendor=acorn
17381713 ;;
1739 -sunos*)
1714 sunos*)
17401715 vendor=sun
17411716 ;;
1742 -cnk*|-aix*)
1717 cnk*|-aix*)
17431718 vendor=ibm
17441719 ;;
1745 -beos*)
1720 beos*)
17461721 vendor=be
17471722 ;;
1748 -hpux*)
1723 hpux*)
17491724 vendor=hp
17501725 ;;
1751 -mpeix*)
1726 mpeix*)
17521727 vendor=hp
17531728 ;;
1754 -hiux*)
1729 hiux*)
17551730 vendor=hitachi
17561731 ;;
1757 -unos*)
1732 unos*)
17581733 vendor=crds
17591734 ;;
1760 -dgux*)
1735 dgux*)
17611736 vendor=dg
17621737 ;;
1763 -luna*)
1738 luna*)
17641739 vendor=omron
17651740 ;;
1766 -genix*)
1741 genix*)
17671742 vendor=ns
17681743 ;;
1769 -mvs* | -opened*)
1744 clix*)
1745 vendor=intergraph
1746 ;;
1747 mvs* | opened*)
17701748 vendor=ibm
17711749 ;;
1772 -os400*)
1750 os400*)
17731751 vendor=ibm
17741752 ;;
1775 -ptx*)
1753 ptx*)
17761754 vendor=sequent
17771755 ;;
1778 -tpf*)
1756 tpf*)
17791757 vendor=ibm
17801758 ;;
1781 -vxsim* | -vxworks* | -windiss*)
1759 vxsim* | vxworks* | windiss*)
17821760 vendor=wrs
17831761 ;;
1784 -aux*)
1762 aux*)
17851763 vendor=apple
17861764 ;;
1787 -hms*)
1765 hms*)
17881766 vendor=hitachi
17891767 ;;
1790 -mpw* | -macos*)
1768 mpw* | macos*)
17911769 vendor=apple
17921770 ;;
1793 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1771 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
17941772 vendor=atari
17951773 ;;
1796 -vos*)
1774 vos*)
17971775 vendor=stratus
17981776 ;;
17991777 esac
1800 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
18011778 ;;
18021779 esac
18031780
1804 echo $basic_machine$os
1781 echo "$cpu-$vendor-$os"
18051782 exit
18061783
18071784 # Local variables:
1808 # eval: (add-hook 'write-file-hooks 'time-stamp)
1785 # eval: (add-hook 'before-save-hook 'time-stamp)
18091786 # time-stamp-start: "timestamp='"
18101787 # time-stamp-format: "%:y-%02m-%02d"
18111788 # time-stamp-end: "'"
+1565
-1173
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for virt-what 1.21.
2 # Generated by GNU Autoconf 2.71 for virt-what 1.24.
33 #
44 #
5 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
6 # Inc.
67 #
78 #
89 # This configure script is free software; the Free Software Foundation
1314
1415 # Be more Bourne compatible
1516 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 as_nop=:
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
1720 emulate sh
1821 NULLCMD=:
1922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2023 # is contrary to our usage. Disable this feature.
2124 alias -g '${1+"$@"}'='"$@"'
2225 setopt NO_GLOB_SUBST
23 else
26 else $as_nop
2427 case `(set -o) 2>/dev/null` in #(
2528 *posix*) :
2629 set -o posix ;; #(
3033 fi
3134
3235
36
37 # Reset variables that may have inherited troublesome values from
38 # the environment.
39
40 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41 # (If _AS_PATH_WALK were called with IFS unset, it would have the
42 # side effect of setting IFS to empty, thus disabling word splitting.)
43 # Quoting is to prevent editors from complaining about space-tab.
3344 as_nl='
3445 '
3546 export as_nl
36 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40 # Prefer a ksh shell builtin over an external printf program on Solaris,
41 # but without wasting forks for bash or zsh.
42 if test -z "$BASH_VERSION$ZSH_VERSION" \
43 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
44 as_echo='print -r --'
45 as_echo_n='print -rn --'
46 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in #(
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
47 IFS=" "" $as_nl"
48
49 PS1='$ '
50 PS2='> '
51 PS4='+ '
52
53 # Ensure predictable behavior from utilities with locale-dependent output.
54 LC_ALL=C
55 export LC_ALL
56 LANGUAGE=C
57 export LANGUAGE
58
59 # We cannot yet rely on "unset" to work, but we need these variables
60 # to be unset--not just set to an empty or harmless value--now, to
61 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
62 # also avoids known problems related to "unset" and subshell syntax
63 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65 do eval test \${$as_var+y} \
66 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67 done
68
69 # Ensure that fds 0, 1, and 2 are open.
70 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7073
7174 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
75 if ${PATH_SEPARATOR+false} :; then
7376 PATH_SEPARATOR=:
7477 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7780 }
7881 fi
7982
80
81 # IFS
82 # We need space, tab and new line, in precisely that order. Quoting is
83 # there to prevent editors from complaining about space-tab.
84 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
85 # splitting by setting IFS to empty value.)
86 IFS=" "" $as_nl"
8783
8884 # Find who we are. Look in the path if we contain no directory separator.
8985 as_myself=
9389 for as_dir in $PATH
9490 do
9591 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
92 case $as_dir in #(((
93 '') as_dir=./ ;;
94 */) ;;
95 *) as_dir=$as_dir/ ;;
96 esac
97 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9898 done
9999 IFS=$as_save_IFS
100100
106106 as_myself=$0
107107 fi
108108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
109 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110110 exit 1
111111 fi
112112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133113
134114 # Use a proper internal environment variable to ensure we don't fall
135115 # into an infinite loop, continuously re-executing ourselves.
151131 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152132 # Admittedly, this is quite paranoid, since all the known shells bail
153133 # out after a failed `exec'.
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
134 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135 exit 255
156136 fi
157137 # We don't want this to propagate to other subprocesses.
158138 { _as_can_reexec=; unset _as_can_reexec;}
159139 if test "x$CONFIG_SHELL" = x; then
160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 as_bourne_compatible="as_nop=:
141 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
161143 emulate sh
162144 NULLCMD=:
163145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164146 # is contrary to our usage. Disable this feature.
165147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
166148 setopt NO_GLOB_SUBST
167 else
149 else \$as_nop
168150 case \`(set -o) 2>/dev/null\` in #(
169151 *posix*) :
170152 set -o posix ;; #(
184166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189 else
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170 then :
171
172 else \$as_nop
190173 exitcode=1; echo positional parameters were not saved.
191174 fi
192175 test x\$exitcode = x0 || exit 1
176 blah=\$(echo \$(echo blah))
177 test x\"\$blah\" = xblah || exit 1
193178 test -x / || exit 1"
194179 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195180 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196181 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197182 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
198 if (eval "$as_required") 2>/dev/null; then :
183 if (eval "$as_required") 2>/dev/null
184 then :
199185 as_have_required=yes
200 else
186 else $as_nop
201187 as_have_required=no
202188 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
204
205 else
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
190 then :
191
192 else $as_nop
206193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207194 as_found=false
208195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
209196 do
210197 IFS=$as_save_IFS
211 test -z "$as_dir" && as_dir=.
198 case $as_dir in #(((
199 '') as_dir=./ ;;
200 */) ;;
201 *) as_dir=$as_dir/ ;;
202 esac
212203 as_found=:
213204 case $as_dir in #(
214205 /*)
215206 for as_base in sh bash ksh sh5; do
216207 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir/$as_base
208 as_shell=$as_dir$as_base
218209 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
211 then :
220212 CONFIG_SHELL=$as_shell as_have_required=yes
221 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
213 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
214 then :
222215 break 2
223216 fi
224217 fi
226219 esac
227220 as_found=false
228221 done
229 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
222 IFS=$as_save_IFS
223 if $as_found
224 then :
225
226 else $as_nop
227 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
228 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
229 then :
231230 CONFIG_SHELL=$SHELL as_have_required=yes
232 fi; }
233 IFS=$as_save_IFS
234
235
236 if test "x$CONFIG_SHELL" != x; then :
231 fi
232 fi
233
234
235 if test "x$CONFIG_SHELL" != x
236 then :
237237 export CONFIG_SHELL
238238 # We cannot yet assume a decent shell, so we have to provide a
239239 # neutralization value for shells without unset; and this also
251251 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
252252 # Admittedly, this is quite paranoid, since all the known shells bail
253253 # out after a failed `exec'.
254 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
254 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
255255 exit 255
256256 fi
257257
258 if test x$as_have_required = xno; then :
259 $as_echo "$0: This script requires a shell more modern than all"
260 $as_echo "$0: the shells that I found on your system."
261 if test x${ZSH_VERSION+set} = xset ; then
262 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
263 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
258 if test x$as_have_required = xno
259 then :
260 printf "%s\n" "$0: This script requires a shell more modern than all"
261 printf "%s\n" "$0: the shells that I found on your system."
262 if test ${ZSH_VERSION+y} ; then
263 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
264265 else
265 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
266 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
266267 $0: including any error possibly output before this
267268 $0: message. Then install a modern shell, or manually run
268269 $0: the script under such a shell if you do have one."
289290 }
290291 as_unset=as_fn_unset
291292
293
292294 # as_fn_set_status STATUS
293295 # -----------------------
294296 # Set $? to STATUS, without forking.
306308 as_fn_set_status $1
307309 exit $1
308310 } # as_fn_exit
311 # as_fn_nop
312 # ---------
313 # Do nothing but, unlike ":", preserve the value of $?.
314 as_fn_nop ()
315 {
316 return $?
317 }
318 as_nop=as_fn_nop
309319
310320 # as_fn_mkdir_p
311321 # -------------
320330 as_dirs=
321331 while :; do
322332 case $as_dir in #(
323 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
324334 *) as_qdir=$as_dir;;
325335 esac
326336 as_dirs="'$as_qdir' $as_dirs"
329339 X"$as_dir" : 'X\(//\)[^/]' \| \
330340 X"$as_dir" : 'X\(//\)$' \| \
331341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
332 $as_echo X"$as_dir" |
342 printf "%s\n" X"$as_dir" |
333343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
334344 s//\1/
335345 q
368378 # advantage of any shell optimizations that allow amortized linear growth over
369379 # repeated appends, instead of the typical quadratic growth present in naive
370380 # implementations.
371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
372383 eval 'as_fn_append ()
373384 {
374385 eval $1+=\$2
375386 }'
376 else
387 else $as_nop
377388 as_fn_append ()
378389 {
379390 eval $1=\$$1\$2
385396 # Perform arithmetic evaluation on the ARGs, and store the result in the
386397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
387398 # must be portable across $(()) and expr.
388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
400 then :
389401 eval 'as_fn_arith ()
390402 {
391403 as_val=$(( $* ))
392404 }'
393 else
405 else $as_nop
394406 as_fn_arith ()
395407 {
396408 as_val=`expr "$@" || test $? -eq 1`
397409 }
398410 fi # as_fn_arith
399411
412 # as_fn_nop
413 # ---------
414 # Do nothing but, unlike ":", preserve the value of $?.
415 as_fn_nop ()
416 {
417 return $?
418 }
419 as_nop=as_fn_nop
400420
401421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
402422 # ----------------------------------------
408428 as_status=$1; test $as_status -eq 0 && as_status=1
409429 if test "$4"; then
410430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
411 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
412432 fi
413 $as_echo "$as_me: error: $2" >&2
433 printf "%s\n" "$as_me: error: $2" >&2
414434 as_fn_exit $as_status
415435 } # as_fn_error
416436
437457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
438458 X"$0" : 'X\(//\)$' \| \
439459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
440 $as_echo X/"$0" |
460 printf "%s\n" X/"$0" |
441461 sed '/^.*\/\([^/][^/]*\)\/*$/{
442462 s//\1/
443463 q
481501 s/-\n.*//
482502 ' >$as_me.lineno &&
483503 chmod +x "$as_me.lineno" ||
484 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
504 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
485505
486506 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
487507 # already done that, so ensure we don't try to do so again and fall
495515 exit
496516 }
497517
518
519 # Determine whether it's possible to make 'echo' print without a newline.
520 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
521 # for compatibility with existing Makefiles.
498522 ECHO_C= ECHO_N= ECHO_T=
499523 case `echo -n x` in #(((((
500524 -n*)
507531 *)
508532 ECHO_N='-n';;
509533 esac
534
535 # For backward compatibility with old third-party macros, we provide
536 # the shell variables $as_echo and $as_echo_n. New code should use
537 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
538 as_echo='printf %s\n'
539 as_echo_n='printf %s'
540
510541
511542 rm -f conf$$ conf$$.exe conf$$.file
512543 if test -d conf$$.dir; then
575606 # Identity of this package.
576607 PACKAGE_NAME='virt-what'
577608 PACKAGE_TARNAME='virt-what'
578 PACKAGE_VERSION='1.21'
579 PACKAGE_STRING='virt-what 1.21'
609 PACKAGE_VERSION='1.24'
610 PACKAGE_STRING='virt-what 1.24'
580611 PACKAGE_BUGREPORT=''
581612 PACKAGE_URL=''
582613
619650 AM_DEFAULT_VERBOSITY
620651 AM_DEFAULT_V
621652 AM_V
653 CSCOPE
654 ETAGS
655 CTAGS
622656 am__untar
623657 am__tar
624658 AMTAR
661695 docdir
662696 oldincludedir
663697 includedir
698 runstatedir
664699 localstatedir
665700 sharedstatedir
666701 sysconfdir
734769 sysconfdir='${prefix}/etc'
735770 sharedstatedir='${prefix}/com'
736771 localstatedir='${prefix}/var'
772 runstatedir='${localstatedir}/run'
737773 includedir='${prefix}/include'
738774 oldincludedir='/usr/include'
739775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763799 *) ac_optarg=yes ;;
764800 esac
765801
766 # Accept the important Cygnus configure options, so we can diagnose typos.
767
768802 case $ac_dashdash$ac_option in
769803 --)
770804 ac_dashdash=yes ;;
805839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806840 # Reject names that are not valid shell variable names.
807841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808 as_fn_error $? "invalid feature name: $ac_useropt"
842 as_fn_error $? "invalid feature name: \`$ac_useropt'"
809843 ac_useropt_orig=$ac_useropt
810 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
811845 case $ac_user_opts in
812846 *"
813847 "enable_$ac_useropt"
831865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832866 # Reject names that are not valid shell variable names.
833867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834 as_fn_error $? "invalid feature name: $ac_useropt"
868 as_fn_error $? "invalid feature name: \`$ac_useropt'"
835869 ac_useropt_orig=$ac_useropt
836 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
837871 case $ac_user_opts in
838872 *"
839873 "enable_$ac_useropt"
9861020 | -silent | --silent | --silen | --sile | --sil)
9871021 silent=yes ;;
9881022
1023 -runstatedir | --runstatedir | --runstatedi | --runstated \
1024 | --runstate | --runstat | --runsta | --runst | --runs \
1025 | --run | --ru | --r)
1026 ac_prev=runstatedir ;;
1027 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1028 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1029 | --run=* | --ru=* | --r=*)
1030 runstatedir=$ac_optarg ;;
1031
9891032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
9901033 ac_prev=sbindir ;;
9911034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10351078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10361079 # Reject names that are not valid shell variable names.
10371080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid package name: $ac_useropt"
1081 as_fn_error $? "invalid package name: \`$ac_useropt'"
10391082 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
10411084 case $ac_user_opts in
10421085 *"
10431086 "with_$ac_useropt"
10511094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10521095 # Reject names that are not valid shell variable names.
10531096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid package name: $ac_useropt"
1097 as_fn_error $? "invalid package name: \`$ac_useropt'"
10551098 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
10571100 case $ac_user_opts in
10581101 *"
10591102 "with_$ac_useropt"
10971140
10981141 *)
10991142 # FIXME: should be removed in autoconf 3.0.
1100 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
11011144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
11031146 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11041147 ;;
11051148
11151158 case $enable_option_checking in
11161159 no) ;;
11171160 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1118 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1161 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11191162 esac
11201163 fi
11211164
11231166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
11241167 datadir sysconfdir sharedstatedir localstatedir includedir \
11251168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
1169 libdir localedir mandir runstatedir
11271170 do
11281171 eval ac_val=\$$ac_var
11291172 # Remove trailing slashes.
11791222 X"$as_myself" : 'X\(//\)[^/]' \| \
11801223 X"$as_myself" : 'X\(//\)$' \| \
11811224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1182 $as_echo X"$as_myself" |
1225 printf "%s\n" X"$as_myself" |
11831226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11841227 s//\1/
11851228 q
12361279 # Omit some internal or obsolete options to make the list less imposing.
12371280 # This message is too long to be a string in the A/UX 3.1 sh.
12381281 cat <<_ACEOF
1239 \`configure' configures virt-what 1.21 to adapt to many kinds of systems.
1282 \`configure' configures virt-what 1.24 to adapt to many kinds of systems.
12401283
12411284 Usage: $0 [OPTION]... [VAR=VALUE]...
12421285
12761319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
12771320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
12781321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
12791323 --libdir=DIR object code libraries [EPREFIX/lib]
12801324 --includedir=DIR C header files [PREFIX/include]
12811325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
13061350
13071351 if test -n "$ac_init_help"; then
13081352 case $ac_init_help in
1309 short | recursive ) echo "Configuration of virt-what 1.21:";;
1353 short | recursive ) echo "Configuration of virt-what 1.24:";;
13101354 esac
13111355 cat <<\_ACEOF
13121356
13501394 case "$ac_dir" in
13511395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13521396 *)
1353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1397 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13541398 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1399 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13561400 case $ac_top_builddir_sub in
13571401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13581402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13801424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13811425
13821426 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1427 # Check for configure.gnu first; this name is used for a wrapper for
1428 # Metaconfig's "Configure" on case-insensitive file systems.
13841429 if test -f "$ac_srcdir/configure.gnu"; then
13851430 echo &&
13861431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
13881433 echo &&
13891434 $SHELL "$ac_srcdir/configure" --help=recursive
13901435 else
1391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
13921437 fi || ac_status=$?
13931438 cd "$ac_pwd" || { ac_status=$?; break; }
13941439 done
13971442 test -n "$ac_init_help" && exit $ac_status
13981443 if $ac_init_version; then
13991444 cat <<\_ACEOF
1400 virt-what configure 1.21
1401 generated by GNU Autoconf 2.69
1402
1403 Copyright (C) 2012 Free Software Foundation, Inc.
1445 virt-what configure 1.24
1446 generated by GNU Autoconf 2.71
1447
1448 Copyright (C) 2021 Free Software Foundation, Inc.
14041449 This configure script is free software; the Free Software Foundation
14051450 gives unlimited permission to copy, distribute and modify it.
14061451 _ACEOF
14171462 ac_fn_c_try_compile ()
14181463 {
14191464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420 rm -f conftest.$ac_objext
1465 rm -f conftest.$ac_objext conftest.beam
14211466 if { { ac_try="$ac_compile"
14221467 case "(($ac_try" in
14231468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241469 *) ac_try_echo=$ac_try;;
14251470 esac
14261471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427 $as_echo "$ac_try_echo"; } >&5
1472 printf "%s\n" "$ac_try_echo"; } >&5
14281473 (eval "$ac_compile") 2>conftest.err
14291474 ac_status=$?
14301475 if test -s conftest.err; then
14321477 cat conftest.er1 >&5
14331478 mv -f conftest.er1 conftest.err
14341479 fi
1435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14361481 test $ac_status = 0; } && {
14371482 test -z "$ac_c_werror_flag" ||
14381483 test ! -s conftest.err
1439 } && test -s conftest.$ac_objext; then :
1484 } && test -s conftest.$ac_objext
1485 then :
14401486 ac_retval=0
1441 else
1442 $as_echo "$as_me: failed program was:" >&5
1487 else $as_nop
1488 printf "%s\n" "$as_me: failed program was:" >&5
14431489 sed 's/^/| /' conftest.$ac_ext >&5
14441490
14451491 ac_retval=1
14611507 *) ac_try_echo=$ac_try;;
14621508 esac
14631509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1510 printf "%s\n" "$ac_try_echo"; } >&5
14651511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
14661512 ac_status=$?
14671513 if test -s conftest.err; then
14691515 cat conftest.er1 >&5
14701516 mv -f conftest.er1 conftest.err
14711517 fi
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14731519 test $ac_status = 0; } > conftest.i && {
14741520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14751521 test ! -s conftest.err
1476 }; then :
1522 }
1523 then :
14771524 ac_retval=0
1478 else
1479 $as_echo "$as_me: failed program was:" >&5
1525 else $as_nop
1526 printf "%s\n" "$as_me: failed program was:" >&5
14801527 sed 's/^/| /' conftest.$ac_ext >&5
14811528
14821529 ac_retval=1
14851532 as_fn_set_status $ac_retval
14861533
14871534 } # ac_fn_c_try_cpp
1535 ac_configure_args_raw=
1536 for ac_arg
1537 do
1538 case $ac_arg in
1539 *\'*)
1540 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 esac
1542 as_fn_append ac_configure_args_raw " '$ac_arg'"
1543 done
1544
1545 case $ac_configure_args_raw in
1546 *$as_nl*)
1547 ac_safe_unquote= ;;
1548 *)
1549 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1550 ac_unsafe_a="$ac_unsafe_z#~"
1551 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1552 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1553 esac
1554
14881555 cat >config.log <<_ACEOF
14891556 This file contains any messages produced by compilers while
14901557 running configure, to aid debugging if configure makes a mistake.
14911558
1492 It was created by virt-what $as_me 1.21, which was
1493 generated by GNU Autoconf 2.69. Invocation command line was
1494
1495 $ $0 $@
1559 It was created by virt-what $as_me 1.24, which was
1560 generated by GNU Autoconf 2.71. Invocation command line was
1561
1562 $ $0$ac_configure_args_raw
14961563
14971564 _ACEOF
14981565 exec 5>>config.log
15251592 for as_dir in $PATH
15261593 do
15271594 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 $as_echo "PATH: $as_dir"
1595 case $as_dir in #(((
1596 '') as_dir=./ ;;
1597 */) ;;
1598 *) as_dir=$as_dir/ ;;
1599 esac
1600 printf "%s\n" "PATH: $as_dir"
15301601 done
15311602 IFS=$as_save_IFS
15321603
15611632 | -silent | --silent | --silen | --sile | --sil)
15621633 continue ;;
15631634 *\'*)
1564 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15651636 esac
15661637 case $ac_pass in
15671638 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
15961667 # WARNING: Use '\'' to represent an apostrophe within the trap.
15971668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
15981669 trap 'exit_status=$?
1670 # Sanitize IFS.
1671 IFS=" "" $as_nl"
15991672 # Save into config.log some information that might help in debugging.
16001673 {
16011674 echo
16021675
1603 $as_echo "## ---------------- ##
1676 printf "%s\n" "## ---------------- ##
16041677 ## Cache variables. ##
16051678 ## ---------------- ##"
16061679 echo
16111684 case $ac_val in #(
16121685 *${as_nl}*)
16131686 case $ac_var in #(
1614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1687 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1688 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16161689 esac
16171690 case $ac_var in #(
16181691 _ | IFS | as_nl) ;; #(
16361709 )
16371710 echo
16381711
1639 $as_echo "## ----------------- ##
1712 printf "%s\n" "## ----------------- ##
16401713 ## Output variables. ##
16411714 ## ----------------- ##"
16421715 echo
16441717 do
16451718 eval ac_val=\$$ac_var
16461719 case $ac_val in
1647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16481721 esac
1649 $as_echo "$ac_var='\''$ac_val'\''"
1722 printf "%s\n" "$ac_var='\''$ac_val'\''"
16501723 done | sort
16511724 echo
16521725
16531726 if test -n "$ac_subst_files"; then
1654 $as_echo "## ------------------- ##
1727 printf "%s\n" "## ------------------- ##
16551728 ## File substitutions. ##
16561729 ## ------------------- ##"
16571730 echo
16591732 do
16601733 eval ac_val=\$$ac_var
16611734 case $ac_val in
1662 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16631736 esac
1664 $as_echo "$ac_var='\''$ac_val'\''"
1737 printf "%s\n" "$ac_var='\''$ac_val'\''"
16651738 done | sort
16661739 echo
16671740 fi
16681741
16691742 if test -s confdefs.h; then
1670 $as_echo "## ----------- ##
1743 printf "%s\n" "## ----------- ##
16711744 ## confdefs.h. ##
16721745 ## ----------- ##"
16731746 echo
16751748 echo
16761749 fi
16771750 test "$ac_signal" != 0 &&
1678 $as_echo "$as_me: caught signal $ac_signal"
1679 $as_echo "$as_me: exit $exit_status"
1751 printf "%s\n" "$as_me: caught signal $ac_signal"
1752 printf "%s\n" "$as_me: exit $exit_status"
16801753 } >&5
16811754 rm -f core *.core core.conftest.* &&
16821755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
16901763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
16911764 rm -f -r conftest* confdefs.h
16921765
1693 $as_echo "/* confdefs.h */" > confdefs.h
1766 printf "%s\n" "/* confdefs.h */" > confdefs.h
16941767
16951768 # Predefined preprocessor variables.
16961769
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_NAME "$PACKAGE_NAME"
1699 _ACEOF
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1703 _ACEOF
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1707 _ACEOF
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1711 _ACEOF
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1715 _ACEOF
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_URL "$PACKAGE_URL"
1719 _ACEOF
1770 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1771
1772 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1773
1774 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1775
1776 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1777
1778 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1779
1780 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
17201781
17211782
17221783 # Let the site file select an alternate cache file if it wants to.
17231784 # Prefer an explicitly selected file to automatically selected ones.
1724 ac_site_file1=NONE
1725 ac_site_file2=NONE
17261785 if test -n "$CONFIG_SITE"; then
1727 # We do not want a PATH search for config.site.
1728 case $CONFIG_SITE in #((
1729 -*) ac_site_file1=./$CONFIG_SITE;;
1730 */*) ac_site_file1=$CONFIG_SITE;;
1731 *) ac_site_file1=./$CONFIG_SITE;;
1732 esac
1786 ac_site_files="$CONFIG_SITE"
17331787 elif test "x$prefix" != xNONE; then
1734 ac_site_file1=$prefix/share/config.site
1735 ac_site_file2=$prefix/etc/config.site
1788 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
17361789 else
1737 ac_site_file1=$ac_default_prefix/share/config.site
1738 ac_site_file2=$ac_default_prefix/etc/config.site
1739 fi
1740 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1790 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1791 fi
1792
1793 for ac_site_file in $ac_site_files
17411794 do
1742 test "x$ac_site_file" = xNONE && continue
1743 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1745 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1795 case $ac_site_file in #(
1796 */*) :
1797 ;; #(
1798 *) :
1799 ac_site_file=./$ac_site_file ;;
1800 esac
1801 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1803 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
17461804 sed 's/^/| /' "$ac_site_file" >&5
17471805 . "$ac_site_file" \
1748 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1806 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17501808 as_fn_error $? "failed to load site script $ac_site_file
17511809 See \`config.log' for more details" "$LINENO" 5; }
17521810 fi
17561814 # Some versions of bash will fail to source /dev/null (special files
17571815 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
17581816 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1760 $as_echo "$as_me: loading cache $cache_file" >&6;}
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1818 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
17611819 case $cache_file in
17621820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
17631821 *) . "./$cache_file";;
17641822 esac
17651823 fi
17661824 else
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1768 $as_echo "$as_me: creating cache $cache_file" >&6;}
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1826 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
17691827 >$cache_file
1828 fi
1829
1830 # Test code for whether the C compiler supports C89 (global declarations)
1831 ac_c_conftest_c89_globals='
1832 /* Does the compiler advertise C89 conformance?
1833 Do not test the value of __STDC__, because some compilers set it to 0
1834 while being otherwise adequately conformant. */
1835 #if !defined __STDC__
1836 # error "Compiler does not advertise C89 conformance"
1837 #endif
1838
1839 #include <stddef.h>
1840 #include <stdarg.h>
1841 struct stat;
1842 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1843 struct buf { int x; };
1844 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1845 static char *e (p, i)
1846 char **p;
1847 int i;
1848 {
1849 return p[i];
1850 }
1851 static char *f (char * (*g) (char **, int), char **p, ...)
1852 {
1853 char *s;
1854 va_list v;
1855 va_start (v,p);
1856 s = g (p, va_arg (v,int));
1857 va_end (v);
1858 return s;
1859 }
1860
1861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1862 function prototypes and stuff, but not \xHH hex character constants.
1863 These do not provoke an error unfortunately, instead are silently treated
1864 as an "x". The following induces an error, until -std is added to get
1865 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1866 array size at least. It is necessary to write \x00 == 0 to get something
1867 that is true only with -std. */
1868 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1869
1870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1871 inside strings and character constants. */
1872 #define FOO(x) '\''x'\''
1873 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1874
1875 int test (int i, double x);
1876 struct s1 {int (*f) (int a);};
1877 struct s2 {int (*f) (double a);};
1878 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1879 int, int);'
1880
1881 # Test code for whether the C compiler supports C89 (body of main).
1882 ac_c_conftest_c89_main='
1883 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1884 '
1885
1886 # Test code for whether the C compiler supports C99 (global declarations)
1887 ac_c_conftest_c99_globals='
1888 // Does the compiler advertise C99 conformance?
1889 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1890 # error "Compiler does not advertise C99 conformance"
1891 #endif
1892
1893 #include <stdbool.h>
1894 extern int puts (const char *);
1895 extern int printf (const char *, ...);
1896 extern int dprintf (int, const char *, ...);
1897 extern void *malloc (size_t);
1898
1899 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1900 // dprintf is used instead of fprintf to avoid needing to declare
1901 // FILE and stderr.
1902 #define debug(...) dprintf (2, __VA_ARGS__)
1903 #define showlist(...) puts (#__VA_ARGS__)
1904 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1905 static void
1906 test_varargs_macros (void)
1907 {
1908 int x = 1234;
1909 int y = 5678;
1910 debug ("Flag");
1911 debug ("X = %d\n", x);
1912 showlist (The first, second, and third items.);
1913 report (x>y, "x is %d but y is %d", x, y);
1914 }
1915
1916 // Check long long types.
1917 #define BIG64 18446744073709551615ull
1918 #define BIG32 4294967295ul
1919 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1920 #if !BIG_OK
1921 #error "your preprocessor is broken"
1922 #endif
1923 #if BIG_OK
1924 #else
1925 #error "your preprocessor is broken"
1926 #endif
1927 static long long int bignum = -9223372036854775807LL;
1928 static unsigned long long int ubignum = BIG64;
1929
1930 struct incomplete_array
1931 {
1932 int datasize;
1933 double data[];
1934 };
1935
1936 struct named_init {
1937 int number;
1938 const wchar_t *name;
1939 double average;
1940 };
1941
1942 typedef const char *ccp;
1943
1944 static inline int
1945 test_restrict (ccp restrict text)
1946 {
1947 // See if C++-style comments work.
1948 // Iterate through items via the restricted pointer.
1949 // Also check for declarations in for loops.
1950 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1951 continue;
1952 return 0;
1953 }
1954
1955 // Check varargs and va_copy.
1956 static bool
1957 test_varargs (const char *format, ...)
1958 {
1959 va_list args;
1960 va_start (args, format);
1961 va_list args_copy;
1962 va_copy (args_copy, args);
1963
1964 const char *str = "";
1965 int number = 0;
1966 float fnumber = 0;
1967
1968 while (*format)
1969 {
1970 switch (*format++)
1971 {
1972 case '\''s'\'': // string
1973 str = va_arg (args_copy, const char *);
1974 break;
1975 case '\''d'\'': // int
1976 number = va_arg (args_copy, int);
1977 break;
1978 case '\''f'\'': // float
1979 fnumber = va_arg (args_copy, double);
1980 break;
1981 default:
1982 break;
1983 }
1984 }
1985 va_end (args_copy);
1986 va_end (args);
1987
1988 return *str && number && fnumber;
1989 }
1990 '
1991
1992 # Test code for whether the C compiler supports C99 (body of main).
1993 ac_c_conftest_c99_main='
1994 // Check bool.
1995 _Bool success = false;
1996 success |= (argc != 0);
1997
1998 // Check restrict.
1999 if (test_restrict ("String literal") == 0)
2000 success = true;
2001 char *restrict newvar = "Another string";
2002
2003 // Check varargs.
2004 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2005 test_varargs_macros ();
2006
2007 // Check flexible array members.
2008 struct incomplete_array *ia =
2009 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2010 ia->datasize = 10;
2011 for (int i = 0; i < ia->datasize; ++i)
2012 ia->data[i] = i * 1.234;
2013
2014 // Check named initializers.
2015 struct named_init ni = {
2016 .number = 34,
2017 .name = L"Test wide string",
2018 .average = 543.34343,
2019 };
2020
2021 ni.number = 58;
2022
2023 int dynamic_array[ni.number];
2024 dynamic_array[0] = argv[0][0];
2025 dynamic_array[ni.number - 1] = 543;
2026
2027 // work around unused variable warnings
2028 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2029 || dynamic_array[ni.number - 1] != 543);
2030 '
2031
2032 # Test code for whether the C compiler supports C11 (global declarations)
2033 ac_c_conftest_c11_globals='
2034 // Does the compiler advertise C11 conformance?
2035 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2036 # error "Compiler does not advertise C11 conformance"
2037 #endif
2038
2039 // Check _Alignas.
2040 char _Alignas (double) aligned_as_double;
2041 char _Alignas (0) no_special_alignment;
2042 extern char aligned_as_int;
2043 char _Alignas (0) _Alignas (int) aligned_as_int;
2044
2045 // Check _Alignof.
2046 enum
2047 {
2048 int_alignment = _Alignof (int),
2049 int_array_alignment = _Alignof (int[100]),
2050 char_alignment = _Alignof (char)
2051 };
2052 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2053
2054 // Check _Noreturn.
2055 int _Noreturn does_not_return (void) { for (;;) continue; }
2056
2057 // Check _Static_assert.
2058 struct test_static_assert
2059 {
2060 int x;
2061 _Static_assert (sizeof (int) <= sizeof (long int),
2062 "_Static_assert does not work in struct");
2063 long int y;
2064 };
2065
2066 // Check UTF-8 literals.
2067 #define u8 syntax error!
2068 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2069
2070 // Check duplicate typedefs.
2071 typedef long *long_ptr;
2072 typedef long int *long_ptr;
2073 typedef long_ptr long_ptr;
2074
2075 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2076 struct anonymous
2077 {
2078 union {
2079 struct { int i; int j; };
2080 struct { int k; long int l; } w;
2081 };
2082 int m;
2083 } v1;
2084 '
2085
2086 # Test code for whether the C compiler supports C11 (body of main).
2087 ac_c_conftest_c11_main='
2088 _Static_assert ((offsetof (struct anonymous, i)
2089 == offsetof (struct anonymous, w.k)),
2090 "Anonymous union alignment botch");
2091 v1.i = 2;
2092 v1.w.k = 5;
2093 ok |= v1.i != 5;
2094 '
2095
2096 # Test code for whether the C compiler supports C11 (complete).
2097 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2098 ${ac_c_conftest_c99_globals}
2099 ${ac_c_conftest_c11_globals}
2100
2101 int
2102 main (int argc, char **argv)
2103 {
2104 int ok = 0;
2105 ${ac_c_conftest_c89_main}
2106 ${ac_c_conftest_c99_main}
2107 ${ac_c_conftest_c11_main}
2108 return ok;
2109 }
2110 "
2111
2112 # Test code for whether the C compiler supports C99 (complete).
2113 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2114 ${ac_c_conftest_c99_globals}
2115
2116 int
2117 main (int argc, char **argv)
2118 {
2119 int ok = 0;
2120 ${ac_c_conftest_c89_main}
2121 ${ac_c_conftest_c99_main}
2122 return ok;
2123 }
2124 "
2125
2126 # Test code for whether the C compiler supports C89 (complete).
2127 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2128
2129 int
2130 main (int argc, char **argv)
2131 {
2132 int ok = 0;
2133 ${ac_c_conftest_c89_main}
2134 return ok;
2135 }
2136 "
2137
2138
2139 # Auxiliary files required by this configure script.
2140 ac_aux_files="config.guess config.sub compile missing install-sh"
2141
2142 # Locations in which to look for auxiliary files.
2143 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2144
2145 # Search for a directory containing all of the required auxiliary files,
2146 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2147 # If we don't find one directory that contains all the files we need,
2148 # we report the set of missing files from the *first* directory in
2149 # $ac_aux_dir_candidates and give up.
2150 ac_missing_aux_files=""
2151 ac_first_candidate=:
2152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 as_found=false
2155 for as_dir in $ac_aux_dir_candidates
2156 do
2157 IFS=$as_save_IFS
2158 case $as_dir in #(((
2159 '') as_dir=./ ;;
2160 */) ;;
2161 *) as_dir=$as_dir/ ;;
2162 esac
2163 as_found=:
2164
2165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2166 ac_aux_dir_found=yes
2167 ac_install_sh=
2168 for ac_aux in $ac_aux_files
2169 do
2170 # As a special case, if "install-sh" is required, that requirement
2171 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2172 # and $ac_install_sh is set appropriately for whichever one is found.
2173 if test x"$ac_aux" = x"install-sh"
2174 then
2175 if test -f "${as_dir}install-sh"; then
2176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2177 ac_install_sh="${as_dir}install-sh -c"
2178 elif test -f "${as_dir}install.sh"; then
2179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2180 ac_install_sh="${as_dir}install.sh -c"
2181 elif test -f "${as_dir}shtool"; then
2182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2183 ac_install_sh="${as_dir}shtool install -c"
2184 else
2185 ac_aux_dir_found=no
2186 if $ac_first_candidate; then
2187 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2188 else
2189 break
2190 fi
2191 fi
2192 else
2193 if test -f "${as_dir}${ac_aux}"; then
2194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2195 else
2196 ac_aux_dir_found=no
2197 if $ac_first_candidate; then
2198 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2199 else
2200 break
2201 fi
2202 fi
2203 fi
2204 done
2205 if test "$ac_aux_dir_found" = yes; then
2206 ac_aux_dir="$as_dir"
2207 break
2208 fi
2209 ac_first_candidate=false
2210
2211 as_found=false
2212 done
2213 IFS=$as_save_IFS
2214 if $as_found
2215 then :
2216
2217 else $as_nop
2218 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2219 fi
2220
2221
2222 # These three variables are undocumented and unsupported,
2223 # and are intended to be withdrawn in a future Autoconf release.
2224 # They can cause serious problems if a builder's source tree is in a directory
2225 # whose full name contains unusual characters.
2226 if test -f "${ac_aux_dir}config.guess"; then
2227 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2228 fi
2229 if test -f "${ac_aux_dir}config.sub"; then
2230 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2231 fi
2232 if test -f "$ac_aux_dir/configure"; then
2233 ac_configure="$SHELL ${ac_aux_dir}configure"
17702234 fi
17712235
17722236 # Check that the precious variables saved in the cache have kept the same
17792243 eval ac_new_val=\$ac_env_${ac_var}_value
17802244 case $ac_old_set,$ac_new_set in
17812245 set,)
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1783 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
17842248 ac_cache_corrupted=: ;;
17852249 ,set)
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1787 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
17882252 ac_cache_corrupted=: ;;
17892253 ,);;
17902254 *)
17932257 ac_old_val_w=`echo x $ac_old_val`
17942258 ac_new_val_w=`echo x $ac_new_val`
17952259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1797 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
17982262 ac_cache_corrupted=:
17992263 else
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1801 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
18022266 eval $ac_var=\$ac_old_val
18032267 fi
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1805 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1807 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
18082272 fi;;
18092273 esac
18102274 # Pass precious variables to config.status.
18112275 if test "$ac_new_set" = set; then
18122276 case $ac_new_val in
1813 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18142278 *) ac_arg=$ac_var=$ac_new_val ;;
18152279 esac
18162280 case " $ac_configure_args " in
18202284 fi
18212285 done
18222286 if $ac_cache_corrupted; then
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1826 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1827 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2292 and start over" "$LINENO" 5
18282293 fi
18292294 ## -------------------- ##
18302295 ## Main body of script. ##
18392304
18402305 am__api_version='1.16'
18412306
1842 ac_aux_dir=
1843 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1844 if test -f "$ac_dir/install-sh"; then
1845 ac_aux_dir=$ac_dir
1846 ac_install_sh="$ac_aux_dir/install-sh -c"
1847 break
1848 elif test -f "$ac_dir/install.sh"; then
1849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/install.sh -c"
1851 break
1852 elif test -f "$ac_dir/shtool"; then
1853 ac_aux_dir=$ac_dir
1854 ac_install_sh="$ac_aux_dir/shtool install -c"
1855 break
1856 fi
1857 done
1858 if test -z "$ac_aux_dir"; then
1859 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1860 fi
1861
1862 # These three variables are undocumented and unsupported,
1863 # and are intended to be withdrawn in a future Autoconf release.
1864 # They can cause serious problems if a builder's source tree is in a directory
1865 # whose full name contains unusual characters.
1866 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1867 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1868 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1869
1870
1871 # Find a good install program. We prefer a C program (faster),
2307
2308
2309 # Find a good install program. We prefer a C program (faster),
18722310 # so one script is as good as another. But avoid the broken or
18732311 # incompatible versions:
18742312 # SysV /etc/install, /usr/sbin/install
18822320 # OS/2's system install, which has a completely different semantic
18832321 # ./install, which can be erroneously created by make from ./install.sh.
18842322 # Reject install programs that cannot install multiple files.
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1886 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2324 printf %s "checking for a BSD-compatible install... " >&6; }
18872325 if test -z "$INSTALL"; then
1888 if ${ac_cv_path_install+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
2326 if test ${ac_cv_path_install+y}
2327 then :
2328 printf %s "(cached) " >&6
2329 else $as_nop
18912330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18922331 for as_dir in $PATH
18932332 do
18942333 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 # Account for people who put trailing slashes in PATH elements.
1897 case $as_dir/ in #((
1898 ./ | .// | /[cC]/* | \
2334 case $as_dir in #(((
2335 '') as_dir=./ ;;
2336 */) ;;
2337 *) as_dir=$as_dir/ ;;
2338 esac
2339 # Account for fact that we put trailing slashes in our PATH walk.
2340 case $as_dir in #((
2341 ./ | /[cC]/* | \
18992342 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19002343 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19012344 /usr/ucb/* ) ;;
19052348 # by default.
19062349 for ac_prog in ginstall scoinst install; do
19072350 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2351 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
19092352 if test $ac_prog = install &&
1910 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2353 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19112354 # AIX install. It has an incompatible calling convention.
19122355 :
19132356 elif test $ac_prog = install &&
1914 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2357 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19152358 # program-specific install script used by HP pwplus--don't use.
19162359 :
19172360 else
19192362 echo one > conftest.one
19202363 echo two > conftest.two
19212364 mkdir conftest.dir
1922 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2365 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
19232366 test -s conftest.one && test -s conftest.two &&
19242367 test -s conftest.dir/conftest.one &&
19252368 test -s conftest.dir/conftest.two
19262369 then
1927 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2370 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
19282371 break 3
19292372 fi
19302373 fi
19402383 rm -rf conftest.one conftest.two conftest.dir
19412384
19422385 fi
1943 if test "${ac_cv_path_install+set}" = set; then
2386 if test ${ac_cv_path_install+y}; then
19442387 INSTALL=$ac_cv_path_install
19452388 else
19462389 # As a last resort, use the slow shell script. Don't cache a
19502393 INSTALL=$ac_install_sh
19512394 fi
19522395 fi
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1954 $as_echo "$INSTALL" >&6; }
2396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2397 printf "%s\n" "$INSTALL" >&6; }
19552398
19562399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19572400 # It thinks the first close brace ends the variable substitution.
19612404
19622405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19632406
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1965 $as_echo_n "checking whether build environment is sane... " >&6; }
2407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2408 printf %s "checking whether build environment is sane... " >&6; }
19662409 # Reject unsafe characters in $srcdir or the absolute working directory
19672410 # name. Accept space and tab only in the latter.
19682411 am_lf='
20162459 as_fn_error $? "newly created file is older than distributed files!
20172460 Check your system clock" "$LINENO" 5
20182461 fi
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2020 $as_echo "yes" >&6; }
2462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2463 printf "%s\n" "yes" >&6; }
20212464 # If we didn't sleep, we still need to ensure time stamps of config.status and
20222465 # generated files are strictly newer.
20232466 am_sleep_pid=
20362479 # Double any \ or $.
20372480 # By default was `s,x,x', remove it if useless.
20382481 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2039 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2482 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2483
20402484
20412485 # Expand $ac_aux_dir to an absolute path.
20422486 am_aux_dir=`cd "$ac_aux_dir" && pwd`
20432487
2044 if test x"${MISSING+set}" != xset; then
2045 case $am_aux_dir in
2046 *\ * | *\ *)
2047 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2048 *)
2049 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2050 esac
2488
2489 if test x"${MISSING+set}" != xset; then
2490 MISSING="\${SHELL} '$am_aux_dir/missing'"
20512491 fi
20522492 # Use eval to expand $SHELL
20532493 if eval "$MISSING --is-lightweight"; then
20542494 am_missing_run="$MISSING "
20552495 else
20562496 am_missing_run=
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2058 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2498 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
20592499 fi
20602500
20612501 if test x"${install_sh+set}" != xset; then
20752515 if test -n "$ac_tool_prefix"; then
20762516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20772517 set dummy ${ac_tool_prefix}strip; ac_word=$2
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2079 $as_echo_n "checking for $ac_word... " >&6; }
2080 if ${ac_cv_prog_STRIP+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 printf %s "checking for $ac_word... " >&6; }
2520 if test ${ac_cv_prog_STRIP+y}
2521 then :
2522 printf %s "(cached) " >&6
2523 else $as_nop
20832524 if test -n "$STRIP"; then
20842525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20852526 else
20872528 for as_dir in $PATH
20882529 do
20892530 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2531 case $as_dir in #(((
2532 '') as_dir=./ ;;
2533 */) ;;
2534 *) as_dir=$as_dir/ ;;
2535 esac
20912536 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20932538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20952540 break 2
20962541 fi
20972542 done
21022547 fi
21032548 STRIP=$ac_cv_prog_STRIP
21042549 if test -n "$STRIP"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2106 $as_echo "$STRIP" >&6; }
2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551 printf "%s\n" "$STRIP" >&6; }
21072552 else
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2109 $as_echo "no" >&6; }
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 printf "%s\n" "no" >&6; }
21102555 fi
21112556
21122557
21152560 ac_ct_STRIP=$STRIP
21162561 # Extract the first word of "strip", so it can be a program name with args.
21172562 set dummy strip; ac_word=$2
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2119 $as_echo_n "checking for $ac_word... " >&6; }
2120 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 printf %s "checking for $ac_word... " >&6; }
2565 if test ${ac_cv_prog_ac_ct_STRIP+y}
2566 then :
2567 printf %s "(cached) " >&6
2568 else $as_nop
21232569 if test -n "$ac_ct_STRIP"; then
21242570 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
21252571 else
21272573 for as_dir in $PATH
21282574 do
21292575 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2576 case $as_dir in #(((
2577 '') as_dir=./ ;;
2578 */) ;;
2579 *) as_dir=$as_dir/ ;;
2580 esac
21312581 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21332583 ac_cv_prog_ac_ct_STRIP="strip"
2134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21352585 break 2
21362586 fi
21372587 done
21422592 fi
21432593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
21442594 if test -n "$ac_ct_STRIP"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2146 $as_echo "$ac_ct_STRIP" >&6; }
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596 printf "%s\n" "$ac_ct_STRIP" >&6; }
21472597 else
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2149 $as_echo "no" >&6; }
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 printf "%s\n" "no" >&6; }
21502600 fi
21512601
21522602 if test "x$ac_ct_STRIP" = x; then
21542604 else
21552605 case $cross_compiling:$ac_tool_warned in
21562606 yes:)
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21592609 ac_tool_warned=yes ;;
21602610 esac
21612611 STRIP=$ac_ct_STRIP
21672617 fi
21682618 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
21692619
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2171 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2620
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2622 printf %s "checking for a race-free mkdir -p... " >&6; }
21722623 if test -z "$MKDIR_P"; then
2173 if ${ac_cv_path_mkdir+:} false; then :
2174 $as_echo_n "(cached) " >&6
2175 else
2624 if test ${ac_cv_path_mkdir+y}
2625 then :
2626 printf %s "(cached) " >&6
2627 else $as_nop
21762628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21772629 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
21782630 do
21792631 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2632 case $as_dir in #(((
2633 '') as_dir=./ ;;
2634 */) ;;
2635 *) as_dir=$as_dir/ ;;
2636 esac
21812637 for ac_prog in mkdir gmkdir; do
21822638 for ac_exec_ext in '' $ac_executable_extensions; do
2183 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2184 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2185 'mkdir (GNU coreutils) '* | \
2186 'mkdir (coreutils) '* | \
2639 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2640 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2641 'mkdir ('*'coreutils) '* | \
2642 'BusyBox '* | \
21872643 'mkdir (fileutils) '4.1*)
2188 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2644 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
21892645 break 3;;
21902646 esac
21912647 done
21962652 fi
21972653
21982654 test -d ./--version && rmdir ./--version
2199 if test "${ac_cv_path_mkdir+set}" = set; then
2655 if test ${ac_cv_path_mkdir+y}; then
22002656 MKDIR_P="$ac_cv_path_mkdir -p"
22012657 else
22022658 # As a last resort, use the slow shell script. Don't cache a
22062662 MKDIR_P="$ac_install_sh -d"
22072663 fi
22082664 fi
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2210 $as_echo "$MKDIR_P" >&6; }
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2666 printf "%s\n" "$MKDIR_P" >&6; }
22112667
22122668 for ac_prog in gawk mawk nawk awk
22132669 do
22142670 # Extract the first word of "$ac_prog", so it can be a program name with args.
22152671 set dummy $ac_prog; ac_word=$2
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2217 $as_echo_n "checking for $ac_word... " >&6; }
2218 if ${ac_cv_prog_AWK+:} false; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 printf %s "checking for $ac_word... " >&6; }
2674 if test ${ac_cv_prog_AWK+y}
2675 then :
2676 printf %s "(cached) " >&6
2677 else $as_nop
22212678 if test -n "$AWK"; then
22222679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
22232680 else
22252682 for as_dir in $PATH
22262683 do
22272684 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2685 case $as_dir in #(((
2686 '') as_dir=./ ;;
2687 */) ;;
2688 *) as_dir=$as_dir/ ;;
2689 esac
22292690 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22312692 ac_cv_prog_AWK="$ac_prog"
2232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22332694 break 2
22342695 fi
22352696 done
22402701 fi
22412702 AWK=$ac_cv_prog_AWK
22422703 if test -n "$AWK"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2244 $as_echo "$AWK" >&6; }
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2705 printf "%s\n" "$AWK" >&6; }
22452706 else
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2247 $as_echo "no" >&6; }
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 printf "%s\n" "no" >&6; }
22482709 fi
22492710
22502711
22512712 test -n "$AWK" && break
22522713 done
22532714
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
22562717 set x ${MAKE-make}
2257 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2258 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2718 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2719 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2720 then :
2721 printf %s "(cached) " >&6
2722 else $as_nop
22612723 cat >conftest.make <<\_ACEOF
22622724 SHELL = /bin/sh
22632725 all:
22732735 rm -f conftest.make
22742736 fi
22752737 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2277 $as_echo "yes" >&6; }
2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 printf "%s\n" "yes" >&6; }
22782740 SET_MAKE=
22792741 else
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2281 $as_echo "no" >&6; }
2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 printf "%s\n" "no" >&6; }
22822744 SET_MAKE="MAKE=${MAKE-make}"
22832745 fi
22842746
22922754 rmdir .tst 2>/dev/null
22932755
22942756 # Check whether --enable-silent-rules was given.
2295 if test "${enable_silent_rules+set}" = set; then :
2757 if test ${enable_silent_rules+y}
2758 then :
22962759 enableval=$enable_silent_rules;
22972760 fi
22982761
23022765 *) AM_DEFAULT_VERBOSITY=1;;
23032766 esac
23042767 am_make=${MAKE-make}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2306 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2307 if ${am_cv_make_support_nested_variables+:} false; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 if $as_echo 'TRUE=$(BAR$(V))
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2769 printf %s "checking whether $am_make supports nested variables... " >&6; }
2770 if test ${am_cv_make_support_nested_variables+y}
2771 then :
2772 printf %s "(cached) " >&6
2773 else $as_nop
2774 if printf "%s\n" 'TRUE=$(BAR$(V))
23112775 BAR0=false
23122776 BAR1=true
23132777 V=1
23192783 am_cv_make_support_nested_variables=no
23202784 fi
23212785 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2323 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2787 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
23242788 if test $am_cv_make_support_nested_variables = yes; then
23252789 AM_V='$(V)'
23262790 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
23522816
23532817 # Define the identity of the package.
23542818 PACKAGE='virt-what'
2355 VERSION='1.21'
2356
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE "$PACKAGE"
2360 _ACEOF
2361
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define VERSION "$VERSION"
2365 _ACEOF
2819 VERSION='1.24'
2820
2821
2822 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
2823
2824
2825 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
23662826
23672827 # Some tools Automake needs.
23682828
24002860
24012861
24022862
2863
2864
2865 # Variables for tags utilities; see am/tags.am
2866 if test -z "$CTAGS"; then
2867 CTAGS=ctags
2868 fi
2869
2870 if test -z "$ETAGS"; then
2871 ETAGS=etags
2872 fi
2873
2874 if test -z "$CSCOPE"; then
2875 CSCOPE=cscope
2876 fi
24032877
24042878
24052879
24462920 fi
24472921
24482922
2923
2924
2925
2926
2927
2928
2929
2930
2931
24492932 DEPDIR="${am__leading_dot}deps"
24502933
24512934 ac_config_commands="$ac_config_commands depfiles"
24522935
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2454 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2937 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
24552938 cat > confinc.mk << 'END'
24562939 am__doit:
24572940 @echo this is the am__doit target >confinc.out
24872970 fi
24882971 done
24892972 rm -f confinc.* confmf.*
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2491 $as_echo "${_am_result}" >&6; }
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2974 printf "%s\n" "${_am_result}" >&6; }
24922975
24932976 # Check whether --enable-dependency-tracking was given.
2494 if test "${enable_dependency_tracking+set}" = set; then :
2977 if test ${enable_dependency_tracking+y}
2978 then :
24952979 enableval=$enable_dependency_tracking;
24962980 fi
24972981
25173001 if test -n "$ac_tool_prefix"; then
25183002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
25193003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_CC+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 printf %s "checking for $ac_word... " >&6; }
3006 if test ${ac_cv_prog_CC+y}
3007 then :
3008 printf %s "(cached) " >&6
3009 else $as_nop
25253010 if test -n "$CC"; then
25263011 ac_cv_prog_CC="$CC" # Let the user override the test.
25273012 else
25293014 for as_dir in $PATH
25303015 do
25313016 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
3017 case $as_dir in #(((
3018 '') as_dir=./ ;;
3019 */) ;;
3020 *) as_dir=$as_dir/ ;;
3021 esac
25333022 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25353024 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25373026 break 2
25383027 fi
25393028 done
25443033 fi
25453034 CC=$ac_cv_prog_CC
25463035 if test -n "$CC"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2548 $as_echo "$CC" >&6; }
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 printf "%s\n" "$CC" >&6; }
25493038 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 printf "%s\n" "no" >&6; }
25523041 fi
25533042
25543043
25573046 ac_ct_CC=$CC
25583047 # Extract the first word of "gcc", so it can be a program name with args.
25593048 set dummy gcc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 printf %s "checking for $ac_word... " >&6; }
3051 if test ${ac_cv_prog_ac_ct_CC+y}
3052 then :
3053 printf %s "(cached) " >&6
3054 else $as_nop
25653055 if test -n "$ac_ct_CC"; then
25663056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25673057 else
25693059 for as_dir in $PATH
25703060 do
25713061 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
3062 case $as_dir in #(((
3063 '') as_dir=./ ;;
3064 */) ;;
3065 *) as_dir=$as_dir/ ;;
3066 esac
25733067 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25753069 ac_cv_prog_ac_ct_CC="gcc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25773071 break 2
25783072 fi
25793073 done
25843078 fi
25853079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
25863080 if test -n "$ac_ct_CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2588 $as_echo "$ac_ct_CC" >&6; }
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3082 printf "%s\n" "$ac_ct_CC" >&6; }
25893083 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 printf "%s\n" "no" >&6; }
25923086 fi
25933087
25943088 if test "x$ac_ct_CC" = x; then
25963090 else
25973091 case $cross_compiling:$ac_tool_warned in
25983092 yes:)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26013095 ac_tool_warned=yes ;;
26023096 esac
26033097 CC=$ac_ct_CC
26103104 if test -n "$ac_tool_prefix"; then
26113105 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
26123106 set dummy ${ac_tool_prefix}cc; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_CC+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 printf %s "checking for $ac_word... " >&6; }
3109 if test ${ac_cv_prog_CC+y}
3110 then :
3111 printf %s "(cached) " >&6
3112 else $as_nop
26183113 if test -n "$CC"; then
26193114 ac_cv_prog_CC="$CC" # Let the user override the test.
26203115 else
26223117 for as_dir in $PATH
26233118 do
26243119 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
3120 case $as_dir in #(((
3121 '') as_dir=./ ;;
3122 */) ;;
3123 *) as_dir=$as_dir/ ;;
3124 esac
26263125 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26283127 ac_cv_prog_CC="${ac_tool_prefix}cc"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26303129 break 2
26313130 fi
26323131 done
26373136 fi
26383137 CC=$ac_cv_prog_CC
26393138 if test -n "$CC"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641 $as_echo "$CC" >&6; }
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 printf "%s\n" "$CC" >&6; }
26423141 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 printf "%s\n" "no" >&6; }
26453144 fi
26463145
26473146
26503149 if test -z "$CC"; then
26513150 # Extract the first word of "cc", so it can be a program name with args.
26523151 set dummy cc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 printf %s "checking for $ac_word... " >&6; }
3154 if test ${ac_cv_prog_CC+y}
3155 then :
3156 printf %s "(cached) " >&6
3157 else $as_nop
26583158 if test -n "$CC"; then
26593159 ac_cv_prog_CC="$CC" # Let the user override the test.
26603160 else
26633163 for as_dir in $PATH
26643164 do
26653165 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
3166 case $as_dir in #(((
3167 '') as_dir=./ ;;
3168 */) ;;
3169 *) as_dir=$as_dir/ ;;
3170 esac
26673171 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3173 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26703174 ac_prog_rejected=yes
26713175 continue
26723176 fi
26733177 ac_cv_prog_CC="cc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26753179 break 2
26763180 fi
26773181 done
26873191 # However, it has the same basename, so the bogon will be chosen
26883192 # first if we set CC to just the basename; use the full file name.
26893193 shift
2690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
26913195 fi
26923196 fi
26933197 fi
26943198 fi
26953199 CC=$ac_cv_prog_CC
26963200 if test -n "$CC"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2698 $as_echo "$CC" >&6; }
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 printf "%s\n" "$CC" >&6; }
26993203 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 printf "%s\n" "no" >&6; }
27023206 fi
27033207
27043208
27093213 do
27103214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27113215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_CC+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716 else
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 printf %s "checking for $ac_word... " >&6; }
3218 if test ${ac_cv_prog_CC+y}
3219 then :
3220 printf %s "(cached) " >&6
3221 else $as_nop
27173222 if test -n "$CC"; then
27183223 ac_cv_prog_CC="$CC" # Let the user override the test.
27193224 else
27213226 for as_dir in $PATH
27223227 do
27233228 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
3229 case $as_dir in #(((
3230 '') as_dir=./ ;;
3231 */) ;;
3232 *) as_dir=$as_dir/ ;;
3233 esac
27253234 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27273236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27293238 break 2
27303239 fi
27313240 done
27363245 fi
27373246 CC=$ac_cv_prog_CC
27383247 if test -n "$CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740 $as_echo "$CC" >&6; }
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 printf "%s\n" "$CC" >&6; }
27413250 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 printf "%s\n" "no" >&6; }
27443253 fi
27453254
27463255
27533262 do
27543263 # Extract the first word of "$ac_prog", so it can be a program name with args.
27553264 set dummy $ac_prog; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 printf %s "checking for $ac_word... " >&6; }
3267 if test ${ac_cv_prog_ac_ct_CC+y}
3268 then :
3269 printf %s "(cached) " >&6
3270 else $as_nop
27613271 if test -n "$ac_ct_CC"; then
27623272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27633273 else
27653275 for as_dir in $PATH
27663276 do
27673277 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
3278 case $as_dir in #(((
3279 '') as_dir=./ ;;
3280 */) ;;
3281 *) as_dir=$as_dir/ ;;
3282 esac
27693283 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27713285 ac_cv_prog_ac_ct_CC="$ac_prog"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27733287 break 2
27743288 fi
27753289 done
27803294 fi
27813295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
27823296 if test -n "$ac_ct_CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2784 $as_echo "$ac_ct_CC" >&6; }
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298 printf "%s\n" "$ac_ct_CC" >&6; }
27853299 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 printf "%s\n" "no" >&6; }
27883302 fi
27893303
27903304
27963310 else
27973311 case $cross_compiling:$ac_tool_warned in
27983312 yes:)
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28013315 ac_tool_warned=yes ;;
28023316 esac
28033317 CC=$ac_ct_CC
28053319 fi
28063320
28073321 fi
2808
2809
2810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 if test -z "$CC"; then
3323 if test -n "$ac_tool_prefix"; then
3324 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3325 set dummy ${ac_tool_prefix}clang; ac_word=$2
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 printf %s "checking for $ac_word... " >&6; }
3328 if test ${ac_cv_prog_CC+y}
3329 then :
3330 printf %s "(cached) " >&6
3331 else $as_nop
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 case $as_dir in #(((
3340 '') as_dir=./ ;;
3341 */) ;;
3342 *) as_dir=$as_dir/ ;;
3343 esac
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="${ac_tool_prefix}clang"
3347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 printf "%s\n" "$CC" >&6; }
3360 else
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 printf "%s\n" "no" >&6; }
3363 fi
3364
3365
3366 fi
3367 if test -z "$ac_cv_prog_CC"; then
3368 ac_ct_CC=$CC
3369 # Extract the first word of "clang", so it can be a program name with args.
3370 set dummy clang; ac_word=$2
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 printf %s "checking for $ac_word... " >&6; }
3373 if test ${ac_cv_prog_ac_ct_CC+y}
3374 then :
3375 printf %s "(cached) " >&6
3376 else $as_nop
3377 if test -n "$ac_ct_CC"; then
3378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 case $as_dir in #(((
3385 '') as_dir=./ ;;
3386 */) ;;
3387 *) as_dir=$as_dir/ ;;
3388 esac
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_CC="clang"
3392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395 done
3396 done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 printf "%s\n" "$ac_ct_CC" >&6; }
3405 else
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 printf "%s\n" "no" >&6; }
3408 fi
3409
3410 if test "x$ac_ct_CC" = x; then
3411 CC=""
3412 else
3413 case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419 CC=$ac_ct_CC
3420 fi
3421 else
3422 CC="$ac_cv_prog_CC"
3423 fi
3424
3425 fi
3426
3427
3428 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28123430 as_fn_error $? "no acceptable C compiler found in \$PATH
28133431 See \`config.log' for more details" "$LINENO" 5; }
28143432
28153433 # Provide some information about the compiler.
2816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
28173435 set X $ac_compile
28183436 ac_compiler=$2
2819 for ac_option in --version -v -V -qversion; do
3437 for ac_option in --version -v -V -qversion -version; do
28203438 { { ac_try="$ac_compiler $ac_option >&5"
28213439 case "(($ac_try" in
28223440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233441 *) ac_try_echo=$ac_try;;
28243442 esac
28253443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826 $as_echo "$ac_try_echo"; } >&5
3444 printf "%s\n" "$ac_try_echo"; } >&5
28273445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
28283446 ac_status=$?
28293447 if test -s conftest.err; then
28333451 cat conftest.er1 >&5
28343452 fi
28353453 rm -f conftest.er1 conftest.err
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28373455 test $ac_status = 0; }
28383456 done
28393457
28413459 /* end confdefs.h. */
28423460
28433461 int
2844 main ()
3462 main (void)
28453463 {
28463464
28473465 ;
28533471 # Try to create an executable without -o first, disregard a.out.
28543472 # It will help us diagnose broken compilers, and finding out an intuition
28553473 # of exeext.
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2857 $as_echo_n "checking whether the C compiler works... " >&6; }
2858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3475 printf %s "checking whether the C compiler works... " >&6; }
3476 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28593477
28603478 # The possible output files:
28613479 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
28763494 *) ac_try_echo=$ac_try;;
28773495 esac
28783496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879 $as_echo "$ac_try_echo"; } >&5
3497 printf "%s\n" "$ac_try_echo"; } >&5
28803498 (eval "$ac_link_default") 2>&5
28813499 ac_status=$?
2882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883 test $ac_status = 0; }; then :
3500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }
3502 then :
28843503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28853504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28863505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
28973516 # certainly right.
28983517 break;;
28993518 *.* )
2900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3519 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
29013520 then :; else
29023521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29033522 fi
29133532 done
29143533 test "$ac_cv_exeext" = no && ac_cv_exeext=
29153534
2916 else
3535 else $as_nop
29173536 ac_file=''
29183537 fi
2919 if test -z "$ac_file"; then :
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 $as_echo "$as_me: failed program was:" >&5
3538 if test -z "$ac_file"
3539 then :
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 printf "%s\n" "no" >&6; }
3542 printf "%s\n" "$as_me: failed program was:" >&5
29233543 sed 's/^/| /' conftest.$ac_ext >&5
29243544
2925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29273547 as_fn_error 77 "C compiler cannot create executables
29283548 See \`config.log' for more details" "$LINENO" 5; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931 $as_echo "yes" >&6; }
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2934 $as_echo_n "checking for C compiler default output file name... " >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2936 $as_echo "$ac_file" >&6; }
3549 else $as_nop
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 printf "%s\n" "yes" >&6; }
3552 fi
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 printf %s "checking for C compiler default output file name... " >&6; }
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 printf "%s\n" "$ac_file" >&6; }
29373557 ac_exeext=$ac_cv_exeext
29383558
29393559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29403560 ac_clean_files=$ac_clean_files_save
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2942 $as_echo_n "checking for suffix of executables... " >&6; }
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 printf %s "checking for suffix of executables... " >&6; }
29433563 if { { ac_try="$ac_link"
29443564 case "(($ac_try" in
29453565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463566 *) ac_try_echo=$ac_try;;
29473567 esac
29483568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
3569 printf "%s\n" "$ac_try_echo"; } >&5
29503570 (eval "$ac_link") 2>&5
29513571 ac_status=$?
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
3572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3574 then :
29543575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
29553576 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
29563577 # work properly (i.e., refer to `conftest.exe'), while it won't with
29643585 * ) break;;
29653586 esac
29663587 done
2967 else
2968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 else $as_nop
3589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29703591 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
29713592 See \`config.log' for more details" "$LINENO" 5; }
29723593 fi
29733594 rm -f conftest conftest$ac_cv_exeext
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2975 $as_echo "$ac_cv_exeext" >&6; }
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3596 printf "%s\n" "$ac_cv_exeext" >&6; }
29763597
29773598 rm -f conftest.$ac_ext
29783599 EXEEXT=$ac_cv_exeext
29813602 /* end confdefs.h. */
29823603 #include <stdio.h>
29833604 int
2984 main ()
3605 main (void)
29853606 {
29863607 FILE *f = fopen ("conftest.out", "w");
29873608 return ferror (f) || fclose (f) != 0;
29933614 ac_clean_files="$ac_clean_files conftest.out"
29943615 # Check that the compiler produces executables we can run. If not, either
29953616 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2997 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 printf %s "checking whether we are cross compiling... " >&6; }
29983619 if test "$cross_compiling" != yes; then
29993620 { { ac_try="$ac_link"
30003621 case "(($ac_try" in
30023623 *) ac_try_echo=$ac_try;;
30033624 esac
30043625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3626 printf "%s\n" "$ac_try_echo"; } >&5
30063627 (eval "$ac_link") 2>&5
30073628 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30093630 test $ac_status = 0; }
30103631 if { ac_try='./conftest$ac_cv_exeext'
30113632 { { case "(($ac_try" in
30133634 *) ac_try_echo=$ac_try;;
30143635 esac
30153636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3637 printf "%s\n" "$ac_try_echo"; } >&5
30173638 (eval "$ac_try") 2>&5
30183639 ac_status=$?
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30203641 test $ac_status = 0; }; }; then
30213642 cross_compiling=no
30223643 else
30233644 if test "$cross_compiling" = maybe; then
30243645 cross_compiling=yes
30253646 else
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "cannot run C compiled programs.
3647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error 77 "cannot run C compiled programs.
30293650 If you meant to cross compile, use \`--host'.
30303651 See \`config.log' for more details" "$LINENO" 5; }
30313652 fi
30323653 fi
30333654 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3035 $as_echo "$cross_compiling" >&6; }
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3656 printf "%s\n" "$cross_compiling" >&6; }
30363657
30373658 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
30383659 ac_clean_files=$ac_clean_files_save
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3040 $as_echo_n "checking for suffix of object files... " >&6; }
3041 if ${ac_cv_objext+:} false; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3661 printf %s "checking for suffix of object files... " >&6; }
3662 if test ${ac_cv_objext+y}
3663 then :
3664 printf %s "(cached) " >&6
3665 else $as_nop
30443666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30453667 /* end confdefs.h. */
30463668
30473669 int
3048 main ()
3670 main (void)
30493671 {
30503672
30513673 ;
30593681 *) ac_try_echo=$ac_try;;
30603682 esac
30613683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3684 printf "%s\n" "$ac_try_echo"; } >&5
30633685 (eval "$ac_compile") 2>&5
30643686 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; then :
3687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }
3689 then :
30673690 for ac_file in conftest.o conftest.obj conftest.*; do
30683691 test -f "$ac_file" || continue;
30693692 case $ac_file in
30723695 break;;
30733696 esac
30743697 done
3075 else
3076 $as_echo "$as_me: failed program was:" >&5
3698 else $as_nop
3699 printf "%s\n" "$as_me: failed program was:" >&5
30773700 sed 's/^/| /' conftest.$ac_ext >&5
30783701
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30813704 as_fn_error $? "cannot compute suffix of object files: cannot compile
30823705 See \`config.log' for more details" "$LINENO" 5; }
30833706 fi
30843707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
30853708 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3087 $as_echo "$ac_cv_objext" >&6; }
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3710 printf "%s\n" "$ac_cv_objext" >&6; }
30883711 OBJEXT=$ac_cv_objext
30893712 ac_objext=$OBJEXT
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3091 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3092 if ${ac_cv_c_compiler_gnu+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3714 printf %s "checking whether the compiler supports GNU C... " >&6; }
3715 if test ${ac_cv_c_compiler_gnu+y}
3716 then :
3717 printf %s "(cached) " >&6
3718 else $as_nop
30953719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30963720 /* end confdefs.h. */
30973721
30983722 int
3099 main ()
3723 main (void)
31003724 {
31013725 #ifndef __GNUC__
31023726 choke me
31063730 return 0;
31073731 }
31083732 _ACEOF
3109 if ac_fn_c_try_compile "$LINENO"; then :
3733 if ac_fn_c_try_compile "$LINENO"
3734 then :
31103735 ac_compiler_gnu=yes
3111 else
3736 else $as_nop
31123737 ac_compiler_gnu=no
31133738 fi
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31153740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
31163741
31173742 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3119 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3744 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
31203747 if test $ac_compiler_gnu = yes; then
31213748 GCC=yes
31223749 else
31233750 GCC=
31243751 fi
3125 ac_test_CFLAGS=${CFLAGS+set}
3752 ac_test_CFLAGS=${CFLAGS+y}
31263753 ac_save_CFLAGS=$CFLAGS
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3128 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3129 if ${ac_cv_prog_cc_g+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3755 printf %s "checking whether $CC accepts -g... " >&6; }
3756 if test ${ac_cv_prog_cc_g+y}
3757 then :
3758 printf %s "(cached) " >&6
3759 else $as_nop
31323760 ac_save_c_werror_flag=$ac_c_werror_flag
31333761 ac_c_werror_flag=yes
31343762 ac_cv_prog_cc_g=no
31373765 /* end confdefs.h. */
31383766
31393767 int
3140 main ()
3768 main (void)
31413769 {
31423770
31433771 ;
31443772 return 0;
31453773 }
31463774 _ACEOF
3147 if ac_fn_c_try_compile "$LINENO"; then :
3775 if ac_fn_c_try_compile "$LINENO"
3776 then :
31483777 ac_cv_prog_cc_g=yes
3149 else
3778 else $as_nop
31503779 CFLAGS=""
31513780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31523781 /* end confdefs.h. */
31533782
31543783 int
3155 main ()
3784 main (void)
31563785 {
31573786
31583787 ;
31593788 return 0;
31603789 }
31613790 _ACEOF
3162 if ac_fn_c_try_compile "$LINENO"; then :
3163
3164 else
3791 if ac_fn_c_try_compile "$LINENO"
3792 then :
3793
3794 else $as_nop
31653795 ac_c_werror_flag=$ac_save_c_werror_flag
31663796 CFLAGS="-g"
31673797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31683798 /* end confdefs.h. */
31693799
31703800 int
3171 main ()
3801 main (void)
31723802 {
31733803
31743804 ;
31753805 return 0;
31763806 }
31773807 _ACEOF
3178 if ac_fn_c_try_compile "$LINENO"; then :
3808 if ac_fn_c_try_compile "$LINENO"
3809 then :
31793810 ac_cv_prog_cc_g=yes
31803811 fi
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 fi
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31863817 ac_c_werror_flag=$ac_save_c_werror_flag
31873818 fi
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3189 $as_echo "$ac_cv_prog_cc_g" >&6; }
3190 if test "$ac_test_CFLAGS" = set; then
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3821 if test $ac_test_CFLAGS; then
31913822 CFLAGS=$ac_save_CFLAGS
31923823 elif test $ac_cv_prog_cc_g = yes; then
31933824 if test "$GCC" = yes; then
32023833 CFLAGS=
32033834 fi
32043835 fi
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3206 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3207 if ${ac_cv_prog_cc_c89+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3836 ac_prog_cc_stdc=no
3837 if test x$ac_prog_cc_stdc = xno
3838 then :
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3840 printf %s "checking for $CC option to enable C11 features... " >&6; }
3841 if test ${ac_cv_prog_cc_c11+y}
3842 then :
3843 printf %s "(cached) " >&6
3844 else $as_nop
3845 ac_cv_prog_cc_c11=no
3846 ac_save_CC=$CC
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 $ac_c_conftest_c11_program
3850 _ACEOF
3851 for ac_arg in '' -std=gnu11
3852 do
3853 CC="$ac_save_CC $ac_arg"
3854 if ac_fn_c_try_compile "$LINENO"
3855 then :
3856 ac_cv_prog_cc_c11=$ac_arg
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext conftest.beam
3859 test "x$ac_cv_prog_cc_c11" != "xno" && break
3860 done
3861 rm -f conftest.$ac_ext
3862 CC=$ac_save_CC
3863 fi
3864
3865 if test "x$ac_cv_prog_cc_c11" = xno
3866 then :
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868 printf "%s\n" "unsupported" >&6; }
3869 else $as_nop
3870 if test "x$ac_cv_prog_cc_c11" = x
3871 then :
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3873 printf "%s\n" "none needed" >&6; }
3874 else $as_nop
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3876 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3877 CC="$CC $ac_cv_prog_cc_c11"
3878 fi
3879 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3880 ac_prog_cc_stdc=c11
3881 fi
3882 fi
3883 if test x$ac_prog_cc_stdc = xno
3884 then :
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3886 printf %s "checking for $CC option to enable C99 features... " >&6; }
3887 if test ${ac_cv_prog_cc_c99+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else $as_nop
3891 ac_cv_prog_cc_c99=no
3892 ac_save_CC=$CC
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 $ac_c_conftest_c99_program
3896 _ACEOF
3897 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3898 do
3899 CC="$ac_save_CC $ac_arg"
3900 if ac_fn_c_try_compile "$LINENO"
3901 then :
3902 ac_cv_prog_cc_c99=$ac_arg
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.beam
3905 test "x$ac_cv_prog_cc_c99" != "xno" && break
3906 done
3907 rm -f conftest.$ac_ext
3908 CC=$ac_save_CC
3909 fi
3910
3911 if test "x$ac_cv_prog_cc_c99" = xno
3912 then :
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914 printf "%s\n" "unsupported" >&6; }
3915 else $as_nop
3916 if test "x$ac_cv_prog_cc_c99" = x
3917 then :
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3919 printf "%s\n" "none needed" >&6; }
3920 else $as_nop
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3922 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3923 CC="$CC $ac_cv_prog_cc_c99"
3924 fi
3925 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3926 ac_prog_cc_stdc=c99
3927 fi
3928 fi
3929 if test x$ac_prog_cc_stdc = xno
3930 then :
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3932 printf %s "checking for $CC option to enable C89 features... " >&6; }
3933 if test ${ac_cv_prog_cc_c89+y}
3934 then :
3935 printf %s "(cached) " >&6
3936 else $as_nop
32103937 ac_cv_prog_cc_c89=no
32113938 ac_save_CC=$CC
32123939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32133940 /* end confdefs.h. */
3214 #include <stdarg.h>
3215 #include <stdio.h>
3216 struct stat;
3217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3218 struct buf { int x; };
3219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3220 static char *e (p, i)
3221 char **p;
3222 int i;
3223 {
3224 return p[i];
3225 }
3226 static char *f (char * (*g) (char **, int), char **p, ...)
3227 {
3228 char *s;
3229 va_list v;
3230 va_start (v,p);
3231 s = g (p, va_arg (v,int));
3232 va_end (v);
3233 return s;
3234 }
3235
3236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3237 function prototypes and stuff, but not '\xHH' hex character constants.
3238 These don't provoke an error unfortunately, instead are silently treated
3239 as 'x'. The following induces an error, until -std is added to get
3240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3241 array size at least. It's necessary to write '\x00'==0 to get something
3242 that's true only with -std. */
3243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3244
3245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3246 inside strings and character constants. */
3247 #define FOO(x) 'x'
3248 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3249
3250 int test (int i, double x);
3251 struct s1 {int (*f) (int a);};
3252 struct s2 {int (*f) (double a);};
3253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3254 int argc;
3255 char **argv;
3256 int
3257 main ()
3258 {
3259 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3260 ;
3261 return 0;
3262 }
3941 $ac_c_conftest_c89_program
32633942 _ACEOF
3264 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3265 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3943 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
32663944 do
32673945 CC="$ac_save_CC $ac_arg"
3268 if ac_fn_c_try_compile "$LINENO"; then :
3946 if ac_fn_c_try_compile "$LINENO"
3947 then :
32693948 ac_cv_prog_cc_c89=$ac_arg
32703949 fi
3271 rm -f core conftest.err conftest.$ac_objext
3950 rm -f core conftest.err conftest.$ac_objext conftest.beam
32723951 test "x$ac_cv_prog_cc_c89" != "xno" && break
32733952 done
32743953 rm -f conftest.$ac_ext
32753954 CC=$ac_save_CC
3276
3277 fi
3278 # AC_CACHE_VAL
3279 case "x$ac_cv_prog_cc_c89" in
3280 x)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3282 $as_echo "none needed" >&6; } ;;
3283 xno)
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3285 $as_echo "unsupported" >&6; } ;;
3286 *)
3287 CC="$CC $ac_cv_prog_cc_c89"
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3290 esac
3291 if test "x$ac_cv_prog_cc_c89" != xno; then :
3292
3955 fi
3956
3957 if test "x$ac_cv_prog_cc_c89" = xno
3958 then :
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3960 printf "%s\n" "unsupported" >&6; }
3961 else $as_nop
3962 if test "x$ac_cv_prog_cc_c89" = x
3963 then :
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3965 printf "%s\n" "none needed" >&6; }
3966 else $as_nop
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3968 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3969 CC="$CC $ac_cv_prog_cc_c89"
3970 fi
3971 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3972 ac_prog_cc_stdc=c89
3973 fi
32933974 fi
32943975
32953976 ac_ext=c
32983979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32993980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33003981
3301 ac_ext=c
3982
3983 ac_ext=c
33023984 ac_cpp='$CPP $CPPFLAGS'
33033985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33053987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3307 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3308 if ${am_cv_prog_cc_c_o+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3989 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3990 if test ${am_cv_prog_cc_c_o+y}
3991 then :
3992 printf %s "(cached) " >&6
3993 else $as_nop
33113994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123995 /* end confdefs.h. */
33133996
33143997 int
3315 main ()
3998 main (void)
33163999 {
33174000
33184001 ;
33404023 rm -f core conftest*
33414024 unset am_i
33424025 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3344 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4027 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
33454028 if test "$am_cv_prog_cc_c_o" != yes; then
33464029 # Losing compiler, so override with the script.
33474030 # FIXME: It is wrong to rewrite CC.
33594042
33604043 depcc="$CC" am_compiler_list=
33614044
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3363 $as_echo_n "checking dependency style of $depcc... " >&6; }
3364 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4046 printf %s "checking dependency style of $depcc... " >&6; }
4047 if test ${am_cv_CC_dependencies_compiler_type+y}
4048 then :
4049 printf %s "(cached) " >&6
4050 else $as_nop
33674051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
33684052 # We make a subdir and do the tests there. Otherwise we can end up
33694053 # making bogus files that we don't know about and never remove. For
34704154 fi
34714155
34724156 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3474 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4158 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
34754159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
34764160
34774161 if
34854169 fi
34864170
34874171
3488 case $ac_cv_prog_cc_stdc in #(
3489 no) :
3490 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3491 *) :
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3493 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3494 if ${ac_cv_prog_cc_c99+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 ac_cv_prog_cc_c99=no
3498 ac_save_CC=$CC
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #include <stdarg.h>
3502 #include <stdbool.h>
3503 #include <stdlib.h>
3504 #include <wchar.h>
3505 #include <stdio.h>
3506
3507 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3508 #define debug(...) fprintf (stderr, __VA_ARGS__)
3509 #define showlist(...) puts (#__VA_ARGS__)
3510 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3511 static void
3512 test_varargs_macros (void)
3513 {
3514 int x = 1234;
3515 int y = 5678;
3516 debug ("Flag");
3517 debug ("X = %d\n", x);
3518 showlist (The first, second, and third items.);
3519 report (x>y, "x is %d but y is %d", x, y);
3520 }
3521
3522 // Check long long types.
3523 #define BIG64 18446744073709551615ull
3524 #define BIG32 4294967295ul
3525 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3526 #if !BIG_OK
3527 your preprocessor is broken;
3528 #endif
3529 #if BIG_OK
3530 #else
3531 your preprocessor is broken;
3532 #endif
3533 static long long int bignum = -9223372036854775807LL;
3534 static unsigned long long int ubignum = BIG64;
3535
3536 struct incomplete_array
3537 {
3538 int datasize;
3539 double data[];
3540 };
3541
3542 struct named_init {
3543 int number;
3544 const wchar_t *name;
3545 double average;
3546 };
3547
3548 typedef const char *ccp;
3549
3550 static inline int
3551 test_restrict (ccp restrict text)
3552 {
3553 // See if C++-style comments work.
3554 // Iterate through items via the restricted pointer.
3555 // Also check for declarations in for loops.
3556 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3557 continue;
3558 return 0;
3559 }
3560
3561 // Check varargs and va_copy.
3562 static void
3563 test_varargs (const char *format, ...)
3564 {
3565 va_list args;
3566 va_start (args, format);
3567 va_list args_copy;
3568 va_copy (args_copy, args);
3569
3570 const char *str;
3571 int number;
3572 float fnumber;
3573
3574 while (*format)
3575 {
3576 switch (*format++)
3577 {
3578 case 's': // string
3579 str = va_arg (args_copy, const char *);
3580 break;
3581 case 'd': // int
3582 number = va_arg (args_copy, int);
3583 break;
3584 case 'f': // float
3585 fnumber = va_arg (args_copy, double);
3586 break;
3587 default:
3588 break;
3589 }
3590 }
3591 va_end (args_copy);
3592 va_end (args);
3593 }
3594
3595 int
3596 main ()
3597 {
3598
3599 // Check bool.
3600 _Bool success = false;
3601
3602 // Check restrict.
3603 if (test_restrict ("String literal") == 0)
3604 success = true;
3605 char *restrict newvar = "Another string";
3606
3607 // Check varargs.
3608 test_varargs ("s, d' f .", "string", 65, 34.234);
3609 test_varargs_macros ();
3610
3611 // Check flexible array members.
3612 struct incomplete_array *ia =
3613 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3614 ia->datasize = 10;
3615 for (int i = 0; i < ia->datasize; ++i)
3616 ia->data[i] = i * 1.234;
3617
3618 // Check named initializers.
3619 struct named_init ni = {
3620 .number = 34,
3621 .name = L"Test wide string",
3622 .average = 543.34343,
3623 };
3624
3625 ni.number = 58;
3626
3627 int dynamic_array[ni.number];
3628 dynamic_array[ni.number - 1] = 543;
3629
3630 // work around unused variable warnings
3631 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3632 || dynamic_array[ni.number - 1] != 543);
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3639 do
3640 CC="$ac_save_CC $ac_arg"
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_prog_cc_c99=$ac_arg
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext
3645 test "x$ac_cv_prog_cc_c99" != "xno" && break
3646 done
3647 rm -f conftest.$ac_ext
3648 CC=$ac_save_CC
3649
3650 fi
3651 # AC_CACHE_VAL
3652 case "x$ac_cv_prog_cc_c99" in
3653 x)
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3655 $as_echo "none needed" >&6; } ;;
3656 xno)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3658 $as_echo "unsupported" >&6; } ;;
3659 *)
3660 CC="$CC $ac_cv_prog_cc_c99"
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3662 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3663 esac
3664 if test "x$ac_cv_prog_cc_c99" != xno; then :
3665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3668 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3669 if ${ac_cv_prog_cc_c89+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 ac_cv_prog_cc_c89=no
3673 ac_save_CC=$CC
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676 #include <stdarg.h>
3677 #include <stdio.h>
3678 struct stat;
3679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3680 struct buf { int x; };
3681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3682 static char *e (p, i)
3683 char **p;
3684 int i;
3685 {
3686 return p[i];
3687 }
3688 static char *f (char * (*g) (char **, int), char **p, ...)
3689 {
3690 char *s;
3691 va_list v;
3692 va_start (v,p);
3693 s = g (p, va_arg (v,int));
3694 va_end (v);
3695 return s;
3696 }
3697
3698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3699 function prototypes and stuff, but not '\xHH' hex character constants.
3700 These don't provoke an error unfortunately, instead are silently treated
3701 as 'x'. The following induces an error, until -std is added to get
3702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3703 array size at least. It's necessary to write '\x00'==0 to get something
3704 that's true only with -std. */
3705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3706
3707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3708 inside strings and character constants. */
3709 #define FOO(x) 'x'
3710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3711
3712 int test (int i, double x);
3713 struct s1 {int (*f) (int a);};
3714 struct s2 {int (*f) (double a);};
3715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3716 int argc;
3717 char **argv;
3718 int
3719 main ()
3720 {
3721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728 do
3729 CC="$ac_save_CC $ac_arg"
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_cv_prog_cc_c89=$ac_arg
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext
3734 test "x$ac_cv_prog_cc_c89" != "xno" && break
3735 done
3736 rm -f conftest.$ac_ext
3737 CC=$ac_save_CC
3738
3739 fi
3740 # AC_CACHE_VAL
3741 case "x$ac_cv_prog_cc_c89" in
3742 x)
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3744 $as_echo "none needed" >&6; } ;;
3745 xno)
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3747 $as_echo "unsupported" >&6; } ;;
3748 *)
3749 CC="$CC $ac_cv_prog_cc_c89"
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3751 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3752 esac
3753 if test "x$ac_cv_prog_cc_c89" != xno; then :
3754 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3755 else
3756 ac_cv_prog_cc_stdc=no
3757 fi
3758
3759 fi
3760 ;;
3761 esac
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3763 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3764 if ${ac_cv_prog_cc_stdc+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 fi
3767
3768 case $ac_cv_prog_cc_stdc in #(
3769 no) :
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 $as_echo "unsupported" >&6; } ;; #(
3772 '') :
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774 $as_echo "none needed" >&6; } ;; #(
3775 *) :
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3777 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3778 esac
37794172
37804173
37814174 ac_ext=c
37834176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37844177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37854178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3787 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4180 printf %s "checking how to run the C preprocessor... " >&6; }
37884181 # On Suns, sometimes $CPP names a directory.
37894182 if test -n "$CPP" && test -d "$CPP"; then
37904183 CPP=
37914184 fi
37924185 if test -z "$CPP"; then
3793 if ${ac_cv_prog_CPP+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 # Double quotes because CPP needs to be expanded
3797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4186 if test ${ac_cv_prog_CPP+y}
4187 then :
4188 printf %s "(cached) " >&6
4189 else $as_nop
4190 # Double quotes because $CC needs to be expanded
4191 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
37984192 do
37994193 ac_preproc_ok=false
38004194 for ac_c_preproc_warn_flag in '' yes
38014195 do
38024196 # Use a header file that comes with gcc, so configuring glibc
38034197 # with a fresh cross-compiler works.
3804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3805 # <limits.h> exists even on freestanding compilers.
38064198 # On the NeXT, cc -E runs the code through the compiler's parser,
38074199 # not just through cpp. "Syntax error" is here to catch this case.
38084200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38094201 /* end confdefs.h. */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
4202 #include <limits.h>
38154203 Syntax error
38164204 _ACEOF
3817 if ac_fn_c_try_cpp "$LINENO"; then :
3818
3819 else
4205 if ac_fn_c_try_cpp "$LINENO"
4206 then :
4207
4208 else $as_nop
38204209 # Broken: fails on valid input.
38214210 continue
38224211 fi
38284217 /* end confdefs.h. */
38294218 #include <ac_nonexistent.h>
38304219 _ACEOF
3831 if ac_fn_c_try_cpp "$LINENO"; then :
4220 if ac_fn_c_try_cpp "$LINENO"
4221 then :
38324222 # Broken: success on invalid input.
38334223 continue
3834 else
4224 else $as_nop
38354225 # Passes both tests.
38364226 ac_preproc_ok=:
38374227 break
38414231 done
38424232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38434233 rm -f conftest.i conftest.err conftest.$ac_ext
3844 if $ac_preproc_ok; then :
4234 if $ac_preproc_ok
4235 then :
38454236 break
38464237 fi
38474238
38534244 else
38544245 ac_cv_prog_CPP=$CPP
38554246 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3857 $as_echo "$CPP" >&6; }
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4248 printf "%s\n" "$CPP" >&6; }
38584249 ac_preproc_ok=false
38594250 for ac_c_preproc_warn_flag in '' yes
38604251 do
38614252 # Use a header file that comes with gcc, so configuring glibc
38624253 # with a fresh cross-compiler works.
3863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864 # <limits.h> exists even on freestanding compilers.
38654254 # On the NeXT, cc -E runs the code through the compiler's parser,
38664255 # not just through cpp. "Syntax error" is here to catch this case.
38674256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38684257 /* end confdefs.h. */
3869 #ifdef __STDC__
3870 # include <limits.h>
3871 #else
3872 # include <assert.h>
3873 #endif
4258 #include <limits.h>
38744259 Syntax error
38754260 _ACEOF
3876 if ac_fn_c_try_cpp "$LINENO"; then :
3877
3878 else
4261 if ac_fn_c_try_cpp "$LINENO"
4262 then :
4263
4264 else $as_nop
38794265 # Broken: fails on valid input.
38804266 continue
38814267 fi
38874273 /* end confdefs.h. */
38884274 #include <ac_nonexistent.h>
38894275 _ACEOF
3890 if ac_fn_c_try_cpp "$LINENO"; then :
4276 if ac_fn_c_try_cpp "$LINENO"
4277 then :
38914278 # Broken: success on invalid input.
38924279 continue
3893 else
4280 else $as_nop
38944281 # Passes both tests.
38954282 ac_preproc_ok=:
38964283 break
39004287 done
39014288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39024289 rm -f conftest.i conftest.err conftest.$ac_ext
3903 if $ac_preproc_ok; then :
3904
3905 else
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 if $ac_preproc_ok
4291 then :
4292
4293 else $as_nop
4294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39084296 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
39094297 See \`config.log' for more details" "$LINENO" 5; }
39104298 fi
39164304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39174305
39184306
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
3920 $as_echo_n "checking for function prototypes... " >&6; }
3921 if test "$ac_cv_prog_cc_c89" != no; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3924
3925 $as_echo "#define PROTOTYPES 1" >>confdefs.h
3926
3927
3928 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
3929
3930 else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
4307 if test "$ac_prog_cc_stdc" != no; then
4308
4309 printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h
4310
4311
4312 printf "%s\n" "#define __PROTOTYPES 1" >>confdefs.h
4313
39334314 fi
39344315
39354316 test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
39364317
39374318
39384319
3939 # Make sure we can run config.sub.
3940 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3941 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3942
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3944 $as_echo_n "checking build system type... " >&6; }
3945 if ${ac_cv_build+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
4320
4321
4322 # Make sure we can run config.sub.
4323 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4324 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4325
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4327 printf %s "checking build system type... " >&6; }
4328 if test ${ac_cv_build+y}
4329 then :
4330 printf %s "(cached) " >&6
4331 else $as_nop
39484332 ac_build_alias=$build_alias
39494333 test "x$ac_build_alias" = x &&
3950 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4334 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
39514335 test "x$ac_build_alias" = x &&
39524336 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3953 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3954 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3955
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3958 $as_echo "$ac_cv_build" >&6; }
4337 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4338 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4339
4340 fi
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4342 printf "%s\n" "$ac_cv_build" >&6; }
39594343 case $ac_cv_build in
39604344 *-*-*) ;;
39614345 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
39744358 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
39754359
39764360
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3978 $as_echo_n "checking host system type... " >&6; }
3979 if ${ac_cv_host+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4362 printf %s "checking host system type... " >&6; }
4363 if test ${ac_cv_host+y}
4364 then :
4365 printf %s "(cached) " >&6
4366 else $as_nop
39824367 if test "x$host_alias" = x; then
39834368 ac_cv_host=$ac_cv_build
39844369 else
3985 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3986 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3987 fi
3988
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3991 $as_echo "$ac_cv_host" >&6; }
4370 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4371 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4372 fi
4373
4374 fi
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4376 printf "%s\n" "$ac_cv_host" >&6; }
39924377 case $ac_cv_host in
39934378 *-*-*) ;;
39944379 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
40174402
40184403
40194404 tests="\
4405 alibaba-cloud-x86 \
40204406 aws-baremetal-x86 \
40214407 aws-kvm-arm \
40224408 aws-kvm-x86 \
40244410 baremetal \
40254411 bhyve \
40264412 docker \
4413 esx-arm \
40274414 esx4.1 \
40284415 hyperv \
4416 illumos-lx \
40294417 kvm \
40304418 kvm-explicit-cpu \
40314419 ldoms \
40604448
40614449 ac_config_files="$ac_config_files virt-what"
40624450
4063 ac_config_files="$ac_config_files Makefile tests/Makefile tests/aws-baremetal-x86/Makefile tests/aws-kvm-arm/Makefile tests/aws-kvm-x86/Makefile tests/aws-xen-x86/Makefile tests/baremetal/Makefile tests/bhyve/Makefile tests/docker/Makefile tests/esx4.1/Makefile tests/hyperv/Makefile tests/kvm/Makefile tests/kvm-explicit-cpu/Makefile tests/ldoms/Makefile tests/linux-vserver/Makefile tests/lkvm/Makefile tests/lkvm-arm/Makefile tests/lx86/Makefile tests/lxc/Makefile tests/nutanix-ahv/Makefile tests/parallels-desktop/Makefile tests/podman/Makefile tests/ppc64-baremetal/Makefile tests/ppc64-kvm/Makefile tests/ppc64-lpar-dedicated/Makefile tests/ppc64-lpar-shared/Makefile tests/qemu/Makefile tests/qemu-arm/Makefile tests/qemu-smbios/Makefile tests/qemu-smbios-kvm/Makefile tests/rhel5-xen-dom0/Makefile tests/rhel5-xen-domU-hvm/Makefile tests/rhel5-xen-domU-hvm-ia64/Makefile tests/rhel5-xen-domU-pv/Makefile tests/rhev/Makefile tests/vmm/Makefile tests/xen-arm/Makefile tests/zvm/Makefile"
4451 ac_config_files="$ac_config_files Makefile tests/Makefile tests/alibaba-cloud-x86/Makefile tests/aws-baremetal-x86/Makefile tests/aws-kvm-arm/Makefile tests/aws-kvm-x86/Makefile tests/aws-xen-x86/Makefile tests/baremetal/Makefile tests/bhyve/Makefile tests/docker/Makefile tests/esx-arm/Makefile tests/esx4.1/Makefile tests/hyperv/Makefile tests/illumos-lx/Makefile tests/kvm/Makefile tests/kvm-explicit-cpu/Makefile tests/ldoms/Makefile tests/linux-vserver/Makefile tests/lkvm/Makefile tests/lkvm-arm/Makefile tests/lx86/Makefile tests/lxc/Makefile tests/nutanix-ahv/Makefile tests/parallels-desktop/Makefile tests/podman/Makefile tests/ppc64-baremetal/Makefile tests/ppc64-kvm/Makefile tests/ppc64-lpar-dedicated/Makefile tests/ppc64-lpar-shared/Makefile tests/qemu/Makefile tests/qemu-arm/Makefile tests/qemu-smbios/Makefile tests/qemu-smbios-kvm/Makefile tests/rhel5-xen-dom0/Makefile tests/rhel5-xen-domU-hvm/Makefile tests/rhel5-xen-domU-hvm-ia64/Makefile tests/rhel5-xen-domU-pv/Makefile tests/rhev/Makefile tests/vmm/Makefile tests/xen-arm/Makefile tests/zvm/Makefile"
40644452
40654453
40664454 # Extract the first word of "pod2man", so it can be a program name with args.
40674455 set dummy pod2man; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_POD2MAN+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 printf %s "checking for $ac_word... " >&6; }
4458 if test ${ac_cv_prog_POD2MAN+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else $as_nop
40734462 if test -n "$POD2MAN"; then
40744463 ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
40754464 else
40774466 for as_dir in $PATH
40784467 do
40794468 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4469 case $as_dir in #(((
4470 '') as_dir=./ ;;
4471 */) ;;
4472 *) as_dir=$as_dir/ ;;
4473 esac
40814474 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
40834476 ac_cv_prog_POD2MAN="pod2man"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
40854478 break 2
40864479 fi
40874480 done
40934486 fi
40944487 POD2MAN=$ac_cv_prog_POD2MAN
40954488 if test -n "$POD2MAN"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
4097 $as_echo "$POD2MAN" >&6; }
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
4490 printf "%s\n" "$POD2MAN" >&6; }
40984491 else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 printf "%s\n" "no" >&6; }
41014494 fi
41024495
41034496
41044497 if test "$POD2MAN" = "false"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pod2man was not found. This is needed to build man pages." >&5
4106 $as_echo "$as_me: WARNING: pod2man was not found. This is needed to build man pages." >&2;}
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pod2man was not found. This is needed to build man pages." >&5
4499 printf "%s\n" "$as_me: WARNING: pod2man was not found. This is needed to build man pages." >&2;}
41074500 fi
41084501 if test "$POD2MAN" != "false"; then
41094502 HAVE_POD2MAN_TRUE=
41414534 case $ac_val in #(
41424535 *${as_nl}*)
41434536 case $ac_var in #(
4144 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4537 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4538 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41464539 esac
41474540 case $ac_var in #(
41484541 _ | IFS | as_nl) ;; #(
41724565 /^ac_cv_env_/b end
41734566 t clear
41744567 :clear
4175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4568 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
41764569 t end
41774570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41784571 :end' >>confcache
41794572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41804573 if test -w "$cache_file"; then
41814574 if test "x$cache_file" != "x/dev/null"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4183 $as_echo "$as_me: updating cache $cache_file" >&6;}
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4576 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
41844577 if test ! -f "$cache_file" || test -h "$cache_file"; then
41854578 cat confcache >"$cache_file"
41864579 else
41944587 fi
41954588 fi
41964589 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4198 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4591 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
41994592 fi
42004593 fi
42014594 rm -f confcache
42124605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42134606 # 1. Remove the extension, and $U if already installed.
42144607 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4215 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4608 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
42164609 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42174610 # will be set to the directory where LIBOBJS objects are built.
42184611 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42234616 LTLIBOBJS=$ac_ltlibobjs
42244617
42254618
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4227 $as_echo_n "checking that generated files are newer than configure... " >&6; }
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4620 printf %s "checking that generated files are newer than configure... " >&6; }
42284621 if test -n "$am_sleep_pid"; then
42294622 # Hide warnings about reused PIDs.
42304623 wait $am_sleep_pid 2>/dev/null
42314624 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4233 $as_echo "done" >&6; }
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4626 printf "%s\n" "done" >&6; }
42344627 if test -n "$EXEEXT"; then
42354628 am__EXEEXT_TRUE=
42364629 am__EXEEXT_FALSE='#'
42604653 ac_write_fail=0
42614654 ac_clean_files_save=$ac_clean_files
42624655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4264 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4657 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
42654658 as_write_fail=0
42664659 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42674660 #! $SHELL
42844677
42854678 # Be more Bourne compatible
42864679 DUALCASE=1; export DUALCASE # for MKS sh
4287 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4680 as_nop=:
4681 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4682 then :
42884683 emulate sh
42894684 NULLCMD=:
42904685 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42914686 # is contrary to our usage. Disable this feature.
42924687 alias -g '${1+"$@"}'='"$@"'
42934688 setopt NO_GLOB_SUBST
4294 else
4689 else $as_nop
42954690 case `(set -o) 2>/dev/null` in #(
42964691 *posix*) :
42974692 set -o posix ;; #(
43014696 fi
43024697
43034698
4699
4700 # Reset variables that may have inherited troublesome values from
4701 # the environment.
4702
4703 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4704 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4705 # side effect of setting IFS to empty, thus disabling word splitting.)
4706 # Quoting is to prevent editors from complaining about space-tab.
43044707 as_nl='
43054708 '
43064709 export as_nl
4307 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4308 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4310 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4311 # Prefer a ksh shell builtin over an external printf program on Solaris,
4312 # but without wasting forks for bash or zsh.
4313 if test -z "$BASH_VERSION$ZSH_VERSION" \
4314 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4315 as_echo='print -r --'
4316 as_echo_n='print -rn --'
4317 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4318 as_echo='printf %s\n'
4319 as_echo_n='printf %s'
4320 else
4321 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4322 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4323 as_echo_n='/usr/ucb/echo -n'
4324 else
4325 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4326 as_echo_n_body='eval
4327 arg=$1;
4328 case $arg in #(
4329 *"$as_nl"*)
4330 expr "X$arg" : "X\\(.*\\)$as_nl";
4331 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4332 esac;
4333 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4334 '
4335 export as_echo_n_body
4336 as_echo_n='sh -c $as_echo_n_body as_echo'
4337 fi
4338 export as_echo_body
4339 as_echo='sh -c $as_echo_body as_echo'
4340 fi
4710 IFS=" "" $as_nl"
4711
4712 PS1='$ '
4713 PS2='> '
4714 PS4='+ '
4715
4716 # Ensure predictable behavior from utilities with locale-dependent output.
4717 LC_ALL=C
4718 export LC_ALL
4719 LANGUAGE=C
4720 export LANGUAGE
4721
4722 # We cannot yet rely on "unset" to work, but we need these variables
4723 # to be unset--not just set to an empty or harmless value--now, to
4724 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4725 # also avoids known problems related to "unset" and subshell syntax
4726 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4727 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4728 do eval test \${$as_var+y} \
4729 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4730 done
4731
4732 # Ensure that fds 0, 1, and 2 are open.
4733 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4734 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4735 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
43414736
43424737 # The user is always right.
4343 if test "${PATH_SEPARATOR+set}" != set; then
4738 if ${PATH_SEPARATOR+false} :; then
43444739 PATH_SEPARATOR=:
43454740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
43464741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
43484743 }
43494744 fi
43504745
4351
4352 # IFS
4353 # We need space, tab and new line, in precisely that order. Quoting is
4354 # there to prevent editors from complaining about space-tab.
4355 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4356 # splitting by setting IFS to empty value.)
4357 IFS=" "" $as_nl"
43584746
43594747 # Find who we are. Look in the path if we contain no directory separator.
43604748 as_myself=
43644752 for as_dir in $PATH
43654753 do
43664754 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4755 case $as_dir in #(((
4756 '') as_dir=./ ;;
4757 */) ;;
4758 *) as_dir=$as_dir/ ;;
4759 esac
4760 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
43694761 done
43704762 IFS=$as_save_IFS
43714763
43774769 as_myself=$0
43784770 fi
43794771 if test ! -f "$as_myself"; then
4380 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4772 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43814773 exit 1
43824774 fi
43834775
4384 # Unset variables that we do not need and which cause bugs (e.g. in
4385 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4386 # suppresses any "Segmentation fault" message there. '((' could
4387 # trigger a bug in pdksh 5.2.14.
4388 for as_var in BASH_ENV ENV MAIL MAILPATH
4389 do eval test x\${$as_var+set} = xset \
4390 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4391 done
4392 PS1='$ '
4393 PS2='> '
4394 PS4='+ '
4395
4396 # NLS nuisances.
4397 LC_ALL=C
4398 export LC_ALL
4399 LANGUAGE=C
4400 export LANGUAGE
4401
4402 # CDPATH.
4403 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44044776
44054777
44064778 # as_fn_error STATUS ERROR [LINENO LOG_FD]
44134785 as_status=$1; test $as_status -eq 0 && as_status=1
44144786 if test "$4"; then
44154787 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
44174789 fi
4418 $as_echo "$as_me: error: $2" >&2
4790 printf "%s\n" "$as_me: error: $2" >&2
44194791 as_fn_exit $as_status
44204792 } # as_fn_error
4793
44214794
44224795
44234796 # as_fn_set_status STATUS
44464819 { eval $1=; unset $1;}
44474820 }
44484821 as_unset=as_fn_unset
4822
44494823 # as_fn_append VAR VALUE
44504824 # ----------------------
44514825 # Append the text in VALUE to the end of the definition contained in VAR. Take
44524826 # advantage of any shell optimizations that allow amortized linear growth over
44534827 # repeated appends, instead of the typical quadratic growth present in naive
44544828 # implementations.
4455 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4829 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4830 then :
44564831 eval 'as_fn_append ()
44574832 {
44584833 eval $1+=\$2
44594834 }'
4460 else
4835 else $as_nop
44614836 as_fn_append ()
44624837 {
44634838 eval $1=\$$1\$2
44694844 # Perform arithmetic evaluation on the ARGs, and store the result in the
44704845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
44714846 # must be portable across $(()) and expr.
4472 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4848 then :
44734849 eval 'as_fn_arith ()
44744850 {
44754851 as_val=$(( $* ))
44764852 }'
4477 else
4853 else $as_nop
44784854 as_fn_arith ()
44794855 {
44804856 as_val=`expr "$@" || test $? -eq 1`
45054881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45064882 X"$0" : 'X\(//\)$' \| \
45074883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4508 $as_echo X/"$0" |
4884 printf "%s\n" X/"$0" |
45094885 sed '/^.*\/\([^/][^/]*\)\/*$/{
45104886 s//\1/
45114887 q
45274903 as_cr_digits='0123456789'
45284904 as_cr_alnum=$as_cr_Letters$as_cr_digits
45294905
4906
4907 # Determine whether it's possible to make 'echo' print without a newline.
4908 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4909 # for compatibility with existing Makefiles.
45304910 ECHO_C= ECHO_N= ECHO_T=
45314911 case `echo -n x` in #(((((
45324912 -n*)
45394919 *)
45404920 ECHO_N='-n';;
45414921 esac
4922
4923 # For backward compatibility with old third-party macros, we provide
4924 # the shell variables $as_echo and $as_echo_n. New code should use
4925 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4926 as_echo='printf %s\n'
4927 as_echo_n='printf %s'
45424928
45434929 rm -f conf$$ conf$$.exe conf$$.file
45444930 if test -d conf$$.dir; then
45814967 as_dirs=
45824968 while :; do
45834969 case $as_dir in #(
4584 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4970 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45854971 *) as_qdir=$as_dir;;
45864972 esac
45874973 as_dirs="'$as_qdir' $as_dirs"
45904976 X"$as_dir" : 'X\(//\)[^/]' \| \
45914977 X"$as_dir" : 'X\(//\)$' \| \
45924978 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4593 $as_echo X"$as_dir" |
4979 printf "%s\n" X"$as_dir" |
45944980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45954981 s//\1/
45964982 q
46525038 # report actual input values of CONFIG_FILES etc. instead of their
46535039 # values after options handling.
46545040 ac_log="
4655 This file was extended by virt-what $as_me 1.21, which was
4656 generated by GNU Autoconf 2.69. Invocation command line was
5041 This file was extended by virt-what $as_me 1.24, which was
5042 generated by GNU Autoconf 2.71. Invocation command line was
46575043
46585044 CONFIG_FILES = $CONFIG_FILES
46595045 CONFIG_HEADERS = $CONFIG_HEADERS
47155101 Report bugs to the package provider."
47165102
47175103 _ACEOF
5104 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5105 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
47185106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4719 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5107 ac_cs_config='$ac_cs_config_escaped'
47205108 ac_cs_version="\\
4721 virt-what config.status 1.21
4722 configured by $0, generated by GNU Autoconf 2.69,
5109 virt-what config.status 1.24
5110 configured by $0, generated by GNU Autoconf 2.71,
47235111 with options \\"\$ac_cs_config\\"
47245112
4725 Copyright (C) 2012 Free Software Foundation, Inc.
5113 Copyright (C) 2021 Free Software Foundation, Inc.
47265114 This config.status script is free software; the Free Software Foundation
47275115 gives unlimited permission to copy, distribute and modify it."
47285116
47625150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47635151 ac_cs_recheck=: ;;
47645152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4765 $as_echo "$ac_cs_version"; exit ;;
5153 printf "%s\n" "$ac_cs_version"; exit ;;
47665154 --config | --confi | --conf | --con | --co | --c )
4767 $as_echo "$ac_cs_config"; exit ;;
5155 printf "%s\n" "$ac_cs_config"; exit ;;
47685156 --debug | --debu | --deb | --de | --d | -d )
47695157 debug=: ;;
47705158 --file | --fil | --fi | --f )
47715159 $ac_shift
47725160 case $ac_optarg in
4773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5161 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47745162 '') as_fn_error $? "missing file argument" ;;
47755163 esac
47765164 as_fn_append CONFIG_FILES " '$ac_optarg'"
47785166 --header | --heade | --head | --hea )
47795167 $ac_shift
47805168 case $ac_optarg in
4781 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5169 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47825170 esac
47835171 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
47845172 ac_need_defaults=false;;
47875175 as_fn_error $? "ambiguous option: \`$1'
47885176 Try \`$0 --help' for more information.";;
47895177 --help | --hel | -h )
4790 $as_echo "$ac_cs_usage"; exit ;;
5178 printf "%s\n" "$ac_cs_usage"; exit ;;
47915179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47925180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47935181 ac_cs_silent=: ;;
48155203 if \$ac_cs_recheck; then
48165204 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48175205 shift
4818 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5206 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
48195207 CONFIG_SHELL='$SHELL'
48205208 export CONFIG_SHELL
48215209 exec "\$@"
48295217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48305218 ## Running $as_me. ##
48315219 _ASBOX
4832 $as_echo "$ac_log"
5220 printf "%s\n" "$ac_log"
48335221 } >&5
48345222
48355223 _ACEOF
48525240 "virt-what") CONFIG_FILES="$CONFIG_FILES virt-what" ;;
48535241 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48545242 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5243 "tests/alibaba-cloud-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/alibaba-cloud-x86/Makefile" ;;
48555244 "tests/aws-baremetal-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-baremetal-x86/Makefile" ;;
48565245 "tests/aws-kvm-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-kvm-arm/Makefile" ;;
48575246 "tests/aws-kvm-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-kvm-x86/Makefile" ;;
48595248 "tests/baremetal/Makefile") CONFIG_FILES="$CONFIG_FILES tests/baremetal/Makefile" ;;
48605249 "tests/bhyve/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bhyve/Makefile" ;;
48615250 "tests/docker/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docker/Makefile" ;;
5251 "tests/esx-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/esx-arm/Makefile" ;;
48625252 "tests/esx4.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/esx4.1/Makefile" ;;
48635253 "tests/hyperv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hyperv/Makefile" ;;
5254 "tests/illumos-lx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/illumos-lx/Makefile" ;;
48645255 "tests/kvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kvm/Makefile" ;;
48655256 "tests/kvm-explicit-cpu/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kvm-explicit-cpu/Makefile" ;;
48665257 "tests/ldoms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldoms/Makefile" ;;
48995290 # We use the long form for the default assignment because of an extremely
49005291 # bizarre bug on SunOS 4.1.3.
49015292 if $ac_need_defaults; then
4902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5293 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5294 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5295 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
49055296 fi
49065297
49075298 # Have a temporary directory for convenience. Make it in the build tree
52375628 esac ||
52385629 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
52395630 esac
5240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5631 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
52415632 as_fn_append ac_file_inputs " '$ac_f'"
52425633 done
52435634
52455636 # use $as_me), people would be surprised to read:
52465637 # /* config.h. Generated by config.status. */
52475638 configure_input='Generated from '`
5248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5639 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
52495640 `' by configure.'
52505641 if test x"$ac_file" != x-; then
52515642 configure_input="$ac_file. $configure_input"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5253 $as_echo "$as_me: creating $ac_file" >&6;}
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5644 printf "%s\n" "$as_me: creating $ac_file" >&6;}
52545645 fi
52555646 # Neutralize special characters interpreted by sed in replacement strings.
52565647 case $configure_input in #(
52575648 *\&* | *\|* | *\\* )
5258 ac_sed_conf_input=`$as_echo "$configure_input" |
5649 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
52595650 sed 's/[\\\\&|]/\\\\&/g'`;; #(
52605651 *) ac_sed_conf_input=$configure_input;;
52615652 esac
52725663 X"$ac_file" : 'X\(//\)[^/]' \| \
52735664 X"$ac_file" : 'X\(//\)$' \| \
52745665 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5275 $as_echo X"$ac_file" |
5666 printf "%s\n" X"$ac_file" |
52765667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52775668 s//\1/
52785669 q
52965687 case "$ac_dir" in
52975688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52985689 *)
5299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5690 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
53005691 # A ".." for each directory in $ac_dir_suffix.
5301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5692 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
53025693 case $ac_top_builddir_sub in
53035694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53045695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53605751 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
53615752 *datarootdir*) ac_datarootdir_seen=yes;;
53625753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5364 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5755 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
53655756 _ACEOF
53665757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53675758 ac_datarootdir_hack='
54055796 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
54065797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
54075798 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54095800 which seems to be undefined. Please make sure it is defined" >&5
5410 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5801 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54115802 which seems to be undefined. Please make sure it is defined" >&2;}
54125803
54135804 rm -f "$ac_tmp/stdin"
54235814 #
54245815 if test x"$ac_file" != x-; then
54255816 {
5426 $as_echo "/* $configure_input */" \
5817 printf "%s\n" "/* $configure_input */" >&1 \
54275818 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
54285819 } >"$ac_tmp/config.h" \
54295820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
54305821 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5432 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5823 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
54335824 else
54345825 rm -f "$ac_file"
54355826 mv "$ac_tmp/config.h" "$ac_file" \
54365827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
54375828 fi
54385829 else
5439 $as_echo "/* $configure_input */" \
5830 printf "%s\n" "/* $configure_input */" >&1 \
54405831 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
54415832 || as_fn_error $? "could not create -" "$LINENO" 5
54425833 fi
54565847 X"$_am_arg" : 'X\(//\)[^/]' \| \
54575848 X"$_am_arg" : 'X\(//\)$' \| \
54585849 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5459 $as_echo X"$_am_arg" |
5850 printf "%s\n" X"$_am_arg" |
54605851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54615852 s//\1/
54625853 q
54765867 s/.*/./; q'`/stamp-h$_am_stamp_count
54775868 ;;
54785869
5479 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5480 $as_echo "$as_me: executing $ac_file commands" >&6;}
5870 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5871 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
54815872 ;;
54825873 esac
54835874
55035894 for am_mf
55045895 do
55055896 # Strip MF so we end up with the name of the file.
5506 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
5897 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
55075898 # Check whether this is an Automake generated Makefile which includes
55085899 # dependency-tracking related rules and includes.
55095900 # Grep'ing the whole file directly is not great: AIX grep has a line
55155906 X"$am_mf" : 'X\(//\)[^/]' \| \
55165907 X"$am_mf" : 'X\(//\)$' \| \
55175908 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5518 $as_echo X"$am_mf" |
5909 printf "%s\n" X"$am_mf" |
55195910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55205911 s//\1/
55215912 q
55375928 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
55385929 X"$am_mf" : 'X\(//\)$' \| \
55395930 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5540 $as_echo X/"$am_mf" |
5931 printf "%s\n" X/"$am_mf" |
55415932 sed '/^.*\/\([^/][^/]*\)\/*$/{
55425933 s//\1/
55435934 q
55625953 (exit $ac_status); } || am_rc=$?
55635954 done
55645955 if test $am_rc -ne 0; then
5565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
55675958 as_fn_error $? "Something went wrong bootstrapping makefile fragments
55685959 for automatic dependency tracking. If GNU make was not used, consider
55695960 re-running the configure script with MAKE=\"gmake\" (or whatever is
56146005 $ac_cs_success || as_fn_exit 1
56156006 fi
56166007 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5618 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5619 fi
5620
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6009 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6010 fi
6011
6012
00 # virt-what
1 # Copyright (C) 2008-2018 Red Hat Inc.
1 # Copyright (C) 2008-2022 Red Hat Inc.
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1414 # along with this program; if not, write to the Free Software
1515 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1616
17 AC_INIT([virt-what],[1.21])
17 AC_INIT([virt-what],[1.24])
1818 AM_INIT_AUTOMAKE([foreign])
1919
2020 dnl Check for basic C environment.
3333
3434 dnl List of tests.
3535 tests="\
36 alibaba-cloud-x86 \
3637 aws-baremetal-x86 \
3738 aws-kvm-arm \
3839 aws-kvm-x86 \
4041 baremetal \
4142 bhyve \
4243 docker \
44 esx-arm \
4345 esx4.1 \
4446 hyperv \
47 illumos-lx \
4548 kvm \
4649 kvm-explicit-cpu \
4750 ldoms \
7780 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
7881 AC_CONFIG_FILES([Makefile
7982 tests/Makefile
83 tests/alibaba-cloud-x86/Makefile
8084 tests/aws-baremetal-x86/Makefile
8185 tests/aws-kvm-arm/Makefile
8286 tests/aws-kvm-x86/Makefile
8488 tests/baremetal/Makefile
8589 tests/bhyve/Makefile
8690 tests/docker/Makefile
91 tests/esx-arm/Makefile
8792 tests/esx4.1/Makefile
8893 tests/hyperv/Makefile
94 tests/illumos-lx/Makefile
8995 tests/kvm/Makefile
9096 tests/kvm-explicit-cpu/Makefile
9197 tests/ldoms/Makefile
+274
-190
depcomp less more
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2012-03-27.16; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
1515 # GNU General Public License for more details.
1616
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
2626
2727 case $1 in
2828 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3232 -h | --h*)
3333 cat <<\EOF
3434 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
5555 ;;
5656 esac
5757
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
58106 # A tabulation character.
59107 tab=' '
60108 # A newline character.
61109 nl='
62110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
63117
64118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
65119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
72126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
73127
74128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
75132
76133 # Some modes work just like other modes, but use different flags. We
77134 # parameterize here, but still list the modes in the big case below,
84141 fi
85142
86143 if test "$depmode" = dashXmstdout; then
87 # This is just like dashmstdout with a different argument.
88 dashmflag=-xM
89 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
90147 fi
91148
92149 cygpath_u="cygpath -u -f -"
93150 if test "$depmode" = msvcmsys; then
94 # This is just like msvisualcpp but w/o cygpath translation.
95 # Just convert the backslash-escaped backslashes to single forward
96 # slashes to satisfy depend.m4
97 cygpath_u='sed s,\\\\,/,g'
98 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
99156 fi
100157
101158 if test "$depmode" = msvc7msys; then
102 # This is just like msvc7 but w/o cygpath translation.
103 # Just convert the backslash-escaped backslashes to single forward
104 # slashes to satisfy depend.m4
105 cygpath_u='sed s,\\\\,/,g'
106 depmode=msvc7
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
107164 fi
108165
109166 if test "$depmode" = xlc; then
110 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
111 gccflag=-qmakedep=gcc,-MF
112 depmode=gcc
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
113170 fi
114171
115172 case "$depmode" in
132189 done
133190 "$@"
134191 stat=$?
135 if test $stat -eq 0; then :
136 else
192 if test $stat -ne 0; then
137193 rm -f "$tmpdepfile"
138194 exit $stat
139195 fi
141197 ;;
142198
143199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
144203 ## There are various ways to get dependency output from gcc. Here's
145204 ## why we pick this rather obscure method:
146205 ## - Don't want to use -MD because we'd like the dependencies to end
147206 ## up in a subdir. Having to rename by hand is ugly.
148207 ## (We might end up doing this anyway to support other compilers.)
149208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
150 ## -MM, not -M (despite what the docs say).
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
151211 ## - Using -M directly means running the compiler twice (even worse
152212 ## than renaming).
153213 if test -z "$gccflag"; then
155215 fi
156216 "$@" -Wp,"$gccflag$tmpdepfile"
157217 stat=$?
158 if test $stat -eq 0; then :
159 else
218 if test $stat -ne 0; then
160219 rm -f "$tmpdepfile"
161220 exit $stat
162221 fi
163222 rm -f "$depfile"
164223 echo "$object : \\" > "$depfile"
165 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
166 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
167226 sed -e 's/^[^:]*: / /' \
168227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
169228 ## This next piece of magic avoids the "deleted header file" problem.
172231 ## typically no way to rebuild the header). We avoid this by adding
173232 ## dummy dependencies for each header file. Too bad gcc doesn't do
174233 ## this for us directly.
175 tr ' ' "$nl" < "$tmpdepfile" |
176234 ## Some versions of gcc put a space before the ':'. On the theory
177235 ## that the space means something, we add a space to the output as
178236 ## well. hp depmode also adds that space, but also prefixes the VPATH
179237 ## to the object. Take care to not repeat it in the output.
180238 ## Some versions of the HPUX 10.20 sed can't process this invocation
181239 ## correctly. Breaking it into two sed invocations is a workaround.
182 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
183 | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
184243 rm -f "$tmpdepfile"
185244 ;;
186245
198257 "$@" -MDupdate "$tmpdepfile"
199258 fi
200259 stat=$?
201 if test $stat -eq 0; then :
202 else
260 if test $stat -ne 0; then
203261 rm -f "$tmpdepfile"
204262 exit $stat
205263 fi
207265
208266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
209267 echo "$object : \\" > "$depfile"
210
211268 # Clip off the initial element (the dependent). Don't try to be
212269 # clever and replace this with sed code, as IRIX sed won't handle
213270 # lines with more than a fixed number of characters (4096 in
215272 # the IRIX cc adds comments like '#:fec' to the end of the
216273 # dependency line.
217274 tr ' ' "$nl" < "$tmpdepfile" \
218 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
219 tr "$nl" ' ' >> "$depfile"
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
220277 echo >> "$depfile"
221
222278 # The second pass generates a dummy entry for each header file.
223279 tr ' ' "$nl" < "$tmpdepfile" \
224 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
225 >> "$depfile"
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
226282 else
227 # The sourcefile does not contain any dependencies, so just
228 # store a dummy comment line, to avoid errors with the Makefile
229 # "include basename.Plo" scheme.
230 echo "#dummy" > "$depfile"
283 make_dummy_depfile
231284 fi
232285 rm -f "$tmpdepfile"
233286 ;;
245298 # current directory. Also, the AIX compiler puts '$object:' at the
246299 # start of each line; $object doesn't have directory information.
247300 # Version 6 uses the directory in both cases.
248 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
249 test "x$dir" = "x$object" && dir=
250 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
251303 if test "$libtool" = yes; then
252304 tmpdepfile1=$dir$base.u
253305 tmpdepfile2=$base.u
260312 "$@" -M
261313 fi
262314 stat=$?
263
264 if test $stat -eq 0; then :
265 else
315 if test $stat -ne 0; then
266316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
267317 exit $stat
268318 fi
271321 do
272322 test -f "$tmpdepfile" && break
273323 done
274 if test -f "$tmpdepfile"; then
275 # Each line is of the form 'foo.o: dependent.h'.
276 # Do two passes, one to just change these to
277 # '$object: dependent.h' and one to simply 'dependent.h:'.
278 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
279 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
280 else
281 # The sourcefile does not contain any dependencies, so just
282 # store a dummy comment line, to avoid errors with the Makefile
283 # "include basename.Plo" scheme.
284 echo "#dummy" > "$depfile"
285 fi
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
286355 rm -f "$tmpdepfile"
287356 ;;
288357
289 icc)
290 # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
291 # However on
292 # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
293 # ICC 7.0 will fill foo.d with something like
294 # foo.o: sub/foo.c
295 # foo.o: sub/foo.h
296 # which is wrong. We want
297 # sub/foo.o: sub/foo.c
298 # sub/foo.o: sub/foo.h
299 # sub/foo.c:
300 # sub/foo.h:
301 # ICC 7.1 will output
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
302368 # foo.o: sub/foo.c sub/foo.h
303 # and will wrap long lines using '\':
369 # and will wrap long lines using '\' :
304370 # foo.o: sub/foo.c ... \
305371 # sub/foo.h ... \
306372 # ...
307 # tcc 0.9.26 (FIXME still under development at the moment of writing)
308 # will emit a similar output, but also prepend the continuation lines
309 # with horizontal tabulation characters.
310 "$@" -MD -MF "$tmpdepfile"
311 stat=$?
312 if test $stat -eq 0; then :
313 else
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
314418 rm -f "$tmpdepfile"
315419 exit $stat
316420 fi
317421 rm -f "$depfile"
318 # Each line is of the form 'foo.o: dependent.h',
319 # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
320424 # Do two passes, one to just change these to
321 # '$object: dependent.h' and one to simply 'dependent.h:'.
322 sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
323 < "$tmpdepfile" > "$depfile"
324 sed '
325 s/[ '"$tab"'][ '"$tab"']*/ /g
326 s/^ *//
327 s/ *\\*$//
328 s/^[^:]*: *//
329 /^$/d
330 /:$/d
331 s/$/ :/
332 ' < "$tmpdepfile" >> "$depfile"
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
333431 rm -f "$tmpdepfile"
334432 ;;
335433
340438 # 'foo.d', which lands next to the object file, wherever that
341439 # happens to be.
342440 # Much of this is similar to the tru64 case; see comments there.
343 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
344 test "x$dir" = "x$object" && dir=
345 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
346443 if test "$libtool" = yes; then
347444 tmpdepfile1=$dir$base.d
348445 tmpdepfile2=$dir.libs/$base.d
353450 "$@" +Maked
354451 fi
355452 stat=$?
356 if test $stat -eq 0; then :
357 else
453 if test $stat -ne 0; then
358454 rm -f "$tmpdepfile1" "$tmpdepfile2"
359455 exit $stat
360456 fi
364460 test -f "$tmpdepfile" && break
365461 done
366462 if test -f "$tmpdepfile"; then
367 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
368464 # Add 'dependent.h:' lines.
369465 sed -ne '2,${
370 s/^ *//
371 s/ \\*$//
372 s/$/:/
373 p
374 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
375471 else
376 echo "#dummy" > "$depfile"
472 make_dummy_depfile
377473 fi
378474 rm -f "$tmpdepfile" "$tmpdepfile2"
379475 ;;
380476
381477 tru64)
382 # The Tru64 compiler uses -MD to generate dependencies as a side
383 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
384 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
385 # dependencies in 'foo.d' instead, so we check for that too.
386 # Subdirectories are respected.
387 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
388 test "x$dir" = "x$object" && dir=
389 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
390
391 if test "$libtool" = yes; then
392 # With Tru64 cc, shared objects can also be used to make a
393 # static library. This mechanism is used in libtool 1.4 series to
394 # handle both shared and static libraries in a single compilation.
395 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
396 #
397 # With libtool 1.5 this exception was removed, and libtool now
398 # generates 2 separate objects for the 2 libraries. These two
399 # compilations output dependencies in $dir.libs/$base.o.d and
400 # in $dir$base.o.d. We have to check for both files, because
401 # one of the two compilations can be disabled. We should prefer
402 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
403 # automatically cleaned when .libs/ is deleted, while ignoring
404 # the former would cause a distcleancheck panic.
405 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
406 tmpdepfile2=$dir$base.o.d # libtool 1.5
407 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
408 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
409 "$@" -Wc,-MD
410 else
411 tmpdepfile1=$dir$base.o.d
412 tmpdepfile2=$dir$base.d
413 tmpdepfile3=$dir$base.d
414 tmpdepfile4=$dir$base.d
415 "$@" -MD
416 fi
417
418 stat=$?
419 if test $stat -eq 0; then :
420 else
421 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
422 exit $stat
423 fi
424
425 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
426 do
427 test -f "$tmpdepfile" && break
428 done
429 if test -f "$tmpdepfile"; then
430 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
431 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
432 else
433 echo "#dummy" > "$depfile"
434 fi
435 rm -f "$tmpdepfile"
436 ;;
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
437518
438519 msvc7)
439520 if test "$libtool" = yes; then
444525 "$@" $showIncludes > "$tmpdepfile"
445526 stat=$?
446527 grep -v '^Note: including file: ' "$tmpdepfile"
447 if test "$stat" = 0; then :
448 else
528 if test $stat -ne 0; then
449529 rm -f "$tmpdepfile"
450530 exit $stat
451531 fi
471551 G
472552 p
473553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
474555 rm -f "$tmpdepfile"
475556 ;;
476557
522603 # in the target name. This is to cope with DOS-style filenames:
523604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
524605 "$@" $dashmflag |
525 sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
526607 rm -f "$depfile"
527608 cat < "$tmpdepfile" > "$depfile"
528 tr ' ' "$nl" < "$tmpdepfile" | \
529 ## Some versions of the HPUX 10.20 sed can't process this invocation
530 ## correctly. Breaking it into two sed invocations is a workaround.
531 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
532614 rm -f "$tmpdepfile"
533615 ;;
534616
581663 # makedepend may prepend the VPATH from the source file name to the object.
582664 # No need to regex-escape $object, excess matching of '.' is harmless.
583665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
584 sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
585 ## Some versions of the HPUX 10.20 sed can't process this invocation
586 ## correctly. Breaking it into two sed invocations is a workaround.
587 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
588672 rm -f "$tmpdepfile" "$tmpdepfile".bak
589673 ;;
590674
620704 esac
621705 done
622706
623 "$@" -E |
624 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
625 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
626 sed '$ s: \\$::' > "$tmpdepfile"
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
627711 rm -f "$depfile"
628712 echo "$object : \\" > "$depfile"
629713 cat < "$tmpdepfile" >> "$depfile"
655739 shift
656740 ;;
657741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
658 set fnord "$@"
659 shift
660 shift
661 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
662746 *)
663 set fnord "$@" "$arg"
664 shift
665 shift
666 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
667751 esac
668752 done
669753 "$@" -E 2>/dev/null |
698782 # Local Variables:
699783 # mode: shell-script
700784 # sh-indentation: 2
701 # eval: (add-hook 'write-file-hooks 'time-stamp)
785 # eval: (add-hook 'before-save-hook 'time-stamp)
702786 # time-stamp-start: "scriptversion="
703787 # time-stamp-format: "%:y-%02m-%02d.%02H"
704 # time-stamp-time-zone: "UTC"
788 # time-stamp-time-zone: "UTC0"
705789 # time-stamp-end: "; # UTC"
706790 # End:
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-11-20.07; # UTC
3 scriptversion=2018-03-11.20; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4344 nl='
4445 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
5050 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
51 doit_exec=${doit:-exec}
5652
5753 # Put in absolute file names if you don't have them in your path;
5854 # or use environment vars.
6763 rmprog=${RMPROG-rm}
6864 stripprog=${STRIPPROG-strip}
6965
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
8166 posix_mkdir=
8267
8368 # Desired mode of installed file.
9681 dst_arg=
9782
9883 copy_on_change=false
99 no_target_directory=
84 is_target_a_directory=possibly
10085
10186 usage="\
10287 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
136121 -d) dir_arg=true;;
137122
138123 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
124 shift;;
140125
141126 --help) echo "$usage"; exit $?;;
142127
143128 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
151135
152136 -o) chowncmd="$chownprog $2"
153 shift;;
137 shift;;
154138
155139 -s) stripcmd=$stripprog;;
156140
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
165151
166152 --version) echo "$0 $scriptversion"; exit $?;;
167153
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
173159
174160 *) break;;
175161 esac
176162 shift
177163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
178174
179175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
180176 # When -d is used, all remaining arguments are directories to create.
207203 fi
208204
209205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
210215 do_exit='(exit $ret); exit $ret'
211216 trap "ret=129; $do_exit" 1
212217 trap "ret=130; $do_exit" 2
222227
223228 *[0-7])
224229 if test -z "$stripcmd"; then
225 u_plus_rw=
230 u_plus_rw=
226231 else
227 u_plus_rw='% 200'
232 u_plus_rw='% 200'
228233 fi
229234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
230235 *)
231236 if test -z "$stripcmd"; then
232 u_plus_rw=
237 u_plus_rw=
233238 else
234 u_plus_rw=,u+rw
239 u_plus_rw=,u+rw
235240 fi
236241 cp_umask=$mode$u_plus_rw;;
237242 esac
265270 fi
266271 dst=$dst_arg
267272
268 # If destination is a directory, append the input filename; won't work
269 # if double slashes aren't ignored.
273 # If destination is a directory, append the input filename.
270274 if test -d "$dst"; then
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
275 if test "$is_target_a_directory" = never; then
276 echo "$0: $dst_arg: Is a directory" >&2
277 exit 1
274278 fi
275279 dstdir=$dst
276 dst=$dstdir/`basename "$src"`
280 dstbase=`basename "$src"`
281 case $dst in
282 */) dst=$dst$dstbase;;
283 *) dst=$dst/$dstbase;;
284 esac
277285 dstdir_status=0
278286 else
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
287 dstdir=`dirname "$dst"`
306288 test -d "$dstdir"
307289 dstdir_status=$?
308290 fi
309291 fi
310292
293 case $dstdir in
294 */) dstdirslash=$dstdir;;
295 *) dstdirslash=$dstdir/;;
296 esac
297
311298 obsolete_mkdir_used=false
312299
313300 if test $dstdir_status != 0; then
314301 case $posix_mkdir in
315302 '')
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319 # With -d, create the new directory with the user-specified mode.
320 # Otherwise, rely on $mkdir_umask.
321 if test -n "$dir_arg"; then
322 mkdir_mode=-m$mode
323 else
324 mkdir_mode=
325 fi
326
327 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
378374 esac
379375
380376 if
381377 $posix_mkdir && (
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
378 umask $mkdir_umask &&
379 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
384380 )
385381 then :
386382 else
390386 # directory the slow way, step by step, checking for races as we go.
391387
392388 case $dstdir in
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
389 /*) prefix='/';;
390 [-=\(\)!]*) prefix='./';;
391 *) prefix='';;
396392 esac
397
398 eval "$initialize_posix_glob"
399393
400394 oIFS=$IFS
401395 IFS=/
402 $posix_glob set -f
396 set -f
403397 set fnord $dstdir
404398 shift
405 $posix_glob set +f
399 set +f
406400 IFS=$oIFS
407401
408402 prefixes=
409403
410404 for d
411405 do
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
406 test X"$d" = X && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
432426 done
433427
434428 if test -n "$prefixes"; then
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
440434 fi
441435 fi
442436 fi
449443 else
450444
451445 # Make a couple of temp file names in the proper directory.
452 dsttmp=$dstdir/_inst.$$_
453 rmtmp=$dstdir/_rm.$$_
446 dsttmp=${dstdirslash}_inst.$$_
447 rmtmp=${dstdirslash}_rm.$$_
454448
455449 # Trap to clean up those temp files at exit.
456450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
457451
458452 # Copy the file name to the temp name.
459 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453 (umask $cp_umask &&
454 { test -z "$stripcmd" || {
455 # Create $dsttmp read-write so that cp doesn't create it read-only,
456 # which would cause strip to fail.
457 if test -z "$doit"; then
458 : >"$dsttmp" # No need to fork-exec 'touch'.
459 else
460 $doit touch "$dsttmp"
461 fi
462 }
463 } &&
464 $doit_exec $cpprog "$src" "$dsttmp") &&
460465
461466 # and set any options; do chmod last to preserve setuid bits.
462467 #
471476
472477 # If -C, don't bother to copy if it wouldn't change the file.
473478 if $copy_on_change &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
479 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
480 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
481 set -f &&
479482 set X $old && old=:$2:$4:$5:$6 &&
480483 set X $new && new=:$2:$4:$5:$6 &&
481 $posix_glob set +f &&
482
484 set +f &&
483485 test "$old" = "$new" &&
484486 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
485487 then
492494 # to itself, or perhaps because mv is so ancient that it does not
493495 # support -f.
494496 {
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
497 # Now remove or move aside any old file at destination location.
498 # We try this two ways since rm can't unlink itself on some
499 # systems and the destination file might be busy for other
500 # reasons. In this case, the final cleanup might fail but the new
501 # file should still install successfully.
502 {
503 test ! -f "$dst" ||
504 $doit $rmcmd -f "$dst" 2>/dev/null ||
505 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
506 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
507 } ||
508 { echo "$0: cannot unlink or rename $dst" >&2
509 (exit 1); exit 1
510 }
511 } &&
512
513 # Now rename the file to the real destination.
514 $doit $mvcmd "$dsttmp" "$dst"
513515 }
514516 fi || exit 1
515517
518520 done
519521
520522 # Local variables:
521 # eval: (add-hook 'write-file-hooks 'time-stamp)
523 # eval: (add-hook 'before-save-hook 'time-stamp)
522524 # time-stamp-start: "scriptversion="
523525 # time-stamp-format: "%:y-%02m-%02d.%02H"
524 # time-stamp-time-zone: "UTC"
526 # time-stamp-time-zone: "UTC0"
525527 # time-stamp-end: "; # UTC"
526528 # End:
+153
-268
missing less more
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2012-01-06.18; # UTC
4
5 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
6 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
2828 exit 1
2929 fi
3030
31 run=:
32 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
33 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
34
35 # In the cases where this matters, 'missing' is being run in the
36 # srcdir already.
37 if test -f configure.ac; then
38 configure_ac=configure.ac
39 else
40 configure_ac=configure.in
41 fi
42
43 msg="missing on your system"
44
4531 case $1 in
46 --run)
47 # Try to run requested program, and just exit if it succeeds.
48 run=
49 shift
50 "$@" && exit 0
51 # Exit code 63 means version mismatch. This often happens
52 # when the user try to use an ancient version of a tool on
53 # a file that requires a minimum version. In this case we
54 # we should proceed has if the program had been absent, or
55 # if --run hadn't been passed.
56 if test $? = 63; then
57 run=:
58 msg="probably too old"
59 fi
60 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6143
6244 -h|--h|--he|--hel|--help)
6345 echo "\
6446 $0 [OPTION]... PROGRAM [ARGUMENT]...
6547
66 Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
67 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6850
6951 Options:
7052 -h, --help display this help and exit
7153 -v, --version output version information and exit
72 --run try to run the given command, and emulate it if it fails
7354
7455 Supported PROGRAM values:
75 aclocal touch file 'aclocal.m4'
76 autoconf touch file 'configure'
77 autoheader touch file 'config.h.in'
78 autom4te touch the output file, or create a stub one
79 automake touch all 'Makefile.in' files
80 bison create 'y.tab.[ch]', if possible, from existing .[ch]
81 flex create 'lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create 'lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 yacc create 'y.tab.[ch]', if possible, from existing .[ch]
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
8658
8759 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
8860 'g' are ignored when checking the name.
9769 ;;
9870
9971 -*)
100 echo 1>&2 "$0: Unknown '$1' option"
72 echo 1>&2 "$0: unknown '$1' option"
10173 echo 1>&2 "Try '$0 --help' for more information"
10274 exit 1
10375 ;;
10476
10577 esac
10678
107 # normalize program name to check for.
108 program=`echo "$1" | sed '
109 s/^gnu-//; t
110 s/^gnu//; t
111 s/^g//; t'`
112
113 # Now exit if we have it, but it failed. Also exit now if we
114 # don't have it and --version was passed (most likely to detect
115 # the program). This is about non-GNU programs, so use $1 not
116 # $program.
117 case $1 in
118 lex*|yacc*)
119 # Not GNU programs, they don't have --version.
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running '$TOOL --version' or '$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case $program in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: '$1' is $msg. You should only need it if
141 you modified 'acinclude.m4' or '${configure_ac}'. You might want
142 to install the Automake and Perl packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf*)
148 echo 1>&2 "\
149 WARNING: '$1' is $msg. You should only need it if
150 you modified '${configure_ac}'. You might want to install the
151 Autoconf and GNU m4 packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader*)
157 echo 1>&2 "\
158 WARNING: '$1' is $msg. You should only need it if
159 you modified 'acconfig.h' or '${configure_ac}'. You might want
160 to install the Autoconf and GNU m4 packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case $f in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: '$1' is $msg. You should only need it if
178 you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'.
179 You might want to install the Automake and Perl packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te*)
187 echo 1>&2 "\
188 WARNING: '$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get '$1' as part of Autoconf from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n "$sed_output"`
195 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison*|yacc*)
210 echo 1>&2 "\
211 WARNING: '$1' $msg. You should only need it if
212 you modified a '.y' file. You may need the Bison package
213 in order for those modifications to take effect. You can get
214 Bison from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if test $# -ne 1; then
217 eval LASTARG=\${$#}
218 case $LASTARG in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if test -f "$SRCFILE"; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if test -f "$SRCFILE"; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if test ! -f y.tab.h; then
232 echo >y.tab.h
233 fi
234 if test ! -f y.tab.c; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex*|flex*)
240 echo 1>&2 "\
241 WARNING: '$1' is $msg. You should only need it if
242 you modified a '.l' file. You may need the Flex package
243 in order for those modifications to take effect. You can get
244 Flex from any GNU archive site."
245 rm -f lex.yy.c
246 if test $# -ne 1; then
247 eval LASTARG=\${$#}
248 case $LASTARG in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if test -f "$SRCFILE"; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if test ! -f lex.yy.c; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man*)
263 echo 1>&2 "\
264 WARNING: '$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 Help2man package in order for those modifications to take
267 effect. You can get Help2man from any GNU archive site."
268
269 file=`echo "$*" | sed -n "$sed_output"`
270 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
271 if test -f "$file"; then
272 touch $file
273 else
274 test -z "$file" || exec >$file
275 echo ".ab help2man is required to generate this page"
276 exit $?
277 fi
278 ;;
279
280 makeinfo*)
281 echo 1>&2 "\
282 WARNING: '$1' is $msg. You should only need it if
283 you modified a '.texi' or '.texinfo' file, or any other file
284 indirectly affecting the aspect of the manual. The spurious
285 call might also be the consequence of using a buggy 'make' (AIX,
286 DU, IRIX). You might want to install the Texinfo package or
287 the GNU make package. Grab either from any GNU archive site."
288 # The file to touch is that specified with -o ...
289 file=`echo "$*" | sed -n "$sed_output"`
290 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
291 if test -z "$file"; then
292 # ... or it is the one specified with @setfilename ...
293 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
294 file=`sed -n '
295 /^@setfilename/{
296 s/.* \([^ ]*\) *$/\1/
297 p
298 q
299 }' $infile`
300 # ... or it is derived from the source name (dir/f.texi becomes f.info)
301 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
302 fi
303 # If the file does not exist, the user really needs makeinfo;
304 # let's fail without touching anything.
305 test -f $file || exit 1
306 touch $file
307 ;;
308
309 *)
310 echo 1>&2 "\
311 WARNING: '$1' is needed, and is $msg.
312 You might have modified some files without having the
313 proper tools for further handling them. Check the 'README' file,
314 it often tells you about the needed prerequisites for installing
315 this package. You may also peek at any GNU archive site, in case
316 some other package would contain this missing '$1' program."
317 exit 1
318 ;;
319 esac
320
321 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
322207
323208 # Local variables:
324 # eval: (add-hook 'write-file-hooks 'time-stamp)
209 # eval: (add-hook 'before-save-hook 'time-stamp)
325210 # time-stamp-start: "scriptversion="
326211 # time-stamp-format: "%:y-%02m-%02d.%02H"
327 # time-stamp-time-zone: "UTC"
212 # time-stamp-time-zone: "UTC0"
328213 # time-stamp-end: "; # UTC"
329214 # End:
00 #! /bin/sh
11 # test-driver - basic testsuite driver script.
22
3 scriptversion=2012-06-27.10; # UTC
3 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
5 # Copyright (C) 2011-2020 Free Software Foundation, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
1515 # GNU General Public License for more details.
1616 #
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
4343 Usage:
4444 test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
4545 [--expect-failure={yes|no}] [--color-tests={yes|no}]
46 [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
46 [--enable-hard-errors={yes|no}] [--]
47 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
4748 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
4849 END
4950 }
5051
51 # TODO: better error handling in option parsing (in particular, ensure
52 # TODO: $log_file, $trs_file and $test_name are defined).
5352 test_name= # Used for reporting.
5453 log_file= # Where to save the output of the test script.
5554 trs_file= # Where to save the metadata of the test run.
6867 --enable-hard-errors) enable_hard_errors=$2; shift;;
6968 --) shift; break;;
7069 -*) usage_error "invalid option: '$1'";;
70 *) break;;
7171 esac
7272 shift
7373 done
74
75 missing_opts=
76 test x"$test_name" = x && missing_opts="$missing_opts --test-name"
77 test x"$log_file" = x && missing_opts="$missing_opts --log-file"
78 test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
79 if test x"$missing_opts" != x; then
80 usage_error "the following mandatory options are missing:$missing_opts"
81 fi
82
83 if test $# -eq 0; then
84 usage_error "missing argument"
85 fi
7486
7587 if test $color_tests = yes; then
7688 # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
93105 # Test script is run here.
94106 "$@" >$log_file 2>&1
95107 estatus=$?
108
96109 if test $enable_hard_errors = no && test $estatus -eq 99; then
97 estatus=1
110 tweaked_estatus=1
111 else
112 tweaked_estatus=$estatus
98113 fi
99114
100 case $estatus:$expect_failure in
115 case $tweaked_estatus:$expect_failure in
101116 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
102117 0:*) col=$grn res=PASS recheck=no gcopy=no;;
103118 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
105120 *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
106121 *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
107122 esac
123
124 # Report the test outcome and exit status in the logs, so that one can
125 # know whether the test passed or failed simply by looking at the '.log'
126 # file, without the need of also peaking into the corresponding '.trs'
127 # file (automake bug#11814).
128 echo "$res $test_name (exit status: $estatus)" >>$log_file
108129
109130 # Report outcome to console.
110131 echo "${col}${res}${std}: $test_name"
118139 # Local Variables:
119140 # mode: shell-script
120141 # sh-indentation: 2
121 # eval: (add-hook 'write-file-hooks 'time-stamp)
142 # eval: (add-hook 'before-save-hook 'time-stamp)
122143 # time-stamp-start: "scriptversion="
123144 # time-stamp-format: "%:y-%02m-%02d.%02H"
124 # time-stamp-time-zone: "UTC"
145 # time-stamp-time-zone: "UTC0"
125146 # time-stamp-end: "; # UTC"
126147 # End:
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
165165 unique=`for i in $$list; do \
166166 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
167167 done | $(am__uniquify_input)`
168 ETAGS = etags
169 CTAGS = ctags
170168 DIST_SUBDIRS = $(SUBDIRS)
171169 am__DIST_COMMON = $(srcdir)/Makefile.in
172170 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
207205 CFLAGS = @CFLAGS@
208206 CPP = @CPP@
209207 CPPFLAGS = @CPPFLAGS@
208 CSCOPE = @CSCOPE@
209 CTAGS = @CTAGS@
210210 CYGPATH_W = @CYGPATH_W@
211211 DEFS = @DEFS@
212212 DEPDIR = @DEPDIR@
213213 ECHO_C = @ECHO_C@
214214 ECHO_N = @ECHO_N@
215215 ECHO_T = @ECHO_T@
216 ETAGS = @ETAGS@
216217 EXEEXT = @EXEEXT@
217218 INSTALL = @INSTALL@
218219 INSTALL_DATA = @INSTALL_DATA@
281282 prefix = @prefix@
282283 program_transform_name = @program_transform_name@
283284 psdir = @psdir@
285 runstatedir = @runstatedir@
284286 sbindir = @sbindir@
285287 sharedstatedir = @sharedstatedir@
286288 srcdir = @srcdir@
423425
424426 distclean-tags:
425427 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
426
427428 distdir: $(BUILT_SOURCES)
428429 $(MAKE) $(AM_MAKEFLAGS) distdir-am
429430
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/alibaba-cloud-x86
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
319 RECHECK_LOGS = $(TEST_LOGS)
320 AM_RECURSIVE_TARGETS = check recheck
321 TEST_SUITE_LOG = test-suite.log
322 TEST_EXTENSIONS = @EXEEXT@ .test
323 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
324 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
325 am__set_b = \
326 case '$@' in \
327 */*) \
328 case '$*' in \
329 */*) b='$*';; \
330 *) b=`echo '$@' | sed 's/\.log$$//'`; \
331 esac;; \
332 *) \
333 b='$*';; \
334 esac
335 am__test_logs1 = $(TESTS:=.log)
336 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
337 TEST_LOGS = $(am__test_logs2:.test.log=.log)
338 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
339 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
340 $(TEST_LOG_FLAGS)
341 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
342 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
343 ACLOCAL = @ACLOCAL@
344 AMTAR = @AMTAR@
345 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
346 AUTOCONF = @AUTOCONF@
347 AUTOHEADER = @AUTOHEADER@
348 AUTOMAKE = @AUTOMAKE@
349 AWK = @AWK@
350 CC = @CC@
351 CCDEPMODE = @CCDEPMODE@
352 CFLAGS = @CFLAGS@
353 CPP = @CPP@
354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
357 CYGPATH_W = @CYGPATH_W@
358 DEFS = @DEFS@
359 DEPDIR = @DEPDIR@
360 ECHO_C = @ECHO_C@
361 ECHO_N = @ECHO_N@
362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
364 EXEEXT = @EXEEXT@
365 INSTALL = @INSTALL@
366 INSTALL_DATA = @INSTALL_DATA@
367 INSTALL_PROGRAM = @INSTALL_PROGRAM@
368 INSTALL_SCRIPT = @INSTALL_SCRIPT@
369 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
370 LDFLAGS = @LDFLAGS@
371 LIBOBJS = @LIBOBJS@
372 LIBS = @LIBS@
373 LTLIBOBJS = @LTLIBOBJS@
374 MAKEINFO = @MAKEINFO@
375 MKDIR_P = @MKDIR_P@
376 OBJEXT = @OBJEXT@
377 PACKAGE = @PACKAGE@
378 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
379 PACKAGE_NAME = @PACKAGE_NAME@
380 PACKAGE_STRING = @PACKAGE_STRING@
381 PACKAGE_TARNAME = @PACKAGE_TARNAME@
382 PACKAGE_URL = @PACKAGE_URL@
383 PACKAGE_VERSION = @PACKAGE_VERSION@
384 PATH_SEPARATOR = @PATH_SEPARATOR@
385 POD2MAN = @POD2MAN@
386 SET_MAKE = @SET_MAKE@
387 SHELL = @SHELL@
388 STRIP = @STRIP@
389 VERSION = @VERSION@
390 abs_builddir = @abs_builddir@
391 abs_srcdir = @abs_srcdir@
392 abs_top_builddir = @abs_top_builddir@
393 abs_top_srcdir = @abs_top_srcdir@
394 ac_ct_CC = @ac_ct_CC@
395 am__include = @am__include@
396 am__leading_dot = @am__leading_dot@
397 am__quote = @am__quote@
398 am__tar = @am__tar@
399 am__untar = @am__untar@
400 bindir = @bindir@
401 build = @build@
402 build_alias = @build_alias@
403 build_cpu = @build_cpu@
404 build_os = @build_os@
405 build_vendor = @build_vendor@
406 builddir = @builddir@
407 datadir = @datadir@
408 datarootdir = @datarootdir@
409 docdir = @docdir@
410 dvidir = @dvidir@
411 exec_prefix = @exec_prefix@
412 host = @host@
413 host_alias = @host_alias@
414 host_cpu = @host_cpu@
415 host_os = @host_os@
416 host_vendor = @host_vendor@
417 htmldir = @htmldir@
418 includedir = @includedir@
419 infodir = @infodir@
420 install_sh = @install_sh@
421 libdir = @libdir@
422 libexecdir = @libexecdir@
423 localedir = @localedir@
424 localstatedir = @localstatedir@
425 mandir = @mandir@
426 mkdir_p = @mkdir_p@
427 oldincludedir = @oldincludedir@
428 pdfdir = @pdfdir@
429 prefix = @prefix@
430 program_transform_name = @program_transform_name@
431 psdir = @psdir@
432 runstatedir = @runstatedir@
433 sbindir = @sbindir@
434 sharedstatedir = @sharedstatedir@
435 srcdir = @srcdir@
436 sysconfdir = @sysconfdir@
437 target_alias = @target_alias@
438 tests = @tests@
439 top_build_prefix = @top_build_prefix@
440 top_builddir = @top_builddir@
441 top_srcdir = @top_srcdir@
442 CLEANFILES = *~
443 TESTS = test.sh
444 EXTRA_DIST = \
445 test.sh \
446 proc/cpuinfo \
447 proc/self/status \
448 sbin/dmidecode \
449 sbin/uname \
450 sbin/virt-what-cpuid-helper
451
452 all: all-am
453
454 .SUFFIXES:
455 .SUFFIXES: .log .test .test$(EXEEXT) .trs
456 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
457 @for dep in $?; do \
458 case '$(am__configure_deps)' in \
459 *$$dep*) \
460 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
461 && { if test -f $@; then exit 0; else break; fi; }; \
462 exit 1;; \
463 esac; \
464 done; \
465 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/alibaba-cloud-x86/Makefile'; \
466 $(am__cd) $(top_srcdir) && \
467 $(AUTOMAKE) --foreign tests/alibaba-cloud-x86/Makefile
468 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
469 @case '$?' in \
470 *config.status*) \
471 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
472 *) \
473 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
474 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
475 esac;
476
477 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479
480 $(top_srcdir)/configure: $(am__configure_deps)
481 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
482 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
483 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
484 $(am__aclocal_m4_deps):
485 tags TAGS:
486
487 ctags CTAGS:
488
489 cscope cscopelist:
490
491
492 # Recover from deleted '.trs' file; this should ensure that
493 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
494 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
495 # to avoid problems with "make -n".
496 .log.trs:
497 rm -f $< $@
498 $(MAKE) $(AM_MAKEFLAGS) $<
499
500 # Leading 'am--fnord' is there to ensure the list of targets does not
501 # expand to empty, as could happen e.g. with make check TESTS=''.
502 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
503 am--force-recheck:
504 @:
505
506 $(TEST_SUITE_LOG): $(TEST_LOGS)
507 @$(am__set_TESTS_bases); \
508 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
509 redo_bases=`for i in $$bases; do \
510 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
511 done`; \
512 if test -n "$$redo_bases"; then \
513 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
514 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
515 if $(am__make_dryrun); then :; else \
516 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
517 fi; \
518 fi; \
519 if test -n "$$am__remaking_logs"; then \
520 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
521 "recursion detected" >&2; \
522 elif test -n "$$redo_logs"; then \
523 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
524 fi; \
525 if $(am__make_dryrun); then :; else \
526 st=0; \
527 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
528 for i in $$redo_bases; do \
529 test -f $$i.trs && test -r $$i.trs \
530 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
531 test -f $$i.log && test -r $$i.log \
532 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
533 done; \
534 test $$st -eq 0 || exit 1; \
535 fi
536 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
537 ws='[ ]'; \
538 results=`for b in $$bases; do echo $$b.trs; done`; \
539 test -n "$$results" || results=/dev/null; \
540 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
541 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
542 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
543 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
544 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
545 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
546 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
547 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
548 success=true; \
549 else \
550 success=false; \
551 fi; \
552 br='==================='; br=$$br$$br$$br$$br; \
553 result_count () \
554 { \
555 if test x"$$1" = x"--maybe-color"; then \
556 maybe_colorize=yes; \
557 elif test x"$$1" = x"--no-color"; then \
558 maybe_colorize=no; \
559 else \
560 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
561 fi; \
562 shift; \
563 desc=$$1 count=$$2; \
564 if test $$maybe_colorize = yes && test $$count -gt 0; then \
565 color_start=$$3 color_end=$$std; \
566 else \
567 color_start= color_end=; \
568 fi; \
569 echo "$${color_start}# $$desc $$count$${color_end}"; \
570 }; \
571 create_testsuite_report () \
572 { \
573 result_count $$1 "TOTAL:" $$all "$$brg"; \
574 result_count $$1 "PASS: " $$pass "$$grn"; \
575 result_count $$1 "SKIP: " $$skip "$$blu"; \
576 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
577 result_count $$1 "FAIL: " $$fail "$$red"; \
578 result_count $$1 "XPASS:" $$xpass "$$red"; \
579 result_count $$1 "ERROR:" $$error "$$mgn"; \
580 }; \
581 { \
582 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
583 $(am__rst_title); \
584 create_testsuite_report --no-color; \
585 echo; \
586 echo ".. contents:: :depth: 2"; \
587 echo; \
588 for b in $$bases; do echo $$b; done \
589 | $(am__create_global_log); \
590 } >$(TEST_SUITE_LOG).tmp || exit 1; \
591 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
592 if $$success; then \
593 col="$$grn"; \
594 else \
595 col="$$red"; \
596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
597 fi; \
598 echo "$${col}$$br$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
600 echo "$${col}$$br$${std}"; \
601 create_testsuite_report --maybe-color; \
602 echo "$$col$$br$$std"; \
603 if $$success; then :; else \
604 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
605 if test -n "$(PACKAGE_BUGREPORT)"; then \
606 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
607 fi; \
608 echo "$$col$$br$$std"; \
609 fi; \
610 $$success || exit 1
611
612 check-TESTS:
613 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
614 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
615 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
616 @set +e; $(am__set_TESTS_bases); \
617 log_list=`for i in $$bases; do echo $$i.log; done`; \
618 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
619 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
620 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
621 exit $$?;
622 recheck: all
623 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
624 @set +e; $(am__set_TESTS_bases); \
625 bases=`for i in $$bases; do echo $$i; done \
626 | $(am__list_recheck_tests)` || exit 1; \
627 log_list=`for i in $$bases; do echo $$i.log; done`; \
628 log_list=`echo $$log_list`; \
629 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
630 am__force_recheck=am--force-recheck \
631 TEST_LOGS="$$log_list"; \
632 exit $$?
633 test.sh.log: test.sh
634 @p='test.sh'; \
635 b='test.sh'; \
636 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
637 --log-file $$b.log --trs-file $$b.trs \
638 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
639 "$$tst" $(AM_TESTS_FD_REDIRECT)
640 .test.log:
641 @p='$<'; \
642 $(am__set_b); \
643 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
644 --log-file $$b.log --trs-file $$b.trs \
645 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
646 "$$tst" $(AM_TESTS_FD_REDIRECT)
647 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
648 @am__EXEEXT_TRUE@ @p='$<'; \
649 @am__EXEEXT_TRUE@ $(am__set_b); \
650 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
654 distdir: $(BUILT_SOURCES)
655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
656
657 distdir-am: $(DISTFILES)
658 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
659 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
660 list='$(DISTFILES)'; \
661 dist_files=`for file in $$list; do echo $$file; done | \
662 sed -e "s|^$$srcdirstrip/||;t" \
663 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
664 case $$dist_files in \
665 */*) $(MKDIR_P) `echo "$$dist_files" | \
666 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
667 sort -u` ;; \
668 esac; \
669 for file in $$dist_files; do \
670 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
671 if test -d $$d/$$file; then \
672 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
673 if test -d "$(distdir)/$$file"; then \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
677 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
678 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
679 fi; \
680 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
681 else \
682 test -f "$(distdir)/$$file" \
683 || cp -p $$d/$$file "$(distdir)/$$file" \
684 || exit 1; \
685 fi; \
686 done
687 check-am: all-am
688 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
689 check: check-am
690 all-am: Makefile
691 installdirs:
692 install: install-am
693 install-exec: install-exec-am
694 install-data: install-data-am
695 uninstall: uninstall-am
696
697 install-am: all-am
698 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
699
700 installcheck: installcheck-am
701 install-strip:
702 if test -z '$(STRIP)'; then \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 install; \
706 else \
707 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
708 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
709 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
710 fi
711 mostlyclean-generic:
712 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
713 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
714 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
715
716 clean-generic:
717 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
718
719 distclean-generic:
720 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
721 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
722
723 maintainer-clean-generic:
724 @echo "This command is intended for maintainers to use"
725 @echo "it deletes files that may require special tools to rebuild."
726 clean: clean-am
727
728 clean-am: clean-generic mostlyclean-am
729
730 distclean: distclean-am
731 -rm -f Makefile
732 distclean-am: clean-am distclean-generic
733
734 dvi: dvi-am
735
736 dvi-am:
737
738 html: html-am
739
740 html-am:
741
742 info: info-am
743
744 info-am:
745
746 install-data-am:
747
748 install-dvi: install-dvi-am
749
750 install-dvi-am:
751
752 install-exec-am:
753
754 install-html: install-html-am
755
756 install-html-am:
757
758 install-info: install-info-am
759
760 install-info-am:
761
762 install-man:
763
764 install-pdf: install-pdf-am
765
766 install-pdf-am:
767
768 install-ps: install-ps-am
769
770 install-ps-am:
771
772 installcheck-am:
773
774 maintainer-clean: maintainer-clean-am
775 -rm -f Makefile
776 maintainer-clean-am: distclean-am maintainer-clean-generic
777
778 mostlyclean: mostlyclean-am
779
780 mostlyclean-am: mostlyclean-generic
781
782 pdf: pdf-am
783
784 pdf-am:
785
786 ps: ps-am
787
788 ps-am:
789
790 uninstall-am:
791
792 .MAKE: check-am install-am install-strip
793
794 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
795 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
796 dvi-am html html-am info info-am install install-am \
797 install-data install-data-am install-dvi install-dvi-am \
798 install-exec install-exec-am install-html install-html-am \
799 install-info install-info-am install-man install-pdf \
800 install-pdf-am install-ps install-ps-am install-strip \
801 installcheck installcheck-am installdirs maintainer-clean \
802 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
803 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
804
805 .PRECIOUS: Makefile
806
807
808 # Tell versions [3.59,3.63) of GNU make to not export all variables.
809 # Otherwise a system limit (for SysV at least) may be exceeded.
810 .NOEXPORT:
0 processor : 0
1 vendor_id : GenuineIntel
2 cpu family : 6
3 model : 85
4 model name : Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
5 stepping : 7
6 microcode : 0x1
7 cpu MHz : 2500.002
8 cache size : 36608 KB
9 physical id : 0
10 siblings : 2
11 core id : 0
12 cpu cores : 1
13 apicid : 0
14 initial apicid : 0
15 fpu : yes
16 fpu_exception : yes
17 cpuid level : 22
18 wp : yes
19 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni
20 bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
21 bogomips : 5000.00
22 clflush size : 64
23 cache_alignment : 64
24 address sizes : 46 bits physical, 48 bits virtual
25 power management:
26
27 processor : 1
28 vendor_id : GenuineIntel
29 cpu family : 6
30 model : 85
31 model name : Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
32 stepping : 7
33 microcode : 0x1
34 cpu MHz : 2500.002
35 cache size : 36608 KB
36 physical id : 0
37 siblings : 2
38 core id : 0
39 cpu cores : 1
40 apicid : 1
41 initial apicid : 1
42 fpu : yes
43 fpu_exception : yes
44 cpuid level : 22
45 wp : yes
46 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni
47 bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
48 bogomips : 5000.00
49 clflush size : 64
50 cache_alignment : 64
51 address sizes : 46 bits physical, 48 bits virtual
52 power management:
0 Name: cat
1 Umask: 0022
2 State: R (running)
3 Tgid: 25933
4 Ngid: 0
5 Pid: 25933
6 PPid: 25932
7 TracerPid: 0
8 Uid: 0 0 0 0
9 Gid: 0 0 0 0
10 FDSize: 64
11 Groups: 0
12 NStgid: 25933
13 NSpid: 25933
14 NSpgid: 25932
15 NSsid: 25039
16 VmPeak: 108084 kB
17 VmSize: 108084 kB
18 VmLck: 0 kB
19 VmPin: 0 kB
20 VmHWM: 748 kB
21 VmRSS: 748 kB
22 RssAnon: 76 kB
23 RssFile: 672 kB
24 RssShmem: 0 kB
25 VmData: 188 kB
26 VmStk: 132 kB
27 VmExe: 44 kB
28 VmLib: 1952 kB
29 VmPTE: 68 kB
30 VmSwap: 0 kB
31 HugetlbPages: 0 kB
32 CoreDumping: 0
33 Threads: 1
34 SigQ: 0/30350
35 SigPnd: 0000000000000000
36 ShdPnd: 0000000000000000
37 SigBlk: 0000000000000000
38 SigIgn: 0000000000000000
39 SigCgt: 0000000000000000
40 CapInh: 0000000000000000
41 CapPrm: 0000003fffffffff
42 CapEff: 0000003fffffffff
43 CapBnd: 0000003fffffffff
44 CapAmb: 0000000000000000
45 NoNewPrivs: 0
46 Seccomp: 0
47 Speculation_Store_Bypass: vulnerable
48 Cpus_allowed: 3
49 Cpus_allowed_list: 0-1
50 Mems_allowed: 00000000,00000001
51 Mems_allowed_list: 0
52 voluntary_ctxt_switches: 0
53 nonvoluntary_ctxt_switches: 2
0 #!/bin/sh -
1 cat <<'EOF'
2 # dmidecode 3.2
3 Getting SMBIOS data from sysfs.
4 SMBIOS 2.8 present.
5 10 structures occupying 462 bytes.
6 Table at 0x000F5840.
7
8 Handle 0x0000, DMI type 0, 24 bytes
9 BIOS Information
10 Vendor: SeaBIOS
11 Version: 8c24b4c
12 Release Date: 04/01/2014
13 Address: 0xE8000
14 Runtime Size: 96 kB
15 ROM Size: 64 kB
16 Characteristics:
17 BIOS characteristics not supported
18 Targeted content distribution is supported
19 BIOS Revision: 0.0
20
21 Handle 0x0100, DMI type 1, 27 bytes
22 System Information
23 Manufacturer: Alibaba Cloud
24 Product Name: Alibaba Cloud ECS
25 Version: pc-i440fx-2.1
26 Serial Number: 20fb1c97-feb0-4c45-b8b9-bb06feeba0b5
27 UUID: 20fb1c97-feb0-4c45-b8b9-bb06feeba0b5
28 Wake-up Type: Power Switch
29 SKU Number: Not Specified
30 Family: Not Specified
31
32 Handle 0x0300, DMI type 3, 21 bytes
33 Chassis Information
34 Manufacturer: Alibaba Cloud
35 Type: Other
36 Lock: Not Present
37 Version: pc-i440fx-2.1
38 Serial Number: Not Specified
39 Asset Tag: Not Specified
40 Boot-up State: Safe
41 Power Supply State: Safe
42 Thermal State: Safe
43 Security Status: Unknown
44 OEM Information: 0x00000000
45 Height: Unspecified
46 Number Of Power Cords: Unspecified
47 Contained Elements: 0
48
49 Handle 0x0400, DMI type 4, 42 bytes
50 Processor Information
51 Socket Designation: CPU 0
52 Type: Central Processor
53 Family: Other
54 Manufacturer: Alibaba Cloud
55 ID: 57 06 05 00 FF FB 8B 0F
56 Version: pc-i440fx-2.1
57 Voltage: Unknown
58 External Clock: Unknown
59 Max Speed: Unknown
60 Current Speed: Unknown
61 Status: Populated, Enabled
62 Upgrade: Other
63 L1 Cache Handle: Not Provided
64 L2 Cache Handle: Not Provided
65 L3 Cache Handle: Not Provided
66 Serial Number: Not Specified
67 Asset Tag: Not Specified
68 Part Number: Not Specified
69 Core Count: 1
70 Core Enabled: 1
71 Thread Count: 2
72 Characteristics: None
73
74 Handle 0x1000, DMI type 16, 23 bytes
75 Physical Memory Array
76 Location: Other
77 Use: System Memory
78 Error Correction Type: Multi-bit ECC
79 Maximum Capacity: 8 GB
80 Error Information Handle: Not Provided
81 Number Of Devices: 1
82
83 Handle 0x1100, DMI type 17, 40 bytes
84 Memory Device
85 Array Handle: 0x1000
86 Error Information Handle: Not Provided
87 Total Width: Unknown
88 Data Width: Unknown
89 Size: 8192 MB
90 Form Factor: DIMM
91 Set: None
92 Locator: DIMM 0
93 Bank Locator: Not Specified
94 Type: RAM
95 Type Detail: Other
96 Speed: Unknown
97 Manufacturer: Alibaba Cloud
98 Serial Number: Not Specified
99 Asset Tag: Not Specified
100 Part Number: Not Specified
101 Rank: Unknown
102 Configured Memory Speed: Unknown
103 Minimum Voltage: Unknown
104 Maximum Voltage: Unknown
105 Configured Voltage: Unknown
106
107 Handle 0x1300, DMI type 19, 31 bytes
108 Memory Array Mapped Address
109 Starting Address: 0x00000000000
110 Ending Address: 0x000BFFFFFFF
111 Range Size: 3 GB
112 Physical Array Handle: 0x1000
113 Partition Width: 1
114
115 Handle 0x1301, DMI type 19, 31 bytes
116 Memory Array Mapped Address
117 Starting Address: 0x00100000000
118 Ending Address: 0x0023FFFFFFF
119 Range Size: 5 GB
120 Physical Array Handle: 0x1000
121 Partition Width: 1
122
123 Handle 0x2000, DMI type 32, 11 bytes
124 System Boot Information
125 Status: No errors detected
126
127 Handle 0x7F00, DMI type 127, 4 bytes
128 End Of Table
129
130 EOF
0 #!/bin/sh -
1 echo x86_64
0 # Test for Alibaba Cloud
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="alibaba_cloud
19 kvm"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
590595 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
591596 fi; \
592597 echo "$${col}$$br$${std}"; \
593 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
598 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
594599 echo "$${col}$$br$${std}"; \
595600 create_testsuite_report --maybe-color; \
596601 echo "$$col$$br$$std"; \
645650 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
646651 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
647652 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
648
649653 distdir: $(BUILT_SOURCES)
650654 $(MAKE) $(AM_MAKEFLAGS) distdir-am
651655
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
594599 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
595600 fi; \
596601 echo "$${col}$$br$${std}"; \
597 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
602 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
598603 echo "$${col}$$br$${std}"; \
599604 create_testsuite_report --maybe-color; \
600605 echo "$$col$$br$$std"; \
649654 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
650655 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
651656 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
652
653657 distdir: $(BUILT_SOURCES)
654658 $(MAKE) $(AM_MAKEFLAGS) distdir-am
655659
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/device-tree/hypervisor/compatible \
25 proc/device-tree/hypervisor/name \
26 proc/self/status \
27 sbin/dmidecode \
28 sbin/uname \
29 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/esx-arm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
319 RECHECK_LOGS = $(TEST_LOGS)
320 AM_RECURSIVE_TARGETS = check recheck
321 TEST_SUITE_LOG = test-suite.log
322 TEST_EXTENSIONS = @EXEEXT@ .test
323 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
324 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
325 am__set_b = \
326 case '$@' in \
327 */*) \
328 case '$*' in \
329 */*) b='$*';; \
330 *) b=`echo '$@' | sed 's/\.log$$//'`; \
331 esac;; \
332 *) \
333 b='$*';; \
334 esac
335 am__test_logs1 = $(TESTS:=.log)
336 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
337 TEST_LOGS = $(am__test_logs2:.test.log=.log)
338 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
339 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
340 $(TEST_LOG_FLAGS)
341 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
342 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
343 ACLOCAL = @ACLOCAL@
344 AMTAR = @AMTAR@
345 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
346 AUTOCONF = @AUTOCONF@
347 AUTOHEADER = @AUTOHEADER@
348 AUTOMAKE = @AUTOMAKE@
349 AWK = @AWK@
350 CC = @CC@
351 CCDEPMODE = @CCDEPMODE@
352 CFLAGS = @CFLAGS@
353 CPP = @CPP@
354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
357 CYGPATH_W = @CYGPATH_W@
358 DEFS = @DEFS@
359 DEPDIR = @DEPDIR@
360 ECHO_C = @ECHO_C@
361 ECHO_N = @ECHO_N@
362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
364 EXEEXT = @EXEEXT@
365 INSTALL = @INSTALL@
366 INSTALL_DATA = @INSTALL_DATA@
367 INSTALL_PROGRAM = @INSTALL_PROGRAM@
368 INSTALL_SCRIPT = @INSTALL_SCRIPT@
369 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
370 LDFLAGS = @LDFLAGS@
371 LIBOBJS = @LIBOBJS@
372 LIBS = @LIBS@
373 LTLIBOBJS = @LTLIBOBJS@
374 MAKEINFO = @MAKEINFO@
375 MKDIR_P = @MKDIR_P@
376 OBJEXT = @OBJEXT@
377 PACKAGE = @PACKAGE@
378 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
379 PACKAGE_NAME = @PACKAGE_NAME@
380 PACKAGE_STRING = @PACKAGE_STRING@
381 PACKAGE_TARNAME = @PACKAGE_TARNAME@
382 PACKAGE_URL = @PACKAGE_URL@
383 PACKAGE_VERSION = @PACKAGE_VERSION@
384 PATH_SEPARATOR = @PATH_SEPARATOR@
385 POD2MAN = @POD2MAN@
386 SET_MAKE = @SET_MAKE@
387 SHELL = @SHELL@
388 STRIP = @STRIP@
389 VERSION = @VERSION@
390 abs_builddir = @abs_builddir@
391 abs_srcdir = @abs_srcdir@
392 abs_top_builddir = @abs_top_builddir@
393 abs_top_srcdir = @abs_top_srcdir@
394 ac_ct_CC = @ac_ct_CC@
395 am__include = @am__include@
396 am__leading_dot = @am__leading_dot@
397 am__quote = @am__quote@
398 am__tar = @am__tar@
399 am__untar = @am__untar@
400 bindir = @bindir@
401 build = @build@
402 build_alias = @build_alias@
403 build_cpu = @build_cpu@
404 build_os = @build_os@
405 build_vendor = @build_vendor@
406 builddir = @builddir@
407 datadir = @datadir@
408 datarootdir = @datarootdir@
409 docdir = @docdir@
410 dvidir = @dvidir@
411 exec_prefix = @exec_prefix@
412 host = @host@
413 host_alias = @host_alias@
414 host_cpu = @host_cpu@
415 host_os = @host_os@
416 host_vendor = @host_vendor@
417 htmldir = @htmldir@
418 includedir = @includedir@
419 infodir = @infodir@
420 install_sh = @install_sh@
421 libdir = @libdir@
422 libexecdir = @libexecdir@
423 localedir = @localedir@
424 localstatedir = @localstatedir@
425 mandir = @mandir@
426 mkdir_p = @mkdir_p@
427 oldincludedir = @oldincludedir@
428 pdfdir = @pdfdir@
429 prefix = @prefix@
430 program_transform_name = @program_transform_name@
431 psdir = @psdir@
432 runstatedir = @runstatedir@
433 sbindir = @sbindir@
434 sharedstatedir = @sharedstatedir@
435 srcdir = @srcdir@
436 sysconfdir = @sysconfdir@
437 target_alias = @target_alias@
438 tests = @tests@
439 top_build_prefix = @top_build_prefix@
440 top_builddir = @top_builddir@
441 top_srcdir = @top_srcdir@
442 CLEANFILES = *~
443 TESTS = test.sh
444 EXTRA_DIST = \
445 test.sh \
446 proc/cpuinfo \
447 proc/device-tree/hypervisor/compatible \
448 proc/device-tree/hypervisor/name \
449 proc/self/status \
450 sbin/dmidecode \
451 sbin/uname \
452 sbin/virt-what-cpuid-helper
453
454 all: all-am
455
456 .SUFFIXES:
457 .SUFFIXES: .log .test .test$(EXEEXT) .trs
458 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
459 @for dep in $?; do \
460 case '$(am__configure_deps)' in \
461 *$$dep*) \
462 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
463 && { if test -f $@; then exit 0; else break; fi; }; \
464 exit 1;; \
465 esac; \
466 done; \
467 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/esx-arm/Makefile'; \
468 $(am__cd) $(top_srcdir) && \
469 $(AUTOMAKE) --foreign tests/esx-arm/Makefile
470 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
471 @case '$?' in \
472 *config.status*) \
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
474 *) \
475 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
476 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
477 esac;
478
479 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
480 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
481
482 $(top_srcdir)/configure: $(am__configure_deps)
483 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
484 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
485 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
486 $(am__aclocal_m4_deps):
487 tags TAGS:
488
489 ctags CTAGS:
490
491 cscope cscopelist:
492
493
494 # Recover from deleted '.trs' file; this should ensure that
495 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
496 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
497 # to avoid problems with "make -n".
498 .log.trs:
499 rm -f $< $@
500 $(MAKE) $(AM_MAKEFLAGS) $<
501
502 # Leading 'am--fnord' is there to ensure the list of targets does not
503 # expand to empty, as could happen e.g. with make check TESTS=''.
504 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
505 am--force-recheck:
506 @:
507
508 $(TEST_SUITE_LOG): $(TEST_LOGS)
509 @$(am__set_TESTS_bases); \
510 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
511 redo_bases=`for i in $$bases; do \
512 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
513 done`; \
514 if test -n "$$redo_bases"; then \
515 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
516 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
517 if $(am__make_dryrun); then :; else \
518 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
519 fi; \
520 fi; \
521 if test -n "$$am__remaking_logs"; then \
522 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
523 "recursion detected" >&2; \
524 elif test -n "$$redo_logs"; then \
525 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
526 fi; \
527 if $(am__make_dryrun); then :; else \
528 st=0; \
529 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
530 for i in $$redo_bases; do \
531 test -f $$i.trs && test -r $$i.trs \
532 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
533 test -f $$i.log && test -r $$i.log \
534 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
535 done; \
536 test $$st -eq 0 || exit 1; \
537 fi
538 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
539 ws='[ ]'; \
540 results=`for b in $$bases; do echo $$b.trs; done`; \
541 test -n "$$results" || results=/dev/null; \
542 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
543 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
544 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
545 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
546 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
547 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
548 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
549 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
550 success=true; \
551 else \
552 success=false; \
553 fi; \
554 br='==================='; br=$$br$$br$$br$$br; \
555 result_count () \
556 { \
557 if test x"$$1" = x"--maybe-color"; then \
558 maybe_colorize=yes; \
559 elif test x"$$1" = x"--no-color"; then \
560 maybe_colorize=no; \
561 else \
562 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
563 fi; \
564 shift; \
565 desc=$$1 count=$$2; \
566 if test $$maybe_colorize = yes && test $$count -gt 0; then \
567 color_start=$$3 color_end=$$std; \
568 else \
569 color_start= color_end=; \
570 fi; \
571 echo "$${color_start}# $$desc $$count$${color_end}"; \
572 }; \
573 create_testsuite_report () \
574 { \
575 result_count $$1 "TOTAL:" $$all "$$brg"; \
576 result_count $$1 "PASS: " $$pass "$$grn"; \
577 result_count $$1 "SKIP: " $$skip "$$blu"; \
578 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
579 result_count $$1 "FAIL: " $$fail "$$red"; \
580 result_count $$1 "XPASS:" $$xpass "$$red"; \
581 result_count $$1 "ERROR:" $$error "$$mgn"; \
582 }; \
583 { \
584 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
585 $(am__rst_title); \
586 create_testsuite_report --no-color; \
587 echo; \
588 echo ".. contents:: :depth: 2"; \
589 echo; \
590 for b in $$bases; do echo $$b; done \
591 | $(am__create_global_log); \
592 } >$(TEST_SUITE_LOG).tmp || exit 1; \
593 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
594 if $$success; then \
595 col="$$grn"; \
596 else \
597 col="$$red"; \
598 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
599 fi; \
600 echo "$${col}$$br$${std}"; \
601 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
602 echo "$${col}$$br$${std}"; \
603 create_testsuite_report --maybe-color; \
604 echo "$$col$$br$$std"; \
605 if $$success; then :; else \
606 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
607 if test -n "$(PACKAGE_BUGREPORT)"; then \
608 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
609 fi; \
610 echo "$$col$$br$$std"; \
611 fi; \
612 $$success || exit 1
613
614 check-TESTS:
615 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
616 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
617 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
618 @set +e; $(am__set_TESTS_bases); \
619 log_list=`for i in $$bases; do echo $$i.log; done`; \
620 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
621 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
622 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
623 exit $$?;
624 recheck: all
625 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
626 @set +e; $(am__set_TESTS_bases); \
627 bases=`for i in $$bases; do echo $$i; done \
628 | $(am__list_recheck_tests)` || exit 1; \
629 log_list=`for i in $$bases; do echo $$i.log; done`; \
630 log_list=`echo $$log_list`; \
631 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
632 am__force_recheck=am--force-recheck \
633 TEST_LOGS="$$log_list"; \
634 exit $$?
635 test.sh.log: test.sh
636 @p='test.sh'; \
637 b='test.sh'; \
638 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 .test.log:
643 @p='$<'; \
644 $(am__set_b); \
645 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 --log-file $$b.log --trs-file $$b.trs \
647 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 "$$tst" $(AM_TESTS_FD_REDIRECT)
649 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
650 @am__EXEEXT_TRUE@ @p='$<'; \
651 @am__EXEEXT_TRUE@ $(am__set_b); \
652 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
653 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
654 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
655 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
656 distdir: $(BUILT_SOURCES)
657 $(MAKE) $(AM_MAKEFLAGS) distdir-am
658
659 distdir-am: $(DISTFILES)
660 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
661 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
662 list='$(DISTFILES)'; \
663 dist_files=`for file in $$list; do echo $$file; done | \
664 sed -e "s|^$$srcdirstrip/||;t" \
665 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
666 case $$dist_files in \
667 */*) $(MKDIR_P) `echo "$$dist_files" | \
668 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
669 sort -u` ;; \
670 esac; \
671 for file in $$dist_files; do \
672 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
673 if test -d $$d/$$file; then \
674 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
675 if test -d "$(distdir)/$$file"; then \
676 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
677 fi; \
678 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
679 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
680 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
681 fi; \
682 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
683 else \
684 test -f "$(distdir)/$$file" \
685 || cp -p $$d/$$file "$(distdir)/$$file" \
686 || exit 1; \
687 fi; \
688 done
689 check-am: all-am
690 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
691 check: check-am
692 all-am: Makefile
693 installdirs:
694 install: install-am
695 install-exec: install-exec-am
696 install-data: install-data-am
697 uninstall: uninstall-am
698
699 install-am: all-am
700 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
701
702 installcheck: installcheck-am
703 install-strip:
704 if test -z '$(STRIP)'; then \
705 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
706 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
707 install; \
708 else \
709 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
710 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
711 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
712 fi
713 mostlyclean-generic:
714 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
715 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
716 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
717
718 clean-generic:
719 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
720
721 distclean-generic:
722 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
723 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
724
725 maintainer-clean-generic:
726 @echo "This command is intended for maintainers to use"
727 @echo "it deletes files that may require special tools to rebuild."
728 clean: clean-am
729
730 clean-am: clean-generic mostlyclean-am
731
732 distclean: distclean-am
733 -rm -f Makefile
734 distclean-am: clean-am distclean-generic
735
736 dvi: dvi-am
737
738 dvi-am:
739
740 html: html-am
741
742 html-am:
743
744 info: info-am
745
746 info-am:
747
748 install-data-am:
749
750 install-dvi: install-dvi-am
751
752 install-dvi-am:
753
754 install-exec-am:
755
756 install-html: install-html-am
757
758 install-html-am:
759
760 install-info: install-info-am
761
762 install-info-am:
763
764 install-man:
765
766 install-pdf: install-pdf-am
767
768 install-pdf-am:
769
770 install-ps: install-ps-am
771
772 install-ps-am:
773
774 installcheck-am:
775
776 maintainer-clean: maintainer-clean-am
777 -rm -f Makefile
778 maintainer-clean-am: distclean-am maintainer-clean-generic
779
780 mostlyclean: mostlyclean-am
781
782 mostlyclean-am: mostlyclean-generic
783
784 pdf: pdf-am
785
786 pdf-am:
787
788 ps: ps-am
789
790 ps-am:
791
792 uninstall-am:
793
794 .MAKE: check-am install-am install-strip
795
796 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
797 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
798 dvi-am html html-am info info-am install install-am \
799 install-data install-data-am install-dvi install-dvi-am \
800 install-exec install-exec-am install-html install-html-am \
801 install-info install-info-am install-man install-pdf \
802 install-pdf-am install-ps install-ps-am install-strip \
803 installcheck installcheck-am installdirs maintainer-clean \
804 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
805 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
806
807 .PRECIOUS: Makefile
808
809
810 # Tell versions [3.59,3.63) of GNU make to not export all variables.
811 # Otherwise a system limit (for SysV at least) may be exceeded.
812 .NOEXPORT:
0 processor : 0
1 BogoMIPS : 108.00
2 Features : fp asimd evtstrm crc32 cpuid
3 CPU implementer : 0x41
4 CPU architecture: 8
5 CPU variant : 0x0
6 CPU part : 0xd08
7 CPU revision : 3
8
9 processor : 1
10 BogoMIPS : 108.00
11 Features : fp asimd evtstrm crc32 cpuid
12 CPU implementer : 0x41
13 CPU architecture: 8
14 CPU variant : 0x0
15 CPU part : 0xd08
16 CPU revision : 3
17
0 Name: cat
1 Umask: 0022
2 State: R (running)
3 Tgid: 292937
4 Ngid: 0
5 Pid: 292937
6 PPid: 10956
7 TracerPid: 0
8 Uid: 0 0 0 0
9 Gid: 0 0 0 0
10 FDSize: 256
11 Groups: 0
12 NStgid: 292937
13 NSpid: 292937
14 NSpgid: 292937
15 NSsid: 10956
16 VmPeak: 6400 kB
17 VmSize: 6400 kB
18 VmLck: 0 kB
19 VmPin: 0 kB
20 VmHWM: 960 kB
21 VmRSS: 960 kB
22 RssAnon: 448 kB
23 RssFile: 512 kB
24 RssShmem: 0 kB
25 VmData: 640 kB
26 VmStk: 192 kB
27 VmExe: 64 kB
28 VmLib: 1600 kB
29 VmPTE: 384 kB
30 VmSwap: 0 kB
31 HugetlbPages: 0 kB
32 CoreDumping: 0
33 THP_enabled: 1
34 Threads: 1
35 SigQ: 2/3947
36 SigPnd: 0000000000000000
37 ShdPnd: 0000000000000000
38 SigBlk: 0000000000000000
39 SigIgn: 0000000000000000
40 SigCgt: 0000000000000000
41 CapInh: 0000000000000000
42 CapPrm: 0000003fffffffff
43 CapEff: 0000003fffffffff
44 CapBnd: 0000003fffffffff
45 CapAmb: 0000000000000000
46 NoNewPrivs: 0
47 Seccomp: 0
48 Speculation_Store_Bypass: vulnerable
49 Cpus_allowed: 3
50 Cpus_allowed_list: 0-1
51 Mems_allowed: 01
52 Mems_allowed_list: 0
53 voluntary_ctxt_switches: 1
54 nonvoluntary_ctxt_switches: 0
0 #!/bin/sh -
1 exit 1
0 #!/bin/sh -
1 echo aarch64
0 # Test for ESXi on ARM
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="vmware"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile for virt-what
1 # Copyright (C) 2022 Steve Mokris
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/1/environ \
24 proc/version \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2022 Steve Mokris
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/illumos-lx
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
319 RECHECK_LOGS = $(TEST_LOGS)
320 AM_RECURSIVE_TARGETS = check recheck
321 TEST_SUITE_LOG = test-suite.log
322 TEST_EXTENSIONS = @EXEEXT@ .test
323 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
324 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
325 am__set_b = \
326 case '$@' in \
327 */*) \
328 case '$*' in \
329 */*) b='$*';; \
330 *) b=`echo '$@' | sed 's/\.log$$//'`; \
331 esac;; \
332 *) \
333 b='$*';; \
334 esac
335 am__test_logs1 = $(TESTS:=.log)
336 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
337 TEST_LOGS = $(am__test_logs2:.test.log=.log)
338 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
339 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
340 $(TEST_LOG_FLAGS)
341 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
342 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
343 ACLOCAL = @ACLOCAL@
344 AMTAR = @AMTAR@
345 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
346 AUTOCONF = @AUTOCONF@
347 AUTOHEADER = @AUTOHEADER@
348 AUTOMAKE = @AUTOMAKE@
349 AWK = @AWK@
350 CC = @CC@
351 CCDEPMODE = @CCDEPMODE@
352 CFLAGS = @CFLAGS@
353 CPP = @CPP@
354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
357 CYGPATH_W = @CYGPATH_W@
358 DEFS = @DEFS@
359 DEPDIR = @DEPDIR@
360 ECHO_C = @ECHO_C@
361 ECHO_N = @ECHO_N@
362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
364 EXEEXT = @EXEEXT@
365 INSTALL = @INSTALL@
366 INSTALL_DATA = @INSTALL_DATA@
367 INSTALL_PROGRAM = @INSTALL_PROGRAM@
368 INSTALL_SCRIPT = @INSTALL_SCRIPT@
369 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
370 LDFLAGS = @LDFLAGS@
371 LIBOBJS = @LIBOBJS@
372 LIBS = @LIBS@
373 LTLIBOBJS = @LTLIBOBJS@
374 MAKEINFO = @MAKEINFO@
375 MKDIR_P = @MKDIR_P@
376 OBJEXT = @OBJEXT@
377 PACKAGE = @PACKAGE@
378 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
379 PACKAGE_NAME = @PACKAGE_NAME@
380 PACKAGE_STRING = @PACKAGE_STRING@
381 PACKAGE_TARNAME = @PACKAGE_TARNAME@
382 PACKAGE_URL = @PACKAGE_URL@
383 PACKAGE_VERSION = @PACKAGE_VERSION@
384 PATH_SEPARATOR = @PATH_SEPARATOR@
385 POD2MAN = @POD2MAN@
386 SET_MAKE = @SET_MAKE@
387 SHELL = @SHELL@
388 STRIP = @STRIP@
389 VERSION = @VERSION@
390 abs_builddir = @abs_builddir@
391 abs_srcdir = @abs_srcdir@
392 abs_top_builddir = @abs_top_builddir@
393 abs_top_srcdir = @abs_top_srcdir@
394 ac_ct_CC = @ac_ct_CC@
395 am__include = @am__include@
396 am__leading_dot = @am__leading_dot@
397 am__quote = @am__quote@
398 am__tar = @am__tar@
399 am__untar = @am__untar@
400 bindir = @bindir@
401 build = @build@
402 build_alias = @build_alias@
403 build_cpu = @build_cpu@
404 build_os = @build_os@
405 build_vendor = @build_vendor@
406 builddir = @builddir@
407 datadir = @datadir@
408 datarootdir = @datarootdir@
409 docdir = @docdir@
410 dvidir = @dvidir@
411 exec_prefix = @exec_prefix@
412 host = @host@
413 host_alias = @host_alias@
414 host_cpu = @host_cpu@
415 host_os = @host_os@
416 host_vendor = @host_vendor@
417 htmldir = @htmldir@
418 includedir = @includedir@
419 infodir = @infodir@
420 install_sh = @install_sh@
421 libdir = @libdir@
422 libexecdir = @libexecdir@
423 localedir = @localedir@
424 localstatedir = @localstatedir@
425 mandir = @mandir@
426 mkdir_p = @mkdir_p@
427 oldincludedir = @oldincludedir@
428 pdfdir = @pdfdir@
429 prefix = @prefix@
430 program_transform_name = @program_transform_name@
431 psdir = @psdir@
432 runstatedir = @runstatedir@
433 sbindir = @sbindir@
434 sharedstatedir = @sharedstatedir@
435 srcdir = @srcdir@
436 sysconfdir = @sysconfdir@
437 target_alias = @target_alias@
438 tests = @tests@
439 top_build_prefix = @top_build_prefix@
440 top_builddir = @top_builddir@
441 top_srcdir = @top_srcdir@
442 CLEANFILES = *~
443 TESTS = test.sh
444 EXTRA_DIST = \
445 test.sh \
446 proc/1/environ \
447 proc/version \
448 sbin/dmidecode \
449 sbin/uname \
450 sbin/virt-what-cpuid-helper
451
452 all: all-am
453
454 .SUFFIXES:
455 .SUFFIXES: .log .test .test$(EXEEXT) .trs
456 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
457 @for dep in $?; do \
458 case '$(am__configure_deps)' in \
459 *$$dep*) \
460 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
461 && { if test -f $@; then exit 0; else break; fi; }; \
462 exit 1;; \
463 esac; \
464 done; \
465 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/illumos-lx/Makefile'; \
466 $(am__cd) $(top_srcdir) && \
467 $(AUTOMAKE) --foreign tests/illumos-lx/Makefile
468 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
469 @case '$?' in \
470 *config.status*) \
471 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
472 *) \
473 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
474 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
475 esac;
476
477 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479
480 $(top_srcdir)/configure: $(am__configure_deps)
481 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
482 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
483 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
484 $(am__aclocal_m4_deps):
485 tags TAGS:
486
487 ctags CTAGS:
488
489 cscope cscopelist:
490
491
492 # Recover from deleted '.trs' file; this should ensure that
493 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
494 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
495 # to avoid problems with "make -n".
496 .log.trs:
497 rm -f $< $@
498 $(MAKE) $(AM_MAKEFLAGS) $<
499
500 # Leading 'am--fnord' is there to ensure the list of targets does not
501 # expand to empty, as could happen e.g. with make check TESTS=''.
502 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
503 am--force-recheck:
504 @:
505
506 $(TEST_SUITE_LOG): $(TEST_LOGS)
507 @$(am__set_TESTS_bases); \
508 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
509 redo_bases=`for i in $$bases; do \
510 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
511 done`; \
512 if test -n "$$redo_bases"; then \
513 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
514 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
515 if $(am__make_dryrun); then :; else \
516 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
517 fi; \
518 fi; \
519 if test -n "$$am__remaking_logs"; then \
520 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
521 "recursion detected" >&2; \
522 elif test -n "$$redo_logs"; then \
523 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
524 fi; \
525 if $(am__make_dryrun); then :; else \
526 st=0; \
527 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
528 for i in $$redo_bases; do \
529 test -f $$i.trs && test -r $$i.trs \
530 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
531 test -f $$i.log && test -r $$i.log \
532 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
533 done; \
534 test $$st -eq 0 || exit 1; \
535 fi
536 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
537 ws='[ ]'; \
538 results=`for b in $$bases; do echo $$b.trs; done`; \
539 test -n "$$results" || results=/dev/null; \
540 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
541 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
542 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
543 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
544 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
545 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
546 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
547 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
548 success=true; \
549 else \
550 success=false; \
551 fi; \
552 br='==================='; br=$$br$$br$$br$$br; \
553 result_count () \
554 { \
555 if test x"$$1" = x"--maybe-color"; then \
556 maybe_colorize=yes; \
557 elif test x"$$1" = x"--no-color"; then \
558 maybe_colorize=no; \
559 else \
560 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
561 fi; \
562 shift; \
563 desc=$$1 count=$$2; \
564 if test $$maybe_colorize = yes && test $$count -gt 0; then \
565 color_start=$$3 color_end=$$std; \
566 else \
567 color_start= color_end=; \
568 fi; \
569 echo "$${color_start}# $$desc $$count$${color_end}"; \
570 }; \
571 create_testsuite_report () \
572 { \
573 result_count $$1 "TOTAL:" $$all "$$brg"; \
574 result_count $$1 "PASS: " $$pass "$$grn"; \
575 result_count $$1 "SKIP: " $$skip "$$blu"; \
576 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
577 result_count $$1 "FAIL: " $$fail "$$red"; \
578 result_count $$1 "XPASS:" $$xpass "$$red"; \
579 result_count $$1 "ERROR:" $$error "$$mgn"; \
580 }; \
581 { \
582 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
583 $(am__rst_title); \
584 create_testsuite_report --no-color; \
585 echo; \
586 echo ".. contents:: :depth: 2"; \
587 echo; \
588 for b in $$bases; do echo $$b; done \
589 | $(am__create_global_log); \
590 } >$(TEST_SUITE_LOG).tmp || exit 1; \
591 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
592 if $$success; then \
593 col="$$grn"; \
594 else \
595 col="$$red"; \
596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
597 fi; \
598 echo "$${col}$$br$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
600 echo "$${col}$$br$${std}"; \
601 create_testsuite_report --maybe-color; \
602 echo "$$col$$br$$std"; \
603 if $$success; then :; else \
604 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
605 if test -n "$(PACKAGE_BUGREPORT)"; then \
606 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
607 fi; \
608 echo "$$col$$br$$std"; \
609 fi; \
610 $$success || exit 1
611
612 check-TESTS:
613 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
614 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
615 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
616 @set +e; $(am__set_TESTS_bases); \
617 log_list=`for i in $$bases; do echo $$i.log; done`; \
618 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
619 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
620 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
621 exit $$?;
622 recheck: all
623 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
624 @set +e; $(am__set_TESTS_bases); \
625 bases=`for i in $$bases; do echo $$i; done \
626 | $(am__list_recheck_tests)` || exit 1; \
627 log_list=`for i in $$bases; do echo $$i.log; done`; \
628 log_list=`echo $$log_list`; \
629 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
630 am__force_recheck=am--force-recheck \
631 TEST_LOGS="$$log_list"; \
632 exit $$?
633 test.sh.log: test.sh
634 @p='test.sh'; \
635 b='test.sh'; \
636 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
637 --log-file $$b.log --trs-file $$b.trs \
638 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
639 "$$tst" $(AM_TESTS_FD_REDIRECT)
640 .test.log:
641 @p='$<'; \
642 $(am__set_b); \
643 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
644 --log-file $$b.log --trs-file $$b.trs \
645 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
646 "$$tst" $(AM_TESTS_FD_REDIRECT)
647 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
648 @am__EXEEXT_TRUE@ @p='$<'; \
649 @am__EXEEXT_TRUE@ $(am__set_b); \
650 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
654 distdir: $(BUILT_SOURCES)
655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
656
657 distdir-am: $(DISTFILES)
658 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
659 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
660 list='$(DISTFILES)'; \
661 dist_files=`for file in $$list; do echo $$file; done | \
662 sed -e "s|^$$srcdirstrip/||;t" \
663 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
664 case $$dist_files in \
665 */*) $(MKDIR_P) `echo "$$dist_files" | \
666 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
667 sort -u` ;; \
668 esac; \
669 for file in $$dist_files; do \
670 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
671 if test -d $$d/$$file; then \
672 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
673 if test -d "$(distdir)/$$file"; then \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
677 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
678 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
679 fi; \
680 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
681 else \
682 test -f "$(distdir)/$$file" \
683 || cp -p $$d/$$file "$(distdir)/$$file" \
684 || exit 1; \
685 fi; \
686 done
687 check-am: all-am
688 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
689 check: check-am
690 all-am: Makefile
691 installdirs:
692 install: install-am
693 install-exec: install-exec-am
694 install-data: install-data-am
695 uninstall: uninstall-am
696
697 install-am: all-am
698 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
699
700 installcheck: installcheck-am
701 install-strip:
702 if test -z '$(STRIP)'; then \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 install; \
706 else \
707 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
708 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
709 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
710 fi
711 mostlyclean-generic:
712 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
713 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
714 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
715
716 clean-generic:
717 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
718
719 distclean-generic:
720 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
721 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
722
723 maintainer-clean-generic:
724 @echo "This command is intended for maintainers to use"
725 @echo "it deletes files that may require special tools to rebuild."
726 clean: clean-am
727
728 clean-am: clean-generic mostlyclean-am
729
730 distclean: distclean-am
731 -rm -f Makefile
732 distclean-am: clean-am distclean-generic
733
734 dvi: dvi-am
735
736 dvi-am:
737
738 html: html-am
739
740 html-am:
741
742 info: info-am
743
744 info-am:
745
746 install-data-am:
747
748 install-dvi: install-dvi-am
749
750 install-dvi-am:
751
752 install-exec-am:
753
754 install-html: install-html-am
755
756 install-html-am:
757
758 install-info: install-info-am
759
760 install-info-am:
761
762 install-man:
763
764 install-pdf: install-pdf-am
765
766 install-pdf-am:
767
768 install-ps: install-ps-am
769
770 install-ps-am:
771
772 installcheck-am:
773
774 maintainer-clean: maintainer-clean-am
775 -rm -f Makefile
776 maintainer-clean-am: distclean-am maintainer-clean-generic
777
778 mostlyclean: mostlyclean-am
779
780 mostlyclean-am: mostlyclean-generic
781
782 pdf: pdf-am
783
784 pdf-am:
785
786 ps: ps-am
787
788 ps-am:
789
790 uninstall-am:
791
792 .MAKE: check-am install-am install-strip
793
794 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
795 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
796 dvi-am html html-am info info-am install install-am \
797 install-data install-data-am install-dvi install-dvi-am \
798 install-exec install-exec-am install-html install-html-am \
799 install-info install-info-am install-man install-pdf \
800 install-pdf-am install-ps install-ps-am install-strip \
801 installcheck installcheck-am installdirs maintainer-clean \
802 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
803 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
804
805 .PRECIOUS: Makefile
806
807
808 # Tell versions [3.59,3.63) of GNU make to not export all variables.
809 # Otherwise a system limit (for SysV at least) may be exceeded.
810 .NOEXPORT:
0 Linux version 3.16.0 (gcc version 7.5.0) BrandZ virtual linux
0 #!/bin/sh -
1 cat <<'EOF'
2 # dmidecode 2.11
3 /dev/mem: Operation not permitted
4 EOF
5 exit 1
0 #!/bin/sh -
1 echo x86_64
0 # Test for illumos-lx
1 # Copyright (C) 2022 Steve Mokris
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="illumos-lx"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
592597 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593598 fi; \
594599 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
600 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
596601 echo "$${col}$$br$${std}"; \
597602 create_testsuite_report --maybe-color; \
598603 echo "$$col$$br$$std"; \
647652 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648653 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649654 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651655 distdir: $(BUILT_SOURCES)
652656 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653657
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
592597 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593598 fi; \
594599 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
600 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
596601 echo "$${col}$$br$${std}"; \
597602 create_testsuite_report --maybe-color; \
598603 echo "$$col$$br$$std"; \
647652 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648653 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649654 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651655 distdir: $(BUILT_SOURCES)
652656 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653657
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
1515 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1616
1717 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="nutanix_ahv"
18 expected="nutanix_ahv
19 redhat
20 kvm"
1921
2022 if [ "$output" != "$expected" ]; then
2123 echo "$0: test failed because output did not match expected"
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
Binary diff not shown
1919 TESTS = test.sh
2020
2121 EXTRA_DIST = \
22 1/environ \
2223 test.sh \
2324 proc/cpuinfo \
2425 proc/self/cgroup \
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
437442 CLEANFILES = *~
438443 TESTS = test.sh
439444 EXTRA_DIST = \
445 1/environ \
440446 test.sh \
441447 proc/cpuinfo \
442448 proc/self/cgroup \
592598 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593599 fi; \
594600 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
601 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
596602 echo "$${col}$$br$${std}"; \
597603 create_testsuite_report --maybe-color; \
598604 echo "$$col$$br$$std"; \
647653 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648654 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649655 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651656 distdir: $(BUILT_SOURCES)
652657 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653658
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
590595 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
591596 fi; \
592597 echo "$${col}$$br$${std}"; \
593 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
598 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
594599 echo "$${col}$$br$${std}"; \
595600 create_testsuite_report --maybe-color; \
596601 echo "$$col$$br$$std"; \
645650 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
646651 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
647652 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
648
649653 distdir: $(BUILT_SOURCES)
650654 $(MAKE) $(AM_MAKEFLAGS) distdir-am
651655
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
592597 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593598 fi; \
594599 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
600 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
596601 echo "$${col}$$br$${std}"; \
597602 create_testsuite_report --maybe-color; \
598603 echo "$$col$$br$$std"; \
647652 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648653 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649654 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651655 distdir: $(BUILT_SOURCES)
652656 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653657
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
592597 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593598 fi; \
594599 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
600 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
596601 echo "$${col}$$br$${std}"; \
597602 create_testsuite_report --maybe-color; \
598603 echo "$$col$$br$$std"; \
647652 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648653 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649654 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651655 distdir: $(BUILT_SOURCES)
652656 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653657
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
611616 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
612617 fi; \
613618 echo "$${col}$$br$${std}"; \
614 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
619 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
615620 echo "$${col}$$br$${std}"; \
616621 create_testsuite_report --maybe-color; \
617622 echo "$$col$$br$$std"; \
666671 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
667672 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
668673 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
669
670674 distdir: $(BUILT_SOURCES)
671675 $(MAKE) $(AM_MAKEFLAGS) distdir-am
672676
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
1515 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1616
1717 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="xen
18 expected="redhat
19 xen
1920 xen-hvm"
2021
2122 if [ "$output" != "$expected" ]; then
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
596601 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
597602 fi; \
598603 echo "$${col}$$br$${std}"; \
599 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
604 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
600605 echo "$${col}$$br$${std}"; \
601606 create_testsuite_report --maybe-color; \
602607 echo "$$col$$br$$std"; \
651656 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
652657 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
653658 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
654
655659 distdir: $(BUILT_SOURCES)
656660 $(MAKE) $(AM_MAKEFLAGS) distdir-am
657661
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
609614 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
610615 fi; \
611616 echo "$${col}$$br$${std}"; \
612 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
617 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
613618 echo "$${col}$$br$${std}"; \
614619 create_testsuite_report --maybe-color; \
615620 echo "$$col$$br$$std"; \
664669 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
665670 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
666671 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
667
668672 distdir: $(BUILT_SOURCES)
669673 $(MAKE) $(AM_MAKEFLAGS) distdir-am
670674
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
591596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592597 fi; \
593598 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
599 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
595600 echo "$${col}$$br$${std}"; \
596601 create_testsuite_report --maybe-color; \
597602 echo "$$col$$br$$std"; \
646651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650654 distdir: $(BUILT_SOURCES)
651655 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652656
1616
1717 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
1818 expected="rhev
19 redhat
1920 kvm"
2021
2122 if [ "$output" != "$expected" ]; then
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
590595 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
591596 fi; \
592597 echo "$${col}$$br$${std}"; \
593 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
598 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
594599 echo "$${col}$$br$${std}"; \
595600 create_testsuite_report --maybe-color; \
596601 echo "$$col$$br$$std"; \
645650 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
646651 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
647652 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
648
649653 distdir: $(BUILT_SOURCES)
650654 $(MAKE) $(AM_MAKEFLAGS) distdir-am
651655
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
592597 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593598 fi; \
594599 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
600 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
596601 echo "$${col}$$br$${std}"; \
597602 create_testsuite_report --maybe-color; \
598603 echo "$$col$$br$$std"; \
647652 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648653 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649654 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651655 distdir: $(BUILT_SOURCES)
652656 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653657
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
315315 bases='$(TEST_LOGS)'; \
316316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317317 bases=`echo $$bases`
318 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
318319 RECHECK_LOGS = $(TEST_LOGS)
319320 AM_RECURSIVE_TARGETS = check recheck
320321 TEST_SUITE_LOG = test-suite.log
351352 CFLAGS = @CFLAGS@
352353 CPP = @CPP@
353354 CPPFLAGS = @CPPFLAGS@
355 CSCOPE = @CSCOPE@
356 CTAGS = @CTAGS@
354357 CYGPATH_W = @CYGPATH_W@
355358 DEFS = @DEFS@
356359 DEPDIR = @DEPDIR@
357360 ECHO_C = @ECHO_C@
358361 ECHO_N = @ECHO_N@
359362 ECHO_T = @ECHO_T@
363 ETAGS = @ETAGS@
360364 EXEEXT = @EXEEXT@
361365 INSTALL = @INSTALL@
362366 INSTALL_DATA = @INSTALL_DATA@
425429 prefix = @prefix@
426430 program_transform_name = @program_transform_name@
427431 psdir = @psdir@
432 runstatedir = @runstatedir@
428433 sbindir = @sbindir@
429434 sharedstatedir = @sharedstatedir@
430435 srcdir = @srcdir@
592597 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593598 fi; \
594599 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
600 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
596601 echo "$${col}$$br$${std}"; \
597602 create_testsuite_report --maybe-color; \
598603 echo "$$col$$br$$std"; \
647652 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648653 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649654 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651655 distdir: $(BUILT_SOURCES)
652656 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653657
00 #!/bin/sh -
11 # @configure_input@
2 # Copyright (C) 2008-2019 Red Hat Inc.
2 # Copyright (C) 2008-2022 Red Hat Inc.
33 #
44 # This program is free software; you can redistribute it and/or modify
55 # it under the terms of the GNU General Public License as published by
112112
113113 arch=$(uname -m | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/')
114114
115 # Check for Alibaba Cloud
116 if echo "$dmi" | grep -q 'Manufacturer: Alibaba'; then
117 # Check for Alibaba Cloud ECS Bare Metal (EBM) Instance
118 if ( { echo -e "GET /latest/meta-datainstance/instance-type HTTP/1.0\r\nHost: 100.100.100.200\r\n\r" >&3; grep -sq 'ebm' <&3 ; } 3<> /dev/tcp/100.100.100.200/80 ) 2>/dev/null ; then
119 echo "alibaba_cloud-ebm"
120 else
121 echo "alibaba_cloud"
122 fi
123 fi
124
115125 # Check for VMware.
116126 # cpuid check added by Chetan Loke.
117127
166176 if [ -e "${root}/proc/1/environ" ] &&
167177 cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=lxc'; then
168178 echo lxc
179 fi
180
181 if [ -e "${root}/proc/1/environ" ] &&
182 tr '\0' '\n' < "${root}/proc/1/environ" | grep -q '^container=zone$' &&
183 [ -e "${root}/proc/version" ] &&
184 grep -q 'BrandZ virtual linux' < "${root}/proc/version"; then
185 echo illumos-lx
169186 fi
170187
171188 # Check for Linux-VServer
221238 fi
222239
223240 # Check for Nutanix AHV.
224 # This is sufficiently different from KVM and has Viridian extensions,
225 # so skip the KVM test.
226241 if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then
227242 echo nutanix_ahv
228 skip_qemu_kvm=true
229243 fi
230244
231245 # Check for oVirt/RHEV.
234248 fi
235249 if echo "$dmi" | grep -q 'Product Name: RHEV Hypervisor'; then
236250 echo rhev
251 fi
252
253 # Google Cloud
254 if echo "$dmi" | grep -q 'Product Name: Google Compute Engine'; then
255 echo google_cloud
256 fi
257
258 # Red Hat's hypervisor.
259 if echo "$dmi" | grep -q 'Manufacturer: Red Hat'; then
260 echo redhat
237261 fi
238262
239263 # Check for Xen.
263287 echo xen
264288 skip_qemu_kvm=true
265289 skip_lkvm=true
290 elif [ -d "${root}/proc/device-tree/hypervisor" ] &&
291 grep -q "vmware" "${root}/proc/device-tree/hypervisor/compatible"; then
292 echo vmware
293 skip_lkvm=true
266294 fi
267295 elif [ "$arch" = "ia64" ]; then
268296 if [ -d "${root}/sys/bus/xen" -a ! -d "${root}/sys/bus/xen-backend" ]; then
408436
409437 # Check for AWS.
410438 # AWS on Xen.
411 if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then
439 if echo "$dmi" | grep -Eq 'Version: [0-9]+\.[0-9]+\.amazon'; then
412440 echo aws
413441 # AWS on baremetal or KVM.
414442 elif echo "$dmi" | grep -q 'Vendor: Amazon EC2'; then
2424
2525 =over 4
2626
27 =item B<alibaba_cloud>
28
29 =item B<alibaba_cloud-ebm>
30
31 This is a cloud computing service based on Alibaba Cloud.
32
33 Status: contributed by Weisson.
34
2735 =item B<aws>
2836
2937 Amazon Web Services.
4654
4755 Status: confirmed by Charles Nguyen
4856
57 =item B<google_cloud>
58
59 This is running on Google Cloud Platform / Google Compute Engine.
60
61 Status: not confirmed
62
4963 =item B<hyperv>
5064
5165 This is Microsoft Hyper-V hypervisor.
101115 This is a KVM guest running on an IBM System Z hardware system.
102116
103117 Status: contributed by Thomas Huth
118
119 =item B<illumos-lx>
120
121 The guest is running on Illumos with a Linux syscall emulation layer.
122
123 Status: contributed by Steve Mokris
104124
105125 =item B<ldoms>
106126
228248 =item B<rhev>
229249
230250 The guest is running on a Red Hat Enterprise Virtualization (RHEV) node.
251
252 Status: confirmed by RWMJ
253
254 =item B<redhat>
255
256 The guest is running on the Red Hat hypervisor.
231257
232258 Status: confirmed by RWMJ
233259
384410
385411 =head1 COPYRIGHT
386412
387 (C) Copyright 2008-2015 Red Hat Inc.,
413 (C) Copyright 2008-2022 Red Hat Inc.,
388414 L<http://people.redhat.com/~rjones/virt-what/>
389415
390416 This program is free software; you can redistribute it and/or modify