source: gsdl/trunk/common-src/packages/gdbm/gdbm-1.8.3/configure.in@ 18345

Last change on this file since 18345 was 18345, checked in by davidb, 15 years ago

Supported for compiling on 64-bit machine added

File size: 1.1 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
18AC_MSG_CHECKING(to see if architecture is 64-bit)
19arch_64bit=no
20case "$host_cpu" in
21x86_64) arch_64bit=yes ;;
22esac
23
24if test "$arch_64bit" = yes; then
25 AC_MSG_RESULT(yes)
26 if test -z "$COMPAT32BITFLAGS" ; then
27 COMPAT32BITFLAGS="-m32"
28 LIBTOOLCOMPAT32BITFLAGS="-Wl,-m32"
29 fi
30else
31 AC_MSG_RESULT(no)
32 if test -z "$COMPAT32BITFLAGS" ; then
33 COMPAT32BITFLAGS=
34 LIBTOOLCOMPAT32BITFLAGS=
35 fi
36fi
37export COMPAT32BITFLAGS
38AC_SUBST(COMPAT32BITFLAGS)
39
40
41AC_C_CONST
42AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memory.y])
43AC_CHECK_LIB(dbm, main)
44AC_CHECK_LIB(ndbm, main)
45AC_CHECK_FUNCS([rename ftruncate flock bcopy fsync])
46AC_REPLACE_FUNCS(getopt)
47AC_TYPE_OFF_T
48AC_CHECK_MEMBERS([struct stat.st_blksize])
49AC_CONFIG_FILES([Makefile])
50AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.