Changeset 2279 for trunk/gsdl/configure.in
- Timestamp:
- 2001-04-04T16:42:05+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/configure.in
r2214 r2279 2 2 AC_INIT(lib/text_t.h) 3 3 AC_CONFIG_HEADER(config.h) 4 AC_ARG_PROGRAM5 4 6 5 PACKAGE=gsdl … … 39 38 AC_SUBST(USE_Z3950) 40 39 40 dnl 41 dnl look for libgdbm if not in standard location 42 dnl 43 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval) 44 45 46 41 47 dnl Checks for programs. 42 48 LDFLAGS= … … 51 57 AC_PROG_AWK 52 58 AC_PROG_YACC 59 dnl get $target_cpu, $target_vendor, and $target_os 60 dnl (as well as host_*) 61 AC_CANONICAL_SYSTEM 62 dnl do we actually want this? It adds a prefix based on host, system etc 63 dnl AC_ARG_PROGRAM 53 64 AC_PROG_INSTALL 54 65 AC_PROG_LN_S … … 174 185 dnl Check that the GDBM library is available 175 186 dnl 176 AC_MSG_CHECKING("that the GDBM library is available") 177 AC_TRY_COMPILE( 178 [#include <gdbm.h> 187 dnl check libgdbm manually, in case it's not in the standard location. 188 189 AC_MSG_CHECKING(that the GDBM library is available) 190 if test ! -z $gdbmdir ; then 191 # look in given directory for header file 192 if test -e $gdbmdir/include/gdbm.h ; then 193 GDBM_INCLUDE="-I$gdbmdir/include" ; 194 elif test -e $gdbmdir/gdbm.h ; then 195 GDBM_INCLUDE="-I$gdbmdir" ; 196 fi 197 198 # look in given directory for library 199 if test -e $gdbmdir/libgdbm.a ; then 200 GDBM_LIBPATH="-L$gdbmdir" ; 201 elif test -e $gdbmdir/lib/libgdbm.a ; then 202 GDBM_LIBPATH="-L$gdbmdir/lib" ; 203 elif test -e $gdbmdir/.libs/libgdbm.a ; then 204 GDBM_LIBPATH="-L$gdbmdir/.libs" ; 205 fi 206 207 if test ! -z $GDBM_LIBPATH -a ! -z $GDBM_INCLUDE ; then 208 AC_MSG_RESULT($gdbmdir) ; 209 AC_DEFINE(HAVE_LIBGDBM , 1) 210 else 211 AC_MSG_RESULT(can't find both gdbm.h and libgdbm.a in $gdbmdir); 212 AC_MSG_CHECKING( looking for GDBM library in default locations) 213 fi 214 fi 215 216 if test -z $GDBM_INCLUDE ; then 217 # try in system directory 218 AC_TRY_COMPILE( 219 [#include <gdbm.h> 179 220 ], 180 [], 181 success=yes, 182 success=no 183 ) 184 AC_MSG_RESULT($success) 185 if test $success = "no"; then 186 AC_MSG_ERROR("GDBM Library not available - cannot install") 187 fi 221 [], 222 success=yes, 223 success=no 224 ) 225 AC_MSG_RESULT($success) 226 if test $success = "no"; then 227 AC_MSG_ERROR(GDBM Library not available - cannot install) 228 fi 229 GDBM_LIBPATH= 230 GDBM_INCLUDE= 231 fi 232 233 AC_SUBST(GDBM_LIBPATH) 234 AC_SUBST(GDBM_INCLUDE) 188 235 189 236 dnl 190 237 dnl Now check that Perl is actually around, and can be found 191 238 dnl 192 AC_MSG_CHECKING( "that Perl 5 is available")239 AC_MSG_CHECKING(that Perl 5 is available) 193 240 success="no" 194 241 pl_path="$PATH" … … 282 329 283 330 # --------------------------------------------------------------------------- 284 331 dnl for Darwin, as our packages don't (yet) correctly guess our system type. 332 ac_configure_args="$ac_configure_args --host=$host --target=$target" 285 333 AC_CONFIG_SUBDIRS(packages) 286 334
Note:
See TracChangeset
for help on using the changeset viewer.