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