dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
-AC_CHECK_HEADERS(stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h time.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h)
+AC_CHECK_HEADERS(stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
dnl for each function found we get a definition in config.h
dnl of the form HAVE_FUNCTION
-AC_CHECK_FUNCS(tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday)
+AC_CHECK_FUNCS(tzset fsync mbstowcs opendir readdir chdir chroot getuid strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday)
AC_FUNC_STRERROR_R
#include "rrd_rpncalc.h"
#include "rrd_client.h"
-#ifdef HAVE_LOCALE_H
#include <locale.h>
-#endif
#if !(defined(NETWARE) || defined(WIN32))
extern char *tzname[2];
return (-1);
}
-#ifdef HAVE_SETLOCALE
old_locale = setlocale(LC_NUMERIC, "C");
-#endif
+
if (opt_header == 1) {
CB_PUTS("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
rrd_free(&rrd);
-#ifdef HAVE_SETLOCALE
setlocale(LC_NUMERIC, old_locale);
-#endif
return rrd_close(rrd_file);
#include <fcntl.h>
#endif
-#ifdef HAVE_TIME_H
#include <time.h>
-#endif
-#ifdef HAVE_LOCALE_H
#include <locale.h>
-#endif
#include "rrd_graph.h"
#include "rrd_client.h"
return (-1);
}
-#ifdef HAVE_SETLOCALE
old_locale = setlocale(LC_NUMERIC, "C");
-#endif
rrd = parse_file(argv[optind]);
-#ifdef HAVE_SETLOCALE
setlocale(LC_NUMERIC, old_locale);
-#endif
if (rrd == NULL)
return (-1);
#include "rrd_xport.h"
#include "rrd_i18n.h"
-#ifdef HAVE_LOCALE_H
#include <locale.h>
-#endif
+
void PrintUsage(
char *cmd);
#ifdef MUST_DISABLE_FPMASK
fpsetmask(0);
#endif
-#ifdef HAVE_LOCALE_H
+
/* initialize locale settings
according to localeconv(3) */
setlocale(LC_ALL, "");
-#endif
#if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL)
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);