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