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

# User Rev Content
1 root 1.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 root 1.5 dnl
6 root 1.1
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 root 1.8 PATCH=20
16 root 1.1
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 root 1.14 AC_CHECK_HEADERS(fcntl.h unistd.h)
33 root 1.1 AC_CHECK_HEADERS(io.h sys/time.h)
34 root 1.10
35     CFLAGS="$CFLAGS -D_GNU_SOURCE"
36 root 1.13 AC_CHECK_FUNCS(tempnam gettimeofday flockfile getc_unlocked feof_unlocked ferror_unlocked)
37 root 1.11 dnl AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr)
38 root 1.1
39 root 1.13 AC_CHECK_FUNCS(chmod umask mkstemp)
40 root 1.1
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