From: Alex Smith Date: Sun, 15 Nov 2009 03:38:33 +0000 (-0500) Subject: Add check for isatty X-Git-Tag: 0.29~132 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=bdfe8ef34754e24205d751d4d4373556f82a2a7e;p=intercal.git Add check for isatty --- diff --git a/configure.ac b/configure.ac index 78d8f6a..3859891 100644 --- a/configure.ac +++ b/configure.ac @@ -65,7 +65,7 @@ fi AC_DEFINE_UNQUOTED([EXEEXT],"$EXEEXT",[Extension to use on executable files.]) dnl Checks for library functions. -AC_CHECK_FUNCS(gettimeofday gethrtime strdup strtol strtoul snprintf vsnprintf) +AC_CHECK_FUNCS(gettimeofday gethrtime strdup strtol strtoul snprintf vsnprintf isatty) ICK_SAVECFLAGS=$CFLAGS CFLAGS="$CFLAGS -lrt" AC_CHECK_FUNCS(clock_gettime) diff --git a/src/configh.in b/src/configh.in index 5f93f99..a8c4a8b 100644 --- a/src/configh.in +++ b/src/configh.in @@ -15,6 +15,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the `isatty' function. */ +#undef HAVE_ISATTY + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H