Salome HOME
Python containers are no more supported
[modules/kernel.git] / DEPRECATED / make_config.in
1 # Copyright (C) 2007-2013  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
23 # make_config.in: template for make_config script
24 # make_config is used by check_cas.m4 to generate 
25 # config.h file in case it cannot be found in OCC
26 # and SALOME include paths
27 #=================================================
28 #
29 dnl Process this file with autoconf to produce a configure script.
30
31 AC_INIT(salome_adm/unix)
32 AC_CONFIG_SRCDIR(salome_adm/unix/config.h.in)
33 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
34 AC_CANONICAL_HOST
35
36 AC_CONFIG_HEADERS(./salome_adm/unix/config.h)
37
38 AC_ISC_POSIX
39 AC_C_BIGENDIAN
40
41 dnl Checks for programs.
42 AC_PROG_CXX
43 AC_PROG_CC_C_O
44
45 AC_PROG_AWK
46 AC_PROG_INSTALL
47 AC_PROG_LN_S
48 AC_PROG_YACC
49 AC_PROG_MAKE_SET
50
51 dnl Replace `main' with a function in -le:
52 AC_CHECK_LIB(e, main)
53
54 dnl Replace `main' with a function in -links:
55 AC_CHECK_LIB(inks, main)
56
57 dnl Checks for X window system directories.
58 AC_PATH_X
59 if test "x$ac_x_includes" = "x"; then
60   X_INCLUDE=""
61 else
62   X_INCLUDE="-I$ac_x_includes"
63 fi
64 if test "x$ac_x_libraries" = "x"; then
65   X_LIBS="-lXt -lX11"
66 else
67   X_LIBS="-L$ac_x_libraries -lXt -lX11"
68 fi
69
70 dnl Checks for header files.
71
72 AC_HEADER_STDC
73 AC_LANG([C])
74 AC_MSG_CHECKING([ for C header files ])
75 AC_CHECK_HEADERS(dlfcn.h dl.h ieeefp.h time.h sys/time.h pwd.h)
76 AC_CHECK_HEADERS(sys/statvfs.h sys/vfs.h sys/param.h osfcn.h netdb.h)
77 AC_CHECK_HEADERS(sys/ioctl.h net/if.h sys/systeminfo.h sys/utsname.h)
78 AC_CHECK_HEADERS(sysent.h unistd.h sys/unistd.h sys/socket.h)
79 AC_CHECK_HEADERS(ndir.h sys/ndir.h sys/dir.h signal.h sys/signal.h)
80 AC_CHECK_HEADERS(sigfpe.h floatingpoint.h sys/machsig.h sys/siginfo.h)
81 AC_CHECK_HEADERS(malloc.h strings.h sys/stat.h sys/sem.h sys/ipc.h)
82 AC_CHECK_HEADERS(sys/times.h dirent.h getopt.h sys/vnode.h)
83
84
85 AC_LANG([C++])
86 AC_MSG_CHECKING([ for C++ header files ])
87 AC_CHECK_HEADERS(istream ostream istream fstream ios iomanip iostream )
88 AC_CHECK_HEADERS(stream.h strstream.h istream.h ostream.h fstream.h stdlib.h ios.h iostream.h)
89 AC_CHECK_HEADERS(iomanip.h limits.h values.h float.h)
90 AC_CHECK_HEADERS(siginfo.h bits/sigset.h bstring.h sys/types.h sys/select.h)
91 AC_CHECK_HEADERS(X11/extensions/transovl.h X11/extensions/readdisplay.h)
92 AC_CHECK_HEADERS(X11/extensions/multibuf.h)
93 AC_CHECK_HEADERS(sys/filio.h sys/mman.h libc.h)
94
95 dnl Checks for library functions.
96 AC_TYPE_SIGNAL
97
98 AC_OUTPUT()