Index: configure.ac.in =================================================================== RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/configure.ac.in,v retrieving revision 1.7 diff -U3 -p -r1.7 configure.ac.in --- configure.ac.in 17 Apr 2007 20:19:14 -0000 1.7 +++ configure.ac.in 21 Apr 2007 16:56:37 -0000 @@ -392,6 +392,18 @@ AC_HEADER_DIRENT AC_CHECK_HEADERS(unistd.h string.h stdlib.h \ stdarg.h assert.h fcntl.h errno.h sys/param.h) +# Check for locale.h + +# Set USE_NLS +AM_NLS +AC_CHECK_HEADER([locale.h], + [AC_DEFINE([HAVE_LOCALE_H], 1, [Define if you have locale.h])], + [ + if test "$USE_NLS" == "yes"; then + AC_MSG_ERROR([Cannot find useful locale.h, and nls support is enabled. Try compiling with --disable-nls]) + fi + ]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST