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