source: trunk/third/findutils/configure.in @ 18890

Revision 18890, 3.6 KB checked in by zacheiss, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18889, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(find/pred.c)
3AM_CONFIG_HEADER(config.h)
4AC_CANONICAL_HOST
5
6dnl Set of available languages.
7ALL_LINGUAS="da de es et fr gl id it ko nl pl pt_BR ru sv"
8
9AM_INIT_AUTOMAKE(findutils, 4.1.7)
10
11AC_SUBST(INCLUDES)dnl
12AC_ARG_ENABLE(id-cache,
13[  --enable-id-cache       cache all UIDs & GIDs; avoid if using NIS or Hesiod],
14  AC_DEFINE(CACHE_IDS, 1, [Define if you want find -nouser and -nogroup to make tables of
15   used UIDs and GIDs at startup instead of using getpwuid or
16   getgrgid when needed.  Speeds up -nouser and -nogroup unless you
17   are running NIS or Hesiod, which make password and group calls
18   very expensive.]))
19
20dnl Checks for programs.
21AC_PROG_CC
22AC_PROG_CPP
23AC_AIX
24AC_MINIX
25AC_ISC_POSIX
26AC_PROG_CC_STDC
27AM_C_PROTOTYPES
28AC_PROG_INSTALL
29AC_PROG_RANLIB
30AC_PROG_MAKE_SET
31AC_SYS_LARGEFILE
32
33jm_CHECK_ALL_TYPES
34
35dnl Try to get a POSIX.1 environment.
36
37dnl Checks for libraries.
38AC_CHECK_LIB(sun, getpwnam)
39
40dnl Checks for header files.
41AC_CHECK_HEADERS(fcntl.h string.h limits.h unistd.h errno.h)
42AC_HEADER_STDC
43AC_HEADER_MAJOR
44AC_HEADER_DIRENT
45AC_HEADER_STAT
46AC_HEADER_SYS_WAIT
47
48AC_MSG_CHECKING(how to get filesystem type)
49fstype=no
50# The order of these tests is important.
51AC_TRY_CPP([#include <sys/statvfs.h>
52#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS, 1, [Define to use SVR4 statvfs to get filesystem type.]) fstype=SVR4)
53if test $fstype = no; then
54AC_TRY_CPP([#include <sys/statfs.h>
55#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS, 1, [Define to use SVR3.2 statfs to get filesystem type.]) fstype=SVR3)
56fi
57if test $fstype = no; then
58AC_TRY_CPP([#include <sys/statfs.h>
59#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS, 1, [Define to use AIX3 statfs to get filesystem type.]) fstype=AIX)
60fi
61if test $fstype = no; then 
62AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT, 1, [Define to use 4.3BSD getmntent to get filesystem type.]) fstype=4.3BSD)
63fi
64if test $fstype = no; then 
65AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS, 1, [Define to use 4.4BSD and OSF1 statfs to get filesystem type.]) fstype=4.4BSD/OSF1)
66fi
67if test $fstype = no; then 
68AC_TRY_CPP([#include <sys/mount.h>
69#include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT, 1, [Define to use Ultrix getmnt to get filesystem type.]) fstype=Ultrix)
70fi
71AC_MSG_RESULT($fstype)
72
73dnl Checks for typedefs, structures, and compiler characteristics.
74
75AC_TYPE_UID_T
76AC_TYPE_SIZE_T
77AC_CHECK_TYPE(ssize_t, int)
78AC_TYPE_PID_T
79AC_CHECK_TYPE(ino_t, unsigned long)
80AC_CHECK_TYPE(dev_t, unsigned long)
81AC_TYPE_MODE_T
82jm_AC_TYPE_UINTMAX_T
83AC_STRUCT_ST_BLOCKS
84AC_CHECK_MEMBERS([struct stat.st_rdev])
85AC_STRUCT_TM
86AC_STRUCT_TIMEZONE
87
88dnl Checks for library functions.
89
90AC_FUNC_STRFTIME
91AC_REPLACE_FUNCS(memcmp memset stpcpy strdup strftime strspn strstr \
92     strtol strtoul waitpid)
93
94jm_MACROS
95
96AC_CHECK_FUNCS(fchdir getcwd strerror endgrent endpwent)
97AC_FUNC_VPRINTF
98AC_FUNC_ALLOCA
99AC_FUNC_GETMNTENT
100AC_FUNC_CLOSEDIR_VOID
101
102dnl internationalization macros
103AM_GNU_GETTEXT
104
105# These no-op lines work around a bug in automake 1.4:
106# it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
107: LIBOBJS="$LIBOBJS fnmatch.o lstat.o"
108: LIBOBJS="$LIBOBJS malloc.o memcmp.o mktime.o"
109: LIBOBJS="$LIBOBJS realloc.o regex.o stat.o strftime.o"
110
111# This is necessary so that .o files in LIBOBJS are also built via
112# the ANSI2KNR-filtering rules.
113LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
114AC_OUTPUT(
115        Makefile lib/Makefile lib/posix/Makefile
116        find/Makefile find/testsuite/Makefile
117        xargs/Makefile xargs/testsuite/Makefile
118        locate/Makefile locate/testsuite/Makefile
119        intl/Makefile po/Makefile.in
120        doc/Makefile m4/Makefile
121        )
Note: See TracBrowser for help on using the repository browser.