summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-15 09:56:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-15 09:56:53 +0000
commit76bfad4f67ea4bdd52c812262b875ee756f78912 (patch)
treef39946fad0b6b085b358d2b7b25483f769abcb3a /configure.in
parentafa942c241fc9eaf6fb8860061e5e5a0122c866a (diff)
downloadruby-76bfad4f67ea4bdd52c812262b875ee756f78912.tar.gz
ruby-76bfad4f67ea4bdd52c812262b875ee756f78912.tar.xz
ruby-76bfad4f67ea4bdd52c812262b875ee756f78912.zip
* configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs
to get rid of types which might not be defined yet. [ruby-dev:26165] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 10e783e1a..4e0dc1490 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT()
-AC_PREREQ(2.50)
+AC_PREREQ(2.58)
AC_DEFUN(RUBY_MINGW32,
[case "$host_os" in
@@ -230,7 +230,10 @@ AC_CHECK_SIZEOF(float, 4)
AC_CHECK_SIZEOF(double, 8)
AC_CHECK_SIZEOF(time_t, 0)
-AC_CHECK_TYPES([pid_t, gid_t, uid_t])
+for id in pid_t gid_t uid_t; do
+ AC_CHECK_TYPE($id, [typ=$id], [typ=int])
+ AC_DEFINE_UNQUOTED(rb_$id, $typ)
+done
AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes,
[AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],