source: trunk/essentials/sys-apps/gawk/m4/arch.m4

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 1.8 KB
Line 
1dnl
2dnl arch.m4 --- autoconf input file for gawk
3dnl
4dnl Copyright (C) 1995, 1996, 1998, 1999, 2000, 2003, 2004 the Free Software Foundation, Inc.
5dnl
6dnl This file is part of GAWK, the GNU implementation of the
7dnl AWK Progamming Language.
8dnl
9dnl GAWK is free software; you can redistribute it and/or modify
10dnl it under the terms of the GNU General Public License as published by
11dnl the Free Software Foundation; either version 2 of the License, or
12dnl (at your option) any later version.
13dnl
14dnl GAWK is distributed in the hope that it will be useful,
15dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
16dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17dnl GNU General Public License for more details.
18dnl
19dnl You should have received a copy of the GNU General Public License
20dnl along with this program; if not, write to the Free Software
21dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22dnl
23
24dnl Check for AIX and add _XOPEN_SOURCE_EXTENDED
25AC_DEFUN([GAWK_AC_AIX_TWEAK], [
26AC_MSG_CHECKING([for AIX compilation hacks])
27AC_CACHE_VAL(gawk_cv_aix_hack, [
28if test -d /lpp
29then
30 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1"
31 gawk_cv_aix_hack=yes
32else
33 gawk_cv_aix_hack=no
34fi
35])dnl
36AC_MSG_RESULT([${gawk_cv_aix_hack}])
37])dnl
38
39dnl Check for Alpha Linux systems
40AC_DEFUN([GAWK_AC_LINUX_ALPHA], [
41AC_MSG_CHECKING([for Linux/Alpha compilation hacks])
42AC_CACHE_VAL(gawk_cv_linux_alpha_hack, [
43if test "Linux" = "`uname`" && test "alpha" = "`uname -m`"
44then
45 # this isn't necessarily always true,
46 # the vendor's compiler is also often found
47 if test "$GCC" = yes
48 then
49 CFLAGS="$CFLAGS -mieee"
50 gawk_cv_linux_alpha_hack=yes
51 else
52 gawk_cv_linux_alpha_hack=no
53 fi
54else
55 gawk_cv_linux_alpha_hack=no
56fi
57])dnl
58AC_MSG_RESULT([${gawk_cv_linux_alpha_hack}])
59])dnl
Note: See TracBrowser for help on using the repository browser.