|
Revision 301, 0.8 kB
(checked in by indeyets, 5 months ago)
|
|
forced configure to check for bison, as yacc does not work for us
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | # Process this file with autoconf to produce a configure script. |
|---|
| 2 | AC_INIT(syck, 0.61) |
|---|
| 3 | AC_CONFIG_AUX_DIR(config) |
|---|
| 4 | AC_PREREQ(2.50) |
|---|
| 5 | |
|---|
| 6 | AM_INIT_AUTOMAKE(syck, 0.61) |
|---|
| 7 | AM_CONFIG_HEADER(config.h) |
|---|
| 8 | |
|---|
| 9 | # Checks for programs. |
|---|
| 10 | AC_PROG_CC_STDC |
|---|
| 11 | AC_PROG_INSTALL |
|---|
| 12 | AC_PROG_LN_S |
|---|
| 13 | AC_PROG_RANLIB |
|---|
| 14 | AC_PROG_MAKE_SET |
|---|
| 15 | AC_PROG_AWK |
|---|
| 16 | AM_PROG_LEX |
|---|
| 17 | |
|---|
| 18 | AC_CHECK_PROGS(YACC, 'bison -y') |
|---|
| 19 | if test "$YACC" != "bison -y"; then |
|---|
| 20 | AC_MSG_ERROR([bison not found]) |
|---|
| 21 | fi |
|---|
| 22 | |
|---|
| 23 | # Checks for libraries. |
|---|
| 24 | |
|---|
| 25 | # Checks for header files. |
|---|
| 26 | AC_HEADER_STDC |
|---|
| 27 | AC_CHECK_HEADERS(alloca.h stdlib.h string.h) |
|---|
| 28 | AC_CHECK_SIZEOF(int, 4) |
|---|
| 29 | AC_CHECK_SIZEOF(long, 4) |
|---|
| 30 | |
|---|
| 31 | # Checks for typedefs, structures, and compiler characteristics. |
|---|
| 32 | |
|---|
| 33 | # Checks for library functions. |
|---|
| 34 | AC_FUNC_MALLOC |
|---|
| 35 | AC_FUNC_VPRINTF |
|---|
| 36 | |
|---|
| 37 | AC_CONFIG_FILES([Makefile |
|---|
| 38 | lib/Makefile |
|---|
| 39 | tests/Makefile]) |
|---|
| 40 | AC_OUTPUT |
|---|