source: main/trunk/greenstone2/common-src/packages/gdbm/gdbm-1.8.3/configure.in@ 21432

Last change on this file since 21432 was 21432, checked in by davidb, 14 years ago

Update to use of -m32, which is activated when compiling on a 64-bit machine. The requirement for needing to using -m32 is mg and mg++ (which currently only work with 32-bit sized data-types). If both --disable-mg and --disable-mgpp are specified this means that we don't need to use -m32. Configure files updated to detect this and 'cancel' the -m32 flag.

File size: 1.3 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT([gdbm], [1.8.3])
3AC_PREREQ(2.54)
4AC_CONFIG_SRCDIR([gdbmdefs.h])
5AC_CONFIG_HEADERS([autoconf.h])
6
7dnl get $target_cpu, $target_vendor, and $target_os
8dnl (as well as host_*)
9AC_CANONICAL_SYSTEM
10
11AC_PROG_CC
12AC_PROG_CPP
13AC_PROG_INSTALL
14AM_PROG_LIBTOOL
15dnl AC_PROG_RANLIB
16dnl AC_C_BIGENDIAN([])
17
18dnl AC_MSG_CHECKING(to see if architecture is 64-bit)
19dnl arch_64bit=no
20dnl case "$host_cpu" in
21dnl x86_64) arch_64bit=yes ;;
22dnl esac
23dnl
24dnl if test "$arch_64bit" = yes; then
25dnl AC_MSG_RESULT(yes)
26dnl if test -z "$COMPAT32BITFLAGS" ; then
27dnl COMPAT32BITFLAGS="-m32"
28dnl LIBTOOLCOMPAT32BITFLAGS="-Wl,-m32"
29dnl fi
30dnl else
31dnl AC_MSG_RESULT(no)
32dnl if test -z "$COMPAT32BITFLAGS" ; then
33dnl COMPAT32BITFLAGS=
34dnl LIBTOOLCOMPAT32BITFLAGS=
35dnl fi
36dnl fi
37dnl export COMPAT32BITFLAGS
38dnl AC_SUBST(COMPAT32BITFLAGS)
39
40
41AC_DEFINE_UNQUOTED(COMPAT32BITFLAGS, $COMPAT32BITFLAGS)
42AC_SUBST(COMPAT32BITFLAGS)
43
44
45AC_C_CONST
46AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memory.y])
47AC_CHECK_LIB(dbm, main)
48AC_CHECK_LIB(ndbm, main)
49AC_CHECK_FUNCS([rename ftruncate flock bcopy fsync])
50AC_REPLACE_FUNCS(getopt)
51AC_TYPE_OFF_T
52AC_CHECK_MEMBERS([struct stat.st_blksize])
53AC_CONFIG_FILES([Makefile])
54AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.