Sun, 28 Aug 2016 23:32:11 -0400
Remove unnecessary checks in libgnt configure.
I'm not too sure this configure.ac is even used at this point.
| finch/libgnt/configure.ac | file | annotate | diff | comparison | revisions |
--- a/finch/libgnt/configure.ac Sun Aug 28 23:05:17 2016 -0400 +++ b/finch/libgnt/configure.ac Sun Aug 28 23:32:11 2016 -0400 @@ -67,74 +67,22 @@ dnl AC_CYGWIN dnl Checks for header files. -AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(fcntl.h unistd.h locale.h signal.h stdint.h) +AC_CHECK_HEADERS(unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_STRUCT_TM AC_C_BIGENDIAN dnl Checks for library functions. -AC_TYPE_SIGNAL -AC_FUNC_STRFTIME -AC_CHECK_FUNCS(strdup strstr atexit setlocale) +AC_CHECK_FUNCS(strdup) dnl to prevent the g_stat()/g_unlink() crash, dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac AC_SYS_LARGEFILE -AC_MSG_CHECKING(for the %z format string in strftime()) -AC_TRY_RUN([ -#include <time.h> -#include <stdio.h> - -int main() -{ - char buf[6]; - time_t t = time(NULL); - - if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5) - return 1; - - fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf); - - return !((buf[0] == '-' || buf[0] == '+') && - (buf[1] >= '0' && buf[1] <= '9') && - (buf[2] >= '0' && buf[2] <= '9') && - (buf[3] >= '0' && buf[3] <= '9') && - (buf[4] >= '0' && buf[4] <= '9') - ); -} -], -[ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1], - [Define to 1 if you have a strftime() that supports the %z format string.]) -], -[ - AC_MSG_RESULT(no) -], -[ - # Fallback for Cross Compiling... - # This will enable the compatibility code. - AC_MSG_RESULT(no) -] -) - - -AC_CHECK_HEADER(sys/utsname.h) -AC_CHECK_FUNC(uname) - if test "x$enable_debug" = "xyes" ; then AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) - enable_fatal_asserts="yes" -fi - -if test "x$enable_fatal_asserts" = "xyes" ; then - AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).]) fi if test "x$enable_deprecated" = "xno"; then @@ -231,12 +179,7 @@ AC_MSG_CHECKING(for me pot o' gold) AC_MSG_RESULT(no) -AC_CHECK_FUNCS(gethostid lrand48) -AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) -AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) -AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) -AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) -AC_CHECK_HEADERS(termios.h) +AC_CHECK_HEADERS(sys/wait.h) #AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])]) #AC_VAR_TIMEZONE_EXTERNALS