[552] | 1 | dnl Process this file with autoconf to produce a configure script.
|
---|
[8758] | 2 | dnl Use autoconf-2.59 or later... it might not work anymore with
|
---|
| 3 | dnl the older 2.1x versions - jrm21 12/2004
|
---|
[16563] | 4 | AC_INIT()
|
---|
[684] | 5 | AC_CONFIG_HEADER(config.h)
|
---|
[552] | 6 |
|
---|
[554] | 7 | PACKAGE=gsdl
|
---|
[16563] | 8 | VERSION=2.82-svn
|
---|
[552] | 9 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
---|
| 10 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
---|
| 11 | AC_SUBST(PACKAGE)
|
---|
| 12 | AC_SUBST(VERSION)
|
---|
[567] | 13 |
|
---|
[18483] | 14 |
|
---|
[1860] | 15 | dnl
|
---|
| 16 | dnl Set use of fast cgi
|
---|
| 17 | dnl
|
---|
[566] | 18 | USE_FASTCGI=0
|
---|
| 19 | if test USE_FASTCGI = 1; then
|
---|
| 20 | AC_DEFINE(USE_FASTCGI)
|
---|
| 21 | AC_SUBST(USE_FASTCGI)
|
---|
| 22 | fi
|
---|
[552] | 23 |
|
---|
[1860] | 24 | dnl
|
---|
[3631] | 25 | dnl Set use of langaction
|
---|
| 26 | dnl
|
---|
| 27 | dnl USE_LANGACTION=0
|
---|
| 28 | if test USE_LANGACTION = 1; then
|
---|
| 29 | AC_DEFINE(USE_LANGACTION)
|
---|
| 30 | AC_SUBST(USE_LANGACTION)
|
---|
| 31 | fi
|
---|
| 32 |
|
---|
| 33 | dnl
|
---|
[1860] | 34 | dnl Set use of corba
|
---|
| 35 | dnl
|
---|
[2470] | 36 | AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=1, USE_CORBA=0)
|
---|
[2296] | 37 | AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA)
|
---|
[2051] | 38 | AC_SUBST(USE_CORBA)
|
---|
[1860] | 39 |
|
---|
[21330] | 40 | AC_ARG_WITH(micodir, [ --with-micodir Use installed MICO directory], MICO_DIR=$withval, MICO_DIR="default")
|
---|
[2296] | 41 | AC_DEFINE_UNQUOTED(MICO_DIR, "$MICO_DIR")
|
---|
[2051] | 42 | AC_SUBST(MICO_DIR)
|
---|
[1860] | 43 |
|
---|
[1938] | 44 | dnl
|
---|
| 45 | dnl Set use of z39.50
|
---|
| 46 | dnl
|
---|
| 47 | AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0)
|
---|
[2296] | 48 | if test USE_Z3950 = 1; then
|
---|
| 49 | AC_DEFINE(USE_Z3950, $USE_Z3950)
|
---|
[1938] | 50 | AC_SUBST(USE_Z3950)
|
---|
[2296] | 51 | fi
|
---|
[1938] | 52 |
|
---|
[2279] | 53 | dnl
|
---|
[12492] | 54 | dnl Set use of yaz - now compiled by default even when z3950 support not required
|
---|
| 55 | dnl
|
---|
[15901] | 56 | AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1)
|
---|
[12492] | 57 | dnl if test USE_YAZ = 1; then
|
---|
| 58 | AC_DEFINE(USE_YAZ, $USE_YAZ)
|
---|
| 59 | AC_SUBST(USE_YAZ)
|
---|
| 60 | dnl fi
|
---|
| 61 |
|
---|
[12922] | 62 | dnl
|
---|
| 63 | dnl disable compilation of accent folding stuff for mgpp (and one day mg)
|
---|
| 64 | dnl
|
---|
[15901] | 65 | AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1)
|
---|
[12922] | 66 | AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD)
|
---|
| 67 | AC_SUBST(ENABLE_ACCENTFOLD)
|
---|
| 68 |
|
---|
[15901] | 69 | dnl
|
---|
[21409] | 70 | dnl Set use of JDBM (enabled by default)
|
---|
| 71 | dnl
|
---|
[21417] | 72 | dnl
|
---|
| 73 | dnl Set use of JDBM (enabled by default)
|
---|
| 74 | dnl
|
---|
| 75 | AC_ARG_ENABLE(jdbm, [ --disable-jdbm Disable JDBM compilation], ENABLE_JDBM=$enableval, ENABLE_JDBM=yes)
|
---|
| 76 | if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
|
---|
| 77 | ENABLE_JDBM=1
|
---|
| 78 | AC_DEFINE(ENABLE_JDBM,[])
|
---|
| 79 | else
|
---|
| 80 | ENABLE_JDBM=0
|
---|
| 81 | fi
|
---|
| 82 | AC_SUBST(ENABLE_JDBM)
|
---|
[21409] | 83 |
|
---|
| 84 | dnl
|
---|
[16288] | 85 | dnl Set use of SQLite (enabled by default)
|
---|
[15901] | 86 | dnl
|
---|
[16288] | 87 | AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1)
|
---|
[15901] | 88 | AC_DEFINE(USE_SQLITE, $USE_SQLITE)
|
---|
| 89 | AC_SUBST(USE_SQLITE)
|
---|
| 90 |
|
---|
[18483] | 91 | dnl
|
---|
[20853] | 92 | dnl Set use of Apache httpd (disabled by default)
|
---|
[18483] | 93 | dnl
|
---|
[21377] | 94 | if test -d runtime-src; then
|
---|
| 95 | AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=1, USE_APACHE_HTTPD=0)
|
---|
| 96 | AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD)
|
---|
| 97 | AC_SUBST(USE_APACHE_HTTPD)
|
---|
| 98 | fi
|
---|
[18483] | 99 |
|
---|
[21366] | 100 | dnl
|
---|
| 101 | dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour)
|
---|
| 102 | dnl
|
---|
| 103 | AC_ARG_ENABLE(jni, [ --enable-jni Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
|
---|
| 104 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
| 105 | ENABLE_JNI=1
|
---|
| 106 | AC_DEFINE(ENABLE_JNI,[])
|
---|
| 107 | else
|
---|
| 108 | ENABLE_JNI=0
|
---|
| 109 | fi
|
---|
| 110 | AC_SUBST(ENABLE_JNI)
|
---|
[18483] | 111 |
|
---|
[21330] | 112 | dnl
|
---|
| 113 | dnl Set compilation of MG (enabled by default)
|
---|
| 114 | dnl
|
---|
| 115 | AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
|
---|
| 116 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 117 | ENABLE_MG=1
|
---|
| 118 | AC_DEFINE(ENABLE_MG,[])
|
---|
| 119 | else
|
---|
| 120 | ENABLE_MG=0
|
---|
| 121 | fi
|
---|
| 122 | AC_SUBST(ENABLE_MG)
|
---|
| 123 |
|
---|
| 124 |
|
---|
| 125 | dnl
|
---|
| 126 | dnl Set compilation of MGPP (enabled by default)
|
---|
| 127 | dnl
|
---|
| 128 | AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
|
---|
| 129 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 130 | ENABLE_MGPP=1
|
---|
| 131 | AC_DEFINE(ENABLE_MGPP,[])
|
---|
| 132 | else
|
---|
| 133 | ENABLE_MGPP=0
|
---|
| 134 | fi
|
---|
| 135 | AC_SUBST(ENABLE_MGPP)
|
---|
| 136 |
|
---|
| 137 | dnl
|
---|
| 138 | dnl Set compilation of lucene (enabled by default)
|
---|
| 139 | dnl
|
---|
| 140 | AC_ARG_ENABLE(lucene, [ --disable-lucene Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
|
---|
| 141 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
| 142 | ENABLE_LUCENE=1
|
---|
| 143 | AC_DEFINE(ENABLE_LUCENE, [])
|
---|
| 144 | else
|
---|
| 145 | ENABLE_LUCENE=0
|
---|
| 146 | fi
|
---|
| 147 | AC_SUBST(ENABLE_LUCENE)
|
---|
| 148 |
|
---|
| 149 |
|
---|
[552] | 150 | dnl Checks for programs.
|
---|
[14169] | 151 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 152 | AC_SUBST(LDFLAGS)
|
---|
[1722] | 153 | dnl only set CFLAGS if not already set in environment
|
---|
| 154 | if test -z "$CFLAGS"; then
|
---|
[794] | 155 | CFLAGS=-O2
|
---|
[1722] | 156 | fi
|
---|
[575] | 157 | AC_SUBST(CFLAGS)
|
---|
| 158 |
|
---|
[15551] | 159 |
|
---|
[552] | 160 | AC_PROG_CC
|
---|
| 161 | AC_PROG_CXX
|
---|
[684] | 162 | AC_PROG_AWK
|
---|
| 163 | AC_PROG_YACC
|
---|
[2279] | 164 | dnl get $target_cpu, $target_vendor, and $target_os
|
---|
| 165 | dnl (as well as host_*)
|
---|
| 166 | AC_CANONICAL_SYSTEM
|
---|
| 167 | dnl do we actually want this? It adds a prefix based on host, system etc
|
---|
| 168 | dnl AC_ARG_PROGRAM
|
---|
[703] | 169 | AC_PROG_INSTALL
|
---|
[552] | 170 | AC_PROG_LN_S
|
---|
| 171 | AC_PROG_MAKE_SET
|
---|
| 172 | AC_PROG_RANLIB
|
---|
| 173 |
|
---|
[15551] | 174 | AC_MSG_CHECKING(to see if architecture is 64-bit)
|
---|
| 175 | arch_64bit=no
|
---|
| 176 | case "$host_cpu" in
|
---|
| 177 | x86_64) arch_64bit=yes ;;
|
---|
| 178 | esac
|
---|
| 179 |
|
---|
| 180 | if test "$arch_64bit" = yes; then
|
---|
| 181 | AC_MSG_RESULT(yes)
|
---|
| 182 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 183 | COMPAT32BITFLAGS="-m32"
|
---|
| 184 | fi
|
---|
| 185 | else
|
---|
| 186 | AC_MSG_RESULT(no)
|
---|
| 187 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 188 | COMPAT32BITFLAGS=
|
---|
| 189 | fi
|
---|
| 190 | fi
|
---|
[21432] | 191 |
|
---|
| 192 | # Only need compat32bitflag if using MG or MGPP
|
---|
| 193 | if test "$ENABLE_MG" = "0" ; then
|
---|
| 194 | COMPAT32BITFLAGS=
|
---|
| 195 | else
|
---|
| 196 | if test "$ENABLE_MGPP" = "0" ; then
|
---|
| 197 | COMPAT32BITFLAGS=
|
---|
| 198 | fi
|
---|
| 199 | fi
|
---|
| 200 |
|
---|
[15551] | 201 | export COMPAT32BITFLAGS
|
---|
| 202 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
| 203 |
|
---|
| 204 |
|
---|
[2173] | 205 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 206 | if test $USE_CORBA = 1; then
|
---|
| 207 |
|
---|
[2213] | 208 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 209 | #do something
|
---|
| 210 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 211 | else
|
---|
| 212 | #build the micotest program
|
---|
| 213 | MICO_INC= ""
|
---|
| 214 | if test $MICO_DIR != yes; then
|
---|
| 215 | MICO_INC="-I $MICO_DIR"
|
---|
| 216 | fi
|
---|
| 217 | fi
|
---|
| 218 |
|
---|
| 219 | #get MICO_VER value
|
---|
| 220 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 221 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 222 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 223 | sh -c "rm micotest"
|
---|
| 224 | sh -c "rm micotest.o"
|
---|
| 225 |
|
---|
| 226 | #do test of MICO_VER
|
---|
| 227 | if test MICO_VER != 0; then
|
---|
| 228 | AC_DEFINE(MICO_VER)
|
---|
| 229 | AC_SUBST(MICO_VER)
|
---|
| 230 | fi
|
---|
| 231 | #end USE_CORBA test
|
---|
| 232 | fi
|
---|
| 233 |
|
---|
[684] | 234 | dnl Checks for typedefs, structures, and compiler characteristics.
|
---|
| 235 | AC_AIX
|
---|
| 236 | AC_ISC_POSIX
|
---|
| 237 | AC_MINIX
|
---|
| 238 | fp_C_PROTOTYPES
|
---|
| 239 | AC_C_CONST
|
---|
| 240 | AC_TYPE_OFF_T
|
---|
| 241 | AC_TYPE_SIZE_T
|
---|
| 242 | AC_HEADER_TIME
|
---|
| 243 | AC_STRUCT_TM
|
---|
| 244 |
|
---|
| 245 | dnl --- This should be in the stdc checking -----------------
|
---|
| 246 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 247 | dnl The Pyramids running SMP_DC.OSx on MIPS r3000 chips with
|
---|
| 248 | dnl /usr/opt/cc3.11/bin/cc treat -Xc as full ANSI mode - no POSIX or
|
---|
| 249 | dnl XOPEN extensions (like popen).
|
---|
| 250 | dnl Unfortunately -D_{XOPEN,POSIX}_SOURCE can't provide all that mg
|
---|
| 251 | dnl needs. So drop back to -Xa
|
---|
| 252 | AC_TRY_COMPILE(
|
---|
| 253 | [#include <stdio.h>
|
---|
| 254 | ], [ FILE *rubbish = popen("yes", "r"); ],,
|
---|
| 255 | [CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'])
|
---|
| 256 | fi
|
---|
| 257 | dnl ----------------------
|
---|
| 258 |
|
---|
| 259 |
|
---|
[552] | 260 | dnl Checks for libraries.
|
---|
[8756] | 261 | dnl check for -lg:
|
---|
| 262 | AC_HAVE_LIBRARY(g)
|
---|
| 263 | dnl check for -lm:
|
---|
| 264 | AC_HAVE_LIBRARY(m)
|
---|
| 265 | dnl check for -lcrypt:
|
---|
| 266 | AC_HAVE_LIBRARY(crypt)
|
---|
[20842] | 267 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 268 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 269 | #fi
|
---|
[552] | 270 |
|
---|
| 271 | dnl Checks for header files.
|
---|
[684] | 272 | AC_HEADER_DIRENT
|
---|
[552] | 273 | AC_HEADER_STDC
|
---|
[10181] | 274 | AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h)
|
---|
[684] | 275 | AC_EGREP_HEADER(fread, stdio.h, AC_DEFINE(HAVE_FREAD_DECL))
|
---|
| 276 | AC_EGREP_HEADER(fgetc, stdio.h, AC_DEFINE(HAVE_FGETC_DECL))
|
---|
| 277 | AC_EGREP_HEADER(pr_brksize, sys/procfs.h, AC_DEFINE(HAVE_PR_BRKSIZE))
|
---|
[552] | 278 |
|
---|
[684] | 279 | dnl Checks for library functions.
|
---|
| 280 | AC_FUNC_ALLOCA
|
---|
| 281 | AC_PROG_GCC_TRADITIONAL
|
---|
| 282 | AC_TYPE_SIGNAL
|
---|
| 283 | AC_FUNC_VPRINTF
|
---|
[786] | 284 | AC_CHECK_FUNCS(ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror)
|
---|
[684] | 285 | AC_REPLACE_FUNCS(ftruncate strstr strcasecmp)
|
---|
[552] | 286 |
|
---|
[3705] | 287 | dnl see if gettext is in libc. (try the textdomain() function).
|
---|
[8202] | 288 | AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) )
|
---|
[552] | 289 |
|
---|
[684] | 290 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 291 | # ---------------------------------------------------------------------------
|
---|
| 292 | AC_MSG_CHECKING(for HP-UX needing gmalloc)
|
---|
| 293 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
| 294 | AC_MSG_RESULT(yes)
|
---|
[8756] | 295 | AC_LIBOBJ([gmalloc])
|
---|
[684] | 296 | AC_DEFINE(HAVE_VALLOC)
|
---|
| 297 | else
|
---|
| 298 | AC_MSG_RESULT(no)
|
---|
| 299 | AC_CHECK_FUNCS(valloc)
|
---|
| 300 | fi
|
---|
| 301 |
|
---|
[8183] | 302 | # we cannot generate static libraries under Darwin
|
---|
| 303 | AC_MSG_CHECKING(for Apple MacOS X/Darwin)
|
---|
| 304 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
| 305 | AC_MSG_RESULT(yes)
|
---|
[8199] | 306 | STATIC=""
|
---|
[8183] | 307 | else
|
---|
| 308 | AC_MSG_RESULT(no)
|
---|
[8199] | 309 | STATIC="-static "
|
---|
[8183] | 310 | fi
|
---|
| 311 | AC_SUBST(STATIC)
|
---|
| 312 |
|
---|
[684] | 313 | fp_WITH_DMALLOC
|
---|
| 314 | fp_WITH_REGEX
|
---|
| 315 |
|
---|
| 316 | # ---------------------------------------------------------------------------
|
---|
| 317 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
| 318 | dnl support functions for alloca.c
|
---|
[8756] | 319 | AC_LIBOBJ([xmalloc])
|
---|
| 320 | AC_LIBOBJ([error])
|
---|
[684] | 321 | fi
|
---|
| 322 |
|
---|
| 323 |
|
---|
| 324 | # ---------------------------------------------------------------------------
|
---|
| 325 |
|
---|
[552] | 326 | dnl
|
---|
[684] | 327 | dnl Switch into C++
|
---|
| 328 | dnl
|
---|
| 329 | AC_LANG_CPLUSPLUS
|
---|
| 330 |
|
---|
| 331 | dnl
|
---|
| 332 | dnl Now check that Perl is actually around, and can be found
|
---|
| 333 | dnl
|
---|
[2279] | 334 | AC_MSG_CHECKING(that Perl 5 is available)
|
---|
[684] | 335 | success="no"
|
---|
| 336 | pl_path="$PATH"
|
---|
| 337 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 338 | for pl_dir in $pl_path; do
|
---|
| 339 | test -z "$pl_dir" && pl_dir=.
|
---|
| 340 | if test -x $pl_dir/perl; then
|
---|
| 341 | success="yes"
|
---|
| 342 | break
|
---|
| 343 | fi
|
---|
| 344 | done
|
---|
| 345 | IFS="$pl_save_ifs"
|
---|
| 346 |
|
---|
| 347 | dnl
|
---|
| 348 | dnl Perl actually can be run; now we see if it is version 5 by
|
---|
| 349 | dnl running a sample script (which returns a "clean" version number
|
---|
| 350 | dnl and then tests the result using expr. If perl errors in some
|
---|
| 351 | dnl way (eg. broken Perl executable, missing script), we set a failure
|
---|
| 352 | dnl value ("0") and then proceed as best we can
|
---|
| 353 | dnl
|
---|
| 354 | if test $success = "yes"; then
|
---|
| 355 | try=`perl configtest.pl` || try="0"
|
---|
| 356 | try=`expr $try \> 5.000`
|
---|
| 357 | if test $try = "1"; then
|
---|
| 358 | AC_MSG_RESULT("yes")
|
---|
| 359 | else
|
---|
| 360 | success="no"
|
---|
| 361 | fi
|
---|
| 362 | fi
|
---|
| 363 |
|
---|
| 364 | if test $success = "no"; then
|
---|
| 365 | AC_MSG_RESULT("no")
|
---|
| 366 | AC_MSG_ERROR("Perl 5 not available - cannot install")
|
---|
| 367 | fi
|
---|
| 368 |
|
---|
| 369 | dnl
|
---|
[552] | 370 | dnl Check if the STL library has any known faults;
|
---|
| 371 | dnl In GCC 2.7.2.x series, some STL library headers are missing
|
---|
| 372 | dnl a file called "new" which is referred to by other headers
|
---|
| 373 | dnl (eg. vector/vector.h); if this applies, then all use of the
|
---|
| 374 | dnl STL will cause a compile fail, so we'd better let the user
|
---|
| 375 | dnl know now, before things really go wrong!
|
---|
| 376 | dnl
|
---|
| 377 | success=no
|
---|
| 378 | AC_MSG_CHECKING("whether STL library has known faults")
|
---|
| 379 |
|
---|
| 380 | dnl - first shot, try simple good old vector on its own
|
---|
| 381 | AC_TRY_COMPILE(
|
---|
| 382 | [#include <vector>
|
---|
| 383 | ],
|
---|
| 384 | [],
|
---|
| 385 | success=yes,
|
---|
| 386 | )
|
---|
| 387 |
|
---|
| 388 | dnl - try using the .h equivalent
|
---|
| 389 | if test $success = "no"; then
|
---|
| 390 | AC_TRY_COMPILE(
|
---|
| 391 | [#include <vector.h>
|
---|
| 392 | ],
|
---|
| 393 | [],
|
---|
| 394 | success="yes",
|
---|
| 395 | )
|
---|
| 396 | fi
|
---|
| 397 |
|
---|
| 398 | dnl - now try for the objectspace headers
|
---|
| 399 | if test $success = "no"; then
|
---|
| 400 | AC_TRY_COMPILE(
|
---|
| 401 | [#include <ospace\\std\\vector>
|
---|
| 402 | ],
|
---|
| 403 | [],
|
---|
| 404 | success="yes",
|
---|
| 405 | )
|
---|
| 406 | fi
|
---|
| 407 |
|
---|
| 408 | if test $success = yes; then
|
---|
| 409 | AC_MSG_RESULT("no")
|
---|
| 410 | else
|
---|
| 411 | AC_MSG_RESULT("yes")
|
---|
[684] | 412 | AC_MSG_ERROR("STL Broken - Obtain newer version of GNU C Compiler")
|
---|
[552] | 413 | fi
|
---|
| 414 |
|
---|
[2950] | 415 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 416 | # check for running bash under cygwin
|
---|
| 417 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 418 | then
|
---|
| 419 | gsdlos=windows
|
---|
| 420 | fi
|
---|
[557] | 421 | AC_SUBST(gsdlos)
|
---|
| 422 |
|
---|
[10856] | 423 | # check for endianness
|
---|
| 424 | AC_C_BIGENDIAN
|
---|
[684] | 425 | # ---------------------------------------------------------------------------
|
---|
| 426 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
| 427 | dnl support functions for alloca.c
|
---|
[8756] | 428 | AC_LIBOBJ([xmalloc.o])
|
---|
| 429 | AC_LIBOBJ([error])
|
---|
[684] | 430 | fi
|
---|
[552] | 431 |
|
---|
[3062] | 432 | # ---------------------------------------------------------------------------
|
---|
[552] | 433 |
|
---|
[3062] | 434 | dnl
|
---|
| 435 | dnl Locate all children of the modules folder
|
---|
| 436 | dnl
|
---|
| 437 | moduleDirs=""
|
---|
| 438 | MODULEDIRS=""
|
---|
[16619] | 439 | if test -d modules ; then
|
---|
[15300] | 440 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 441 | if test -d "$x"; then
|
---|
| 442 | d="$x/Makefile.in"
|
---|
| 443 | if test -e "$d"; then
|
---|
| 444 | dnl echo $d
|
---|
| 445 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 446 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 447 | fi
|
---|
[3062] | 448 | fi
|
---|
[15300] | 449 | done
|
---|
| 450 | echo "Making $moduleDirs in modules directory"
|
---|
| 451 | AC_SUBST(MODULEDIRS)
|
---|
| 452 | fi
|
---|
[3062] | 453 |
|
---|
[15300] | 454 |
|
---|
[684] | 455 | # ---------------------------------------------------------------------------
|
---|
[2279] | 456 | dnl for Darwin, as our packages don't (yet) correctly guess our system type.
|
---|
[8202] | 457 | dnl not needed any more?
|
---|
| 458 | dnl ac_configure_args="$ac_configure_args --build=$build --target=$target"
|
---|
[1668] | 459 |
|
---|
[13777] | 460 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 461 | gsdlprefix=`pwd`
|
---|
[19264] | 462 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[21377] | 463 | AC_CONFIG_SUBDIRS(common-src)
|
---|
| 464 | AC_CONFIG_SUBDIRS(build-src)
|
---|
[13777] | 465 |
|
---|
[3062] | 466 | # the list of folders in the src folder
|
---|
[16572] | 467 | srclist="common-src/Makefile \
|
---|
[21377] | 468 | build-src/Makefile"
|
---|
| 469 |
|
---|
| 470 | if test -d runtime-src; then
|
---|
| 471 | AC_CONFIG_SUBDIRS(runtime-src)
|
---|
| 472 | srclist="$srclist \
|
---|
[16572] | 473 | runtime-src/Makefile"
|
---|
[21377] | 474 | fi
|
---|
[3062] | 475 |
|
---|
[16561] | 476 | AC_OUTPUT(Makefile $srclist $moduleDirs)
|
---|
[684] | 477 |
|
---|
| 478 |
|
---|