dnl Look for a source file that should be in the distribution. AC_INIT(browse.c) dnl Generate a config.h file. AC_CONFIG_HEADER(config.h) dnl Find the C compiler. AC_PROG_CC dnl Get the operating system name. uname=`uname` if test $uname = IRIX64; then uname=IRIX fi dnl Get the networking libraries if needed. AC_CHECK_LIB(socket,socket, if test "$uname" != "IRIX"; then LIBS="-lsocket $LIBS" else echo "Not using -lsocket since you are running IRIX." fi) AC_CHECK_LIB(nsl,gethostbyaddr, if test "$uname" != "IRIX"; then LIBS="-lnsl $LIBS" else echo "Not using -lnsl since you are running IRIX." fi) dnl Find the cups library and header file. AC_CHECK_LIB(cups,cupsPrintFiles) AC_CHECK_HEADER(cups/cups.h, AC_DEFINE(HAVE_CUPS_H)) dnl Stop if we don't have CUPS. if test $ac_cv_lib_cups_cupsPrintFiles = no -o $ac_cv_header_cups_cups_h = no; then AC_MSG_ERROR(Could not find CUPS.) fi dnl Generate the Makefile AC_OUTPUT(Makefile)