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