1 dnl Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
3 dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 dnl This library is free software; you can redistribute it and/or
7 dnl modify it under the terms of the GNU Lesser General Public
8 dnl License as published by the Free Software Foundation; either
9 dnl version 2.1 of the License, or (at your option) any later version.
11 dnl This library is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 dnl Lesser General Public License for more details.
16 dnl You should have received a copy of the GNU Lesser General Public
17 dnl License along with this library; if not, write to the Free Software
18 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 AC_DEFUN([CHECK_PLATFORM],[
24 AC_REQUIRE([AC_PROG_CC])dnl
25 AC_REQUIRE([AC_PROG_CPP])dnl
27 AC_CHECKING(for Platform)
29 AC_SUBST(PLATFORM_INCLUDES)
31 PLATFORM_INCLUDES="PCLINUX"
36 irix5.* | irix6.* | osf4.* | osf5.* | linux* )
39 expr "$host_os" : 'linux' >/dev/null && test ! x"$host_cpu" = x"x86_64" && linux64="false"
40 if test ! x"$linux64" = "xfalse" ; then
41 echo "$as_me:$LINENO: checking for 64bits integers size in F77/F90" >&5
42 echo $ECHO_N "checking for 64bits integers size in F77/F90... $ECHO_C" >&6
43 # Check whether --enable-int64 or --disable-int64 was given.
44 if test "${enable_int64+set}" = set; then
45 enableval="$enable_int64"
48 case "X-$enable_int64" in
50 echo "$as_me:$LINENO: result: \"disabled\"" >&5
51 echo "${ECHO_T}\"disabled\"" >&6
55 echo "$as_me:$LINENO: result: \"enabled\"" >&5
56 echo "${ECHO_T}\"enabled\"" >&6
69 test x"$linux64" = x"true" && \
70 MACHINE="PCLINUX64${SUFFIXES}" || \
81 MACHINE="IRIX64${SUFFIXES}"
82 host_os_novers=irix5.x
85 MACHINE="IRIX64${SUFFIXES}"
86 host_os_novers=irix6.x
89 MACHINE="OSF1${SUFFIXES}"
93 MACHINE="OSF1${SUFFIXES}"
98 host_os_novers=solaris2.x
105 host_os_novers=$host_os
115 PLATFORM_INCLUDES=" -D$MACHINE "