X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fhost-os.m4;h=e8fe07214938afd6b776d816ef5c528eda1ca96c;hb=348925857a90662fb2bc8184f301ef16eff8ef80;hp=a53692d557a11c00714678e6d813ed9fe3dfa6e6;hpb=683f20f450976b4c99f616e7cb0b4217286cec56;p=gnulib.git diff --git a/m4/host-os.m4 b/m4/host-os.m4 index a53692d55..e8fe07214 100644 --- a/m4/host-os.m4 +++ b/m4/host-os.m4 @@ -1,12 +1,30 @@ -#serial 1 +#serial 4 + +# 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. */ + +# Written by Paul Eggert. dnl From Paul Eggert. # Define HOST_OPERATING_SYSTEM to a name for the host operating system. -AC_DEFUN([UTILS_HOST_OS], +AC_DEFUN([gl_HOST_OS], [ AC_CACHE_CHECK([host operating system], - utils_cv_host_operating_system, + gl_cv_host_operating_system, [[case $host_os in @@ -30,7 +48,10 @@ AC_DEFUN([UTILS_HOST_OS], 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';; @@ -64,8 +85,8 @@ AC_DEFUN([UTILS_HOST_OS], *) os=$host_os;; esac - utils_cv_host_operating_system=$os]]) + gl_cv_host_operating_system=$os]]) AC_DEFINE_UNQUOTED(HOST_OPERATING_SYSTEM, - "$utils_cv_host_operating_system", + "$gl_cv_host_operating_system", [The host operating system.]) ])