summaryrefslogtreecommitdiff
path: root/configure.in
blob: 4df1b3bf24c3b9db66557d6c26c7e54849466799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
dnl Process this file with autoconf to produce a configure script.

dnl This file is part of flex.

dnl Redistribution and use in source and binary forms, with or without
dnl modification, are permitted provided that the following conditions
dnl are met:

dnl 1. Redistributions of source code must retain the above copyright
dnl notice, this list of conditions and the following disclaimer.
dnl 2. Redistributions in binary form must reproduce the above copyright
dnl notice, this list of conditions and the following disclaimer in the
dnl documentation and/or other materials provided with the distribution.

dnl Neither the name of the University nor the names of its contributors
dnl may be used to endorse or promote products derived from this software
dnl without specific prior written permission.

dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
dnl IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
dnl WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
dnl PURPOSE.

AC_INIT(scan.l)
AM_INIT_AUTOMAKE(flex,2.5.6)
AM_CONFIG_HEADER(config.h:conf.in)

AC_LN_S
AC_PROG_CC
AC_PROG_YACC
AM_PROG_LEX
AC_PROG_RANLIB
AC_CONST
AC_TYPE_SIZE_T
AC_HEADER_STDC
AC_HAVE_HEADERS(string.h malloc.h sys/types.h)

case "$YACC" in
*bison*)
  AC_ALLOCA
  ;;
esac

AC_CONFIG_SUBDIRS(tests)

AC_OUTPUT(Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile ,
[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])