Commit da4b1927 by Mumit Khan Committed by Jeff Law

configure.in (AC_PREREQ): Update to 2.13.

�
        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.

From-SVN: r25955
parent e33abc2d
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
# Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc. # Copyright (C) 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
# Contributed by Dave Love (d.love@dl.ac.uk). # Contributed by Dave Love (d.love@dl.ac.uk).
# #
#This file is part of GNU Objective C. #This file is part of GNU Objective C.
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#02111-1307, USA. #02111-1307, USA.
AC_PREREQ(2.12.1) AC_PREREQ(2.13)
AC_INIT(objc/objc.h) AC_INIT(objc/objc.h)
#AC_CONFIG_HEADER(config.h) #AC_CONFIG_HEADER(config.h)
...@@ -36,29 +36,37 @@ dnl This is needed for a multilibbed build in the source tree so ...@@ -36,29 +36,37 @@ dnl This is needed for a multilibbed build in the source tree so
dnl that install-sh and config.sub get found. dnl that install-sh and config.sub get found.
AC_CONFIG_AUX_DIR($topsrcdir) AC_CONFIG_AUX_DIR($topsrcdir)
# If the language specific compiler does not exist, but the "gcc" directory does, # We have to handle 3 cases -- native, cross and canadian cross -- and
# we do not build anything. Note, $r is set by the top-level Makefile. # the extension returned from this macro needs to be treated as a possible
# scenario and not the only one.
AC_EXEEXT
# If the language specific compiler does not exist, but the "gcc" directory
# does, we do not build anything. Note, $r is set by the top-level Makefile.
# Note that when we look for the compiler, we search both with and without
# extension to handle cross and canadian cross builds.
compiler_name=cc1obj compiler_name=cc1obj
rm -f skip-this-dir rm -f skip-this-dir
AC_MSG_CHECKING(if compiler $compiler_name has been built) AC_MSG_CHECKING(if compiler $compiler_name has been built)
AC_CACHE_VAL(objc_cv_compiler_exists, AC_CACHE_VAL(objc_cv_compiler_exists,
[objc_cv_compiler_exists=yes [objc_cv_compiler_exists=yes
if test -n "$r"; then if test -n "$r"; then
if test -d "$r"/gcc; then if test -d "$r"/gcc; then
if test -f "$r"/gcc/$compiler_name; then if test -f "$r"/gcc/$compiler_name \
true || test -f "$r"/gcc/$compiler_name$EXEEXT; then
else true
objc_cv_compiler_exists=no else
echo "rm -f config.cache config.log multilib.out" > skip-this-dir objc_cv_compiler_exists=no
fi echo "rm -f config.cache config.log multilib.out" > skip-this-dir
fi fi
fi fi
]) fi
])
AC_MSG_RESULT($objc_cv_compiler_exists) AC_MSG_RESULT($objc_cv_compiler_exists)
if test x$objc_cv_compiler_exists = xno if test x$objc_cv_compiler_exists = xno
then then
rm -f Makefile conftest* confdefs* core rm -f Makefile conftest* confdefs* core
exit 0 exit 0
fi fi
dnl Checks for programs. dnl Checks for programs.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment