From: Jim Meyering Date: Sat, 9 Dec 2000 22:05:28 +0000 (+0000) Subject: . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3643fc2b1b19e5183234ec0fcd3ad80da4dc245b;p=pspp . --- diff --git a/m4/ChangeLog b/m4/ChangeLog index b237d9b3ad..3675acf520 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2000-12-06 Paul Eggert + + * off_t-format.m4: Remove this file. + * jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT. + 2000-12-06 Jim Meyering * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the replacement diff --git a/m4/Makefile.am b/m4/Makefile.am index b117b8e93f..9c27f0c157 100644 --- a/m4/Makefile.am +++ b/m4/Makefile.am @@ -44,7 +44,6 @@ mbstate_t.m4 \ mbswidth.m4 \ memcmp.m4 \ nanosleep.m4 \ -off_t-format.m4 \ perl.m4 \ prereq.m4 \ progtest.m4 \ diff --git a/m4/Makefile.in b/m4/Makefile.in index 0c3ce30d88..015d8645fa 100644 --- a/m4/Makefile.in +++ b/m4/Makefile.in @@ -159,7 +159,6 @@ mbstate_t.m4 \ mbswidth.m4 \ memcmp.m4 \ nanosleep.m4 \ -off_t-format.m4 \ perl.m4 \ prereq.m4 \ progtest.m4 \ diff --git a/m4/off_t-format.m4 b/m4/off_t-format.m4 deleted file mode 100644 index 7d4b4d0356..0000000000 --- a/m4/off_t-format.m4 +++ /dev/null @@ -1,55 +0,0 @@ -#serial 1 -*- autoconf -*- - -dnl FIXME -AC_DEFUN(jm_SYS_OFF_T_PRINTF_FORMAT, -[dnl - AC_REQUIRE([AC_TYPE_OFF_T]) - AC_CHECK_HEADERS(string.h stdlinb.h) - AC_CACHE_CHECK([for printf format that works with type off_t], - jm_cv_sys_off_t_printf_format, - [ - jm_cv_sys_off_t_printf_format=undef - for jm_fmt in '' L ll q; do - jm_OFF_T_FORMAT="$jm_fmt" - export jm_OFF_T_FORMAT - AC_TRY_RUN([ -# include -# include -# if HAVE_STDLIB_H -# include -# endif -# if HAVE_STRING_H -# include -# endif - int - main() - { - static off_t x[] = {1, 255, 65535, 99999999}; - char buf[50], fmt[50]; - - /* this should be one of these values: "", "L", "ll", "q" */ - char *f = getenv ("jm_OFF_T_FORMAT"); - - sprintf (fmt, "%%%sd %%%sx %%%sx %%%sd", f, f, f, f); - sprintf (buf, fmt, x[0], x[1], x[2], x[3]); - exit (strcmp (buf, "1 ff ffff 99999999")); - } - ], jm_cv_sys_off_t_printf_format=$jm_fmt; break - , dnl didn't work - dnl Cross compiling -- you lose. Specify it via the cache. - ) - done - - # Die if none of the above worked. - # FIXME: If this failure become a problem that we can't work around, - # an alternative would be to arrange not to build od. - if test "$jm_cv_sys_off_t_printf_format" = undef; then - AC_MSG_ERROR(dnl - [couldn't find a printf format that works with the type, off_t]) - fi - ]) - - AC_DEFINE_UNQUOTED(OFF_T_PRINTF_FORMAT_STRING, - "$jm_cv_sys_off_t_printf_format", - [printf format string for type off_t, without the `%']) -])