rlog complains about commitids from CVS

Bruno Haible <[email protected]>
Newsgroups gmane.comp.version-control.rcs.bugs
Message-ID <[email protected]>
Hi,

I'm using 'rlog' to get a list of tags that apply to a ,v file from a
CVS repository. (Why? Because what I have is actually a bunch of ,v files,
not a complete CVS repository. It's complicated to set up the repository
structure around it. 'rlog' as a single-file tool fits better.)

Newer versions of 'cvs' store a 'commitid' with every commit. 'rlog' complains
about it with a message to stderr:

  $ rlog config.rpath,v > /dev/null 
  rlog: config.rpath,v: warning: Unknown phrases like `commitid ...;' are present.

I would suggest to ignore this phrase without a warning. Here is a proposed
patch:


2010-05-16  Bruno Haible  <[email protected]>

	* rcssyn.c (K_commitid): New constant.
	(getdelta): Read and ignore a 'commitid' line, if present.

*** rcs-5.7/src/rcssyn.c.bak	1995-06-16 08:19:24.000000000 +0200
--- rcs-5.7/src/rcssyn.c	2010-05-16 02:45:43.000000000 +0200
***************
*** 187,193 ****
  #if COMPAT2
  	Ksuffix[]   = "suffix",
  #endif
! 	K_branches[]= "branches";
  
  static struct buf Commleader;
  struct cbuf Comment;
--- 187,194 ----
  #if COMPAT2
  	Ksuffix[]   = "suffix",
  #endif
! 	K_branches[]= "branches",
! 	K_commitid[]= "commitid";
  
  static struct buf Commleader;
  struct cbuf Comment;
***************
*** 430,435 ****
--- 431,442 ----
  	getkey(Knext);
  	Delta->next = num = getdnum();
  	getsemi(Knext);
+ 
+ 	if (getkeyopt(K_commitid)) {
+ 		getid();
+ 		getsemi(K_commitid);
+ 	}
+ 
  	Delta->lockedby = 0;
  	Delta->log.string = 0;
  	Delta->selector = true;
rlog-fix.diff (text/x-diff, 904 B)
2010-05-16  Bruno Haible  <[email protected]>

	* rcssyn.c (K_commitid): New constant.
	(getdelta): Read and ignore a 'commitid' line, if present.

*** rcs-5.7/src/rcssyn.c.bak	1995-06-16 08:19:24.000000000 +0200
--- rcs-5.7/src/rcssyn.c	2010-05-16 02:45:43.000000000 +0200
***************
*** 187,193 ****
  #if COMPAT2
  	Ksuffix[]   = "suffix",
  #endif
! 	K_branches[]= "branches";
  
  static struct buf Commleader;
  struct cbuf Comment;
--- 187,194 ----
  #if COMPAT2
  	Ksuffix[]   = "suffix",
  #endif
! 	K_branches[]= "branches",
! 	K_commitid[]= "commitid";
  
  static struct buf Commleader;
  struct cbuf Comment;
***************
*** 430,435 ****
--- 431,442 ----
  	getkey(Knext);
  	Delta->next = num = getdnum();
  	getsemi(Knext);
+ 
+ 	if (getkeyopt(K_commitid)) {
+ 		getid();
+ 		getsemi(K_commitid);
+ 	}
+ 
  	Delta->lockedby = 0;
  	Delta->log.string = 0;
  	Delta->selector = true;
config.rpath,v (text/plain, 30.3 KB)
head	1.1;
branch	1.1.1;
access;
symbols
	gettext-0_18:1.1.1.8
	gettext-0_17:1.1.1.7
	gettext-0_16_1:1.1.1.6
	gettext-0_16:1.1.1.6
	gettext-0_15:1.1.1.6
	gettext-0_14_6:1.1.1.5
	gettext-0_14_5:1.1.1.5
	gettext-0_14_4:1.1.1.5
	gettext-0_14_3:1.1.1.5
	gettext-0_14_2:1.1.1.5
	gettext-0_14_1:1.1.1.4
	gettext-0_14:1.1.1.4
	gettext-0_13_1:1.1.1.4
	gettext-0_13:1.1.1.4
	gettext-0_12_1:1.1.1.3
	gettext-0_12:1.1.1.3
	gettext-0_11_5:1.1.1.2
	gettext-0_11_4:1.1.1.2
	gettext-0_11_3:1.1.1.2
	gettext-0_11_2:1.1.1.2
	gettext-0_11_1:1.1.1.2
	gettext-0_11:1.1.1.1
	release:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2002.05.01.17.56.22;	author bruno;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.05.01.17.56.22;	author bruno;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2002.05.01.18.02.35;	author bruno;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2003.05.17.15.34.29;	author bruno;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2003.11.30.14.31.21;	author bruno;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2005.02.24.14.21.47;	author bruno;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2006.07.21.13.36.21;	author haible;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2007.11.07.02.50.28;	author bruno;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2010.05.09.19.42.50;	author bruno;	state Exp;
branches;
next	;
commitid	wy8V86L9CcIqO8yu;


desc
@@


1.1
log
@Initial revision
@
text
@#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
#   Copyright 1996-2002 Free Software Foundation, Inc.
#   Taken from GNU libtool, 2001
#   Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful, but
#   WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#   General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#   As a special exception to the GNU General Public License, if you
#   distribute this file as part of a program that contains a
#   configuration script generated by Autoconf, you may include it under
#   the same distribution terms that you use for the rest of that program.
#
# The first argument passed to this file is the canonical host specification,
#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or
#    CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
# should be set by the caller.
#
# The set of defined variables is at the end of this script.

# All known linkers require a `.a' archive for static linking (except M$VC,
# which needs '.lib').
libext=a
shlibext=

host="$1"
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

wl=
if test "$GCC" = yes; then
  wl='-Wl,'
else
  case "$host_os" in
    aix3* | aix4* | aix5*)
      if test "$host_cpu" = ia64; then
        wl='-Wl,'
      fi
      ;;
    hpux9* | hpux10* | hpux11*)
      wl='-Wl,'
      ;;
    irix5* | irix6*)
      wl='-Wl,'
      ;;
    linux*)
      echo '__INTEL_COMPILER' > conftest.$ac_ext
      if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null
      then
        :
      else
        # Intel icc
        wl='-Qoption,ld,'
      fi
      ;;
    osf3* | osf4* | osf5*)
      wl='-Wl,'
      ;;
    solaris*)
      wl='-Wl,'
      ;;
    sunos4*)
      wl='-Qoption ld '
      ;;
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      if test "x$host_vendor" = xsni; then
        wl='-LD'
      else
        wl='-Wl,'
      fi
      ;;
  esac
fi

hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no

case "$host_os" in
  cygwin* | mingw* | pw32* )
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
esac

ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
  case "$host_os" in
    aix3* | aix4* | aix5*)
      # On AIX, the GNU linker is very broken
      ld_shlibs=no
      ;;
    amigaos*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can use
      # them.
      ld_shlibs=no
      ;;
    beos*)
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
        :
      else
        ld_shlibs=no
      fi
      ;;
    cygwin* | mingw* | pw32*)
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      ;;
    solaris* | sysv5*)
      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
        ld_shlibs=no
      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
        :
      else
        ld_shlibs=no
      fi
      ;;
    sunos4*)
      hardcode_direct=yes
      ;;
    *)
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
        :
      else
        ld_shlibs=no
      fi
      ;;
  esac
  if test "$ld_shlibs" = yes; then
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  fi
else
  case "$host_os" in
    aix3*)
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes; then
        # Neither direct hardcoding nor static linking is supported with a
        # broken collect2.
        hardcode_direct=unsupported
      fi
      ;;
    aix4* | aix5*)
      hardcode_libdir_separator=':'
      if test "$GCC" = yes; then
        collect2name=`${CC} -print-prog-name=collect2`
        if test -f "$collect2name" && \
          strings "$collect2name" | grep resolve_lib_name >/dev/null
        then
          # We have reworked collect2
          hardcode_direct=yes
        else
          # We have old collect2
          hardcode_direct=unsupported
          hardcode_minus_L=yes
          hardcode_libdir_flag_spec='-L$libdir'
          hardcode_libdir_separator=
        fi
      else
        hardcode_direct=yes
      fi
      if test "$host_cpu" = ia64; then
        # On IA64, the linker does run time linking by default, so we don't
        # have to do anything special.
        aix_use_runtimelinking=no
      else
        # Test if we are trying to use run time linking, or normal AIX style linking.
        # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
        aix_use_runtimelinking=no
        for ld_flag in $LDFLAGS; do
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
            aix_use_runtimelinking=yes
            break
          fi
        done
      fi
      if test "$aix_use_runtimelinking" = yes; then
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
      else
        if test "$host_cpu" = ia64; then
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
        else
          hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
        fi
      fi
      ;;
    amigaos*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs=no
      ;;
    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      libext=lib
      ;;
    darwin* | rhapsody*)
      hardcode_direct=yes
      ;;
    freebsd1*)
      ld_shlibs=no
      ;;
    freebsd2.2*)
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      ;;
    freebsd2*)
      hardcode_direct=yes
      hardcode_minus_L=yes
      ;;
    freebsd*)
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      ;;
    hpux9* | hpux10* | hpux11*)
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes
      hardcode_minus_L=yes # Not in the search PATH, but as the default
                           # location of the library.
      ;;
    irix5* | irix6*)
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;
    netbsd*)
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      ;;
    newsos6)
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;
    openbsd*)
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      ;;
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      ;;
    osf3*)
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;
    osf4* | osf5*)
      if test "$GCC" = yes; then
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
        # Both cc and cxx compiler support -rpath directly
        hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      hardcode_libdir_separator=:
      ;;
    sco3.2v5*)
      ;;
    solaris*)
      hardcode_libdir_flag_spec='-R$libdir'
      ;;
    sunos4*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      ;;
    sysv4)
      if test "x$host_vendor" = xsno; then
        hardcode_direct=yes # is this really true???
      else
        hardcode_direct=no # Motorola manual says yes, but my tests say they lie
      fi
      ;;
    sysv4.3*)
      ;;
    sysv5*)
      hardcode_libdir_flag_spec=
      ;;
    uts4*)
      hardcode_libdir_flag_spec='-L$libdir'
      ;;
    dgux*)
      hardcode_libdir_flag_spec='-L$libdir'
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
        ld_shlibs=yes
      fi
      ;;
    sysv4.2uw2*)
      hardcode_direct=yes
      hardcode_minus_L=no
      ;;
    sysv5uw7* | unixware7*)
      ;;
    *)
      ld_shlibs=no
      ;;
  esac
fi

# Check dynamic linker characteristics
libname_spec='lib$name'
sys_lib_dlsearch_path_spec="/lib /usr/lib"
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
case "$host_os" in
  aix3*)
    shlibext=so
    ;;
  aix4* | aix5*)
    shlibext=so
    ;;
  amigaos*)
    shlibext=ixlibrary
    ;;
  beos*)
    shlibext=so
    ;;
  bsdi4*)
    shlibext=so
    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
    ;;
  cygwin* | mingw* | pw32*)
    case $GCC,$host_os in
      yes,cygwin*)
        shlibext=dll.a
        ;;
      yes,mingw*)
        shlibext=dll
        sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
        ;;
      yes,pw32*)
        shlibext=dll
        ;;
      *)
        shlibext=dll
        ;;
    esac
    ;;
  darwin* | rhapsody*)
    shlibext=dylib
    ;;
  freebsd1*)
    ;;
  freebsd*)
    shlibext=so
    ;;
  gnu*)
    shlibext=so
    ;;
  hpux9* | hpux10* | hpux11*)
    shlibext=sl
    ;;
  irix5* | irix6*)
    shlibext=so
    case "$host_os" in
      irix5*)
        libsuff= shlibsuff=
        ;;
      *)
        case $LD in
          *-32|*"-32 ") libsuff= shlibsuff= ;;
          *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 ;;
          *-64|*"-64 ") libsuff=64 shlibsuff=64 ;;
          *) libsuff= shlibsuff= ;;
        esac
        ;;
    esac
    sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    ;;
  linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
    ;;
  linux-gnu*)
    shlibext=so
    ;;
  netbsd*)
    shlibext=so
    ;;
  newsos6)
    shlibext=so
    ;;
  openbsd*)
    shlibext=so
    ;;
  os2*)
    libname_spec='$name'
    shlibext=dll
    ;;
  osf3* | osf4* | osf5*)
    shlibext=so
    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
    ;;
  sco3.2v5*)
    shlibext=so
    ;;
  solaris*)
    shlibext=so
    ;;
  sunos4*)
    shlibext=so
    ;;
  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    shlibext=so
    case "$host_vendor" in
      motorola)
        sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
        ;;
    esac
    ;;
  uts4*)
    shlibext=so
    ;;
  dgux*)
    shlibext=so
    ;;
  sysv4*MP*)
    if test -d /usr/nec; then
      shlibext=so
    fi
    ;;
esac

sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_sys_lib_search_path_spec=`echo "X$sys_lib_search_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_sys_lib_dlsearch_path_spec=`echo "X$sys_lib_dlsearch_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`

sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF

# How to pass a linker flag through the compiler.
wl="$escaped_wl"

# Static library suffix (normally "a").
libext="$libext"

# Shared library suffix (normally "so").
shlibext="$shlibext"

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator="$hardcode_libdir_separator"

# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct="$hardcode_direct"

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L="$hardcode_minus_L"

# Compile-time system search path for libraries
sys_lib_search_path_spec="$escaped_sys_lib_search_path_spec"

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec="$escaped_sys_lib_dlsearch_path_spec"

EOF
@


1.1.1.1
log
@Import gettext-0.11
@
text
@@


1.1.1.2
log
@Import gettext-0.11.1
@
text
@d53 3
a55 1
      wl='-Wl,'
d98 1
a98 1
  cygwin* | mingw* | pw32*)
a105 3
  openbsd*)
    with_gnu_ld=no
    ;;
d174 18
d197 2
d200 4
a203 28
        # Test if we are trying to use run time linking or normal
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
        # need to do runtime linking.
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
          for ld_flag in $LDFLAGS; do
            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
              aix_use_runtimelinking=yes
              break
            fi
          done
        esac
      fi
      hardcode_direct=yes
      hardcode_libdir_separator=':'
      if test "$GCC" = yes; then
        case $host_os in aix4.[012]|aix4.[012].*)
          collect2name=`${CC} -print-prog-name=collect2`
          if test -f "$collect2name" && \
            strings "$collect2name" | grep resolve_lib_name >/dev/null
          then
            # We have reworked collect2
            hardcode_direct=yes
          else
            # We have old collect2
            hardcode_direct=unsupported
            hardcode_minus_L=yes
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_libdir_separator=
d205 1
a205 1
        esac
d270 1
a271 12
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      else
        case "$host_os" in
          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
            hardcode_libdir_flag_spec='-R$libdir'
            ;;
          *)
            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
            ;;
        esac
      fi
@


1.1.1.3
log
@Import gettext-0.12
@
text
@d5 1
a5 1
#   Copyright 1996-2003 Free Software Foundation, Inc.
a36 6
# Known limitations:
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
#   than 256 bytes, otherwise the compiler driver will dump core. The only
#   known workaround is to choose shorter directory names for the build
#   directory and/or the installation directory.

d40 1
a40 1
shrext=.so
a46 2
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.

d52 1
a52 1
    aix*)
a54 2
    mingw* | pw32* | os2*)
      ;;
d58 1
a58 1
    irix5* | irix6* | nonstopux*)
a60 2
    newsos6)
      ;;
d62 8
a69 8
      case $CC in
        icc|ecc)
          wl='-Wl,'
          ;;
        ccc)
          wl='-Wl,'
          ;;
      esac
a73 2
    sco3.2v5*)
      ;;
d81 5
a85 5
      wl='-Wl,'
      ;;
    sysv4*MP*)
      ;;
    uts4*)
a89 2
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.

d113 2
a114 4
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
        ld_shlibs=no
      fi
a137 7
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        :
      else
        ld_shlibs=no
      fi
      ;;
    netbsd*)
a159 2
    # Unlike libtool, we use -rpath here, not --rpath, since the documented
    # option of GNU ld is called -rpath, not --rpath.
a211 14
      # Begin _LT_AC_SYS_LIBPATH_AIX.
      echo 'int main () { return 0; }' > conftest.c
      ${CC} ${LDFLAGS} conftest.c -o conftest
      aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
      if test -z "$aix_libpath"; then
        aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
      fi
      if test -z "$aix_libpath"; then
        aix_libpath="/usr/lib:/lib"
      fi
      rm -f conftest.c conftest
      # End _LT_AC_SYS_LIBPATH_AIX.
d213 1
a213 1
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
d218 1
a218 1
          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
a227 2
    bsdi4*)
      ;;
d237 1
a237 6
      if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
        hardcode_direct=no
      fi
      ;;
    dgux*)
      hardcode_libdir_flag_spec='-L$libdir'
d254 1
a254 1
    hpux9*)
d258 2
a259 3
      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
d261 1
a261 27
    hpux10* | hpux11*)
      if test "$with_gnu_ld" = no; then
        case "$host_cpu" in
          hppa*64*)
            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
            hardcode_libdir_separator=:
            hardcode_direct=no
            ;;
          ia64*)
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_direct=no
            # hardcode_minus_L: Not really in the search PATH,
            # but as the default location of the library.
            hardcode_minus_L=yes
            ;;
          *)
            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
            hardcode_libdir_separator=:
            hardcode_direct=yes
            # hardcode_minus_L: Not really in the search PATH,
            # but as the default location of the library.
            hardcode_minus_L=yes
            ;;
        esac
      fi
      ;;
    irix5* | irix6* | nonstopux*)
d317 5
a321 11
      case $host_vendor in
        sni)
          hardcode_direct=yes # is this really true???
          ;;
        siemens)
          hardcode_direct=no
          ;;
        motorola)
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
          ;;
      esac
d325 9
d343 1
a343 7
    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      ;;
    sysv5*)
      hardcode_libdir_flag_spec=
      ;;
    uts4*)
      hardcode_libdir_flag_spec='-L$libdir'
a351 1
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
d353 2
d357 1
d360 1
d363 1
d366 1
d369 3
d374 15
a388 1
    shrext=.dll
d391 1
a391 3
    shrext=.dylib
    ;;
  dgux*)
d396 1
d399 1
d402 1
a402 11
    case "$host_cpu" in
      ia64*)
        shrext=.so
        ;;
      hppa*64*)
        shrext=.sl
        ;;
      *)
        shrext=.sl
        ;;
    esac
d404 2
a405 1
  irix5* | irix6* | nonstopux*)
d407 1
a407 1
      irix5* | nonstopux*)
d412 3
a414 3
          *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
          *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
          *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
d419 2
d422 1
a422 1
  linux*oldld* | linux*aout* | linux*coff*)
d424 2
a425 1
  linux*)
d428 1
d431 1
a431 2
    ;;
  nto-qnx)
d434 1
d438 1
a438 1
    shrext=.dll
d441 3
d446 1
d449 1
d452 1
d455 12
d469 3
a471 2
    ;;
  uts4*)
a476 1
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
d478 2
d506 6
@


1.1.1.4
log
@Import gettext-0.13
@
text
@d146 1
a146 1
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
d165 1
a165 1
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
d167 1
a167 1
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
d177 1
a177 1
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
@


1.1.1.5
log
@Import gettext-0.14.2
@
text
@d5 1
a5 1
#   Copyright 1996-2005 Free Software Foundation, Inc.
d9 18
a26 3
#   This file is free software; the Free Software Foundation gives
#   unlimited permission to copy and/or distribute it, with or without
#   modifications, as long as this notice is preserved.
a52 2
cc_basename=`echo "$CC" | sed -e 's%^.*/%%'`

a62 7
    darwin*)
      case "$cc_basename" in
        xlc*)
          wl='-Wl,'
          ;;
      esac
      ;;
d74 2
a75 5
      case $cc_basename in
        icc* | ecc*)
          wl='-Wl,'
          ;;
        pgcc | pgf77 | pgf90)
d78 1
a78 1
        ccc*)
a80 3
        como)
          wl='-lopt='
          ;;
a98 3
    unicos*)
      wl='-Wl,'
      ;;
d141 1
a141 1
      # behavior of shared libraries on other platforms, we cannot use
a175 7
    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
        :
      else
        ld_shlibs=no
      fi
      ;;
d269 1
a269 1
    bsdi[45]*)
d280 2
a281 11
      hardcode_direct=no
      if test "$GCC" = yes ; then
        :
      else
        case "$cc_basename" in
          xlc*)
            ;;
          *)
            ld_shlibs=no
            ;;
        esac
d298 1
a298 1
    freebsd* | kfreebsd*-gnu | dragonfly*)
d441 1
a441 1
  bsdi[45]*)
a452 2
  kfreebsd*-gnu)
    ;;
a488 2
  knetbsd*-gnu)
    ;;
d493 1
a493 1
  nto-qnx*)
d522 1
a522 1
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
@


1.1.1.6
log
@Import gettext-0.15
@
text
@d5 1
a5 1
#   Copyright 1996-2006 Free Software Foundation, Inc.
d28 1
a28 1
# All known linkers require a `.a' archive for static linking (except MSVC,
d38 1
a38 11
# Code taken from libtool.m4's _LT_CC_BASENAME.

for cc_temp in $CC""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
d51 1
a51 1
      case $cc_basename in
a80 7
        *)
          case `$CC -V 2>&1 | sed 5q` in
            *Sun\ C*)
              wl='-Wl,'
              ;;
          esac
          ;;
a122 4
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
a129 6
  # Set some defaults for GNU ld with shared library support. These
  # are reset later if shared libraries are not supported. Putting them
  # here allows them to be overridden if necessary.
  # Unlike libtool, we use -rpath here, not --rpath, since the documented
  # option of GNU ld is called -rpath, not --rpath.
  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
a164 11
    interix3*)
      hardcode_direct=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      ;;
    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
        :
      else
        ld_shlibs=no
      fi
      ;;
d167 1
a167 1
    solaris*)
a175 14
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
          ld_shlibs=no
          ;;
        *)
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
          else
            ld_shlibs=no
          fi
          ;;
      esac
      ;;
d179 7
d194 4
a197 2
  if test "$ld_shlibs" = no; then
    hardcode_libdir_flag_spec=
a227 1
          ;;
a246 1
          ;;
d294 1
a294 1
        case $cc_basename in
d329 1
a329 1
    hpux10*)
d331 8
a338 14
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator=:
        hardcode_direct=yes
        # hardcode_minus_L: Not really in the search PATH,
        # but as the default location of the library.
        hardcode_minus_L=yes
      fi
      ;;
    hpux11*)
      if test "$with_gnu_ld" = no; then
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator=:
        case $host_cpu in
          hppa*64*|ia64*)
d340 3
d345 2
d400 2
d430 5
a434 1
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
d436 2
a437 3
    sysv5* | sco3.2v5* | sco5v6*)
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator=':'
d474 1
a474 1
  freebsd* | dragonfly*)
d479 1
a479 1
    case $host_cpu in
a490 2
  interix3*)
    ;;
d526 2
d532 1
a532 1
  sysv4 | sysv4.3*)
a534 2
    ;;
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
@


1.1.1.7
log
@Import gettext-0.17
@
text
@d5 1
a5 1
#   Copyright 1996-2007 Free Software Foundation, Inc.
d67 1
a67 1
    mingw* | cygwin* | pw32* | os2*)
d77 1
a77 1
    linux* | k*bsd*-gnu)
d103 1
a103 1
    rdos*)
d111 1
a111 1
    sysv4 | sysv4.2uw2* | sysv4.3*)
a115 3
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      wl='-Wl,'
      ;;
d192 1
a192 1
    interix[3-9]*)
d196 1
a196 1
    gnu* | linux* | k*bsd*-gnu)
d283 1
a283 1
            :
d362 1
a362 1
    freebsd* | dragonfly*)
d415 3
a417 14
      if test -f /usr/libexec/ld.so; then
        hardcode_direct=yes
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
        else
          case "$host_os" in
            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
              hardcode_libdir_flag_spec='-R$libdir'
              ;;
            *)
              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
              ;;
          esac
        fi
d419 8
a426 1
        ld_shlibs=no
d474 1
a474 1
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
a490 5
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
# linker has special search rules.
library_names_spec=      # the last element of library_names_spec in libtool.m4
a493 1
    library_names_spec='$libname.a'
a495 1
    library_names_spec='$libname$shrext'
a497 1
    library_names_spec='$libname.a'
a499 1
    library_names_spec='$libname$shrext'
a501 1
    library_names_spec='$libname$shrext'
a504 1
    library_names_spec='$libname.dll.a $libname.lib'
a507 1
    library_names_spec='$libname$shrext'
a509 1
    library_names_spec='$libname$shrext'
d513 2
a515 6
    case "$host_os" in
      freebsd[123]*)
        library_names_spec='$libname$shrext$versuffix' ;;
      *)
        library_names_spec='$libname$shrext' ;;
    esac
a517 1
    library_names_spec='$libname$shrext'
a530 1
    library_names_spec='$libname$shrext'
d532 1
a532 2
  interix[3-9]*)
    library_names_spec='$libname$shrext'
a534 1
    library_names_spec='$libname$shrext'
d551 1
a551 2
  linux* | k*bsd*-gnu)
    library_names_spec='$libname$shrext'
a553 1
    library_names_spec='$libname$shrext'
a555 1
    library_names_spec='$libname$shrext'
a557 1
    library_names_spec='$libname$shrext'
a559 1
    library_names_spec='$libname$shrext'
a561 1
    library_names_spec='$libname$shrext$versuffix'
a565 1
    library_names_spec='$libname.a'
a567 3
    library_names_spec='$libname$shrext'
    ;;
  rdos*)
a569 1
    library_names_spec='$libname$shrext'
a571 1
    library_names_spec='$libname$shrext$versuffix'
a573 1
    library_names_spec='$libname$shrext'
a575 1
    library_names_spec='$libname$shrext'
a577 1
    library_names_spec='$libname$shrext'
a579 1
    library_names_spec='$libname$shrext'
a585 2
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
a597 6

# Format of library name prefix.
libname_spec="$escaped_libname_spec"

# Library names that the linker finds when passed -lNAME.
library_names_spec="$escaped_library_names_spec"
@


1.1.1.8
log
@Import gettext-0.18
@
text
@d5 1
a5 1
#   Copyright 1996-2010 Free Software Foundation, Inc.
d50 1
a50 1
# Code taken from libtool.m4's _LT_COMPILER_PIC.
d67 1
a67 1
    mingw* | cygwin* | pw32* | os2* | cegcc*)
d79 1
a79 7
        ecc*)
          wl='-Wl,'
          ;;
        icc* | ifort*)
          wl='-Wl,'
          ;;
        lf95*)
d127 1
a127 1
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
d135 1
a135 1
  cygwin* | mingw* | pw32* | cegcc*)
d161 1
a161 1
    aix[3-9]*)
d185 1
a185 1
    cygwin* | mingw* | pw32* | cegcc*)
d257 1
a257 1
    aix[4-9]*)
d267 1
a267 1
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d329 1
a329 1
    cygwin* | mingw* | pw32* | cegcc*)
d497 1
a497 1
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
d508 1
a508 1
  aix[4-9]*)
d520 1
a520 1
  cygwin* | mingw* | pw32* | cegcc*)
@
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.