ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure.in
Revision: 1.14
Committed: Sat Sep 24 06:22:47 2022 UTC (20 months, 1 week ago) by root
Branch: MAIN
Changes since 1.13: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 dnl This file is an input file used by the GNU "autoconf" program to
2 dnl generate the file "configure", which tries to guess your system
3 dnl configuration so that no manual editing of the Makefile should be
4 dnl necessary
5 dnl
6 dnl $Id$
7 dnl
8
9 AC_INIT(uulib.c)
10 AC_PREREQ(2.9)
11 AC_CONFIG_HEADER(config.h)
12
13 #
14 # package revision
15 #
16 VERSION=0.5
17 PATCH=20
18
19 AC_ARG_WITH(cc,,CC=$with_cc)
20 AC_ARG_WITH(cflags,,CFLAGS=$with_cflags)
21
22 AC_PROG_CC
23 AC_PROG_CPP
24 AC_PROG_MAKE_SET
25 AC_PROG_RANLIB
26
27 #
28 # Checks for header files and library functions
29 #
30
31 AC_HEADER_STDC
32 AC_TYPE_SIZE_T
33 AC_HEADER_TIME
34 AC_CHECK_HEADERS(fcntl.h unistd.h)
35 AC_CHECK_HEADERS(io.h sys/time.h)
36
37 CFLAGS="$CFLAGS -D_GNU_SOURCE"
38 AC_CHECK_FUNCS(tempnam gettimeofday flockfile getc_unlocked feof_unlocked ferror_unlocked)
39 dnl AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr)
40
41 AC_CHECK_FUNCS(chmod umask mkstemp)
42
43 #
44 # On some systems (so far, OS2 and WINDOWS), functions that are exported
45 # from a DLL must be declared specifically.
46 #
47
48 AC_DEFINE_UNQUOTED(UUEXPORT,)
49 AC_DEFINE_UNQUOTED(TOOLEXPORT,)
50
51 #
52 # set version number
53 #
54 AC_MSG_CHECKING([version number])
55 version_number="$VERSION"pl"$PATCH"
56 AC_MSG_RESULT($version_number)
57 AC_SUBST(VERSION)
58 AC_SUBST(PATCH)
59
60 #
61 # done
62 #
63
64 AC_OUTPUT(Makefile)
65