Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] toplevel configure.in: topsrcdir->srcdir
@ 2002-05-30 11:11 Nathanael Nerode
  2002-05-30 12:08 ` DJ Delorie
  2002-06-19 16:57 ` DJ Delorie
  0 siblings, 2 replies; 5+ messages in thread
From: Nathanael Nerode @ 2002-05-30 11:11 UTC (permalink / raw)
  To: gcc-patches; +Cc: gdb-patches, binutils, dj

This replaces references to ${topsrcdir} with ${srcdir}.  This is correct,
since topsrcdir == srcdir when this is run; it is useful for autoconfiscation, 
because topsrcdir doesn't automatically exist in autoconf scripts, while
srcdir does.

Tested on i686-pc-linux-gnu.

2002-05-23  Nathanael Nerode  <neroden@twcny.rr.com>
	* configure.in: replace ${topsrcdir} with ${srcdir}

*** configure.in.old	Thu May 23 13:50:25 2002
--- configure.in	Thu May 23 13:51:07 2002
***************
*** 1451,1457 ****
    if test x${enable_version_specific_runtime_libs} = xyes; then
      gxx_include_dir='${libsubdir}/include/g++'
    else
!     . ${topsrcdir}/config.if
      gxx_include_dir='${prefix}/include/${libstdcxx_incdir}'
    fi
  else
--- 1451,1457 ----
    if test x${enable_version_specific_runtime_libs} = xyes; then
      gxx_include_dir='${libsubdir}/include/g++'
    else
!     . ${srcdir}/config.if
      gxx_include_dir='${prefix}/include/${libstdcxx_incdir}'
    fi
  else
***************
*** 1472,1478 ****
     esac
  
     # If we're not building GCC, don't discard standard headers.
!    if test -d ${topsrcdir}/gcc; then
       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  
       if test "${build}" != "${host}"; then
--- 1472,1478 ----
     esac
  
     # If we're not building GCC, don't discard standard headers.
!    if test -d ${srcdir}/gcc; then
       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  
       if test "${build}" != "${host}"; then
***************
*** 1518,1524 ****
  # the previously-installed cross compiler, so don't bother to add
  # flags for directories within the install tree of the compiler
  # being built; programs in there won't even run.
! if test "${build}" = "${host}" && test -d ${topsrcdir}/gcc; then
    # Search for pre-installed headers if nothing else fits.
    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
  fi
--- 1518,1524 ----
  # the previously-installed cross compiler, so don't bother to add
  # flags for directories within the install tree of the compiler
  # being built; programs in there won't even run.
! if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
    # Search for pre-installed headers if nothing else fits.
    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
  fi
***************
*** 1532,1538 ****
  
  if test "x${CC_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${topsrcdir}/gcc; then
    CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
  elif test "$host" = "$target"; then
    CC_FOR_TARGET='$(CC)'
--- 1532,1538 ----
  
  if test "x${CC_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${srcdir}/gcc; then
    CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
  elif test "$host" = "$target"; then
    CC_FOR_TARGET='$(CC)'
***************
*** 1548,1554 ****
  
  if test "x${GCJ_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${topsrcdir}/gcc; then
    GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
  elif test "$host" = "$target"; then
    GCJ_FOR_TARGET='gcj'
--- 1548,1554 ----
  
  if test "x${GCJ_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${srcdir}/gcc; then
    GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
  elif test "$host" = "$target"; then
    GCJ_FOR_TARGET='gcj'
***************
*** 1562,1568 ****
  
  if test "x${CXX_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${topsrcdir}/gcc; then
    # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
    # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
    # default whereas gcc does not.
--- 1562,1568 ----
  
  if test "x${CXX_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${srcdir}/gcc; then
    # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
    # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
    # default whereas gcc does not.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-19 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-30 11:11 [patch] toplevel configure.in: topsrcdir->srcdir Nathanael Nerode
2002-05-30 12:08 ` DJ Delorie
2002-05-30 17:31   ` Nathanael Nerode
2002-05-30 17:49     ` DJ Delorie
2002-06-19 16:57 ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox