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.1 by root, Sun Mar 31 19:51:28 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.1 2002/03/31 19:51:28 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
11# package revision 14# package revision
12# 15#
13VERSION=0.5 16VERSION=0.5
14PATCH=15 17PATCH=15
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
23AC_C_CROSS
21wi_CFLAGS 24wi_CFLAGS
22wi_PROTOTYPES 25wi_PROTOTYPES
23AC_PROG_MAKE_SET 26AC_PROG_MAKE_SET
24AC_PROG_RANLIB 27AC_PROG_RANLIB
28
29#
30# When optimization is enabled, remove -g from CFLAGS and add -O
31#
32
33if test "$optimize" = "yes" ; then
34AC_MSG_CHECKING([compiler flags])
35CFLAGS=`echo $CFLAGS | sed 's/-g//g'`
36case $CFLAGS in
37 *"-O"*)
38 ;;
39 *)
40 CFLAGS="$CFLAGS -O"
41 ;;
42esac
43AC_MSG_RESULT(done)
44fi
25 45
26if test "$wi_cv_prototypes" = no ; then 46if test "$wi_cv_prototypes" = no ; then
27 AC_WARN([Your compiler does not support function prototyping and]) 47 AC_WARN([Your compiler does not support function prototyping and])
28 AC_WARN([is not able to properly compile this package. What a pity.]) 48 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.]) 49 AC_WARN([Get gcc, or any compiler that supports function prototypes.])
39AC_HEADER_TIME 59AC_HEADER_TIME
40AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h) 60AC_CHECK_HEADERS(fcntl.h unistd.h memory.h malloc.h errno.h)
41AC_CHECK_HEADERS(io.h sys/time.h) 61AC_CHECK_HEADERS(io.h sys/time.h)
42AC_CHECK_FUNCS(gettimeofday) 62AC_CHECK_FUNCS(gettimeofday)
43 63
44AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,FP_tempnam)) 64AC_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 65
50# 66#
51# strerror might be internally defined. this would cause a 67# strerror might be internally defined. this would cause a
52# CHECK_FUNCS(strerror) to fail because it'd be called with 68# CHECK_FUNCS(strerror) to fail because it'd be called with
53# zero arguments. So use our own code. 69# zero arguments. So use our own code.
55AC_MSG_CHECKING([for strerror]) 71AC_MSG_CHECKING([for strerror])
56AC_TRY_LINK([ 72AC_TRY_LINK([
57char *blubb() { return (char *) strerror (42); } 73char *blubb() { return (char *) strerror (42); }
58],[ 74],[
59(void) blubb(); 75(void) blubb();
60],have_strerror=yes,AC_DEFINE(strerror,FP_strerror) 76],have_strerror=yes,AC_DEFINE(strerror,_FP_strerror)
61have_strerror=no) 77have_strerror=no)
62AC_MSG_RESULT($have_strerror) 78AC_MSG_RESULT($have_strerror)
63 79
64AC_MSG_CHECKING([for stdin]) 80AC_MSG_CHECKING([for stdin])
65AC_TRY_LINK([ 81AC_TRY_LINK([
115# 131#
116# done 132# done
117# 133#
118 134
119AC_OUTPUT(Makefile) 135AC_OUTPUT(Makefile)
120

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines