Salome HOME
Implementation of the issue 0020151 (SALOME: Light Python module)
[modules/kernel.git] / DEPRECATED / make_config.in
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # make_config.in: template for make_config script
23 # make_config is used by check_cas.m4 to generate 
24 # config.h file in case it cannot be found in OCC
25 # and SALOME include paths
26 #=================================================
27 #
28 dnl Process this file with autoconf to produce a configure script.
29
30 AC_INIT(salome_adm/unix)
31 AC_CONFIG_SRCDIR(salome_adm/unix/config.h.in)
32 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
33 AC_CANONICAL_HOST
34
35 AC_CONFIG_HEADERS(./salome_adm/unix/config.h)
36
37 AC_ISC_POSIX
38 AC_C_BIGENDIAN
39
40 dnl Checks for programs.
41 AC_PROG_CXX
42 AC_PROG_CC_C_O
43
44 AC_PROG_AWK
45 AC_PROG_INSTALL
46 AC_PROG_LN_S
47 AC_PROG_YACC
48 AC_PROG_MAKE_SET
49
50 dnl Replace `main' with a function in -le:
51 AC_CHECK_LIB(e, main)
52
53 dnl Replace `main' with a function in -links:
54 AC_CHECK_LIB(inks, main)
55
56 dnl Checks for X window system directories.
57 AC_PATH_X
58 if test "x$ac_x_includes" = "x"; then
59   X_INCLUDE=""
60 else
61   X_INCLUDE="-I$ac_x_includes"
62 fi
63 if test "x$ac_x_libraries" = "x"; then
64   X_LIBS="-lXt -lX11"
65 else
66   X_LIBS="-L$ac_x_libraries -lXt -lX11"
67 fi
68
69 dnl Checks for header files.
70
71 AC_HEADER_STDC
72 AC_LANG([C])
73 AC_MSG_CHECKING([ for C header files ])
74 AC_CHECK_HEADERS(dlfcn.h dl.h ieeefp.h time.h sys/time.h pwd.h)
75 AC_CHECK_HEADERS(sys/statvfs.h sys/vfs.h sys/param.h osfcn.h netdb.h)
76 AC_CHECK_HEADERS(sys/ioctl.h net/if.h sys/systeminfo.h sys/utsname.h)
77 AC_CHECK_HEADERS(sysent.h unistd.h sys/unistd.h sys/socket.h)
78 AC_CHECK_HEADERS(ndir.h sys/ndir.h sys/dir.h signal.h sys/signal.h)
79 AC_CHECK_HEADERS(sigfpe.h floatingpoint.h sys/machsig.h sys/siginfo.h)
80 AC_CHECK_HEADERS(malloc.h strings.h sys/stat.h sys/sem.h sys/ipc.h)
81 AC_CHECK_HEADERS(sys/times.h dirent.h getopt.h sys/vnode.h)
82
83
84 AC_LANG([C++])
85 AC_MSG_CHECKING([ for C++ header files ])
86 AC_CHECK_HEADERS(istream ostream istream fstream ios iomanip iostream )
87 AC_CHECK_HEADERS(stream.h strstream.h istream.h ostream.h fstream.h stdlib.h ios.h iostream.h)
88 AC_CHECK_HEADERS(iomanip.h limits.h values.h float.h)
89 AC_CHECK_HEADERS(siginfo.h bits/sigset.h bstring.h sys/types.h sys/select.h)
90 AC_CHECK_HEADERS(X11/extensions/transovl.h X11/extensions/readdisplay.h)
91 AC_CHECK_HEADERS(X11/extensions/multibuf.h)
92 AC_CHECK_HEADERS(sys/filio.h sys/mman.h libc.h)
93
94 dnl Checks for library functions.
95 AC_TYPE_SIGNAL
96
97 AC_OUTPUT()