search for: as_case

Displaying 20 results from an estimated 57 matches for "as_case".

2014 Nov 12
1
[PATCH] configure: simplify the qemu cpu mapping
Use AS_CASE to properly map from the host cpu to the qemu cpu suffix; this avoids doing multiple string replacements using sed, and it is possible to use case-like syntax. --- configure.ac | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index a5...
2017 Sep 25
2
[PATCH] build: improve and simplify distro detection
...c/os-release; then - ( . /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@' ) >&AS_MESSAGE_LOG_FD - DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" - AS_CASE([$DISTRO], - [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], - [OPENSUSE | SLED | SLES],[DISTRO=SUSE], - [ARCH],[DISTRO=ARCHLINUX]) -elif test -f /etc/debian_version; then - DISTRO=DEBIAN - if grep -q 'DISTRIB_ID=Ubuntu' /etc/lsb-release 2>&AS_MESSAGE...
2017 Jul 20
1
Re: [PATCH] appliance: read ID_LIKE from os-release as a fallback
...<:@:lower:@:>@' '@<:@:upper:@:>@'`" > > +    fi > > NACK -- while this would be a fallback, theoretically ID_LIKE is a list > of distros. Then may be we should handle the values in the list to try to find one that fits the values we know > >      AS_CASE([$DISTRO], > >              [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], > > -            [OPENSUSE | SLED | SLES],[DISTRO=SUSE], > > +            [OPENSUSE | SLED | SLES | SUSE],[DISTRO=SUSE], > > There is no need for this, since a value of $DISTRO not matching any of > th...
2017 Oct 05
0
[PATCH] build: Don't test for qemu virtio-serial at configure time.
...f> diff --git a/m4/guestfs_qemu.m4 b/m4/guestfs_qemu.m4 index e07e9800f..350bb980d 100644 --- a/m4/guestfs_qemu.m4 +++ b/m4/guestfs_qemu.m4 @@ -17,6 +17,7 @@ dnl Check for QEMU for running binaries on this $host_cpu, fall dnl back to basic 'qemu'. Allow the user to override it. + AS_CASE([$host_cpu], [i@<:@456@:>@86],[qemu_cpu=i386], [arm*],[qemu_cpu=arm], @@ -24,110 +25,78 @@ AS_CASE([$host_cpu], [powerpc64 | ppc64le | powerpc64le],[qemu_cpu=ppc64], [qemu_cpu=$host_cpu]) default_qemu="qemu-kvm kvm qemu-system-$qemu_cpu qemu" +...
2017 Sep 01
2
[PATCH v2] appliance: use ID_LIKE as a fallback for SUSE distro detection
...fs_appliance.m4 index fbba3373f..788afbd36 100644 --- a/m4/guestfs_appliance.m4 +++ b/m4/guestfs_appliance.m4 @@ -99,8 +99,16 @@ if test -f /etc/os-release; then DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], - [OPENSUSE | SLED | SLES],[DISTRO=SUSE], + [OPENSUSE | SLED | SLES | SUSE],[DISTRO=SUSE], [ARCH],[DISTRO=ARCHLINUX]) + dnl All SUSE-based distros have ID_LIKE containing 'suse', check fo...
2019 Jan 22
2
[PATCH] gobject: Add Vala binding support
..._ENABLE([vala], + [AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[ + AS_IF([test "x$4" = "x"], [ + enable_vala=auto + ], [ + enable_vala=$4 + ]) + ]) + + AS_CASE([$enable_vala], [no], [enable_vala=no], + [yes], [ + AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ + AC_MSG_ERROR([Vala bindings require GObject Introspection]) + ]) + ], [auto], [ + AS_IF([te...
2020 Oct 17
1
[PATCH] Use guestfsd binary to auto-generate library dependencies for appliance
...21a..b0a6ab40f0 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -114,6 +114,15 @@ AC_ARG_WITH([distro], AC_MSG_ERROR([/etc/os-release not available, please specify the distro using --with-distro=DISTRO]) fi ] + AM_CONDITIONAL([HAVE_RPM], + [AS_CASE([$DISTRO], [REDHAT | SUSE | OPENMANDRIVA | MAGEIA ], [true], + [*], [false])]) + AM_CONDITIONAL([HAVE_DPKG], + [AS_CASE([$DISTRO], [DEBIAN | UBUNTU ], [true], + [*], [false])]) + AM_CONDITIONAL([HAVE_PACMAN], + [AS_CASE([$DIS...
2019 Jan 22
1
[PATCH] gobject: Add Vala binding support
..._ENABLE([vala], + [AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[ + AS_IF([test "x$4" = "x"], [ + enable_vala=auto + ], [ + enable_vala=$4 + ]) + ]) + + AS_CASE([$enable_vala], [no], [enable_vala=no], + [yes], [ + AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ + AC_MSG_ERROR([Vala bindings require GObject Introspection]) + ]) + ], [auto], [ + AS_IF([te...
2019 Jan 22
2
Re: [PATCH] gobject: Add Vala binding support
..._ENABLE([vala], + [AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[ + AS_IF([test "x$4" = "x"], [ + enable_vala=auto + ], [ + enable_vala=$4 + ]) + ]) + + AS_CASE([$enable_vala], [no], [enable_vala=no], + [yes], [ + AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ + AC_MSG_ERROR([Vala bindings require GObject Introspection]) + ]) + ], [auto], [ + AS_IF([te...
2017 Jul 20
0
Re: [PATCH] appliance: read ID_LIKE from os-release as a fallback
...r:@:>@' ) >&AS_MESSAGE_LOG_FD > + DISTRO="`. /etc/os-release && echo $ID_LIKE | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" > + fi NACK -- while this would be a fallback, theoretically ID_LIKE is a list of distros. > AS_CASE([$DISTRO], > [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], > - [OPENSUSE | SLED | SLES],[DISTRO=SUSE], > + [OPENSUSE | SLED | SLES | SUSE],[DISTRO=SUSE], There is no need for this, since a value of $DISTRO not matching any of the cases in AS_CASE is left as-...
2018 Oct 01
1
[PATCH] build: support openSUSE Leap 15.0
...liance.m4 index 5c2bc3e8d..bcba4c1a1 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -105,7 +105,7 @@ AC_ARG_WITH([distro], DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], - [OPENSUSE | SLED | SLES],[DISTRO=SUSE], + [OPENSUSE-LEAP | OPENSUSE | SLED | SLES],[DISTRO=SUSE], [ARCH],[DISTRO=ARCHLINUX]) AC_MSG_RESULT([$DISTRO (fr...
2018 Oct 02
1
[PATCH] rpm: generalize openSUSE support
...liance.m4 index bcba4c1a1..0a3d6133a 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -105,7 +105,7 @@ AC_ARG_WITH([distro], DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], - [OPENSUSE-LEAP | OPENSUSE | SLED | SLES],[DISTRO=SUSE], + [OPENSUSE* | SLED | SLES],[DISTRO=SUSE], [ARCH],[DISTRO=ARCHLINUX]) AC_MSG_RESULT([$DISTRO (f...
2020 Mar 26
0
[PATCH nbdkit 4/9] vddk: Compile dummy libvixDiskLib.so with -no-undefined on all platforms.
...commit ba000b469c24ad69604137de975b255bbe70d056. --- configure.ac | 9 --------- tests/Makefile.am | 6 +----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 0a0ac60a..92e0d4e3 100644 --- a/configure.ac +++ b/configure.ac @@ -412,15 +412,6 @@ AS_CASE([$host_os], AC_MSG_RESULT([$SHARED_LDFLAGS]) AC_SUBST([SHARED_LDFLAGS]) -AC_MSG_CHECKING([if we are on a windows platform]) -AS_CASE([$host_os], - [mingw*|msys*|cygwin*], [is_windows=yes], - [is_windows=no] -) -AC_MSG_RESULT([$is_windows]) -AM_CONDITIONAL([WINDOWS], - [test &quo...
2010 Jan 20
2
Getting speex to build under MinGW / Msys - ./configure failure
...appily goes off and spews out a load of output, untill finally, it spews out the "killer": checking for sin in -lm... yes checking for getopt_long... yes checking for main in -lwinmm... yes ./configure: line 18753: syntax error near unexpected token `$FFT,' ./configure: line 18753: `AS_CASE($FFT,' now, under linux this works fine and we can get it compiling, no issues... versions of "stuff": g++ --version g++.exe (GCC) 3.4.5 (mingw-vista special r3) m4 --version m4 (GNU M4) 1.4.13 autoreconf --version autoreconf (GNU Autoconf) 2.56 $ automake --version automake...
2016 Aug 31
1
[PATCH] build: improve distro check
...c/os-release; then + ( . /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@' ) >&AS_MESSAGE_LOG_FD + DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" + AS_CASE([$DISTRO], + [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], + [OPENSUSE | SLED | SLES],[DISTRO=SUSE], + [ARCH],[DISTRO=ARCHLINUX]) +elif test -f /etc/debian_version; then DISTRO=DEBIAN if grep -q 'DISTRIB_ID=Ubuntu' /etc/lsb-release 2>&AS_MESSAGE...
2017 Sep 01
1
Re: [PATCH v2] appliance: use ID_LIKE as a fallback for SUSE distro detection
...> > --- a/m4/guestfs_appliance.m4 > > +++ b/m4/guestfs_appliance.m4 > > @@ -99,8 +99,16 @@ if test -f /etc/os-release; then > >      DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" > >      AS_CASE([$DISTRO], > >              [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], > > -            [OPENSUSE | SLED | SLES],[DISTRO=SUSE], > > +            [OPENSUSE | SLED | SLES | SUSE],[DISTRO=SUSE], > >              [ARCH],[DISTRO=ARCHLINUX]) > > +    dnl All SUSE-based distro...
2019 Jan 22
1
Re: [PATCH] gobject: Add Vala binding support
..._ENABLE([vala], + [AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[ + AS_IF([test "x$4" = "x"], [ + enable_vala=auto + ], [ + enable_vala=$4 + ]) + ]) + + AS_CASE([$enable_vala], [no], [enable_vala=no], + [yes], [ + AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ + AC_MSG_ERROR([Vala bindings require GObject Introspection]) + ]) + ], [auto], [ + AS_IF([te...
2015 May 15
0
[RFC V3 4/8] aarch64: Enable intrinsics for aarch64
...#endif #if defined(HAVE_ARM_NE10) diff --git a/configure.ac b/configure.ac index 2380a5c..a150d87 100644 --- a/configure.ac +++ b/configure.ac @@ -444,7 +444,7 @@ AC_DEFUN([OPUS_PATH_NE10], AS_IF([test x"$enable_intrinsics" = x"yes"],[ intrinsics_support="" AS_CASE([$host_cpu], - [arm*], + [arm*|aarch64], [ cpu_arm=yes OPUS_CHECK_INTRINSICS( @@ -459,55 +459,50 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[ SUMM = vmlaq_f32(SUMM, A0, A1); ]] ) - AS_IF([test x"$OPUS_ARM_MAY_HAVE...
2020 Aug 18
1
Re: [PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
...; > realpath Win32 written by me > > strndup general purpose written by me > > This should do nothing on existing supported platforms. It is only > intended in preparation for porting nbdkit to Windows. > --- > @@ -464,6 +475,15 @@ AS_CASE([$host_os], > AC_MSG_RESULT([$is_windows]) > AC_SUBST([NO_UNDEFINED_ON_WINDOWS]) > AC_SUBST([LINK_LIBNBDKIT_ON_WINDOWS]) > +AM_CONDITIONAL([IS_WINDOWS],[test "x$is_windows" = "xyes"]) > + > +dnl For Windows, look for the mc/windmc utility. > +dnl XXX D...
2017 Sep 01
0
Re: [PATCH v2] appliance: use ID_LIKE as a fallback for SUSE distro detection
...a3373f..788afbd36 100644 > --- a/m4/guestfs_appliance.m4 > +++ b/m4/guestfs_appliance.m4 > @@ -99,8 +99,16 @@ if test -f /etc/os-release; then > DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" > AS_CASE([$DISTRO], > [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], > - [OPENSUSE | SLED | SLES],[DISTRO=SUSE], > + [OPENSUSE | SLED | SLES | SUSE],[DISTRO=SUSE], > [ARCH],[DISTRO=ARCHLINUX]) > + dnl All SUSE-based distros have ID_LIKE containing...