From 39711b631f91d58ba3a2401563e6b66f2f119e67 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 23 Dec 2008 21:29:34 +0000 Subject: [PATCH] * configure.in (OBJDUMP, OBJCOPY): autoconf list is not comma separated. * configure.in (AC_HEADER_STDC, AC_CHECK_HEADERS AC_CHECK_FUNCS): removed duplicated checks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ configure.in | 17 +++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 052d8b823d..e171dcfb36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Wed Dec 24 06:29:32 2008 Nobuyoshi Nakada + + * configure.in (OBJDUMP, OBJCOPY): autoconf list is not comma + separated. + + * configure.in (AC_HEADER_STDC, AC_CHECK_HEADERS AC_CHECK_FUNCS): + removed duplicated checks. + Wed Dec 24 03:21:21 2008 Yukihiro Matsumoto * misc/ruby-mode.el: added comment to mention newer version diff --git a/configure.in b/configure.in index 36f5222464..98019dea1e 100644 --- a/configure.in +++ b/configure.in @@ -218,8 +218,8 @@ ASFLAGS=$ASFLAGS AC_SUBST(ASFLAGS) # BSD's ports and MacPorts prefix GNU binutils with 'g' -AC_CHECK_TOOLS(OBJDUMP, [objdump, gobjdump]) -AC_CHECK_TOOLS(OBJCOPY, [objcopy, gobjcopy]) +AC_CHECK_TOOLS(OBJDUMP, [objdump gobjdump]) +AC_CHECK_TOOLS(OBJCOPY, [objcopy gobjcopy]) case "$target_os" in cygwin*|mingw*) @@ -281,8 +281,6 @@ mingw*) ;; esac -AC_CHECK_TYPES([long long, off_t]) - AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(long, 4) @@ -294,6 +292,9 @@ AC_CHECK_SIZEOF(float, 4) AC_CHECK_SIZEOF(double, 8) AC_CHECK_SIZEOF(time_t, 0) +[test "${ac_cv_type_long_long}" = yes] && AC_DEFINE(HAVE_LONG_LONG) +[test "${ac_cv_type_off_t}" = yes] && AC_DEFINE(HAVE_OFF_T) + dnl RUBY_REPLACE_TYPE [typename] [default type] [macro type] [included] AC_DEFUN([RUBY_REPLACE_TYPE], [dnl AC_CHECK_TYPE([$1], @@ -644,11 +645,11 @@ fi dnl Checks for header files. AC_HEADER_DIRENT -AC_HEADER_STDC +dnl AC_HEADER_STDC has been checked in AC_USE_SYSTEM_EXTENSIONS AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h sys/syscall.h\ +AC_CHECK_HEADERS(limits.h sys/file.h sys/ioctl.h sys/syscall.h\ fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\ - syscall.h pwd.h grp.h a.out.h utime.h memory.h direct.h sys/resource.h \ + syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \ sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h pthread.h \ ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \ net/socket.h sys/socket.h) @@ -787,7 +788,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd setrgid setegid setregid setresgid issetugid pause lchown lchmod\ getpgrp setpgrp getpgid setpgid initgroups getgroups setgroups\ getpriority getrlimit setrlimit sysconf group_member\ - dlopen sigprocmask sigaction sigsetjmp _setjmp _longjmp vsnprintf snprintf\ + dlopen sigprocmask sigaction sigsetjmp _setjmp _longjmp snprintf\ setsid telldir seekdir fchmod cosh sinh tanh log2 round signbit\ setuid setgid daemon select_large_fdset setenv unsetenv\ mktime timegm gmtime_r clock_gettime gettimeofday\