ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure.in
Revision: 1.15
Committed: Sat Sep 24 06:25:44 2022 UTC (20 months, 1 week ago) by root
Branch: MAIN
Changes since 1.14: +0 -2 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
7 AC_INIT(uulib.c)
8 AC_PREREQ(2.9)
9 AC_CONFIG_HEADER(config.h)
10
11 #
12 # package revision
13 #
14 VERSION=0.5
15 PATCH=20
16
17 AC_ARG_WITH(cc,,CC=$with_cc)
18 AC_ARG_WITH(cflags,,CFLAGS=$with_cflags)
19
20 AC_PROG_CC
21 AC_PROG_CPP
22 AC_PROG_MAKE_SET
23 AC_PROG_RANLIB
24
25 #
26 # Checks for header files and library functions
27 #
28
29 AC_HEADER_STDC
30 AC_TYPE_SIZE_T
31 AC_HEADER_TIME
32 AC_CHECK_HEADERS(fcntl.h unistd.h)
33 AC_CHECK_HEADERS(io.h sys/time.h)
34
35 CFLAGS="$CFLAGS -D_GNU_SOURCE"
36 AC_CHECK_FUNCS(tempnam gettimeofday flockfile getc_unlocked feof_unlocked ferror_unlocked)
37 dnl AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr)
38
39 AC_CHECK_FUNCS(chmod umask mkstemp)
40
41 #
42 # On some systems (so far, OS2 and WINDOWS), functions that are exported
43 # from a DLL must be declared specifically.
44 #
45
46 AC_DEFINE_UNQUOTED(UUEXPORT,)
47 AC_DEFINE_UNQUOTED(TOOLEXPORT,)
48
49 #
50 # set version number
51 #
52 AC_MSG_CHECKING([version number])
53 version_number="$VERSION"pl"$PATCH"
54 AC_MSG_RESULT($version_number)
55 AC_SUBST(VERSION)
56 AC_SUBST(PATCH)
57
58 #
59 # done
60 #
61
62 AC_OUTPUT(Makefile)
63