ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure.in
(Generate patch)

Comparing Convert-UUlib/uulib/configure.in (file contents):
Revision 1.4 by root, Sun Feb 10 22:47:18 2002 UTC vs.
Revision 1.4.2.3 by root, Sun Oct 13 13:03:07 2002 UTC

1dnl This file is an input file used by the GNU "autoconf" program to 1dnl This file is an input file used by the GNU "autoconf" program to
2dnl generate the file "configure", which tries to guess your system 2dnl generate the file "configure", which tries to guess your system
3dnl configuration so that no manual editing of the Makefile should be 3dnl configuration so that no manual editing of the Makefile should be
4dnl necessary 4dnl necessary
5dnl
6dnl $Id: configure.in,v 1.4.2.3 2002/10/13 13:03:07 root Exp $
7dnl
5 8
6AC_INIT(uulib.c) 9AC_INIT(uulib.c)
7AC_PREREQ(2.9) 10AC_PREREQ(2.9)
8AC_CONFIG_HEADER(config.h) 11AC_CONFIG_HEADER(config.h)
9 12
10# 13#
11# package revision 14# package revision
12# 15#
13VERSION=0.5 16VERSION=0.5
14PATCH=15 17PATCH=18
15 18
16AC_ARG_WITH(cc,,CC=$with_cc) 19AC_ARG_ENABLE(optimize,[ --disable-optimize compile for debugging],optimize=$enableval,optimize=yes)
17AC_ARG_WITH(cflags,,CFLAGS=$with_cflags)
18 20
19AC_PROG_CC 21AC_PROG_CC
20AC_PROG_CPP 22AC_PROG_CPP
21wi_CFLAGS 23wi_CFLAGS
22wi_PROTOTYPES 24wi_PROTOTYPES
23AC_PROG_MAKE_SET 25AC_PROG_MAKE_SET
24AC_PROG_RANLIB 26AC_PROG_RANLIB
27
28#
29# When optimization is enabled, remove -g from CFLAGS and add -O
30#
31
32if test "$optimize" = "yes" ; then
33AC_MSG_CHECKING([compiler flags])
34CFLAGS=`echo $CFLAGS | sed 's/-g//g'`
35case $CFLAGS in
36 *"-O"*)
37 ;;
38 *)
39 CFLAGS="$CFLAGS -O"
40 ;;
41esac
42AC_MSG_RESULT(done)
43fi
25 44
26if test "$wi_cv_prototypes" = no ; then 45if test "$wi_cv_prototypes" = no ; then
27 AC_WARN([Your compiler does not support function prototyping and]) 46 AC_WARN([Your compiler does not support function prototyping and])
28 AC_WARN([is not able to properly compile this package. What a pity.]) 47 AC_WARN([is not able to properly compile this package. What a pity.])
29 AC_WARN([Get gcc, or any compiler that supports function prototypes.]) 48 AC_WARN([Get gcc, or any compiler that supports function prototypes.])
39AC_HEADER_TIME 58AC_HEADER_TIME
40AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h) 59AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h)
41AC_CHECK_HEADERS(io.h sys/time.h) 60AC_CHECK_HEADERS(io.h sys/time.h)
42AC_CHECK_FUNCS(gettimeofday) 61AC_CHECK_FUNCS(gettimeofday)
43 62
44AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,FP_tempnam)) 63AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,_FP_tempnam))
45
46AC_CHECK_FUNC(chmod,AC_DEFINE(HAVE_CHMOD))
47AC_CHECK_FUNC(umask,AC_DEFINE(HAVE_UMASK))
48AC_CHECK_FUNC(mkstemp,AC_DEFINE(HAVE_MKSTEMP))
49 64
50# 65#
51# strerror might be internally defined. this would cause a 66# strerror might be internally defined. this would cause a
52# CHECK_FUNCS(strerror) to fail because it'd be called with 67# CHECK_FUNCS(strerror) to fail because it'd be called with
53# zero arguments. So use our own code. 68# zero arguments. So use our own code.
55AC_MSG_CHECKING([for strerror]) 70AC_MSG_CHECKING([for strerror])
56AC_TRY_LINK([ 71AC_TRY_LINK([
57char *blubb() { return (char *) strerror (42); } 72char *blubb() { return (char *) strerror (42); }
58],[ 73],[
59(void) blubb(); 74(void) blubb();
60],have_strerror=yes,AC_DEFINE(strerror,FP_strerror) 75],have_strerror=yes,AC_DEFINE(strerror,_FP_strerror)
61have_strerror=no) 76have_strerror=no)
62AC_MSG_RESULT($have_strerror) 77AC_MSG_RESULT($have_strerror)
63 78
64AC_MSG_CHECKING([for stdin]) 79AC_MSG_CHECKING([for stdin])
65AC_TRY_LINK([ 80AC_TRY_LINK([
115# 130#
116# done 131# done
117# 132#
118 133
119AC_OUTPUT(Makefile) 134AC_OUTPUT(Makefile)
120

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines