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