--- /dev/null
+--- autoconf-2.13.orig/autoconf.1
++++ autoconf-2.13/autoconf.1
+@@ -0,0 +1,126 @@
++.\" Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
++.\" Copyright (C) 1998 Ben Pfaff.
++.\"
++.\" Permission is granted to make and distribute verbatim copies of
++.\" this manual provided the copyright notice and this permission notice
++.\" are preserved on all copies.
++.\"
++.\" Permission is granted to copy and distribute modified versions of this
++.\" manual under the conditions for verbatim copying, provided that the entire
++.\" resulting derived work is distributed under the terms of a permission
++.\" notice identical to this one.
++.\"
++.\" Permission is granted to copy and distribute translations of this manual
++.\" into another language, under the above conditions for modified versions,
++.\" except that this permission notice may be stated in a translation approved
++.\" by the Foundation.
++.\"
++.TH AUTOCONF 1 "Autoconf"
++.SH NAME
++autoconf - creates scripts to configure source code packages using templates
++.SH SYNOPSIS
++.B autoconf
++[
++.B --help
++|
++.B -h
++] [
++.B --localdir=dir
++|
++.B -l dir
++] [
++.B --macrodir=dir
++|
++.B -m dir
++] [
++.B --version
++]
++.SH DESCRIPTION
++.PP
++To create
++.B configure
++from
++.BR configure.in , run the
++.B autoconf
++program with no arguments.
++.B autoconf
++processes
++.B configure.in
++with
++the
++.B m4
++macro processor, using the Autoconf macros. If you give
++.B autoconf
++an argument, it reads that file instead of
++.B configure.in
++and writes the configuration script to the standard output instead of
++to
++.B configure
++. If you give
++.B autoconf
++the argument
++.BR - ,
++it reads the
++standard input instead of
++.B configure.in
++and writes the configuration
++script on the standard output.
++.PP
++The Autoconf macros are defined in several files. Some of the files
++are distributed with Autoconf;
++.B autoconf
++reads them first. Then it
++looks for the optional file
++.B acsite.m4
++in the directory that contains
++the distributed Autoconf macro files, and for the optional file
++.B aclocal.m4
++in the current directory. Those files can contain your
++site's or the package's own Autoconf macro definitions. If a macro is
++defined in more than one of the files that
++.B autoconf
++reads, the last
++definition it reads overrides the earlier ones.
++.PP
++
++.B autoconf
++accepts the following options:
++.TP
++.BI --help
++.TP
++.BI -h
++Print a summary of the command line options and exit.
++.TP
++.BI --localdir=DIR
++.TP
++.BI -l\ DIR
++Look for the package file
++.B aclocal.m4
++in directory DIR instead of
++in the current directory.
++.TP
++.BI --macrodir=DIR
++.TP
++.BI -m\ DIR
++Look for the installed macro files in directory DIR. You can also
++set the
++.B AC_MACRODIR
++environment variable to a directory; this
++option overrides the environment variable.
++.TP
++.BI --version
++Print the version number of Autoconf and exit.
++.PP
++.SH "SEE ALSO"
++.BR autoheader (1),
++.BR autoreconf (1),
++.BR autoscan (1),
++.BR autoupdate (1),
++.BR ifnames (1)
++.SH AUTHORS
++David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard
++Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David
++D. Zuhn, and many others. This manpage written by Ben Pfaff
++<pfaffben@pilot.msu.edu> for the Debian GNU/Linux
++.B autoconf
++package.
+--- autoconf-2.13.orig/autoheader.1
++++ autoconf-2.13/autoheader.1
+@@ -0,0 +1,197 @@
++.\" Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
++.\" Copyright (C) 1998 Ben Pfaff.
++.\"
++.\" Permission is granted to make and distribute verbatim copies of
++.\" this manual provided the copyright notice and this permission notice
++.\" are preserved on all copies.
++.\"
++.\" Permission is granted to copy and distribute modified versions of this
++.\" manual under the conditions for verbatim copying, provided that the entire
++.\" resulting derived work is distributed under the terms of a permission
++.\" notice identical to this one.
++.\"
++.\" Permission is granted to copy and distribute translations of this manual
++.\" into another language, under the above conditions for modified versions,
++.\" except that this permission notice may be stated in a translation approved
++.\" by the Foundation.
++.\"
++.TH AUTOHEADER 1 "Autoconf"
++.SH NAME
++autoheader - creates a template file of C #define's for use by
++configure.
++.SH SYNOPSIS
++.B autoheader
++[
++.B --help
++|
++.B -h
++] [
++.B --localdir=dir
++|
++.B -l dir
++] [
++.B --macrodir=dir
++|
++.B -m dir
++] [
++.B --version
++]
++.SH DESCRIPTION
++.PP
++The
++.B autoheader
++program can create a template file of C
++.B #define
++statements for
++.B configure
++to use. If
++.B configure.in
++invokes
++.BR AC_CONFIG_HEADER(FILE) ,
++.B autoheader
++creates
++.BR FILE.in ;
++if multiple
++file arguments are given, the first one is used. Otherwise,
++.B autoheader
++creates
++.BR config.h.in .
++.PP
++If you give
++.B autoheader
++an argument, it uses that file instead of
++.B configure.in
++and writes the header file to the standard output
++instead of to
++.B config.h.in
++. If you give
++.B autoheader
++an argument of
++.BR - ,
++it reads the standard input instead of
++.B configure.in
++and writes
++the header file to the standard output.
++.PP
++.B autoheader
++scans
++.B configure.in
++and figures out which C
++preprocessor symbols it might define. It copies comments and
++.B #define
++and
++.B #undef
++statements from a file called
++.BR acconfig.h ,
++which comes
++with and is installed with Autoconf. It also uses a file called
++.B acconfig.h
++in the current directory, if present. If you
++.B AC_DEFINE
++any additional symbols, you must create that file with entries for
++them. For symbols defined by
++.BR AC_CHECK_HEADERS ,
++.BR AC_CHECK_FUNCS ,
++.BR AC_CHECK_SIZEOF ,
++or
++.BR AC_CHECK_LIB ,
++.B autoheader
++generates comments
++and
++.B #undef
++statements itself rather than copying them from a file,
++since the possible symbols are effectively limitless.
++.PP
++The file that
++.B autoheader
++creates contains mainly
++.B #define
++and
++.B #undef
++statements and their accompanying comments. If
++.B ./acconfig.h
++contains the string
++.BR @TOP@ ,
++.B autoheader
++copies the lines before the
++line containing
++.B @TOP@
++into the top of the file that it generates.
++Similarly, if
++.B ./acconfig.h
++contains the string
++.BR @BOTTOM@ ,
++.B autoheader
++copies the lines after that line to the end of the file it
++generates. Either or both of those strings may be omitted.
++.PP
++An alternate way to produce the same effect is to create the files
++.B FILE.top
++(typically
++.BR config.h.top )
++and/or
++.B FILE.bot
++in the current
++directory. If they exist,
++.B autoheader
++copies them to the beginning
++and end, respectively, of its output. Their use is discouraged because
++they have file names that contain two periods, and so can not be stored
++on MS-DOS; also, they are two more files to clutter up the directory.
++But if you use the
++.B --localdir=DIR
++option to use an
++.B acconfig.h
++in
++another directory, they give you a way to put custom boilerplate in each
++individual
++.BR config.h.in .
++.PP
++.B autoheader
++accepts the following options:
++.TP
++.BI --help
++.TP
++.BI -h
++Print a summary of the command line options and exit.
++.TP
++.BI --localdir=DIR
++.TP
++.BI -l\ DIR
++Look for the package files
++.B aclocal.m4
++and
++.B acconfig.h
++(but not
++.B FILE.top
++and
++.BR FILE.bot )
++in directory DIR instead of in the current
++directory.
++.TP
++.BI --macrodir=DIR
++.TP
++.BI -m\ DIR
++Look for the installed macro files and
++.B acconfig.h
++in directory DIR.
++You can also set the
++.B AC_MACRODIR
++environment variable to a
++directory; this option overrides the environment variable.
++.TP
++.BI --version
++Print the version number of Autoconf and exit.
++.SH "SEE ALSO"
++.BR autoconf (1),
++.BR autoreconf (1),
++.BR autoscan (1),
++.BR autoupdate (1),
++.BR ifnames (1)
++.SH AUTHORS
++David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard
++Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David
++D. Zuhn, and many others. This manpage written by Ben Pfaff
++<pfaffben@pilot.msu.edu> for the Debian GNU/Linux
++.B autoconf
++package.
+--- autoconf-2.13.orig/autoreconf.1
++++ autoconf-2.13/autoreconf.1
+@@ -0,0 +1,165 @@
++.\" Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
++.\" Copyright (C) 1998 Ben Pfaff.
++.\"
++.\" Permission is granted to make and distribute verbatim copies of
++.\" this manual provided the copyright notice and this permission notice
++.\" are preserved on all copies.
++.\"
++.\" Permission is granted to copy and distribute modified versions of this
++.\" manual under the conditions for verbatim copying, provided that the entire
++.\" resulting derived work is distributed under the terms of a permission
++.\" notice identical to this one.
++.\"
++.\" Permission is granted to copy and distribute translations of this manual
++.\" into another language, under the above conditions for modified versions,
++.\" except that this permission notice may be stated in a translation approved
++.\" by the Foundation.
++.\"
++.TH AUTORECONF 1 "Autoconf"
++.SH NAME
++autoreconf - update configure scripts
++.SH SYNOPSIS
++.B autoreconf
++[
++.B --help
++|
++.B -h
++] [
++.B --force
++|
++.B -f
++] [
++.B --localdir=dir
++|
++.B -l dir
++] [
++.B --macrodir=dir
++|
++.B -m dir
++] [
++.B --verbose
++] [
++.B --version
++]
++.SH DESCRIPTION
++.PP
++If you have a lot of Autoconf-generated
++.B configure
++scripts, the
++.B autoreconf
++program can save you some work. It runs
++.B autoconf
++(and
++.BR autoheader ,
++where appropriate) repeatedly to remake the Autoconf
++.B configure
++scripts and configuration header templates in the directory
++tree rooted at the current directory. By default, it only remakes
++those files that are older than their
++.B configure.in
++or (if present)
++.BR aclocal.m4 .
++Since
++.B autoheader
++does not change the timestamp of its
++output file if the file wouldn't be changing, this is not necessarily
++the minimum amount of work. If you install a new version of Autoconf,
++you can make
++.B autoreconf
++remake
++.I all
++of the files by giving it the
++.B --force
++option.
++.PP
++If you give
++.B autoreconf
++the
++.B --macrodir=DIR
++or
++.B --localdir=DIR
++options, it passes them down to
++.B autoconf
++and
++.B autoheader
++(with
++relative paths adjusted properly).
++.PP
++.B autoreconf
++does not support having, in the same directory tree,
++both directories that are parts of a larger package (sharing
++.B aclocal.m4
++and
++.BR acconfig.h ),
++and directories that are independent
++packages (each with their own
++.B aclocal.m4
++and
++.BR acconfig.h ).
++It
++assumes that they are all part of the same package, if you use
++.BR --localdir ,
++or that each directory is a separate package, if you
++don't use it. This restriction may be removed in the future.
++.PP
++.B autoreconf
++accepts the following options:
++.TP
++.BI --help
++.TP
++.BI -h
++Print a summary of the command line options and exit.
++.TP
++.BI --force
++.TP
++.BI -f
++Remake even
++.B configure
++scripts and configuration headers that are
++newer than their input files
++.RB ( configure.in
++and, if present,
++.BR aclocal.m4 ).
++.TP
++.BI --localdir=DIR
++.TP
++.BI -l\ DIR
++Look for the package file
++.B aclocal.m4
++in directory DIR instead of
++in the current directory.
++.TP
++.BI --macrodir=DIR
++.TP
++.BI -m\ DIR
++Look for the installed macro files in directory DIR. You can also
++set the
++.B AC_MACRODIR
++environment variable to a directory; this
++option overrides the environment variable.
++.TP
++.BI --verbose
++Print the name of each directory where
++.B autoreconf
++runs
++.B autoconf
++(and
++.BR autoheader ,
++if appropriate).
++.TP
++.BI --version
++Print the version number of Autoconf and exit.
++.PP
++.SH "SEE ALSO"
++.BR autoconf (1),
++.BR autoheader (1),
++.BR autoscan (1),
++.BR autoupdate (1),
++.BR ifnames (1)
++.SH AUTHORS
++David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard
++Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David
++D. Zuhn, and many others. This manpage written by Ben Pfaff
++<pfaffben@pilot.msu.edu> for the Debian GNU/Linux
++.B autoconf
++package.
+--- autoconf-2.13.orig/autoscan.1
++++ autoconf-2.13/autoscan.1
+@@ -0,0 +1,122 @@
++.\" Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
++.\" Copyright (C) 1998 Ben Pfaff.
++.\"
++.\" Permission is granted to make and distribute verbatim copies of
++.\" this manual provided the copyright notice and this permission notice
++.\" are preserved on all copies.
++.\"
++.\" Permission is granted to copy and distribute modified versions of this
++.\" manual under the conditions for verbatim copying, provided that the entire
++.\" resulting derived work is distributed under the terms of a permission
++.\" notice identical to this one.
++.\"
++.\" Permission is granted to copy and distribute translations of this manual
++.\" into another language, under the above conditions for modified versions,
++.\" except that this permission notice may be stated in a translation approved
++.\" by the Foundation.
++.\"
++.TH AUTOCONF 1 "Autoconf"
++.SH NAME
++autoscan - help to create a configure.in file for a software package
++.SH SYNOPSIS
++.B autoscan
++[
++.B --help
++] [
++.B --macrodir=dir
++] [
++.B --verbose
++] [
++.B --version
++]
++.SH DESCRIPTION
++The
++.B autoscan
++program can help you create a
++.B configure.in
++file for a
++software package.
++.B autoscan
++examines source files in the directory
++tree rooted at a directory given as a command line argument, or the
++current directory if none is given. It searches the source files for
++common portability problems and creates a file
++.B configure.scan
++which
++is a preliminary
++.B configure.in
++for that package.
++.PP
++You should manually examine
++.B configure.scan
++before renaming it to
++.BR configure.in ;
++it will probably need some adjustments. Occasionally
++.B autoscan
++outputs a macro in the wrong order relative to another
++macro, so that
++.B autoconf
++produces a warning; you need to move such
++macros manually. Also, if you want the package to use a configuration
++header file, you must add a call to
++.BR AC_CONFIG_HEADER .
++You might
++also have to change or add some
++.B #if
++directives to your program in
++order to make it work with Autoconf (see
++.BR ifnames (1)),
++for information about a program that can help with that job).
++.PP
++.B autoscan
++uses several data files, which are installed along with the
++distributed Autoconf macro files, to determine which macros to output
++when it finds particular symbols in a package's source files. These
++files all have the same format. Each line consists of a symbol,
++whitespace, and the Autoconf macro to output if that symbol is
++encountered. Lines starting with
++.B #
++are comments.
++.PP
++
++.B autoscan
++requires that a Perl interpreter is installed.
++.PP
++
++.B autoscan
++accepts the following options:
++.TP
++.BI --help
++.TP
++.BI -h
++Print a summary of the command line options and exit.
++.TP
++.BI --macrodir=DIR
++.TP
++.BI -m\ DIR
++Look for the installed macro files in directory DIR. You can also
++set the
++.B AC_MACRODIR
++environment variable to a directory; this
++option overrides the environment variable.
++.TP
++.BI --verbose
++Print the names of the fiels it examines and the potentially
++interesting symbols it finds in them. This output can be voluminous.
++.TP
++.BI --version
++Print the version number of Autoconf and exit.
++.PP
++.SH "SEE ALSO"
++.BR autoconf (1),
++.BR autoheader (1),
++.BR autoreconf (1),
++.BR autoupdate (1),
++.BR ifnames (1)
++.SH AUTHORS
++David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard
++Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David
++D. Zuhn, and many others. This manpage written by Ben Pfaff
++<pfaffben@pilot.msu.edu> for the Debian GNU/Linux
++.B autoconf
++package.
+--- autoconf-2.13.orig/autoupdate.1
++++ autoconf-2.13/autoupdate.1
+@@ -0,0 +1,97 @@
++.\" Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
++.\" Copyright (C) 1998 Ben Pfaff.
++.\"
++.\" Permission is granted to make and distribute verbatim copies of
++.\" this manual provided the copyright notice and this permission notice
++.\" are preserved on all copies.
++.\"
++.\" Permission is granted to copy and distribute modified versions of this
++.\" manual under the conditions for verbatim copying, provided that the entire
++.\" resulting derived work is distributed under the terms of a permission
++.\" notice identical to this one.
++.\"
++.\" Permission is granted to copy and distribute translations of this manual
++.\" into another language, under the above conditions for modified versions,
++.\" except that this permission notice may be stated in a translation approved
++.\" by the Foundation.
++.\"
++.TH AUTOUPDATE 1 "Autoconf"
++.SH NAME
++autoupdate - updates an old configure.in file to version 2
++.SH SYNOPSIS
++.B autoconf
++[
++.B --help
++|
++.B -h
++] [
++.B --macrodir=dir
++|
++.B -m dir
++] [
++.B --version
++]
++.SH DESCRIPTION
++The
++.B autoupdate
++program updates a
++.B configure.in
++file that calls
++Autoconf macros by their old names to use the current macro names. In
++version 2 of Autoconf, most of the macros were renamed to use a more
++uniform and descriptive naming scheme. Although the old names still
++work , you can make your
++.B configure.in
++files more readable and make
++it easier to use the current Autoconf documentation if you update them
++to use the new macro names.
++If given no arguments,
++.B autoupdate
++updates
++.BR configure.in ,
++backing up
++the original version with the suffix
++.B ~
++(or the value of the
++environment variable
++.BR SIMPLE_BACKUP_SUFFIX ,
++if that is set). If you
++give
++.B autoupdate
++an argument, it reads that file instead of
++.B configure.in
++and writes the updated file to the standard output.
++.PP
++.B autoconf
++accepts the following options:
++.TP
++.BI --help
++.TP
++.BI -h
++Print a summary of the command line options and exit.
++.TP
++.BI --macrodir=DIR
++.TP
++.BI -m\ DIR
++Look for the installed macro files in directory DIR. You can also
++set the
++.B AC_MACRODIR
++environment variable to a directory; this
++option overrides the environment variable.
++.TP
++.BI --version
++Print the version number of Autoconf and exit.
++.PP
++.SH "SEE ALSO"
++.BR autoconf (1),
++.BR autoheader (1),
++.BR autoreconf (1),
++.BR autoscan (1),
++.BR ifnames (1)
++.SH AUTHORS
++David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard
++Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David
++D. Zuhn, and many others. This manpage written by Ben Pfaff
++<pfaffben@pilot.msu.edu> for the Debian GNU/Linux
++.B autoconf
++package.
+--- autoconf-2.13.orig/ifnames.1
++++ autoconf-2.13/ifnames.1
+@@ -0,0 +1,98 @@
++.\" Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
++.\" Copyright (C) 1998 Ben Pfaff.
++.\"
++.\" Permission is granted to make and distribute verbatim copies of
++.\" this manual provided the copyright notice and this permission notice
++.\" are preserved on all copies.
++.\"
++.\" Permission is granted to copy and distribute modified versions of this
++.\" manual under the conditions for verbatim copying, provided that the entire
++.\" resulting derived work is distributed under the terms of a permission
++.\" notice identical to this one.
++.\"
++.\" Permission is granted to copy and distribute translations of this manual
++.\" into another language, under the above conditions for modified versions,
++.\" except that this permission notice may be stated in a translation approved
++.\" by the Foundation.
++.\"
++.TH IFNAMES 1 "Autoconf"
++.SH NAME
++ifnames - print identifiers that a package uses in C preprocessor
++conditionals
++.SH SYNOPSIS
++.B ifnames
++[
++.B --help
++|
++.B -h
++] [
++.B --macrodir=dir
++|
++.B -m dir
++] [
++.B --version
++]
++.SH DESCRIPTION
++.PP
++.B ifnames
++can help when writing a
++.B configure.in
++for a software
++package. It prints the identifiers that the package already uses in C
++preprocessor conditionals. If a package has already been set up to
++have some portability, this program can help you figure out what its
++.B configure
++needs to check for. It may help fill in some gaps in a
++.B configure.in
++generated by
++.B autoscan
++(see
++.BR autoscan (1)).
++.PP
++.B ifnames
++scans all of the C source files named on the command line
++(or the standard input, if none are given) and writes to the standard
++output a sorted list of all the identifiers that appear in those files
++in
++.BR #if ,
++.BR #elif ,
++.BR #ifdef ,
++or
++.B #ifndef
++directives. It prints each
++identifier on a line, followed by a space-separated list of the files
++in which that identifier occurs.
++.PP
++.B ifnames
++accepts the following options:
++.TP
++.BI --help
++.TP
++.BI -h
++Print a summary of the command line options and exit.
++.TP
++.BI --macrodir=DIR
++.TP
++.BI -m\ DIR
++Look for the installed macro files in directory DIR. You can also
++set the
++.B AC_MACRODIR
++environment variable to a directory; this
++option overrides the environment variable.
++.TP
++.BI --version
++Print the version number of Autoconf and exit.
++.PP
++.SH "SEE ALSO"
++.BR autoconf (1),
++.BR autoheader (1),
++.BR autoreconf (1),
++.BR autoscan (1),
++.BR autoupdate (1)
++.SH AUTHORS
++David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard
++Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David
++D. Zuhn, and many others. This manpage written by Ben Pfaff
++<pfaffben@pilot.msu.edu> for the Debian GNU/Linux
++.B autoconf
++package.
--- /dev/null
+--------------------------------------------------------------------
+> François Pinard mailto:pinard@iro.umontreal.ca
+> I have a collection of DOS-abling patches for Autoconf which came from
+> Eli, I think, and which you may fetch from:
+>
+> http://www.iro.umontreal.ca/contrib/paxutils/dist/PATCHES-AC
+>
+> if I'm not mistaken. There are a few other mods not related to DOS ports.
+--------------------------------------------------------------------
+> On Sun, 22 Nov 1998, Tim Rice(tim@trr.metro.net wrote:
+> Here is a patch for Autoconf version 2.12 to address a couple of
+> issues on SVR4.2 machines.
+>
+> It was failing the test for opendir() because opendir() is in libc
+> not in libdir. The patch now checks libc first then libdir.
+>
+> It was failing on gethostbyname(). I added a third test for gethostbynane()
+> in libsocket.
+>
+--------------------------------------------------------------------
+1999-01-27
+ * acgeneral.m4: added support for DJGPP
+ - "test -f" should be replaced by "test -x" where the script
+ looks for an executable binary which will be called gcc.exe
+ etc. on DOS/Windows. A simple test for $COMSPEC being not
+ defined is suggested as a means to determine which option is
+ required. (You cannot use "test -x" on all systems because some
+ variants of Unix shell don't support -x.)
+
+ - File patterns used to distinguish between absolute and relative
+ file names need to be changed as follows:
+
+ /*) --> /*|[A-z]:/*)
+ [/$]* --> [/$]*/[A-z]:/*)
+
+ This is because absolute file names on DOS/Windows may include a
+ drive letter and a colon before the leading slash. Note that the
+ lower-case `z' in [A-z] is intentional, since some network
+ clients allow filesystems to be identified by the six letters
+ between the uppercase `Z' and lowercase `a', and because the
+ drive letter can come in either letter-case.
+
+ - The line which computes ac_file_inputs by replacing the colon in
+ foo:foo.in needs its two Sed commands to be swapped, because
+ once you put in the $ac_given_srcdir part, the colon after the
+ drive letter in it will be replaced instead of the original
+ colon.
+ From Eli Zarestskii.
+
+ * acspecific.m4: check opendir in libc before -ldir
+ gethosbyname/connect check in -lsocket also
+ From Tim Rice.
+
+diff -ur ../autoconf-2.13.orig/acgeneral.m4 ./acgeneral.m4
+--- ../autoconf-2.13.orig/acgeneral.m4 Tue Jan 5 08:27:37 1999
++++ ./acgeneral.m4 Tue Feb 9 22:27:34 1999
+@@ -636,6 +636,9 @@
+ esac
+ done
+
++# Support of DJGPP port of bash.
++if test -n "$COMSPEC$ComSpec"; then ac_x=-x; else ac_x=-f; fi
++
+ # NLS nuisances.
+ # Only set these to C if already set. These must not be set unconditionally
+ # because not all systems understand e.g. LANG=C (notably SCO).
+@@ -1213,7 +1216,7 @@
+
+ dnl AC_MSG_WARN(PROBLEM-DESCRIPTION)
+ define(AC_MSG_WARN,
+-[echo "configure: warning: $1" 1>&2])
++[echo "configure: WARNING: $1" 1>&2])
+
+ dnl AC_MSG_ERROR(ERROR-DESCRIPTION)
+ define(AC_MSG_ERROR,
+@@ -1304,7 +1307,7 @@
+
+ dnl AC_OBSOLETE(THIS-MACRO-NAME [, SUGGESTION])
+ define(AC_OBSOLETE,
+-[errprint(__file__:__line__: warning: [$1] is obsolete[$2]
++[errprint(__file__:__line__: WARNING: [$1] is obsolete[$2]
+ )])
+
+
+@@ -1330,7 +1333,7 @@
+ ac_dummy="ifelse([$5], , $PATH, [$5])"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+- if test -f $ac_dir/$ac_word; then
++ if test $ac_x $ac_dir/$ac_word; then
+ ifelse([$6], , , dnl
+ [ if test "[$ac_dir/$ac_word]" = "$6"; then
+ ac_prog_rejected=yes
+@@ -1384,7 +1387,9 @@
+ AC_MSG_CHECKING([for $ac_word])
+ AC_CACHE_VAL(ac_cv_path_$1,
+ [case "[$]$1" in
+- /*)
++changequote(, )dnl
++ /*|[A-z]:/*)
++changequote([, ])dnl
+ ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+@@ -1398,7 +1403,7 @@
+ ac_dummy="ifelse([$4], , $PATH, [$4])"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+- if test -f $ac_dir/$ac_word; then
++ if test $ac_x $ac_dir/$ac_word; then
+ ac_cv_path_$1="$ac_dir/$ac_word"
+ break
+ fi
+@@ -1802,7 +1807,7 @@
+ AC_DEFUN(AC_TRY_RUN,
+ [if test "$cross_compiling" = yes; then
+ ifelse([$4], ,
+- [errprint(__file__:__line__: warning: [AC_TRY_RUN] called without default to allow cross compiling
++ [errprint(__file__:__line__: WARNING: [AC_TRY_RUN] called without default to allow cross compiling
+ )dnl
+ AC_MSG_ERROR(can not run test program while cross compiling)],
+ [$4])
+@@ -2267,7 +2272,10 @@
+ .) srcdir=.
+ if test -z "$ac_dots"; then top_srcdir=.
+ else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
+- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
++changequote(, )dnl
++ /*|[A-z]:/*)
++changequote([, ])dnl
++ srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+ *) # Relative path.
+ srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
+ top_srcdir="$ac_dots$ac_given_srcdir" ;;
+@@ -2276,7 +2284,7 @@
+ ifdef([AC_PROVIDE_AC_PROG_INSTALL],
+ [ case "$ac_given_INSTALL" in
+ changequote(, )dnl
+- [/$]*) INSTALL="$ac_given_INSTALL" ;;
++ [/$]*|[A-z]:/*) INSTALL="$ac_given_INSTALL" ;;
+ changequote([, ])dnl
+ *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+ esac
+@@ -2291,7 +2299,7 @@
+ *) ac_comsub= ;;
+ esac
+
+- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
++ ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%"`
+ sed -e "$ac_comsub
+ s%@configure_input@%$configure_input%g
+ s%@srcdir@%$srcdir%g
+@@ -2359,7 +2367,7 @@
+ echo creating $ac_file
+
+ rm -f conftest.frag conftest.in conftest.out
+- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
++ ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%"`
+ cat $ac_file_inputs > conftest.in
+
+ EOF
+@@ -2483,7 +2491,7 @@
+
+ case "$srcdir" in
+ changequote(, )dnl
+- [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
++ [/$]*|[A-z]:/*) ac_rel_source="$srcdir/$ac_source" ;;
+ changequote([, ])dnl
+ *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
+ esac
+@@ -2558,7 +2566,9 @@
+ case "$srcdir" in
+ .) # No --srcdir option. We are building in place.
+ ac_sub_srcdir=$srcdir ;;
+- /*) # Absolute path.
++changequote(, )dnl
++ /*|[A-z]:/*) # Absolute path.
++changequote([, ])dnl
+ ac_sub_srcdir=$srcdir/$ac_config_dir ;;
+ *) # Relative path.
+ ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
+@@ -2579,14 +2589,16 @@
+
+ # Make the cache file name correct relative to the subdirectory.
+ case "$cache_file" in
+- /*) ac_sub_cache_file=$cache_file ;;
++changequote(, )dnl
++ /*|[A-z]:/*) ac_sub_cache_file=$cache_file ;;
++changequote([, ])dnl
+ *) # Relative path.
+ ac_sub_cache_file="$ac_dots$cache_file" ;;
+ esac
+ ifdef([AC_PROVIDE_AC_PROG_INSTALL],
+ [ case "$ac_given_INSTALL" in
+ changequote(, )dnl
+- [/$]*) INSTALL="$ac_given_INSTALL" ;;
++ [/$]*|[A-z]:/*) INSTALL="$ac_given_INSTALL" ;;
+ changequote([, ])dnl
+ *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+ esac
+diff -ur ../autoconf-2.13.orig/acspecific.m4 ./acspecific.m4
+--- ../autoconf-2.13.orig/acspecific.m4 Tue Jan 5 08:27:52 1999
++++ ./acspecific.m4 Thu Jan 28 23:01:41 1999
+@@ -615,7 +615,7 @@
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+- if test -f $ac_dir/$ac_prog; then
++ if test $ac_x $ac_dir/$ac_prog; then
+ if test $ac_prog = install &&
+ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+@@ -765,7 +765,10 @@
+ [ac_header_dirent=$ac_hdr; break])
+ # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
+ if test $ac_header_dirent = dirent.h; then
+-AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")
++AC_CHECK_FUNC(opendir)
++if test $ac_cv_func_opendir = no; then
++ AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")
++fi
+ else
+ AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx")
+ fi
+@@ -2564,6 +2567,9 @@
+ AC_CHECK_FUNC(gethostbyname)
+ if test $ac_cv_func_gethostbyname = no; then
+ AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl")
++ if test $ac_cv_func_gethostbyname = no; then
++ AC_CHECK_LIB(socket, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket -lnsl", , -lnsl)
++ fi
+ fi
+
+ # lieder@skyler.mavd.honeywell.com says without -lsocket,
+@@ -2575,7 +2581,7 @@
+ # We assume that if connect needs -lnsl, so does gethostbyname.
+ AC_CHECK_FUNC(connect)
+ if test $ac_cv_func_connect = no; then
+- AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", ,
++ AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket -lnsl $X_EXTRA_LIBS", ,
+ $X_EXTRA_LIBS)
+ fi
+