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