Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (21 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28dir.info
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/configure.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1616AC_ARG_WITH(cross-host,
    1717[  --with-cross-host=HOST  configuring with a cross compiler])
     18
     19AC_ARG_WITH(newlib,
     20[  --with-newlib           Configuring with newlib])
    1821
    1922LIBGCJ_CONFIGURE(.)
     
    3033   INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
    3134   # FIXME: this is a hack.
    32    sub_auxdir="`cd $ac_aux_dir && pwd`"
     35   sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
    3336   ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
    3437fi
     
    113116   AC_DEFINE(INTERPRETER)
    114117fi
     118INTERPRETER="$libgcj_interpreter"
     119AC_SUBST(INTERPRETER)
    115120
    116121AC_MSG_CHECKING([for exception model to use])
     
    192197   AC_DEFINE(USE_LIBFFI)
    193198   LIBFFI=../libffi/libffi_convenience.la
    194    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
     199   LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
    195200fi
    196201AC_SUBST(LIBFFI)
     
    222227            PLATFORMOBJS=win32.lo
    223228            PLATFORMH=win32.h
     229        CHECK_FOR_BROKEN_MINGW_LD
    224230      ;;
    225231      *)
     
    274280AC_SUBST(SYSTEMSPEC)
    275281
    276 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
     282LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
    277283AC_SUBST(LIBGCJTESTSPEC)
    278284
     
    308314    GCINCS='-I$(top_srcdir)/../boehm-gc/include'
    309315    JC1GCSPEC='-fuse-boehm-gc'
    310     GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
     316    GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
    311317
    312318    dnl We also want to pick up some cpp flags required when including
     
    440446HASH_SYNC_SPEC=
    441447# Hash synchronization is only useful with posix threads right now.
    442 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
     448if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
    443449   HASH_SYNC_SPEC=-fhash-synchronization
    444450   AC_DEFINE(JV_HASH_SYNCHRONIZATION, 1, [Define if hash synchronization is in use])
     
    466472AC_SUBST(gcc_version)
    467473
    468 if test -n "${with_cross_host}"; then
     474if test "x${with_newlib}" = "xyes"; then
    469475   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
    470476   # may not work correctly, because the compiler may not be able to
     
    489495   # If Canadian cross, then don't pick up tools from the build
    490496   # directory.
    491    if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
     497   if test x"$build" != x"$with_cross_host" \
     498        && test x"$build" != x"$target"; then
    492499      CANADIAN=yes
    493500      GCC_UNWIND_INCLUDE=
     
    502509   AC_CHECK_FUNCS(inet_aton inet_addr, break)
    503510   AC_CHECK_FUNCS(inet_pton uname inet_ntoa)
    504    AC_CHECK_FUNCS(fork execvp pipe sigaction)
     511   AC_CHECK_FUNCS(fork execvp pipe sigaction ftruncate)
    505512   AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h)
    506513   AC_CHECK_FUNC(backtrace, [
     
    513520         ;;
    514521     esac
     522   ], [
     523     case "$host" in
     524       *mingw*)
     525         # Has backtrace() defined in libgcj itself
     526         AC_DEFINE(HAVE_BACKTRACE)
     527         ;;
     528     esac
    515529   ])
    516530
    517531   AC_CHECK_LIB(dl, dladdr, [
    518532     AC_DEFINE(HAVE_DLADDR)])
    519    AC_CHECK_FILES(/proc/self/exe, [
    520      AC_DEFINE(HAVE_PROC_SELF_EXE)])
     533   if test x"$build" = x"$host"; then
     534     AC_CHECK_FILES(/proc/self/exe, [
     535       AC_DEFINE(HAVE_PROC_SELF_EXE)])
     536   else
     537     case $host in
     538     *-linux*)
     539       AC_DEFINE(HAVE_PROC_SELF_EXE)
     540       ;;
     541     esac
     542   fi
    521543
    522544   AM_ICONV
     
    711733   fi
    712734   if test -x "${builddotdot}/../../gcc/gcj"; then
    713       dir="`cd ${builddotdot}/../../gcc && pwd`"
    714       GCJ="$dir/gcj -B`pwd`/ -B$dir/"
     735      dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
     736      GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
    715737   else
    716738      CANADIAN=yes
    717739      NULL_TARGET=yes
    718       GCJ="gcj -B`pwd`/"
     740      GCJ="gcj -B`${PWDCMD-pwd}`/"
    719741   fi
    720742fi
     
    726748# have libgcj.jar nor java/lang/*.class
    727749GCJ_SAVE_CPPFLAGS=$CPPFLAGS
    728 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
     750CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
    729751
    730752# Since some classes depend on this one, we need its source available
     
    768790AC_SUBST(CHECKREFSPEC)
    769791AC_SUBST(EXCEPTIONSPEC)
     792AC_SUBST(IEEESPEC)
    770793
    771794AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
     
    788811AC_SUBST(toolexeclibdir)
    789812
    790 AC_SUBST(AM_RUNTESTFLAGS)
    791 
    792813# Determine gcj version number.
    793814changequote(<<,>>)
     
    796817GCJVERSION=$gcjversion
    797818AC_SUBST(GCJVERSION)
    798 AC_DEFINE_UNQUOTED(GCJVERSION, "$GCJVERSION", [Short GCJ version])
     819AC_DEFINE_UNQUOTED(GCJVERSION, "$GCJVERSION", [Short GCJ version ID])
    799820
    800821dnl Work around a g++ bug.  Reported to gcc-bugs@gcc.gnu.org on Jan 22, 2000.
     
    811832dnl On that system, sys/ioctl.h will not include sys/filio.h unless
    812833dnl BSD_COMP is defined; just including sys/filio.h is simpler.
    813 AC_CHECK_HEADERS(unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h stdint.h langinfo.h locale.h)
     834AC_CHECK_HEADERS(unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h)
    814835dnl We avoid AC_HEADER_DIRENT since we really only care about dirent.h
    815836dnl for now.  If you change this, you also must update natFile.cc.
     
    871892   dnl when cross-compiling.  So instead we make an assumption that
    872893   dnl the header file will mention timezone if it exists.
    873    AC_TRY_COMPILE([#include <time.h>], [long z2 = timezone;],
     894   dnl Don't find the win32 function timezone
     895   AC_TRY_COMPILE([#include <time.h>], [void i(){long z2 = 2*timezone;}],
    874896     [AC_DEFINE(HAVE_TIMEZONE)
    875897      AC_MSG_RESULT(yes)],
    876      [AC_MSG_RESULT(no)])])
     898     [AC_MSG_RESULT(no)
     899       AC_MSG_CHECKING([for global _timezone variable])
     900       dnl FIXME: As above, don't want link check
     901       AC_TRY_COMPILE([#include <time.h>], [long z2 = _timezone;],
     902         [AC_DEFINE(HAVE_UNDERSCORE_TIMEZONE)
     903          AC_MSG_RESULT(yes)],
     904          [AC_MSG_RESULT(no)])])])
    877905
    878906AC_FUNC_ALLOCA
     
    897925    ;;
    898926 powerpc-*-linux*)
    899     SIGNAL_HANDLER=include/dwarf2-signal.h
     927    SIGNAL_HANDLER=include/powerpc-signal.h
    900928    ;;
    901929 alpha*-*-linux*)
    902930    SIGNAL_HANDLER=include/dwarf2-signal.h
     931    ;;
     932 s390*-*-linux*)
     933    SIGNAL_HANDLER=include/s390-signal.h
     934    ;;
     935 x86_64*-*-linux*)
     936    SIGNAL_HANDLER=include/x86_64-signal.h
    903937    ;;
    904938 sparc*-*-linux*)
     
    917951   SIGNAL_HANDLER=include/default-signal.h
    918952fi
     953
     954# Define here any compiler flags that you need in order to make backtrace() work.
     955BACKTRACESPEC=
     956case "${host}" in
     957 x86_64*-*-linux*)
     958    BACKTRACESPEC=-fno-omit-frame-pointer
     959    ;;
     960esac
     961AC_SUBST(BACKTRACESPEC)
    919962
    920963AC_SUBST(SYSDEP_SOURCES)
     
    9661009
    9671010
    968 here=`pwd`
     1011here=`${PWDCMD-pwd}`
    9691012AC_SUBST(here)
    9701013
     
    9831026# Make subdirectories and `.d' files.  Look in both srcdir and
    9841027# builddir for the .java files.
    985 h=`pwd`
     1028h=`${PWDCMD-pwd}`
    9861029: > deps.mk
    9871030( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
     
    10111054CC="${CC}"
    10121055CXX="${CXX}"
     1056ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
    10131057)
Note: See TracChangeset for help on using the changeset viewer.