1 | dnl This file is an input file used by the GNU "autoconf" program to |
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 |
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 |
3 | dnl configuration so that no manual editing of the Makefile should be |
4 | dnl necessary |
4 | dnl necessary |
5 | dnl |
5 | dnl |
6 | dnl $Id: configure.in,v 1.4.2.4 2003/11/06 13:08:23 root Exp $ |
6 | dnl $Id: configure.in,v 1.4.2.5 2004/04/18 19:55:46 root Exp $ |
7 | dnl |
7 | dnl |
8 | |
8 | |
9 | AC_INIT(uulib.c) |
9 | AC_INIT(uulib.c) |
10 | AC_PREREQ(2.9) |
10 | AC_PREREQ(2.9) |
11 | AC_CONFIG_HEADER(config.h) |
11 | AC_CONFIG_HEADER(config.h) |
12 | |
12 | |
13 | # |
13 | # |
14 | # package revision |
14 | # package revision |
15 | # |
15 | # |
16 | VERSION=0.5 |
16 | VERSION=0.5 |
17 | PATCH=19 |
17 | PATCH=20 |
18 | |
|
|
19 | AC_ARG_ENABLE(optimize,[ --disable-optimize compile for debugging],optimize=$enableval,optimize=yes) |
|
|
20 | |
18 | |
21 | AC_PROG_CC |
19 | AC_PROG_CC |
22 | AC_PROG_CPP |
20 | AC_PROG_CPP |
23 | wi_CFLAGS |
|
|
24 | wi_PROTOTYPES |
21 | wi_PROTOTYPES |
25 | AC_PROG_MAKE_SET |
22 | AC_PROG_MAKE_SET |
26 | AC_PROG_RANLIB |
23 | AC_PROG_RANLIB |
27 | |
|
|
28 | # |
|
|
29 | # When optimization is enabled, remove -g from CFLAGS and add -O |
|
|
30 | # |
|
|
31 | |
|
|
32 | if test "$optimize" = "yes" ; then |
|
|
33 | AC_MSG_CHECKING([compiler flags]) |
|
|
34 | CFLAGS=`echo $CFLAGS | sed 's/-g//g'` |
|
|
35 | case $CFLAGS in |
|
|
36 | *"-O"*) |
|
|
37 | ;; |
|
|
38 | *) |
|
|
39 | CFLAGS="$CFLAGS -O" |
|
|
40 | ;; |
|
|
41 | esac |
|
|
42 | AC_MSG_RESULT(done) |
|
|
43 | fi |
|
|
44 | |
24 | |
45 | if test "$wi_cv_prototypes" = no ; then |
25 | if test "$wi_cv_prototypes" = no ; then |
46 | AC_WARN([Your compiler does not support function prototyping and]) |
26 | AC_WARN([Your compiler does not support function prototyping and]) |
47 | AC_WARN([is not able to properly compile this package. What a pity.]) |
27 | AC_WARN([is not able to properly compile this package. What a pity.]) |
48 | AC_WARN([Get gcc, or any compiler that supports function prototypes.]) |
28 | AC_WARN([Get gcc, or any compiler that supports function prototypes.]) |