]> git.saurik.com Git - bison.git/blob - acinclude.m4
Added support for non-ANSI compilers (ansi2knr).
[bison.git] / acinclude.m4
1 dnl BISON_DEFINE_FILE(VARNAME, FILE)
2 dnl Defines (with AC_DEFINE) VARNAME to the expansion of the FILE
3 dnl variable, expanding ${prefix} and such.
4 dnl Example: BISON_DEFINE_FILE(DATADIR, datadir)
5 dnl By Alexandre Oliva <oliva@dcc.unicamp.br>
6 AC_DEFUN(BISON_DEFINE_FILE, [
7 ac_expanded=`(
8 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10 eval echo \""[$]$2"\"
11 )`
12 AC_DEFINE_UNQUOTED($1, "$ac_expanded")
13 ])