summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1997-04-18 06:44:01 +0000
committerGreg McGary <greg@mcgary.org>1997-04-18 06:44:01 +0000
commited0761dee1f49bb70c11891835894124c314c613 (patch)
tree3d59ac24792a9a6f5de210dd165d41fa95b60d01
parent61d08d77fcfeeab86a466ba01657f855dc46a990 (diff)
downloadidutils-ed0761dee1f49bb70c11891835894124c314c613.tar.gz
idutils-ed0761dee1f49bb70c11891835894124c314c613.tar.bz2
idutils-ed0761dee1f49bb70c11891835894124c314c613.zip
imported from id-utils-3.2r3_2
-rw-r--r--ChangeLog17
-rw-r--r--Makefile.in18
-rw-r--r--NEWS4
-rw-r--r--aclocal.m438
-rwxr-xr-xconfigure346
-rw-r--r--configure.in10
-rw-r--r--doc/Makefile.in20
-rw-r--r--doc/id-utils.info56
-rw-r--r--doc/version.texi4
-rw-r--r--lib/Makefile.in13
-rw-r--r--libidu/Makefile.in23
-rw-r--r--libidu/idfile.h1
-rw-r--r--lisp/Makefile.in9
-rw-r--r--po/de.po10
-rw-r--r--src/Makefile.in32
-rw-r--r--src/fid.c8
-rw-r--r--src/lid.c2
-rw-r--r--src/xtokid.c1
-rw-r--r--testsuite/Makefile.in7
19 files changed, 400 insertions, 219 deletions
diff --git a/ChangeLog b/ChangeLog
index b0469b9..f0ad7e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+Tue Aug 6 22:46:16 1996 Greg McGary <gkm@g2>
+
+ * Version 3.2 released
+
+ * src/fid.c (get_file_index): rename shadowing local decl of
+ file_name.
+
+ * src/lid.c (report_edit): post decrement argv when splicing in
+ ed_arg_buffer.
+
+ * src/xtokid.c, libidu/idfile.h: #include "xstring.h" to avoid
+ redeclaration of basename/dirname error.
+
+Wed Jul 17 18:06:18 1996 Greg McGary <gkm@g2>
+
+ * Version 3.1 released
+
Sun Jun 30 13:06:18 1996 Greg McGary <gkm@g2>
* src/lid.c (get_query_func): remove unreachable return stmt.
diff --git a/Makefile.in b/Makefile.in
index df4b41a..9795eff 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.0 from Makefile.am
+# Makefile.in generated automatically by automake 1.1b from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -64,7 +64,7 @@ default: all
$(srcdir)/Makefile.in: @MAINT@Makefile.am configure.in
- cd $(srcdir) && automake Makefile
+ cd $(srcdir) && automake --strictness=gnits Makefile
# For an explanation of the following Makefile rules, see node
# `Automatic Remaking' in GNU Autoconf documentation.
@@ -100,7 +100,6 @@ mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
for subdir in $(SUBDIRS); do \
target=`echo $@ | sed s/-recursive//`; \
- echo making $$target in $$subdir; \
(cd $$subdir && $(MAKE) $$target) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
@@ -129,9 +128,9 @@ mostlyclean-tags:
clean-tags:
distclean-tags:
- rm -f TAGS ID
maintainer-clean-tags:
+ rm -f TAGS ID
distdir = $(PACKAGE)-$(VERSION)
# This target untars the dist file and tries a VPATH configuration. Then
@@ -144,8 +143,9 @@ distcheck: dist
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
- && ../configure --srcdir=.. --prefix=$$dc_install_base \
+ && ../configure --with-included-gettext --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) \
+ && $(MAKE) dvi \
&& $(MAKE) check \
&& $(MAKE) install \
&& $(MAKE) installcheck \
@@ -155,17 +155,17 @@ distcheck: dist
echo "$(distdir).tar.gz is ready for distribution"; \
echo "========================"
dist: distdir
- chmod -R a+r $(distdir)
+ -chmod -R a+r $(distdir)
$(TAR) chozf $(distdir).tar.gz $(distdir)
rm -rf $(distdir)
distdir: $(DEP_DISTFILES)
- @if sed 15q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
+ @if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" > /dev/null; then :; else \
echo "NEWS not updated; not releasing" 1>&2; \
exit 1; \
fi
rm -rf $(distdir)
mkdir $(distdir)
- chmod 777 $(distdir)
+ -chmod 755 $(distdir)
@for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
test -f $(distdir)/$$file \
|| ln $(srcdir)/$$file $(distdir)/$$file 2> /dev/null \
@@ -175,7 +175,7 @@ distdir: $(DEP_DISTFILES)
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
- chmod 777 $(distdir)/$$subdir; \
+ chmod 755 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
done
diff --git a/NEWS b/NEWS
index f9738ea..7d20e31 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
id-utils NEWS - User visible changes.
+Version 3.2 - August 6, 1996, by Greg McGary
+
+* Major bug in eid fixed
+
Version 3.1 - July 17, 1996, by Greg McGary
* A few more portability bugs are fixed
diff --git a/aclocal.m4 b/aclocal.m4
index 41e91fc..6993c86 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2,7 +2,9 @@
# Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc.
# François Pinard <pinard@iro.umontreal.ca>, 1992.
-AC_DEFUN(jm_MAINTAINER_MODE,
+# Add --enable-maintainer-mode option to configure.
+# From Jim Meyering
+AC_DEFUN(AM_MAINTAINER_MODE,
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
dnl maintainer-mode is disabled by default
AC_ARG_ENABLE(maintainer-mode,
@@ -31,22 +33,25 @@ AC_DEFUN(md_TYPE_PTRDIFF_T,
])
## --------------------------------------------------------- ##
-## Use A*_PROG_INSTALL, supplementing it with INSTALL_SCRIPT ##
-## substitution. ##
+## Use AC_PROG_INSTALL, supplementing it with INSTALL_SCRIPT ##
+## substitution. ##
+## From Franc,ois Pinard ##
## --------------------------------------------------------- ##
-AC_DEFUN(fp_PROG_INSTALL,
-[AC_PROG_INSTALL
+AC_DEFUN(AM_PROG_INSTALL,
+[AC_REQUIRE([AC_PROG_INSTALL])
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL} -m 755'
AC_SUBST(INSTALL_SCRIPT)dnl
])
## ------------------------------- ##
## Check for function prototypes. ##
+## From Franc,ois Pinard ##
## ------------------------------- ##
-AC_DEFUN(fp_C_PROTOTYPES,
-[AC_REQUIRE([fp_PROG_CC_STDC])
+AC_DEFUN(AM_C_PROTOTYPES,
+[AC_REQUIRE([AM_PROG_CC_STDC])
+AC_BEFORE([$0], [AC_C_INLINE])
AC_MSG_CHECKING([for function prototypes])
if test "$ac_cv_prog_cc_stdc" != no; then
AC_MSG_RESULT(yes)
@@ -55,6 +60,9 @@ if test "$ac_cv_prog_cc_stdc" != no; then
else
AC_MSG_RESULT(no)
U=_ ANSI2KNR=./ansi2knr
+ # Ensure some checks needed by ansi2knr itself.
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(string.h)
fi
AC_SUBST(U)dnl
AC_SUBST(ANSI2KNR)dnl
@@ -62,6 +70,7 @@ AC_SUBST(ANSI2KNR)dnl
## ----------------------------------------- ##
## ANSIfy the C compiler whenever possible. ##
+## From Franc,ois Pinard ##
## ----------------------------------------- ##
# @defmac AC_PROG_CC_STDC
@@ -80,20 +89,21 @@ AC_SUBST(ANSI2KNR)dnl
# program @code{ansi2knr}, which comes with Ghostscript.
# @end defmac
-AC_DEFUN(fp_PROG_CC_STDC,
-[AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
+AC_DEFUN(AM_PROG_CC_STDC,
+[AC_REQUIRE([AC_PROG_CC])
+AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
AC_CACHE_VAL(ac_cv_prog_cc_stdc,
[ac_cv_prog_cc_stdc=no
-ac_save_CFLAGS="$CFLAGS"
+ac_save_CC="$CC"
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+# SVR4 -Xc
+for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
do
- CFLAGS="$ac_save_CFLAGS $ac_arg"
+ CC="$ac_save_CC $ac_arg"
AC_TRY_COMPILE(
[#if !defined(__STDC__) || __STDC__ != 1
choke me
@@ -106,7 +116,7 @@ struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};],
[ac_cv_prog_cc_stdc="$ac_arg"; break])
done
-CFLAGS="$ac_save_CFLAGS"
+CC="$ac_save_CC"
])
AC_MSG_RESULT($ac_cv_prog_cc_stdc)
case "x$ac_cv_prog_cc_stdc" in
diff --git a/configure b/configure
index 88defeb..a8112cf 100755
--- a/configure
+++ b/configure
@@ -550,8 +550,8 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x,"
##############################################################################
PACKAGE=id-utils
-VERSION=3.1
-PACKAGE_VERSION="$PACKAGE-$VERSION"
+VERSION=3.2
+PACKAGE_VERSION="GNU $PACKAGE $VERSION"
cat >> confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
@@ -823,6 +823,7 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL} -m 755'
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
@@ -866,13 +867,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 870 "configure"
+#line 871 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -881,13 +882,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 885 "configure"
+#line 886 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -914,7 +915,7 @@ if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
-#line 918 "configure"
+#line 919 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
@@ -932,7 +933,7 @@ rm -f conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
-#line 936 "configure"
+#line 937 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
@@ -983,7 +984,7 @@ fi
echo $ac_n "checking for AIX""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
-#line 987 "configure"
+#line 988 "configure"
#include "confdefs.h"
#ifdef _AIX
yes
@@ -1010,12 +1011,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1014 "configure"
+#line 1015 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1089,7 +1090,7 @@ if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1093 "configure"
+#line 1094 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
@@ -1098,7 +1099,7 @@ int t() {
DIR *dirp = 0;
; return 0; }
EOF
-if { (eval echo configure:1102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
@@ -1129,7 +1130,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 1133 "configure"
+#line 1134 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -1141,7 +1142,7 @@ int t() {
opendir()
; return 0; }
EOF
-if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -1168,7 +1169,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 1172 "configure"
+#line 1173 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -1180,7 +1181,7 @@ int t() {
opendir()
; return 0; }
EOF
-if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -1209,11 +1210,11 @@ else
ac_cv_c_cross=yes
else
cat > conftest.$ac_ext <<EOF
-#line 1213 "configure"
+#line 1214 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-{ (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_cross=no
else
@@ -1231,7 +1232,7 @@ if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1235 "configure"
+#line 1236 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
@@ -1239,7 +1240,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1254,7 +1255,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 1258 "configure"
+#line 1259 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@@ -1272,7 +1273,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 1276 "configure"
+#line 1277 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@@ -1293,7 +1294,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
-#line 1297 "configure"
+#line 1298 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -1304,7 +1305,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
-{ (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
:
else
@@ -1328,7 +1329,7 @@ if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1332 "configure"
+#line 1333 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -1383,7 +1384,7 @@ if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1387 "configure"
+#line 1388 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
@@ -1400,7 +1401,7 @@ wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
-if { (eval echo configure:1404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_sys_wait_h=yes
else
@@ -1427,12 +1428,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1431 "configure"
+#line 1432 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1464,12 +1465,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1468 "configure"
+#line 1469 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1501,12 +1502,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1505 "configure"
+#line 1506 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1540,7 +1541,7 @@ if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1544 "configure"
+#line 1545 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -1590,7 +1591,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
-if { (eval echo configure:1594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@@ -1609,23 +1610,24 @@ EOF
fi
+
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_prog_cc_stdc=no
-ac_save_CFLAGS="$CFLAGS"
+ac_save_CC="$CC"
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+# SVR4 -Xc
+for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
do
- CFLAGS="$ac_save_CFLAGS $ac_arg"
+ CC="$ac_save_CC $ac_arg"
cat > conftest.$ac_ext <<EOF
-#line 1629 "configure"
+#line 1631 "configure"
#include "confdefs.h"
#if !defined(__STDC__) || __STDC__ != 1
choke me
@@ -1641,14 +1643,14 @@ struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
; return 0; }
EOF
-if { (eval echo configure:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_prog_cc_stdc="$ac_arg"; break
fi
rm -f conftest*
done
-CFLAGS="$ac_save_CFLAGS"
+CC="$ac_save_CC"
fi
@@ -1659,6 +1661,7 @@ case "x$ac_cv_prog_cc_stdc" in
esac
+
echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
if test "$ac_cv_prog_cc_stdc" != no; then
echo "$ac_t""yes" 1>&6
@@ -1670,6 +1673,141 @@ EOF
else
echo "$ac_t""no" 1>&6
U=_ ANSI2KNR=./ansi2knr
+ # Ensure some checks needed by ansi2knr itself.
+ echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1683 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ ac_cv_header_stdc=yes
+else
+ echo "$ac_err" >&5
+ rm -rf conftest*
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+cat > conftest.$ac_ext <<EOF
+#line 1706 "configure"
+#include "confdefs.h"
+#include <string.h>
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "memchr" >/dev/null 2>&1; then
+ :
+else
+ rm -rf conftest*
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+cat > conftest.$ac_ext <<EOF
+#line 1724 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "free" >/dev/null 2>&1; then
+ :
+else
+ rm -rf conftest*
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+if test "$cross_compiling" = yes; then
+ :
+else
+cat > conftest.$ac_ext <<EOF
+#line 1745 "configure"
+#include "confdefs.h"
+#include <ctype.h>
+#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int main () { int i; for (i = 0; i < 256; i++)
+if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+exit (0); }
+
+EOF
+{ (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+if test -s conftest && (./conftest; exit) 2>/dev/null; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+fi
+rm -fr conftest*
+fi
+fi
+
+echo "$ac_t""$ac_cv_header_stdc" 1>&6
+if test $ac_cv_header_stdc = yes; then
+ cat >> confdefs.h <<\EOF
+#define STDC_HEADERS 1
+EOF
+
+fi
+
+ for ac_hdr in string.h
+do
+ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1783 "configure"
+#include "confdefs.h"
+#include <$ac_hdr>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
fi
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
@@ -1677,7 +1815,7 @@ if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1681 "configure"
+#line 1819 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
@@ -1695,7 +1833,7 @@ int t() {
int i;
; return 0; }
EOF
-if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
@@ -1717,7 +1855,7 @@ if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1721 "configure"
+#line 1859 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -1748,7 +1886,7 @@ if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1752 "configure"
+#line 1890 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -1779,7 +1917,7 @@ if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1783 "configure"
+#line 1921 "configure"
#include "confdefs.h"
#include <stddef.h>
#include <sys/types.h>
@@ -1788,7 +1926,7 @@ int t() {
ptrdiff_t p
; return 0; }
EOF
-if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_ptrdiff_t=yes
else
@@ -1828,7 +1966,7 @@ if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1832 "configure"
+#line 1970 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() { return 0; }
@@ -1836,7 +1974,7 @@ int t() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
-if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
ac_cv_header_alloca_h=yes
else
@@ -1860,7 +1998,7 @@ if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1864 "configure"
+#line 2002 "configure"
#include "confdefs.h"
#ifdef __GNUC__
@@ -1884,7 +2022,7 @@ int t() {
char *p = (char *) alloca(1);
; return 0; }
EOF
-if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
ac_cv_func_alloca=yes
else
@@ -1919,7 +2057,7 @@ if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1923 "configure"
+#line 2061 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
@@ -1948,7 +2086,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1952 "configure"
+#line 2090 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -1972,7 +2110,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2004,7 +2142,7 @@ else
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
-#line 2008 "configure"
+#line 2146 "configure"
#include "confdefs.h"
find_stack_direction ()
{
@@ -2023,7 +2161,7 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
-{ (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_stack_direction=1
else
@@ -2062,7 +2200,7 @@ if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2066 "configure"
+#line 2204 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char re_rx_search(); below. */
@@ -2086,7 +2224,7 @@ re_rx_search();
; return 0; }
EOF
-if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_re_rx_search=yes"
else
@@ -2111,7 +2249,7 @@ if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2115 "configure"
+#line 2253 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vprintf(); below. */
@@ -2135,7 +2273,7 @@ vprintf();
; return 0; }
EOF
-if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_vprintf=yes"
else
@@ -2161,7 +2299,7 @@ if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2165 "configure"
+#line 2303 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _doprnt(); below. */
@@ -2185,7 +2323,7 @@ _doprnt();
; return 0; }
EOF
-if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func__doprnt=yes"
else
@@ -2214,7 +2352,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2218 "configure"
+#line 2356 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2238,7 +2376,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2267,7 +2405,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2271 "configure"
+#line 2409 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2291,7 +2429,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2318,7 +2456,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2322 "configure"
+#line 2460 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2342,7 +2480,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2367,7 +2505,7 @@ if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2371 "configure"
+#line 2509 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getopt_long(); below. */
@@ -2391,7 +2529,7 @@ getopt_long();
; return 0; }
EOF
-if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_getopt_long=yes"
else
@@ -2415,7 +2553,7 @@ if eval "test \"`echo '$''{'gt_cv_func_obstack'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2419 "configure"
+#line 2557 "configure"
#include "confdefs.h"
#include "obstack.h"
int main() { return 0; }
@@ -2423,7 +2561,7 @@ int t() {
struct obstack *mem;obstack_free(mem,NULL)
; return 0; }
EOF
-if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
gt_cv_func_obstack=yes
else
@@ -2451,7 +2589,7 @@ else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
-#line 2455 "configure"
+#line 2593 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -2459,7 +2597,7 @@ int t() {
} $ac_kw foo() {
; return 0; }
EOF
-if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
fi
@@ -2489,7 +2627,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2493 "configure"
+#line 2631 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2513,7 +2651,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2543,7 +2681,7 @@ else
ac_cv_func_mmap=no
else
cat > conftest.$ac_ext <<EOF
-#line 2547 "configure"
+#line 2685 "configure"
#include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test. */
@@ -2612,7 +2750,7 @@ main()
}
EOF
-{ (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_func_mmap=yes
else
@@ -2640,12 +2778,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2644 "configure"
+#line 2782 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -2677,7 +2815,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2681 "configure"
+#line 2819 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2701,7 +2839,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2732,7 +2870,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2736 "configure"
+#line 2874 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2756,7 +2894,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2792,7 +2930,7 @@ if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2796 "configure"
+#line 2934 "configure"
#include "confdefs.h"
#include <locale.h>
int main() { return 0; }
@@ -2800,7 +2938,7 @@ int t() {
return LC_MESSAGES
; return 0; }
EOF
-if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
ud_cv_val_LC_MESSAGES=yes
else
@@ -2861,12 +2999,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2865 "configure"
+#line 3003 "configure"
#include "confdefs.h"
#include <libintl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -2888,7 +3026,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lintl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2892 "configure"
+#line 3030 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -2900,7 +3038,7 @@ int t() {
bindtextdomain()
; return 0; }
EOF
-if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2929,7 +3067,7 @@ if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2933 "configure"
+#line 3071 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gettext(); below. */
@@ -2953,7 +3091,7 @@ gettext();
; return 0; }
EOF
-if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_gettext=yes"
else
@@ -3009,7 +3147,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3013 "configure"
+#line 3151 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -3033,7 +3171,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -3120,7 +3258,7 @@ else
fi
cat > conftest.$ac_ext <<EOF
-#line 3124 "configure"
+#line 3262 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -3129,7 +3267,7 @@ extern int _nl_msg_cat_cntr;
return _nl_msg_cat_cntr
; return 0; }
EOF
-if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
CATOBJEXT=.gmo
DATADIRNAME=share
@@ -3172,7 +3310,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-li $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3176 "configure"
+#line 3314 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -3180,7 +3318,7 @@ int t() {
main()
; return 0; }
EOF
-if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -3209,7 +3347,7 @@ if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3213 "configure"
+#line 3351 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char catgets(); below. */
@@ -3233,7 +3371,7 @@ catgets();
; return 0; }
EOF
-if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_catgets=yes"
else
@@ -3583,12 +3721,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3587 "configure"
+#line 3725 "configure"
#include "confdefs.h"
#include <linux/version.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
diff --git a/configure.in b/configure.in
index 8b48065..5120e15 100644
--- a/configure.in
+++ b/configure.in
@@ -19,8 +19,8 @@ AC_ARG_PROGRAM
##############################################################################
PACKAGE=id-utils
-VERSION=3.1
-PACKAGE_VERSION="$PACKAGE-$VERSION"
+VERSION=3.2
+PACKAGE_VERSION="GNU $PACKAGE $VERSION"
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
AC_DEFINE_UNQUOTED(PACKAGE_VERSION, "$PACKAGE_VERSION")
@@ -32,7 +32,7 @@ AC_SUBST(PACKAGE_VERSION)
################ Maintainer Stuff ############################################
##############################################################################
-jm_MAINTAINER_MODE
+AM_MAINTAINER_MODE
ALL_LINGUAS="de fr"
@@ -50,7 +50,7 @@ AC_SUBST(README_ALPHA)
AC_PROG_CC
AC_PROG_LN_S
-fp_PROG_INSTALL
+AM_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
@@ -82,7 +82,7 @@ AC_CHECK_HEADERS(malloc.h termios.h termio.h sgtty.h regex.h memory.h)
##############################################################################
AC_C_CONST
-fp_C_PROTOTYPES
+AM_C_PROTOTYPES
AC_TYPE_SIGNAL
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 5877513..cf204ea 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.0 from Makefile.am
+# Makefile.in generated automatically by automake 1.1b from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -51,7 +51,8 @@ INFO_DEPS = id-utils.info
DVIS = id-utils.dvi
TEXINFOS = id-utils.texi
-DIST_COMMON = Makefile.am Makefile.in mdate-sh stamp-vti version.texi
+DIST_COMMON = Makefile.am Makefile.in mdate-sh stamp-vti texinfo.tex \
+version.texi
PACKAGE = @PACKAGE@
@@ -97,20 +98,24 @@ maintainer-clean-vti:
@MAINT@rm -f stamp-vti version.texi
id-utils.info: id-utils.texi version.texi
+id-utils.dvi: id-utils.texi version.texi
.texi.info:
- $(MAKEINFO) -I$(srcdir) $< -o $@
+ cd $(srcdir) \
+ && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
.texi.dvi:
TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
install-info: $(INFO_DEPS)
$(mkinstalldirs) $(infodir)
- for file in $(INFO_DEPS); do \
+ for file in $(INFO_DEPS); do \
for ifile in `cd $(srcdir) && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
- test -f $$ifile && $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile || true; \
- done; \
+ if test -f $(srcdir)/$$ifile; then \
+ $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \
+ else : ; fi; \
+ done; \
done
uninstall-info:
@@ -133,8 +138,9 @@ tags: TAGS
TAGS:
-subdir = doc
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = doc
distdir: $(DEP_DISTFILES)
@for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
test -f $(distdir)/$$file \
diff --git a/doc/id-utils.info b/doc/id-utils.info
index abbc871..c4289df 100644
--- a/doc/id-utils.info
+++ b/doc/id-utils.info
@@ -1,5 +1,5 @@
-This is Info file ../../doc/id-utils.info, produced by Makeinfo-1.63
-from the input file ../../doc/id-utils.texi.
+This is Info file id-utils.info, produced by Makeinfo-1.63 from the
+input file id-utils.texi.
START-INFO-DIR-ENTRY
* ID database: (id-utils). Identifier database utilities.
@@ -34,7 +34,7 @@ File: id-utils.info, Node: Top, Next: Introduction, Up: (dir)
ID utilities
************
- This manual documents version 3.1 of the ID utilities.
+ This manual documents version 3.2 of the ID utilities.
* Menu:
@@ -1147,30 +1147,30 @@ Index

Tag Table:
-Node: Top1298
-Node: Introduction2051
-Node: Quick start4580
-Node: Common options5505
-Node: Universal options6303
-Node: Reading options6628
-Node: Writing options7745
-Node: Walker options8241
-Node: File listing options9080
-Node: Extraction options10171
-Node: Language map12721
-Node: C/C++ scanner14927
-Node: Assembler scanner16542
-Node: Text scanner18638
-Node: Defining scanners19446
-Node: mkid invocation20668
-Node: lid invocation22949
-Node: lid aliases28334
-Node: Emacs gid interface29012
-Node: eid invocation29929
-Node: fid invocation32513
-Node: fnid invocation33200
-Node: xtokid invocation33875
-Node: Past and Future34814
-Node: Index37506
+Node: Top1278
+Node: Introduction2031
+Node: Quick start4560
+Node: Common options5485
+Node: Universal options6283
+Node: Reading options6608
+Node: Writing options7725
+Node: Walker options8221
+Node: File listing options9060
+Node: Extraction options10151
+Node: Language map12701
+Node: C/C++ scanner14907
+Node: Assembler scanner16522
+Node: Text scanner18618
+Node: Defining scanners19426
+Node: mkid invocation20648
+Node: lid invocation22929
+Node: lid aliases28314
+Node: Emacs gid interface28992
+Node: eid invocation29909
+Node: fid invocation32493
+Node: fnid invocation33180
+Node: xtokid invocation33855
+Node: Past and Future34794
+Node: Index37486

End Tag Table
diff --git a/doc/version.texi b/doc/version.texi
index 2ec9dd9..f127f31 100644
--- a/doc/version.texi
+++ b/doc/version.texi
@@ -1,3 +1,3 @@
@set UPDATED 4 July 1996
-@set EDITION 3.1
-@set VERSION 3.1
+@set EDITION 3.2
+@set VERSION 3.2
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 2e51ac8..ecb7fdf 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.0 from Makefile.am
+# Makefile.in generated automatically by automake 1.1b from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -71,7 +71,7 @@ CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
sys_OBJECTS = xgetcwd.o xmalloc.o
EXTRA_sys_SOURCES =
@@ -107,14 +107,14 @@ Makefile: $(top_builddir)/config.status Makefile.in
mostlyclean-noinstLIBRARIES:
clean-noinstLIBRARIES:
- rm -f $(noinst_LIBFILES)
+ test -z "$(noinst_LIBFILES)" || rm -f $(noinst_LIBFILES)
distclean-noinstLIBRARIES:
maintainer-clean-noinstLIBRARIES:
.c.o:
- $(COMPILE) $<
+ $(COMPILE) -c $<
mostlyclean-compile:
rm -f *.o core
@@ -145,12 +145,13 @@ mostlyclean-tags:
clean-tags:
distclean-tags:
- rm -f TAGS ID
maintainer-clean-tags:
+ rm -f TAGS ID
-subdir = lib
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = lib
distdir: $(DEP_DISTFILES)
@for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
test -f $(distdir)/$$file \
diff --git a/libidu/Makefile.in b/libidu/Makefile.in
index 10c086f..7562edb 100644
--- a/libidu/Makefile.in
+++ b/libidu/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.0 from Makefile.am
+# Makefile.in generated automatically by automake 1.1b from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -69,7 +69,7 @@ CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
ANSI2KNR = @ANSI2KNR@
@@ -85,7 +85,7 @@ DATA = $(idu_DATA)
HEADERS = $(noinst_HEADERS)
-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON = Makefile.am Makefile.in ansi2knr.1 ansi2knr.c
PACKAGE = @PACKAGE@
@@ -112,14 +112,14 @@ Makefile: $(top_builddir)/config.status Makefile.in
mostlyclean-noinstLIBRARIES:
clean-noinstLIBRARIES:
- rm -f $(noinst_LIBFILES)
+ test -z "$(noinst_LIBFILES)" || rm -f $(noinst_LIBFILES)
distclean-noinstLIBRARIES:
maintainer-clean-noinstLIBRARIES:
.c.o:
- $(COMPILE) $<
+ $(COMPILE) -c $<
mostlyclean-compile:
rm -f *.o core
@@ -135,15 +135,15 @@ maintainer-clean-compile:
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
._c._o:
- @echo $(COMPILE) $<
+ @echo $(COMPILE) -c $<
@rm -f _$*.c
- @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
+ @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
.c._o:
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
- @echo $(COMPILE) $*._c
+ @echo $(COMPILE) -c $*._c
@rm -f _$*.c
- @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
+ @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
ansi2knr: ansi2knr.o
$(LINK) ansi2knr.o $(LIBS)
@@ -195,12 +195,13 @@ mostlyclean-tags:
clean-tags:
distclean-tags:
- rm -f TAGS ID
maintainer-clean-tags:
+ rm -f TAGS ID
-subdir = libidu
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = libidu
distdir: $(DEP_DISTFILES)
@for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
test -f $(distdir)/$$file \
diff --git a/libidu/idfile.h b/libidu/idfile.h
index fb108a8..19e265b 100644
--- a/libidu/idfile.h
+++ b/libidu/idfile.h
@@ -25,6 +25,7 @@
# include <sys/types.h>
#endif
#include <stdio.h>
+#include "xstring.h"
#include "xobstack.h"
#include "hash.h"
#include "dynvec.h"
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 48d5568..91cceb9 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.0 from Makefile.am
+# Makefile.in generated automatically by automake 1.1b from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -46,7 +46,7 @@ mkinstalldirs = $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
SCRIPTS = $(elc_SCRIPTS)
-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON = Makefile.am Makefile.in elisp-comp
PACKAGE = @PACKAGE@
@@ -86,8 +86,9 @@ tags: TAGS
TAGS:
-subdir = lisp
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = lisp
distdir: $(DEP_DISTFILES)
@for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
test -f $(distdir)/$$file \
@@ -153,7 +154,7 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean
@echo "WARNING: Warnings can be ignored. :-)"
$(SHELL) $(srcdir)/elisp-comp $<
.SUFFIXES:
-.SUFFIXES: $(SUFFIXES)
+.SUFFIXES: .el .elc
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/po/de.po b/po/de.po
index 8c1ec98..e47ece8 100644
--- a/po/de.po
+++ b/po/de.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: GNU mkid 3.0.8\n"
-"POT-Creation-Date: 1996-07-17 17:58-0400\n"
+"POT-Creation-Date: 1996-08-06 23:24-0400\n"
"PO-Revision-Date: 1996-03-23 22:34 MET\n"
"Last-Translator: Karl Eichwalder <ke@ke.Central.DE>\n"
"Language-Team: German <de@li.org>\n"
@@ -36,7 +36,7 @@ msgstr ""
msgid "can't determine the io_size of a string!"
msgstr ""
-#: libidu/idread.c:45 src/mkid.c:386 src/xtokid.c:213
+#: libidu/idread.c:45 src/mkid.c:386 src/xtokid.c:214
#, c-format
msgid "can't open `%s'"
msgstr ""
@@ -245,7 +245,7 @@ msgstr ""
msgid "%s: option requires an argument -- %c\n"
msgstr ""
-#: src/fid.c:70 src/fnid.c:49 src/lid.c:237 src/mkid.c:120 src/xtokid.c:42
+#: src/fid.c:70 src/fnid.c:49 src/lid.c:237 src/mkid.c:120 src/xtokid.c:43
#, c-format
msgid "Try `%s --help' for more information.\n"
msgstr ""
@@ -400,7 +400,7 @@ msgstr ""
msgid "can't match regular-expression: memory exhausted"
msgstr ""
-#: src/mkid.c:145 src/xtokid.c:63
+#: src/mkid.c:145 src/xtokid.c:64
#, c-format
msgid "Usage: %s [OPTION]... [FILE]...\n"
msgstr ""
@@ -527,7 +527,7 @@ msgstr ""
msgid "level %d: %ld/%ld = %.0f%%\n"
msgstr "level %d: %ld == %ld\n"
-#: src/xtokid.c:67
+#: src/xtokid.c:68
msgid ""
"Print all tokens found in a source file.\n"
" -i, --include=LANGS include languages in LANGS (default: \"C C++ "
diff --git a/src/Makefile.in b/src/Makefile.in
index cda6580..404e9e6 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.0 from Makefile.am
+# Makefile.in generated automatically by automake 1.1b from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -67,7 +67,7 @@ CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
ANSI2KNR = @ANSI2KNR@
@@ -94,7 +94,7 @@ EXTRA_xtokid_SOURCES =
xtokid_LDADD = $(LDADD)
SCRIPTS = $(bin_SCRIPTS)
-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON = Makefile.am Makefile.in ansi2knr.1 ansi2knr.c
PACKAGE = @PACKAGE@
@@ -121,7 +121,7 @@ Makefile: $(top_builddir)/config.status Makefile.in
mostlyclean-binPROGRAMS:
clean-binPROGRAMS:
- rm -f $(bin_PROGRAMS)
+ test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
distclean-binPROGRAMS:
@@ -141,7 +141,7 @@ uninstall-binPROGRAMS:
done
.c.o:
- $(COMPILE) $<
+ $(COMPILE) -c $<
mostlyclean-compile:
rm -f *.o core
@@ -157,15 +157,15 @@ maintainer-clean-compile:
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
._c._o:
- @echo $(COMPILE) $<
+ @echo $(COMPILE) -c $<
@rm -f _$*.c
- @ln $< _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
+ @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
.c._o:
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
- @echo $(COMPILE) $*._c
+ @echo $(COMPILE) -c $*._c
@rm -f _$*.c
- @ln $*._c _$*.c && $(COMPILE) _$*.c && mv _$*.o $@ && rm _$*.c
+ @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
ansi2knr: ansi2knr.o
$(LINK) ansi2knr.o $(LIBS)
@@ -232,19 +232,20 @@ mostlyclean-tags:
clean-tags:
distclean-tags:
- rm -f TAGS ID
maintainer-clean-tags:
+ rm -f TAGS ID
-subdir = src
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = src
distdir: $(DEP_DISTFILES)
@for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
test -f $(distdir)/$$file \
|| ln $(srcdir)/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $(srcdir)/$$file $(distdir)/$$file; \
done
-fid$o: ../src/fid.c ../lib/xstring.h ../lib/xunistd.h \
+fid$o: fid.c ../lib/xstring.h ../lib/xunistd.h \
../libidu/xnls.h ../libidu/idfile.h ../lib/xobstack.h \
../lib/xmalloc.h ../libidu/hash.h ../libidu/dynvec.h \
../libidu/tokflags.h ../lib/error.h ../lib/pathmax.h \
@@ -265,11 +266,10 @@ mkid$o: ../src/mkid.c ../lib/xstdlib.h ../lib/xsysstat.h \
../lib/xobstack.h ../lib/xmalloc.h ../libidu/hash.h \
../libidu/dynvec.h ../libidu/tokflags.h ../libidu/scanners.h \
../lib/error.h ../lib/xalloca.h
-xtokid$o: ../src/xtokid.c ../libidu/xnls.h \
+xtokid$o: xtokid.c ../lib/xstring.h ../libidu/xnls.h \
../libidu/scanners.h ../lib/xobstack.h ../lib/xmalloc.h \
- ../lib/xstring.h ../libidu/idfile.h ../libidu/hash.h \
- ../libidu/dynvec.h ../libidu/tokflags.h ../lib/pathmax.h \
- ../lib/error.h
+ ../libidu/idfile.h ../libidu/hash.h ../libidu/dynvec.h \
+ ../libidu/tokflags.h ../lib/pathmax.h ../lib/error.h
info:
diff --git a/src/fid.c b/src/fid.c
index 6126cb4..398c7c2 100644
--- a/src/fid.c
+++ b/src/fid.c
@@ -203,6 +203,7 @@ get_file_index (char *file_name)
struct file_link **members;
struct file_link **end = &members_0[idh.idh_files];
struct file_link *fn_flink = 0;
+ char *file_name_buf = ALLOCA (char, PATH_MAX);
int has_slash = (strchr (file_name, '/') != 0);
int file_name_length = strlen (file_name);
int idx = -1;
@@ -220,12 +221,11 @@ get_file_index (char *file_name)
}
else if (has_slash)
{
- char *file_name = ALLOCA (char, PATH_MAX);
int member_length;
- maybe_relative_file_name (file_name, flink, cw_dlink);
- member_length = strlen (file_name);
+ maybe_relative_file_name (file_name_buf, flink, cw_dlink);
+ member_length = strlen (file_name_buf);
if (file_name_length > member_length
- || !strequ (&file_name[member_length - file_name_length], file_name))
+ || !strequ (&file_name_buf[member_length - file_name_length], file_name))
continue;
}
else if (!strequ (flink->fl_name, file_name))
diff --git a/src/lid.c b/src/lid.c
index 8c351cd..48bf11a 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -714,7 +714,7 @@ editit:
if (eid_arg)
{
sprintf (ed_arg_buffer, eid_arg, pattern);
- *--argv = ed_arg_buffer;
+ *argv-- = ed_arg_buffer;
}
*(char const **) argv = editor;
execvp (editor, argv);
diff --git a/src/xtokid.c b/src/xtokid.c
index c48834c..9299c00 100644
--- a/src/xtokid.c
+++ b/src/xtokid.c
@@ -19,6 +19,7 @@
#include <config.h>
#include <stdio.h>
#include <getopt.h>
+#include "xstring.h"
#include "xnls.h"
#include "scanners.h"
#include "idfile.h"
diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in
index 3c763f6..678a6f2 100644
--- a/testsuite/Makefile.in
+++ b/testsuite/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.0 from Makefile.am
+# Makefile.in generated automatically by automake 1.1b from Makefile.am
# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -67,8 +67,9 @@ tags: TAGS
TAGS:
-subdir = testsuite
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = testsuite
distdir: $(DEP_DISTFILES)
@for file in `cd $(srcdir) && echo $(DISTFILES)`; do \
test -f $(distdir)/$$file \
@@ -82,7 +83,7 @@ check-TESTS: $(TESTS)
all=`expr $$all + 1`; \
if test -f $$tst; then dir=.; \
else dir="$(srcdir)"; fi; \
- if $$dir/$$tst; then \
+ if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
echo "PASS: $$tst"; \
else \
failed=`expr $$failed + 1`; \