X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fhost-os.m4;h=0f6241404081f9657ef593eecbb652777fd04e77;hb=f5d7314bdeb3d2022ed572f48feba6546baf5f5b;hp=0a96a852be3ac8bff1e8d8397649bc98a99d6dff;hpb=2183c2199b61a0738ff5712257ad503223669fe2;p=gnulib.git diff --git a/m4/host-os.m4 b/m4/host-os.m4 index 0a96a852b..0f6241404 100644 --- a/m4/host-os.m4 +++ b/m4/host-os.m4 @@ -1,20 +1,9 @@ -#serial 4 +# serial 7 -# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +# Copyright (C) 2001, 2003-2004, 2006, 2009-2010 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. # Written by Paul Eggert. @@ -23,6 +12,7 @@ dnl From Paul Eggert. # Define HOST_OPERATING_SYSTEM to a name for the host operating system. AC_DEFUN([gl_HOST_OS], [ + AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([host operating system], gl_cv_host_operating_system, @@ -30,63 +20,63 @@ AC_DEFUN([gl_HOST_OS], # These operating system names do not use the default heuristic below. # They are in reverse order, so that more-specific prefixes come first. - winnt*) os='Windows NT';; - vos*) os='VOS';; - sysv*) os='Unix System V';; - superux*) os='SUPER-UX';; - sunos*) os='SunOS';; - stop*) os='STOP';; - sco*) os='SCO Unix';; - riscos*) os='RISC OS';; - riscix*) os='RISCiX';; - qnx*) os='QNX';; - pw32*) os='PW32';; - ptx*) os='ptx';; - plan9*) os='Plan 9';; - osf*) os='Tru64';; - os2*) os='OS/2';; - openbsd*) os='OpenBSD';; - nsk*) os='NonStop Kernel';; - nonstopux*) os='NonStop-UX';; - netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland - netbsd*) os='NetBSD';; - knetbsd*-gnu) os='GNU/KNetBSD';; # NetBSD kernel, GNU libc+userland - kfreebsd*-gnu) os='GNU/KFreeBSD';; # FreeBSD kernel, GNU libc+userland - msdosdjgpp*) os='DJGPP';; - mpeix*) os='MPE/iX';; - mint*) os='MiNT';; - mingw*) os='MinGW';; - lynxos*) os='LynxOS';; - linux*) os='GNU/Linux';; - hpux*) os='HP-UX';; - hiux*) os='HI-UX';; - gnu*) os='GNU';; - freebsd*) os='FreeBSD';; - dgux*) os='DG/UX';; - bsdi*) os='BSD/OS';; - bsd*) os='BSD';; - beos*) os='BeOS';; - aux*) os='A/UX';; - atheos*) os='AtheOS';; - amigaos*) os='Amiga OS';; - aix*) os='AIX';; + winnt*) os='Windows NT';; + vos*) os='VOS';; + sysv*) os='Unix System V';; + superux*) os='SUPER-UX';; + sunos*) os='SunOS';; + stop*) os='STOP';; + sco*) os='SCO Unix';; + riscos*) os='RISC OS';; + riscix*) os='RISCiX';; + qnx*) os='QNX';; + pw32*) os='PW32';; + ptx*) os='ptx';; + plan9*) os='Plan 9';; + osf*) os='Tru64';; + os2*) os='OS/2';; + openbsd*) os='OpenBSD';; + nsk*) os='NonStop Kernel';; + nonstopux*) os='NonStop-UX';; + netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland + netbsd*) os='NetBSD';; + knetbsd*-gnu) os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland + kfreebsd*-gnu) os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland + msdosdjgpp*) os='DJGPP';; + mpeix*) os='MPE/iX';; + mint*) os='MiNT';; + mingw*) os='MinGW';; + lynxos*) os='LynxOS';; + linux*) os='GNU/Linux';; + hpux*) os='HP-UX';; + hiux*) os='HI-UX';; + gnu*) os='GNU';; + freebsd*) os='FreeBSD';; + dgux*) os='DG/UX';; + bsdi*) os='BSD/OS';; + bsd*) os='BSD';; + beos*) os='BeOS';; + aux*) os='A/UX';; + atheos*) os='AtheOS';; + amigaos*) os='Amiga OS';; + aix*) os='AIX';; # The default heuristic takes the initial alphabetic string # from $host_os, but capitalizes its first letter. [A-Za-z]*) - os=` - expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]' - `` - expr "X$host_os" : 'X.\([A-Za-z]*\)' - ` - ;; + os=` + expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]' + `` + expr "X$host_os" : 'X.\([A-Za-z]*\)' + ` + ;; # If $host_os does not start with an alphabetic string, use it unchanged. *) - os=$host_os;; + os=$host_os;; esac gl_cv_host_operating_system=$os]]) - AC_DEFINE_UNQUOTED(HOST_OPERATING_SYSTEM, + AC_DEFINE_UNQUOTED([HOST_OPERATING_SYSTEM], "$gl_cv_host_operating_system", [The host operating system.]) ])