* configure.in: autoconf 2.53 support. use AC_LIBOBJ.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2002-03-14 07:20:34 +00:00
parent 997b69cb6a
commit c4d80ad690
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,7 @@
Thu Mar 14 16:18:12 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in: autoconf 2.53 support. use AC_LIBOBJ.
Thu Mar 14 00:29:12 2002 Yukihiro Matsumoto <matz@ruby-lang.org> Thu Mar 14 00:29:12 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* re.c (rb_reg_match): should clear $~ if operand is nil. * re.c (rb_reg_match): should clear $~ if operand is nil.

View File

@ -289,9 +289,7 @@ dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T AC_TYPE_UID_T
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_BLKSIZE
save_LIBOJBS="$LIBOBJS"
AC_STRUCT_ST_BLOCKS AC_STRUCT_ST_BLOCKS
LIBOBJS="$save_LIBOBJS"
AC_STRUCT_ST_RDEV AC_STRUCT_ST_RDEV
dnl Checks for library functions. dnl Checks for library functions.
@ -429,7 +427,7 @@ main()
exit(0); exit(0);
} }
], rb_cv_func_strtod=yes, rb_cv_func_strtod=no, rb_cv_func_strtod=no)]) ], rb_cv_func_strtod=yes, rb_cv_func_strtod=no, rb_cv_func_strtod=no)])
test $rb_cv_func_strtod = no && LIBOBJS="$LIBOBJS strtod.o" test $rb_cv_func_strtod = no && AC_LIBOBJ([strtod])
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_C_CONST AC_C_CONST
@ -817,7 +815,7 @@ rb_cv_missing_fconvert=yes, rb_cv_missing_fconvert=no, rb_cv_missing_fconvert=no
if test "$rb_cv_missing_fconvert" = yes; then if test "$rb_cv_missing_fconvert" = yes; then
AC_DEFINE(MISSING_FCONVERT) AC_DEFINE(MISSING_FCONVERT)
fi fi
LIBOBJS="$LIBOBJS x68.o" AC_LIBOBJ([x68.o])
CFLAGS="$CFLAGS -fansi-only -cc1-stack=262144 -cpp-stack=2694144" CFLAGS="$CFLAGS -fansi-only -cc1-stack=262144 -cpp-stack=2694144"
EXEEXT=.x EXEEXT=.x
OBJEXT=o OBJEXT=o
@ -825,7 +823,7 @@ rb_cv_missing_fconvert=yes, rb_cv_missing_fconvert=no, rb_cv_missing_fconvert=no
;; ;;
dnl OS/2 environment w/ Autoconf 2.1x for EMX dnl OS/2 environment w/ Autoconf 2.1x for EMX
os2_emx) os2_emx)
LIBOBJS="$LIBOBJS os2.$OBJEXT" AC_LIBOBJ([os2])
setup=Setup.emx setup=Setup.emx
;; ;;
*djgpp*) *djgpp*)
@ -1018,10 +1016,10 @@ case "$target_os" in
SOLIBS='$(LIBS)' SOLIBS='$(LIBS)'
case "$target_os" in case "$target_os" in
cygwin*) cygwin*)
LIBOBJS="$LIBOBJS strftime.o" AC_LIBOBJ([strftime])
CCDLFLAGS=-DUSEIMPORTLIB ;; CCDLFLAGS=-DUSEIMPORTLIB ;;
mingw*) mingw*)
LIBOBJS="$LIBOBJS win32.o" AC_LIBOBJ([win32])
CFLAGS="-DNT -D__MSVCRT__ $CFLAGS" CFLAGS="-DNT -D__MSVCRT__ $CFLAGS"
CCDLFLAGS=-DIMPORT ;; CCDLFLAGS=-DIMPORT ;;
esac esac