source: trunk/essentials/sys-devel/flex/configure.in@ 3951

Last change on this file since 3951 was 3043, checked in by bird, 19 years ago

-> essentials

File size: 4.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3dnl This file is part of flex.
4
5dnl Redistribution and use in source and binary forms, with or without
6dnl modification, are permitted provided that the following conditions
7dnl are met:
8
9dnl 1. Redistributions of source code must retain the above copyright
10dnl notice, this list of conditions and the following disclaimer.
11dnl 2. Redistributions in binary form must reproduce the above copyright
12dnl notice, this list of conditions and the following disclaimer in the
13dnl documentation and/or other materials provided with the distribution.
14
15dnl Neither the name of the University nor the names of its contributors
16dnl may be used to endorse or promote products derived from this software
17dnl without specific prior written permission.
18
19dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
20dnl IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
21dnl WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22dnl PURPOSE.
23
24dnl autoconf requirements and initialization
25
26AC_PREREQ(2.54)
27AC_INIT(flex,2.5.33,[email protected])
28AC_CONFIG_SRCDIR(scan.l)
29AM_INIT_AUTOMAKE
30AC_CONFIG_HEADER(config.h:conf.in)
31
32dnl checks for programs
33
34AM_GNU_GETTEXT([external])
35AM_GNU_GETTEXT_VERSION(0.12)
36
37AC_PROG_YACC
38AM_PROG_LEX
39AC_PROG_CC
40AC_PROG_CXX
41AC_PROG_LN_S
42AC_PROG_RANLIB
43
44AC_PATH_PROG(BISON, bison,bison)
45AC_PATH_PROG(HELP2MAN, help2man, help2man)
46
47
48# Check for a GNU m4 that supports --prefix-builtins
49AC_PATH_PROGS(M4, gm4 gnum4 m4, m4)
50if test x"$M4" != x; then
51 AC_MSG_CHECKING([for GNU m4])
52 case `$M4 --help < /dev/null 2>&1` in
53 *prefix-builtins*) AC_MSG_RESULT(yes) ;;
54 *) AC_MSG_RESULT(no) ;
55 AC_MSG_ERROR([GNU M4 1.4 is required]) ;;
56 esac
57else
58 AC_MSG_ERROR([GNU M4 1.4 is required]) ;
59fi
60AC_DEFINE_UNQUOTED([M4], ["$M4"], [Define to the GNU M4 executable name.])
61
62AC_PATH_PROG(INDENT, indent, indent)
63dnl if INDENT is set to 'indent' then we didn't find indent
64if test "$INDENT" != indent ; then
65 AC_MSG_CHECKING(if $INDENT is GNU indent)
66 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
67 AC_MSG_RESULT(yes)
68 else
69 AC_MSG_RESULT(no)
70 AC_MSG_WARN($INDENT does not appear to be GNU indent.)
71 fi
72else
73 AC_MSG_WARN(no indent program found: make indent target will not function)
74fi
75
76dnl checks for libraries
77AC_CHECK_LIB(m, log)
78
79dnl checks for header files
80
81AC_HEADER_STDC