]> git.saurik.com Git - bison.git/blame - acinclude.m4
Added support for non-ANSI compilers (ansi2knr).
[bison.git] / acinclude.m4
CommitLineData
9eceb6c6
JT
1dnl BISON_DEFINE_FILE(VARNAME, FILE)
2dnl Defines (with AC_DEFINE) VARNAME to the expansion of the FILE
3dnl variable, expanding ${prefix} and such.
4dnl Example: BISON_DEFINE_FILE(DATADIR, datadir)
5dnl By Alexandre Oliva <oliva@dcc.unicamp.br>
6AC_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])