This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: install the shared libgcc


On Sun, Jan 07, 2001 at 11:07:04AM +0000, Joseph S. Myers wrote:
> However, it should be possible (and reasonable) to provide a configure
> option to specify this directory.  (--with-slibdir=/lib or similar.)

Agreed.  That does in fact make it easier on packagers.
Also fix the test vs [ losage noted by Brian Gaeke.


r~


        * configure.in (slibdir): Accept an --with-slibdir option.
        Use "test" not "[" in configure.  Default to $(libdir).

Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.472
diff -c -p -d -r1.472 configure.in
*** configure.in	2001/01/07 09:27:24	1.472
--- configure.in	2001/01/07 21:46:38
*************** AC_ARG_ENABLE(version-specific-runtime-l
*** 1808,1820 ****
  [  --enable-version-specific-runtime-libs    Specify that runtime libraries shou
  ld be installed in a compiler-specific directory ])
  
! if [ "${enable_version_specific_runtime_libs-no}" = "yes" ]; then
    slibdir='$(libsubdir)'
! elif [ "$host" != "$target" ]; then
    slibdir='$(build_tooldir)/lib'
  else
!   slibdir='$(prefix)/lib'
! fi
  AC_SUBST(slibdir)
  
  # Nothing to do for FLOAT_H, float_format already handled.
--- 1808,1823 ----
  [  --enable-version-specific-runtime-libs    Specify that runtime libraries shou
  ld be installed in a compiler-specific directory ])
  
! AC_ARG_WITH(slibdir,
! [  --with-slibdir=DIR      shared libraries in DIR [LIBDIR]],
! slibdir="$with_slibdir",
! if test "${enable_version_specific_runtime_libs+set}" = set; then
    slibdir='$(libsubdir)'
! elif test "$host" != "$target"; then
    slibdir='$(build_tooldir)/lib'
  else
!   slibdir='$(libdir)'
! fi)
  AC_SUBST(slibdir)
  
  # Nothing to do for FLOAT_H, float_format already handled.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]