summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-08 22:47:52 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-08 22:47:52 (GMT)
commit9601315140cc505e17318d766e0bedec91e6b9ec (patch)
tree3e06941b715a5674fe1235b9648609311e624b98
parent1f14ccf6d1dc4e4f5142ef8d061f9080d17b16fe (diff)
downloadcpython-9601315140cc505e17318d766e0bedec91e6b9ec.zip
cpython-9601315140cc505e17318d766e0bedec91e6b9ec.tar.gz
cpython-9601315140cc505e17318d766e0bedec91e6b9ec.tar.bz2
Add checks for setlocale() and <locale.h>
-rw-r--r--config.h.in6
-rwxr-xr-xconfigure6
-rw-r--r--configure.in4
3 files changed, 11 insertions, 5 deletions
diff --git a/config.h.in b/config.h.in
index 15c060b..382c46d 100644
--- a/config.h.in
+++ b/config.h.in
@@ -244,6 +244,9 @@
/* Define if you have the setgid function. */
#undef HAVE_SETGID
+/* Define if you have the setlocale function. */
+#undef HAVE_SETLOCALE
+
/* Define if you have the setpgid function. */
#undef HAVE_SETPGID
@@ -310,6 +313,9 @@
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
+/* Define if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
/* Define if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
diff --git a/configure b/configure
index 18beffb..151da72 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
-# From configure.in Revision: 1.66
+# From configure.in Revision: 1.67
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12
@@ -1234,7 +1234,7 @@ EOF
fi
-for ac_hdr in dlfcn.h fcntl.h limits.h ncurses.h pthread.h \
+for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
sys/audioio.h sys/file.h sys/lock.h \
sys/param.h sys/select.h sys/time.h sys/times.h \
@@ -2483,7 +2483,7 @@ fi
for ac_func in alarm chown clock dlopen execv flock fork ftime ftruncate \
gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \
kill link lstat mkfifo nice pause plock putenv readlink \
- select setgid setuid setsid setpgid setpgrp setvbuf \
+ select setgid setlocale setuid setsid setpgid setpgrp setvbuf \
sigaction siginterrupt sigrelse strftime symlink \
tcgetpgrp tcsetpgrp times truncate uname waitpid
do
diff --git a/configure.in b/configure.in
index 640969e..2343f74 100644
--- a/configure.in
+++ b/configure.in
@@ -167,7 +167,7 @@ AC_MSG_RESULT($cpp_type)
# checks for header files
AC_HEADER_STDC
-AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h ncurses.h pthread.h \
+AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
sys/audioio.h sys/file.h sys/lock.h \
sys/param.h sys/select.h sys/time.h sys/times.h \
@@ -382,7 +382,7 @@ LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no))
AC_CHECK_FUNCS(alarm chown clock dlopen execv flock fork ftime ftruncate \
gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \
kill link lstat mkfifo nice pause plock putenv readlink \
- select setgid setuid setsid setpgid setpgrp setvbuf \
+ select setgid setlocale setuid setsid setpgid setpgrp setvbuf \
sigaction siginterrupt sigrelse strftime symlink \
tcgetpgrp tcsetpgrp times truncate uname waitpid)
AC_REPLACE_FUNCS(dup2 getcwd strdup strerror memmove)