AC_INIT(gcg.c)
AM_INIT_AUTOMAKE(gcg, 0.1, no-define)

AM_MAINTAINER_MODE

AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_CPP
AC_PROG_RANLIB
AC_PROG_YACC
AM_PROG_LEX

dnl Utility conditional
AM_CONDITIONAL(FALSE, test x = y)

AM_PATH_GLIB(1.0.0,,AC_ERROR(need at least Glib version 1.0))

CPP_PROGRAM="$CPP"
if test "x$GCC" = "xyes"; then
  CPP_PROGRAM="$CPP_PROGRAM -x c"
fi
AC_DEFINE_UNQUOTED(CPP_PROGRAM, "$CPP_PROGRAM")

AC_OUTPUT([
Makefile
ex/Makefile])
