dnl Process this file with autoconf to produce a configure script.
AC_INIT(gedit.c)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PATH_X

test "$x_includes" != "NONE" -a "$x_includes" != "" && CFLAGS="$CFLAGS -I${x_includes}"
test "$x_libraries" != "NONE" -a "$x_libraries" != "" && LIBS="$LIBS -L${x_libraries}"

LIBS="$LIBS -lXt -lXext -lX11"

dnl Checks for libraries.
AC_CHECK_LIB(Xp, XpSetAttributes)
AC_CHECK_LIB(Xm, XmCreateBulletinBoard)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h)

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.
AC_CHECK_FUNCS(strdup)

AC_OUTPUT(Makefile)
