Show
Ignore:
Timestamp:
11.01.2009 19:39:56 (11 years ago)
Author:
davidb
Message:

Modifications to support 64-bit architecture

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/packages/javagdbm/configure.in

    r10917 r18343  
    3030AC_ARG_WITH(gdbm, [  --with-gdbm=dir         Use local gdbm library and headers], gdbmdir=$withval) 
    3131 
     32dnl get $target_cpu, $target_vendor, and $target_os 
     33dnl (as well as host_*) 
     34AC_CANONICAL_SYSTEM 
     35 
    3236# TODO: allow the user to specify whether they want a debugging 
    3337# library or not? 
     
    3741AC_PROG_INSTALL 
    3842AC_PROG_LN_S 
     43 
     44AC_MSG_CHECKING(to see if architecture is 64-bit) 
     45arch_64bit=no 
     46case "$host_cpu" in 
     47x86_64) arch_64bit=yes ;; 
     48esac 
     49 
     50if test "$arch_64bit" = yes; then 
     51  AC_MSG_RESULT(yes) 
     52  if test -z "$COMPAT32BITFLAGS" ; then 
     53    COMPAT32BITFLAGS="-m32" 
     54  fi 
     55else 
     56  AC_MSG_RESULT(no) 
     57  if test -z "$COMPAT32BITFLAGS" ; then 
     58    COMPAT32BITFLAGS= 
     59  fi 
     60fi 
     61export COMPAT32BITFLAGS 
     62AC_SUBST(COMPAT32BITFLAGS) 
     63 
     64 
    3965 
    4066AC_CHECK_SIZEOF(void *)