source: trunk/gsdl/configure.in@ 566

Last change on this file since 566 was 566, checked in by cs025, 25 years ago

Further patches for the FASTCGI issues

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(lib/text_t.h)
3
4PACKAGE=gsdl
5VERSION=2.0
6AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
7AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
8AC_SUBST(PACKAGE)
9AC_SUBST(VERSION)
10USE_FASTCGI=0
11if test USE_FASTCGI = 1; then
12AC_DEFINE(USE_FASTCGI)
13AC_SUBST(USE_FASTCGI)
14fi
15
16dnl Checks for programs.
17AC_PROG_CC
18AC_PROG_CXX
19dnl AC_PROG_INSTALL
20AC_PROG_LN_S
21AC_PROG_MAKE_SET
22AC_PROG_RANLIB
23
24dnl Checks for libraries.
25dnl Replace `main' with a function in -lg:
26AC_CHECK_LIB(g, main)
27dnl Replace `main' with a function in -lgdbm:
28AC_CHECK_LIB(gdbm, main)
29dnl Replace `main' with a function in -lm:
30AC_CHECK_LIB(m, main)
31dnl Replace `main' with a function in -lstdc:
32AC_CHECK_LIB(stdc, main)
33
34dnl Checks for header files.
35AC_HEADER_STDC
36AC_CHECK_HEADERS(fcntl.h)
37
38dnl Checks for typedefs, structures, and compiler characteristics.
39AC_C_CONST
40AC_HEADER_TIME
41
42
43dnl
44dnl Check if the STL library has any known faults;
45dnl In GCC 2.7.2.x series, some STL library headers are missing
46dnl a file called "new" which is referred to by other headers
47dnl (eg. vector/vector.h); if this applies, then all use of the
48dnl STL will cause a compile fail, so we'd better let the user
49dnl know now, before things really go wrong!
50dnl
51AC_LANG_CPLUSPLUS
52success=no
53AC_MSG_CHECKING("whether STL library has known faults")
54
55dnl - first shot, try simple good old vector on its own
56AC_TRY_COMPILE(
57[#include <vector>
58],
59[],
60success=yes,
61)
62
63dnl - try using the .h equivalent
64if test $success = "no"; then
65AC_TRY_COMPILE(
66[#include <vector.h>
67],
68[],
69success="yes",
70)
71fi
72
73dnl - now try for the objectspace headers
74if test $success = "no"; then
75AC_TRY_COMPILE(
76[#include <ospace\\std\\vector>
77],
78[],
79success="yes",
80)
81fi
82
83if test $success = yes; then
84AC_MSG_RESULT("no")
85else
86AC_MSG_RESULT("yes")
87AC_MSG_ERROR("STL Broken - new not found in vector header file")
88fi
89
90gsdlos=`uname | tr A-Z a-z`
91AC_SUBST(gsdlos)
92
93dnl Checks for library functions.
94AC_FUNC_VPRINTF
95
96AC_OUTPUT(src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile collect/niupepa/src/recpt/Makefile Makefile)
97
98
99
100
Note: See TracBrowser for help on using the repository browser.