Changeset 21444 for main/trunk/gs2runtime
- Timestamp:
- 2010-01-12T14:01:03+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gs2runtime/configure.in
r16613 r21444 59 59 dnl fi 60 60 61 dnl62 dnl look for libgdbm if not in standard location63 dnl64 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval)65 66 dnl67 61 dnl disable compilation of accent folding stuff for mgpp (and one day mg) 68 62 dnl … … 250 244 251 245 dnl 252 dnl Check that the GDBM library is available253 dnl254 dnl check libgdbm manually, in case it's not in the standard location.255 256 AC_MSG_CHECKING(that the GDBM library is available)257 if test ! -z "$gdbmdir" ; then258 # look in given directory for header file259 if test -r $gdbmdir/include/gdbm.h ; then260 GDBM_INCLUDE="-I$gdbmdir/include" ;261 elif test -r $gdbmdir/gdbm.h ; then262 GDBM_INCLUDE="-I$gdbmdir" ;263 fi264 265 # look in given directory for library266 if test -r $gdbmdir/libgdbm.a ; then267 GDBM_LIBPATH="-L$gdbmdir" ;268 elif test -r $gdbmdir/lib/libgdbm.a ; then269 GDBM_LIBPATH="-L$gdbmdir/lib" ;270 elif test -r $gdbmdir/.libs/libgdbm.a ; then271 GDBM_LIBPATH="-L$gdbmdir/.libs" ;272 fi273 274 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then275 AC_MSG_RESULT($gdbmdir) ;276 else277 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir);278 AC_MSG_CHECKING( looking for GDBM library in default locations)279 fi280 fi281 282 # look in default path and in /usr/local283 if test -z "$GDBM_INCLUDE" ; then284 # try in system directory285 AC_TRY_COMPILE(286 [#include <gdbm.h>287 ],288 [],289 success=yes,290 success=no291 )292 293 if test $success = "no"; then294 # last chance - look in /usr/local (eg FreeBSD)295 GDBM_LIBPATH=-L/usr/local/lib296 GDBM_INCLUDE=-I/usr/local/include297 ac_save_CXXFLAGS="$CXXFLAGS"298 ac_save_LIBS="$LIBS"299 CXXFLAGS="$CXXFLAGS -I/usr/local/include"300 LIBS="$LIBS -L/usr/local/lib -lgdbm"301 AC_TRY_LINK(302 [#include <gdbm.h>303 #include <stdio.h>304 ],305 [printf("%s",gdbm_version);],306 success=/usr/local,307 success=no308 )309 CXXFLAGS=$ac_save_CXXFLAGS310 LIBS=$ac_save_LIBS311 fi312 313 AC_MSG_RESULT($success)314 if test $success = "no"; then315 AC_MSG_ERROR(GDBM Library not available - cannot install)316 fi317 fi318 dnl I don't think anything actually checks this define, but...319 AC_DEFINE(HAVE_LIBGDBM , 1)320 321 AC_SUBST(GDBM_LIBPATH)322 AC_SUBST(GDBM_INCLUDE)323 324 dnl325 246 dnl Check if the STL library has any known faults; 326 247 dnl In GCC 2.7.2.x series, some STL library headers are missing … … 392 313 moduleDirs="" 393 314 MODULEDIRS="" 394 if [ -d modules ]; then315 if test -d modules ; then 395 316 for x in `find modules -mindepth 1 -maxdepth 2`; do 396 317 if test -d "$x"; then
Note:
See TracChangeset
for help on using the changeset viewer.