diff options
| author | Paul Eggert | 2011-03-20 22:34:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-20 22:34:48 -0700 |
| commit | 6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef (patch) | |
| tree | f7ff137da14c352412ee3dc3fbcaf1316428fd97 | |
| parent | 81e56e612dab7d80485c640068531710a713d205 (diff) | |
| parent | 77185bdf91d42fb19c02af0f51ce63280ce911a0 (diff) | |
| download | emacs-6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef.tar.gz emacs-6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef.zip | |
Merge from trunk and from gnulib stdio.
56 files changed, 27793 insertions, 212 deletions
| @@ -1,9 +1,29 @@ | |||
| 1 | 2011-03-17 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-21 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * Makefile.in (GNULIB_MODULES): Add socklen. | 3 | * Makefile.in (GNULIB_MODULES): Add socklen. |
| 4 | * configure.in: Do not check for sys/socket.h, since socklen does that. | 4 | * configure.in: Do not check for sys/socket.h, since socklen does that. |
| 5 | * m4/socklen.m4: New automatically-generated file, from gnulib. | 5 | * m4/socklen.m4: New automatically-generated file, from gnulib. |
| 6 | 6 | ||
| 7 | 2011-03-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8 | |||
| 9 | fakemail: Remove dependency on ignore-value. | ||
| 10 | * Makefile.in (GNULIB_MODULES): Add stdio. | ||
| 11 | * lib/stdio.in.h, m4/stdio_h.m4: New files, automatically | ||
| 12 | imported from gnulib. | ||
| 13 | * .bzrignore: Add lib/stdio.h. | ||
| 14 | |||
| 15 | 2011-03-20 Glenn Morris <rgm@gnu.org> | ||
| 16 | |||
| 17 | * autogen/: New directory, to be excluded from releases. | ||
| 18 | * autogen/copy_autogen, autogen/update_autogen: New scripts. | ||
| 19 | * autogen/README: New file. | ||
| 20 | * autogen/aclocal.m4, autogen/config.in, autogen/configure: | ||
| 21 | * autogen/Makefile.in: Add auto-updated generated files. | ||
| 22 | * autogen.sh: No longer a no-op, now it tests for autotools | ||
| 23 | and runs them as necessary. | ||
| 24 | * configure.in: Defaule maintainer-mode to on. | ||
| 25 | * aclocal.m4, configure, lib/Makefile.in: Remove files. | ||
| 26 | |||
| 7 | 2011-03-13 Paul Eggert <eggert@cs.ucla.edu> | 27 | 2011-03-13 Paul Eggert <eggert@cs.ucla.edu> |
| 8 | 28 | ||
| 9 | Update for gnulib. | 29 | Update for gnulib. |
| @@ -65,7 +85,7 @@ | |||
| 65 | 85 | ||
| 66 | 2011-02-21 Christoph Scholtes <cschol2112@gmail.com> | 86 | 2011-02-21 Christoph Scholtes <cschol2112@gmail.com> |
| 67 | 87 | ||
| 68 | * lib/makefile.w32-in: ($(BLD)/md5.$(O)): Added dependency on | 88 | * lib/makefile.w32-in ($(BLD)/md5.$(O)): Added dependency on |
| 69 | $(EMACS_ROOT)/nt/inc/stdint.h. | 89 | $(EMACS_ROOT)/nt/inc/stdint.h. |
| 70 | 90 | ||
| 71 | 2011-02-21 Eli Zaretskii <eliz@gnu.org> | 91 | 2011-02-21 Eli Zaretskii <eliz@gnu.org> |
| @@ -104,7 +124,7 @@ | |||
| 104 | way to test this so I left it alone. | 124 | way to test this so I left it alone. |
| 105 | * configure: Regenerate. | 125 | * configure: Regenerate. |
| 106 | 126 | ||
| 107 | 2011-02-20 Christoph Scholtes <cschol2112@gmail.com> | 127 | 2011-02-20 Christoph Scholtes <cschol2112@gmail.com> |
| 108 | 128 | ||
| 109 | * lib/makefile.w32-in ($(BLD)/md5.$(O)): New recipe, moved from | 129 | * lib/makefile.w32-in ($(BLD)/md5.$(O)): New recipe, moved from |
| 110 | src/makefile.w32-in. | 130 | src/makefile.w32-in. |
| @@ -967,7 +987,7 @@ | |||
| 967 | 987 | ||
| 968 | 2010-06-28 Jan Djärv <jan.h.d@swipnet.se> | 988 | 2010-06-28 Jan Djärv <jan.h.d@swipnet.se> |
| 969 | 989 | ||
| 970 | * configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY, | 990 | * configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY, |
| 971 | check for gtk_file_chooser_dialog_new, and HAVE_GTK_FILE_BOTH (implied | 991 | check for gtk_file_chooser_dialog_new, and HAVE_GTK_FILE_BOTH (implied |
| 972 | by minimum required Gtk+ 2.6). Add checks for functions introduced | 992 | by minimum required Gtk+ 2.6). Add checks for functions introduced |
| 973 | in Gtk+ 2.14 or newer (bug#6505). | 993 | in Gtk+ 2.14 or newer (bug#6505). |
diff --git a/INSTALL.BZR b/INSTALL.BZR index 710a73c7048..3859e3cd4fc 100644 --- a/INSTALL.BZR +++ b/INSTALL.BZR | |||
| @@ -4,14 +4,29 @@ See the end of the file for license conditions. | |||
| 4 | 4 | ||
| 5 | Building and Installing Emacs from Bazaar | 5 | Building and Installing Emacs from Bazaar |
| 6 | 6 | ||
| 7 | If this is the first time you go through it, you'll need to configure | 7 | Building Emacs from Bazaar requires some tools that are not needed |
| 8 | before bootstrapping: | 8 | when building from a release. You will need: |
| 9 | 9 | ||
| 10 | $ ./configure | 10 | autoconf - at least the version specified near the start of |
| 11 | configure.in (in the AC_PREREQ command). | ||
| 12 | automake - we recommend at least version 1.11. | ||
| 13 | makeinfo - not strictly necessary, but highly recommended, so that | ||
| 14 | you can build the manuals. | ||
| 15 | |||
| 16 | The `autogen.sh' script can help you figure out if you have the | ||
| 17 | necessary tools. | ||
| 18 | |||
| 19 | The first time you build, there are a couple of extra steps. | ||
| 20 | First, generate the `configure' script: | ||
| 21 | |||
| 22 | $ ./autogen.sh | ||
| 11 | 23 | ||
| 12 | (Normally there is no need to run `autoconf' etc. If you do need it, | 24 | (or you can just run `autoreconf -I m4'). |
| 13 | the relevant command is `autoreconf -I m4'. Be aware that this will | 25 | |
| 14 | likely lead to conflicts next time you update from Bazaar.) | 26 | You can then configure your build (use `./configure --help' to see |
| 27 | options you can set): | ||
| 28 | |||
| 29 | $ ./configure | ||
| 15 | 30 | ||
| 16 | Some of the files that are included in the Emacs tarball, such as | 31 | Some of the files that are included in the Emacs tarball, such as |
| 17 | byte-compiled Lisp files, are not stored in Bazaar. Therefore, to | 32 | byte-compiled Lisp files, are not stored in Bazaar. Therefore, to |
diff --git a/Makefile.in b/Makefile.in index bc8ae5a9589..4dd8cff1bbc 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -332,7 +332,8 @@ DOS_gnulib_comp.m4 = gl-comp.m4 | |||
| 332 | # as per $(gnulib_srcdir)/DEPENDENCIES. | 332 | # as per $(gnulib_srcdir)/DEPENDENCIES. |
| 333 | GNULIB_MODULES = \ | 333 | GNULIB_MODULES = \ |
| 334 | crypto/md5 dtoastr filemode getloadavg getopt-gnu \ | 334 | crypto/md5 dtoastr filemode getloadavg getopt-gnu \ |
| 335 | ignore-value intprops lstat mktime readlink socklen strftime symlink sys_stat | 335 | ignore-value intprops lstat mktime readlink \ |
| 336 | socklen stdio strftime symlink sys_stat | ||
| 336 | GNULIB_TOOL_FLAGS = \ | 337 | GNULIB_TOOL_FLAGS = \ |
| 337 | --import --no-changelog --no-vc-files --makefile-name=gnulib.mk | 338 | --import --no-changelog --no-vc-files --makefile-name=gnulib.mk |
| 338 | sync-from-gnulib: $(gnulib_srcdir) | 339 | sync-from-gnulib: $(gnulib_srcdir) |
diff --git a/aclocal.m4 b/aclocal.m4 index 9bd85a88bbe..370be46f0e0 100644 --- a/aclocal.m4 +++ b/aclocal.m4 | |||
| @@ -1005,6 +1005,7 @@ m4_include([m4/stat.m4]) | |||
| 1005 | m4_include([m4/stdbool.m4]) | 1005 | m4_include([m4/stdbool.m4]) |
| 1006 | m4_include([m4/stddef_h.m4]) | 1006 | m4_include([m4/stddef_h.m4]) |
| 1007 | m4_include([m4/stdint.m4]) | 1007 | m4_include([m4/stdint.m4]) |
| 1008 | m4_include([m4/stdio_h.m4]) | ||
| 1008 | m4_include([m4/stdlib_h.m4]) | 1009 | m4_include([m4/stdlib_h.m4]) |
| 1009 | m4_include([m4/strftime.m4]) | 1010 | m4_include([m4/strftime.m4]) |
| 1010 | m4_include([m4/symlink.m4]) | 1011 | m4_include([m4/symlink.m4]) |
diff --git a/admin/make-tarball.txt b/admin/make-tarball.txt index 6a8072de06c..9c47d6e1fa2 100644 --- a/admin/make-tarball.txt +++ b/admin/make-tarball.txt | |||
| @@ -28,11 +28,14 @@ For each step, check for possible errors. | |||
| 28 | refer to a newer release of Emacs. (This is probably needed only | 28 | refer to a newer release of Emacs. (This is probably needed only |
| 29 | when preparing a major Emacs release, or branching for it.) | 29 | when preparing a major Emacs release, or branching for it.) |
| 30 | 30 | ||
| 31 | 5. autoreconf -I m4 --force | 31 | 5. Edit configure.in so that maintainer-mode is off by default. |
| 32 | (FIXME - need to find a better way of dealing with this). | ||
| 33 | |||
| 34 | autoreconf -I m4 --force | ||
| 32 | make bootstrap | 35 | make bootstrap |
| 33 | 36 | ||
| 34 | 6. Commit configure, src/config.in, etc/AUTHORS, all the files changed | 37 | 6. Commit etc/AUTHORS, all the files changed by M-x set-version, and |
| 35 | by M-x set-version, and lisp/cus-edit.el (if modified). | 38 | lisp/cus-edit.el (if modified). |
| 36 | Copy lisp/loaddefs.el to lisp/ldefs-boot.el and commit lisp/ldefs-boot.el. | 39 | Copy lisp/loaddefs.el to lisp/ldefs-boot.el and commit lisp/ldefs-boot.el. |
| 37 | For a release, also commit the ChangeLog files in all directories. | 40 | For a release, also commit the ChangeLog files in all directories. |
| 38 | 41 | ||
diff --git a/autogen.sh b/autogen.sh index 52184c46f51..a56b8d77826 100755 --- a/autogen.sh +++ b/autogen.sh | |||
| @@ -1,7 +1,207 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | ### autogen.sh - tool to help build Emacs from a bzr checkout | ||
| 2 | 3 | ||
| 3 | echo "Please read INSTALL.BZR for instructions on how to build Emacs from Bazaar." | 4 | ## Copyright (C) 2011 Free Software Foundation, Inc. |
| 4 | 5 | ||
| 5 | # Exit with failure, since people may have generic build scripts that | 6 | ## Author: Glenn Morris <rgm@gnu.org> |
| 6 | # try things like "autogen.sh && ./configure && make". | 7 | |
| 7 | exit 1 | 8 | ## This file is part of GNU Emacs. |
| 9 | |||
| 10 | ## GNU Emacs is free software: you can redistribute it and/or modify | ||
| 11 | ## it under the terms of the GNU General Public License as published by | ||
| 12 | ## the Free Software Foundation, either version 3 of the License, or | ||
| 13 | ## (at your option) any later version. | ||
| 14 | |||
| 15 | ## GNU Emacs is distributed in the hope that it will be useful, | ||
| 16 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | ## GNU General Public License for more details. | ||
| 19 | |||
| 20 | ## You should have received a copy of the GNU General Public License | ||
| 21 | ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 22 | |||
| 23 | ### Commentary: | ||
| 24 | |||
| 25 | ## The Emacs bzr repository does not include the configure script | ||
| 26 | ## (and associated helpers). The first time you fetch Emacs from bzr, | ||
| 27 | ## run this script to generate the necessary files. | ||
| 28 | ## For more details, see the file INSTALL.BZR. | ||
| 29 | |||
| 30 | ### Code: | ||
| 31 | |||
| 32 | ## Tools we need: | ||
| 33 | progs="autoconf automake" | ||
| 34 | |||
| 35 | ## Minimum versions we need: | ||
| 36 | autoconf_min=`sed -n 's/^ *AC_PREREQ(\([0-9\.]*\)).*/\1/p' configure.in` | ||
| 37 | |||
| 38 | ## FIXME how to determine this from the sources? | ||
| 39 | automake_min=1.11 | ||
| 40 | |||
| 41 | |||
| 42 | ## $1 = program, eg "autoconf". | ||
| 43 | ## Echo the version string, eg "2.59". | ||
| 44 | ## FIXME does not handle things like "1.4a", but AFAIK those are | ||
| 45 | ## all old versions, so it is OK to fail there. | ||
| 46 | ## Also note that we do not handle micro versions. | ||
| 47 | get_version () | ||
| 48 | { | ||
| 49 | $1 --version 2>&1 | sed -n '1 s/.* \([1-9][0-9\.]*\).*/\1/p' | ||
| 50 | } | ||
| 51 | |||
| 52 | ## $1 = version string, eg "2.59" | ||
| 53 | ## Echo the major version, eg "2". | ||
| 54 | major_version () | ||
| 55 | { | ||
| 56 | echo $1 | sed -e 's/\([0-9][0-9]*\)\..*/\1/' | ||
| 57 | } | ||
| 58 | |||
| 59 | ## $1 = version string, eg "2.59" | ||
| 60 | ## Echo the minor version, eg "59". | ||
| 61 | minor_version () | ||
| 62 | { | ||
| 63 | echo $1 | sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/' | ||
| 64 | } | ||
| 65 | |||
| 66 | ## $1 = program | ||
| 67 | ## $2 = minimum version. | ||
| 68 | ## Return 0 if program is present with version >= minumum version. | ||
| 69 | ## Return 1 if program is missing. | ||
| 70 | ## Return 2 if program is present but too old. | ||
| 71 | ## Return 3 for unexpected error (eg failed to parse version). | ||
| 72 | check_version () | ||
| 73 | { | ||
| 74 | have_version=`get_version $1` | ||
| 75 | |||
| 76 | [ x"$have_version" = x ] && return 1 | ||
| 77 | |||
| 78 | have_maj=`major_version $have_version` | ||
| 79 | need_maj=`major_version $2` | ||
| 80 | |||
| 81 | [ x"$have_maj" != x ] && [ x"$need_maj" != x ] || return 3 | ||
| 82 | |||
| 83 | [ $have_maj -gt $need_maj ] && return 0 | ||
| 84 | [ $have_maj -lt $need_maj ] && return 2 | ||
| 85 | |||
| 86 | have_min=`minor_version $have_version` | ||
| 87 | need_min=`minor_version $2` | ||
| 88 | |||
| 89 | [ x"$have_min" != x ] && [ x"$need_min" != x ] || return 3 | ||
| 90 | |||
| 91 | [ $have_min -ge $need_min ] && return 0 | ||
| 92 | return 2 | ||
| 93 | } | ||
| 94 | |||
| 95 | |||
| 96 | cat <<EOF | ||
| 97 | Checking whether you have the necessary tools... | ||
| 98 | (Read INSTALL.BZR for more details on building Emacs) | ||
| 99 | |||
| 100 | EOF | ||
| 101 | |||
| 102 | missing= | ||
| 103 | |||
| 104 | for prog in $progs; do | ||
| 105 | |||
| 106 | eval min=\$${prog}_min | ||
| 107 | |||
| 108 | echo "Checking for $prog (need at least version $min)..." | ||
| 109 | |||
| 110 | check_version $prog $min | ||
| 111 | |||
| 112 | retval=$? | ||
| 113 | |||
| 114 | case $retval in | ||
| 115 | 0) stat="ok" ;; | ||
| 116 | 1) stat="missing" ;; | ||
| 117 | 2) stat="too old" ;; | ||
| 118 | *) stat="unable to check" ;; | ||
| 119 | esac | ||
| 120 | |||
| 121 | echo $stat | ||
| 122 | |||
| 123 | if [ $retval -ne 0 ]; then | ||
| 124 | missing="$missing $prog" | ||
| 125 | eval ${prog}_why=\""$stat"\" | ||
| 126 | fi | ||
| 127 | |||
| 128 | done | ||
| 129 | |||
| 130 | |||
| 131 | if [ x"$missing" != x ]; then | ||
| 132 | |||
| 133 | cat <<EOF | ||
| 134 | |||
| 135 | Building Emacs from Bzr requires the following specialized programs: | ||
| 136 | EOF | ||
| 137 | |||
| 138 | for prog in $progs; do | ||
| 139 | eval min=\$${prog}_min | ||
| 140 | |||
| 141 | echo "$prog (minimum version $min)" | ||
| 142 | done | ||
| 143 | |||
| 144 | |||
| 145 | cat <<EOF | ||
| 146 | |||
| 147 | Your system seems to be missing the following tool(s): | ||
| 148 | EOF | ||
| 149 | |||
| 150 | for prog in $missing; do | ||
| 151 | eval why=\$${prog}_why | ||
| 152 | |||
| 153 | echo "$prog ($why)" | ||
| 154 | done | ||
| 155 | |||
| 156 | cat <<EOF | ||
| 157 | |||
| 158 | If you think you have the required tools, please add them to your PATH | ||
| 159 | and re-run this script. | ||
| 160 | |||
| 161 | Otherwise, please try installing them. | ||
| 162 | On systems using rpm and yum, try: "yum install PACKAGE" | ||
| 163 | On systems using dpkg and apt, try: "apt-get install PACKAGE" | ||
| 164 | Then re-run this script. | ||
| 165 | |||
| 166 | If you do not have permission to do this, or if the version provided | ||
| 167 | by your system is too old, it is normally straightforward to build | ||
| 168 | these packages from source. You can find the sources at: | ||
| 169 | |||
| 170 | ftp://ftp.gnu.org/gnu/PACKAGE/ | ||
| 171 | |||
| 172 | Download the package (make sure you get at least the minimum version | ||
| 173 | listed above), extract it using tar, then run configure, make, | ||
| 174 | make install. Add the installation directory to your PATH and re-run | ||
| 175 | this script. | ||
| 176 | |||
| 177 | If you know that the required versions are in your PATH, but this | ||
| 178 | script has made an error, then you can simply run | ||
| 179 | |||
| 180 | autoreconf -I m4 | ||
| 181 | |||
| 182 | instead of this script. | ||
| 183 | |||
| 184 | If all else fails, you can try using the pre-built versions of the | ||
| 185 | generated files by doing: | ||
| 186 | |||
| 187 | cd autogen && ./copy_autogen | ||
| 188 | |||
| 189 | This is not recommended - see the comments in \`copy_autogen'. | ||
| 190 | |||
| 191 | Please report any problems with this script to bug-gnu-emacs@gnu.org . | ||
| 192 | EOF | ||
| 193 | |||
| 194 | exit 1 | ||
| 195 | fi | ||
| 196 | |||
| 197 | echo "Your system has the required tools, running autoreconf..." | ||
| 198 | |||
| 199 | |||
| 200 | ## Let autoreconf figure out what, if anything, needs doing. | ||
| 201 | autoreconf -I m4 || exit $? | ||
| 202 | |||
| 203 | echo "You can now run \`./configure'." | ||
| 204 | |||
| 205 | exit 0 | ||
| 206 | |||
| 207 | ### autogen.sh ends here | ||
diff --git a/autogen/Makefile.in b/autogen/Makefile.in new file mode 100644 index 00000000000..502b3dbb927 --- /dev/null +++ b/autogen/Makefile.in | |||
| @@ -0,0 +1,1301 @@ | |||
| 1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
| 2 | # @configure_input@ | ||
| 3 | |||
| 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
| 5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
| 6 | # Inc. | ||
| 7 | # This Makefile.in is free software; the Free Software Foundation | ||
| 8 | # gives unlimited permission to copy and/or distribute it, | ||
| 9 | # with or without modifications, as long as this notice is preserved. | ||
| 10 | |||
| 11 | # This program is distributed in the hope that it will be useful, | ||
| 12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
| 13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 14 | # PARTICULAR PURPOSE. | ||
| 15 | |||
| 16 | @SET_MAKE@ | ||
| 17 | |||
| 18 | # Copyright (C) 2002-2011 Free Software Foundation, Inc. | ||
| 19 | # | ||
| 20 | # This file is free software, distributed under the terms of the GNU | ||
| 21 | # General Public License. As a special exception to the GNU General | ||
| 22 | # Public License, this file may be distributed as part of a program | ||
| 23 | # that contains a configuration script generated by Autoconf, under | ||
| 24 | # the same distribution terms as the rest of that program. | ||
| 25 | # | ||
| 26 | # Generated by gnulib-tool. | ||
| 27 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files crypto/md5 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink strftime symlink sys_stat | ||
| 28 | |||
| 29 | VPATH = @srcdir@ | ||
| 30 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
| 31 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
| 32 | pkglibdir = $(libdir)/@PACKAGE@ | ||
| 33 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
| 34 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
| 35 | install_sh_DATA = $(install_sh) -c -m 644 | ||
| 36 | install_sh_PROGRAM = $(install_sh) -c | ||
| 37 | install_sh_SCRIPT = $(install_sh) -c | ||
| 38 | INSTALL_HEADER = $(INSTALL_DATA) | ||
| 39 | transform = $(program_transform_name) | ||
| 40 | NORMAL_INSTALL = : | ||
| 41 | PRE_INSTALL = : | ||
| 42 | POST_INSTALL = : | ||
| 43 | NORMAL_UNINSTALL = : | ||
| 44 | PRE_UNINSTALL = : | ||
| 45 | POST_UNINSTALL = : | ||
| 46 | build_triplet = @build@ | ||
| 47 | host_triplet = @host@ | ||
| 48 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ | ||
| 49 | $(srcdir)/gnulib.mk COPYING | ||
| 50 | subdir = lib | ||
| 51 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
| 52 | am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ | ||
| 53 | $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/extensions.m4 \ | ||
| 54 | $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/getloadavg.m4 \ | ||
| 55 | $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gl-comp.m4 \ | ||
| 56 | $(top_srcdir)/m4/gnulib-common.m4 \ | ||
| 57 | $(top_srcdir)/m4/include_next.m4 $(top_srcdir)/m4/longlong.m4 \ | ||
| 58 | $(top_srcdir)/m4/lstat.m4 $(top_srcdir)/m4/md5.m4 \ | ||
| 59 | $(top_srcdir)/m4/mktime.m4 $(top_srcdir)/m4/multiarch.m4 \ | ||
| 60 | $(top_srcdir)/m4/readlink.m4 $(top_srcdir)/m4/st_dm_mode.m4 \ | ||
| 61 | $(top_srcdir)/m4/stat.m4 $(top_srcdir)/m4/stdbool.m4 \ | ||
| 62 | $(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \ | ||
| 63 | $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/strftime.m4 \ | ||
| 64 | $(top_srcdir)/m4/symlink.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ | ||
| 65 | $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/time_r.m4 \ | ||
| 66 | $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/unistd_h.m4 \ | ||
| 67 | $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/configure.in | ||
| 68 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
| 69 | $(ACLOCAL_M4) | ||
| 70 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
| 71 | CONFIG_HEADER = $(top_builddir)/src/config.h | ||
| 72 | CONFIG_CLEAN_FILES = | ||
| 73 | CONFIG_CLEAN_VPATH_FILES = | ||
| 74 | LIBRARIES = $(noinst_LIBRARIES) | ||
| 75 | AR = ar | ||
| 76 | ARFLAGS = cru | ||
| 77 | libgnu_a_AR = $(AR) $(ARFLAGS) | ||
| 78 | am__DEPENDENCIES_1 = | ||
| 79 | am_libgnu_a_OBJECTS = dtoastr.$(OBJEXT) | ||
| 80 | libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS) | ||
| 81 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
| 82 | am__depfiles_maybe = depfiles | ||
| 83 | am__mv = mv -f | ||
| 84 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
| 85 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
| 86 | CCLD = $(CC) | ||
| 87 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
| 88 | SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) | ||
| 89 | DIST_SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) | ||
| 90 | ETAGS = etags | ||
| 91 | CTAGS = ctags | ||
| 92 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
| 93 | ACLOCAL = @ACLOCAL@ | ||
| 94 | ALLOCA = @ALLOCA@ | ||
| 95 | ALSA_CFLAGS = @ALSA_CFLAGS@ | ||
| 96 | ALSA_LIBS = @ALSA_LIBS@ | ||
| 97 | AMTAR = @AMTAR@ | ||
| 98 | APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ | ||
| 99 | AUTOCONF = @AUTOCONF@ | ||
| 100 | AUTOHEADER = @AUTOHEADER@ | ||
| 101 | AUTOMAKE = @AUTOMAKE@ | ||
| 102 | AWK = @AWK@ | ||
| 103 | BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ | ||
| 104 | BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ | ||
| 105 | BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ | ||
| 106 | BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ | ||
| 107 | BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ | ||
| 108 | BLESSMAIL_TARGET = @BLESSMAIL_TARGET@ | ||
| 109 | CANNOT_DUMP = @CANNOT_DUMP@ | ||
| 110 | CC = @CC@ | ||
| 111 | CCDEPMODE = @CCDEPMODE@ | ||
| 112 | CFLAGS = @CFLAGS@ | ||
| 113 | CFLAGS_SOUND = @CFLAGS_SOUND@ | ||
| 114 | COM_ERRLIB = @COM_ERRLIB@ | ||
| 115 | CPP = @CPP@ | ||
| 116 | CPPFLAGS = @CPPFLAGS@ | ||
| 117 | CRT_DIR = @CRT_DIR@ | ||
| 118 | CRYPTOLIB = @CRYPTOLIB@ | ||
| 119 | CYGPATH_W = @CYGPATH_W@ | ||
| 120 | CYGWIN_OBJ = @CYGWIN_OBJ@ | ||
| 121 | C_SWITCH_MACHINE = @C_SWITCH_MACHINE@ | ||
| 122 | C_SWITCH_SYSTEM = @C_SWITCH_SYSTEM@ | ||
| 123 | C_SWITCH_X_SITE = @C_SWITCH_X_SITE@ | ||
| 124 | C_SWITCH_X_SYSTEM = @C_SWITCH_X_SYSTEM@ | ||
| 125 | C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@ | ||
| 126 | DBUS_CFLAGS = @DBUS_CFLAGS@ | ||
| 127 | DBUS_LIBS = @DBUS_LIBS@ | ||
| 128 | DBUS_OBJ = @DBUS_OBJ@ | ||
| 129 | DEFS = @DEFS@ | ||
| 130 | DEPDIR = @DEPDIR@ | ||
| 131 | DEPFLAGS = @DEPFLAGS@ | ||
| 132 | DESLIB = @DESLIB@ | ||
| 133 | ECHO_C = @ECHO_C@ | ||
| 134 | ECHO_N = @ECHO_N@ | ||
| 135 | ECHO_T = @ECHO_T@ | ||
| 136 | EGREP = @EGREP@ | ||
| 137 | EXEEXT = @EXEEXT@ | ||
| 138 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
| 139 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
| 140 | FONT_OBJ = @FONT_OBJ@ | ||
| 141 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
| 142 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
| 143 | GCONF_CFLAGS = @GCONF_CFLAGS@ | ||
| 144 | GCONF_LIBS = @GCONF_LIBS@ | ||
| 145 | GETLOADAVG_LIBS = @GETLOADAVG_LIBS@ | ||
| 146 | GETOPT_H = @GETOPT_H@ | ||
| 147 | GMALLOC_OBJ = @GMALLOC_OBJ@ | ||
| 148 | GNULIB_ATOLL = @GNULIB_ATOLL@ | ||
| 149 | GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ | ||
| 150 | GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ | ||
| 151 | GNULIB_CHOWN = @GNULIB_CHOWN@ | ||
| 152 | GNULIB_CLOSE = @GNULIB_CLOSE@ | ||
| 153 | GNULIB_DUP2 = @GNULIB_DUP2@ | ||
| 154 | GNULIB_DUP3 = @GNULIB_DUP3@ | ||
| 155 | GNULIB_ENVIRON = @GNULIB_ENVIRON@ | ||
| 156 | GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ | ||
| 157 | GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ | ||
| 158 | GNULIB_FCHDIR = @GNULIB_FCHDIR@ | ||
| 159 | GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ | ||
| 160 | GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ | ||
| 161 | GNULIB_FSTATAT = @GNULIB_FSTATAT@ | ||
| 162 | GNULIB_FSYNC = @GNULIB_FSYNC@ | ||
| 163 | GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ | ||
| 164 | GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ | ||
| 165 | GNULIB_GETCWD = @GNULIB_GETCWD@ | ||
| 166 | GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ | ||
| 167 | GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ | ||
| 168 | GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ | ||
| 169 | GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ | ||
| 170 | GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ | ||
| 171 | GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ | ||
| 172 | GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ | ||
| 173 | GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ | ||
| 174 | GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ | ||
| 175 | GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ | ||
| 176 | GNULIB_GRANTPT = @GNULIB_GRANTPT@ | ||
| 177 | GNULIB_LCHMOD = @GNULIB_LCHMOD@ | ||
| 178 | GNULIB_LCHOWN = @GNULIB_LCHOWN@ | ||
| 179 | GNULIB_LINK = @GNULIB_LINK@ | ||
| 180 | GNULIB_LINKAT = @GNULIB_LINKAT@ | ||
| 181 | GNULIB_LSEEK = @GNULIB_LSEEK@ | ||
| 182 | GNULIB_LSTAT = @GNULIB_LSTAT@ | ||
| 183 | GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ | ||
| 184 | GNULIB_MBTOWC = @GNULIB_MBTOWC@ | ||
| 185 | GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ | ||
| 186 | GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ | ||
| 187 | GNULIB_MKFIFO = @GNULIB_MKFIFO@ | ||
| 188 | GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ | ||
| 189 | GNULIB_MKNOD = @GNULIB_MKNOD@ | ||
| 190 | GNULIB_MKNODAT = @GNULIB_MKNODAT@ | ||
| 191 | GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ | ||
| 192 | GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ | ||
| 193 | GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ | ||
| 194 | GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ | ||
| 195 | GNULIB_MKTIME = @GNULIB_MKTIME@ | ||
| 196 | GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ | ||
| 197 | GNULIB_PIPE = @GNULIB_PIPE@ | ||
| 198 | GNULIB_PIPE2 = @GNULIB_PIPE2@ | ||
| 199 | GNULIB_PREAD = @GNULIB_PREAD@ | ||
| 200 | GNULIB_PTSNAME = @GNULIB_PTSNAME@ | ||
| 201 | GNULIB_PUTENV = @GNULIB_PUTENV@ | ||
| 202 | GNULIB_PWRITE = @GNULIB_PWRITE@ | ||
| 203 | GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ | ||
| 204 | GNULIB_READLINK = @GNULIB_READLINK@ | ||
| 205 | GNULIB_READLINKAT = @GNULIB_READLINKAT@ | ||
| 206 | GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ | ||
| 207 | GNULIB_REALPATH = @GNULIB_REALPATH@ | ||
| 208 | GNULIB_RMDIR = @GNULIB_RMDIR@ | ||
| 209 | GNULIB_RPMATCH = @GNULIB_RPMATCH@ | ||
| 210 | GNULIB_SETENV = @GNULIB_SETENV@ | ||
| 211 | GNULIB_SLEEP = @GNULIB_SLEEP@ | ||
| 212 | GNULIB_STAT = @GNULIB_STAT@ | ||
| 213 | GNULIB_STRPTIME = @GNULIB_STRPTIME@ | ||
| 214 | GNULIB_STRTOD = @GNULIB_STRTOD@ | ||
| 215 | GNULIB_STRTOLL = @GNULIB_STRTOLL@ | ||
| 216 | GNULIB_STRTOULL = @GNULIB_STRTOULL@ | ||
| 217 | GNULIB_SYMLINK = @GNULIB_SYMLINK@ | ||
| 218 | GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ | ||
| 219 | GNULIB_SYSTEM_POSIX = @GNULIB_SYSTEM_POSIX@ | ||
| 220 | GNULIB_TIMEGM = @GNULIB_TIMEGM@ | ||
| 221 | GNULIB_TIME_R = @GNULIB_TIME_R@ | ||
| 222 | GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ | ||
| 223 | GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ | ||
| 224 | GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ | ||
| 225 | GNULIB_UNLINK = @GNULIB_UNLINK@ | ||
| 226 | GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ | ||
| 227 | GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ | ||
| 228 | GNULIB_UNSETENV = @GNULIB_UNSETENV@ | ||
| 229 | GNULIB_USLEEP = @GNULIB_USLEEP@ | ||
| 230 | GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ | ||
| 231 | GNULIB_WCTOMB = @GNULIB_WCTOMB@ | ||
| 232 | GNULIB_WRITE = @GNULIB_WRITE@ | ||
| 233 | GNULIB__EXIT = @GNULIB__EXIT@ | ||
| 234 | GNU_OBJC_CFLAGS = @GNU_OBJC_CFLAGS@ | ||
| 235 | GREP = @GREP@ | ||
| 236 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
| 237 | GTK_LIBS = @GTK_LIBS@ | ||
| 238 | GTK_OBJ = @GTK_OBJ@ | ||
| 239 | GZIP_INFO = @GZIP_INFO@ | ||
| 240 | GZIP_PROG = @GZIP_PROG@ | ||
| 241 | HAVE_ATOLL = @HAVE_ATOLL@ | ||
| 242 | HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ | ||
| 243 | HAVE_CHOWN = @HAVE_CHOWN@ | ||
| 244 | HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ | ||
| 245 | HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ | ||
| 246 | HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ | ||
| 247 | HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ | ||
| 248 | HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ | ||
| 249 | HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ | ||
| 250 | HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ | ||
| 251 | HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ | ||
| 252 | HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ | ||
| 253 | HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ | ||
| 254 | HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ | ||
| 255 | HAVE_DUP2 = @HAVE_DUP2@ | ||
| 256 | HAVE_DUP3 = @HAVE_DUP3@ | ||
| 257 | HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ | ||
| 258 | HAVE_FACCESSAT = @HAVE_FACCESSAT@ | ||
| 259 | HAVE_FCHDIR = @HAVE_FCHDIR@ | ||
| 260 | HAVE_FCHMODAT = @HAVE_FCHMODAT@ | ||
| 261 | HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ | ||
| 262 | HAVE_FSTATAT = @HAVE_FSTATAT@ | ||
| 263 | HAVE_FSYNC = @HAVE_FSYNC@ | ||
| 264 | HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ | ||
| 265 | HAVE_FUTIMENS = @HAVE_FUTIMENS@ | ||
| 266 | HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ | ||
| 267 | HAVE_GETGROUPS = @HAVE_GETGROUPS@ | ||
| 268 | HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ | ||
| 269 | HAVE_GETLOGIN = @HAVE_GETLOGIN@ | ||
| 270 | HAVE_GETOPT_H = @HAVE_GETOPT_H@ | ||
| 271 | HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ | ||
| 272 | HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ | ||
| 273 | HAVE_GRANTPT = @HAVE_GRANTPT@ | ||
| 274 | HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ | ||
| 275 | HAVE_LCHMOD = @HAVE_LCHMOD@ | ||
| 276 | HAVE_LCHOWN = @HAVE_LCHOWN@ | ||
| 277 | HAVE_LINK = @HAVE_LINK@ | ||
| 278 | HAVE_LINKAT = @HAVE_LINKAT@ | ||
| 279 | HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ | ||
| 280 | HAVE_LSTAT = @HAVE_LSTAT@ | ||
| 281 | HAVE_MAKEINFO = @HAVE_MAKEINFO@ | ||
| 282 | HAVE_MKDIRAT = @HAVE_MKDIRAT@ | ||
| 283 | HAVE_MKDTEMP = @HAVE_MKDTEMP@ | ||
| 284 | HAVE_MKFIFO = @HAVE_MKFIFO@ | ||
| 285 | HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ | ||
| 286 | HAVE_MKNOD = @HAVE_MKNOD@ | ||
| 287 | HAVE_MKNODAT = @HAVE_MKNODAT@ | ||
| 288 | HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ | ||
| 289 | HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ | ||
| 290 | HAVE_MKSTEMP = @HAVE_MKSTEMP@ | ||
| 291 | HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ | ||
| 292 | HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ | ||
| 293 | HAVE_OS_H = @HAVE_OS_H@ | ||
| 294 | HAVE_PIPE = @HAVE_PIPE@ | ||
| 295 | HAVE_PIPE2 = @HAVE_PIPE2@ | ||
| 296 | HAVE_PREAD = @HAVE_PREAD@ | ||
| 297 | HAVE_PTSNAME = @HAVE_PTSNAME@ | ||
| 298 | HAVE_PWRITE = @HAVE_PWRITE@ | ||
| 299 | HAVE_RANDOM_H = @HAVE_RANDOM_H@ | ||
| 300 | HAVE_RANDOM_R = @HAVE_RANDOM_R@ | ||
| 301 | HAVE_READLINK = @HAVE_READLINK@ | ||
| 302 | HAVE_READLINKAT = @HAVE_READLINKAT@ | ||
| 303 | HAVE_REALPATH = @HAVE_REALPATH@ | ||
| 304 | HAVE_RPMATCH = @HAVE_RPMATCH@ | ||
| 305 | HAVE_SETENV = @HAVE_SETENV@ | ||
| 306 | HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ | ||
| 307 | HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ | ||
| 308 | HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ | ||
| 309 | HAVE_SLEEP = @HAVE_SLEEP@ | ||
| 310 | HAVE_STDINT_H = @HAVE_STDINT_H@ | ||
| 311 | HAVE_STRPTIME = @HAVE_STRPTIME@ | ||
| 312 | HAVE_STRTOD = @HAVE_STRTOD@ | ||
| 313 | HAVE_STRTOLL = @HAVE_STRTOLL@ | ||
| 314 | HAVE_STRTOULL = @HAVE_STRTOULL@ | ||
| 315 | HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ | ||
| 316 | HAVE_SYMLINK = @HAVE_SYMLINK@ | ||
| 317 | HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ | ||
| 318 | HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ | ||
| 319 | HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ | ||
| 320 | HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ | ||
| 321 | HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ | ||
| 322 | HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ | ||
| 323 | HAVE_TIMEGM = @HAVE_TIMEGM@ | ||
| 324 | HAVE_UNISTD_H = @HAVE_UNISTD_H@ | ||
| 325 | HAVE_UNLINKAT = @HAVE_UNLINKAT@ | ||
| 326 | HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ | ||
| 327 | HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ | ||
| 328 | HAVE_USLEEP = @HAVE_USLEEP@ | ||
| 329 | HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ | ||
| 330 | HAVE_WCHAR_H = @HAVE_WCHAR_H@ | ||
| 331 | HAVE_WCHAR_T = @HAVE_WCHAR_T@ | ||
| 332 | HAVE_XSERVER = @HAVE_XSERVER@ | ||
| 333 | HAVE__BOOL = @HAVE__BOOL@ | ||
| 334 | HAVE__EXIT = @HAVE__EXIT@ | ||
| 335 | IMAGEMAGICK_CFLAGS = @IMAGEMAGICK_CFLAGS@ | ||
| 336 | IMAGEMAGICK_LIBS = @IMAGEMAGICK_LIBS@ | ||
| 337 | INCLUDE_NEXT = @INCLUDE_NEXT@ | ||
| 338 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ | ||
| 339 | INSTALL = @INSTALL@ | ||
| 340 | INSTALL_DATA = @INSTALL_DATA@ | ||
| 341 | INSTALL_INFO = @INSTALL_INFO@ | ||
| 342 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
| 343 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
| 344 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
| 345 | KRB4LIB = @KRB4LIB@ | ||
| 346 | KRB5LIB = @KRB5LIB@ | ||
| 347 | LDFLAGS = @LDFLAGS@ | ||
| 348 | LD_FIRSTFLAG = @LD_FIRSTFLAG@ | ||
| 349 | LD_SWITCH_SYSTEM = @LD_SWITCH_SYSTEM@ | ||
| 350 | LD_SWITCH_SYSTEM_TEMACS = @LD_SWITCH_SYSTEM_TEMACS@ | ||
| 351 | LD_SWITCH_X_SITE = @LD_SWITCH_X_SITE@ | ||
| 352 | LD_SWITCH_X_SITE_AUX = @LD_SWITCH_X_SITE_AUX@ | ||
| 353 | LD_SWITCH_X_SITE_AUX_RPATH = @LD_SWITCH_X_SITE_AUX_RPATH@ | ||
| 354 | LIBGIF = @LIBGIF@ | ||
| 355 | LIBGNUTLS_CFLAGS = @LIBGNUTLS_CFLAGS@ | ||
| 356 | LIBGNUTLS_LIBS = @LIBGNUTLS_LIBS@ | ||
| 357 | LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@ | ||
| 358 | LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@ | ||
| 359 | LIBGPM = @LIBGPM@ | ||
| 360 | LIBHESIOD = @LIBHESIOD@ | ||
| 361 | LIBINTL = @LIBINTL@ | ||
| 362 | LIBJPEG = @LIBJPEG@ | ||
| 363 | LIBOBJS = @LIBOBJS@ | ||
| 364 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ | ||
| 365 | LIBOTF_LIBS = @LIBOTF_LIBS@ | ||
| 366 | LIBPNG = @LIBPNG@ | ||
| 367 | LIBRESOLV = @LIBRESOLV@ | ||
| 368 | LIBS = @LIBS@ | ||
| 369 | LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ | ||
| 370 | LIBSOUND = @LIBSOUND@ | ||
| 371 | LIBS_MAIL = @LIBS_MAIL@ | ||
| 372 | LIBS_SYSTEM = @LIBS_SYSTEM@ | ||
| 373 | LIBS_TERMCAP = @LIBS_TERMCAP@ | ||
| 374 | LIBTIFF = @LIBTIFF@ | ||
| 375 | LIBXMENU = @LIBXMENU@ | ||
| 376 | LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ | ||
| 377 | LIBXML2_LIBS = @LIBXML2_LIBS@ | ||
| 378 | LIBXMU = @LIBXMU@ | ||
| 379 | LIBXPM = @LIBXPM@ | ||
| 380 | LIBXSM = @LIBXSM@ | ||
| 381 | LIBXTR6 = @LIBXTR6@ | ||
| 382 | LIBXT_OTHER = @LIBXT_OTHER@ | ||
| 383 | LIBX_OTHER = @LIBX_OTHER@ | ||
| 384 | LIB_GCC = @LIB_GCC@ | ||
| 385 | LIB_MATH = @LIB_MATH@ | ||
| 386 | LIB_STANDARD = @LIB_STANDARD@ | ||
| 387 | LTLIBINTL = @LTLIBINTL@ | ||
| 388 | LTLIBOBJS = @LTLIBOBJS@ | ||
| 389 | M17N_FLT_CFLAGS = @M17N_FLT_CFLAGS@ | ||
| 390 | M17N_FLT_LIBS = @M17N_FLT_LIBS@ | ||
| 391 | MAINT = @MAINT@ | ||
| 392 | MAKEINFO = @MAKEINFO@ | ||
| 393 | MKDEPDIR = @MKDEPDIR@ | ||
| 394 | MKDIR_P = @MKDIR_P@ | ||
| 395 | MOUSE_SUPPORT = @MOUSE_SUPPORT@ | ||
| 396 | M_FILE = @M_FILE@ | ||
| 397 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ | ||
| 398 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ | ||
| 399 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ | ||
| 400 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ | ||
| 401 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ | ||
| 402 | NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ | ||
| 403 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ | ||
| 404 | NEXT_GETOPT_H = @NEXT_GETOPT_H@ | ||
| 405 | NEXT_STDDEF_H = @NEXT_STDDEF_H@ | ||
| 406 | NEXT_STDINT_H = @NEXT_STDINT_H@ | ||
| 407 | NEXT_STDLIB_H = @NEXT_STDLIB_H@ | ||
| 408 | NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ | ||
| 409 | NEXT_TIME_H = @NEXT_TIME_H@ | ||
| 410 | NEXT_UNISTD_H = @NEXT_UNISTD_H@ | ||
| 411 | NS_OBJ = @NS_OBJ@ | ||
| 412 | NS_OBJC_OBJ = @NS_OBJC_OBJ@ | ||
| 413 | NS_SUPPORT = @NS_SUPPORT@ | ||
| 414 | OBJEXT = @OBJEXT@ | ||
| 415 | OLDXMENU = @OLDXMENU@ | ||
| 416 | OLDXMENU_DEPS = @OLDXMENU_DEPS@ | ||
| 417 | OLDXMENU_TARGET = @OLDXMENU_TARGET@ | ||
| 418 | OTHER_FILES = @OTHER_FILES@ | ||
| 419 | PACKAGE = @PACKAGE@ | ||
| 420 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
| 421 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
| 422 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
| 423 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
| 424 | PACKAGE_URL = @PACKAGE_URL@ | ||
| 425 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
| 426 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
| 427 | PKG_CONFIG = @PKG_CONFIG@ | ||
| 428 | POST_ALLOC_OBJ = @POST_ALLOC_OBJ@ | ||
| 429 | PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ | ||
| 430 | PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ | ||
| 431 | PRE_ALLOC_OBJ = @PRE_ALLOC_OBJ@ | ||
| 432 | PROFILING_CFLAGS = @PROFILING_CFLAGS@ | ||
| 433 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ | ||
| 434 | PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ | ||
| 435 | RALLOC_OBJ = @RALLOC_OBJ@ | ||
| 436 | RANLIB = @RANLIB@ | ||
| 437 | REPLACE_CALLOC = @REPLACE_CALLOC@ | ||
| 438 | REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ | ||
| 439 | REPLACE_CHOWN = @REPLACE_CHOWN@ | ||
| 440 | REPLACE_CLOSE = @REPLACE_CLOSE@ | ||
| 441 | REPLACE_DUP = @REPLACE_DUP@ | ||
| 442 | REPLACE_DUP2 = @REPLACE_DUP2@ | ||
| 443 | REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ | ||
| 444 | REPLACE_FSTAT = @REPLACE_FSTAT@ | ||
| 445 | REPLACE_FSTATAT = @REPLACE_FSTATAT@ | ||
| 446 | REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ | ||
| 447 | REPLACE_GETCWD = @REPLACE_GETCWD@ | ||
| 448 | REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ | ||
| 449 | REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ | ||
| 450 | REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ | ||
| 451 | REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ | ||
| 452 | REPLACE_LCHOWN = @REPLACE_LCHOWN@ | ||
| 453 | REPLACE_LINK = @REPLACE_LINK@ | ||
| 454 | REPLACE_LINKAT = @REPLACE_LINKAT@ | ||
| 455 | REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ | ||
| 456 | REPLACE_LSEEK = @REPLACE_LSEEK@ | ||
| 457 | REPLACE_LSTAT = @REPLACE_LSTAT@ | ||
| 458 | REPLACE_MALLOC = @REPLACE_MALLOC@ | ||
| 459 | REPLACE_MBTOWC = @REPLACE_MBTOWC@ | ||
| 460 | REPLACE_MKDIR = @REPLACE_MKDIR@ | ||
| 461 | REPLACE_MKFIFO = @REPLACE_MKFIFO@ | ||
| 462 | REPLACE_MKNOD = @REPLACE_MKNOD@ | ||
| 463 | REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ | ||
| 464 | REPLACE_MKTIME = @REPLACE_MKTIME@ | ||
| 465 | REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ | ||
| 466 | REPLACE_NULL = @REPLACE_NULL@ | ||
| 467 | REPLACE_PREAD = @REPLACE_PREAD@ | ||
| 468 | REPLACE_PUTENV = @REPLACE_PUTENV@ | ||
| 469 | REPLACE_PWRITE = @REPLACE_PWRITE@ | ||
| 470 | REPLACE_READLINK = @REPLACE_READLINK@ | ||
| 471 | REPLACE_REALLOC = @REPLACE_REALLOC@ | ||
| 472 | REPLACE_REALPATH = @REPLACE_REALPATH@ | ||
| 473 | REPLACE_RMDIR = @REPLACE_RMDIR@ | ||
| 474 | REPLACE_SETENV = @REPLACE_SETENV@ | ||
| 475 | REPLACE_SLEEP = @REPLACE_SLEEP@ | ||
| 476 | REPLACE_STAT = @REPLACE_STAT@ | ||
| 477 | REPLACE_STRTOD = @REPLACE_STRTOD@ | ||
| 478 | REPLACE_SYMLINK = @REPLACE_SYMLINK@ | ||
| 479 | REPLACE_TIMEGM = @REPLACE_TIMEGM@ | ||
| 480 | REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ | ||
| 481 | REPLACE_UNLINK = @REPLACE_UNLINK@ | ||
| 482 | REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ | ||
| 483 | REPLACE_UNSETENV = @REPLACE_UNSETENV@ | ||
| 484 | REPLACE_USLEEP = @REPLACE_USLEEP@ | ||
| 485 | REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ | ||
| 486 | REPLACE_WCTOMB = @REPLACE_WCTOMB@ | ||
| 487 | REPLACE_WRITE = @REPLACE_WRITE@ | ||
| 488 | RSVG_CFLAGS = @RSVG_CFLAGS@ | ||
| 489 | RSVG_LIBS = @RSVG_LIBS@ | ||
| 490 | SET_MAKE = @SET_MAKE@ | ||
| 491 | SHELL = @SHELL@ | ||
| 492 | SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ | ||
| 493 | SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ | ||
| 494 | START_FILES = @START_FILES@ | ||
| 495 | STDBOOL_H = @STDBOOL_H@ | ||
| 496 | STDDEF_H = @STDDEF_H@ | ||
| 497 | STDINT_H = @STDINT_H@ | ||
| 498 | STRIP = @STRIP@ | ||
| 499 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ | ||
| 500 | S_FILE = @S_FILE@ | ||
| 501 | TEMACS_LDFLAGS2 = @TEMACS_LDFLAGS2@ | ||
| 502 | TERMCAP_OBJ = @TERMCAP_OBJ@ | ||
| 503 | TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ | ||
| 504 | TOOLKIT_LIBW = @TOOLKIT_LIBW@ | ||
| 505 | TOOLTIP_SUPPORT = @TOOLTIP_SUPPORT@ | ||
| 506 | UNEXEC_OBJ = @UNEXEC_OBJ@ | ||
| 507 | UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ | ||
| 508 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ | ||
| 509 | VERSION = @VERSION@ | ||
| 510 | VMLIMIT_OBJ = @VMLIMIT_OBJ@ | ||
| 511 | WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ | ||
| 512 | WIDGET_OBJ = @WIDGET_OBJ@ | ||
| 513 | WINDOW_SUPPORT = @WINDOW_SUPPORT@ | ||
| 514 | WINT_T_SUFFIX = @WINT_T_SUFFIX@ | ||
| 515 | XFT_CFLAGS = @XFT_CFLAGS@ | ||
| 516 | XFT_LIBS = @XFT_LIBS@ | ||
| 517 | XMENU_OBJ = @XMENU_OBJ@ | ||
| 518 | XMKMF = @XMKMF@ | ||
| 519 | XOBJ = @XOBJ@ | ||
| 520 | X_TOOLKIT_TYPE = @X_TOOLKIT_TYPE@ | ||
| 521 | abs_builddir = @abs_builddir@ | ||
| 522 | abs_srcdir = @abs_srcdir@ | ||
| 523 | abs_top_builddir = @abs_top_builddir@ | ||
| 524 | abs_top_srcdir = @abs_top_srcdir@ | ||
| 525 | ac_ct_CC = @ac_ct_CC@ | ||
| 526 | am__include = @am__include@ | ||
| 527 | am__leading_dot = @am__leading_dot@ | ||
| 528 | am__quote = @am__quote@ | ||
| 529 | am__tar = @am__tar@ | ||
| 530 | am__untar = @am__untar@ | ||
| 531 | archlibdir = @archlibdir@ | ||
| 532 | bindir = @bindir@ | ||
| 533 | bitmapdir = @bitmapdir@ | ||
| 534 | build = @build@ | ||
| 535 | build_alias = @build_alias@ | ||
| 536 | build_cpu = @build_cpu@ | ||
| 537 | build_os = @build_os@ | ||
| 538 | build_vendor = @build_vendor@ | ||
| 539 | builddir = @builddir@ | ||
| 540 | canonical = @canonical@ | ||
| 541 | configuration = @configuration@ | ||
| 542 | datadir = @datadir@ | ||
| 543 | datarootdir = @datarootdir@ | ||
| 544 | docdir = @docdir@ | ||
| 545 | dvidir = @dvidir@ | ||
| 546 | etcdir = @etcdir@ | ||
| 547 | exec_prefix = @exec_prefix@ | ||
| 548 | gamedir = @gamedir@ | ||
| 549 | gameuser = @gameuser@ | ||
| 550 | gl_LIBOBJS = @gl_LIBOBJS@ | ||
| 551 | gl_LTLIBOBJS = @gl_LTLIBOBJS@ | ||
| 552 | gltests_LIBOBJS = @gltests_LIBOBJS@ | ||
| 553 | gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ | ||
| 554 | gltests_WITNESS = @gltests_WITNESS@ | ||
| 555 | host = @host@ | ||
| 556 | host_alias = @host_alias@ | ||
| 557 | host_cpu = @host_cpu@ | ||
| 558 | host_os = @host_os@ | ||
| 559 | host_vendor = @host_vendor@ | ||
| 560 | htmldir = @htmldir@ | ||
| 561 | includedir = @includedir@ | ||
| 562 | infodir = @infodir@ | ||
| 563 | install_sh = @install_sh@ | ||
| 564 | libdir = @libdir@ | ||
| 565 | libexecdir = @libexecdir@ | ||
| 566 | liblockfile = @liblockfile@ | ||
| 567 | lispdir = @lispdir@ | ||
| 568 | lisppath = @lisppath@ | ||
| 569 | localedir = @localedir@ | ||
| 570 | locallisppath = @locallisppath@ | ||
| 571 | localstatedir = @localstatedir@ | ||
| 572 | mandir = @mandir@ | ||
| 573 | mkdir_p = @mkdir_p@ | ||
| 574 | ns_appbindir = @ns_appbindir@ | ||
| 575 | ns_appdir = @ns_appdir@ | ||
| 576 | ns_appresdir = @ns_appresdir@ | ||
| 577 | ns_appsrc = @ns_appsrc@ | ||
| 578 | oldincludedir = @oldincludedir@ | ||
| 579 | pdfdir = @pdfdir@ | ||
| 580 | prefix = @prefix@ | ||
| 581 | program_transform_name = @program_transform_name@ | ||
| 582 | psdir = @psdir@ | ||
| 583 | sbindir = @sbindir@ | ||
| 584 | sharedstatedir = @sharedstatedir@ | ||
| 585 | srcdir = @srcdir@ | ||
| 586 | sysconfdir = @sysconfdir@ | ||
| 587 | target_alias = @target_alias@ | ||
| 588 | top_build_prefix = @top_build_prefix@ | ||
| 589 | top_builddir = @top_builddir@ | ||
| 590 | top_srcdir = @top_srcdir@ | ||
| 591 | version = @version@ | ||
| 592 | x_default_search_path = @x_default_search_path@ | ||
| 593 | |||
| 594 | # The BUILT_SOURCES created by this Makefile snippet are not used via #include | ||
| 595 | # statements but through direct file reference. Therefore this snippet must be | ||
| 596 | # present in all Makefile.am that need it. This is ensured by the applicability | ||
| 597 | # 'all' defined above. | ||
| 598 | |||
| 599 | # The BUILT_SOURCES created by this Makefile snippet are not used via #include | ||
| 600 | # statements but through direct file reference. Therefore this snippet must be | ||
| 601 | # present in all Makefile.am that need it. This is ensured by the applicability | ||
| 602 | # 'all' defined above. | ||
| 603 | BUILT_SOURCES = arg-nonnull.h c++defs.h $(GETOPT_H) $(STDBOOL_H) \ | ||
| 604 | $(STDDEF_H) $(STDINT_H) stdlib.h sys/stat.h time.h unistd.h \ | ||
| 605 | warn-on-use.h | ||
| 606 | EXTRA_DIST = $(top_srcdir)/./arg-nonnull.h $(top_srcdir)/./c++defs.h \ | ||
| 607 | md5.c md5.h dosname.h ftoastr.c ftoastr.h filemode.c \ | ||
| 608 | filemode.h getloadavg.c getopt.c getopt.in.h getopt1.c \ | ||
| 609 | getopt_int.h intprops.h lstat.c mktime-internal.h mktime.c \ | ||
| 610 | readlink.c stat.c stdbool.in.h stddef.in.h stdint.in.h \ | ||
| 611 | stdlib.in.h strftime.c strftime.h symlink.c sys_stat.in.h \ | ||
| 612 | time.in.h time_r.c unistd.in.h $(top_srcdir)/./warn-on-use.h | ||
| 613 | MOSTLYCLEANDIRS = sys | ||
| 614 | MOSTLYCLEANFILES = core *.stackdump arg-nonnull.h arg-nonnull.h-t \ | ||
| 615 | c++defs.h c++defs.h-t getopt.h getopt.h-t stdbool.h \ | ||
| 616 | stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t stdlib.h \ | ||
| 617 | stdlib.h-t sys/stat.h sys/stat.h-t time.h time.h-t unistd.h \ | ||
| 618 | unistd.h-t warn-on-use.h warn-on-use.h-t | ||
| 619 | noinst_LIBRARIES = libgnu.a | ||
| 620 | DEFAULT_INCLUDES = -I. -I../src -I$(top_srcdir)/src | ||
| 621 | libgnu_a_SOURCES = dtoastr.c gettext.h ignore-value.h | ||
| 622 | libgnu_a_LIBADD = $(gl_LIBOBJS) | ||
| 623 | libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) | ||
| 624 | EXTRA_libgnu_a_SOURCES = md5.c ftoastr.c filemode.c getloadavg.c \ | ||
| 625 | getopt.c getopt1.c lstat.c mktime.c readlink.c stat.c \ | ||
| 626 | strftime.c symlink.c time_r.c | ||
| 627 | ARG_NONNULL_H = arg-nonnull.h | ||
| 628 | CXXDEFS_H = c++defs.h | ||
| 629 | WARN_ON_USE_H = warn-on-use.h | ||
| 630 | all: $(BUILT_SOURCES) | ||
| 631 | $(MAKE) $(AM_MAKEFLAGS) all-am | ||
| 632 | |||
| 633 | .SUFFIXES: | ||
| 634 | .SUFFIXES: .c .o .obj | ||
| 635 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/gnulib.mk $(am__configure_deps) | ||
| 636 | @for dep in $?; do \ | ||
| 637 | case '$(am__configure_deps)' in \ | ||
| 638 | *$$dep*) \ | ||
| 639 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
| 640 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
| 641 | exit 1;; \ | ||
| 642 | esac; \ | ||
| 643 | done; \ | ||
| 644 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \ | ||
| 645 | $(am__cd) $(top_srcdir) && \ | ||
| 646 | $(AUTOMAKE) --gnu lib/Makefile | ||
| 647 | .PRECIOUS: Makefile | ||
| 648 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
| 649 | @case '$?' in \ | ||
| 650 | *config.status*) \ | ||
| 651 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
| 652 | *) \ | ||
| 653 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
| 654 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
| 655 | esac; | ||
| 656 | |||
| 657 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
| 658 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 659 | |||
| 660 | $(top_srcdir)/configure: $(am__configure_deps) | ||
| 661 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 662 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
| 663 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 664 | $(am__aclocal_m4_deps): | ||
| 665 | |||
| 666 | clean-noinstLIBRARIES: | ||
| 667 | -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) | ||
| 668 | libgnu.a: $(libgnu_a_OBJECTS) $(libgnu_a_DEPENDENCIES) | ||
| 669 | -rm -f libgnu.a | ||
| 670 | $(libgnu_a_AR) libgnu.a $(libgnu_a_OBJECTS) $(libgnu_a_LIBADD) | ||
| 671 | $(RANLIB) libgnu.a | ||
| 672 | |||
| 673 | mostlyclean-compile: | ||
| 674 | -rm -f *.$(OBJEXT) | ||
| 675 | |||
| 676 | distclean-compile: | ||
| 677 | -rm -f *.tab.c | ||
| 678 | |||
| 679 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dtoastr.Po@am__quote@ | ||
| 680 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@ | ||
| 681 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftoastr.Po@am__quote@ | ||
| 682 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getloadavg.Po@am__quote@ | ||
| 683 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@ | ||
| 684 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@ | ||
| 685 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstat.Po@am__quote@ | ||
| 686 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Po@am__quote@ | ||
| 687 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mktime.Po@am__quote@ | ||
| 688 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readlink.Po@am__quote@ | ||
| 689 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stat.Po@am__quote@ | ||
| 690 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strftime.Po@am__quote@ | ||
| 691 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symlink.Po@am__quote@ | ||
| 692 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time_r.Po@am__quote@ | ||
| 693 | |||
| 694 | .c.o: | ||
| 695 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
| 696 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 697 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 698 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 699 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
| 700 | |||
| 701 | .c.obj: | ||
| 702 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
| 703 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 704 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 705 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 706 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
| 707 | |||
| 708 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
| 709 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
| 710 | unique=`for i in $$list; do \ | ||
| 711 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
| 712 | done | \ | ||
| 713 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
| 714 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
| 715 | mkid -fID $$unique | ||
| 716 | tags: TAGS | ||
| 717 | |||
| 718 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
| 719 | $(TAGS_FILES) $(LISP) | ||
| 720 | set x; \ | ||
| 721 | here=`pwd`; \ | ||
| 722 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
| 723 | unique=`for i in $$list; do \ | ||
| 724 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
| 725 | done | \ | ||
| 726 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
| 727 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
| 728 | shift; \ | ||
| 729 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
| 730 | test -n "$$unique" || unique=$$empty_fix; \ | ||
| 731 | if test $$# -gt 0; then \ | ||
| 732 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 733 | "$$@" $$unique; \ | ||
| 734 | else \ | ||
| 735 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 736 | $$unique; \ | ||
| 737 | fi; \ | ||
| 738 | fi | ||
| 739 | ctags: CTAGS | ||
| 740 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
| 741 | $(TAGS_FILES) $(LISP) | ||
| 742 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
| 743 | unique=`for i in $$list; do \ | ||
| 744 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
| 745 | done | \ | ||
| 746 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
| 747 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
| 748 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
| 749 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
| 750 | $$unique | ||
| 751 | |||
| 752 | GTAGS: | ||
| 753 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
| 754 | && $(am__cd) $(top_srcdir) \ | ||
| 755 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
| 756 | |||
| 757 | distclean-tags: | ||
| 758 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
| 759 | |||
| 760 | distdir: $(DISTFILES) | ||
| 761 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 762 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 763 | list='$(DISTFILES)'; \ | ||
| 764 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
| 765 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
| 766 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
| 767 | case $$dist_files in \ | ||
| 768 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
| 769 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
| 770 | sort -u` ;; \ | ||
| 771 | esac; \ | ||
| 772 | for file in $$dist_files; do \ | ||
| 773 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
| 774 | if test -d $$d/$$file; then \ | ||
| 775 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
| 776 | if test -d "$(distdir)/$$file"; then \ | ||
| 777 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 778 | fi; \ | ||
| 779 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
| 780 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 781 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 782 | fi; \ | ||
| 783 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 784 | else \ | ||
| 785 | test -f "$(distdir)/$$file" \ | ||
| 786 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
| 787 | || exit 1; \ | ||
| 788 | fi; \ | ||
| 789 | done | ||
| 790 | check-am: all-am | ||
| 791 | check: $(BUILT_SOURCES) | ||
| 792 | $(MAKE) $(AM_MAKEFLAGS) check-am | ||
| 793 | all-am: Makefile $(LIBRARIES) | ||
| 794 | installdirs: | ||
| 795 | install: $(BUILT_SOURCES) | ||
| 796 | $(MAKE) $(AM_MAKEFLAGS) install-am | ||
| 797 | install-exec: install-exec-am | ||
| 798 | install-data: install-data-am | ||
| 799 | uninstall: uninstall-am | ||
| 800 | |||
| 801 | install-am: all-am | ||
| 802 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
| 803 | |||
| 804 | installcheck: installcheck-am | ||
| 805 | install-strip: | ||
| 806 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 807 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 808 | `test -z '$(STRIP)' || \ | ||
| 809 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
| 810 | mostlyclean-generic: | ||
| 811 | -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) | ||
| 812 | |||
| 813 | clean-generic: | ||
| 814 | |||
| 815 | distclean-generic: | ||
| 816 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
| 817 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
| 818 | |||
| 819 | maintainer-clean-generic: | ||
| 820 | @echo "This command is intended for maintainers to use" | ||
| 821 | @echo "it deletes files that may require special tools to rebuild." | ||
| 822 | -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) | ||
| 823 | clean: clean-am | ||
| 824 | |||
| 825 | clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am | ||
| 826 | |||
| 827 | distclean: distclean-am | ||
| 828 | -rm -rf ./$(DEPDIR) | ||
| 829 | -rm -f Makefile | ||
| 830 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
| 831 | distclean-tags | ||
| 832 | |||
| 833 | dvi: dvi-am | ||
| 834 | |||
| 835 | dvi-am: | ||
| 836 | |||
| 837 | html: html-am | ||
| 838 | |||
| 839 | html-am: | ||
| 840 | |||
| 841 | info: info-am | ||
| 842 | |||
| 843 | info-am: | ||
| 844 | |||
| 845 | install-data-am: | ||
| 846 | |||
| 847 | install-dvi: install-dvi-am | ||
| 848 | |||
| 849 | install-dvi-am: | ||
| 850 | |||
| 851 | install-exec-am: | ||
| 852 | |||
| 853 | install-html: install-html-am | ||
| 854 | |||
| 855 | install-html-am: | ||
| 856 | |||
| 857 | install-info: install-info-am | ||
| 858 | |||
| 859 | install-info-am: | ||
| 860 | |||
| 861 | install-man: | ||
| 862 | |||
| 863 | install-pdf: install-pdf-am | ||
| 864 | |||
| 865 | install-pdf-am: | ||
| 866 | |||
| 867 | install-ps: install-ps-am | ||
| 868 | |||
| 869 | install-ps-am: | ||
| 870 | |||
| 871 | installcheck-am: | ||
| 872 | |||
| 873 | maintainer-clean: maintainer-clean-am | ||
| 874 | -rm -rf ./$(DEPDIR) | ||
| 875 | -rm -f Makefile | ||
| 876 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
| 877 | |||
| 878 | mostlyclean: mostlyclean-am | ||
| 879 | |||
| 880 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
| 881 | mostlyclean-local | ||
| 882 | |||
| 883 | pdf: pdf-am | ||
| 884 | |||
| 885 | pdf-am: | ||
| 886 | |||
| 887 | ps: ps-am | ||
| 888 | |||
| 889 | ps-am: | ||
| 890 | |||
| 891 | uninstall-am: | ||
| 892 | |||
| 893 | .MAKE: all check install install-am install-strip | ||
| 894 | |||
| 895 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
| 896 | clean-noinstLIBRARIES ctags distclean distclean-compile \ | ||
| 897 | distclean-generic distclean-tags distdir dvi dvi-am html \ | ||
| 898 | html-am info info-am install install-am install-data \ | ||
| 899 | install-data-am install-dvi install-dvi-am install-exec \ | ||
| 900 | install-exec-am install-html install-html-am install-info \ | ||
| 901 | install-info-am install-man install-pdf install-pdf-am \ | ||
| 902 | install-ps install-ps-am install-strip installcheck \ | ||
| 903 | installcheck-am installdirs maintainer-clean \ | ||
| 904 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
| 905 | mostlyclean-generic mostlyclean-local pdf pdf-am ps ps-am tags \ | ||
| 906 | uninstall uninstall-am | ||
| 907 | |||
| 908 | # The arg-nonnull.h that gets inserted into generated .h files is the same as | ||
| 909 | # build-aux/arg-nonnull.h, except that it has the copyright header cut off. | ||
| 910 | arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h | ||
| 911 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 912 | sed -n -e '/GL_ARG_NONNULL/,$$p' \ | ||
| 913 | < $(top_srcdir)/./arg-nonnull.h \ | ||
| 914 | > $@-t && \ | ||
| 915 | mv $@-t $@ | ||
| 916 | # The c++defs.h that gets inserted into generated .h files is the same as | ||
| 917 | # build-aux/c++defs.h, except that it has the copyright header cut off. | ||
| 918 | c++defs.h: $(top_srcdir)/./c++defs.h | ||
| 919 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 920 | sed -n -e '/_GL_CXXDEFS/,$$p' \ | ||
| 921 | < $(top_srcdir)/./c++defs.h \ | ||
| 922 | > $@-t && \ | ||
| 923 | mv $@-t $@ | ||
| 924 | |||
| 925 | # We need the following in order to create <getopt.h> when the system | ||
| 926 | # doesn't have one that works with the given compiler. | ||
| 927 | getopt.h: getopt.in.h $(ARG_NONNULL_H) | ||
| 928 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 929 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
| 930 | sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ | ||
| 931 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 932 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 933 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 934 | -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ | ||
| 935 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
| 936 | < $(srcdir)/getopt.in.h; \ | ||
| 937 | } > $@-t && \ | ||
| 938 | mv -f $@-t $@ | ||
| 939 | |||
| 940 | # We need the following in order to create <stdbool.h> when the system | ||
| 941 | # doesn't have one that works. | ||
| 942 | stdbool.h: stdbool.in.h | ||
| 943 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 944 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
| 945 | sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ | ||
| 946 | } > $@-t && \ | ||
| 947 | mv $@-t $@ | ||
| 948 | |||
| 949 | # We need the following in order to create <stddef.h> when the system | ||
| 950 | # doesn't have one that works with the given compiler. | ||
| 951 | stddef.h: stddef.in.h | ||
| 952 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 953 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
| 954 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 955 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 956 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 957 | -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ | ||
| 958 | -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ | ||
| 959 | -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ | ||
| 960 | < $(srcdir)/stddef.in.h; \ | ||
| 961 | } > $@-t && \ | ||
| 962 | mv $@-t $@ | ||
| 963 | |||
| 964 | # We need the following in order to create <stdint.h> when the system | ||
| 965 | # doesn't have one that works with the given compiler. | ||
| 966 | stdint.h: stdint.in.h | ||
| 967 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 968 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
| 969 | sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ | ||
| 970 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 971 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 972 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 973 | -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ | ||
| 974 | -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ | ||
| 975 | -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ | ||
| 976 | -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ | ||
| 977 | -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ | ||
| 978 | -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ | ||
| 979 | -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ | ||
| 980 | -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ | ||
| 981 | -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ | ||
| 982 | -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ | ||
| 983 | -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ | ||
| 984 | -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ | ||
| 985 | -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ | ||
| 986 | -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ | ||
| 987 | -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ | ||
| 988 | -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ | ||
| 989 | -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ | ||
| 990 | -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ | ||
| 991 | -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ | ||
| 992 | -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ | ||
| 993 | -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ | ||
| 994 | -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ | ||
| 995 | < $(srcdir)/stdint.in.h; \ | ||
| 996 | } > $@-t && \ | ||
| 997 | mv $@-t $@ | ||
| 998 | |||
| 999 | # We need the following in order to create <stdlib.h> when the system | ||
| 1000 | # doesn't have one that works with the given compiler. | ||
| 1001 | stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
| 1002 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 1003 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
| 1004 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 1005 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 1006 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 1007 | -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ | ||
| 1008 | -e 's|@''GNULIB__EXIT''@|$(GNULIB__EXIT)|g' \ | ||
| 1009 | -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ | ||
| 1010 | -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ | ||
| 1011 | -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ | ||
| 1012 | -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ | ||
| 1013 | -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ | ||
| 1014 | -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ | ||
| 1015 | -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ | ||
| 1016 | -e 's|@''GNULIB_MBTOWC''@|$(GNULIB_MBTOWC)|g' \ | ||
| 1017 | -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ | ||
| 1018 | -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ | ||
| 1019 | -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ | ||
| 1020 | -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ | ||
| 1021 | -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ | ||
| 1022 | -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ | ||
| 1023 | -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ | ||
| 1024 | -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ | ||
| 1025 | -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ | ||
| 1026 | -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ | ||
| 1027 | -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ | ||
| 1028 | -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ | ||
| 1029 | -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ | ||
| 1030 | -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ | ||
| 1031 | -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ | ||
| 1032 | -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \ | ||
| 1033 | -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ | ||
| 1034 | -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ | ||
| 1035 | -e 's|@''GNULIB_WCTOMB''@|$(GNULIB_WCTOMB)|g' \ | ||
| 1036 | < $(srcdir)/stdlib.in.h | \ | ||
| 1037 | sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ | ||
| 1038 | -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ | ||
| 1039 | -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ | ||
| 1040 | -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ | ||
| 1041 | -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ | ||
| 1042 | -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ | ||
| 1043 | -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ | ||
| 1044 | -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ | ||
| 1045 | -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ | ||
| 1046 | -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ | ||
| 1047 | -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ | ||
| 1048 | -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ | ||
| 1049 | -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ | ||
| 1050 | -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ | ||
| 1051 | -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ | ||
| 1052 | -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ | ||
| 1053 | -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ | ||
| 1054 | -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ | ||
| 1055 | -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ | ||
| 1056 | -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ | ||
| 1057 | -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ | ||
| 1058 | -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ | ||
| 1059 | -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ | ||
| 1060 | -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \ | ||
| 1061 | -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \ | ||
| 1062 | -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ | ||
| 1063 | -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \ | ||
| 1064 | -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ | ||
| 1065 | -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ | ||
| 1066 | -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ | ||
| 1067 | -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \ | ||
| 1068 | -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ | ||
| 1069 | -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ | ||
| 1070 | -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ | ||
| 1071 | -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ | ||
| 1072 | -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \ | ||
| 1073 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
| 1074 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
| 1075 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ | ||
| 1076 | } > $@-t && \ | ||
| 1077 | mv $@-t $@ | ||
| 1078 | |||
| 1079 | # We need the following in order to create <sys/stat.h> when the system | ||
| 1080 | # has one that is incomplete. | ||
| 1081 | sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
| 1082 | $(AM_V_at)$(MKDIR_P) sys | ||
| 1083 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 1084 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
| 1085 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 1086 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 1087 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 1088 | -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ | ||
| 1089 | -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ | ||
| 1090 | -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ | ||
| 1091 | -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ | ||
| 1092 | -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ | ||
| 1093 | -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ | ||
| 1094 | -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ | ||
| 1095 | -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ | ||
| 1096 | -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ | ||
| 1097 | -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ | ||
| 1098 | -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ | ||
| 1099 | -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ | ||
| 1100 | -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ | ||
| 1101 | -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ | ||
| 1102 | -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ | ||
| 1103 | -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ | ||
| 1104 | -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ | ||
| 1105 | -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ | ||
| 1106 | -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ | ||
| 1107 | -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ | ||
| 1108 | -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ | ||
| 1109 | -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ | ||
| 1110 | -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ | ||
| 1111 | -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ | ||
| 1112 | -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ | ||
| 1113 | -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ | ||
| 1114 | -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ | ||
| 1115 | -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ | ||
| 1116 | -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ | ||
| 1117 | -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ | ||
| 1118 | -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ | ||
| 1119 | -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ | ||
| 1120 | -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ | ||
| 1121 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
| 1122 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
| 1123 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ | ||
| 1124 | < $(srcdir)/sys_stat.in.h; \ | ||
| 1125 | } > $@-t && \ | ||
| 1126 | mv $@-t $@ | ||
| 1127 | |||
| 1128 | # We need the following in order to create <time.h> when the system | ||
| 1129 | # doesn't have one that works with the given compiler. | ||
| 1130 | time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
| 1131 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 1132 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
| 1133 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 1134 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 1135 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 1136 | -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ | ||
| 1137 | -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ | ||
| 1138 | -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ | ||
| 1139 | -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ | ||
| 1140 | -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ | ||
| 1141 | -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ | ||
| 1142 | -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ | ||
| 1143 | -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ | ||
| 1144 | -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ | ||
| 1145 | -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ | ||
| 1146 | -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ | ||
| 1147 | -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ | ||
| 1148 | -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ | ||
| 1149 | -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ | ||
| 1150 | -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ | ||
| 1151 | -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ | ||
| 1152 | -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ | ||
| 1153 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
| 1154 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
| 1155 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ | ||
| 1156 | < $(srcdir)/time.in.h; \ | ||
| 1157 | } > $@-t && \ | ||
| 1158 | mv $@-t $@ | ||
| 1159 | |||
| 1160 | # We need the following in order to create an empty placeholder for | ||
| 1161 | # <unistd.h> when the system doesn't have one. | ||
| 1162 | unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
| 1163 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 1164 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
| 1165 | sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ | ||
| 1166 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 1167 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 1168 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 1169 | -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ | ||
| 1170 | -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ | ||
| 1171 | -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ | ||
| 1172 | -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ | ||
| 1173 | -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ | ||
| 1174 | -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ | ||
| 1175 | -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ | ||
| 1176 | -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ | ||
| 1177 | -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ | ||
| 1178 | -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ | ||
| 1179 | -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ | ||
| 1180 | -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ | ||
| 1181 | -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ | ||
| 1182 | -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ | ||
| 1183 | -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ | ||
| 1184 | -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ | ||
| 1185 | -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ | ||
| 1186 | -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ | ||
| 1187 | -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ | ||
| 1188 | -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ | ||
| 1189 | -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ | ||
| 1190 | -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ | ||
| 1191 | -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ | ||
| 1192 | -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ | ||
| 1193 | -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ | ||
| 1194 | -e 's|@''GNULIB_PIPE''@|$(GNULIB_PIPE)|g' \ | ||
| 1195 | -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ | ||
| 1196 | -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ | ||
| 1197 | -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ | ||
| 1198 | -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ | ||
| 1199 | -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ | ||
| 1200 | -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ | ||
| 1201 | -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ | ||
| 1202 | -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ | ||
| 1203 | -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ | ||
| 1204 | -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ | ||
| 1205 | -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ | ||
| 1206 | -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ | ||
| 1207 | -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ | ||
| 1208 | -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ | ||
| 1209 | -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ | ||
| 1210 | -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ | ||
| 1211 | < $(srcdir)/unistd.in.h | \ | ||
| 1212 | sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ | ||
| 1213 | -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ | ||
| 1214 | -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ | ||
| 1215 | -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ | ||
| 1216 | -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ | ||
| 1217 | -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ | ||
| 1218 | -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ | ||
| 1219 | -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ | ||
| 1220 | -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ | ||
| 1221 | -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ | ||
| 1222 | -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ | ||
| 1223 | -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ | ||
| 1224 | -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ | ||
| 1225 | -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ | ||
| 1226 | -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ | ||
| 1227 | -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ | ||
| 1228 | -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ | ||
| 1229 | -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \ | ||
| 1230 | -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ | ||
| 1231 | -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ | ||
| 1232 | -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ | ||
| 1233 | -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ | ||
| 1234 | -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ | ||
| 1235 | -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ | ||
| 1236 | -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ | ||
| 1237 | -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ | ||
| 1238 | -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ | ||
| 1239 | -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ | ||
| 1240 | -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ | ||
| 1241 | -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ | ||
| 1242 | -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ | ||
| 1243 | -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ | ||
| 1244 | -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ | ||
| 1245 | -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ | ||
| 1246 | -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ | ||
| 1247 | -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ | ||
| 1248 | -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ | ||
| 1249 | | \ | ||
| 1250 | sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ | ||
| 1251 | -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ | ||
| 1252 | -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ | ||
| 1253 | -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ | ||
| 1254 | -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ | ||
| 1255 | -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ | ||
| 1256 | -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \ | ||
| 1257 | -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ | ||
| 1258 | -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ | ||
| 1259 | -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ | ||
| 1260 | -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ | ||
| 1261 | -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ | ||
| 1262 | -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ | ||
| 1263 | -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ | ||
| 1264 | -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ | ||
| 1265 | -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ | ||
| 1266 | -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ | ||
| 1267 | -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ | ||
| 1268 | -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ | ||
| 1269 | -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ | ||
| 1270 | -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ | ||
| 1271 | -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ | ||
| 1272 | -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ | ||
| 1273 | -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ | ||
| 1274 | -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ | ||
| 1275 | -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ | ||
| 1276 | -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ | ||
| 1277 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
| 1278 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
| 1279 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ | ||
| 1280 | } > $@-t && \ | ||
| 1281 | mv $@-t $@ | ||
| 1282 | # The warn-on-use.h that gets inserted into generated .h files is the same as | ||
| 1283 | # build-aux/warn-on-use.h, except that it has the copyright header cut off. | ||
| 1284 | warn-on-use.h: $(top_srcdir)/./warn-on-use.h | ||
| 1285 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 1286 | sed -n -e '/^.ifndef/,$$p' \ | ||
| 1287 | < $(top_srcdir)/./warn-on-use.h \ | ||
| 1288 | > $@-t && \ | ||
| 1289 | mv $@-t $@ | ||
| 1290 | |||
| 1291 | mostlyclean-local: mostlyclean-generic | ||
| 1292 | @for dir in '' $(MOSTLYCLEANDIRS); do \ | ||
| 1293 | if test -n "$$dir" && test -d $$dir; then \ | ||
| 1294 | echo "rmdir $$dir"; rmdir $$dir; \ | ||
| 1295 | fi; \ | ||
| 1296 | done; \ | ||
| 1297 | : | ||
| 1298 | |||
| 1299 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
| 1300 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
| 1301 | .NOEXPORT: | ||
diff --git a/autogen/README b/autogen/README new file mode 100644 index 00000000000..a16dc93c48a --- /dev/null +++ b/autogen/README | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | This directory contains some pre-built generated files. | ||
| 2 | Most people do not need to use these files - instead you should | ||
| 3 | generate them yourself using eg `autogen.sh'. | ||
| 4 | |||
| 5 | File: Destination: Created by: | ||
| 6 | configure ../ autoconf | ||
| 7 | config.in ../src autoheader * also used by MSDOS bzr build | ||
| 8 | aclocal.m4 ../ aclocal | ||
| 9 | Makefile.in ../lib automake | ||
| 10 | |||
| 11 | There are also some scripts: | ||
| 12 | |||
| 13 | copy_autogen - copy pre-built generated files into place | ||
| 14 | update_autogen - regenerate generated files (for maintainers) | ||
diff --git a/autogen/aclocal.m4 b/autogen/aclocal.m4 new file mode 100644 index 00000000000..963faafb453 --- /dev/null +++ b/autogen/aclocal.m4 | |||
| @@ -0,0 +1,1015 @@ | |||
| 1 | # generated automatically by aclocal 1.11.1 -*- Autoconf -*- | ||
| 2 | |||
| 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | ||
| 4 | # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
| 5 | # This file is free software; the Free Software Foundation | ||
| 6 | # gives unlimited permission to copy and/or distribute it, | ||
| 7 | # with or without modifications, as long as this notice is preserved. | ||
| 8 | |||
| 9 | # This program is distributed in the hope that it will be useful, | ||
| 10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
| 11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 12 | # PARTICULAR PURPOSE. | ||
| 13 | |||
| 14 | m4_ifndef([AC_AUTOCONF_VERSION], | ||
| 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | ||
| 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, | ||
| 17 | [m4_warning([this file was generated for autoconf 2.65. | ||
| 18 | You have another version of autoconf. It may work, but is not guaranteed to. | ||
| 19 | If you have problems, you may need to regenerate the build system entirely. | ||
| 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | ||
| 21 | |||
| 22 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
| 23 | # | ||
| 24 | # This file is free software; the Free Software Foundation | ||
| 25 | # gives unlimited permission to copy and/or distribute it, | ||
| 26 | # with or without modifications, as long as this notice is preserved. | ||
| 27 | |||
| 28 | # AM_AUTOMAKE_VERSION(VERSION) | ||
| 29 | # ---------------------------- | ||
| 30 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | ||
| 31 | # generated from the m4 files accompanying Automake X.Y. | ||
| 32 | # (This private macro should not be called outside this file.) | ||
| 33 | AC_DEFUN([AM_AUTOMAKE_VERSION], | ||
| 34 | [am__api_version='1.11' | ||
| 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | ||
| 36 | dnl require some minimum version. Point them to the right macro. | ||
| 37 | m4_if([$1], [1.11.1], [], | ||
| 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | ||
| 39 | ]) | ||
| 40 | |||
| 41 | # _AM_AUTOCONF_VERSION(VERSION) | ||
| 42 | # ----------------------------- | ||
| 43 | # aclocal traces this macro to find the Autoconf version. | ||
| 44 | # This is a private macro too. Using m4_define simplifies | ||
| 45 | # the logic in aclocal, which can simply ignore this definition. | ||
| 46 | m4_define([_AM_AUTOCONF_VERSION], []) | ||
| 47 | |||
| 48 | # AM_SET_CURRENT_AUTOMAKE_VERSION | ||
| 49 | # ------------------------------- | ||
| 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | ||
| 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | ||
| 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | ||
| 53 | [AM_AUTOMAKE_VERSION([1.11.1])dnl | ||
| 54 | m4_ifndef([AC_AUTOCONF_VERSION], | ||
| 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | ||
| 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | ||
| 57 | |||
| 58 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | ||
| 59 | |||
| 60 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | ||
| 61 | # | ||
| 62 | # This file is free software; the Free Software Foundation | ||
| 63 | # gives unlimited permission to copy and/or distribute it, | ||
| 64 | # with or without modifications, as long as this notice is preserved. | ||
| 65 | |||
| 66 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | ||
| 67 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | ||
| 68 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | ||
| 69 | # | ||
| 70 | # Of course, Automake must honor this variable whenever it calls a | ||
| 71 | # tool from the auxiliary directory. The problem is that $srcdir (and | ||
| 72 | # therefore $ac_aux_dir as well) can be either absolute or relative, | ||
| 73 | # depending on how configure is run. This is pretty annoying, since | ||
| 74 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | ||
| 75 | # source directory, any form will work fine, but in subdirectories a | ||
| 76 | # relative path needs to be adjusted first. | ||
| 77 | # | ||
| 78 | # $ac_aux_dir/missing | ||
| 79 | # fails when called from a subdirectory if $ac_aux_dir is relative | ||
| 80 | # $top_srcdir/$ac_aux_dir/missing | ||
| 81 | # fails if $ac_aux_dir is absolute, | ||
| 82 | # fails when called from a subdirectory in a VPATH build with | ||
| 83 | # a relative $ac_aux_dir | ||
| 84 | # | ||
| 85 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | ||
| 86 | # are both prefixed by $srcdir. In an in-source build this is usually | ||
| 87 | # harmless because $srcdir is `.', but things will broke when you | ||
| 88 | # start a VPATH build or use an absolute $srcdir. | ||
| 89 | # | ||
| 90 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | ||
| 91 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | ||
| 92 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | ||
| 93 | # and then we would define $MISSING as | ||
| 94 | # MISSING="\${SHELL} $am_aux_dir/missing" | ||
| 95 | # This will work as long as MISSING is not called from configure, because | ||
| 96 | # unfortunately $(top_srcdir) has no meaning in configure. | ||
| 97 | # However there are other variables, like CC, which are often used in | ||
| 98 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | ||
| 99 | # | ||
| 100 | # Another solution, used here, is to always expand $ac_aux_dir to an | ||
| 101 | # absolute PATH. The drawback is that using absolute paths prevent a | ||
| 102 | # configured tree to be moved without reconfiguration. | ||
| 103 | |||
| 104 | AC_DEFUN([AM_AUX_DIR_EXPAND], | ||
| 105 | [dnl Rely on autoconf to set up CDPATH properly. | ||
| 106 | AC_PREREQ([2.50])dnl | ||
| 107 | # expand $ac_aux_dir to an absolute path | ||
| 108 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
| 109 | ]) | ||
| 110 | |||
| 111 | # AM_CONDITIONAL -*- Autoconf -*- | ||
| 112 | |||
| 113 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | ||
| 114 | # Free Software Foundation, Inc. | ||
| 115 | # | ||
| 116 | # This file is free software; the Free Software Foundation | ||
| 117 | # gives unlimited permission to copy and/or distribute it, | ||
| 118 | # with or without modifications, as long as this notice is preserved. | ||
| 119 | |||
| 120 | # serial 9 | ||
| 121 | |||
| 122 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | ||
| 123 | # ------------------------------------- | ||
| 124 | # Define a conditional. | ||
| 125 | AC_DEFUN([AM_CONDITIONAL], | ||
| 126 | [AC_PREREQ(2.52)dnl | ||
| 127 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | ||
| 128 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | ||
| 129 | AC_SUBST([$1_TRUE])dnl | ||
| 130 | AC_SUBST([$1_FALSE])dnl | ||
| 131 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | ||
| 132 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | ||
| 133 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | ||
| 134 | if $2; then | ||
| 135 | $1_TRUE= | ||
| 136 | $1_FALSE='#' | ||
| 137 | else | ||
| 138 | $1_TRUE='#' | ||
| 139 | $1_FALSE= | ||
| 140 | fi | ||
| 141 | AC_CONFIG_COMMANDS_PRE( | ||
| 142 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | ||
| 143 | AC_MSG_ERROR([[conditional "$1" was never defined. | ||
| 144 | Usually this means the macro was only invoked conditionally.]]) | ||
| 145 | fi])]) | ||
| 146 | |||
| 147 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | ||
| 148 | # Free Software Foundation, Inc. | ||
| 149 | # | ||
| 150 | # This file is free software; the Free Software Foundation | ||
| 151 | # gives unlimited permission to copy and/or distribute it, | ||
| 152 | # with or without modifications, as long as this notice is preserved. | ||
| 153 | |||
| 154 | # serial 10 | ||
| 155 | |||
| 156 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | ||
| 157 | # written in clear, in which case automake, when reading aclocal.m4, | ||
| 158 | # will think it sees a *use*, and therefore will trigger all it's | ||
| 159 | # C support machinery. Also note that it means that autoscan, seeing | ||
| 160 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | ||
| 161 | |||
| 162 | |||
| 163 | # _AM_DEPENDENCIES(NAME) | ||
| 164 | # ---------------------- | ||
| 165 | # See how the compiler implements dependency checking. | ||
| 166 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | ||
| 167 | # We try a few techniques and use that to set a single cache variable. | ||
| 168 | # | ||
| 169 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | ||
| 170 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | ||
| 171 | # dependency, and given that the user is not expected to run this macro, | ||
| 172 | # just rely on AC_PROG_CC. | ||
| 173 | AC_DEFUN([_AM_DEPENDENCIES], | ||
| 174 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | ||
| 175 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | ||
| 176 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | ||
| 177 | AC_REQUIRE([AM_DEP_TRACK])dnl | ||
| 178 | |||
| 179 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | ||
| 180 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | ||
| 181 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | ||
| 182 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | ||
| 183 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | ||
| 184 | [depcc="$$1" am_compiler_list=]) | ||
| 185 | |||
| 186 | AC_CACHE_CHECK([dependency style of $depcc], | ||
| 187 | [am_cv_$1_dependencies_compiler_type], | ||
| 188 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
| 189 | # We make a subdir and do the tests there. Otherwise we can end up | ||
| 190 | # making bogus files that we don't know about and never remove. For | ||
| 191 | # instance it was reported that on HP-UX the gcc test will end up | ||
| 192 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
| 193 | # in D'. | ||
| 194 | mkdir conftest.dir | ||
| 195 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
| 196 | # using a relative directory. | ||
| 197 | cp "$am_depcomp" conftest.dir | ||
| 198 | cd conftest.dir | ||
| 199 | # We will build objects and dependencies in a subdirectory because | ||
| 200 | # it helps to detect inapplicable dependency modes. For instance | ||
| 201 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
| 202 | # side effect of compilation, but ICC will put the dependencies in | ||
| 203 | # the current directory while Tru64 will put them in the object | ||
| 204 | # directory. | ||
| 205 | mkdir sub | ||
| 206 | |||
| 207 | am_cv_$1_dependencies_compiler_type=none | ||
| 208 | if test "$am_compiler_list" = ""; then | ||
| 209 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | ||
| 210 | fi | ||
| 211 | am__universal=false | ||
| 212 | m4_case([$1], [CC], | ||
| 213 | [case " $depcc " in #( | ||
| 214 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
| 215 | esac], | ||
| 216 | [CXX], | ||
| 217 | [case " $depcc " in #( | ||
| 218 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
| 219 | esac]) | ||
| 220 | |||
| 221 | for depmode in $am_compiler_list; do | ||
| 222 | # Setup a source with many dependencies, because some compilers | ||
| 223 | # like to wrap large dependency lists on column 80 (with \), and | ||
| 224 | # we should not choose a depcomp mode which is confused by this. | ||
| 225 | # | ||
| 226 | # We need to recreate these files for each test, as the compiler may | ||
| 227 | # overwrite some of them when testing with obscure command lines. | ||
| 228 | # This happens at least with the AIX C compiler. | ||
| 229 | : > sub/conftest.c | ||
| 230 | for i in 1 2 3 4 5 6; do | ||
| 231 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
| 232 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
| 233 | # Solaris 8's {/usr,}/bin/sh. | ||
| 234 | touch sub/conftst$i.h | ||
| 235 | done | ||
| 236 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
| 237 | |||
| 238 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
| 239 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
| 240 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
| 241 | # versions had trouble with output in subdirs | ||
| 242 | am__obj=sub/conftest.${OBJEXT-o} | ||
| 243 | am__minus_obj="-o $am__obj" | ||
| 244 | case $depmode in | ||
| 245 | gcc) | ||
| 246 | # This depmode causes a compiler race in universal mode. | ||
| 247 | test "$am__universal" = false || continue | ||
| 248 | ;; | ||
| 249 | nosideeffect) | ||
| 250 | # after this tag, mechanisms are not by side-effect, so they'll | ||
| 251 | # only be used when explicitly requested | ||
| 252 | if test "x$enable_dependency_tracking" = xyes; then | ||
| 253 | continue | ||
| 254 | else | ||
| 255 | break | ||
| 256 | fi | ||
| 257 | ;; | ||
| 258 | msvisualcpp | msvcmsys) | ||
| 259 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
| 260 | # not run yet. These depmodes are late enough in the game, and | ||
| 261 | # so weak that their functioning should not be impacted. | ||
| 262 | am__obj=conftest.${OBJEXT-o} | ||
| 263 | am__minus_obj= | ||
| 264 | ;; | ||
| 265 | none) break ;; | ||
| 266 | esac | ||
| 267 | if depmode=$depmode \ | ||
| 268 | source=sub/conftest.c object=$am__obj \ | ||
| 269 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
| 270 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
| 271 | >/dev/null 2>conftest.err && | ||
| 272 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
| 273 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
| 274 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
| 275 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
| 276 | # icc doesn't choke on unknown options, it will just issue warnings | ||
| 277 | # or remarks (even with -Werror). So we grep stderr for any message | ||
| 278 | # that says an option was ignored or not supported. | ||
| 279 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
| 280 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
| 281 | # The diagnosis changed in icc 8.0: | ||
| 282 | # icc: Command line remark: option '-MP' not supported | ||
| 283 | if (grep 'ignoring option' conftest.err || | ||
| 284 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
| 285 | am_cv_$1_dependencies_compiler_type=$depmode | ||
| 286 | break | ||
| 287 | fi | ||
| 288 | fi | ||
| 289 | done | ||
| 290 | |||
| 291 | cd .. | ||
| 292 | rm -rf conftest.dir | ||
| 293 | else | ||
| 294 | am_cv_$1_dependencies_compiler_type=none | ||
| 295 | fi | ||
| 296 | ]) | ||
| 297 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | ||
| 298 | AM_CONDITIONAL([am__fastdep$1], [ | ||
| 299 | test "x$enable_dependency_tracking" != xno \ | ||
| 300 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | ||
| 301 | ]) | ||
| 302 | |||
| 303 | |||
| 304 | # AM_SET_DEPDIR | ||
| 305 | # ------------- | ||
| 306 | # Choose a directory name for dependency files. | ||
| 307 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | ||
| 308 | AC_DEFUN([AM_SET_DEPDIR], | ||
| 309 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | ||
| 310 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | ||
| 311 | ]) | ||
| 312 | |||
| 313 | |||
| 314 | # AM_DEP_TRACK | ||
| 315 | # ------------ | ||
| 316 | AC_DEFUN([AM_DEP_TRACK], | ||
| 317 | [AC_ARG_ENABLE(dependency-tracking, | ||
| 318 | [ --disable-dependency-tracking speeds up one-time build | ||
| 319 | --enable-dependency-tracking do not reject slow dependency extractors]) | ||
| 320 | if test "x$enable_dependency_tracking" != xno; then | ||
| 321 | am_depcomp="$ac_aux_dir/depcomp" | ||
| 322 | AMDEPBACKSLASH='\' | ||
| 323 | fi | ||
| 324 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | ||
| 325 | AC_SUBST([AMDEPBACKSLASH])dnl | ||
| 326 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | ||
| 327 | ]) | ||
| 328 | |||
| 329 | # Generate code to set up dependency tracking. -*- Autoconf -*- | ||
| 330 | |||
| 331 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | ||
| 332 | # Free Software Foundation, Inc. | ||
| 333 | # | ||
| 334 | # This file is free software; the Free Software Foundation | ||
| 335 | # gives unlimited permission to copy and/or distribute it, | ||
| 336 | # with or without modifications, as long as this notice is preserved. | ||
| 337 | |||
| 338 | #serial 5 | ||
| 339 | |||
| 340 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | ||
| 341 | # ------------------------------ | ||
| 342 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
| 343 | [{ | ||
| 344 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
| 345 | # are listed without --file. Let's play safe and only enable the eval | ||
| 346 | # if we detect the quoting. | ||
| 347 | case $CONFIG_FILES in | ||
| 348 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
| 349 | *) set x $CONFIG_FILES ;; | ||
| 350 | esac | ||
| 351 | shift | ||
| 352 | for mf | ||
| 353 | do | ||
| 354 | # Strip MF so we end up with the name of the file. | ||
| 355 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
| 356 | # Check whether this is an Automake generated Makefile or not. | ||
| 357 | # We used to match only the files named `Makefile.in', but | ||
| 358 | # some people rename them; so instead we look at the file content. | ||
| 359 | # Grep'ing the first line is not enough: some people post-process | ||
| 360 | # each Makefile.in and add a new line on top of each file to say so. | ||
| 361 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
| 362 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
| 363 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
| 364 | dirpart=`AS_DIRNAME("$mf")` | ||
| 365 | else | ||
| 366 | continue | ||
| 367 | fi | ||
| 368 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
| 369 | # from the Makefile without running `make'. | ||
| 370 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
| 371 | test -z "$DEPDIR" && continue | ||
| 372 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
| 373 | test -z "am__include" && continue | ||
| 374 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
| 375 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
| 376 | U=`sed -n 's/^U = //p' < "$mf"` | ||
| 377 | # Find all dependency output files, they are included files with | ||
| 378 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
| 379 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
| 380 | # expansion. | ||
| 381 | for file in `sed -n " | ||
| 382 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
| 383 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
| 384 | # Make sure the directory exists. | ||
| 385 | test -f "$dirpart/$file" && continue | ||
| 386 | fdir=`AS_DIRNAME(["$file"])` | ||
| 387 | AS_MKDIR_P([$dirpart/$fdir]) | ||
| 388 | # echo "creating $dirpart/$file" | ||
| 389 | echo '# dummy' > "$dirpart/$file" | ||
| 390 | done | ||
| 391 | done | ||
| 392 | } | ||
| 393 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | ||
| 394 | |||
| 395 | |||
| 396 | # AM_OUTPUT_DEPENDENCY_COMMANDS | ||
| 397 | # ----------------------------- | ||
| 398 | # This macro should only be invoked once -- use via AC_REQUIRE. | ||
| 399 | # | ||
| 400 | # This code is only required when automatic dependency tracking | ||
| 401 | # is enabled. FIXME. This creates each `.P' file that we will | ||
| 402 | # need in order to bootstrap the dependency handling code. | ||
| 403 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
| 404 | [AC_CONFIG_COMMANDS([depfiles], | ||
| 405 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
| 406 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | ||
| 407 | ]) | ||
| 408 | |||
| 409 | # Do all the work for Automake. -*- Autoconf -*- | ||
| 410 | |||
| 411 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | ||
| 412 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | ||
| 413 | # | ||
| 414 | # This file is free software; the Free Software Foundation | ||
| 415 | # gives unlimited permission to copy and/or distribute it, | ||
| 416 | # with or without modifications, as long as this notice is preserved. | ||
| 417 | |||
| 418 | # serial 16 | ||
| 419 | |||
| 420 | # This macro actually does too much. Some checks are only needed if | ||
| 421 | # your package does certain things. But this isn't really a big deal. | ||
| 422 | |||
| 423 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | ||
| 424 | # AM_INIT_AUTOMAKE([OPTIONS]) | ||
| 425 | # ----------------------------------------------- | ||
| 426 | # The call with PACKAGE and VERSION arguments is the old style | ||
| 427 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | ||
| 428 | # and VERSION should now be passed to AC_INIT and removed from | ||
| 429 | # the call to AM_INIT_AUTOMAKE. | ||
| 430 | # We support both call styles for the transition. After | ||
| 431 | # the next Automake release, Autoconf can make the AC_INIT | ||
| 432 | # arguments mandatory, and then we can depend on a new Autoconf | ||
| 433 | # release and drop the old call support. | ||
| 434 | AC_DEFUN([AM_INIT_AUTOMAKE], | ||
| 435 | [AC_PREREQ([2.62])dnl | ||
| 436 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | ||
| 437 | dnl the ones we care about. | ||
| 438 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | ||
| 439 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | ||
| 440 | AC_REQUIRE([AC_PROG_INSTALL])dnl | ||
| 441 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
| 442 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
| 443 | # is not polluted with repeated "-I." | ||
| 444 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | ||
| 445 | # test to see if srcdir already configured | ||
| 446 | if test -f $srcdir/config.status; then | ||
| 447 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | ||
| 448 | fi | ||
| 449 | fi | ||
| 450 | |||
| 451 | # test whether we have cygpath | ||
| 452 | if test -z "$CYGPATH_W"; then | ||
| 453 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
| 454 | CYGPATH_W='cygpath -w' | ||
| 455 | else | ||
| 456 | CYGPATH_W=echo | ||
| 457 | fi | ||
| 458 | fi | ||
| 459 | AC_SUBST([CYGPATH_W]) | ||
| 460 | |||
| 461 | # Define the identity of the package. | ||
| 462 | dnl Distinguish between old-style and new-style calls. | ||
| 463 | m4_ifval([$2], | ||
| 464 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | ||
| 465 | AC_SUBST([PACKAGE], [$1])dnl | ||
| 466 | AC_SUBST([VERSION], [$2])], | ||
| 467 | [_AM_SET_OPTIONS([$1])dnl | ||
| 468 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | ||
| 469 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | ||
| 470 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | ||
| 471 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | ||
| 472 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | ||
| 473 | |||
| 474 | _AM_IF_OPTION([no-define],, | ||
| 475 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | ||
| 476 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | ||
| 477 | |||
| 478 | # Some tools Automake needs. | ||
| 479 | AC_REQUIRE([AM_SANITY_CHECK])dnl | ||
| 480 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | ||
| 481 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | ||
| 482 | AM_MISSING_PROG(AUTOCONF, autoconf) | ||
| 483 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | ||
| 484 | AM_MISSING_PROG(AUTOHEADER, autoheader) | ||
| 485 | AM_MISSING_PROG(MAKEINFO, makeinfo) | ||
| 486 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | ||
| 487 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | ||
| 488 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | ||
| 489 | # We need awk for the "check" target. The system "awk" is bad on | ||
| 490 | # some platforms. | ||
| 491 | AC_REQUIRE([AC_PROG_AWK])dnl | ||
| 492 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | ||
| 493 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | ||
| 494 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | ||
| 495 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | ||
| 496 | [_AM_PROG_TAR([v7])])]) | ||
| 497 | _AM_IF_OPTION([no-dependencies],, | ||
| 498 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | ||
| 499 | [_AM_DEPENDENCIES(CC)], | ||
| 500 | [define([AC_PROG_CC], | ||
| 501 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | ||
| 502 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
| 503 | [_AM_DEPENDENCIES(CXX)], | ||
| 504 | [define([AC_PROG_CXX], | ||
| 505 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | ||
| 506 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | ||
| 507 | [_AM_DEPENDENCIES(OBJC)], | ||
| 508 | [define([AC_PROG_OBJC], | ||
| 509 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | ||
| 510 | ]) | ||
| 511 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | ||
| 512 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | ||
| 513 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | ||
| 514 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | ||
| 515 | AC_CONFIG_COMMANDS_PRE(dnl | ||
| 516 | [m4_provide_if([_AM_COMPILER_EXEEXT], | ||
| 517 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | ||
| 518 | ]) | ||
| 519 | |||
| 520 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | ||
| 521 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | ||
| 522 | dnl mangled by Autoconf and run in a shell conditional statement. | ||
| 523 | m4_define([_AC_COMPILER_EXEEXT], | ||
| 524 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | ||
| 525 | |||
| 526 | |||
| 527 | # When config.status generates a header, we must update the stamp-h file. | ||
| 528 | # This file resides in the same directory as the config header | ||
| 529 | # that is generated. The stamp files are numbered to have different names. | ||
| 530 | |||
| 531 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | ||
| 532 | # loop where config.status creates the headers, so we can generate | ||
| 533 | # our stamp files there. | ||
| 534 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | ||
| 535 | [# Compute $1's index in $config_headers. | ||
| 536 | _am_arg=$1 | ||
| 537 | _am_stamp_count=1 | ||
| 538 | for _am_header in $config_headers :; do | ||
| 539 | case $_am_header in | ||
| 540 | $_am_arg | $_am_arg:* ) | ||
| 541 | break ;; | ||
| 542 | * ) | ||
| 543 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
| 544 | esac | ||
| 545 | done | ||
| 546 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | ||
| 547 | |||
| 548 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | ||
| 549 | # | ||
| 550 | # This file is free software; the Free Software Foundation | ||
| 551 | # gives unlimited permission to copy and/or distribute it, | ||
| 552 | # with or without modifications, as long as this notice is preserved. | ||
| 553 | |||
| 554 | # AM_PROG_INSTALL_SH | ||
| 555 | # ------------------ | ||
| 556 | # Define $install_sh. | ||
| 557 | AC_DEFUN([AM_PROG_INSTALL_SH], | ||
| 558 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
| 559 | if test x"${install_sh}" != xset; then | ||
| 560 | case $am_aux_dir in | ||
| 561 | *\ * | *\ *) | ||
| 562 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
| 563 | *) | ||
| 564 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
| 565 | esac | ||
| 566 | fi | ||
| 567 | AC_SUBST(install_sh)]) | ||
| 568 | |||
| 569 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | ||
| 570 | # | ||
| 571 | # This file is free software; the Free Software Foundation | ||
| 572 | # gives unlimited permission to copy and/or distribute it, | ||
| 573 | # with or without modifications, as long as this notice is preserved. | ||
| 574 | |||
| 575 | # serial 2 | ||
| 576 | |||
| 577 | # Check whether the underlying file-system supports filenames | ||
| 578 | # with a leading dot. For instance MS-DOS doesn't. | ||
| 579 | AC_DEFUN([AM_SET_LEADING_DOT], | ||
| 580 | [rm -rf .tst 2>/dev/null | ||
| 581 | mkdir .tst 2>/dev/null | ||
| 582 | if test -d .tst; then | ||
| 583 | am__leading_dot=. | ||
| 584 | else | ||
| 585 | am__leading_dot=_ | ||
| 586 | fi | ||
| 587 | rmdir .tst 2>/dev/null | ||
| 588 | AC_SUBST([am__leading_dot])]) | ||
| 589 | |||
| 590 | # Check to see how 'make' treats includes. -*- Autoconf -*- | ||
| 591 | |||
| 592 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | ||
| 593 | # | ||
| 594 | # This file is free software; the Free Software Foundation | ||
| 595 | # gives unlimited permission to copy and/or distribute it, | ||
| 596 | # with or without modifications, as long as this notice is preserved. | ||
| 597 | |||
| 598 | # serial 4 | ||
| 599 | |||
| 600 | # AM_MAKE_INCLUDE() | ||
| 601 | # ----------------- | ||
| 602 | # Check to see how make treats includes. | ||
| 603 | AC_DEFUN([AM_MAKE_INCLUDE], | ||
| 604 | [am_make=${MAKE-make} | ||
| 605 | cat > confinc << 'END' | ||
| 606 | am__doit: | ||
| 607 | @echo this is the am__doit target | ||
| 608 | .PHONY: am__doit | ||
| 609 | END | ||
| 610 | # If we don't find an include directive, just comment out the code. | ||
| 611 | AC_MSG_CHECKING([for style of include used by $am_make]) | ||
| 612 | am__include="#" | ||
| 613 | am__quote= | ||
| 614 | _am_result=none | ||
| 615 | # First try GNU make style include. | ||
| 616 | echo "include confinc" > confmf | ||
| 617 | # Ignore all kinds of additional output from `make'. | ||
| 618 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
| 619 | *the\ am__doit\ target*) | ||
| 620 | am__include=include | ||
| 621 | am__quote= | ||
| 622 | _am_result=GNU | ||
| 623 | ;; | ||
| 624 | esac | ||
| 625 | # Now try BSD make style include. | ||
| 626 | if test "$am__include" = "#"; then | ||
| 627 | echo '.include "confinc"' > confmf | ||
| 628 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
| 629 | *the\ am__doit\ target*) | ||
| 630 | am__include=.include | ||
| 631 | am__quote="\"" | ||
| 632 | _am_result=BSD | ||
| 633 | ;; | ||
| 634 | esac | ||
| 635 | fi | ||
| 636 | AC_SUBST([am__include]) | ||
| 637 | AC_SUBST([am__quote]) | ||
| 638 | AC_MSG_RESULT([$_am_result]) | ||
| 639 | rm -f confinc confmf | ||
| 640 | ]) | ||
| 641 | |||
| 642 | # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 | ||
| 643 | # Free Software Foundation, Inc. | ||
| 644 | # | ||
| 645 | # This file is free software; the Free Software Foundation | ||
| 646 | # gives unlimited permission to copy and/or distribute it, | ||
| 647 | # with or without modifications, as long as this notice is preserved. | ||
| 648 | |||
| 649 | # serial 6 | ||
| 650 | |||
| 651 | # AM_PROG_CC_C_O | ||
| 652 | # -------------- | ||
| 653 | # Like AC_PROG_CC_C_O, but changed for automake. | ||
| 654 | AC_DEFUN([AM_PROG_CC_C_O], | ||
| 655 | [AC_REQUIRE([AC_PROG_CC_C_O])dnl | ||
| 656 | AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
| 657 | AC_REQUIRE_AUX_FILE([compile])dnl | ||
| 658 | # FIXME: we rely on the cache variable name because | ||
| 659 | # there is no other way. | ||
| 660 | set dummy $CC | ||
| 661 | am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` | ||
| 662 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
| 663 | if test "$am_t" != yes; then | ||
| 664 | # Losing compiler, so override with the script. | ||
| 665 | # FIXME: It is wrong to rewrite CC. | ||
| 666 | # But if we don't then we get into trouble of one sort or another. | ||
| 667 | # A longer-term fix would be to have automake use am__CC in this case, | ||
| 668 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
| 669 | CC="$am_aux_dir/compile $CC" | ||
| 670 | fi | ||
| 671 | dnl Make sure AC_PROG_CC is never called again, or it will override our | ||
| 672 | dnl setting of CC. | ||
| 673 | m4_define([AC_PROG_CC], | ||
| 674 | [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) | ||
| 675 | ]) | ||
| 676 | |||
| 677 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | ||
| 678 | |||
| 679 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | ||
| 680 | # Free Software Foundation, Inc. | ||
| 681 | # | ||
| 682 | # This file is free software; the Free Software Foundation | ||
| 683 | # gives unlimited permission to copy and/or distribute it, | ||
| 684 | # with or without modifications, as long as this notice is preserved. | ||
| 685 | |||
| 686 | # serial 6 | ||
| 687 | |||
| 688 | # AM_MISSING_PROG(NAME, PROGRAM) | ||
| 689 | # ------------------------------ | ||
| 690 | AC_DEFUN([AM_MISSING_PROG], | ||
| 691 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | ||
| 692 | $1=${$1-"${am_missing_run}$2"} | ||
| 693 | AC_SUBST($1)]) | ||
| 694 | |||
| 695 | |||
| 696 | # AM_MISSING_HAS_RUN | ||
| 697 | # ------------------ | ||
| 698 | # Define MISSING if not defined so far and test if it supports --run. | ||
| 699 | # If it does, set am_missing_run to use it, otherwise, to nothing. | ||
| 700 | AC_DEFUN([AM_MISSING_HAS_RUN], | ||
| 701 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
| 702 | AC_REQUIRE_AUX_FILE([missing])dnl | ||
| 703 | if test x"${MISSING+set}" != xset; then | ||
| 704 | case $am_aux_dir in | ||
| 705 | *\ * | *\ *) | ||
| 706 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
| 707 | *) | ||
| 708 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
| 709 | esac | ||
| 710 | fi | ||
| 711 | # Use eval to expand $SHELL | ||
| 712 | if eval "$MISSING --run true"; then | ||
| 713 | am_missing_run="$MISSING --run " | ||
| 714 | else | ||
| 715 | am_missing_run= | ||
| 716 | AC_MSG_WARN([`missing' script is too old or missing]) | ||
| 717 | fi | ||
| 718 | ]) | ||
| 719 | |||
| 720 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
| 721 | # | ||
| 722 | # This file is free software; the Free Software Foundation | ||
| 723 | # gives unlimited permission to copy and/or distribute it, | ||
| 724 | # with or without modifications, as long as this notice is preserved. | ||
| 725 | |||
| 726 | # AM_PROG_MKDIR_P | ||
| 727 | # --------------- | ||
| 728 | # Check for `mkdir -p'. | ||
| 729 | AC_DEFUN([AM_PROG_MKDIR_P], | ||
| 730 | [AC_PREREQ([2.60])dnl | ||
| 731 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | ||
| 732 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | ||
| 733 | dnl while keeping a definition of mkdir_p for backward compatibility. | ||
| 734 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | ||
| 735 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | ||
| 736 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | ||
| 737 | dnl adjustment using top_builddir (which is defined more often than | ||
| 738 | dnl MKDIR_P). | ||
| 739 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | ||
| 740 | case $mkdir_p in | ||
| 741 | [[\\/$]]* | ?:[[\\/]]*) ;; | ||
| 742 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
| 743 | esac | ||
| 744 | ]) | ||
| 745 | |||
| 746 | # Helper functions for option handling. -*- Autoconf -*- | ||
| 747 | |||
| 748 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | ||
| 749 | # | ||
| 750 | # This file is free software; the Free Software Foundation | ||
| 751 | # gives unlimited permission to copy and/or distribute it, | ||
| 752 | # with or without modifications, as long as this notice is preserved. | ||
| 753 | |||
| 754 | # serial 4 | ||
| 755 | |||
| 756 | # _AM_MANGLE_OPTION(NAME) | ||
| 757 | # ----------------------- | ||
| 758 | AC_DEFUN([_AM_MANGLE_OPTION], | ||
| 759 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | ||
| 760 | |||
| 761 | # _AM_SET_OPTION(NAME) | ||
| 762 | # ------------------------------ | ||
| 763 | # Set option NAME. Presently that only means defining a flag for this option. | ||
| 764 | AC_DEFUN([_AM_SET_OPTION], | ||
| 765 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | ||
| 766 | |||
| 767 | # _AM_SET_OPTIONS(OPTIONS) | ||
| 768 | # ---------------------------------- | ||
| 769 | # OPTIONS is a space-separated list of Automake options. | ||
| 770 | AC_DEFUN([_AM_SET_OPTIONS], | ||
| 771 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | ||
| 772 | |||
| 773 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | ||
| 774 | # ------------------------------------------- | ||
| 775 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | ||
| 776 | AC_DEFUN([_AM_IF_OPTION], | ||
| 777 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | ||
| 778 | |||
| 779 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | ||
| 780 | |||
| 781 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | ||
| 782 | # Free Software Foundation, Inc. | ||
| 783 | # | ||
| 784 | # This file is free software; the Free Software Foundation | ||
| 785 | # gives unlimited permission to copy and/or distribute it, | ||
| 786 | # with or without modifications, as long as this notice is preserved. | ||
| 787 | |||
| 788 | # serial 5 | ||
| 789 | |||
| 790 | # AM_SANITY_CHECK | ||
| 791 | # --------------- | ||
| 792 | AC_DEFUN([AM_SANITY_CHECK], | ||
| 793 | [AC_MSG_CHECKING([whether build environment is sane]) | ||
| 794 | # Just in case | ||
| 795 | sleep 1 | ||
| 796 | echo timestamp > conftest.file | ||
| 797 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
| 798 | # name. Accept space and tab only in the latter. | ||
| 799 | am_lf=' | ||
| 800 | ' | ||
| 801 | case `pwd` in | ||
| 802 | *[[\\\"\#\$\&\'\`$am_lf]]*) | ||
| 803 | AC_MSG_ERROR([unsafe absolute working directory name]);; | ||
| 804 | esac | ||
| 805 | case $srcdir in | ||
| 806 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | ||
| 807 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | ||
| 808 | esac | ||
| 809 | |||
| 810 | # Do `set' in a subshell so we don't clobber the current shell's | ||
| 811 | # arguments. Must try -L first in case configure is actually a | ||
| 812 | # symlink; some systems play weird games with the mod time of symlinks | ||
| 813 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
| 814 | # directory). | ||
| 815 | if ( | ||
| 816 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
| 817 | if test "$[*]" = "X"; then | ||
| 818 | # -L didn't work. | ||
| 819 | set X `ls -t "$srcdir/configure" conftest.file` | ||
| 820 | fi | ||
| 821 | rm -f conftest.file | ||
| 822 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | ||
| 823 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | ||
| 824 | |||
| 825 | # If neither matched, then we have a broken ls. This can happen | ||
| 826 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
| 827 | # broken ls alias from the environment. This has actually | ||
| 828 | # happened. Such a system could not be considered "sane". | ||
| 829 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | ||
| 830 | alias in your environment]) | ||
| 831 | fi | ||
| 832 | |||
| 833 | test "$[2]" = conftest.file | ||
| 834 | ) | ||
| 835 | then | ||
| 836 | # Ok. | ||
| 837 | : | ||
| 838 | else | ||
| 839 | AC_MSG_ERROR([newly created file is older than distributed files! | ||
| 840 | Check your system clock]) | ||
| 841 | fi | ||
| 842 | AC_MSG_RESULT(yes)]) | ||
| 843 | |||
| 844 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | ||
| 845 | # | ||
| 846 | # This file is free software; the Free Software Foundation | ||
| 847 | # gives unlimited permission to copy and/or distribute it, | ||
| 848 | # with or without modifications, as long as this notice is preserved. | ||
| 849 | |||
| 850 | # AM_PROG_INSTALL_STRIP | ||
| 851 | # --------------------- | ||
| 852 | # One issue with vendor `install' (even GNU) is that you can't | ||
| 853 | # specify the program used to strip binaries. This is especially | ||
| 854 | # annoying in cross-compiling environments, where the build's strip | ||
| 855 | # is unlikely to handle the host's binaries. | ||
| 856 | # Fortunately install-sh will honor a STRIPPROG variable, so we | ||
| 857 | # always use install-sh in `make install-strip', and initialize | ||
| 858 | # STRIPPROG with the value of the STRIP variable (set by the user). | ||
| 859 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | ||
| 860 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | ||
| 861 | # Installed binaries are usually stripped using `strip' when the user | ||
| 862 | # run `make install-strip'. However `strip' might not be the right | ||
| 863 | # tool to use in cross-compilation environments, therefore Automake | ||
| 864 | # will honor the `STRIP' environment variable to overrule this program. | ||
| 865 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | ||
| 866 | if test "$cross_compiling" != no; then | ||
| 867 | AC_CHECK_TOOL([STRIP], [strip], :) | ||
| 868 | fi | ||
| 869 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
| 870 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | ||
| 871 | |||
| 872 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | ||
| 873 | # | ||
| 874 | # This file is free software; the Free Software Foundation | ||
| 875 | # gives unlimited permission to copy and/or distribute it, | ||
| 876 | # with or without modifications, as long as this notice is preserved. | ||
| 877 | |||
| 878 | # serial 2 | ||
| 879 | |||
| 880 | # _AM_SUBST_NOTMAKE(VARIABLE) | ||
| 881 | # --------------------------- | ||
| 882 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | ||
| 883 | # This macro is traced by Automake. | ||
| 884 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | ||
| 885 | |||
| 886 | # AM_SUBST_NOTMAKE(VARIABLE) | ||
| 887 | # --------------------------- | ||
| 888 | # Public sister of _AM_SUBST_NOTMAKE. | ||
| 889 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | ||
| 890 | |||
| 891 | # Check how to create a tarball. -*- Autoconf -*- | ||
| 892 | |||
| 893 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | ||
| 894 | # | ||
| 895 | # This file is free software; the Free Software Foundation | ||
| 896 | # gives unlimited permission to copy and/or distribute it, | ||
| 897 | # with or without modifications, as long as this notice is preserved. | ||
| 898 | |||
| 899 | # serial 2 | ||
| 900 | |||
| 901 | # _AM_PROG_TAR(FORMAT) | ||
| 902 | # -------------------- | ||
| 903 | # Check how to create a tarball in format FORMAT. | ||
| 904 | # FORMAT should be one of `v7', `ustar', or `pax'. | ||
| 905 | # | ||
| 906 | # Substitute a variable $(am__tar) that is a command | ||
| 907 | # writing to stdout a FORMAT-tarball containing the directory | ||
| 908 | # $tardir. | ||
| 909 | # tardir=directory && $(am__tar) > result.tar | ||
| 910 | # | ||
| 911 | # Substitute a variable $(am__untar) that extract such | ||
| 912 | # a tarball read from stdin. | ||
| 913 | # $(am__untar) < result.tar | ||
| 914 | AC_DEFUN([_AM_PROG_TAR], | ||
| 915 | [# Always define AMTAR for backward compatibility. | ||
| 916 | AM_MISSING_PROG([AMTAR], [tar]) | ||
| 917 | m4_if([$1], [v7], | ||
| 918 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | ||
| 919 | [m4_case([$1], [ustar],, [pax],, | ||
| 920 | [m4_fatal([Unknown tar format])]) | ||
| 921 | AC_MSG_CHECKING([how to create a $1 tar archive]) | ||
| 922 | # Loop over all known methods to create a tar archive until one works. | ||
| 923 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | ||
| 924 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | ||
| 925 | # Do not fold the above two line into one, because Tru64 sh and | ||
| 926 | # Solaris sh will not grok spaces in the rhs of `-'. | ||
| 927 | for _am_tool in $_am_tools | ||
| 928 | do | ||
| 929 | case $_am_tool in | ||
| 930 | gnutar) | ||
| 931 | for _am_tar in tar gnutar gtar; | ||
| 932 | do | ||
| 933 | AM_RUN_LOG([$_am_tar --version]) && break | ||
| 934 | done | ||
| 935 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | ||
| 936 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | ||
| 937 | am__untar="$_am_tar -xf -" | ||
| 938 | ;; | ||
| 939 | plaintar) | ||
| 940 | # Must skip GNU tar: if it does not support --format= it doesn't create | ||
| 941 | # ustar tarball either. | ||
| 942 | (tar --version) >/dev/null 2>&1 && continue | ||
| 943 | am__tar='tar chf - "$$tardir"' | ||
| 944 | am__tar_='tar chf - "$tardir"' | ||
| 945 | am__untar='tar xf -' | ||
| 946 | ;; | ||
| 947 | pax) | ||
| 948 | am__tar='pax -L -x $1 -w "$$tardir"' | ||
| 949 | am__tar_='pax -L -x $1 -w "$tardir"' | ||
| 950 | am__untar='pax -r' | ||
| 951 | ;; | ||
| 952 | cpio) | ||
| 953 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | ||
| 954 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | ||
| 955 | am__untar='cpio -i -H $1 -d' | ||
| 956 | ;; | ||
| 957 | none) | ||
| 958 | am__tar=false | ||
| 959 | am__tar_=false | ||
| 960 | am__untar=false | ||
| 961 | ;; | ||
| 962 | esac | ||
| 963 | |||
| 964 | # If the value was cached, stop now. We just wanted to have am__tar | ||
| 965 | # and am__untar set. | ||
| 966 | test -n "${am_cv_prog_tar_$1}" && break | ||
| 967 | |||
| 968 | # tar/untar a dummy directory, and stop if the command works | ||
| 969 | rm -rf conftest.dir | ||
| 970 | mkdir conftest.dir | ||
| 971 | echo GrepMe > conftest.dir/file | ||
| 972 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | ||
| 973 | rm -rf conftest.dir | ||
| 974 | if test -s conftest.tar; then | ||
| 975 | AM_RUN_LOG([$am__untar <conftest.tar]) | ||
| 976 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | ||
| 977 | fi | ||
| 978 | done | ||
| 979 | rm -rf conftest.dir | ||
| 980 | |||
| 981 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | ||
| 982 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | ||
| 983 | AC_SUBST([am__tar]) | ||
| 984 | AC_SUBST([am__untar]) | ||
| 985 | ]) # _AM_PROG_TAR | ||
| 986 | |||
| 987 | m4_include([m4/00gnulib.m4]) | ||
| 988 | m4_include([m4/c-strtod.m4]) | ||
| 989 | m4_include([m4/extensions.m4]) | ||
| 990 | m4_include([m4/filemode.m4]) | ||
| 991 | m4_include([m4/getloadavg.m4]) | ||
| 992 | m4_include([m4/getopt.m4]) | ||
| 993 | m4_include([m4/gl-comp.m4]) | ||
| 994 | m4_include([m4/gnulib-common.m4]) | ||
| 995 | m4_include([m4/include_next.m4]) | ||
| 996 | m4_include([m4/longlong.m4]) | ||
| 997 | m4_include([m4/lstat.m4]) | ||
| 998 | m4_include([m4/md5.m4]) | ||
| 999 | m4_include([m4/mktime.m4]) | ||
| 1000 | m4_include([m4/multiarch.m4]) | ||
| 1001 | m4_include([m4/readlink.m4]) | ||
| 1002 | m4_include([m4/st_dm_mode.m4]) | ||
| 1003 | m4_include([m4/stat.m4]) | ||
| 1004 | m4_include([m4/stdbool.m4]) | ||
| 1005 | m4_include([m4/stddef_h.m4]) | ||
| 1006 | m4_include([m4/stdint.m4]) | ||
| 1007 | m4_include([m4/stdlib_h.m4]) | ||
| 1008 | m4_include([m4/strftime.m4]) | ||
| 1009 | m4_include([m4/symlink.m4]) | ||
| 1010 | m4_include([m4/sys_stat_h.m4]) | ||
| 1011 | m4_include([m4/time_h.m4]) | ||
| 1012 | m4_include([m4/time_r.m4]) | ||
| 1013 | m4_include([m4/tm_gmtoff.m4]) | ||
| 1014 | m4_include([m4/unistd_h.m4]) | ||
| 1015 | m4_include([m4/wchar_t.m4]) | ||
diff --git a/autogen/config.in b/autogen/config.in new file mode 100644 index 00000000000..8889213b781 --- /dev/null +++ b/autogen/config.in | |||
| @@ -0,0 +1,1391 @@ | |||
| 1 | /* src/config.in. Generated from configure.in by autoheader. */ | ||
| 2 | |||
| 3 | /* GNU Emacs site configuration template file. | ||
| 4 | |||
| 5 | Copyright (C) 1988, 1993-1994, 1999-2002, 2004-2011 | ||
| 6 | Free Software Foundation, Inc. | ||
| 7 | |||
| 8 | This file is part of GNU Emacs. | ||
| 9 | |||
| 10 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 11 | it under the terms of the GNU General Public License as published by | ||
| 12 | the Free Software Foundation, either version 3 of the License, or | ||
| 13 | (at your option) any later version. | ||
| 14 | |||
| 15 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | GNU General Public License for more details. | ||
| 19 | |||
| 20 | You should have received a copy of the GNU General Public License | ||
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 22 | |||
| 23 | |||
| 24 | /* No code in Emacs #includes config.h twice, but some bits of code | ||
| 25 | intended to work with other packages as well (like gmalloc.c) | ||
| 26 | think they can include it as many times as they like. */ | ||
| 27 | #ifndef EMACS_CONFIG_H | ||
| 28 | #define EMACS_CONFIG_H | ||
| 29 | |||
| 30 | |||
| 31 | /* Define if building universal (internal helper macro) */ | ||
| 32 | #undef AC_APPLE_UNIVERSAL_BUILD | ||
| 33 | |||
| 34 | /* Define to the number of bits in type 'ptrdiff_t'. */ | ||
| 35 | #undef BITSIZEOF_PTRDIFF_T | ||
| 36 | |||
| 37 | /* Define to the number of bits in type 'sig_atomic_t'. */ | ||
| 38 | #undef BITSIZEOF_SIG_ATOMIC_T | ||
| 39 | |||
| 40 | /* Define to the number of bits in type 'size_t'. */ | ||
| 41 | #undef BITSIZEOF_SIZE_T | ||
| 42 | |||
| 43 | /* Define to the number of bits in type 'wchar_t'. */ | ||
| 44 | #undef BITSIZEOF_WCHAR_T | ||
| 45 | |||
| 46 | /* Define to the number of bits in type 'wint_t'. */ | ||
| 47 | #undef BITSIZEOF_WINT_T | ||
| 48 | |||
| 49 | /* Define if Emacs cannot be dumped on your system. */ | ||
| 50 | #undef CANNOT_DUMP | ||
| 51 | |||
| 52 | /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP | ||
| 53 | systems. This function is required for `alloca.c' support on those systems. | ||
| 54 | */ | ||
| 55 | #undef CRAY_STACKSEG_END | ||
| 56 | |||
| 57 | /* Define to 1 if using `alloca.c'. */ | ||
| 58 | #undef C_ALLOCA | ||
| 59 | |||
| 60 | /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */ | ||
| 61 | #undef DGUX | ||
| 62 | |||
| 63 | /* Define to 1 if you are using the GNU C Library. */ | ||
| 64 | #undef DOUG_LEA_MALLOC | ||
| 65 | |||
| 66 | /* Define to the canonical Emacs configuration name. */ | ||
| 67 | #undef EMACS_CONFIGURATION | ||
| 68 | |||
| 69 | /* Define to the options passed to configure. */ | ||
| 70 | #undef EMACS_CONFIG_OPTIONS | ||
| 71 | |||
| 72 | /* Enable expensive run-time checking of data types? */ | ||
| 73 | #undef ENABLE_CHECKING | ||
| 74 | |||
| 75 | /* Define this to check for errors in cons list. */ | ||
| 76 | #undef GC_CHECK_CONS_LIST | ||
| 77 | |||
| 78 | /* Define this temporarily to hunt a bug. If defined, the size of strings is | ||
| 79 | redundantly recorded in sdata structures so that it can be compared to the | ||
| 80 | sizes recorded in Lisp strings. */ | ||
| 81 | #undef GC_CHECK_STRING_BYTES | ||
| 82 | |||
| 83 | /* Define this to check the string free list. */ | ||
| 84 | #undef GC_CHECK_STRING_FREE_LIST | ||
| 85 | |||
| 86 | /* Define this to check for short string overrun. */ | ||
| 87 | #undef GC_CHECK_STRING_OVERRUN | ||
| 88 | |||
| 89 | /* Define to 1 if the `getpgrp' function requires zero arguments. */ | ||
| 90 | #undef GETPGRP_VOID | ||
| 91 | |||
| 92 | /* Define to 1 if gettimeofday accepts only one argument. */ | ||
| 93 | #undef GETTIMEOFDAY_ONE_ARGUMENT | ||
| 94 | |||
| 95 | /* Define to 1 if you want to use the GNU memory allocator. */ | ||
| 96 | #undef GNU_MALLOC | ||
| 97 | |||
| 98 | /* Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists. */ | ||
| 99 | #undef HAVE_AIX_SMT_EXP | ||
| 100 | |||
| 101 | /* Define to 1 if you have the `alarm' function. */ | ||
| 102 | #undef HAVE_ALARM | ||
| 103 | |||
| 104 | /* Define to 1 if you have `alloca', as a function or macro. */ | ||
| 105 | #undef HAVE_ALLOCA | ||
| 106 | |||
| 107 | /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). | ||
| 108 | */ | ||
| 109 | #undef HAVE_ALLOCA_H | ||
| 110 | |||
| 111 | /* Define to 1 if ALSA is available. */ | ||
| 112 | #undef HAVE_ALSA | ||
| 113 | |||
| 114 | /* Define to 1 if GCC-style __attribute__ ((__aligned__ (expr))) works. */ | ||
| 115 | #undef HAVE_ATTRIBUTE_ALIGNED | ||
| 116 | |||
| 117 | /* Define to 1 if strtold conforms to C99. */ | ||
| 118 | #undef HAVE_C99_STRTOLD | ||
| 119 | |||
| 120 | /* Define to 1 if you have the `cbrt' function. */ | ||
| 121 | #undef HAVE_CBRT | ||
| 122 | |||
| 123 | /* Define to 1 if you have the `cfmakeraw' function. */ | ||
| 124 | #undef HAVE_CFMAKERAW | ||
| 125 | |||
| 126 | /* Define to 1 if you have the `cfsetspeed' function. */ | ||
| 127 | #undef HAVE_CFSETSPEED | ||
| 128 | |||
| 129 | /* Define to 1 if you have the `closedir' function. */ | ||
| 130 | #undef HAVE_CLOSEDIR | ||
| 131 | |||
| 132 | /* Define to 1 if you have the <coff.h> header file. */ | ||
| 133 | #undef HAVE_COFF_H | ||
| 134 | |||
| 135 | /* Define to 1 if you have the <com_err.h> header file. */ | ||
| 136 | #undef HAVE_COM_ERR_H | ||
| 137 | |||
| 138 | /* Define to 1 if you have the `copysign' function. */ | ||
| 139 | #undef HAVE_COPYSIGN | ||
| 140 | |||
| 141 | /* Define to 1 if using D-Bus. */ | ||
| 142 | #undef HAVE_DBUS | ||
| 143 | |||
| 144 | /* Define to 1 if you have the `dbus_watch_get_unix_fd' function. */ | ||
| 145 | #undef HAVE_DBUS_WATCH_GET_UNIX_FD | ||
| 146 | |||
| 147 | /* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. | ||
| 148 | */ | ||
| 149 | #undef HAVE_DECL_GETENV | ||
| 150 | |||
| 151 | /* Define to 1 if you have the declaration of `localtime_r', and to 0 if you | ||
| 152 | don't. */ | ||
| 153 | #undef HAVE_DECL_LOCALTIME_R | ||
| 154 | |||
| 155 | /* Define to 1 if you have the declaration of `strmode', and to 0 if you | ||
| 156 | don't. */ | ||
| 157 | #undef HAVE_DECL_STRMODE | ||
| 158 | |||
| 159 | /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you | ||
| 160 | don't. */ | ||
| 161 | #undef HAVE_DECL_SYS_SIGLIST | ||
| 162 | |||
| 163 | /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. | ||
| 164 | */ | ||
| 165 | #undef HAVE_DECL_TZNAME | ||
| 166 | |||
| 167 | /* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you | ||
| 168 | don't. */ | ||
| 169 | #undef HAVE_DECL___SYS_SIGLIST | ||
| 170 | |||
| 171 | /* Define to 1 if you have the <des.h> header file. */ | ||
| 172 | #undef HAVE_DES_H | ||
| 173 | |||
| 174 | /* Define to 1 if dynamic ptys are supported. */ | ||
| 175 | #undef HAVE_DEV_PTMX | ||
| 176 | |||
| 177 | /* Define to 1 if you have the `difftime' function. */ | ||
| 178 | #undef HAVE_DIFFTIME | ||
| 179 | |||
| 180 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
| 181 | #undef HAVE_DIRENT_H | ||
| 182 | |||
| 183 | /* Define to 1 if you have the `dup2' function. */ | ||
| 184 | #undef HAVE_DUP2 | ||
| 185 | |||
| 186 | /* Define to 1 if you have the `euidaccess' function. */ | ||
| 187 | #undef HAVE_EUIDACCESS | ||
| 188 | |||
| 189 | /* Define to 1 if you have the <fcntl.h> header file. */ | ||
| 190 | #undef HAVE_FCNTL_H | ||
| 191 | |||
| 192 | /* Define to 1 if you have the `fmod' function. */ | ||
| 193 | #undef HAVE_FMOD | ||
| 194 | |||
| 195 | /* Define to 1 if you have the `fork' function. */ | ||
| 196 | #undef HAVE_FORK | ||
| 197 | |||
| 198 | /* Define to 1 if you have the `fpathconf' function. */ | ||
| 199 | #undef HAVE_FPATHCONF | ||
| 200 | |||
| 201 | /* Define to 1 if using the freetype and fontconfig libraries. */ | ||
| 202 | #undef HAVE_FREETYPE | ||
| 203 | |||
| 204 | /* Define to 1 if you have the `frexp' function. */ | ||
| 205 | #undef HAVE_FREXP | ||
| 206 | |||
| 207 | /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ | ||
| 208 | #undef HAVE_FSEEKO | ||
| 209 | |||
| 210 | /* Define to 1 if you have the `fsync' function. */ | ||
| 211 | #undef HAVE_FSYNC | ||
| 212 | |||
| 213 | /* Define to 1 if you have the `ftime' function. */ | ||
| 214 | #undef HAVE_FTIME | ||
| 215 | |||
| 216 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
| 217 | #undef HAVE_GAI_STRERROR | ||
| 218 | |||
| 219 | /* Define to 1 if using GConf. */ | ||
| 220 | #undef HAVE_GCONF | ||
| 221 | |||
| 222 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
| 223 | #undef HAVE_GETADDRINFO | ||
| 224 | |||
| 225 | /* Define to 1 if you have the `getcwd' function. */ | ||
| 226 | #undef HAVE_GETCWD | ||
| 227 | |||
| 228 | /* Define to 1 if you have the `getdelim' function. */ | ||
| 229 | #undef HAVE_GETDELIM | ||
| 230 | |||
| 231 | /* Define to 1 if you have the `getdomainname' function. */ | ||
| 232 | #undef HAVE_GETDOMAINNAME | ||
| 233 | |||
| 234 | /* Define to 1 if you have the `gethostname' function. */ | ||
| 235 | #undef HAVE_GETHOSTNAME | ||
| 236 | |||
| 237 | /* Define to 1 if you have the `getline' function. */ | ||
| 238 | #undef HAVE_GETLINE | ||
| 239 | |||
| 240 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
| 241 | #undef HAVE_GETOPT_H | ||
| 242 | |||
| 243 | /* Define to 1 if you have the `getopt_long_only' function. */ | ||
| 244 | #undef HAVE_GETOPT_LONG_ONLY | ||
| 245 | |||
| 246 | /* Define to 1 if you have the `getpagesize' function. */ | ||
| 247 | #undef HAVE_GETPAGESIZE | ||
| 248 | |||
| 249 | /* Define to 1 if you have the `getpeername' function. */ | ||
| 250 | #undef HAVE_GETPEERNAME | ||
| 251 | |||
| 252 | /* Define to 1 if you have the `getpt' function. */ | ||
| 253 | #undef HAVE_GETPT | ||
| 254 | |||
| 255 | /* Define to 1 if you have the `getrlimit' function. */ | ||
| 256 | #undef HAVE_GETRLIMIT | ||
| 257 | |||
| 258 | /* Define to 1 if you have the `getrusage' function. */ | ||
| 259 | #undef HAVE_GETRUSAGE | ||
| 260 | |||
| 261 | /* Define to 1 if you have the `getsockname' function. */ | ||
| 262 | #undef HAVE_GETSOCKNAME | ||
| 263 | |||
| 264 | /* Define to 1 if you have the `getsockopt' function. */ | ||
| 265 | #undef HAVE_GETSOCKOPT | ||
| 266 | |||
| 267 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
| 268 | #undef HAVE_GETTIMEOFDAY | ||
| 269 | |||
| 270 | /* Define to 1 if you have the `getwd' function. */ | ||
| 271 | #undef HAVE_GETWD | ||
| 272 | |||
| 273 | /* Define to 1 if you have the `get_current_dir_name' function. */ | ||
| 274 | #undef HAVE_GET_CURRENT_DIR_NAME | ||
| 275 | |||
| 276 | /* Define to 1 if you have a gif (or ungif) library. */ | ||
| 277 | #undef HAVE_GIF | ||
| 278 | |||
| 279 | /* Define if using GnuTLS. */ | ||
| 280 | #undef HAVE_GNUTLS | ||
| 281 | |||
| 282 | /* Define to 1 if you have the gpm library (-lgpm). */ | ||
| 283 | #undef HAVE_GPM | ||
| 284 | |||
| 285 | /* Define to 1 if you have the `grantpt' function. */ | ||
| 286 | #undef HAVE_GRANTPT | ||
| 287 | |||
| 288 | /* Define to 1 if using GTK 3 or later. */ | ||
| 289 | #undef HAVE_GTK3 | ||
| 290 | |||
| 291 | /* Define to 1 if you have the `gtk_adjustment_get_page_size' function. */ | ||
| 292 | #undef HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE | ||
| 293 | |||
| 294 | /* Define to 1 if you have GTK and pthread (-lpthread). */ | ||
| 295 | #undef HAVE_GTK_AND_PTHREAD | ||
| 296 | |||
| 297 | /* Define to 1 if you have the `gtk_dialog_get_action_area' function. */ | ||
| 298 | #undef HAVE_GTK_DIALOG_GET_ACTION_AREA | ||
| 299 | |||
| 300 | /* Define to 1 if you have the `gtk_file_selection_new' function. */ | ||
| 301 | #undef HAVE_GTK_FILE_SELECTION_NEW | ||
| 302 | |||
| 303 | /* Define to 1 if you have the `gtk_main' function. */ | ||
| 304 | #undef HAVE_GTK_MAIN | ||
| 305 | |||
| 306 | /* Define to 1 if you have the `gtk_orientable_set_orientation' function. */ | ||
| 307 | #undef HAVE_GTK_ORIENTABLE_SET_ORIENTATION | ||
| 308 | |||
| 309 | /* Define to 1 if you have the `gtk_widget_get_mapped' function. */ | ||
| 310 | #undef HAVE_GTK_WIDGET_GET_MAPPED | ||
| 311 | |||
| 312 | /* Define to 1 if you have the `gtk_widget_get_sensitive' function. */ | ||
| 313 | #undef HAVE_GTK_WIDGET_GET_SENSITIVE | ||
| 314 | |||
| 315 | /* Define to 1 if you have the `gtk_widget_get_window' function. */ | ||
| 316 | #undef HAVE_GTK_WIDGET_GET_WINDOW | ||
| 317 | |||
| 318 | /* Define to 1 if you have the `gtk_widget_set_has_window' function. */ | ||
| 319 | #undef HAVE_GTK_WIDGET_SET_HAS_WINDOW | ||
| 320 | |||
| 321 | /* Define to 1 if you have the `g_type_init' function. */ | ||
| 322 | #undef HAVE_G_TYPE_INIT | ||
| 323 | |||
| 324 | /* Define to 1 if netdb.h declares h_errno. */ | ||
| 325 | #undef HAVE_H_ERRNO | ||
| 326 | |||
| 327 | /* Define to 1 if using imagemagick. */ | ||
| 328 | #undef HAVE_IMAGEMAGICK | ||
| 329 | |||
| 330 | /* Define to 1 if you have inet sockets. */ | ||
| 331 | #undef HAVE_INET_SOCKETS | ||
| 332 | |||
| 333 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
| 334 | #undef HAVE_INTTYPES_H | ||
| 335 | |||
| 336 | /* Define to 1 if you have the `isnan' function. */ | ||
| 337 | #undef HAVE_ISNAN | ||
| 338 | |||
| 339 | /* Define to 1 if you have the jpeg library (-ljpeg). */ | ||
| 340 | #undef HAVE_JPEG | ||
| 341 | |||
| 342 | /* Define to 1 if you have the <kerberosIV/des.h> header file. */ | ||
| 343 | #undef HAVE_KERBEROSIV_DES_H | ||
| 344 | |||
| 345 | /* Define to 1 if you have the <kerberosIV/krb.h> header file. */ | ||
| 346 | #undef HAVE_KERBEROSIV_KRB_H | ||
| 347 | |||
| 348 | /* Define to 1 if you have the <kerberos/des.h> header file. */ | ||
| 349 | #undef HAVE_KERBEROS_DES_H | ||
| 350 | |||
| 351 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ | ||
| 352 | #undef HAVE_KERBEROS_KRB_H | ||
| 353 | |||
| 354 | /* Define to 1 if `e_text' is a member of `krb5_error'. */ | ||
| 355 | #undef HAVE_KRB5_ERROR_E_TEXT | ||
| 356 | |||
| 357 | /* Define to 1 if `text' is a member of `krb5_error'. */ | ||
| 358 | #undef HAVE_KRB5_ERROR_TEXT | ||
| 359 | |||
| 360 | /* Define to 1 if you have the <krb5.h> header file. */ | ||
| 361 | #undef HAVE_KRB5_H | ||
| 362 | |||
| 363 | /* Define to 1 if you have the <krb.h> header file. */ | ||
| 364 | #undef HAVE_KRB_H | ||
| 365 | |||
| 366 | /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ | ||
| 367 | #undef HAVE_LANGINFO_CODESET | ||
| 368 | |||
| 369 | /* Define to 1 if you have the `com_err' library (-lcom_err). */ | ||
| 370 | #undef HAVE_LIBCOM_ERR | ||
| 371 | |||
| 372 | /* Define to 1 if you have the `crypto' library (-lcrypto). */ | ||
| 373 | #undef HAVE_LIBCRYPTO | ||
| 374 | |||
| 375 | /* Define to 1 if you have the `des' library (-ldes). */ | ||
| 376 | #undef HAVE_LIBDES | ||
| 377 | |||
| 378 | /* Define to 1 if you have the `des425' library (-ldes425). */ | ||
| 379 | #undef HAVE_LIBDES425 | ||
| 380 | |||
| 381 | /* Define to 1 if you have the `dgc' library (-ldgc). */ | ||
| 382 | #undef HAVE_LIBDGC | ||
| 383 | |||
| 384 | /* Define to 1 if you have the `dnet' library (-ldnet). */ | ||
| 385 | #undef HAVE_LIBDNET | ||
| 386 | |||
| 387 | /* Define to 1 if you have the hesiod library (-lhesiod). */ | ||
| 388 | #undef HAVE_LIBHESIOD | ||
| 389 | |||
| 390 | /* Define to 1 if you have the `intl' library (-lintl). */ | ||
| 391 | #undef HAVE_LIBINTL | ||
| 392 | |||
| 393 | /* Define to 1 if you have the `k5crypto' library (-lk5crypto). */ | ||
| 394 | #undef HAVE_LIBK5CRYPTO | ||
| 395 | |||
| 396 | /* Define to 1 if you have the `krb' library (-lkrb). */ | ||
| 397 | #undef HAVE_LIBKRB | ||
| 398 | |||
| 399 | /* Define to 1 if you have the `krb4' library (-lkrb4). */ | ||
| 400 | #undef HAVE_LIBKRB4 | ||
| 401 | |||
| 402 | /* Define to 1 if you have the `krb5' library (-lkrb5). */ | ||
| 403 | #undef HAVE_LIBKRB5 | ||
| 404 | |||
| 405 | /* Define to 1 if you have the `kstat' library (-lkstat). */ | ||
| 406 | #undef HAVE_LIBKSTAT | ||
| 407 | |||
| 408 | /* Define to 1 if you have the `lockfile' library (-llockfile). */ | ||
| 409 | #undef HAVE_LIBLOCKFILE | ||
| 410 | |||
| 411 | /* Define to 1 if you have the `m' library (-lm). */ | ||
| 412 | #undef HAVE_LIBM | ||
| 413 | |||
| 414 | /* Define to 1 if you have the `mail' library (-lmail). */ | ||
| 415 | #undef HAVE_LIBMAIL | ||
| 416 | |||
| 417 | /* Define to 1 if you have the `ncurses' library (-lncurses). */ | ||
| 418 | #undef HAVE_LIBNCURSES | ||
| 419 | |||
| 420 | /* Define to 1 if using libotf. */ | ||
| 421 | #undef HAVE_LIBOTF | ||
| 422 | |||
| 423 | /* Define to 1 if you have the `perfstat' library (-lperfstat). */ | ||
| 424 | #undef HAVE_LIBPERFSTAT | ||
| 425 | |||
| 426 | /* Define to 1 if you have the <libpng/png.h> header file. */ | ||
| 427 | #undef HAVE_LIBPNG_PNG_H | ||
| 428 | |||
| 429 | /* Define to 1 if you have the `pthreads' library (-lpthreads). */ | ||
| 430 | #undef HAVE_LIBPTHREADS | ||
| 431 | |||
| 432 | /* Define to 1 if you have the resolv library (-lresolv). */ | ||
| 433 | #undef HAVE_LIBRESOLV | ||
| 434 | |||
| 435 | /* Define to 1 if using SELinux. */ | ||
| 436 | #undef HAVE_LIBSELINUX | ||
| 437 | |||
| 438 | /* Define to 1 if you have the `Xext' library (-lXext). */ | ||
| 439 | #undef HAVE_LIBXEXT | ||
| 440 | |||
| 441 | /* Define to 1 if you have the libxml library (-lxml2). */ | ||
| 442 | #undef HAVE_LIBXML2 | ||
| 443 | |||
| 444 | /* Define to 1 if you have the `Xmu' library (-lXmu). */ | ||
| 445 | #undef HAVE_LIBXMU | ||
| 446 | |||
| 447 | /* Define to 1 if you have the <limits.h> header file. */ | ||
| 448 | #undef HAVE_LIMITS_H | ||
| 449 | |||
| 450 | /* Define to 1 if you have the <linux/version.h> header file. */ | ||
| 451 | #undef HAVE_LINUX_VERSION_H | ||
| 452 | |||
| 453 | /* Define to 1 if you have the <locale.h> header file. */ | ||
| 454 | #undef HAVE_LOCALE_H | ||
| 455 | |||
| 456 | /* Define to 1 if you have the `localtime_r' function. */ | ||
| 457 | #undef HAVE_LOCALTIME_R | ||
| 458 | |||
| 459 | /* Define to 1 if you have the `logb' function. */ | ||
| 460 | #undef HAVE_LOGB | ||
| 461 | |||
| 462 | /* Define to 1 if you support file names longer than 14 characters. */ | ||
| 463 | #undef HAVE_LONG_FILE_NAMES | ||
| 464 | |||
| 465 | /* Define to 1 if the system has the type `long long int'. */ | ||
| 466 | #undef HAVE_LONG_LONG_INT | ||
| 467 | |||
| 468 | /* Define to 1 if you have the `lrand48' function. */ | ||
| 469 | #undef HAVE_LRAND48 | ||
| 470 | |||
| 471 | /* Define to 1 if you have the `lstat' function. */ | ||
| 472 | #undef HAVE_LSTAT | ||
| 473 | |||
| 474 | /* Define to 1 if using libm17n-flt. */ | ||
| 475 | #undef HAVE_M17N_FLT | ||
| 476 | |||
| 477 | /* Define to 1 if you have the <machine/soundcard.h> header file. */ | ||
| 478 | #undef HAVE_MACHINE_SOUNDCARD_H | ||
| 479 | |||
| 480 | /* Define to 1 if you have the <mach/mach.h> header file. */ | ||
| 481 | #undef HAVE_MACH_MACH_H | ||
| 482 | |||
| 483 | /* Define to 1 if you have the `MagickExportImagePixels' function. */ | ||
| 484 | #undef HAVE_MAGICKEXPORTIMAGEPIXELS | ||
| 485 | |||
| 486 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
| 487 | #undef HAVE_MAILLOCK_H | ||
| 488 | |||
| 489 | /* Define to 1 if you have the <malloc/malloc.h> header file. */ | ||
| 490 | #undef HAVE_MALLOC_MALLOC_H | ||
| 491 | |||
| 492 | /* Define to 1 if you have the `mblen' function. */ | ||
| 493 | #undef HAVE_MBLEN | ||
| 494 | |||
| 495 | /* Define to 1 if you have the `mbrlen' function. */ | ||
| 496 | #undef HAVE_MBRLEN | ||
| 497 | |||
| 498 | /* Define to 1 if you have the `mbsinit' function. */ | ||
| 499 | #undef HAVE_MBSINIT | ||
| 500 | |||
| 501 | /* Define to 1 if <wchar.h> declares mbstate_t. */ | ||
| 502 | #undef HAVE_MBSTATE_T | ||
| 503 | |||
| 504 | /* Define to 1 if you have the `memcmp' function. */ | ||
| 505 | #undef HAVE_MEMCMP | ||
| 506 | |||
| 507 | /* Define to 1 if you have the `memcpy' function. */ | ||
| 508 | #undef HAVE_MEMCPY | ||
| 509 | |||
| 510 | /* Define to 1 if you have the `memmove' function. */ | ||
| 511 | #undef HAVE_MEMMOVE | ||
| 512 | |||
| 513 | /* Define to 1 if you have the <memory.h> header file. */ | ||
| 514 | #undef HAVE_MEMORY_H | ||
| 515 | |||
| 516 | /* Define to 1 if you have the `mempcpy' function. */ | ||
| 517 | #undef HAVE_MEMPCPY | ||
| 518 | |||
| 519 | /* Define to 1 if you have the `memset' function. */ | ||
| 520 | #undef HAVE_MEMSET | ||
| 521 | |||
| 522 | /* Define to 1 if you have mouse menus. (This is automatic if you use X, but | ||
| 523 | the option to specify it remains.) It is also defined with other window | ||
| 524 | systems that support xmenu.c. */ | ||
| 525 | #undef HAVE_MENUS | ||
| 526 | |||
| 527 | /* Define to 1 if you have the `mkdir' function. */ | ||
| 528 | #undef HAVE_MKDIR | ||
| 529 | |||
| 530 | /* Define to 1 if you have the `mkstemp' function. */ | ||
| 531 | #undef HAVE_MKSTEMP | ||
| 532 | |||
| 533 | /* Define to 1 if you have a working `mmap' system call. */ | ||
| 534 | #undef HAVE_MMAP | ||
| 535 | |||
| 536 | /* Define if you have mouse support. */ | ||
| 537 | #undef HAVE_MOUSE | ||
| 538 | |||
| 539 | /* Define to 1 if you have the `mremap' function. */ | ||
| 540 | #undef HAVE_MREMAP | ||
| 541 | |||
| 542 | /* Define to 1 if you have the <net/if.h> header file. */ | ||
| 543 | #undef HAVE_NET_IF_H | ||
| 544 | |||
| 545 | /* Define to 1 if you have the <nlist.h> header file. */ | ||
| 546 | #undef HAVE_NLIST_H | ||
| 547 | |||
| 548 | /* Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on | ||
| 549 | Mac OS X. */ | ||
| 550 | #undef HAVE_NS | ||
| 551 | |||
| 552 | /* Define to 1 if libotf has OTF_get_variation_glyphs. */ | ||
| 553 | #undef HAVE_OTF_GET_VARIATION_GLYPHS | ||
| 554 | |||
| 555 | /* Define to 1 if personality LINUX32 can be set. */ | ||
| 556 | #undef HAVE_PERSONALITY_LINUX32 | ||
| 557 | |||
| 558 | /* Define to 1 if you have the png library (-lpng). */ | ||
| 559 | #undef HAVE_PNG | ||
| 560 | |||
| 561 | /* Define to 1 if you have the <png.h> header file. */ | ||
| 562 | #undef HAVE_PNG_H | ||
| 563 | |||
| 564 | /* Define to 1 if you have the `posix_memalign' function. */ | ||
| 565 | #undef HAVE_POSIX_MEMALIGN | ||
| 566 | |||
| 567 | /* Define to 1 if you have the `pstat_getdynamic' function. */ | ||
| 568 | #undef HAVE_PSTAT_GETDYNAMIC | ||
| 569 | |||
| 570 | /* Define to 1 if you have the <pthread.h> header file. */ | ||
| 571 | #undef HAVE_PTHREAD_H | ||
| 572 | |||
| 573 | /* Define to 1 if you have the <pty.h> header file. */ | ||
| 574 | #undef HAVE_PTY_H | ||
| 575 | |||
| 576 | /* Define to 1 if you have the <pwd.h> header file. */ | ||
| 577 | #undef HAVE_PWD_H | ||
| 578 | |||
| 579 | /* Define to 1 if you have the `random' function. */ | ||
| 580 | #undef HAVE_RANDOM | ||
| 581 | |||
| 582 | /* Define to 1 if you have the `readlink' function. */ | ||
| 583 | #undef HAVE_READLINK | ||
| 584 | |||
| 585 | /* Define to 1 if you have the `recvfrom' function. */ | ||
| 586 | #undef HAVE_RECVFROM | ||
| 587 | |||
| 588 | /* Define to 1 if you have the `rename' function. */ | ||
| 589 | #undef HAVE_RENAME | ||
| 590 | |||
| 591 | /* Define to 1 if res_init is available. */ | ||
| 592 | #undef HAVE_RES_INIT | ||
| 593 | |||
| 594 | /* Define to 1 if you have the `rint' function. */ | ||
| 595 | #undef HAVE_RINT | ||
| 596 | |||
| 597 | /* Define to 1 if you have the `rmdir' function. */ | ||
| 598 | #undef HAVE_RMDIR | ||
| 599 | |||
| 600 | /* Define to 1 if using librsvg. */ | ||
| 601 | #undef HAVE_RSVG | ||
| 602 | |||
| 603 | /* Define to 1 if you have the `select' function. */ | ||
| 604 | #undef HAVE_SELECT | ||
| 605 | |||
| 606 | /* Define to 1 if you have the `sendto' function. */ | ||
| 607 | #undef HAVE_SENDTO | ||
| 608 | |||
| 609 | /* Define to 1 if you have the `setitimer' function. */ | ||
| 610 | #undef HAVE_SETITIMER | ||
| 611 | |||
| 612 | /* Define to 1 if you have the `setlocale' function. */ | ||
| 613 | #undef HAVE_SETLOCALE | ||
| 614 | |||
| 615 | /* Define to 1 if you have the `setpgid' function. */ | ||
| 616 | #undef HAVE_SETPGID | ||
| 617 | |||
| 618 | /* Define to 1 if you have the `setrlimit' function. */ | ||
| 619 | #undef HAVE_SETRLIMIT | ||
| 620 | |||
| 621 | /* Define to 1 if you have the `setsid' function. */ | ||
| 622 | #undef HAVE_SETSID | ||
| 623 | |||
| 624 | /* Define to 1 if you have the `setsockopt' function. */ | ||
| 625 | #undef HAVE_SETSOCKOPT | ||
| 626 | |||
| 627 | /* Define to 1 if you have the `shutdown' function. */ | ||
| 628 | #undef HAVE_SHUTDOWN | ||
| 629 | |||
| 630 | /* Define to 1 if 'sig_atomic_t' is a signed integer type. */ | ||
| 631 | #undef HAVE_SIGNED_SIG_ATOMIC_T | ||
| 632 | |||
| 633 | /* Define to 1 if 'wchar_t' is a signed integer type. */ | ||
| 634 | #undef HAVE_SIGNED_WCHAR_T | ||
| 635 | |||
| 636 | /* Define to 1 if 'wint_t' is a signed integer type. */ | ||
| 637 | #undef HAVE_SIGNED_WINT_T | ||
| 638 | |||
| 639 | /* Define to 1 if the system has the type `size_t'. */ | ||
| 640 | #undef HAVE_SIZE_T | ||
| 641 | |||
| 642 | /* Define to 1 if you have sound support. */ | ||
| 643 | #undef HAVE_SOUND | ||
| 644 | |||
| 645 | /* Define to 1 if you have the <soundcard.h> header file. */ | ||
| 646 | #undef HAVE_SOUNDCARD_H | ||
| 647 | |||
| 648 | /* Define to 1 if `speed_t' is declared by <termios.h>. */ | ||
| 649 | #undef HAVE_SPEED_T | ||
| 650 | |||
| 651 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
| 652 | #undef HAVE_STDINT_H | ||
| 653 | |||
| 654 | /* Define to 1 if you have the <stdio_ext.h> header file. */ | ||
| 655 | #undef HAVE_STDIO_EXT_H | ||
| 656 | |||
| 657 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
| 658 | #undef HAVE_STDLIB_H | ||
| 659 | |||
| 660 | /* Define to 1 if you have the `strchr' function. */ | ||
| 661 | #undef HAVE_STRCHR | ||
| 662 | |||
| 663 | /* Define to 1 if you have the `strerror' function. */ | ||
| 664 | #undef HAVE_STRERROR | ||
| 665 | |||
| 666 | /* Define to 1 if you have the <strings.h> header file. */ | ||
| 667 | #undef HAVE_STRINGS_H | ||
| 668 | |||
| 669 | /* Define to 1 if you have the <string.h> header file. */ | ||
| 670 | #undef HAVE_STRING_H | ||
| 671 | |||
| 672 | /* Define to 1 if you have the `strrchr' function. */ | ||
| 673 | #undef HAVE_STRRCHR | ||
| 674 | |||
| 675 | /* Define to 1 if you have the `strsignal' function. */ | ||
| 676 | #undef HAVE_STRSIGNAL | ||
| 677 | |||
| 678 | /* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */ | ||
| 679 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR | ||
| 680 | |||
| 681 | /* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */ | ||
| 682 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR | ||
| 683 | |||
| 684 | /* Define to 1 if `ifr_flags' is a member of `struct ifreq'. */ | ||
| 685 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS | ||
| 686 | |||
| 687 | /* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */ | ||
| 688 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR | ||
| 689 | |||
| 690 | /* Define to 1 if `ifr_netmask' is a member of `struct ifreq'. */ | ||
| 691 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK | ||
| 692 | |||
| 693 | /* Define to 1 if `n_un.n_name' is a member of `struct nlist'. */ | ||
| 694 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME | ||
| 695 | |||
| 696 | /* Define to 1 if `tm_zone' is a member of `struct tm'. */ | ||
| 697 | #undef HAVE_STRUCT_TM_TM_ZONE | ||
| 698 | |||
| 699 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ | ||
| 700 | #undef HAVE_STRUCT_UTIMBUF | ||
| 701 | |||
| 702 | /* Define if struct stat has an st_dm_mode member. */ | ||
| 703 | #undef HAVE_ST_DM_MODE | ||
| 704 | |||
| 705 | /* Define to 1 if you have the `symlink' function. */ | ||
| 706 | #undef HAVE_SYMLINK | ||
| 707 | |||
| 708 | /* Define to 1 if you have the `sync' function. */ | ||
| 709 | #undef HAVE_SYNC | ||
| 710 | |||
| 711 | /* Define to 1 if you have the `sysinfo' function. */ | ||
| 712 | #undef HAVE_SYSINFO | ||
| 713 | |||
| 714 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
| 715 | #undef HAVE_SYS_BITYPES_H | ||
| 716 | |||
| 717 | /* Define to 1 if you have the <sys/inttypes.h> header file. */ | ||
| 718 | #undef HAVE_SYS_INTTYPES_H | ||
| 719 | |||
| 720 | /* Define to 1 if you have the <sys/loadavg.h> header file. */ | ||
| 721 | #undef HAVE_SYS_LOADAVG_H | ||
| 722 | |||
| 723 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
| 724 | #undef HAVE_SYS_MMAN_H | ||
| 725 | |||
| 726 | /* Define to 1 if you have the <sys/param.h> header file. */ | ||
| 727 | #undef HAVE_SYS_PARAM_H | ||
| 728 | |||
| 729 | /* Define to 1 if you have the <sys/resource.h> header file. */ | ||
| 730 | #undef HAVE_SYS_RESOURCE_H | ||
| 731 | |||
| 732 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
| 733 | #undef HAVE_SYS_SELECT_H | ||
| 734 | |||
| 735 | /* Define to 1 if you have the <sys/socket.h> header file. */ | ||
| 736 | #undef HAVE_SYS_SOCKET_H | ||
| 737 | |||
| 738 | /* Define to 1 if you have the <sys/soundcard.h> header file. */ | ||
| 739 | #undef HAVE_SYS_SOUNDCARD_H | ||
| 740 | |||
| 741 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
| 742 | #undef HAVE_SYS_STAT_H | ||
| 743 | |||
| 744 | /* Define to 1 if you have the <sys/systeminfo.h> header file. */ | ||
| 745 | #undef HAVE_SYS_SYSTEMINFO_H | ||
| 746 | |||
| 747 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
| 748 | #undef HAVE_SYS_TIME_H | ||
| 749 | |||
| 750 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
| 751 | #undef HAVE_SYS_TYPES_H | ||
| 752 | |||
| 753 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
| 754 | #undef HAVE_SYS_UN_H | ||
| 755 | |||
| 756 | /* Define to 1 if you have the <sys/utsname.h> header file. */ | ||
| 757 | #undef HAVE_SYS_UTSNAME_H | ||
| 758 | |||
| 759 | /* Define to 1 if you have the <sys/vlimit.h> header file. */ | ||
| 760 | #undef HAVE_SYS_VLIMIT_H | ||
| 761 | |||
| 762 | /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ | ||
| 763 | #undef HAVE_SYS_WAIT_H | ||
| 764 | |||
| 765 | /* Define to 1 if you have the <sys/_mbstate_t.h> header file. */ | ||
| 766 | #undef HAVE_SYS__MBSTATE_T_H | ||
| 767 | |||
| 768 | /* Define to 1 if you have the <term.h> header file. */ | ||
| 769 | #undef HAVE_TERM_H | ||
| 770 | |||
| 771 | /* Define to 1 if you have the tiff library (-ltiff). */ | ||
| 772 | #undef HAVE_TIFF | ||
| 773 | |||
| 774 | /* Define to 1 if `struct timeval' is declared by <sys/time.h>. */ | ||
| 775 | #undef HAVE_TIMEVAL | ||
| 776 | |||
| 777 | /* Define if struct tm has the tm_gmtoff member. */ | ||
| 778 | #undef HAVE_TM_GMTOFF | ||
| 779 | |||
| 780 | /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use | ||
| 781 | `HAVE_STRUCT_TM_TM_ZONE' instead. */ | ||
| 782 | #undef HAVE_TM_ZONE | ||
| 783 | |||
| 784 | /* Define to 1 if you have the `touchlock' function. */ | ||
| 785 | #undef HAVE_TOUCHLOCK | ||
| 786 | |||
| 787 | /* Define to 1 if you don't have `tm_zone' but do have the external array | ||
| 788 | `tzname'. */ | ||
| 789 | #undef HAVE_TZNAME | ||
| 790 | |||
| 791 | /* Define to 1 if you have the `tzset' function. */ | ||
| 792 | #undef HAVE_TZSET | ||
| 793 | |||
| 794 | /* Define to 1 if you have the `ualarm' function. */ | ||
| 795 | #undef HAVE_UALARM | ||
| 796 | |||
| 797 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
| 798 | #undef HAVE_UNISTD_H | ||
| 799 | |||
| 800 | /* Define to 1 if the system has the type `unsigned long long int'. */ | ||
| 801 | #undef HAVE_UNSIGNED_LONG_LONG_INT | ||
| 802 | |||
| 803 | /* Define to 1 if you have the <util.h> header file. */ | ||
| 804 | #undef HAVE_UTIL_H | ||
| 805 | |||
| 806 | /* Define to 1 if you have the `utimes' function. */ | ||
| 807 | #undef HAVE_UTIMES | ||
| 808 | |||
| 809 | /* Define to 1 if you have the <utime.h> header file. */ | ||
| 810 | #undef HAVE_UTIME_H | ||
| 811 | |||
| 812 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
| 813 | #undef HAVE_UTMP_H | ||
| 814 | |||
| 815 | /* Define to 1 if you have the `vfork' function. */ | ||
| 816 | #undef HAVE_VFORK | ||
| 817 | |||
| 818 | /* Define to 1 if you have the <vfork.h> header file. */ | ||
| 819 | #undef HAVE_VFORK_H | ||
| 820 | |||
| 821 | /* Define to 1 if you have the <wchar.h> header file. */ | ||
| 822 | #undef HAVE_WCHAR_H | ||
| 823 | |||
| 824 | /* Define if you have the 'wchar_t' type. */ | ||
| 825 | #undef HAVE_WCHAR_T | ||
| 826 | |||
| 827 | /* Define if you have a window system. */ | ||
| 828 | #undef HAVE_WINDOW_SYSTEM | ||
| 829 | |||
| 830 | /* Define to 1 if `fork' works. */ | ||
| 831 | #undef HAVE_WORKING_FORK | ||
| 832 | |||
| 833 | /* Define to 1 if `vfork' works. */ | ||
| 834 | #undef HAVE_WORKING_VFORK | ||
| 835 | |||
| 836 | /* Define to 1 if you want to use version 11 of X windows. Otherwise, Emacs | ||
| 837 | expects to use version 10. */ | ||
| 838 | #undef HAVE_X11 | ||
| 839 | |||
| 840 | /* Define to 1 if you have the X11R6 or newer version of Xlib. */ | ||
| 841 | #undef HAVE_X11R6 | ||
| 842 | |||
| 843 | /* Define if you have usable X11R6-style XIM support. */ | ||
| 844 | #undef HAVE_X11R6_XIM | ||
| 845 | |||
| 846 | /* Define to 1 if you have the X11R6 or newer version of Xt. */ | ||
| 847 | #undef HAVE_X11XTR6 | ||
| 848 | |||
| 849 | /* Define to 1 if you have the Xaw3d library (-lXaw3d). */ | ||
| 850 | #undef HAVE_XAW3D | ||
| 851 | |||
| 852 | /* Define to 1 if you have the Xft library. */ | ||
| 853 | #undef HAVE_XFT | ||
| 854 | |||
| 855 | /* Define to 1 if XIM is available */ | ||
| 856 | #undef HAVE_XIM | ||
| 857 | |||
| 858 | /* Define to 1 if you have the XkbGetKeyboard function. */ | ||
| 859 | #undef HAVE_XKBGETKEYBOARD | ||
| 860 | |||
| 861 | /* Define to 1 if you have the Xpm libary (-lXpm). */ | ||
| 862 | #undef HAVE_XPM | ||
| 863 | |||
| 864 | /* Define to 1 if you have the `XrmSetDatabase' function. */ | ||
| 865 | #undef HAVE_XRMSETDATABASE | ||
| 866 | |||
| 867 | /* Define to 1 if you have the `XScreenNumberOfScreen' function. */ | ||
| 868 | #undef HAVE_XSCREENNUMBEROFSCREEN | ||
| 869 | |||
| 870 | /* Define to 1 if you have the `XScreenResourceString' function. */ | ||
| 871 | #undef HAVE_XSCREENRESOURCESTRING | ||
| 872 | |||
| 873 | /* Define to 1 if you have the `XSetWMProtocols' function. */ | ||
| 874 | #undef HAVE_XSETWMPROTOCOLS | ||
| 875 | |||
| 876 | /* Define if you have usable i18n support. */ | ||
| 877 | #undef HAVE_X_I18N | ||
| 878 | |||
| 879 | /* Define to 1 if you have the SM library (-lSM). */ | ||
| 880 | #undef HAVE_X_SM | ||
| 881 | |||
| 882 | /* Define to 1 if you want to use the X window system. */ | ||
| 883 | #undef HAVE_X_WINDOWS | ||
| 884 | |||
| 885 | /* Define to 1 if the system has the type `_Bool'. */ | ||
| 886 | #undef HAVE__BOOL | ||
| 887 | |||
| 888 | /* Define to 1 if you have the `__builtin_unwind_init' function. */ | ||
| 889 | #undef HAVE___BUILTIN_UNWIND_INIT | ||
| 890 | |||
| 891 | /* Define to 1 if you have the `__executable_start' function. */ | ||
| 892 | #undef HAVE___EXECUTABLE_START | ||
| 893 | |||
| 894 | /* Define to 1 if you have the `__fpending' function. */ | ||
| 895 | #undef HAVE___FPENDING | ||
| 896 | |||
| 897 | /* Define to support using a Hesiod database to find the POP server. */ | ||
| 898 | #undef HESIOD | ||
| 899 | |||
| 900 | /* Define to support Kerberos-authenticated POP mail retrieval. */ | ||
| 901 | #undef KERBEROS | ||
| 902 | |||
| 903 | /* Define to use Kerberos 5 instead of Kerberos 4. */ | ||
| 904 | #undef KERBEROS5 | ||
| 905 | |||
| 906 | /* Define to 1 if localtime caches TZ. */ | ||
| 907 | #undef LOCALTIME_CACHE | ||
| 908 | |||
| 909 | /* Define to 1 if `lstat' dereferences a symlink specified with a trailing | ||
| 910 | slash. */ | ||
| 911 | #undef LSTAT_FOLLOWS_SLASHED_SYMLINK | ||
| 912 | |||
| 913 | /* String giving fallback POP mail host. */ | ||
| 914 | #undef MAILHOST | ||
| 915 | |||
| 916 | /* Define to unlink, rather than empty, mail spool after reading. */ | ||
| 917 | #undef MAIL_UNLINK_SPOOL | ||
| 918 | |||
| 919 | /* Define if the mailer uses flock to interlock the mail spool. */ | ||
| 920 | #undef MAIL_USE_FLOCK | ||
| 921 | |||
| 922 | /* Define if the mailer uses lockf to interlock the mail spool. */ | ||
| 923 | #undef MAIL_USE_LOCKF | ||
| 924 | |||
| 925 | /* Define to support MMDF mailboxes in movemail. */ | ||
| 926 | #undef MAIL_USE_MMDF | ||
| 927 | |||
| 928 | /* Define to support POP mail retrieval. */ | ||
| 929 | #undef MAIL_USE_POP | ||
| 930 | |||
| 931 | /* Define to 1 if you don't have struct exception in math.h. */ | ||
| 932 | #undef NO_MATHERR | ||
| 933 | |||
| 934 | /* Define to 1 if your C compiler doesn't accept -c and -o together. */ | ||
| 935 | #undef NO_MINUS_C_MINUS_O | ||
| 936 | |||
| 937 | /* Define to 1 if `NSInteger' is defined. */ | ||
| 938 | #undef NS_HAVE_NSINTEGER | ||
| 939 | |||
| 940 | /* Define to 1 if you are using NS windowing under MacOS X. */ | ||
| 941 | #undef NS_IMPL_COCOA | ||
| 942 | |||
| 943 | /* Define to 1 if you are using NS windowing under GNUstep. */ | ||
| 944 | #undef NS_IMPL_GNUSTEP | ||
| 945 | |||
| 946 | /* Define to 1 if the nlist n_name member is a pointer */ | ||
| 947 | #undef N_NAME_POINTER | ||
| 948 | |||
| 949 | /* Define if the C compiler is the linker. */ | ||
| 950 | #undef ORDINARY_LINK | ||
| 951 | |||
| 952 | /* Name of package */ | ||
| 953 | #undef PACKAGE | ||
| 954 | |||
| 955 | /* Define to the address where bug reports for this package should be sent. */ | ||
| 956 | #undef PACKAGE_BUGREPORT | ||
| 957 | |||
| 958 | /* Define to the full name of this package. */ | ||
| 959 | #undef PACKAGE_NAME | ||
| 960 | |||
| 961 | /* Define to the full name and version of this package. */ | ||
| 962 | #undef PACKAGE_STRING | ||
| 963 | |||
| 964 | /* Define to the one symbol short name of this package. */ | ||
| 965 | #undef PACKAGE_TARNAME | ||
| 966 | |||
| 967 | /* Define to the home page for this package. */ | ||
| 968 | #undef PACKAGE_URL | ||
| 969 | |||
| 970 | /* Define to the version of this package. */ | ||
| 971 | #undef PACKAGE_VERSION | ||
| 972 | |||
| 973 | /* Define as `void' if your compiler accepts `void *'; otherwise define as | ||
| 974 | `char'. */ | ||
| 975 | #undef POINTER_TYPE | ||
| 976 | |||
| 977 | /* Define to 1 if the C compiler supports function prototypes. */ | ||
| 978 | #undef PROTOTYPES | ||
| 979 | |||
| 980 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 981 | 'ptrdiff_t'. */ | ||
| 982 | #undef PTRDIFF_T_SUFFIX | ||
| 983 | |||
| 984 | /* Define to 1 if readlink fails to recognize a trailing slash. */ | ||
| 985 | #undef READLINK_TRAILING_SLASH_BUG | ||
| 986 | |||
| 987 | /* Define REL_ALLOC if you want to use the relocating allocator for buffer | ||
| 988 | space. */ | ||
| 989 | #undef REL_ALLOC | ||
| 990 | |||
| 991 | /* Define to 1 if stat needs help when passed a directory name with a trailing | ||
| 992 | slash */ | ||
| 993 | #undef REPLACE_FUNC_STAT_DIR | ||
| 994 | |||
| 995 | /* Define to 1 if stat needs help when passed a file name with a trailing | ||
| 996 | slash */ | ||
| 997 | #undef REPLACE_FUNC_STAT_FILE | ||
| 998 | |||
| 999 | /* Define as the return type of signal handlers (`int' or `void'). */ | ||
| 1000 | #undef RETSIGTYPE | ||
| 1001 | |||
| 1002 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1003 | 'sig_atomic_t'. */ | ||
| 1004 | #undef SIG_ATOMIC_T_SUFFIX | ||
| 1005 | |||
| 1006 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1007 | 'size_t'. */ | ||
| 1008 | #undef SIZE_T_SUFFIX | ||
| 1009 | |||
| 1010 | /* If using the C implementation of alloca, define if you know the | ||
| 1011 | direction of stack growth for your system; otherwise it will be | ||
| 1012 | automatically deduced at runtime. | ||
| 1013 | STACK_DIRECTION > 0 => grows toward higher addresses | ||
| 1014 | STACK_DIRECTION < 0 => grows toward lower addresses | ||
| 1015 | STACK_DIRECTION = 0 => direction of growth unknown */ | ||
| 1016 | #undef STACK_DIRECTION | ||
| 1017 | |||
| 1018 | /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ | ||
| 1019 | #undef STAT_MACROS_BROKEN | ||
| 1020 | |||
| 1021 | /* Define to 1 if you have the ANSI C header files. */ | ||
| 1022 | #undef STDC_HEADERS | ||
| 1023 | |||
| 1024 | /* Define to 1 on System V Release 4. */ | ||
| 1025 | #undef SVR4 | ||
| 1026 | |||
| 1027 | /* Process async input synchronously. */ | ||
| 1028 | #undef SYNC_INPUT | ||
| 1029 | |||
| 1030 | /* Define to use system malloc. */ | ||
| 1031 | #undef SYSTEM_MALLOC | ||
| 1032 | |||
| 1033 | /* Define to 1 if you use terminfo instead of termcap. */ | ||
| 1034 | #undef TERMINFO | ||
| 1035 | |||
| 1036 | /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ | ||
| 1037 | #undef TIME_WITH_SYS_TIME | ||
| 1038 | |||
| 1039 | /* Define to 1 if your <sys/time.h> declares `struct tm'. */ | ||
| 1040 | #undef TM_IN_SYS_TIME | ||
| 1041 | |||
| 1042 | /* Define to 1 for Encore UMAX. */ | ||
| 1043 | #undef UMAX | ||
| 1044 | |||
| 1045 | /* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of | ||
| 1046 | <sys/cpustats.h>. */ | ||
| 1047 | #undef UMAX4_3 | ||
| 1048 | |||
| 1049 | /* Define to 1 if using GTK. */ | ||
| 1050 | #undef USE_GTK | ||
| 1051 | |||
| 1052 | /* Define this to use a lisp union for the Lisp_Object data type. */ | ||
| 1053 | #undef USE_LISP_UNION_TYPE | ||
| 1054 | |||
| 1055 | /* Define to 1 if using the Lucid X toolkit. */ | ||
| 1056 | #undef USE_LUCID | ||
| 1057 | |||
| 1058 | /* Define to use mmap to allocate buffer text. */ | ||
| 1059 | #undef USE_MMAP_FOR_BUFFERS | ||
| 1060 | |||
| 1061 | /* Define to 1 if using the Motif X toolkit. */ | ||
| 1062 | #undef USE_MOTIF | ||
| 1063 | |||
| 1064 | /* Define to 1 if we should use toolkit scroll bars. */ | ||
| 1065 | #undef USE_TOOLKIT_SCROLL_BARS | ||
| 1066 | |||
| 1067 | /* Define to 1 if we should use XIM, if it is available. */ | ||
| 1068 | #undef USE_XIM | ||
| 1069 | |||
| 1070 | /* Define to 1 if using an X toolkit. */ | ||
| 1071 | #undef USE_X_TOOLKIT | ||
| 1072 | |||
| 1073 | /* Version number of package */ | ||
| 1074 | #undef VERSION | ||
| 1075 | |||
| 1076 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1077 | 'wchar_t'. */ | ||
| 1078 | #undef WCHAR_T_SUFFIX | ||
| 1079 | |||
| 1080 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1081 | 'wint_t'. */ | ||
| 1082 | #undef WINT_T_SUFFIX | ||
| 1083 | |||
| 1084 | /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | ||
| 1085 | significant byte first (like Motorola and SPARC, unlike Intel). */ | ||
| 1086 | #if defined AC_APPLE_UNIVERSAL_BUILD | ||
| 1087 | # if defined __BIG_ENDIAN__ | ||
| 1088 | # define WORDS_BIGENDIAN 1 | ||
| 1089 | # endif | ||
| 1090 | #else | ||
| 1091 | # ifndef WORDS_BIGENDIAN | ||
| 1092 | # undef WORDS_BIGENDIAN | ||
| 1093 | # endif | ||
| 1094 | #endif | ||
| 1095 | |||
| 1096 | /* Define this to check for malloc buffer overrun. */ | ||
| 1097 | #undef XMALLOC_OVERRUN_CHECK | ||
| 1098 | |||
| 1099 | /* Define to the type of the 6th arg of XRegisterIMInstantiateCallback, either | ||
| 1100 | XPointer or XPointer*. */ | ||
| 1101 | #undef XRegisterIMInstantiateCallback_arg6 | ||
| 1102 | |||
| 1103 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
| 1104 | #undef _FILE_OFFSET_BITS | ||
| 1105 | |||
| 1106 | /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ | ||
| 1107 | #undef _LARGEFILE_SOURCE | ||
| 1108 | |||
| 1109 | /* Define for large files, on AIX-style hosts. */ | ||
| 1110 | #undef _LARGE_FILES | ||
| 1111 | |||
| 1112 | /* Define to 1 if on MINIX. */ | ||
| 1113 | #undef _MINIX | ||
| 1114 | |||
| 1115 | /* Define to 2 if the system does not provide POSIX.1 features except with | ||
| 1116 | this defined. */ | ||
| 1117 | #undef _POSIX_1_SOURCE | ||
| 1118 | |||
| 1119 | /* Define to 1 if you need to in order for `stat' and other things to work. */ | ||
| 1120 | #undef _POSIX_SOURCE | ||
| 1121 | |||
| 1122 | /* Define to 500 only on HP-UX. */ | ||
| 1123 | #undef _XOPEN_SOURCE | ||
| 1124 | |||
| 1125 | /* Enable extensions on AIX 3, Interix. */ | ||
| 1126 | #ifndef _ALL_SOURCE | ||
| 1127 | # undef _ALL_SOURCE | ||
| 1128 | #endif | ||
| 1129 | /* Enable GNU extensions on systems that have them. */ | ||
| 1130 | #ifndef _GNU_SOURCE | ||
| 1131 | # undef _GNU_SOURCE | ||
| 1132 | #endif | ||
| 1133 | /* Enable threading extensions on Solaris. */ | ||
| 1134 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 1135 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 1136 | #endif | ||
| 1137 | /* Enable extensions on HP NonStop. */ | ||
| 1138 | #ifndef _TANDEM_SOURCE | ||
| 1139 | # undef _TANDEM_SOURCE | ||
| 1140 | #endif | ||
| 1141 | /* Enable general extensions on Solaris. */ | ||
| 1142 | #ifndef __EXTENSIONS__ | ||
| 1143 | # undef __EXTENSIONS__ | ||
| 1144 | #endif | ||
| 1145 | |||
| 1146 | |||
| 1147 | /* Define to rpl_ if the getopt replacement functions and variables should be | ||
| 1148 | used. */ | ||
| 1149 | #undef __GETOPT_PREFIX | ||
| 1150 | |||
| 1151 | /* Define like PROTOTYPES; this can be used by system headers. */ | ||
| 1152 | #undef __PROTOTYPES | ||
| 1153 | |||
| 1154 | /* Define to compiler's equivalent of C99 restrict keyword in array | ||
| 1155 | declarations. Define as empty for no equivalent. */ | ||
| 1156 | #undef __restrict_arr | ||
| 1157 | |||
| 1158 | /* Define to the used machine dependent file. */ | ||
| 1159 | #undef config_machfile | ||
| 1160 | |||
| 1161 | /* Define to the used os dependent file. */ | ||
| 1162 | #undef config_opsysfile | ||
| 1163 | |||
| 1164 | /* Define to empty if `const' does not conform to ANSI C. */ | ||
| 1165 | #undef const | ||
| 1166 | |||
| 1167 | /* Define to `__inline__' or `__inline' if that's what the C compiler | ||
| 1168 | calls it, or to nothing if 'inline' is not supported under any name. */ | ||
| 1169 | #ifndef __cplusplus | ||
| 1170 | #undef inline | ||
| 1171 | #endif | ||
| 1172 | |||
| 1173 | /* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports | ||
| 1174 | the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of | ||
| 1175 | earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. | ||
| 1176 | __APPLE__ && __MACH__ test for MacOS X. | ||
| 1177 | __APPLE_CC__ tests for the Apple compiler and its version. | ||
| 1178 | __STDC_VERSION__ tests for the C99 mode. */ | ||
| 1179 | #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ | ||
| 1180 | # define __GNUC_STDC_INLINE__ 1 | ||
| 1181 | #endif | ||
| 1182 | |||
| 1183 | /* Define to a type if <wchar.h> does not define. */ | ||
| 1184 | #undef mbstate_t | ||
| 1185 | |||
| 1186 | /* Define to the name of the strftime replacement function. */ | ||
| 1187 | #undef my_strftime | ||
| 1188 | |||
| 1189 | /* Define to the type of st_nlink in struct stat, or a supertype. */ | ||
| 1190 | #undef nlink_t | ||
| 1191 | |||
| 1192 | /* Define to `int' if <sys/types.h> does not define. */ | ||
| 1193 | #undef pid_t | ||
| 1194 | |||
| 1195 | /* Define to the equivalent of the C99 'restrict' keyword, or to | ||
| 1196 | nothing if this is not supported. Do not define if restrict is | ||
| 1197 | supported directly. */ | ||
| 1198 | #undef restrict | ||
| 1199 | /* Work around a bug in Sun C++: it does not support _Restrict or | ||
| 1200 | __restrict__, even though the corresponding Sun C compiler ends up with | ||
| 1201 | "#define restrict _Restrict" or "#define restrict __restrict__" in the | ||
| 1202 | previous line. Perhaps some future version of Sun C++ will work with | ||
| 1203 | restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ | ||
| 1204 | #if defined __SUNPRO_CC && !defined __RESTRICT | ||
| 1205 | # define _Restrict | ||
| 1206 | # define __restrict__ | ||
| 1207 | #endif | ||
| 1208 | |||
| 1209 | /* Define to any substitute for sys_siglist. */ | ||
| 1210 | #undef sys_siglist | ||
| 1211 | |||
| 1212 | /* Define as a marker that can be attached to declarations that might not | ||
| 1213 | be used. This helps to reduce warnings, such as from | ||
| 1214 | GCC -Wunused-parameter. */ | ||
| 1215 | #if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) | ||
| 1216 | # define _GL_UNUSED __attribute__ ((__unused__)) | ||
| 1217 | #else | ||
| 1218 | # define _GL_UNUSED | ||
| 1219 | #endif | ||
| 1220 | /* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name | ||
| 1221 | is a misnomer outside of parameter lists. */ | ||
| 1222 | #define _UNUSED_PARAMETER_ _GL_UNUSED | ||
| 1223 | |||
| 1224 | |||
| 1225 | /* Define as `fork' if `vfork' does not work. */ | ||
| 1226 | #undef vfork | ||
| 1227 | |||
| 1228 | /* Define to empty if the keyword `volatile' does not work. Warning: valid | ||
| 1229 | code using `volatile' can become incorrect without. Disable with care. */ | ||
| 1230 | #undef volatile | ||
| 1231 | |||
| 1232 | |||
| 1233 | /* Define AMPERSAND_FULL_NAME if you use the convention | ||
| 1234 | that & in the full name stands for the login id. */ | ||
| 1235 | /* Turned on June 1996 supposing nobody will mind it. */ | ||
| 1236 | #define AMPERSAND_FULL_NAME | ||
| 1237 | |||
| 1238 | /* If using GNU, then support inline function declarations. */ | ||
| 1239 | /* Don't try to switch on inline handling as detected by AC_C_INLINE | ||
| 1240 | generally, because even if non-gcc compilers accept `inline', they | ||
| 1241 | may reject `extern inline'. */ | ||
| 1242 | #if defined (__GNUC__) | ||
| 1243 | #define INLINE __inline__ | ||
| 1244 | #else | ||
| 1245 | #define INLINE | ||
| 1246 | #endif | ||
| 1247 | |||
| 1248 | /* `subprocesses' should be defined if you want to | ||
| 1249 | have code for asynchronous subprocesses | ||
| 1250 | (as used in M-x compile and M-x shell). | ||
| 1251 | Only MSDOS does not support this (it overrides | ||
| 1252 | this in its config_opsysfile below). */ | ||
| 1253 | |||
| 1254 | #define subprocesses | ||
| 1255 | |||
| 1256 | /* Include the os and machine dependent files. */ | ||
| 1257 | #include config_opsysfile | ||
| 1258 | #ifdef config_machfile | ||
| 1259 | # include config_machfile | ||
| 1260 | #endif | ||
| 1261 | |||
| 1262 | /* GNUstep needs a bit more pure memory. Of the existing knobs, | ||
| 1263 | SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. | ||
| 1264 | (There is probably a better place to do this, but right now the | ||
| 1265 | Cocoa side does this in s/darwin.h and we cannot parallel this | ||
| 1266 | exactly since GNUstep is multi-OS. */ | ||
| 1267 | #if defined HAVE_NS && defined NS_IMPL_GNUSTEP | ||
| 1268 | # define SYSTEM_PURESIZE_EXTRA 30000 | ||
| 1269 | #endif | ||
| 1270 | |||
| 1271 | /* SIGTYPE is the macro we actually use. */ | ||
| 1272 | #ifndef SIGTYPE | ||
| 1273 | #define SIGTYPE RETSIGTYPE | ||
| 1274 | #endif | ||
| 1275 | |||
| 1276 | #ifdef emacs /* Don't do this for lib-src. */ | ||
| 1277 | /* Tell regex.c to use a type compatible with Emacs. */ | ||
| 1278 | #define RE_TRANSLATE_TYPE Lisp_Object | ||
| 1279 | #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C) | ||
| 1280 | #ifdef make_number | ||
| 1281 | /* If make_number is a macro, use it. */ | ||
| 1282 | #define RE_TRANSLATE_P(TBL) (!EQ (TBL, make_number (0))) | ||
| 1283 | #else | ||
| 1284 | /* If make_number is a function, avoid it. */ | ||
| 1285 | #define RE_TRANSLATE_P(TBL) (!(INTEGERP (TBL) && XINT (TBL) == 0)) | ||
| 1286 | #endif | ||
| 1287 | #endif | ||
| 1288 | |||
| 1289 | /* These default definitions are good for almost all machines. | ||
| 1290 | The exceptions override them in m/MACHINE.h. */ | ||
| 1291 | |||
| 1292 | #ifndef BITS_PER_CHAR | ||
| 1293 | #define BITS_PER_CHAR 8 | ||
| 1294 | #endif | ||
| 1295 | |||
| 1296 | #ifndef BITS_PER_SHORT | ||
| 1297 | #define BITS_PER_SHORT 16 | ||
| 1298 | #endif | ||
| 1299 | |||
| 1300 | /* Note that lisp.h uses this in a preprocessor conditional, so it | ||
| 1301 | would not work to use sizeof. That being so, we do all of them | ||
| 1302 | without sizeof, for uniformity's sake. */ | ||
| 1303 | #ifndef BITS_PER_INT | ||
| 1304 | #define BITS_PER_INT 32 | ||
| 1305 | #endif | ||
| 1306 | |||
| 1307 | #ifndef BITS_PER_LONG | ||
| 1308 | #ifdef _LP64 | ||
| 1309 | #define BITS_PER_LONG 64 | ||
| 1310 | #else | ||
| 1311 | #define BITS_PER_LONG 32 | ||
| 1312 | #endif | ||
| 1313 | #endif | ||
| 1314 | |||
| 1315 | /* Define if the compiler supports function prototypes. It may do so but | ||
| 1316 | not define __STDC__ (e.g. DEC C by default) or may define it as zero. */ | ||
| 1317 | #undef PROTOTYPES | ||
| 1318 | |||
| 1319 | #include <string.h> | ||
| 1320 | #include <stdlib.h> | ||
| 1321 | |||
| 1322 | #ifdef HAVE_ALLOCA_H | ||
| 1323 | # include <alloca.h> | ||
| 1324 | #elif defined __GNUC__ | ||
| 1325 | # define alloca __builtin_alloca | ||
| 1326 | #elif defined _AIX | ||
| 1327 | # define alloca __alloca | ||
| 1328 | #else | ||
| 1329 | # include <stddef.h> | ||
| 1330 | # ifdef __cplusplus | ||
| 1331 | extern "C" | ||
| 1332 | # endif | ||
| 1333 | void *alloca (size_t); | ||
| 1334 | #endif | ||
| 1335 | |||
| 1336 | #ifndef HAVE_SIZE_T | ||
| 1337 | typedef unsigned size_t; | ||
| 1338 | #endif | ||
| 1339 | |||
| 1340 | #ifndef HAVE_STRCHR | ||
| 1341 | #define strchr(a, b) index (a, b) | ||
| 1342 | #endif | ||
| 1343 | |||
| 1344 | #ifndef HAVE_STRRCHR | ||
| 1345 | #define strrchr(a, b) rindex (a, b) | ||
| 1346 | #endif | ||
| 1347 | |||
| 1348 | #if defined __GNUC__ && (__GNUC__ > 2 \ | ||
| 1349 | || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)) | ||
| 1350 | #define NO_RETURN __attribute__ ((__noreturn__)) | ||
| 1351 | #else | ||
| 1352 | #define NO_RETURN /* nothing */ | ||
| 1353 | #endif | ||
| 1354 | |||
| 1355 | #if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */ | ||
| 1356 | #define NO_INLINE __attribute__((noinline)) | ||
| 1357 | #else | ||
| 1358 | #define NO_INLINE | ||
| 1359 | #endif | ||
| 1360 | |||
| 1361 | #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) | ||
| 1362 | #define EXTERNALLY_VISIBLE __attribute__((externally_visible)) | ||
| 1363 | #else | ||
| 1364 | #define EXTERNALLY_VISIBLE | ||
| 1365 | #endif | ||
| 1366 | |||
| 1367 | /* Some versions of GNU/Linux define noinline in their headers. */ | ||
| 1368 | #ifdef noinline | ||
| 1369 | #undef noinline | ||
| 1370 | #endif | ||
| 1371 | |||
| 1372 | /* These won't be used automatically yet. We also need to know, at least, | ||
| 1373 | that the stack is continuous. */ | ||
| 1374 | #ifdef __GNUC__ | ||
| 1375 | # ifndef GC_SETJMP_WORKS | ||
| 1376 | /* GC_SETJMP_WORKS is nearly always appropriate for GCC. */ | ||
| 1377 | # define GC_SETJMP_WORKS 1 | ||
| 1378 | # endif | ||
| 1379 | # ifndef GC_LISP_OBJECT_ALIGNMENT | ||
| 1380 | # define GC_LISP_OBJECT_ALIGNMENT (__alignof__ (Lisp_Object)) | ||
| 1381 | # endif | ||
| 1382 | #endif | ||
| 1383 | |||
| 1384 | #endif /* EMACS_CONFIG_H */ | ||
| 1385 | |||
| 1386 | /* | ||
| 1387 | Local Variables: | ||
| 1388 | mode: c | ||
| 1389 | End: | ||
| 1390 | */ | ||
| 1391 | |||
diff --git a/autogen/configure b/autogen/configure new file mode 100755 index 00000000000..4c45db1badd --- /dev/null +++ b/autogen/configure | |||
| @@ -0,0 +1,21292 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | # Guess values for system-dependent variables and create Makefiles. | ||
| 3 | # Generated by GNU Autoconf 2.65 for emacs 24.0.50. | ||
| 4 | # | ||
| 5 | # | ||
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
| 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
| 8 | # Inc. | ||
| 9 | # | ||
| 10 | # | ||
| 11 | # This configure script is free software; the Free Software Foundation | ||
| 12 | # gives unlimited permission to copy, distribute and modify it. | ||
| 13 | ## -------------------- ## | ||
| 14 | ## M4sh Initialization. ## | ||
| 15 | ## -------------------- ## | ||
| 16 | |||
| 17 | # Be more Bourne compatible | ||
| 18 | DUALCASE=1; export DUALCASE # for MKS sh | ||
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
| 20 | emulate sh | ||
| 21 | NULLCMD=: | ||
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
| 23 | # is contrary to our usage. Disable this feature. | ||
| 24 | alias -g '${1+"$@"}'='"$@"' | ||
| 25 | setopt NO_GLOB_SUBST | ||
| 26 | else | ||
| 27 | case `(set -o) 2>/dev/null` in #( | ||
| 28 | *posix*) : | ||
| 29 | set -o posix ;; #( | ||
| 30 | *) : | ||
| 31 | ;; | ||
| 32 | esac | ||
| 33 | fi | ||
| 34 | |||
| 35 | |||
| 36 | as_nl=' | ||
| 37 | ' | ||
| 38 | export as_nl | ||
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
| 44 | # but without wasting forks for bash or zsh. | ||
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
| 47 | as_echo='print -r --' | ||
| 48 | as_echo_n='print -rn --' | ||
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
| 50 | as_echo='printf %s\n' | ||
| 51 | as_echo_n='printf %s' | ||
| 52 | else | ||
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
| 55 | as_echo_n='/usr/ucb/echo -n' | ||
| 56 | else | ||
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
| 58 | as_echo_n_body='eval | ||
| 59 | arg=$1; | ||
| 60 | case $arg in #( | ||
| 61 | *"$as_nl"*) | ||
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
| 64 | esac; | ||
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
| 66 | ' | ||
| 67 | export as_echo_n_body | ||
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
| 69 | fi | ||
| 70 | export as_echo_body | ||
| 71 | as_echo='sh -c $as_echo_body as_echo' | ||
| 72 | fi | ||
| 73 | |||
| 74 | # The user is always right. | ||
| 75 | if test "${PATH_SEPARATOR+set}" != set; then | ||
| 76 | PATH_SEPARATOR=: | ||
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
| 79 | PATH_SEPARATOR=';' | ||
| 80 | } | ||
| 81 | fi | ||
| 82 | |||
| 83 | |||
| 84 | # IFS | ||
| 85 | # We need space, tab and new line, in precisely that order. Quoting is | ||
| 86 | # there to prevent editors from complaining about space-tab. | ||
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
| 88 | # splitting by setting IFS to empty value.) | ||
| 89 | IFS=" "" $as_nl" | ||
| 90 | |||
| 91 | # Find who we are. Look in the path if we contain no directory separator. | ||
| 92 | case $0 in #(( | ||
| 93 | *[\\/]* ) as_myself=$0 ;; | ||
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 95 | for as_dir in $PATH | ||
| 96 | do | ||
| 97 | IFS=$as_save_IFS | ||
| 98 | test -z "$as_dir" && as_dir=. | ||
| 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
| 100 | done | ||
| 101 | IFS=$as_save_IFS | ||
| 102 | |||
| 103 | ;; | ||
| 104 | esac | ||
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
| 106 | # in which case we are not to be found in the path. | ||
| 107 | if test "x$as_myself" = x; then | ||
| 108 | as_myself=$0 | ||
| 109 | fi | ||
| 110 | if test ! -f "$as_myself"; then | ||
| 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
| 112 | exit 1 | ||
| 113 | fi | ||
| 114 | |||
| 115 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
| 117 | # suppresses any "Segmentation fault" message there. '((' could | ||
| 118 | # trigger a bug in pdksh 5.2.14. | ||
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
| 120 | do eval test x\${$as_var+set} = xset \ | ||
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
| 122 | done | ||
| 123 | PS1='$ ' | ||
| 124 | PS2='> ' | ||
| 125 | PS4='+ ' | ||
| 126 | |||
| 127 | # NLS nuisances. | ||
| 128 | LC_ALL=C | ||
| 129 | export LC_ALL | ||
| 130 | LANGUAGE=C | ||
| 131 | export LANGUAGE | ||
| 132 | |||
| 133 | # CDPATH. | ||
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
| 135 | |||
| 136 | if test "x$CONFIG_SHELL" = x; then | ||
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
| 138 | emulate sh | ||
| 139 | NULLCMD=: | ||
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
| 141 | # is contrary to our usage. Disable this feature. | ||
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
| 143 | setopt NO_GLOB_SUBST | ||
| 144 | else | ||
| 145 | case \`(set -o) 2>/dev/null\` in #( | ||
| 146 | *posix*) : | ||
| 147 | set -o posix ;; #( | ||
| 148 | *) : | ||
| 149 | ;; | ||
| 150 | esac | ||
| 151 | fi | ||
| 152 | " | ||
| 153 | as_required="as_fn_return () { (exit \$1); } | ||
| 154 | as_fn_success () { as_fn_return 0; } | ||
| 155 | as_fn_failure () { as_fn_return 1; } | ||
| 156 | as_fn_ret_success () { return 0; } | ||
| 157 | as_fn_ret_failure () { return 1; } | ||
| 158 | |||
| 159 | exitcode=0 | ||
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
| 165 | |||
| 166 | else | ||
| 167 | exitcode=1; echo positional parameters were not saved. | ||
| 168 | fi | ||
| 169 | test x\$exitcode = x0 || exit 1" | ||
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
| 175 | if (eval "$as_required") 2>/dev/null; then : | ||
| 176 | as_have_required=yes | ||
| 177 | else | ||
| 178 | as_have_required=no | ||
| 179 | fi | ||
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
| 181 | |||
| 182 | else | ||
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 184 | as_found=false | ||
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
| 186 | do | ||
| 187 | IFS=$as_save_IFS | ||
| 188 | test -z "$as_dir" && as_dir=. | ||
| 189 | as_found=: | ||
| 190 | case $as_dir in #( | ||
| 191 | /*) | ||
| 192 | for as_base in sh bash ksh sh5; do | ||
| 193 | # Try only shells that exist, to save several forks. | ||
| 194 | as_shell=$as_dir/$as_base | ||
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
| 199 | break 2 | ||
| 200 | fi | ||
| 201 | fi | ||
| 202 | done;; | ||
| 203 | esac | ||
| 204 | as_found=false | ||
| 205 | done | ||
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
| 209 | fi; } | ||
| 210 | IFS=$as_save_IFS | ||
| 211 | |||
| 212 | |||
| 213 | if test "x$CONFIG_SHELL" != x; then : | ||
| 214 | # We cannot yet assume a decent shell, so we have to provide a | ||
| 215 | # neutralization value for shells without unset; and this also | ||
| 216 | # works around shells that cannot unset nonexistent variables. | ||
| 217 | BASH_ENV=/dev/null | ||
| 218 | ENV=/dev/null | ||
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
| 220 | export CONFIG_SHELL | ||
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
| 222 | fi | ||
| 223 | |||
| 224 | if test x$as_have_required = xno; then : | ||
| 225 | $as_echo "$0: This script requires a shell more modern than all" | ||
| 226 | $as_echo "$0: the shells that I found on your system." | ||
| 227 | if test x${ZSH_VERSION+set} = xset ; then | ||
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
| 230 | else | ||
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | ||
| 232 | $0: including any error possibly output before this | ||
| 233 | $0: message. Then install a modern shell, or manually run | ||
| 234 | $0: the script under such a shell if you do have one." | ||
| 235 | fi | ||
| 236 | exit 1 | ||
| 237 | fi | ||
| 238 | fi | ||
| 239 | fi | ||
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
| 241 | export SHELL | ||
| 242 | # Unset more variables known to interfere with behavior of common tools. | ||
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
| 245 | |||
| 246 | ## --------------------- ## | ||
| 247 | ## M4sh Shell Functions. ## | ||
| 248 | ## --------------------- ## | ||
| 249 | # as_fn_unset VAR | ||
| 250 | # --------------- | ||
| 251 | # Portably unset VAR. | ||
| 252 | as_fn_unset () | ||
| 253 | { | ||
| 254 | { eval $1=; unset $1;} | ||
| 255 | } | ||
| 256 | as_unset=as_fn_unset | ||
| 257 | |||
| 258 | # as_fn_set_status STATUS | ||
| 259 | # ----------------------- | ||
| 260 | # Set $? to STATUS, without forking. | ||
| 261 | as_fn_set_status () | ||
| 262 | { | ||
| 263 | return $1 | ||
| 264 | } # as_fn_set_status | ||
| 265 | |||
| 266 | # as_fn_exit STATUS | ||
| 267 | # ----------------- | ||
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
| 269 | as_fn_exit () | ||
| 270 | { | ||
| 271 | set +e | ||
| 272 | as_fn_set_status $1 | ||
| 273 | exit $1 | ||
| 274 | } # as_fn_exit | ||
| 275 | |||
| 276 | # as_fn_mkdir_p | ||
| 277 | # ------------- | ||
| 278 | # Create "$as_dir" as a directory, including parents if necessary. | ||
| 279 | as_fn_mkdir_p () | ||
| 280 | { | ||
| 281 | |||
| 282 | case $as_dir in #( | ||
| 283 | -*) as_dir=./$as_dir;; | ||
| 284 | esac | ||
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
| 286 | as_dirs= | ||
| 287 | while :; do | ||
| 288 | case $as_dir in #( | ||
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
| 290 | *) as_qdir=$as_dir;; | ||
| 291 | esac | ||
| 292 | as_dirs="'$as_qdir' $as_dirs" | ||
| 293 | as_dir=`$as_dirname -- "$as_dir" || | ||
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
| 296 | X"$as_dir" : 'X\(//\)$' \| \ | ||
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
| 298 | $as_echo X"$as_dir" | | ||
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
| 300 | s//\1/ | ||
| 301 | q | ||
| 302 | } | ||
| 303 | /^X\(\/\/\)[^/].*/{ | ||
| 304 | s//\1/ | ||
| 305 | q | ||
| 306 | } | ||
| 307 | /^X\(\/\/\)$/{ | ||
| 308 | s//\1/ | ||
| 309 | q | ||
| 310 | } | ||
| 311 | /^X\(\/\).*/{ | ||
| 312 | s//\1/ | ||
| 313 | q | ||
| 314 | } | ||
| 315 | s/.*/./; q'` | ||
| 316 | test -d "$as_dir" && break | ||
| 317 | done | ||
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | ||
| 320 | |||
| 321 | |||
| 322 | } # as_fn_mkdir_p | ||
| 323 | # as_fn_append VAR VALUE | ||
| 324 | # ---------------------- | ||
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
| 326 | # advantage of any shell optimizations that allow amortized linear growth over | ||
| 327 | # repeated appends, instead of the typical quadratic growth present in naive | ||
| 328 | # implementations. | ||
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
| 330 | eval 'as_fn_append () | ||
| 331 | { | ||
| 332 | eval $1+=\$2 | ||
| 333 | }' | ||
| 334 | else | ||
| 335 | as_fn_append () | ||
| 336 | { | ||
| 337 | eval $1=\$$1\$2 | ||
| 338 | } | ||
| 339 | fi # as_fn_append | ||
| 340 | |||
| 341 | # as_fn_arith ARG... | ||
| 342 | # ------------------ | ||
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
| 345 | # must be portable across $(()) and expr. | ||
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
| 347 | eval 'as_fn_arith () | ||
| 348 | { | ||
| 349 | as_val=$(( $* )) | ||
| 350 | }' | ||
| 351 | else | ||
| 352 | as_fn_arith () | ||
| 353 | { | ||
| 354 | as_val=`expr "$@" || test $? -eq 1` | ||
| 355 | } | ||
| 356 | fi # as_fn_arith | ||
| 357 | |||
| 358 | |||
| 359 | # as_fn_error ERROR [LINENO LOG_FD] | ||
| 360 | # --------------------------------- | ||
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
| 363 | # script with status $?, using 1 if that was 0. | ||
| 364 | as_fn_error () | ||
| 365 | { | ||
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 | ||
| 367 | if test "$3"; then | ||
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | ||
| 370 | fi | ||
| 371 | $as_echo "$as_me: error: $1" >&2 | ||
| 372 | as_fn_exit $as_status | ||
| 373 | } # as_fn_error | ||
| 374 | |||
| 375 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
| 377 | as_expr=expr | ||
| 378 | else | ||
| 379 | as_expr=false | ||
| 380 | fi | ||
| 381 | |||
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
| 383 | as_basename=basename | ||
| 384 | else | ||
| 385 | as_basename=false | ||
| 386 | fi | ||
| 387 | |||
| 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
| 389 | as_dirname=dirname | ||
| 390 | else | ||
| 391 | as_dirname=false | ||
| 392 | fi | ||
| 393 | |||
| 394 | as_me=`$as_basename -- "$0" || | ||
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
| 396 | X"$0" : 'X\(//\)$' \| \ | ||
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
| 398 | $as_echo X/"$0" | | ||
| 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
| 400 | s//\1/ | ||
| 401 | q | ||
| 402 | } | ||
| 403 | /^X\/\(\/\/\)$/{ | ||
| 404 | s//\1/ | ||
| 405 | q | ||
| 406 | } | ||
| 407 | /^X\/\(\/\).*/{ | ||
| 408 | s//\1/ | ||
| 409 | q | ||
| 410 | } | ||
| 411 | s/.*/./; q'` | ||
| 412 | |||
| 413 | # Avoid depending upon Character Ranges. | ||
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
| 417 | as_cr_digits='0123456789' | ||
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
| 419 | |||
| 420 | |||
| 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
| 426 | sed -n ' | ||
| 427 | p | ||
| 428 | /[$]LINENO/= | ||
| 429 | ' <$as_myself | | ||
| 430 | sed ' | ||
| 431 | s/[$]LINENO.*/&-/ | ||
| 432 | t lineno | ||
| 433 | b | ||
| 434 | :lineno | ||
| 435 | N | ||
| 436 | :loop | ||
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
| 438 | t loop | ||
| 439 | s/-\n.*// | ||
| 440 | ' >$as_me.lineno && | ||
| 441 | chmod +x "$as_me.lineno" || | ||
| 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
| 443 | |||
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
| 445 | # (the dirname of $[0] is not the place where we might find the | ||
| 446 | # original and so on. Autoconf is especially sensitive to this). | ||
| 447 | . "./$as_me.lineno" | ||
| 448 | # Exit status is that of the last command. | ||
| 449 | exit | ||
| 450 | } | ||
| 451 | |||
| 452 | ECHO_C= ECHO_N= ECHO_T= | ||
| 453 | case `echo -n x` in #((((( | ||
| 454 | -n*) | ||
| 455 | case `echo 'xy\c'` in | ||
| 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
| 457 | xy) ECHO_C='\c';; | ||
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
| 459 | ECHO_T=' ';; | ||
| 460 | esac;; | ||
| 461 | *) | ||
| 462 | ECHO_N='-n';; | ||
| 463 | esac | ||
| 464 | |||
| 465 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 466 | if test -d conf$$.dir; then | ||
| 467 | rm -f conf$$.dir/conf$$.file | ||
| 468 | else | ||
| 469 | rm -f conf$$.dir | ||
| 470 | mkdir conf$$.dir 2>/dev/null | ||
| 471 | fi | ||
| 472 | if (echo >conf$$.file) 2>/dev/null; then | ||
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
| 474 | as_ln_s='ln -s' | ||
| 475 | # ... but there are two gotchas: | ||
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
| 478 | # In both cases, we have to default to `cp -p'. | ||
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
| 480 | as_ln_s='cp -p' | ||
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
| 482 | as_ln_s=ln | ||
| 483 | else | ||
| 484 | as_ln_s='cp -p' | ||
| 485 | fi | ||
| 486 | else | ||
| 487 | as_ln_s='cp -p' | ||
| 488 | fi | ||
| 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
| 490 | rmdir conf$$.dir 2>/dev/null | ||
| 491 | |||
| 492 | if mkdir -p . 2>/dev/null; then | ||
| 493 | as_mkdir_p='mkdir -p "$as_dir"' | ||
| 494 | else | ||
| 495 | test -d ./-p && rmdir ./-p | ||
| 496 | as_mkdir_p=false | ||
| 497 | fi | ||
| 498 | |||
| 499 | if test -x / >/dev/null 2>&1; then | ||
| 500 | as_test_x='test -x' | ||
| 501 | else | ||
| 502 | if ls -dL / >/dev/null 2>&1; then | ||
| 503 | as_ls_L_option=L | ||
| 504 | else | ||
| 505 | as_ls_L_option= | ||
| 506 | fi | ||
| 507 | as_test_x=' | ||
| 508 | eval sh -c '\'' | ||
| 509 | if test -d "$1"; then | ||
| 510 | test -d "$1/."; | ||
| 511 | else | ||
| 512 | case $1 in #( | ||
| 513 | -*)set "./$1";; | ||
| 514 | esac; | ||
| 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
| 516 | ???[sx]*):;;*)false;;esac;fi | ||
| 517 | '\'' sh | ||
| 518 | ' | ||
| 519 | fi | ||
| 520 | as_executable_p=$as_test_x | ||
| 521 | |||
| 522 | # Sed expression to map a string onto a valid CPP name. | ||
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
| 524 | |||
| 525 | # Sed expression to map a string onto a valid variable name. | ||
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
| 527 | |||
| 528 | |||
| 529 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
| 530 | exec 6>&1 | ||
| 531 | |||
| 532 | # Name of the host. | ||
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
| 534 | # so uname gets run too. | ||
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 536 | |||
| 537 | # | ||
| 538 | # Initializations. | ||
| 539 | # | ||
| 540 | ac_default_prefix=/usr/local | ||
| 541 | ac_clean_files= | ||
| 542 | ac_config_libobj_dir=. | ||
| 543 | LIBOBJS= | ||
| 544 | cross_compiling=no | ||
| 545 | subdirs= | ||
| 546 | MFLAGS= | ||
| 547 | MAKEFLAGS= | ||
| 548 | |||
| 549 | # Identity of this package. | ||
| 550 | PACKAGE_NAME='emacs' | ||
| 551 | PACKAGE_TARNAME='emacs' | ||
| 552 | PACKAGE_VERSION='24.0.50' | ||
| 553 | PACKAGE_STRING='emacs 24.0.50' | ||
| 554 | PACKAGE_BUGREPORT='' | ||
| 555 | PACKAGE_URL='' | ||
| 556 | |||
| 557 | ac_unique_file="src/lisp.h" | ||
| 558 | # Factoring default headers for most tests. | ||
| 559 | ac_includes_default="\ | ||
| 560 | #include <stdio.h> | ||
| 561 | #ifdef HAVE_SYS_TYPES_H | ||
| 562 | # include <sys/types.h> | ||
| 563 | #endif | ||
| 564 | #ifdef HAVE_SYS_STAT_H | ||
| 565 | # include <sys/stat.h> | ||
| 566 | #endif | ||
| 567 | #ifdef STDC_HEADERS | ||
| 568 | # include <stdlib.h> | ||
| 569 | # include <stddef.h> | ||
| 570 | #else | ||
| 571 | # ifdef HAVE_STDLIB_H | ||
| 572 | # include <stdlib.h> | ||
| 573 | # endif | ||
| 574 | #endif | ||
| 575 | #ifdef HAVE_STRING_H | ||
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
| 577 | # include <memory.h> | ||
| 578 | # endif | ||
| 579 | # include <string.h> | ||
| 580 | #endif | ||
| 581 | #ifdef HAVE_STRINGS_H | ||
| 582 | # include <strings.h> | ||
| 583 | #endif | ||
| 584 | #ifdef HAVE_INTTYPES_H | ||
| 585 | # include <inttypes.h> | ||
| 586 | #endif | ||
| 587 | #ifdef HAVE_STDINT_H | ||
| 588 | # include <stdint.h> | ||
| 589 | #endif | ||
| 590 | #ifdef HAVE_UNISTD_H | ||
| 591 | # include <unistd.h> | ||
| 592 | #endif" | ||
| 593 | |||
| 594 | ac_header_list= | ||
| 595 | gl_getopt_required=POSIX | ||
| 596 | gl_getopt_required=POSIX | ||
| 597 | ac_func_list= | ||
| 598 | ac_subst_vars='gltests_LTLIBOBJS | ||
| 599 | gltests_LIBOBJS | ||
| 600 | gl_LTLIBOBJS | ||
| 601 | gl_LIBOBJS | ||
| 602 | am__EXEEXT_FALSE | ||
| 603 | am__EXEEXT_TRUE | ||
| 604 | LTLIBOBJS | ||
| 605 | LIBOBJS | ||
| 606 | WINDOW_SUPPORT | ||
| 607 | TOOLTIP_SUPPORT | ||
| 608 | MOUSE_SUPPORT | ||
| 609 | LIB_GCC | ||
| 610 | LD_FIRSTFLAG | ||
| 611 | LD_SWITCH_SYSTEM_TEMACS | ||
| 612 | POST_ALLOC_OBJ | ||
| 613 | PRE_ALLOC_OBJ | ||
| 614 | CYGWIN_OBJ | ||
| 615 | RALLOC_OBJ | ||
| 616 | OLDXMENU_DEPS | ||
| 617 | LIBX_OTHER | ||
| 618 | LIBXMENU | ||
| 619 | OLDXMENU | ||
| 620 | OLDXMENU_TARGET | ||
| 621 | LIBXT_OTHER | ||
| 622 | TOOLKIT_LIBW | ||
| 623 | WIDGET_OBJ | ||
| 624 | XOBJ | ||
| 625 | XMENU_OBJ | ||
| 626 | FONT_OBJ | ||
| 627 | OTHER_FILES | ||
| 628 | GNU_OBJC_CFLAGS | ||
| 629 | ns_appsrc | ||
| 630 | ns_appresdir | ||
| 631 | ns_appbindir | ||
| 632 | ns_appdir | ||
| 633 | S_FILE | ||
| 634 | M_FILE | ||
| 635 | X_TOOLKIT_TYPE | ||
| 636 | C_SWITCH_X_SYSTEM | ||
| 637 | C_SWITCH_X_SITE | ||
| 638 | LD_SWITCH_X_SITE | ||
| 639 | gameuser | ||
| 640 | gamedir | ||
| 641 | bitmapdir | ||
| 642 | archlibdir | ||
| 643 | etcdir | ||
| 644 | x_default_search_path | ||
| 645 | lisppath | ||
| 646 | locallisppath | ||
| 647 | lispdir | ||
| 648 | srcdir | ||
| 649 | canonical | ||
| 650 | configuration | ||
| 651 | version | ||
| 652 | KRB4LIB | ||
| 653 | DESLIB | ||
| 654 | KRB5LIB | ||
| 655 | CRYPTOLIB | ||
| 656 | COM_ERRLIB | ||
| 657 | LIBRESOLV | ||
| 658 | LIBHESIOD | ||
| 659 | TERMCAP_OBJ | ||
| 660 | LIBS_TERMCAP | ||
| 661 | LIBGNU_LTLIBDEPS | ||
| 662 | LIBGNU_LIBDEPS | ||
| 663 | gltests_WITNESS | ||
| 664 | HAVE_UNISTD_H | ||
| 665 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H | ||
| 666 | NEXT_UNISTD_H | ||
| 667 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC | ||
| 668 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC | ||
| 669 | TIME_H_DEFINES_STRUCT_TIMESPEC | ||
| 670 | NEXT_AS_FIRST_DIRECTIVE_TIME_H | ||
| 671 | NEXT_TIME_H | ||
| 672 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H | ||
| 673 | NEXT_SYS_STAT_H | ||
| 674 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H | ||
| 675 | NEXT_STDLIB_H | ||
| 676 | STDINT_H | ||
| 677 | WINT_T_SUFFIX | ||
| 678 | WCHAR_T_SUFFIX | ||
| 679 | SIG_ATOMIC_T_SUFFIX | ||
| 680 | SIZE_T_SUFFIX | ||
| 681 | PTRDIFF_T_SUFFIX | ||
| 682 | HAVE_SIGNED_WINT_T | ||
| 683 | HAVE_SIGNED_WCHAR_T | ||
| 684 | HAVE_SIGNED_SIG_ATOMIC_T | ||
| 685 | BITSIZEOF_WINT_T | ||
| 686 | BITSIZEOF_WCHAR_T | ||
| 687 | BITSIZEOF_SIG_ATOMIC_T | ||
| 688 | BITSIZEOF_SIZE_T | ||
| 689 | BITSIZEOF_PTRDIFF_T | ||
| 690 | HAVE_SYS_BITYPES_H | ||
| 691 | HAVE_SYS_INTTYPES_H | ||
| 692 | HAVE_STDINT_H | ||
| 693 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H | ||
| 694 | NEXT_STDINT_H | ||
| 695 | HAVE_SYS_TYPES_H | ||
| 696 | HAVE_INTTYPES_H | ||
| 697 | HAVE_WCHAR_H | ||
| 698 | HAVE_UNSIGNED_LONG_LONG_INT | ||
| 699 | HAVE_LONG_LONG_INT | ||
| 700 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H | ||
| 701 | NEXT_STDDEF_H | ||
| 702 | STDDEF_H | ||
| 703 | HAVE_WCHAR_T | ||
| 704 | REPLACE_NULL | ||
| 705 | HAVE__BOOL | ||
| 706 | STDBOOL_H | ||
| 707 | APPLE_UNIVERSAL_BUILD | ||
| 708 | REPLACE_TIMEGM | ||
| 709 | REPLACE_NANOSLEEP | ||
| 710 | REPLACE_MKTIME | ||
| 711 | REPLACE_LOCALTIME_R | ||
| 712 | HAVE_TIMEGM | ||
| 713 | HAVE_STRPTIME | ||
| 714 | HAVE_NANOSLEEP | ||
| 715 | HAVE_DECL_LOCALTIME_R | ||
| 716 | GNULIB_TIME_R | ||
| 717 | GNULIB_TIMEGM | ||
| 718 | GNULIB_STRPTIME | ||
| 719 | GNULIB_NANOSLEEP | ||
| 720 | GNULIB_MKTIME | ||
| 721 | REPLACE_UTIMENSAT | ||
| 722 | REPLACE_STAT | ||
| 723 | REPLACE_MKNOD | ||
| 724 | REPLACE_MKFIFO | ||
| 725 | REPLACE_MKDIR | ||
| 726 | REPLACE_LSTAT | ||
| 727 | REPLACE_FUTIMENS | ||
| 728 | REPLACE_FSTATAT | ||
| 729 | REPLACE_FSTAT | ||
| 730 | HAVE_UTIMENSAT | ||
| 731 | HAVE_MKNODAT | ||
| 732 | HAVE_MKNOD | ||
| 733 | HAVE_MKFIFOAT | ||
| 734 | HAVE_MKFIFO | ||
| 735 | HAVE_MKDIRAT | ||
| 736 | HAVE_LSTAT | ||
| 737 | HAVE_LCHMOD | ||
| 738 | HAVE_FUTIMENS | ||
| 739 | HAVE_FSTATAT | ||
| 740 | HAVE_FCHMODAT | ||
| 741 | GNULIB_UTIMENSAT | ||
| 742 | GNULIB_STAT | ||
| 743 | GNULIB_MKNODAT | ||
| 744 | GNULIB_MKNOD | ||
| 745 | GNULIB_MKFIFOAT | ||
| 746 | GNULIB_MKFIFO | ||
| 747 | GNULIB_MKDIRAT | ||
| 748 | GNULIB_LSTAT | ||
| 749 | GNULIB_LCHMOD | ||
| 750 | GNULIB_FUTIMENS | ||
| 751 | GNULIB_FSTATAT | ||
| 752 | GNULIB_FCHMODAT | ||
| 753 | LTLIBINTL | ||
| 754 | LIBINTL | ||
| 755 | GETOPT_H | ||
| 756 | HAVE_GETOPT_H | ||
| 757 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H | ||
| 758 | NEXT_GETOPT_H | ||
| 759 | PRAGMA_COLUMNS | ||
| 760 | PRAGMA_SYSTEM_HEADER | ||
| 761 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE | ||
| 762 | INCLUDE_NEXT | ||
| 763 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS | ||
| 764 | UNISTD_H_HAVE_WINSOCK2_H | ||
| 765 | REPLACE_WRITE | ||
| 766 | REPLACE_USLEEP | ||
| 767 | REPLACE_UNLINKAT | ||
| 768 | REPLACE_UNLINK | ||
| 769 | REPLACE_TTYNAME_R | ||
| 770 | REPLACE_SYMLINK | ||
| 771 | REPLACE_SLEEP | ||
| 772 | REPLACE_RMDIR | ||
| 773 | REPLACE_READLINK | ||
| 774 | REPLACE_PWRITE | ||
| 775 | REPLACE_PREAD | ||
| 776 | REPLACE_LSEEK | ||
| 777 | REPLACE_LINKAT | ||
| 778 | REPLACE_LINK | ||
| 779 | REPLACE_LCHOWN | ||
| 780 | REPLACE_GETPAGESIZE | ||
| 781 | REPLACE_GETGROUPS | ||
| 782 | REPLACE_GETLOGIN_R | ||
| 783 | REPLACE_GETDOMAINNAME | ||
| 784 | REPLACE_GETCWD | ||
| 785 | REPLACE_FCHOWNAT | ||
| 786 | REPLACE_DUP2 | ||
| 787 | REPLACE_DUP | ||
| 788 | REPLACE_CLOSE | ||
| 789 | REPLACE_CHOWN | ||
| 790 | HAVE_SYS_PARAM_H | ||
| 791 | HAVE_OS_H | ||
| 792 | HAVE_DECL_TTYNAME_R | ||
| 793 | HAVE_DECL_GETUSERSHELL | ||
| 794 | HAVE_DECL_GETPAGESIZE | ||
| 795 | HAVE_DECL_GETLOGIN_R | ||
| 796 | HAVE_DECL_GETDOMAINNAME | ||
| 797 | HAVE_DECL_FCHDIR | ||
| 798 | HAVE_DECL_ENVIRON | ||
| 799 | HAVE_USLEEP | ||
| 800 | HAVE_UNLINKAT | ||
| 801 | HAVE_SYMLINKAT | ||
| 802 | HAVE_SYMLINK | ||
| 803 | HAVE_SLEEP | ||
| 804 | HAVE_READLINKAT | ||
| 805 | HAVE_READLINK | ||
| 806 | HAVE_PWRITE | ||
| 807 | HAVE_PREAD | ||
| 808 | HAVE_PIPE2 | ||
| 809 | HAVE_PIPE | ||
| 810 | HAVE_LINKAT | ||
| 811 | HAVE_LINK | ||
| 812 | HAVE_LCHOWN | ||
| 813 | HAVE_GETPAGESIZE | ||
| 814 | HAVE_GETLOGIN | ||
| 815 | HAVE_GETHOSTNAME | ||
| 816 | HAVE_GETGROUPS | ||
| 817 | HAVE_GETDTABLESIZE | ||
| 818 | HAVE_FTRUNCATE | ||
| 819 | HAVE_FSYNC | ||
| 820 | HAVE_FCHOWNAT | ||
| 821 | HAVE_FCHDIR | ||
| 822 | HAVE_FACCESSAT | ||
| 823 | HAVE_EUIDACCESS | ||
| 824 | HAVE_DUP3 | ||
| 825 | HAVE_DUP2 | ||
| 826 | HAVE_CHOWN | ||
| 827 | GNULIB_WRITE | ||
| 828 | GNULIB_USLEEP | ||
| 829 | GNULIB_UNLINKAT | ||
| 830 | GNULIB_UNLINK | ||
| 831 | GNULIB_UNISTD_H_SIGPIPE | ||
| 832 | GNULIB_UNISTD_H_GETOPT | ||
| 833 | GNULIB_TTYNAME_R | ||
| 834 | GNULIB_SYMLINKAT | ||
| 835 | GNULIB_SYMLINK | ||
| 836 | GNULIB_SLEEP | ||
| 837 | GNULIB_RMDIR | ||
| 838 | GNULIB_READLINKAT | ||
| 839 | GNULIB_READLINK | ||
| 840 | GNULIB_PWRITE | ||
| 841 | GNULIB_PREAD | ||
| 842 | GNULIB_PIPE2 | ||
| 843 | GNULIB_PIPE | ||
| 844 | GNULIB_LSEEK | ||
| 845 | GNULIB_LINKAT | ||
| 846 | GNULIB_LINK | ||
| 847 | GNULIB_LCHOWN | ||
| 848 | GNULIB_GETUSERSHELL | ||
| 849 | GNULIB_GETPAGESIZE | ||
| 850 | GNULIB_GETLOGIN_R | ||
| 851 | GNULIB_GETLOGIN | ||
| 852 | GNULIB_GETHOSTNAME | ||
| 853 | GNULIB_GETGROUPS | ||
| 854 | GNULIB_GETDTABLESIZE | ||
| 855 | GNULIB_GETDOMAINNAME | ||
| 856 | GNULIB_GETCWD | ||
| 857 | GNULIB_FTRUNCATE | ||
| 858 | GNULIB_FSYNC | ||
| 859 | GNULIB_FCHOWNAT | ||
| 860 | GNULIB_FCHDIR | ||
| 861 | GNULIB_FACCESSAT | ||
| 862 | GNULIB_EUIDACCESS | ||
| 863 | GNULIB_ENVIRON | ||
| 864 | GNULIB_DUP3 | ||
| 865 | GNULIB_DUP2 | ||
| 866 | GNULIB_CLOSE | ||
| 867 | GNULIB_CHOWN | ||
| 868 | GETLOADAVG_LIBS | ||
| 869 | REPLACE_WCTOMB | ||
| 870 | REPLACE_UNSETENV | ||
| 871 | REPLACE_STRTOD | ||
| 872 | REPLACE_SETENV | ||
| 873 | REPLACE_REALPATH | ||
| 874 | REPLACE_REALLOC | ||
| 875 | REPLACE_PUTENV | ||
| 876 | REPLACE_MKSTEMP | ||
| 877 | REPLACE_MBTOWC | ||
| 878 | REPLACE_MALLOC | ||
| 879 | REPLACE_CANONICALIZE_FILE_NAME | ||
| 880 | REPLACE_CALLOC | ||
| 881 | HAVE_DECL_UNSETENV | ||
| 882 | HAVE_UNLOCKPT | ||
| 883 | HAVE_SYS_LOADAVG_H | ||
| 884 | HAVE_STRUCT_RANDOM_DATA | ||
| 885 | HAVE_STRTOULL | ||
| 886 | HAVE_STRTOLL | ||
| 887 | HAVE_STRTOD | ||
| 888 | HAVE_DECL_SETENV | ||
| 889 | HAVE_SETENV | ||
| 890 | HAVE_RPMATCH | ||
| 891 | HAVE_REALPATH | ||
| 892 | HAVE_RANDOM_R | ||
| 893 | HAVE_RANDOM_H | ||
| 894 | HAVE_PTSNAME | ||
| 895 | HAVE_MKSTEMPS | ||
| 896 | HAVE_MKSTEMP | ||
| 897 | HAVE_MKOSTEMPS | ||
| 898 | HAVE_MKOSTEMP | ||
| 899 | HAVE_MKDTEMP | ||
| 900 | HAVE_GRANTPT | ||
| 901 | HAVE_GETSUBOPT | ||
| 902 | HAVE_DECL_GETLOADAVG | ||
| 903 | HAVE_CANONICALIZE_FILE_NAME | ||
| 904 | HAVE_ATOLL | ||
| 905 | HAVE__EXIT | ||
| 906 | GNULIB_WCTOMB | ||
| 907 | GNULIB_UNSETENV | ||
| 908 | GNULIB_UNLOCKPT | ||
| 909 | GNULIB_SYSTEM_POSIX | ||
| 910 | GNULIB_STRTOULL | ||
| 911 | GNULIB_STRTOLL | ||
| 912 | GNULIB_STRTOD | ||
| 913 | GNULIB_SETENV | ||
| 914 | GNULIB_RPMATCH | ||
| 915 | GNULIB_REALPATH | ||
| 916 | GNULIB_REALLOC_POSIX | ||
| 917 | GNULIB_RANDOM_R | ||
| 918 | GNULIB_PUTENV | ||
| 919 | GNULIB_PTSNAME | ||
| 920 | GNULIB_MKSTEMPS | ||
| 921 | GNULIB_MKSTEMP | ||
| 922 | GNULIB_MKOSTEMPS | ||
| 923 | GNULIB_MKOSTEMP | ||
| 924 | GNULIB_MKDTEMP | ||
| 925 | GNULIB_MBTOWC | ||
| 926 | GNULIB_MALLOC_POSIX | ||
| 927 | GNULIB_GRANTPT | ||
| 928 | GNULIB_GETSUBOPT | ||
| 929 | GNULIB_GETLOADAVG | ||
| 930 | GNULIB_CANONICALIZE_FILE_NAME | ||
| 931 | GNULIB_CALLOC_POSIX | ||
| 932 | GNULIB_ATOLL | ||
| 933 | GNULIB__EXIT | ||
| 934 | GL_COND_LIBTOOL_FALSE | ||
| 935 | GL_COND_LIBTOOL_TRUE | ||
| 936 | BLESSMAIL_TARGET | ||
| 937 | LIBS_MAIL | ||
| 938 | liblockfile | ||
| 939 | ALLOCA | ||
| 940 | LIBXML2_LIBS | ||
| 941 | LIBXML2_CFLAGS | ||
| 942 | LIBXSM | ||
| 943 | LIBGPM | ||
| 944 | LIBGIF | ||
| 945 | LIBTIFF | ||
| 946 | LIBPNG | ||
| 947 | LIBJPEG | ||
| 948 | LIBXPM | ||
| 949 | M17N_FLT_LIBS | ||
| 950 | M17N_FLT_CFLAGS | ||
| 951 | LIBOTF_LIBS | ||
| 952 | LIBOTF_CFLAGS | ||
| 953 | FREETYPE_LIBS | ||
| 954 | FREETYPE_CFLAGS | ||
| 955 | XFT_LIBS | ||
| 956 | XFT_CFLAGS | ||
| 957 | FONTCONFIG_LIBS | ||
| 958 | FONTCONFIG_CFLAGS | ||
| 959 | LIBXMU | ||
| 960 | LIBXTR6 | ||
| 961 | LIBGNUTLS_LIBS | ||
| 962 | LIBGNUTLS_CFLAGS | ||
| 963 | LIBSELINUX_LIBS | ||
| 964 | GCONF_LIBS | ||
| 965 | GCONF_CFLAGS | ||
| 966 | DBUS_OBJ | ||
| 967 | DBUS_LIBS | ||
| 968 | DBUS_CFLAGS | ||
| 969 | GTK_OBJ | ||
| 970 | GTK_LIBS | ||
| 971 | GTK_CFLAGS | ||
| 972 | IMAGEMAGICK_LIBS | ||
| 973 | IMAGEMAGICK_CFLAGS | ||
| 974 | RSVG_LIBS | ||
| 975 | RSVG_CFLAGS | ||
| 976 | VMLIMIT_OBJ | ||
| 977 | GMALLOC_OBJ | ||
| 978 | HAVE_XSERVER | ||
| 979 | LIB_STANDARD | ||
| 980 | NS_SUPPORT | ||
| 981 | NS_OBJC_OBJ | ||
| 982 | NS_OBJ | ||
| 983 | TEMACS_LDFLAGS2 | ||
| 984 | LD_SWITCH_X_SITE_AUX_RPATH | ||
| 985 | LD_SWITCH_X_SITE_AUX | ||
| 986 | XMKMF | ||
| 987 | DEPFLAGS | ||
| 988 | MKDEPDIR | ||
| 989 | CFLAGS_SOUND | ||
| 990 | ALSA_LIBS | ||
| 991 | ALSA_CFLAGS | ||
| 992 | PKG_CONFIG | ||
| 993 | LIBSOUND | ||
| 994 | START_FILES | ||
| 995 | LIB_MATH | ||
| 996 | CRT_DIR | ||
| 997 | LIBS_SYSTEM | ||
| 998 | C_SWITCH_SYSTEM | ||
| 999 | UNEXEC_OBJ | ||
| 1000 | C_SWITCH_MACHINE | ||
| 1001 | LD_SWITCH_SYSTEM | ||
| 1002 | CANNOT_DUMP | ||
| 1003 | HAVE_MAKEINFO | ||
| 1004 | GZIP_PROG | ||
| 1005 | INSTALL_INFO | ||
| 1006 | C_WARNINGS_SWITCH | ||
| 1007 | EGREP | ||
| 1008 | GREP | ||
| 1009 | CPP | ||
| 1010 | RANLIB | ||
| 1011 | am__fastdepCC_FALSE | ||
| 1012 | am__fastdepCC_TRUE | ||
| 1013 | CCDEPMODE | ||
| 1014 | AMDEPBACKSLASH | ||
| 1015 | AMDEP_FALSE | ||
| 1016 | AMDEP_TRUE | ||
| 1017 | am__quote | ||
| 1018 | am__include | ||
| 1019 | DEPDIR | ||
| 1020 | OBJEXT | ||
| 1021 | EXEEXT | ||
| 1022 | ac_ct_CC | ||
| 1023 | CPPFLAGS | ||
| 1024 | LDFLAGS | ||
| 1025 | CFLAGS | ||
| 1026 | CC | ||
| 1027 | host_os | ||
| 1028 | host_vendor | ||
| 1029 | host_cpu | ||
| 1030 | host | ||
| 1031 | build_os | ||
| 1032 | build_vendor | ||
| 1033 | build_cpu | ||
| 1034 | build | ||
| 1035 | PROFILING_CFLAGS | ||
| 1036 | MAINT | ||
| 1037 | GZIP_INFO | ||
| 1038 | am__untar | ||
| 1039 | am__tar | ||
| 1040 | AMTAR | ||
| 1041 | am__leading_dot | ||
| 1042 | SET_MAKE | ||
| 1043 | AWK | ||
| 1044 | mkdir_p | ||
| 1045 | MKDIR_P | ||
| 1046 | INSTALL_STRIP_PROGRAM | ||
| 1047 | STRIP | ||
| 1048 | install_sh | ||
| 1049 | MAKEINFO | ||
| 1050 | AUTOHEADER | ||
| 1051 | AUTOMAKE | ||
| 1052 | AUTOCONF | ||
| 1053 | ACLOCAL | ||
| 1054 | VERSION | ||
| 1055 | PACKAGE | ||
| 1056 | CYGPATH_W | ||
| 1057 | am__isrc | ||
| 1058 | INSTALL_DATA | ||
| 1059 | INSTALL_SCRIPT | ||
| 1060 | INSTALL_PROGRAM | ||
| 1061 | target_alias | ||
| 1062 | host_alias | ||
| 1063 | build_alias | ||
| 1064 | LIBS | ||
| 1065 | ECHO_T | ||
| 1066 | ECHO_N | ||
| 1067 | ECHO_C | ||
| 1068 | DEFS | ||
| 1069 | mandir | ||
| 1070 | localedir | ||
| 1071 | libdir | ||
| 1072 | psdir | ||
| 1073 | pdfdir | ||
| 1074 | dvidir | ||
| 1075 | htmldir | ||
| 1076 | infodir | ||
| 1077 | docdir | ||
| 1078 | oldincludedir | ||
| 1079 | includedir | ||
| 1080 | localstatedir | ||
| 1081 | sharedstatedir | ||
| 1082 | sysconfdir | ||
| 1083 | datadir | ||
| 1084 | datarootdir | ||
| 1085 | libexecdir | ||
| 1086 | sbindir | ||
| 1087 | bindir | ||
| 1088 | program_transform_name | ||
| 1089 | prefix | ||
| 1090 | exec_prefix | ||
| 1091 | PACKAGE_URL | ||
| 1092 | PACKAGE_BUGREPORT | ||
| 1093 | PACKAGE_STRING | ||
| 1094 | PACKAGE_VERSION | ||
| 1095 | PACKAGE_TARNAME | ||
| 1096 | PACKAGE_NAME | ||
| 1097 | PATH_SEPARATOR | ||
| 1098 | SHELL' | ||
| 1099 | ac_subst_files='deps_frag | ||
| 1100 | ns_frag' | ||
| 1101 | ac_user_opts=' | ||
| 1102 | enable_option_checking | ||
| 1103 | with_pop | ||
| 1104 | with_kerberos | ||
| 1105 | with_kerberos5 | ||
| 1106 | with_hesiod | ||
| 1107 | with_mmdf | ||
| 1108 | with_mail_unlink | ||
| 1109 | with_mailhost | ||
| 1110 | with_sound | ||
| 1111 | with_sync_input | ||
| 1112 | with_x_toolkit | ||
| 1113 | with_xpm | ||
| 1114 | with_jpeg | ||
| 1115 | with_tiff | ||
| 1116 | with_gif | ||
| 1117 | with_png | ||
| 1118 | with_rsvg | ||
| 1119 | with_xml2 | ||
| 1120 | with_imagemagick | ||
| 1121 | with_xft | ||
| 1122 | with_libotf | ||
| 1123 | with_m17n_flt | ||
| 1124 | with_toolkit_scroll_bars | ||
| 1125 | with_xaw3d | ||
| 1126 | with_xim | ||
| 1127 | with_ns | ||
| 1128 | with_gpm | ||
| 1129 | with_dbus | ||
| 1130 | with_gconf | ||
| 1131 | with_selinux | ||
| 1132 | with_gnutls | ||
| 1133 | with_makeinfo | ||
| 1134 | with_compress_info | ||
| 1135 | with_pkg_config_prog | ||
| 1136 | with_crt_dir | ||
| 1137 | with_gameuser | ||
| 1138 | with_gnustep_conf | ||
| 1139 | enable_ns_self_contained | ||
| 1140 | enable_asserts | ||
| 1141 | enable_maintainer_mode | ||
| 1142 | enable_locallisppath | ||
| 1143 | enable_checking | ||
| 1144 | enable_use_lisp_union_type | ||
| 1145 | enable_profiling | ||
| 1146 | enable_autodepend | ||
| 1147 | enable_dependency_tracking | ||
| 1148 | enable_largefile | ||
| 1149 | with_x | ||
| 1150 | ' | ||
| 1151 | ac_precious_vars='build_alias | ||
| 1152 | host_alias | ||
| 1153 | target_alias | ||
| 1154 | CC | ||
| 1155 | CFLAGS | ||
| 1156 | LDFLAGS | ||
| 1157 | LIBS | ||
| 1158 | CPPFLAGS | ||
| 1159 | CPP | ||
| 1160 | XMKMF' | ||
| 1161 | |||
| 1162 | |||
| 1163 | # Initialize some variables set by options. | ||
| 1164 | ac_init_help= | ||
| 1165 | ac_init_version=false | ||
| 1166 | ac_unrecognized_opts= | ||
| 1167 | ac_unrecognized_sep= | ||
| 1168 | # The variables have the same names as the options, with | ||
| 1169 | # dashes changed to underlines. | ||
| 1170 | cache_file=/dev/null | ||
| 1171 | exec_prefix=NONE | ||
| 1172 | no_create= | ||
| 1173 | no_recursion= | ||
| 1174 | prefix=NONE | ||
| 1175 | program_prefix=NONE | ||
| 1176 | program_suffix=NONE | ||
| 1177 | program_transform_name=s,x,x, | ||
| 1178 | silent= | ||
| 1179 | site= | ||
| 1180 | srcdir= | ||
| 1181 | verbose= | ||
| 1182 | x_includes=NONE | ||
| 1183 | x_libraries=NONE | ||
| 1184 | |||
| 1185 | # Installation directory options. | ||
| 1186 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
| 1187 | # and all the variables that are supposed to be based on exec_prefix | ||
| 1188 | # by default will actually change. | ||
| 1189 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
| 1190 | # (The list follows the same order as the GNU Coding Standards.) | ||
| 1191 | bindir='${exec_prefix}/bin' | ||
| 1192 | sbindir='${exec_prefix}/sbin' | ||
| 1193 | libexecdir='${exec_prefix}/libexec' | ||
| 1194 | datarootdir='${prefix}/share' | ||
| 1195 | datadir='${datarootdir}' | ||
| 1196 | sysconfdir='${prefix}/etc' | ||
| 1197 | sharedstatedir='${prefix}/com' | ||
| 1198 | localstatedir='${prefix}/var' | ||
| 1199 | includedir='${prefix}/include' | ||
| 1200 | oldincludedir='/usr/include' | ||
| 1201 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
| 1202 | infodir='${datarootdir}/info' | ||
| 1203 | htmldir='${docdir}' | ||
| 1204 | dvidir='${docdir}' | ||
| 1205 | pdfdir='${docdir}' | ||
| 1206 | psdir='${docdir}' | ||
| 1207 | libdir='${exec_prefix}/lib' | ||
| 1208 | localedir='${datarootdir}/locale' | ||
| 1209 | mandir='${datarootdir}/man' | ||
| 1210 | |||
| 1211 | ac_prev= | ||
| 1212 | ac_dashdash= | ||
| 1213 | for ac_option | ||
| 1214 | do | ||
| 1215 | # If the previous option needs an argument, assign it. | ||
| 1216 | if test -n "$ac_prev"; then | ||
| 1217 | eval $ac_prev=\$ac_option | ||
| 1218 | ac_prev= | ||
| 1219 | continue | ||
| 1220 | fi | ||
| 1221 | |||
| 1222 | case $ac_option in | ||
| 1223 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
| 1224 | *) ac_optarg=yes ;; | ||
| 1225 | esac | ||
| 1226 | |||
| 1227 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
| 1228 | |||
| 1229 | case $ac_dashdash$ac_option in | ||
| 1230 | --) | ||
| 1231 | ac_dashdash=yes ;; | ||
| 1232 | |||
| 1233 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
| 1234 | ac_prev=bindir ;; | ||
| 1235 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
| 1236 | bindir=$ac_optarg ;; | ||
| 1237 | |||
| 1238 | -build | --build | --buil | --bui | --bu) | ||
| 1239 | ac_prev=build_alias ;; | ||
| 1240 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
| 1241 | build_alias=$ac_optarg ;; | ||
| 1242 | |||
| 1243 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
| 1244 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
| 1245 | ac_prev=cache_file ;; | ||
| 1246 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
| 1247 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
| 1248 | cache_file=$ac_optarg ;; | ||
| 1249 | |||
| 1250 | --config-cache | -C) | ||
| 1251 | cache_file=config.cache ;; | ||
| 1252 | |||
| 1253 | -datadir | --datadir | --datadi | --datad) | ||
| 1254 | ac_prev=datadir ;; | ||
| 1255 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
| 1256 | datadir=$ac_optarg ;; | ||
| 1257 | |||
| 1258 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
| 1259 | | --dataroo | --dataro | --datar) | ||
| 1260 | ac_prev=datarootdir ;; | ||
| 1261 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
| 1262 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
| 1263 | datarootdir=$ac_optarg ;; | ||
| 1264 | |||
| 1265 | -disable-* | --disable-*) | ||
| 1266 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
| 1267 | # Reject names that are not valid shell variable names. | ||
| 1268 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
| 1269 | as_fn_error "invalid feature name: $ac_useropt" | ||
| 1270 | ac_useropt_orig=$ac_useropt | ||
| 1271 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
| 1272 | case $ac_user_opts in | ||
| 1273 | *" | ||
| 1274 | "enable_$ac_useropt" | ||
| 1275 | "*) ;; | ||
| 1276 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
| 1277 | ac_unrecognized_sep=', ';; | ||
| 1278 | esac | ||
| 1279 | eval enable_$ac_useropt=no ;; | ||
| 1280 | |||
| 1281 | -docdir | --docdir | --docdi | --doc | --do) | ||
| 1282 | ac_prev=docdir ;; | ||
| 1283 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
| 1284 | docdir=$ac_optarg ;; | ||
| 1285 | |||
| 1286 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
| 1287 | ac_prev=dvidir ;; | ||
| 1288 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
| 1289 | dvidir=$ac_optarg ;; | ||
| 1290 | |||
| 1291 | -enable-* | --enable-*) | ||
| 1292 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
| 1293 | # Reject names that are not valid shell variable names. | ||
| 1294 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
| 1295 | as_fn_error "invalid feature name: $ac_useropt" | ||
| 1296 | ac_useropt_orig=$ac_useropt | ||
| 1297 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
| 1298 | case $ac_user_opts in | ||
| 1299 | *" | ||
| 1300 | "enable_$ac_useropt" | ||
| 1301 | "*) ;; | ||
| 1302 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
| 1303 | ac_unrecognized_sep=', ';; | ||
| 1304 | esac | ||
| 1305 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
| 1306 | |||
| 1307 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
| 1308 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
| 1309 | | --exec | --exe | --ex) | ||
| 1310 | ac_prev=exec_prefix ;; | ||
| 1311 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
| 1312 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
| 1313 | | --exec=* | --exe=* | --ex=*) | ||
| 1314 | exec_prefix=$ac_optarg ;; | ||
| 1315 | |||
| 1316 | -gas | --gas | --ga | --g) | ||
| 1317 | # Obsolete; use --with-gas. | ||
| 1318 | with_gas=yes ;; | ||
| 1319 | |||
| 1320 | -help | --help | --hel | --he | -h) | ||
| 1321 | ac_init_help=long ;; | ||
| 1322 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
| 1323 | ac_init_help=recursive ;; | ||
| 1324 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
| 1325 | ac_init_help=short ;; | ||
| 1326 | |||
| 1327 | -host | --host | --hos | --ho) | ||
| 1328 | ac_prev=host_alias ;; | ||
| 1329 | -host=* | --host=* | --hos=* | --ho=*) | ||
| 1330 | host_alias=$ac_optarg ;; | ||
| 1331 | |||
| 1332 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
| 1333 | ac_prev=htmldir ;; | ||
| 1334 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
| 1335 | | --ht=*) | ||
| 1336 | htmldir=$ac_optarg ;; | ||
| 1337 | |||
| 1338 | -includedir | --includedir | --includedi | --included | --include \ | ||
| 1339 | | --includ | --inclu | --incl | --inc) | ||
| 1340 | ac_prev=includedir ;; | ||
| 1341 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
| 1342 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
| 1343 | includedir=$ac_optarg ;; | ||
| 1344 | |||
| 1345 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
| 1346 | ac_prev=infodir ;; | ||
| 1347 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
| 1348 | infodir=$ac_optarg ;; | ||
| 1349 | |||
| 1350 | -libdir | --libdir | --libdi | --libd) | ||
| 1351 | ac_prev=libdir ;; | ||
| 1352 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
| 1353 | libdir=$ac_optarg ;; | ||
| 1354 | |||
| 1355 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
| 1356 | | --libexe | --libex | --libe) | ||
| 1357 | ac_prev=libexecdir ;; | ||
| 1358 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
| 1359 | | --libexe=* | --libex=* | --libe=*) | ||
| 1360 | libexecdir=$ac_optarg ;; | ||
| 1361 | |||
| 1362 | -localedir | --localedir | --localedi | --localed | --locale) | ||
| 1363 | ac_prev=localedir ;; | ||
| 1364 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
| 1365 | localedir=$ac_optarg ;; | ||
| 1366 | |||
| 1367 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
| 1368 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
| 1369 | ac_prev=localstatedir ;; | ||
| 1370 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
| 1371 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
| 1372 | localstatedir=$ac_optarg ;; | ||
| 1373 | |||
| 1374 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
| 1375 | ac_prev=mandir ;; | ||
| 1376 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
| 1377 | mandir=$ac_optarg ;; | ||
| 1378 | |||
| 1379 | -nfp | --nfp | --nf) | ||
| 1380 | # Obsolete; use --without-fp. | ||
| 1381 | with_fp=no ;; | ||
| 1382 | |||
| 1383 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 1384 | | --no-cr | --no-c | -n) | ||
| 1385 | no_create=yes ;; | ||
| 1386 | |||
| 1387 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 1388 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
| 1389 | no_recursion=yes ;; | ||
| 1390 | |||
| 1391 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
| 1392 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
| 1393 | | --oldin | --oldi | --old | --ol | --o) | ||
| 1394 | ac_prev=oldincludedir ;; | ||
| 1395 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
| 1396 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
| 1397 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
| 1398 | oldincludedir=$ac_optarg ;; | ||
| 1399 | |||
| 1400 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
| 1401 | ac_prev=prefix ;; | ||
| 1402 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
| 1403 | prefix=$ac_optarg ;; | ||
| 1404 | |||
| 1405 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
| 1406 | | --program-pre | --program-pr | --program-p) | ||
| 1407 | ac_prev=program_prefix ;; | ||
| 1408 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
| 1409 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
| 1410 | program_prefix=$ac_optarg ;; | ||
| 1411 | |||
| 1412 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
| 1413 | | --program-suf | --program-su | --program-s) | ||
| 1414 | ac_prev=program_suffix ;; | ||
| 1415 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
| 1416 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
| 1417 | program_suffix=$ac_optarg ;; | ||
| 1418 | |||
| 1419 | -program-transform-name | --program-transform-name \ | ||
| 1420 | | --program-transform-nam | --program-transform-na \ | ||
| 1421 | | --program-transform-n | --program-transform- \ | ||
| 1422 | | --program-transform | --program-transfor \ | ||
| 1423 | | --program-transfo | --program-transf \ | ||
| 1424 | | --program-trans | --program-tran \ | ||
| 1425 | | --progr-tra | --program-tr | --program-t) | ||
| 1426 | ac_prev=program_transform_name ;; | ||
| 1427 | -program-transform-name=* | --program-transform-name=* \ | ||
| 1428 | | --program-transform-nam=* | --program-transform-na=* \ | ||
| 1429 | | --program-transform-n=* | --program-transform-=* \ | ||
| 1430 | | --program-transform=* | --program-transfor=* \ | ||
| 1431 | | --program-transfo=* | --program-transf=* \ | ||
| 1432 | | --program-trans=* | --program-tran=* \ | ||
| 1433 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
| 1434 | program_transform_name=$ac_optarg ;; | ||
| 1435 | |||
| 1436 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
| 1437 | ac_prev=pdfdir ;; | ||
| 1438 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
| 1439 | pdfdir=$ac_optarg ;; | ||
| 1440 | |||
| 1441 | -psdir | --psdir | --psdi | --psd | --ps) | ||
| 1442 | ac_prev=psdir ;; | ||
| 1443 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
| 1444 | psdir=$ac_optarg ;; | ||
| 1445 | |||
| 1446 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 1447 | | -silent | --silent | --silen | --sile | --sil) | ||
| 1448 | silent=yes ;; | ||
| 1449 | |||
| 1450 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
| 1451 | ac_prev=sbindir ;; | ||
| 1452 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
| 1453 | | --sbi=* | --sb=*) | ||
| 1454 | sbindir=$ac_optarg ;; | ||
| 1455 | |||
| 1456 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
| 1457 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
| 1458 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
| 1459 | | --sha | --sh) | ||
| 1460 | ac_prev=sharedstatedir ;; | ||
| 1461 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
| 1462 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
| 1463 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
| 1464 | | --sha=* | --sh=*) | ||
| 1465 | sharedstatedir=$ac_optarg ;; | ||
| 1466 | |||
| 1467 | -site | --site | --sit) | ||
| 1468 | ac_prev=site ;; | ||
| 1469 | -site=* | --site=* | --sit=*) | ||
| 1470 | site=$ac_optarg ;; | ||
| 1471 | |||
| 1472 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
| 1473 | ac_prev=srcdir ;; | ||
| 1474 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
| 1475 | srcdir=$ac_optarg ;; | ||
| 1476 | |||
| 1477 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
| 1478 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
| 1479 | ac_prev=sysconfdir ;; | ||
| 1480 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
| 1481 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
| 1482 | sysconfdir=$ac_optarg ;; | ||
| 1483 | |||
| 1484 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
| 1485 | ac_prev=target_alias ;; | ||
| 1486 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
| 1487 | target_alias=$ac_optarg ;; | ||
| 1488 | |||
| 1489 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
| 1490 | verbose=yes ;; | ||
| 1491 | |||
| 1492 | -version | --version | --versio | --versi | --vers | -V) | ||
| 1493 | ac_init_version=: ;; | ||
| 1494 | |||
| 1495 | -with-* | --with-*) | ||
| 1496 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
| 1497 | # Reject names that are not valid shell variable names. | ||
| 1498 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
| 1499 | as_fn_error "invalid package name: $ac_useropt" | ||
| 1500 | ac_useropt_orig=$ac_useropt | ||
| 1501 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
| 1502 | case $ac_user_opts in | ||
| 1503 | *" | ||
| 1504 | "with_$ac_useropt" | ||
| 1505 | "*) ;; | ||
| 1506 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
| 1507 | ac_unrecognized_sep=', ';; | ||
| 1508 | esac | ||
| 1509 | eval with_$ac_useropt=\$ac_optarg ;; | ||
| 1510 | |||
| 1511 | -without-* | --without-*) | ||
| 1512 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
| 1513 | # Reject names that are not valid shell variable names. | ||
| 1514 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
| 1515 | as_fn_error "invalid package name: $ac_useropt" | ||
| 1516 | ac_useropt_orig=$ac_useropt | ||
| 1517 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
| 1518 | case $ac_user_opts in | ||
| 1519 | *" | ||
| 1520 | "with_$ac_useropt" | ||
| 1521 | "*) ;; | ||
| 1522 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
| 1523 | ac_unrecognized_sep=', ';; | ||
| 1524 | esac | ||
| 1525 | eval with_$ac_useropt=no ;; | ||
| 1526 | |||
| 1527 | --x) | ||
| 1528 | # Obsolete; use --with-x. | ||
| 1529 | with_x=yes ;; | ||
| 1530 | |||
| 1531 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
| 1532 | | --x-incl | --x-inc | --x-in | --x-i) | ||
| 1533 | ac_prev=x_includes ;; | ||
| 1534 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
| 1535 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
| 1536 | x_includes=$ac_optarg ;; | ||
| 1537 | |||
| 1538 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
| 1539 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
| 1540 | ac_prev=x_libraries ;; | ||
| 1541 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
| 1542 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
| 1543 | x_libraries=$ac_optarg ;; | ||
| 1544 | |||
| 1545 | -*) as_fn_error "unrecognized option: \`$ac_option' | ||
| 1546 | Try \`$0 --help' for more information." | ||
| 1547 | ;; | ||
| 1548 | |||
| 1549 | *=*) | ||
| 1550 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
| 1551 | # Reject names that are not valid shell variable names. | ||
| 1552 | case $ac_envvar in #( | ||
| 1553 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
| 1554 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | ||
| 1555 | esac | ||
| 1556 | eval $ac_envvar=\$ac_optarg | ||
| 1557 | export $ac_envvar ;; | ||
| 1558 | |||
| 1559 | *) | ||
| 1560 | # FIXME: should be removed in autoconf 3.0. | ||
| 1561 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
| 1562 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
| 1563 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
| 1564 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
| 1565 | ;; | ||
| 1566 | |||
| 1567 | esac | ||
| 1568 | done | ||
| 1569 | |||
| 1570 | if test -n "$ac_prev"; then | ||
| 1571 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
| 1572 | as_fn_error "missing argument to $ac_option" | ||
| 1573 | fi | ||
| 1574 | |||
| 1575 | if test -n "$ac_unrecognized_opts"; then | ||
| 1576 | case $enable_option_checking in | ||
| 1577 | no) ;; | ||
| 1578 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | ||
| 1579 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
| 1580 | esac | ||
| 1581 | fi | ||
| 1582 | |||
| 1583 | # Check all directory arguments for consistency. | ||
| 1584 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
| 1585 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
| 1586 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
| 1587 | libdir localedir mandir | ||
| 1588 | do | ||
| 1589 | eval ac_val=\$$ac_var | ||
| 1590 | # Remove trailing slashes. | ||
| 1591 | case $ac_val in | ||
| 1592 | */ ) | ||
| 1593 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
| 1594 | eval $ac_var=\$ac_val;; | ||
| 1595 | esac | ||
| 1596 | # Be sure to have absolute directory names. | ||
| 1597 | case $ac_val in | ||
| 1598 | [\\/$]* | ?:[\\/]* ) continue;; | ||
| 1599 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
| 1600 | esac | ||
| 1601 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | ||
| 1602 | done | ||
| 1603 | |||
| 1604 | # There might be people who depend on the old broken behavior: `$host' | ||
| 1605 | # used to hold the argument of --host etc. | ||
| 1606 | # FIXME: To remove some day. | ||
| 1607 | build=$build_alias | ||
| 1608 | host=$host_alias | ||
| 1609 | target=$target_alias | ||
| 1610 | |||
| 1611 | # FIXME: To remove some day. | ||
| 1612 | if test "x$host_alias" != x; then | ||
| 1613 | if test "x$build_alias" = x; then | ||
| 1614 | cross_compiling=maybe | ||
| 1615 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
| 1616 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
| 1617 | elif test "x$build_alias" != "x$host_alias"; then | ||
| 1618 | cross_compiling=yes | ||
| 1619 | fi | ||
| 1620 | fi | ||
| 1621 | |||
| 1622 | ac_tool_prefix= | ||
| 1623 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
| 1624 | |||
| 1625 | test "$silent" = yes && exec 6>/dev/null | ||
| 1626 | |||
| 1627 | |||
| 1628 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
| 1629 | ac_ls_di=`ls -di .` && | ||
| 1630 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
| 1631 | as_fn_error "working directory cannot be determined" | ||
| 1632 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
| 1633 | as_fn_error "pwd does not report name of working directory" | ||
| 1634 | |||
| 1635 | |||
| 1636 | # Find the source files, if location was not specified. | ||
| 1637 | if test -z "$srcdir"; then | ||
| 1638 | ac_srcdir_defaulted=yes | ||
| 1639 | # Try the directory containing this script, then the parent directory. | ||
| 1640 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
| 1641 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 1642 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
| 1643 | X"$as_myself" : 'X\(//\)$' \| \ | ||
| 1644 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
| 1645 | $as_echo X"$as_myself" | | ||
| 1646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
| 1647 | s//\1/ | ||
| 1648 | q | ||
| 1649 | } | ||
| 1650 | /^X\(\/\/\)[^/].*/{ | ||
| 1651 | s//\1/ | ||
| 1652 | q | ||
| 1653 | } | ||
| 1654 | /^X\(\/\/\)$/{ | ||
| 1655 | s//\1/ | ||
| 1656 | q | ||
| 1657 | } | ||
| 1658 | /^X\(\/\).*/{ | ||
| 1659 | s//\1/ | ||
| 1660 | q | ||
| 1661 | } | ||
| 1662 | s/.*/./; q'` | ||
| 1663 | srcdir=$ac_confdir | ||
| 1664 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
| 1665 | srcdir=.. | ||
| 1666 | fi | ||
| 1667 | else | ||
| 1668 | ac_srcdir_defaulted=no | ||
| 1669 | fi | ||
| 1670 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
| 1671 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
| 1672 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | ||
| 1673 | fi | ||
| 1674 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
| 1675 | ac_abs_confdir=`( | ||
| 1676 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | ||
| 1677 | pwd)` | ||
| 1678 | # When building in place, set srcdir=. | ||
| 1679 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
| 1680 | srcdir=. | ||
| 1681 | fi | ||
| 1682 | # Remove unnecessary trailing slashes from srcdir. | ||
| 1683 | # Double slashes in file names in object file debugging info | ||
| 1684 | # mess up M-x gdb in Emacs. | ||
| 1685 | case $srcdir in | ||
| 1686 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
| 1687 | esac | ||
| 1688 | for ac_var in $ac_precious_vars; do | ||
| 1689 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
| 1690 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
| 1691 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
| 1692 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
| 1693 | done | ||
| 1694 | |||
| 1695 | # | ||
| 1696 | # Report the --help message. | ||
| 1697 | # | ||
| 1698 | if test "$ac_init_help" = "long"; then | ||
| 1699 | # Omit some internal or obsolete options to make the list less imposing. | ||
| 1700 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
| 1701 | cat <<_ACEOF | ||
| 1702 | \`configure' configures emacs 24.0.50 to adapt to many kinds of systems. | ||
| 1703 | |||
| 1704 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
| 1705 | |||
| 1706 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
| 1707 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
| 1708 | |||
| 1709 | Defaults for the options are specified in brackets. | ||
| 1710 | |||
| 1711 | Configuration: | ||
| 1712 | -h, --help display this help and exit | ||
| 1713 | --help=short display options specific to this package | ||
| 1714 | --help=recursive display the short help of all the included packages | ||
| 1715 | -V, --version display version information and exit | ||
| 1716 | -q, --quiet, --silent do not print \`checking...' messages | ||
| 1717 | --cache-file=FILE cache test results in FILE [disabled] | ||
| 1718 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
| 1719 | -n, --no-create do not create output files | ||
| 1720 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
| 1721 | |||
| 1722 | Installation directories: | ||
| 1723 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
| 1724 | [$ac_default_prefix] | ||
| 1725 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
| 1726 | [PREFIX] | ||
| 1727 | |||
| 1728 | By default, \`make install' will install all the files in | ||
| 1729 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
| 1730 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
| 1731 | for instance \`--prefix=\$HOME'. | ||
| 1732 | |||
| 1733 | For better control, use the options below. | ||
| 1734 | |||
| 1735 | Fine tuning of the installation directories: | ||
| 1736 | --bindir=DIR user executables [EPREFIX/bin] | ||
| 1737 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
| 1738 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
| 1739 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
| 1740 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
| 1741 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
| 1742 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
| 1743 | --includedir=DIR C header files [PREFIX/include] | ||
| 1744 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
| 1745 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
| 1746 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
| 1747 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
| 1748 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
| 1749 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
| 1750 | --docdir=DIR documentation root [DATAROOTDIR/doc/emacs] | ||
| 1751 | --htmldir=DIR html documentation [DOCDIR] | ||
| 1752 | --dvidir=DIR dvi documentation [DOCDIR] | ||
| 1753 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
| 1754 | --psdir=DIR ps documentation [DOCDIR] | ||
| 1755 | _ACEOF | ||
| 1756 | |||
| 1757 | cat <<\_ACEOF | ||
| 1758 | |||
| 1759 | Program names: | ||
| 1760 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
| 1761 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
| 1762 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
| 1763 | |||
| 1764 | X features: | ||
| 1765 | --x-includes=DIR X include files are in DIR | ||
| 1766 | --x-libraries=DIR X library files are in DIR | ||
| 1767 | |||
| 1768 | System types: | ||
| 1769 | --build=BUILD configure for building on BUILD [guessed] | ||
| 1770 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
| 1771 | _ACEOF | ||
| 1772 | fi | ||
| 1773 | |||
| 1774 | if test -n "$ac_init_help"; then | ||
| 1775 | case $ac_init_help in | ||
| 1776 | short | recursive ) echo "Configuration of emacs 24.0.50:";; | ||
| 1777 | esac | ||
| 1778 | cat <<\_ACEOF | ||
| 1779 | |||
| 1780 | Optional Features: | ||
| 1781 | --disable-option-checking ignore unrecognized --enable/--with options | ||
| 1782 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
| 1783 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
| 1784 | --disable-ns-self-contained | ||
| 1785 | disable self contained build under NeXTstep | ||
| 1786 | --enable-asserts compile code with asserts enabled | ||
| 1787 | --enable-maintainer-mode | ||
| 1788 | enable make rules and dependencies not useful (and | ||
| 1789 | sometimes confusing) to the casual installer | ||
| 1790 | --enable-locallisppath=PATH | ||
| 1791 | directories Emacs should search for lisp files | ||
| 1792 | specific to this site | ||
| 1793 | --enable-checking[=LIST] | ||
| 1794 | enable expensive run-time checks. With LIST, enable | ||
| 1795 | only specific categories of checks. Categories are: | ||
| 1796 | all,yes,no. Flags are: stringbytes, stringoverrun, | ||
| 1797 | stringfreelist, xmallocoverrun, conslist | ||
| 1798 | --enable-use-lisp-union-type | ||
| 1799 | use a union for the Lisp_Object data type. This is | ||
| 1800 | only useful for development for catching certain | ||
| 1801 | types of bugs. | ||
| 1802 | --enable-profiling build emacs with profiling support. This might not | ||
| 1803 | work on all platforms | ||
| 1804 | --enable-autodepend automatically generate dependencies to .h-files. | ||
| 1805 | Requires GNU Make and Gcc. Enabled if GNU Make and | ||
| 1806 | Gcc is found | ||
| 1807 | --disable-dependency-tracking speeds up one-time build | ||
| 1808 | --enable-dependency-tracking do not reject slow dependency extractors | ||
| 1809 | --disable-largefile omit support for large files | ||
| 1810 | |||
| 1811 | Optional Packages: | ||
| 1812 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
| 1813 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
| 1814 | --without-pop don't support POP mail retrieval with movemail | ||
| 1815 | --with-kerberos support Kerberos-authenticated POP | ||
| 1816 | --with-kerberos5 support Kerberos version 5 authenticated POP | ||
| 1817 | --with-hesiod support Hesiod to get the POP server host | ||
| 1818 | --with-mmdf support MMDF mailboxes | ||
| 1819 | --with-mail-unlink unlink, rather than empty, mail spool after reading | ||
| 1820 | --with-mailhost=HOSTNAME | ||
| 1821 | string giving default POP mail host | ||
| 1822 | --without-sound don't compile with sound support | ||
| 1823 | --without-sync-input process async input synchronously | ||
| 1824 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3, | ||
| 1825 | lucid or athena, motif, no) | ||
| 1826 | --without-xpm don't compile with XPM image support | ||
| 1827 | --without-jpeg don't compile with JPEG image support | ||
| 1828 | --without-tiff don't compile with TIFF image support | ||
| 1829 | --without-gif don't compile with GIF image support | ||
| 1830 | --without-png don't compile with PNG image support | ||
| 1831 | --without-rsvg don't compile with SVG image support | ||
| 1832 | --without-xml2 don't compile with XML parsing support | ||
| 1833 | --without-imagemagick don't compile with ImageMagick image support | ||
| 1834 | --without-xft don't use XFT for anti aliased fonts | ||
| 1835 | --without-libotf don't use libotf for OpenType font support | ||
| 1836 | --without-m17n-flt don't use m17n-flt for text shaping | ||
| 1837 | --without-toolkit-scroll-bars | ||
| 1838 | don't use Motif or Xaw3d scroll bars | ||
| 1839 | --without-xaw3d don't use Xaw3d | ||
| 1840 | --without-xim don't use X11 XIM | ||
| 1841 | --with-ns use NeXTstep (Cocoa or GNUstep) windowing system | ||
| 1842 | --without-gpm don't use -lgpm for mouse support on a GNU/Linux | ||
| 1843 | console | ||
| 1844 | --without-dbus don't compile with D-Bus support | ||
| 1845 | --without-gconf don't compile with GConf support | ||
| 1846 | --without-selinux don't compile with SELinux support | ||
| 1847 | --without-gnutls don't use -lgnutls for SSL/TLS support | ||
| 1848 | --without-makeinfo don't require makeinfo for building manuals | ||
| 1849 | --without-compress-info don't compress the installed Info pages | ||
| 1850 | --with-pkg-config-prog=PATH | ||
| 1851 | path to pkg-config for finding GTK and librsvg | ||
| 1852 | --with-crt-dir=DIR directory containing crtn.o etc. The default is | ||
| 1853 | /usr/lib, or /usr/lib64 on some platforms. | ||
| 1854 | --with-gameuser=USER user for shared game score files | ||
| 1855 | --with-gnustep-conf=PATH | ||
| 1856 | path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, | ||
| 1857 | or /etc/GNUstep/GNUstep.conf | ||
| 1858 | --with-x use the X Window System | ||
| 1859 | |||
| 1860 | Some influential environment variables: | ||
| 1861 | CC C compiler command | ||
| 1862 | CFLAGS C compiler flags | ||
| 1863 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
| 1864 | nonstandard directory <lib dir> | ||
| 1865 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
| 1866 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
| 1867 | you have headers in a nonstandard directory <include dir> | ||
| 1868 | CPP C preprocessor | ||
| 1869 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
| 1870 | |||
| 1871 | Use these variables to override the choices made by `configure' or to help | ||
| 1872 | it to find libraries and programs with nonstandard names/locations. | ||
| 1873 | |||
| 1874 | Report bugs to the package provider. | ||
| 1875 | _ACEOF | ||
| 1876 | ac_status=$? | ||
| 1877 | fi | ||
| 1878 | |||
| 1879 | if test "$ac_init_help" = "recursive"; then | ||
| 1880 | # If there are subdirs, report their specific --help. | ||
| 1881 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
| 1882 | test -d "$ac_dir" || | ||
| 1883 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
| 1884 | continue | ||
| 1885 | ac_builddir=. | ||
| 1886 | |||
| 1887 | case "$ac_dir" in | ||
| 1888 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
| 1889 | *) | ||
| 1890 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
| 1891 | # A ".." for each directory in $ac_dir_suffix. | ||
| 1892 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
| 1893 | case $ac_top_builddir_sub in | ||
| 1894 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
| 1895 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
| 1896 | esac ;; | ||
| 1897 | esac | ||
| 1898 | ac_abs_top_builddir=$ac_pwd | ||
| 1899 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
| 1900 | # for backward compatibility: | ||
| 1901 | ac_top_builddir=$ac_top_build_prefix | ||
| 1902 | |||
| 1903 | case $srcdir in | ||
| 1904 | .) # We are building in place. | ||
| 1905 | ac_srcdir=. | ||
| 1906 | ac_top_srcdir=$ac_top_builddir_sub | ||
| 1907 | ac_abs_top_srcdir=$ac_pwd ;; | ||
| 1908 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
| 1909 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
| 1910 | ac_top_srcdir=$srcdir | ||
| 1911 | ac_abs_top_srcdir=$srcdir ;; | ||
| 1912 | *) # Relative name. | ||
| 1913 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
| 1914 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
| 1915 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
| 1916 | esac | ||
| 1917 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
| 1918 | |||
| 1919 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
| 1920 | # Check for guested configure. | ||
| 1921 | if test -f "$ac_srcdir/configure.gnu"; then | ||
| 1922 | echo && | ||
| 1923 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
| 1924 | elif test -f "$ac_srcdir/configure"; then | ||
| 1925 | echo && | ||
| 1926 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
| 1927 | else | ||
| 1928 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
| 1929 | fi || ac_status=$? | ||
| 1930 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
| 1931 | done | ||
| 1932 | fi | ||
| 1933 | |||
| 1934 | test -n "$ac_init_help" && exit $ac_status | ||
| 1935 | if $ac_init_version; then | ||
| 1936 | cat <<\_ACEOF | ||
| 1937 | emacs configure 24.0.50 | ||
| 1938 | generated by GNU Autoconf 2.65 | ||
| 1939 | |||
| 1940 | Copyright (C) 2009 Free Software Foundation, Inc. | ||
| 1941 | This configure script is free software; the Free Software Foundation | ||
| 1942 | gives unlimited permission to copy, distribute and modify it. | ||
| 1943 | _ACEOF | ||
| 1944 | exit | ||
| 1945 | fi | ||
| 1946 | |||
| 1947 | ## ------------------------ ## | ||
| 1948 | ## Autoconf initialization. ## | ||
| 1949 | ## ------------------------ ## | ||
| 1950 | |||
| 1951 | # ac_fn_c_try_compile LINENO | ||
| 1952 | # -------------------------- | ||
| 1953 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
| 1954 | ac_fn_c_try_compile () | ||
| 1955 | { | ||
| 1956 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 1957 | rm -f conftest.$ac_objext | ||
| 1958 | if { { ac_try="$ac_compile" | ||
| 1959 | case "(($ac_try" in | ||
| 1960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1961 | *) ac_try_echo=$ac_try;; | ||
| 1962 | esac | ||
| 1963 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 1964 | $as_echo "$ac_try_echo"; } >&5 | ||
| 1965 | (eval "$ac_compile") 2>conftest.err | ||
| 1966 | ac_status=$? | ||
| 1967 | if test -s conftest.err; then | ||
| 1968 | grep -v '^ *+' conftest.err >conftest.er1 | ||
| 1969 | cat conftest.er1 >&5 | ||
| 1970 | mv -f conftest.er1 conftest.err | ||
| 1971 | fi | ||
| 1972 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 1973 | test $ac_status = 0; } && { | ||
| 1974 | test -z "$ac_c_werror_flag" || | ||
| 1975 | test ! -s conftest.err | ||
| 1976 | } && test -s conftest.$ac_objext; then : | ||
| 1977 | ac_retval=0 | ||
| 1978 | else | ||
| 1979 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1980 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1981 | |||
| 1982 | ac_retval=1 | ||
| 1983 | fi | ||
| 1984 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 1985 | as_fn_set_status $ac_retval | ||
| 1986 | |||
| 1987 | } # ac_fn_c_try_compile | ||
| 1988 | |||
| 1989 | # ac_fn_c_try_cpp LINENO | ||
| 1990 | # ---------------------- | ||
| 1991 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
| 1992 | ac_fn_c_try_cpp () | ||
| 1993 | { | ||
| 1994 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 1995 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
| 1996 | case "(($ac_try" in | ||
| 1997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1998 | *) ac_try_echo=$ac_try;; | ||
| 1999 | esac | ||
| 2000 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 2001 | $as_echo "$ac_try_echo"; } >&5 | ||
| 2002 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
| 2003 | ac_status=$? | ||
| 2004 | if test -s conftest.err; then | ||
| 2005 | grep -v '^ *+' conftest.err >conftest.er1 | ||
| 2006 | cat conftest.er1 >&5 | ||
| 2007 | mv -f conftest.er1 conftest.err | ||
| 2008 | fi | ||
| 2009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 2010 | test $ac_status = 0; } >/dev/null && { | ||
| 2011 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
| 2012 | test ! -s conftest.err | ||
| 2013 | }; then : | ||
| 2014 | ac_retval=0 | ||
| 2015 | else | ||
| 2016 | $as_echo "$as_me: failed program was:" >&5 | ||
| 2017 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 2018 | |||
| 2019 | ac_retval=1 | ||
| 2020 | fi | ||
| 2021 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2022 | as_fn_set_status $ac_retval | ||
| 2023 | |||
| 2024 | } # ac_fn_c_try_cpp | ||
| 2025 | |||
| 2026 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
| 2027 | # ------------------------------------------------------- | ||
| 2028 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
| 2029 | # the include files in INCLUDES and setting the cache variable VAR | ||
| 2030 | # accordingly. | ||
| 2031 | ac_fn_c_check_header_mongrel () | ||
| 2032 | { | ||
| 2033 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2034 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 2036 | $as_echo_n "checking for $2... " >&6; } | ||
| 2037 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2038 | $as_echo_n "(cached) " >&6 | ||
| 2039 | fi | ||
| 2040 | eval ac_res=\$$3 | ||
| 2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2042 | $as_echo "$ac_res" >&6; } | ||
| 2043 | else | ||
| 2044 | # Is the header compilable? | ||
| 2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
| 2046 | $as_echo_n "checking $2 usability... " >&6; } | ||
| 2047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2048 | /* end confdefs.h. */ | ||
| 2049 | $4 | ||
| 2050 | #include <$2> | ||
| 2051 | _ACEOF | ||
| 2052 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2053 | ac_header_compiler=yes | ||
| 2054 | else | ||
| 2055 | ac_header_compiler=no | ||
| 2056 | fi | ||
| 2057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
| 2059 | $as_echo "$ac_header_compiler" >&6; } | ||
| 2060 | |||
| 2061 | # Is the header present? | ||
| 2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
| 2063 | $as_echo_n "checking $2 presence... " >&6; } | ||
| 2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2065 | /* end confdefs.h. */ | ||
| 2066 | #include <$2> | ||
| 2067 | _ACEOF | ||
| 2068 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 2069 | ac_header_preproc=yes | ||
| 2070 | else | ||
| 2071 | ac_header_preproc=no | ||
| 2072 | fi | ||
| 2073 | rm -f conftest.err conftest.$ac_ext | ||
| 2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
| 2075 | $as_echo "$ac_header_preproc" >&6; } | ||
| 2076 | |||
| 2077 | # So? What about this header? | ||
| 2078 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
| 2079 | yes:no: ) | ||
| 2080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
| 2081 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
| 2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
| 2083 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
| 2084 | ;; | ||
| 2085 | no:yes:* ) | ||
| 2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
| 2087 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
| 2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
| 2089 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
| 2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
| 2091 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
| 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
| 2093 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
| 2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
| 2095 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
| 2096 | ;; | ||
| 2097 | esac | ||
| 2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 2099 | $as_echo_n "checking for $2... " >&6; } | ||
| 2100 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2101 | $as_echo_n "(cached) " >&6 | ||
| 2102 | else | ||
| 2103 | eval "$3=\$ac_header_compiler" | ||
| 2104 | fi | ||
| 2105 | eval ac_res=\$$3 | ||
| 2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2107 | $as_echo "$ac_res" >&6; } | ||
| 2108 | fi | ||
| 2109 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2110 | |||
| 2111 | } # ac_fn_c_check_header_mongrel | ||
| 2112 | |||
| 2113 | # ac_fn_c_try_run LINENO | ||
| 2114 | # ---------------------- | ||
| 2115 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
| 2116 | # that executables *can* be run. | ||
| 2117 | ac_fn_c_try_run () | ||
| 2118 | { | ||
| 2119 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2120 | if { { ac_try="$ac_link" | ||
| 2121 | case "(($ac_try" in | ||
| 2122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2123 | *) ac_try_echo=$ac_try;; | ||
| 2124 | esac | ||
| 2125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 2126 | $as_echo "$ac_try_echo"; } >&5 | ||
| 2127 | (eval "$ac_link") 2>&5 | ||
| 2128 | ac_status=$? | ||
| 2129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 2130 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
| 2131 | { { case "(($ac_try" in | ||
| 2132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2133 | *) ac_try_echo=$ac_try;; | ||
| 2134 | esac | ||
| 2135 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 2136 | $as_echo "$ac_try_echo"; } >&5 | ||
| 2137 | (eval "$ac_try") 2>&5 | ||
| 2138 | ac_status=$? | ||
| 2139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 2140 | test $ac_status = 0; }; }; then : | ||
| 2141 | ac_retval=0 | ||
| 2142 | else | ||
| 2143 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
| 2144 | $as_echo "$as_me: failed program was:" >&5 | ||
| 2145 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 2146 | |||
| 2147 | ac_retval=$ac_status | ||
| 2148 | fi | ||
| 2149 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
| 2150 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2151 | as_fn_set_status $ac_retval | ||
| 2152 | |||
| 2153 | } # ac_fn_c_try_run | ||
| 2154 | |||
| 2155 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
| 2156 | # ------------------------------------------------------- | ||
| 2157 | # Tests whether HEADER exists and can be compiled using the include files in | ||
| 2158 | # INCLUDES, setting the cache variable VAR accordingly. | ||
| 2159 | ac_fn_c_check_header_compile () | ||
| 2160 | { | ||
| 2161 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 2163 | $as_echo_n "checking for $2... " >&6; } | ||
| 2164 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2165 | $as_echo_n "(cached) " >&6 | ||
| 2166 | else | ||
| 2167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2168 | /* end confdefs.h. */ | ||
| 2169 | $4 | ||
| 2170 | #include <$2> | ||
| 2171 | _ACEOF | ||
| 2172 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2173 | eval "$3=yes" | ||
| 2174 | else | ||
| 2175 | eval "$3=no" | ||
| 2176 | fi | ||
| 2177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2178 | fi | ||
| 2179 | eval ac_res=\$$3 | ||
| 2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2181 | $as_echo "$ac_res" >&6; } | ||
| 2182 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2183 | |||
| 2184 | } # ac_fn_c_check_header_compile | ||
| 2185 | |||
| 2186 | # ac_fn_c_try_link LINENO | ||
| 2187 | # ----------------------- | ||
| 2188 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
| 2189 | ac_fn_c_try_link () | ||
| 2190 | { | ||
| 2191 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2192 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 2193 | if { { ac_try="$ac_link" | ||
| 2194 | case "(($ac_try" in | ||
| 2195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 2196 | *) ac_try_echo=$ac_try;; | ||
| 2197 | esac | ||
| 2198 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 2199 | $as_echo "$ac_try_echo"; } >&5 | ||
| 2200 | (eval "$ac_link") 2>conftest.err | ||
| 2201 | ac_status=$? | ||
| 2202 | if test -s conftest.err; then | ||
| 2203 | grep -v '^ *+' conftest.err >conftest.er1 | ||
| 2204 | cat conftest.er1 >&5 | ||
| 2205 | mv -f conftest.er1 conftest.err | ||
| 2206 | fi | ||
| 2207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 2208 | test $ac_status = 0; } && { | ||
| 2209 | test -z "$ac_c_werror_flag" || | ||
| 2210 | test ! -s conftest.err | ||
| 2211 | } && test -s conftest$ac_exeext && { | ||
| 2212 | test "$cross_compiling" = yes || | ||
| 2213 | $as_test_x conftest$ac_exeext | ||
| 2214 | }; then : | ||
| 2215 | ac_retval=0 | ||
| 2216 | else | ||
| 2217 | $as_echo "$as_me: failed program was:" >&5 | ||
| 2218 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 2219 | |||
| 2220 | ac_retval=1 | ||
| 2221 | fi | ||
| 2222 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
| 2223 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
| 2224 | # interfere with the next link command; also delete a directory that is | ||
| 2225 | # left behind by Apple's compiler. We do this before executing the actions. | ||
| 2226 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
| 2227 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2228 | as_fn_set_status $ac_retval | ||
| 2229 | |||
| 2230 | } # ac_fn_c_try_link | ||
| 2231 | |||
| 2232 | # ac_fn_c_check_decl LINENO SYMBOL VAR | ||
| 2233 | # ------------------------------------ | ||
| 2234 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | ||
| 2235 | ac_fn_c_check_decl () | ||
| 2236 | { | ||
| 2237 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | ||
| 2239 | $as_echo_n "checking whether $2 is declared... " >&6; } | ||
| 2240 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2241 | $as_echo_n "(cached) " >&6 | ||
| 2242 | else | ||
| 2243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2244 | /* end confdefs.h. */ | ||
| 2245 | $4 | ||
| 2246 | int | ||
| 2247 | main () | ||
| 2248 | { | ||
| 2249 | #ifndef $2 | ||
| 2250 | (void) $2; | ||
| 2251 | #endif | ||
| 2252 | |||
| 2253 | ; | ||
| 2254 | return 0; | ||
| 2255 | } | ||
| 2256 | _ACEOF | ||
| 2257 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2258 | eval "$3=yes" | ||
| 2259 | else | ||
| 2260 | eval "$3=no" | ||
| 2261 | fi | ||
| 2262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2263 | fi | ||
| 2264 | eval ac_res=\$$3 | ||
| 2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2266 | $as_echo "$ac_res" >&6; } | ||
| 2267 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2268 | |||
| 2269 | } # ac_fn_c_check_decl | ||
| 2270 | |||
| 2271 | # ac_fn_c_check_header_preproc LINENO HEADER VAR | ||
| 2272 | # ---------------------------------------------- | ||
| 2273 | # Tests whether HEADER is present, setting the cache variable VAR accordingly. | ||
| 2274 | ac_fn_c_check_header_preproc () | ||
| 2275 | { | ||
| 2276 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 2278 | $as_echo_n "checking for $2... " >&6; } | ||
| 2279 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2280 | $as_echo_n "(cached) " >&6 | ||
| 2281 | else | ||
| 2282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2283 | /* end confdefs.h. */ | ||
| 2284 | #include <$2> | ||
| 2285 | _ACEOF | ||
| 2286 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 2287 | eval "$3=yes" | ||
| 2288 | else | ||
| 2289 | eval "$3=no" | ||
| 2290 | fi | ||
| 2291 | rm -f conftest.err conftest.$ac_ext | ||
| 2292 | fi | ||
| 2293 | eval ac_res=\$$3 | ||
| 2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2295 | $as_echo "$ac_res" >&6; } | ||
| 2296 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2297 | |||
| 2298 | } # ac_fn_c_check_header_preproc | ||
| 2299 | |||
| 2300 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
| 2301 | # ---------------------------------------------------- | ||
| 2302 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
| 2303 | # INCLUDES, setting cache variable VAR accordingly. | ||
| 2304 | ac_fn_c_check_member () | ||
| 2305 | { | ||
| 2306 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
| 2308 | $as_echo_n "checking for $2.$3... " >&6; } | ||
| 2309 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2310 | $as_echo_n "(cached) " >&6 | ||
| 2311 | else | ||
| 2312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2313 | /* end confdefs.h. */ | ||
| 2314 | $5 | ||
| 2315 | int | ||
| 2316 | main () | ||
| 2317 | { | ||
| 2318 | static $2 ac_aggr; | ||
| 2319 | if (ac_aggr.$3) | ||
| 2320 | return 0; | ||
| 2321 | ; | ||
| 2322 | return 0; | ||
| 2323 | } | ||
| 2324 | _ACEOF | ||
| 2325 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2326 | eval "$4=yes" | ||
| 2327 | else | ||
| 2328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2329 | /* end confdefs.h. */ | ||
| 2330 | $5 | ||
| 2331 | int | ||
| 2332 | main () | ||
| 2333 | { | ||
| 2334 | static $2 ac_aggr; | ||
| 2335 | if (sizeof ac_aggr.$3) | ||
| 2336 | return 0; | ||
| 2337 | ; | ||
| 2338 | return 0; | ||
| 2339 | } | ||
| 2340 | _ACEOF | ||
| 2341 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2342 | eval "$4=yes" | ||
| 2343 | else | ||
| 2344 | eval "$4=no" | ||
| 2345 | fi | ||
| 2346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2347 | fi | ||
| 2348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2349 | fi | ||
| 2350 | eval ac_res=\$$4 | ||
| 2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2352 | $as_echo "$ac_res" >&6; } | ||
| 2353 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2354 | |||
| 2355 | } # ac_fn_c_check_member | ||
| 2356 | |||
| 2357 | # ac_fn_c_check_func LINENO FUNC VAR | ||
| 2358 | # ---------------------------------- | ||
| 2359 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
| 2360 | ac_fn_c_check_func () | ||
| 2361 | { | ||
| 2362 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 2364 | $as_echo_n "checking for $2... " >&6; } | ||
| 2365 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2366 | $as_echo_n "(cached) " >&6 | ||
| 2367 | else | ||
| 2368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2369 | /* end confdefs.h. */ | ||
| 2370 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
| 2371 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
| 2372 | #define $2 innocuous_$2 | ||
| 2373 | |||
| 2374 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2375 | which can conflict with char $2 (); below. | ||
| 2376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| 2377 | <limits.h> exists even on freestanding compilers. */ | ||
| 2378 | |||
| 2379 | #ifdef __STDC__ | ||
| 2380 | # include <limits.h> | ||
| 2381 | #else | ||
| 2382 | # include <assert.h> | ||
| 2383 | #endif | ||
| 2384 | |||
| 2385 | #undef $2 | ||
| 2386 | |||
| 2387 | /* Override any GCC internal prototype to avoid an error. | ||
| 2388 | Use char because int might match the return type of a GCC | ||
| 2389 | builtin and then its argument prototype would still apply. */ | ||
| 2390 | #ifdef __cplusplus | ||
| 2391 | extern "C" | ||
| 2392 | #endif | ||
| 2393 | char $2 (); | ||
| 2394 | /* The GNU C library defines this for functions which it implements | ||
| 2395 | to always fail with ENOSYS. Some functions are actually named | ||
| 2396 | something starting with __ and the normal name is an alias. */ | ||
| 2397 | #if defined __stub_$2 || defined __stub___$2 | ||
| 2398 | choke me | ||
| 2399 | #endif | ||
| 2400 | |||
| 2401 | int | ||
| 2402 | main () | ||
| 2403 | { | ||
| 2404 | return $2 (); | ||
| 2405 | ; | ||
| 2406 | return 0; | ||
| 2407 | } | ||
| 2408 | _ACEOF | ||
| 2409 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 2410 | eval "$3=yes" | ||
| 2411 | else | ||
| 2412 | eval "$3=no" | ||
| 2413 | fi | ||
| 2414 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 2415 | conftest$ac_exeext conftest.$ac_ext | ||
| 2416 | fi | ||
| 2417 | eval ac_res=\$$3 | ||
| 2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2419 | $as_echo "$ac_res" >&6; } | ||
| 2420 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2421 | |||
| 2422 | } # ac_fn_c_check_func | ||
| 2423 | |||
| 2424 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
| 2425 | # ------------------------------------------- | ||
| 2426 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
| 2427 | # variable VAR accordingly. | ||
| 2428 | ac_fn_c_check_type () | ||
| 2429 | { | ||
| 2430 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 2432 | $as_echo_n "checking for $2... " >&6; } | ||
| 2433 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 2434 | $as_echo_n "(cached) " >&6 | ||
| 2435 | else | ||
| 2436 | eval "$3=no" | ||
| 2437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2438 | /* end confdefs.h. */ | ||
| 2439 | $4 | ||
| 2440 | int | ||
| 2441 | main () | ||
| 2442 | { | ||
| 2443 | if (sizeof ($2)) | ||
| 2444 | return 0; | ||
| 2445 | ; | ||
| 2446 | return 0; | ||
| 2447 | } | ||
| 2448 | _ACEOF | ||
| 2449 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2451 | /* end confdefs.h. */ | ||
| 2452 | $4 | ||
| 2453 | int | ||
| 2454 | main () | ||
| 2455 | { | ||
| 2456 | if (sizeof (($2))) | ||
| 2457 | return 0; | ||
| 2458 | ; | ||
| 2459 | return 0; | ||
| 2460 | } | ||
| 2461 | _ACEOF | ||
| 2462 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2463 | |||
| 2464 | else | ||
| 2465 | eval "$3=yes" | ||
| 2466 | fi | ||
| 2467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2468 | fi | ||
| 2469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2470 | fi | ||
| 2471 | eval ac_res=\$$3 | ||
| 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2473 | $as_echo "$ac_res" >&6; } | ||
| 2474 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2475 | |||
| 2476 | } # ac_fn_c_check_type | ||
| 2477 | |||
| 2478 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
| 2479 | # -------------------------------------------- | ||
| 2480 | # Tries to find the compile-time value of EXPR in a program that includes | ||
| 2481 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
| 2482 | # computed | ||
| 2483 | ac_fn_c_compute_int () | ||
| 2484 | { | ||
| 2485 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2486 | if test "$cross_compiling" = yes; then | ||
| 2487 | # Depending upon the size, compute the lo and hi bounds. | ||
| 2488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2489 | /* end confdefs.h. */ | ||
| 2490 | $4 | ||
| 2491 | int | ||
| 2492 | main () | ||
| 2493 | { | ||
| 2494 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
| 2495 | test_array [0] = 0 | ||
| 2496 | |||
| 2497 | ; | ||
| 2498 | return 0; | ||
| 2499 | } | ||
| 2500 | _ACEOF | ||
| 2501 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2502 | ac_lo=0 ac_mid=0 | ||
| 2503 | while :; do | ||
| 2504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2505 | /* end confdefs.h. */ | ||
| 2506 | $4 | ||
| 2507 | int | ||
| 2508 | main () | ||
| 2509 | { | ||
| 2510 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
| 2511 | test_array [0] = 0 | ||
| 2512 | |||
| 2513 | ; | ||
| 2514 | return 0; | ||
| 2515 | } | ||
| 2516 | _ACEOF | ||
| 2517 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2518 | ac_hi=$ac_mid; break | ||
| 2519 | else | ||
| 2520 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
| 2521 | if test $ac_lo -le $ac_mid; then | ||
| 2522 | ac_lo= ac_hi= | ||
| 2523 | break | ||
| 2524 | fi | ||
| 2525 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
| 2526 | fi | ||
| 2527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2528 | done | ||
| 2529 | else | ||
| 2530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2531 | /* end confdefs.h. */ | ||
| 2532 | $4 | ||
| 2533 | int | ||
| 2534 | main () | ||
| 2535 | { | ||
| 2536 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
| 2537 | test_array [0] = 0 | ||
| 2538 | |||
| 2539 | ; | ||
| 2540 | return 0; | ||
| 2541 | } | ||
| 2542 | _ACEOF | ||
| 2543 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2544 | ac_hi=-1 ac_mid=-1 | ||
| 2545 | while :; do | ||
| 2546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2547 | /* end confdefs.h. */ | ||
| 2548 | $4 | ||
| 2549 | int | ||
| 2550 | main () | ||
| 2551 | { | ||
| 2552 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
| 2553 | test_array [0] = 0 | ||
| 2554 | |||
| 2555 | ; | ||
| 2556 | return 0; | ||
| 2557 | } | ||
| 2558 | _ACEOF | ||
| 2559 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2560 | ac_lo=$ac_mid; break | ||
| 2561 | else | ||
| 2562 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
| 2563 | if test $ac_mid -le $ac_hi; then | ||
| 2564 | ac_lo= ac_hi= | ||
| 2565 | break | ||
| 2566 | fi | ||
| 2567 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
| 2568 | fi | ||
| 2569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2570 | done | ||
| 2571 | else | ||
| 2572 | ac_lo= ac_hi= | ||
| 2573 | fi | ||
| 2574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2575 | fi | ||
| 2576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2577 | # Binary search between lo and hi bounds. | ||
| 2578 | while test "x$ac_lo" != "x$ac_hi"; do | ||
| 2579 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
| 2580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2581 | /* end confdefs.h. */ | ||
| 2582 | $4 | ||
| 2583 | int | ||
| 2584 | main () | ||
| 2585 | { | ||
| 2586 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
| 2587 | test_array [0] = 0 | ||
| 2588 | |||
| 2589 | ; | ||
| 2590 | return 0; | ||
| 2591 | } | ||
| 2592 | _ACEOF | ||
| 2593 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2594 | ac_hi=$ac_mid | ||
| 2595 | else | ||
| 2596 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
| 2597 | fi | ||
| 2598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2599 | done | ||
| 2600 | case $ac_lo in #(( | ||
| 2601 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
| 2602 | '') ac_retval=1 ;; | ||
| 2603 | esac | ||
| 2604 | else | ||
| 2605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2606 | /* end confdefs.h. */ | ||
| 2607 | $4 | ||
| 2608 | static long int longval () { return $2; } | ||
| 2609 | static unsigned long int ulongval () { return $2; } | ||
| 2610 | #include <stdio.h> | ||
| 2611 | #include <stdlib.h> | ||
| 2612 | int | ||
| 2613 | main () | ||
| 2614 | { | ||
| 2615 | |||
| 2616 | FILE *f = fopen ("conftest.val", "w"); | ||
| 2617 | if (! f) | ||
| 2618 | return 1; | ||
| 2619 | if (($2) < 0) | ||
| 2620 | { | ||
| 2621 | long int i = longval (); | ||
| 2622 | if (i != ($2)) | ||
| 2623 | return 1; | ||
| 2624 | fprintf (f, "%ld", i); | ||
| 2625 | } | ||
| 2626 | else | ||
| 2627 | { | ||
| 2628 | unsigned long int i = ulongval (); | ||
| 2629 | if (i != ($2)) | ||
| 2630 | return 1; | ||
| 2631 | fprintf (f, "%lu", i); | ||
| 2632 | } | ||
| 2633 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
| 2634 | on some platforms. */ | ||
| 2635 | return ferror (f) || fclose (f) != 0; | ||
| 2636 | |||
| 2637 | ; | ||
| 2638 | return 0; | ||
| 2639 | } | ||
| 2640 | _ACEOF | ||
| 2641 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 2642 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
| 2643 | else | ||
| 2644 | ac_retval=1 | ||
| 2645 | fi | ||
| 2646 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 2647 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 2648 | rm -f conftest.val | ||
| 2649 | |||
| 2650 | fi | ||
| 2651 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
| 2652 | as_fn_set_status $ac_retval | ||
| 2653 | |||
| 2654 | } # ac_fn_c_compute_int | ||
| 2655 | cat >config.log <<_ACEOF | ||
| 2656 | This file contains any messages produced by compilers while | ||
| 2657 | running configure, to aid debugging if configure makes a mistake. | ||
| 2658 | |||
| 2659 | It was created by emacs $as_me 24.0.50, which was | ||
| 2660 | generated by GNU Autoconf 2.65. Invocation command line was | ||
| 2661 | |||
| 2662 | $ $0 $@ | ||
| 2663 | |||
| 2664 | _ACEOF | ||
| 2665 | exec 5>>config.log | ||
| 2666 | { | ||
| 2667 | cat <<_ASUNAME | ||
| 2668 | ## --------- ## | ||
| 2669 | ## Platform. ## | ||
| 2670 | ## --------- ## | ||
| 2671 | |||
| 2672 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 2673 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
| 2674 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
| 2675 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
| 2676 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
| 2677 | |||
| 2678 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
| 2679 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
| 2680 | |||
| 2681 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
| 2682 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
| 2683 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
| 2684 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
| 2685 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
| 2686 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
| 2687 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
| 2688 | |||
| 2689 | _ASUNAME | ||
| 2690 | |||
| 2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2692 | for as_dir in $PATH | ||
| 2693 | do | ||
| 2694 | IFS=$as_save_IFS | ||
| 2695 | test -z "$as_dir" && as_dir=. | ||
| 2696 | $as_echo "PATH: $as_dir" | ||
| 2697 | done | ||
| 2698 | IFS=$as_save_IFS | ||
| 2699 | |||
| 2700 | } >&5 | ||
| 2701 | |||
| 2702 | cat >&5 <<_ACEOF | ||
| 2703 | |||
| 2704 | |||
| 2705 | ## ----------- ## | ||
| 2706 | ## Core tests. ## | ||
| 2707 | ## ----------- ## | ||
| 2708 | |||
| 2709 | _ACEOF | ||
| 2710 | |||
| 2711 | |||
| 2712 | # Keep a trace of the command line. | ||
| 2713 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
| 2714 | # Strip out --silent because we don't want to record it for future runs. | ||
| 2715 | # Also quote any args containing shell meta-characters. | ||
| 2716 | # Make two passes to allow for proper duplicate-argument suppression. | ||
| 2717 | ac_configure_args= | ||
| 2718 | ac_configure_args0= | ||
| 2719 | ac_configure_args1= | ||
| 2720 | ac_must_keep_next=false | ||
| 2721 | for ac_pass in 1 2 | ||
| 2722 | do | ||
| 2723 | for ac_arg | ||
| 2724 | do | ||
| 2725 | case $ac_arg in | ||
| 2726 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
| 2727 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 2728 | | -silent | --silent | --silen | --sile | --sil) | ||
| 2729 | continue ;; | ||
| 2730 | *\'*) | ||
| 2731 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 2732 | esac | ||
| 2733 | case $ac_pass in | ||
| 2734 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
| 2735 | 2) | ||
| 2736 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
| 2737 | if test $ac_must_keep_next = true; then | ||
| 2738 | ac_must_keep_next=false # Got value, back to normal. | ||
| 2739 | else | ||
| 2740 | case $ac_arg in | ||
| 2741 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
| 2742 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
| 2743 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
| 2744 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
| 2745 | case "$ac_configure_args0 " in | ||
| 2746 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
| 2747 | esac | ||
| 2748 | ;; | ||
| 2749 | -* ) ac_must_keep_next=true ;; | ||
| 2750 | esac | ||
| 2751 | fi | ||
| 2752 | as_fn_append ac_configure_args " '$ac_arg'" | ||
| 2753 | ;; | ||
| 2754 | esac | ||
| 2755 | done | ||
| 2756 | done | ||
| 2757 | { ac_configure_args0=; unset ac_configure_args0;} | ||
| 2758 | { ac_configure_args1=; unset ac_configure_args1;} | ||
| 2759 | |||
| 2760 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
| 2761 | # config.log. We remove comments because anyway the quotes in there | ||
| 2762 | # would cause problems or look ugly. | ||
| 2763 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
| 2764 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
| 2765 | trap 'exit_status=$? | ||
| 2766 | # Save into config.log some information that might help in debugging. | ||
| 2767 | { | ||
| 2768 | echo | ||
| 2769 | |||
| 2770 | cat <<\_ASBOX | ||
| 2771 | ## ---------------- ## | ||
| 2772 | ## Cache variables. ## | ||
| 2773 | ## ---------------- ## | ||
| 2774 | _ASBOX | ||
| 2775 | echo | ||
| 2776 | # The following way of writing the cache mishandles newlines in values, | ||
| 2777 | ( | ||
| 2778 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
| 2779 | eval ac_val=\$$ac_var | ||
| 2780 | case $ac_val in #( | ||
| 2781 | *${as_nl}*) | ||
| 2782 | case $ac_var in #( | ||
| 2783 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
| 2784 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
| 2785 | esac | ||
| 2786 | case $ac_var in #( | ||
| 2787 | _ | IFS | as_nl) ;; #( | ||
| 2788 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
| 2789 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
| 2790 | esac ;; | ||
| 2791 | esac | ||
| 2792 | done | ||
| 2793 | (set) 2>&1 | | ||
| 2794 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
| 2795 | *${as_nl}ac_space=\ *) | ||
| 2796 | sed -n \ | ||
| 2797 | "s/'\''/'\''\\\\'\'''\''/g; | ||
| 2798 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
| 2799 | ;; #( | ||
| 2800 | *) | ||
| 2801 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
| 2802 | ;; | ||
| 2803 | esac | | ||
| 2804 | sort | ||
| 2805 | ) | ||
| 2806 | echo | ||
| 2807 | |||
| 2808 | cat <<\_ASBOX | ||
| 2809 | ## ----------------- ## | ||
| 2810 | ## Output variables. ## | ||
| 2811 | ## ----------------- ## | ||
| 2812 | _ASBOX | ||
| 2813 | echo | ||
| 2814 | for ac_var in $ac_subst_vars | ||
| 2815 | do | ||
| 2816 | eval ac_val=\$$ac_var | ||
| 2817 | case $ac_val in | ||
| 2818 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
| 2819 | esac | ||
| 2820 | $as_echo "$ac_var='\''$ac_val'\''" | ||
| 2821 | done | sort | ||
| 2822 | echo | ||
| 2823 | |||
| 2824 | if test -n "$ac_subst_files"; then | ||
| 2825 | cat <<\_ASBOX | ||
| 2826 | ## ------------------- ## | ||
| 2827 | ## File substitutions. ## | ||
| 2828 | ## ------------------- ## | ||
| 2829 | _ASBOX | ||
| 2830 | echo | ||
| 2831 | for ac_var in $ac_subst_files | ||
| 2832 | do | ||
| 2833 | eval ac_val=\$$ac_var | ||
| 2834 | case $ac_val in | ||
| 2835 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
| 2836 | esac | ||
| 2837 | $as_echo "$ac_var='\''$ac_val'\''" | ||
| 2838 | done | sort | ||
| 2839 | echo | ||
| 2840 | fi | ||
| 2841 | |||
| 2842 | if test -s confdefs.h; then | ||
| 2843 | cat <<\_ASBOX | ||
| 2844 | ## ----------- ## | ||
| 2845 | ## confdefs.h. ## | ||
| 2846 | ## ----------- ## | ||
| 2847 | _ASBOX | ||
| 2848 | echo | ||
| 2849 | cat confdefs.h | ||
| 2850 | echo | ||
| 2851 | fi | ||
| 2852 | test "$ac_signal" != 0 && | ||
| 2853 | $as_echo "$as_me: caught signal $ac_signal" | ||
| 2854 | $as_echo "$as_me: exit $exit_status" | ||
| 2855 | } >&5 | ||
| 2856 | rm -f core *.core core.conftest.* && | ||
| 2857 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
| 2858 | exit $exit_status | ||
| 2859 | ' 0 | ||
| 2860 | for ac_signal in 1 2 13 15; do | ||
| 2861 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
| 2862 | done | ||
| 2863 | ac_signal=0 | ||
| 2864 | |||
| 2865 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
| 2866 | rm -f -r conftest* confdefs.h | ||
| 2867 | |||
| 2868 | $as_echo "/* confdefs.h */" > confdefs.h | ||
| 2869 | |||
| 2870 | # Predefined preprocessor variables. | ||
| 2871 | |||
| 2872 | cat >>confdefs.h <<_ACEOF | ||
| 2873 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
| 2874 | _ACEOF | ||
| 2875 | |||
| 2876 | cat >>confdefs.h <<_ACEOF | ||
| 2877 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
| 2878 | _ACEOF | ||
| 2879 | |||
| 2880 | cat >>confdefs.h <<_ACEOF | ||
| 2881 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
| 2882 | _ACEOF | ||
| 2883 | |||
| 2884 | cat >>confdefs.h <<_ACEOF | ||
| 2885 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
| 2886 | _ACEOF | ||
| 2887 | |||
| 2888 | cat >>confdefs.h <<_ACEOF | ||
| 2889 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
| 2890 | _ACEOF | ||
| 2891 | |||
| 2892 | cat >>confdefs.h <<_ACEOF | ||
| 2893 | #define PACKAGE_URL "$PACKAGE_URL" | ||
| 2894 | _ACEOF | ||
| 2895 | |||
| 2896 | |||
| 2897 | # Let the site file select an alternate cache file if it wants to. | ||
| 2898 | # Prefer an explicitly selected file to automatically selected ones. | ||
| 2899 | ac_site_file1=NONE | ||
| 2900 | ac_site_file2=NONE | ||
| 2901 | if test -n "$CONFIG_SITE"; then | ||
| 2902 | ac_site_file1=$CONFIG_SITE | ||
| 2903 | elif test "x$prefix" != xNONE; then | ||
| 2904 | ac_site_file1=$prefix/share/config.site | ||
| 2905 | ac_site_file2=$prefix/etc/config.site | ||
| 2906 | else | ||
| 2907 | ac_site_file1=$ac_default_prefix/share/config.site | ||
| 2908 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
| 2909 | fi | ||
| 2910 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
| 2911 | do | ||
| 2912 | test "x$ac_site_file" = xNONE && continue | ||
| 2913 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
| 2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
| 2915 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
| 2916 | sed 's/^/| /' "$ac_site_file" >&5 | ||
| 2917 | . "$ac_site_file" | ||
| 2918 | fi | ||
| 2919 | done | ||
| 2920 | |||
| 2921 | if test -r "$cache_file"; then | ||
| 2922 | # Some versions of bash will fail to source /dev/null (special files | ||
| 2923 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
| 2924 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
| 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
| 2926 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
| 2927 | case $cache_file in | ||
| 2928 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
| 2929 | *) . "./$cache_file";; | ||
| 2930 | esac | ||
| 2931 | fi | ||
| 2932 | else | ||
| 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
| 2934 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
| 2935 | >$cache_file | ||
| 2936 | fi | ||
| 2937 | |||
| 2938 | as_fn_append ac_header_list " stdlib.h" | ||
| 2939 | as_fn_append ac_header_list " unistd.h" | ||
| 2940 | as_fn_append ac_header_list " sys/param.h" | ||
| 2941 | gl_getopt_required=GNU | ||
| 2942 | as_fn_append ac_header_list " getopt.h" | ||
| 2943 | as_fn_append ac_func_list " lstat" | ||
| 2944 | as_fn_append ac_func_list " alarm" | ||
| 2945 | as_fn_append ac_func_list " readlink" | ||
| 2946 | as_fn_append ac_header_list " wchar.h" | ||
| 2947 | as_fn_append ac_header_list " stdint.h" | ||
| 2948 | as_fn_append ac_func_list " tzset" | ||
| 2949 | as_fn_append ac_func_list " symlink" | ||
| 2950 | as_fn_append ac_header_list " sys/stat.h" | ||
| 2951 | as_fn_append ac_header_list " sys/time.h" | ||
| 2952 | as_fn_append ac_func_list " localtime_r" | ||
| 2953 | # Check that the precious variables saved in the cache have kept the same | ||
| 2954 | # value. | ||
| 2955 | ac_cache_corrupted=false | ||
| 2956 | for ac_var in $ac_precious_vars; do | ||
| 2957 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
| 2958 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
| 2959 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
| 2960 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
| 2961 | case $ac_old_set,$ac_new_set in | ||
| 2962 | set,) | ||
| 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
| 2964 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
| 2965 | ac_cache_corrupted=: ;; | ||
| 2966 | ,set) | ||
| 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
| 2968 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
| 2969 | ac_cache_corrupted=: ;; | ||
| 2970 | ,);; | ||
| 2971 | *) | ||
| 2972 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
| 2973 | # differences in whitespace do not lead to failure. | ||
| 2974 | ac_old_val_w=`echo x $ac_old_val` | ||
| 2975 | ac_new_val_w=`echo x $ac_new_val` | ||
| 2976 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
| 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
| 2978 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
| 2979 | ac_cache_corrupted=: | ||
| 2980 | else | ||
| 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
| 2982 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
| 2983 | eval $ac_var=\$ac_old_val | ||
| 2984 | fi | ||
| 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
| 2986 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
| 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
| 2988 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
| 2989 | fi;; | ||
| 2990 | esac | ||
| 2991 | # Pass precious variables to config.status. | ||
| 2992 | if test "$ac_new_set" = set; then | ||
| 2993 | case $ac_new_val in | ||
| 2994 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 2995 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
| 2996 | esac | ||
| 2997 | case " $ac_configure_args " in | ||
| 2998 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
| 2999 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
| 3000 | esac | ||
| 3001 | fi | ||
| 3002 | done | ||
| 3003 | if $ac_cache_corrupted; then | ||
| 3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 3005 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
| 3007 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
| 3008 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
| 3009 | fi | ||
| 3010 | ## -------------------- ## | ||
| 3011 | ## Main body of script. ## | ||
| 3012 | ## -------------------- ## | ||
| 3013 | |||
| 3014 | ac_ext=c | ||
| 3015 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 3019 | |||
| 3020 | |||
| 3021 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | ||
| 3022 | |||
| 3023 | |||
| 3024 | am__api_version='1.11' | ||
| 3025 | |||
| 3026 | ac_aux_dir= | ||
| 3027 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
| 3028 | for ac_t in install-sh install.sh shtool; do | ||
| 3029 | if test -f "$ac_dir/$ac_t"; then | ||
| 3030 | ac_aux_dir=$ac_dir | ||
| 3031 | ac_install_sh="$ac_aux_dir/$ac_t -c" | ||
| 3032 | break 2 | ||
| 3033 | fi | ||
| 3034 | done | ||
| 3035 | done | ||
| 3036 | if test -z "$ac_aux_dir"; then | ||
| 3037 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
| 3038 | fi | ||
| 3039 | |||
| 3040 | # These three variables are undocumented and unsupported, | ||
| 3041 | # and are intended to be withdrawn in a future Autoconf release. | ||
| 3042 | # They can cause serious problems if a builder's source tree is in a directory | ||
| 3043 | # whose full name contains unusual characters. | ||
| 3044 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
| 3045 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
| 3046 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
| 3047 | |||
| 3048 | |||
| 3049 | # Find a good install program. We prefer a C program (faster), | ||
| 3050 | # so one script is as good as another. But avoid the broken or | ||
| 3051 | # incompatible versions: | ||
| 3052 | # SysV /etc/install, /usr/sbin/install | ||
| 3053 | # SunOS /usr/etc/install | ||
| 3054 | # IRIX /sbin/install | ||
| 3055 | # AIX /bin/install | ||
| 3056 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
| 3057 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
| 3058 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
| 3059 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
| 3060 | # OS/2's system install, which has a completely different semantic | ||
| 3061 | # ./install, which can be erroneously created by make from ./install.sh. | ||
| 3062 | # Reject install programs that cannot install multiple files. | ||
| 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
| 3064 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
| 3065 | if test -z "$INSTALL"; then | ||
| 3066 | if test "${ac_cv_path_install+set}" = set; then : | ||
| 3067 | $as_echo_n "(cached) " >&6 | ||
| 3068 | else | ||
| 3069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3070 | for as_dir in $PATH | ||
| 3071 | do | ||
| 3072 | IFS=$as_save_IFS | ||
| 3073 | test -z "$as_dir" && as_dir=. | ||
| 3074 | # Account for people who put trailing slashes in PATH elements. | ||
| 3075 | case $as_dir/ in #(( | ||
| 3076 | ./ | .// | /[cC]/* | \ | ||
| 3077 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
| 3078 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
| 3079 | /usr/ucb/* ) ;; | ||
| 3080 | *) | ||
| 3081 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
| 3082 | # Don't use installbsd from OSF since it installs stuff as root | ||
| 3083 | # by default. | ||
| 3084 | for ac_prog in ginstall scoinst install; do | ||
| 3085 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3086 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
| 3087 | if test $ac_prog = install && | ||
| 3088 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
| 3089 | # AIX install. It has an incompatible calling convention. | ||
| 3090 | : | ||
| 3091 | elif test $ac_prog = install && | ||
| 3092 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
| 3093 | # program-specific install script used by HP pwplus--don't use. | ||
| 3094 | : | ||
| 3095 | else | ||
| 3096 | rm -rf conftest.one conftest.two conftest.dir | ||
| 3097 | echo one > conftest.one | ||
| 3098 | echo two > conftest.two | ||
| 3099 | mkdir conftest.dir | ||
| 3100 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
| 3101 | test -s conftest.one && test -s conftest.two && | ||
| 3102 | test -s conftest.dir/conftest.one && | ||
| 3103 | test -s conftest.dir/conftest.two | ||
| 3104 | then | ||
| 3105 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
| 3106 | break 3 | ||
| 3107 | fi | ||
| 3108 | fi | ||
| 3109 | fi | ||
| 3110 | done | ||
| 3111 | done | ||
| 3112 | ;; | ||
| 3113 | esac | ||
| 3114 | |||
| 3115 | done | ||
| 3116 | IFS=$as_save_IFS | ||
| 3117 | |||
| 3118 | rm -rf conftest.one conftest.two conftest.dir | ||
| 3119 | |||
| 3120 | fi | ||
| 3121 | if test "${ac_cv_path_install+set}" = set; then | ||
| 3122 | INSTALL=$ac_cv_path_install | ||
| 3123 | else | ||
| 3124 | # As a last resort, use the slow shell script. Don't cache a | ||
| 3125 | # value for INSTALL within a source directory, because that will | ||
| 3126 | # break other packages using the cache if that directory is | ||
| 3127 | # removed, or if the value is a relative name. | ||
| 3128 | INSTALL=$ac_install_sh | ||
| 3129 | fi | ||
| 3130 | fi | ||
| 3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
| 3132 | $as_echo "$INSTALL" >&6; } | ||
| 3133 | |||
| 3134 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
| 3135 | # It thinks the first close brace ends the variable substitution. | ||
| 3136 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
| 3137 | |||
| 3138 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
| 3139 | |||
| 3140 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
| 3141 | |||
| 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
| 3143 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
| 3144 | # Just in case | ||
| 3145 | sleep 1 | ||
| 3146 | echo timestamp > conftest.file | ||
| 3147 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
| 3148 | # name. Accept space and tab only in the latter. | ||
| 3149 | am_lf=' | ||
| 3150 | ' | ||
| 3151 | case `pwd` in | ||
| 3152 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
| 3153 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | ||
| 3154 | esac | ||
| 3155 | case $srcdir in | ||
| 3156 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
| 3157 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | ||
| 3158 | esac | ||
| 3159 | |||
| 3160 | # Do `set' in a subshell so we don't clobber the current shell's | ||
| 3161 | # arguments. Must try -L first in case configure is actually a | ||
| 3162 | # symlink; some systems play weird games with the mod time of symlinks | ||
| 3163 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
| 3164 | # directory). | ||
| 3165 | if ( | ||
| 3166 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
| 3167 | if test "$*" = "X"; then | ||
| 3168 | # -L didn't work. | ||
| 3169 | set X `ls -t "$srcdir/configure" conftest.file` | ||
| 3170 | fi | ||
| 3171 | rm -f conftest.file | ||
| 3172 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
| 3173 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
| 3174 | |||
| 3175 | # If neither matched, then we have a broken ls. This can happen | ||
| 3176 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
| 3177 | # broken ls alias from the environment. This has actually | ||
| 3178 | # happened. Such a system could not be considered "sane". | ||
| 3179 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | ||
| 3180 | alias in your environment" "$LINENO" 5 | ||
| 3181 | fi | ||
| 3182 | |||
| 3183 | test "$2" = conftest.file | ||
| 3184 | ) | ||
| 3185 | then | ||
| 3186 | # Ok. | ||
| 3187 | : | ||
| 3188 | else | ||
| 3189 | as_fn_error "newly created file is older than distributed files! | ||
| 3190 | Check your system clock" "$LINENO" 5 | ||
| 3191 | fi | ||
| 3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 3193 | $as_echo "yes" >&6; } | ||
| 3194 | test "$program_prefix" != NONE && | ||
| 3195 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
| 3196 | # Use a double $ so make ignores it. | ||
| 3197 | test "$program_suffix" != NONE && | ||
| 3198 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
| 3199 | # Double any \ or $. | ||
| 3200 | # By default was `s,x,x', remove it if useless. | ||
| 3201 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
| 3202 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
| 3203 | |||
| 3204 | # expand $ac_aux_dir to an absolute path | ||
| 3205 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
| 3206 | |||
| 3207 | if test x"${MISSING+set}" != xset; then | ||
| 3208 | case $am_aux_dir in | ||
| 3209 | *\ * | *\ *) | ||
| 3210 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
| 3211 | *) | ||
| 3212 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
| 3213 | esac | ||
| 3214 | fi | ||
| 3215 | # Use eval to expand $SHELL | ||
| 3216 | if eval "$MISSING --run true"; then | ||
| 3217 | am_missing_run="$MISSING --run " | ||
| 3218 | else | ||
| 3219 | am_missing_run= | ||
| 3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
| 3221 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
| 3222 | fi | ||
| 3223 | |||
| 3224 | if test x"${install_sh}" != xset; then | ||
| 3225 | case $am_aux_dir in | ||
| 3226 | *\ * | *\ *) | ||
| 3227 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
| 3228 | *) | ||
| 3229 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
| 3230 | esac | ||
| 3231 | fi | ||
| 3232 | |||
| 3233 | # Installed binaries are usually stripped using `strip' when the user | ||
| 3234 | # run `make install-strip'. However `strip' might not be the right | ||
| 3235 | # tool to use in cross-compilation environments, therefore Automake | ||
| 3236 | # will honor the `STRIP' environment variable to overrule this program. | ||
| 3237 | if test "$cross_compiling" != no; then | ||
| 3238 | if test -n "$ac_tool_prefix"; then | ||
| 3239 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
| 3240 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
| 3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 3242 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 3243 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
| 3244 | $as_echo_n "(cached) " >&6 | ||
| 3245 | else | ||
| 3246 | if test -n "$STRIP"; then | ||
| 3247 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
| 3248 | else | ||
| 3249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3250 | for as_dir in $PATH | ||
| 3251 | do | ||
| 3252 | IFS=$as_save_IFS | ||
| 3253 | test -z "$as_dir" && as_dir=. | ||
| 3254 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 3256 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
| 3257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3258 | break 2 | ||
| 3259 | fi | ||
| 3260 | done | ||
| 3261 | done | ||
| 3262 | IFS=$as_save_IFS | ||
| 3263 | |||
| 3264 | fi | ||
| 3265 | fi | ||
| 3266 | STRIP=$ac_cv_prog_STRIP | ||
| 3267 | if test -n "$STRIP"; then | ||
| 3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
| 3269 | $as_echo "$STRIP" >&6; } | ||
| 3270 | else | ||
| 3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 3272 | $as_echo "no" >&6; } | ||
| 3273 | fi | ||
| 3274 | |||
| 3275 | |||
| 3276 | fi | ||
| 3277 | if test -z "$ac_cv_prog_STRIP"; then | ||
| 3278 | ac_ct_STRIP=$STRIP | ||
| 3279 | # Extract the first word of "strip", so it can be a program name with args. | ||
| 3280 | set dummy strip; ac_word=$2 | ||
| 3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 3282 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 3283 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
| 3284 | $as_echo_n "(cached) " >&6 | ||
| 3285 | else | ||
| 3286 | if test -n "$ac_ct_STRIP"; then | ||
| 3287 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
| 3288 | else | ||
| 3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3290 | for as_dir in $PATH | ||
| 3291 | do | ||
| 3292 | IFS=$as_save_IFS | ||
| 3293 | test -z "$as_dir" && as_dir=. | ||
| 3294 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 3296 | ac_cv_prog_ac_ct_STRIP="strip" | ||
| 3297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3298 | break 2 | ||
| 3299 | fi | ||
| 3300 | done | ||
| 3301 | done | ||
| 3302 | IFS=$as_save_IFS | ||
| 3303 | |||
| 3304 | fi | ||
| 3305 | fi | ||
| 3306 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
| 3307 | if test -n "$ac_ct_STRIP"; then | ||
| 3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
| 3309 | $as_echo "$ac_ct_STRIP" >&6; } | ||
| 3310 | else | ||
| 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 3312 | $as_echo "no" >&6; } | ||
| 3313 | fi | ||
| 3314 | |||
| 3315 | if test "x$ac_ct_STRIP" = x; then | ||
| 3316 | STRIP=":" | ||
| 3317 | else | ||
| 3318 | case $cross_compiling:$ac_tool_warned in | ||
| 3319 | yes:) | ||
| 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
| 3321 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
| 3322 | ac_tool_warned=yes ;; | ||
| 3323 | esac | ||
| 3324 | STRIP=$ac_ct_STRIP | ||
| 3325 | fi | ||
| 3326 | else | ||
| 3327 | STRIP="$ac_cv_prog_STRIP" | ||
| 3328 | fi | ||
| 3329 | |||
| 3330 | fi | ||
| 3331 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
| 3332 | |||
| 3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
| 3334 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
| 3335 | if test -z "$MKDIR_P"; then | ||
| 3336 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
| 3337 | $as_echo_n "(cached) " >&6 | ||
| 3338 | else | ||
| 3339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3340 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
| 3341 | do | ||
| 3342 | IFS=$as_save_IFS | ||
| 3343 | test -z "$as_dir" && as_dir=. | ||
| 3344 | for ac_prog in mkdir gmkdir; do | ||
| 3345 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3346 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
| 3347 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
| 3348 | 'mkdir (GNU coreutils) '* | \ | ||
| 3349 | 'mkdir (coreutils) '* | \ | ||
| 3350 | 'mkdir (fileutils) '4.1*) | ||
| 3351 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
| 3352 | break 3;; | ||
| 3353 | esac | ||
| 3354 | done | ||
| 3355 | done | ||
| 3356 | done | ||
| 3357 | IFS=$as_save_IFS | ||
| 3358 | |||
| 3359 | fi | ||
| 3360 | |||
| 3361 | test -d ./--version && rmdir ./--version | ||
| 3362 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
| 3363 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
| 3364 | else | ||
| 3365 | # As a last resort, use the slow shell script. Don't cache a | ||
| 3366 | # value for MKDIR_P within a source directory, because that will | ||
| 3367 | # break other packages using the cache if that directory is | ||
| 3368 | # removed, or if the value is a relative name. | ||
| 3369 | MKDIR_P="$ac_install_sh -d" | ||
| 3370 | fi | ||
| 3371 | fi | ||
| 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
| 3373 | $as_echo "$MKDIR_P" >&6; } | ||
| 3374 | |||
| 3375 | |||
| 3376 | mkdir_p="$MKDIR_P" | ||
| 3377 | case $mkdir_p in | ||
| 3378 | [\\/$]* | ?:[\\/]*) ;; | ||
| 3379 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
| 3380 | esac | ||
| 3381 | |||
| 3382 | for ac_prog in gawk mawk nawk awk | ||
| 3383 | do | ||
| 3384 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 3385 | set dummy $ac_prog; ac_word=$2 | ||
| 3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 3387 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 3388 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
| 3389 | $as_echo_n "(cached) " >&6 | ||
| 3390 | else | ||
| 3391 | if test -n "$AWK"; then | ||
| 3392 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
| 3393 | else | ||
| 3394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3395 | for as_dir in $PATH | ||
| 3396 | do | ||
| 3397 | IFS=$as_save_IFS | ||
| 3398 | test -z "$as_dir" && as_dir=. | ||
| 3399 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 3401 | ac_cv_prog_AWK="$ac_prog" | ||
| 3402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3403 | break 2 | ||
| 3404 | fi | ||
| 3405 | done | ||
| 3406 | done | ||
| 3407 | IFS=$as_save_IFS | ||
| 3408 | |||
| 3409 | fi | ||
| 3410 | fi | ||
| 3411 | AWK=$ac_cv_prog_AWK | ||
| 3412 | if test -n "$AWK"; then | ||
| 3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
| 3414 | $as_echo "$AWK" >&6; } | ||
| 3415 | else | ||
| 3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 3417 | $as_echo "no" >&6; } | ||
| 3418 | fi | ||
| 3419 | |||
| 3420 | |||
| 3421 | test -n "$AWK" && break | ||
| 3422 | done | ||
| 3423 | |||
| 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
| 3425 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
| 3426 | set x ${MAKE-make} | ||
| 3427 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
| 3428 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 3429 | $as_echo_n "(cached) " >&6 | ||
| 3430 | else | ||
| 3431 | cat >conftest.make <<\_ACEOF | ||
| 3432 | SHELL = /bin/sh | ||
| 3433 | all: | ||
| 3434 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
| 3435 | _ACEOF | ||
| 3436 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
| 3437 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
| 3438 | *@@@%%%=?*=@@@%%%*) | ||
| 3439 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
| 3440 | *) | ||
| 3441 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
| 3442 | esac | ||
| 3443 | rm -f conftest.make | ||
| 3444 | fi | ||
| 3445 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
| 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 3447 | $as_echo "yes" >&6; } | ||
| 3448 | SET_MAKE= | ||
| 3449 | else | ||
| 3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 3451 | $as_echo "no" >&6; } | ||
| 3452 | SET_MAKE="MAKE=${MAKE-make}" | ||
| 3453 | fi | ||
| 3454 | |||
| 3455 | rm -rf .tst 2>/dev/null | ||
| 3456 | mkdir .tst 2>/dev/null | ||
| 3457 | if test -d .tst; then | ||
| 3458 | am__leading_dot=. | ||
| 3459 | else | ||
| 3460 | am__leading_dot=_ | ||
| 3461 | fi | ||
| 3462 | rmdir .tst 2>/dev/null | ||
| 3463 | |||
| 3464 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
| 3465 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
| 3466 | # is not polluted with repeated "-I." | ||
| 3467 | am__isrc=' -I$(srcdir)' | ||
| 3468 | # test to see if srcdir already configured | ||
| 3469 | if test -f $srcdir/config.status; then | ||
| 3470 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
| 3471 | fi | ||
| 3472 | fi | ||
| 3473 | |||
| 3474 | # test whether we have cygpath | ||
| 3475 | if test -z "$CYGPATH_W"; then | ||
| 3476 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
| 3477 | CYGPATH_W='cygpath -w' | ||
| 3478 | else | ||
| 3479 | CYGPATH_W=echo | ||
| 3480 | fi | ||
| 3481 | fi | ||
| 3482 | |||
| 3483 | |||
| 3484 | # Define the identity of the package. | ||
| 3485 | PACKAGE='emacs' | ||
| 3486 | VERSION='24.0.50' | ||
| 3487 | |||
| 3488 | |||
| 3489 | cat >>confdefs.h <<_ACEOF | ||
| 3490 | #define PACKAGE "$PACKAGE" | ||
| 3491 | _ACEOF | ||
| 3492 | |||
| 3493 | |||
| 3494 | cat >>confdefs.h <<_ACEOF | ||
| 3495 | #define VERSION "$VERSION" | ||
| 3496 | _ACEOF | ||
| 3497 | |||
| 3498 | # Some tools Automake needs. | ||
| 3499 | |||
| 3500 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
| 3501 | |||
| 3502 | |||
| 3503 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
| 3504 | |||
| 3505 | |||
| 3506 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
| 3507 | |||
| 3508 | |||
| 3509 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
| 3510 | |||
| 3511 | |||
| 3512 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
| 3513 | |||
| 3514 | # We need awk for the "check" target. The system "awk" is bad on | ||
| 3515 | # some platforms. | ||
| 3516 | # Always define AMTAR for backward compatibility. | ||
| 3517 | |||
| 3518 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
| 3519 | |||
| 3520 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
| 3521 | |||
| 3522 | |||
| 3523 | |||
| 3524 | |||
| 3525 | |||
| 3526 | |||
| 3527 | |||
| 3528 | |||
| 3529 | lispdir='${datadir}/emacs/${version}/lisp' | ||
| 3530 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | ||
| 3531 | '${datadir}/emacs/site-lisp' | ||
| 3532 | lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim' | ||
| 3533 | etcdir='${datadir}/emacs/${version}/etc' | ||
| 3534 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | ||
| 3535 | docdir='${datadir}/emacs/${version}/etc' | ||
| 3536 | gamedir='${localstatedir}/games/emacs' | ||
| 3537 | |||
| 3538 | |||
| 3539 | |||
| 3540 | |||
| 3541 | # Check whether --with-pop was given. | ||
| 3542 | if test "${with_pop+set}" = set; then : | ||
| 3543 | withval=$with_pop; | ||
| 3544 | else | ||
| 3545 | with_pop=yes | ||
| 3546 | fi | ||
| 3547 | |||
| 3548 | if test "$with_pop" = yes; then | ||
| 3549 | $as_echo "#define MAIL_USE_POP 1" >>confdefs.h | ||
| 3550 | |||
| 3551 | fi | ||
| 3552 | |||
| 3553 | |||
| 3554 | # Check whether --with-kerberos was given. | ||
| 3555 | if test "${with_kerberos+set}" = set; then : | ||
| 3556 | withval=$with_kerberos; | ||
| 3557 | else | ||
| 3558 | with_kerberos=no | ||
| 3559 | fi | ||
| 3560 | |||
| 3561 | if test "$with_kerberos" != no; then | ||
| 3562 | $as_echo "#define KERBEROS 1" >>confdefs.h | ||
| 3563 | |||
| 3564 | fi | ||
| 3565 | |||
| 3566 | |||
| 3567 | # Check whether --with-kerberos5 was given. | ||
| 3568 | if test "${with_kerberos5+set}" = set; then : | ||
| 3569 | withval=$with_kerberos5; | ||
| 3570 | else | ||
| 3571 | with_kerberos5=no | ||
| 3572 | fi | ||
| 3573 | |||
| 3574 | if test "${with_kerberos5}" != no; then | ||
| 3575 | if test "${with_kerberos}" = no; then | ||
| 3576 | with_kerberos=yes | ||
| 3577 | $as_echo "#define KERBEROS 1" >>confdefs.h | ||
| 3578 | |||
| 3579 | fi | ||
| 3580 | |||
| 3581 | $as_echo "#define KERBEROS5 1" >>confdefs.h | ||
| 3582 | |||
| 3583 | fi | ||
| 3584 | |||
| 3585 | |||
| 3586 | # Check whether --with-hesiod was given. | ||
| 3587 | if test "${with_hesiod+set}" = set; then : | ||
| 3588 | withval=$with_hesiod; | ||
| 3589 | else | ||
| 3590 | with_hesiod=no | ||
| 3591 | fi | ||
| 3592 | |||
| 3593 | if test "$with_hesiod" != no; then | ||
| 3594 | |||
| 3595 | $as_echo "#define HESIOD 1" >>confdefs.h | ||
| 3596 | |||
| 3597 | fi | ||
| 3598 | |||
| 3599 | |||
| 3600 | # Check whether --with-mmdf was given. | ||
| 3601 | if test "${with_mmdf+set}" = set; then : | ||
| 3602 | withval=$with_mmdf; | ||
| 3603 | else | ||
| 3604 | with_mmdf=no | ||
| 3605 | fi | ||
| 3606 | |||
| 3607 | if test "$with_mmdf" != no; then | ||
| 3608 | |||
| 3609 | $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h | ||
| 3610 | |||
| 3611 | fi | ||
| 3612 | |||
| 3613 | |||
| 3614 | # Check whether --with-mail-unlink was given. | ||
| 3615 | if test "${with_mail_unlink+set}" = set; then : | ||
| 3616 | withval=$with_mail_unlink; | ||
| 3617 | else | ||
| 3618 | with_mail_unlink=no | ||
| 3619 | fi | ||
| 3620 | |||
| 3621 | if test "$with_mail_unlink" != no; then | ||
| 3622 | |||
| 3623 | $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h | ||
| 3624 | |||
| 3625 | fi | ||
| 3626 | |||
| 3627 | |||
| 3628 | # Check whether --with-mailhost was given. | ||
| 3629 | if test "${with_mailhost+set}" = set; then : | ||
| 3630 | withval=$with_mailhost; | ||
| 3631 | cat >>confdefs.h <<_ACEOF | ||
| 3632 | #define MAILHOST "$withval" | ||
| 3633 | _ACEOF | ||
| 3634 | |||
| 3635 | fi | ||
| 3636 | |||
| 3637 | |||
| 3638 | |||
| 3639 | # Check whether --with-sound was given. | ||
| 3640 | if test "${with_sound+set}" = set; then : | ||
| 3641 | withval=$with_sound; | ||
| 3642 | else | ||
| 3643 | with_sound=yes | ||
| 3644 | fi | ||
| 3645 | |||
| 3646 | |||
| 3647 | |||
| 3648 | # Check whether --with-sync-input was given. | ||
| 3649 | if test "${with_sync_input+set}" = set; then : | ||
| 3650 | withval=$with_sync_input; | ||
| 3651 | else | ||
| 3652 | with_sync_input=yes | ||
| 3653 | fi | ||
| 3654 | |||
| 3655 | if test "$with_sync_input" = yes; then | ||
| 3656 | |||
| 3657 | $as_echo "#define SYNC_INPUT 1" >>confdefs.h | ||
| 3658 | |||
| 3659 | fi | ||
| 3660 | |||
| 3661 | |||
| 3662 | # Check whether --with-x-toolkit was given. | ||
| 3663 | if test "${with_x_toolkit+set}" = set; then : | ||
| 3664 | withval=$with_x_toolkit; case "${withval}" in | ||
| 3665 | y | ye | yes ) val=gtk ;; | ||
| 3666 | n | no ) val=no ;; | ||
| 3667 | l | lu | luc | luci | lucid ) val=lucid ;; | ||
| 3668 | a | at | ath | athe | athen | athena ) val=athena ;; | ||
| 3669 | m | mo | mot | moti | motif ) val=motif ;; | ||
| 3670 | g | gt | gtk ) val=gtk ;; | ||
| 3671 | gtk3 ) val=gtk3 ;; | ||
| 3672 | * ) | ||
| 3673 | as_fn_error "\`--with-x-toolkit=$withval' is invalid; | ||
| 3674 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or | ||
| 3675 | \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 | ||
| 3676 | ;; | ||
| 3677 | esac | ||
| 3678 | with_x_toolkit=$val | ||
| 3679 | |||
| 3680 | fi | ||
| 3681 | |||
| 3682 | |||
| 3683 | |||
| 3684 | # Check whether --with-xpm was given. | ||
| 3685 | if test "${with_xpm+set}" = set; then : | ||
| 3686 | withval=$with_xpm; | ||
| 3687 | else | ||
| 3688 | with_xpm=yes | ||
| 3689 | fi | ||
| 3690 | |||
| 3691 | |||
| 3692 | # Check whether --with-jpeg was given. | ||
| 3693 | if test "${with_jpeg+set}" = set; then : | ||
| 3694 | withval=$with_jpeg; | ||
| 3695 | else | ||
| 3696 | with_jpeg=yes | ||
| 3697 | fi | ||
| 3698 | |||
| 3699 | |||
| 3700 | # Check whether --with-tiff was given. | ||
| 3701 | if test "${with_tiff+set}" = set; then : | ||
| 3702 | withval=$with_tiff; | ||
| 3703 | else | ||
| 3704 | with_tiff=yes | ||
| 3705 | fi | ||
| 3706 | |||
| 3707 | |||
| 3708 | # Check whether --with-gif was given. | ||
| 3709 | if test "${with_gif+set}" = set; then : | ||
| 3710 | withval=$with_gif; | ||
| 3711 | else | ||
| 3712 | with_gif=yes | ||
| 3713 | fi | ||
| 3714 | |||
| 3715 | |||
| 3716 | # Check whether --with-png was given. | ||
| 3717 | if test "${with_png+set}" = set; then : | ||
| 3718 | withval=$with_png; | ||
| 3719 | else | ||
| 3720 | with_png=yes | ||
| 3721 | fi | ||
| 3722 | |||
| 3723 | |||
| 3724 | # Check whether --with-rsvg was given. | ||
| 3725 | if test "${with_rsvg+set}" = set; then : | ||
| 3726 | withval=$with_rsvg; | ||
| 3727 | else | ||
| 3728 | with_rsvg=yes | ||
| 3729 | fi | ||
| 3730 | |||
| 3731 | |||
| 3732 | # Check whether --with-xml2 was given. | ||
| 3733 | if test "${with_xml2+set}" = set; then : | ||
| 3734 | withval=$with_xml2; | ||
| 3735 | else | ||
| 3736 | with_xml2=yes | ||
| 3737 | fi | ||
| 3738 | |||
| 3739 | |||
| 3740 | # Check whether --with-imagemagick was given. | ||
| 3741 | if test "${with_imagemagick+set}" = set; then : | ||
| 3742 | withval=$with_imagemagick; | ||
| 3743 | else | ||
| 3744 | with_imagemagick=yes | ||
| 3745 | fi | ||
| 3746 | |||
| 3747 | |||
| 3748 | |||
| 3749 | # Check whether --with-xft was given. | ||
| 3750 | if test "${with_xft+set}" = set; then : | ||
| 3751 | withval=$with_xft; | ||
| 3752 | else | ||
| 3753 | with_xft=yes | ||
| 3754 | fi | ||
| 3755 | |||
| 3756 | |||
| 3757 | # Check whether --with-libotf was given. | ||
| 3758 | if test "${with_libotf+set}" = set; then : | ||
| 3759 | withval=$with_libotf; | ||
| 3760 | else | ||
| 3761 | with_libotf=yes | ||
| 3762 | fi | ||
| 3763 | |||
| 3764 | |||
| 3765 | # Check whether --with-m17n-flt was given. | ||
| 3766 | if test "${with_m17n_flt+set}" = set; then : | ||
| 3767 | withval=$with_m17n_flt; | ||
| 3768 | else | ||
| 3769 | with_m17n_flt=yes | ||
| 3770 | fi | ||
| 3771 | |||
| 3772 | |||
| 3773 | |||
| 3774 | # Check whether --with-toolkit-scroll-bars was given. | ||
| 3775 | if test "${with_toolkit_scroll_bars+set}" = set; then : | ||
| 3776 | withval=$with_toolkit_scroll_bars; | ||
| 3777 | else | ||
| 3778 | with_toolkit_scroll_bars=yes | ||
| 3779 | fi | ||
| 3780 | |||
| 3781 | |||
| 3782 | # Check whether --with-xaw3d was given. | ||
| 3783 | if test "${with_xaw3d+set}" = set; then : | ||
| 3784 | withval=$with_xaw3d; | ||
| 3785 | else | ||
| 3786 | with_xaw3d=yes | ||
| 3787 | fi | ||
| 3788 | |||
| 3789 | |||
| 3790 | # Check whether --with-xim was given. | ||
| 3791 | if test "${with_xim+set}" = set; then : | ||
| 3792 | withval=$with_xim; | ||
| 3793 | else | ||
| 3794 | with_xim=yes | ||
| 3795 | fi | ||
| 3796 | |||
| 3797 | |||
| 3798 | # Check whether --with-ns was given. | ||
| 3799 | if test "${with_ns+set}" = set; then : | ||
| 3800 | withval=$with_ns; | ||
| 3801 | else | ||
| 3802 | with_ns=no | ||
| 3803 | fi | ||
| 3804 | |||
| 3805 | |||
| 3806 | |||
| 3807 | # Check whether --with-gpm was given. | ||
| 3808 | if test "${with_gpm+set}" = set; then : | ||
| 3809 | withval=$with_gpm; | ||
| 3810 | else | ||
| 3811 | with_gpm=yes | ||
| 3812 | fi | ||
| 3813 | |||
| 3814 | |||
| 3815 | # Check whether --with-dbus was given. | ||
| 3816 | if test "${with_dbus+set}" = set; then : | ||
| 3817 | withval=$with_dbus; | ||
| 3818 | else | ||
| 3819 | with_dbus=yes | ||
| 3820 | fi | ||
| 3821 | |||
| 3822 | |||
| 3823 | # Check whether --with-gconf was given. | ||
| 3824 | if test "${with_gconf+set}" = set; then : | ||
| 3825 | withval=$with_gconf; | ||
| 3826 | else | ||
| 3827 | with_gconf=yes | ||
| 3828 | fi | ||
| 3829 | |||
| 3830 | |||
| 3831 | # Check whether --with-selinux was given. | ||
| 3832 | if test "${with_selinux+set}" = set; then : | ||
| 3833 | withval=$with_selinux; | ||
| 3834 | else | ||
| 3835 | with_selinux=yes | ||
| 3836 | fi | ||
| 3837 | |||
| 3838 | |||
| 3839 | # Check whether --with-gnutls was given. | ||
| 3840 | if test "${with_gnutls+set}" = set; then : | ||
| 3841 | withval=$with_gnutls; | ||
| 3842 | else | ||
| 3843 | with_gnutls=yes | ||
| 3844 | fi | ||
| 3845 | |||
| 3846 | |||
| 3847 | ## For the times when you want to build Emacs but don't have | ||
| 3848 | ## a suitable makeinfo, and can live without the manuals. | ||
| 3849 | |||
| 3850 | # Check whether --with-makeinfo was given. | ||
| 3851 | if test "${with_makeinfo+set}" = set; then : | ||
| 3852 | withval=$with_makeinfo; | ||
| 3853 | else | ||
| 3854 | with_makeinfo=yes | ||
| 3855 | fi | ||
| 3856 | |||
| 3857 | |||
| 3858 | ## This is an option because I do not know if all info/man support | ||
| 3859 | ## compressed files, nor how to test if they do so. | ||
| 3860 | |||
| 3861 | # Check whether --with-compress-info was given. | ||
| 3862 | if test "${with_compress_info+set}" = set; then : | ||
| 3863 | withval=$with_compress_info; | ||
| 3864 | else | ||
| 3865 | with_compress_info=yes | ||
| 3866 | fi | ||
| 3867 | |||
| 3868 | if test $with_compress_info = yes; then | ||
| 3869 | GZIP_INFO=yes | ||
| 3870 | else | ||
| 3871 | GZIP_INFO= | ||
| 3872 | fi | ||
| 3873 | |||
| 3874 | |||
| 3875 | |||
| 3876 | # Check whether --with-pkg-config-prog was given. | ||
| 3877 | if test "${with_pkg_config_prog+set}" = set; then : | ||
| 3878 | withval=$with_pkg_config_prog; | ||
| 3879 | fi | ||
| 3880 | |||
| 3881 | if test "X${with_pkg_config_prog}" != X; then | ||
| 3882 | if test "${with_pkg_config_prog}" != yes; then | ||
| 3883 | PKG_CONFIG="${with_pkg_config_prog}" | ||
| 3884 | fi | ||
| 3885 | fi | ||
| 3886 | |||
| 3887 | CRT_DIR= | ||
| 3888 | |||
| 3889 | # Check whether --with-crt-dir was given. | ||
| 3890 | if test "${with_crt_dir+set}" = set; then : | ||
| 3891 | withval=$with_crt_dir; | ||
| 3892 | fi | ||
| 3893 | |||
| 3894 | CRT_DIR="${with_crt_dir}" | ||
| 3895 | |||
| 3896 | |||
| 3897 | # Check whether --with-gameuser was given. | ||
| 3898 | if test "${with_gameuser+set}" = set; then : | ||
| 3899 | withval=$with_gameuser; | ||
| 3900 | fi | ||
| 3901 | |||
| 3902 | test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \ | ||
| 3903 | && gameuser="${with_gameuser}" | ||
| 3904 | test "X$gameuser" = X && gameuser=games | ||
| 3905 | |||
| 3906 | |||
| 3907 | # Check whether --with-gnustep-conf was given. | ||
| 3908 | if test "${with_gnustep_conf+set}" = set; then : | ||
| 3909 | withval=$with_gnustep_conf; | ||
| 3910 | fi | ||
| 3911 | |||
| 3912 | test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ | ||
| 3913 | GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" | ||
| 3914 | test "X$GNUSTEP_CONFIG_FILE" = "X" && \ | ||
| 3915 | GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf | ||
| 3916 | |||
| 3917 | # Check whether --enable-ns-self-contained was given. | ||
| 3918 | if test "${enable_ns_self_contained+set}" = set; then : | ||
| 3919 | enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval | ||
| 3920 | else | ||
| 3921 | EN_NS_SELF_CONTAINED=yes | ||
| 3922 | fi | ||
| 3923 | |||
| 3924 | |||
| 3925 | # Check whether --enable-asserts was given. | ||
| 3926 | if test "${enable_asserts+set}" = set; then : | ||
| 3927 | enableval=$enable_asserts; USE_XASSERTS=$enableval | ||
| 3928 | else | ||
| 3929 | USE_XASSERTS=no | ||
| 3930 | fi | ||
| 3931 | |||
| 3932 | |||
| 3933 | # Check whether --enable-maintainer-mode was given. | ||
| 3934 | if test "${enable_maintainer_mode+set}" = set; then : | ||
| 3935 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | ||
| 3936 | else | ||
| 3937 | USE_MAINTAINER_MODE=yes | ||
| 3938 | fi | ||
| 3939 | |||
| 3940 | if test $USE_MAINTAINER_MODE = yes; then | ||
| 3941 | MAINT= | ||
| 3942 | else | ||
| 3943 | MAINT=# | ||
| 3944 | fi | ||
| 3945 | |||
| 3946 | |||
| 3947 | # Check whether --enable-locallisppath was given. | ||
| 3948 | if test "${enable_locallisppath+set}" = set; then : | ||
| 3949 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then | ||
| 3950 | locallisppath= | ||
| 3951 | elif test "${enableval}" != "yes"; then | ||
| 3952 | locallisppath=${enableval} | ||
| 3953 | fi | ||
| 3954 | fi | ||
| 3955 | |||
| 3956 | |||
| 3957 | # Check whether --enable-checking was given. | ||
| 3958 | if test "${enable_checking+set}" = set; then : | ||
| 3959 | enableval=$enable_checking; ac_checking_flags="${enableval}" | ||
| 3960 | fi | ||
| 3961 | |||
| 3962 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," | ||
| 3963 | for check in $ac_checking_flags | ||
| 3964 | do | ||
| 3965 | case $check in | ||
| 3966 | # these set all the flags to specific states | ||
| 3967 | yes) ac_enable_checking=1 ;; | ||
| 3968 | no) ac_enable_checking= ; | ||
| 3969 | ac_gc_check_stringbytes= ; | ||
| 3970 | ac_gc_check_string_overrun= ; | ||
| 3971 | ac_gc_check_string_free_list= ; | ||
| 3972 | ac_xmalloc_overrun= ; | ||
| 3973 | ac_gc_check_cons_list= ;; | ||
| 3974 | all) ac_enable_checking=1 ; | ||
| 3975 | ac_gc_check_stringbytes=1 ; | ||
| 3976 | ac_gc_check_string_overrun=1 ; | ||
| 3977 | ac_gc_check_string_free_list=1 ; | ||
| 3978 | ac_xmalloc_overrun=1 ; | ||
| 3979 | ac_gc_check_cons_list=1 ;; | ||
| 3980 | # these enable particular checks | ||
| 3981 | stringbytes) ac_gc_check_stringbytes=1 ;; | ||
| 3982 | stringoverrun) ac_gc_check_string_overrun=1 ;; | ||
| 3983 | stringfreelist) ac_gc_check_string_free_list=1 ;; | ||
| 3984 | xmallocoverrun) ac_xmalloc_overrun=1 ;; | ||
| 3985 | conslist) ac_gc_check_cons_list=1 ;; | ||
| 3986 | *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; | ||
| 3987 | esac | ||
| 3988 | done | ||
| 3989 | IFS="$ac_save_IFS" | ||
| 3990 | |||
| 3991 | if test x$ac_enable_checking != x ; then | ||
| 3992 | |||
| 3993 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h | ||
| 3994 | |||
| 3995 | fi | ||
| 3996 | if test x$ac_gc_check_stringbytes != x ; then | ||
| 3997 | |||
| 3998 | $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h | ||
| 3999 | |||
| 4000 | fi | ||
| 4001 | if test x$ac_gc_check_stringoverrun != x ; then | ||
| 4002 | |||
| 4003 | $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h | ||
| 4004 | |||
| 4005 | fi | ||
| 4006 | if test x$ac_gc_check_string_free_list != x ; then | ||
| 4007 | |||
| 4008 | $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h | ||
| 4009 | |||
| 4010 | fi | ||
| 4011 | if test x$ac_xmalloc_overrun != x ; then | ||
| 4012 | |||
| 4013 | $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h | ||
| 4014 | |||
| 4015 | fi | ||
| 4016 | if test x$ac_gc_check_cons_list != x ; then | ||
| 4017 | |||
| 4018 | $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h | ||
| 4019 | |||
| 4020 | fi | ||
| 4021 | |||
| 4022 | # Check whether --enable-use-lisp-union-type was given. | ||
| 4023 | if test "${enable_use_lisp_union_type+set}" = set; then : | ||
| 4024 | enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then | ||
| 4025 | |||
| 4026 | $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h | ||
| 4027 | |||
| 4028 | fi | ||
| 4029 | fi | ||
| 4030 | |||
| 4031 | |||
| 4032 | |||
| 4033 | # Check whether --enable-profiling was given. | ||
| 4034 | if test "${enable_profiling+set}" = set; then : | ||
| 4035 | enableval=$enable_profiling; ac_enable_profiling="${enableval}" | ||
| 4036 | fi | ||
| 4037 | |||
| 4038 | if test x$ac_enable_profiling != x ; then | ||
| 4039 | PROFILING_CFLAGS="-DPROFILING=1 -pg" | ||
| 4040 | else | ||
| 4041 | PROFILING_CFLAGS= | ||
| 4042 | fi | ||
| 4043 | |||
| 4044 | |||
| 4045 | # Check whether --enable-autodepend was given. | ||
| 4046 | if test "${enable_autodepend+set}" = set; then : | ||
| 4047 | enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" | ||
| 4048 | else | ||
| 4049 | ac_enable_autodepend=yes | ||
| 4050 | fi | ||
| 4051 | |||
| 4052 | |||
| 4053 | #### Make srcdir absolute, if it isn't already. It's important to | ||
| 4054 | #### avoid running the path through pwd unnecessarily, since pwd can | ||
| 4055 | #### give you automounter prefixes, which can go away. We do all this | ||
| 4056 | #### so Emacs can find its files when run uninstalled. | ||
| 4057 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | ||
| 4058 | unset CDPATH | ||
| 4059 | case "${srcdir}" in | ||
| 4060 | /* ) ;; | ||
| 4061 | . ) | ||
| 4062 | ## We may be able to use the $PWD environment variable to make this | ||
| 4063 | ## absolute. But sometimes PWD is inaccurate. | ||
| 4064 | ## Note: we used to use ${PWD} at the end instead of `pwd`, | ||
| 4065 | ## but that tested only for a well-formed and valid PWD, | ||
| 4066 | ## it did not object when PWD was well-formed and valid but just wrong. | ||
| 4067 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | ||
| 4068 | then | ||
| 4069 | srcdir="$PWD" | ||
| 4070 | else | ||
| 4071 | srcdir="`(cd ${srcdir}; pwd)`" | ||
| 4072 | fi | ||
| 4073 | ;; | ||
| 4074 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | ||
| 4075 | esac | ||
| 4076 | |||
| 4077 | #### Check if the source directory already has a configured system in it. | ||
| 4078 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | ||
| 4079 | && test -f "${srcdir}/src/config.h" ; then | ||
| 4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used | ||
| 4081 | as a build directory right now; it has been configured in its own | ||
| 4082 | right. To configure in another directory as well, you MUST | ||
| 4083 | use GNU make. If you do not have GNU make, then you must | ||
| 4084 | now do \`make distclean' in ${srcdir}, | ||
| 4085 | and then run $0 again." >&5 | ||
| 4086 | $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | ||
| 4087 | as a build directory right now; it has been configured in its own | ||
| 4088 | right. To configure in another directory as well, you MUST | ||
| 4089 | use GNU make. If you do not have GNU make, then you must | ||
| 4090 | now do \`make distclean' in ${srcdir}, | ||
| 4091 | and then run $0 again." >&2;} | ||
| 4092 | fi | ||
| 4093 | |||
| 4094 | #### Given the configuration name, set machfile and opsysfile to the | ||
| 4095 | #### names of the m/*.h and s/*.h files we should use. | ||
| 4096 | |||
| 4097 | ### Canonicalize the configuration name. | ||
| 4098 | |||
| 4099 | # Make sure we can run config.sub. | ||
| 4100 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
| 4101 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
| 4102 | |||
| 4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
| 4104 | $as_echo_n "checking build system type... " >&6; } | ||
| 4105 | if test "${ac_cv_build+set}" = set; then : | ||
| 4106 | $as_echo_n "(cached) " >&6 | ||
| 4107 | else | ||
| 4108 | ac_build_alias=$build_alias | ||
| 4109 | test "x$ac_build_alias" = x && | ||
| 4110 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
| 4111 | test "x$ac_build_alias" = x && | ||
| 4112 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | ||
| 4113 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
| 4114 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
| 4115 | |||
| 4116 | fi | ||
| 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
| 4118 | $as_echo "$ac_cv_build" >&6; } | ||
| 4119 | case $ac_cv_build in | ||
| 4120 | *-*-*) ;; | ||
| 4121 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | ||
| 4122 | esac | ||
| 4123 | build=$ac_cv_build | ||
| 4124 | ac_save_IFS=$IFS; IFS='-' | ||
| 4125 | set x $ac_cv_build | ||
| 4126 | shift | ||
| 4127 | build_cpu=$1 | ||
| 4128 | build_vendor=$2 | ||
| 4129 | shift; shift | ||
| 4130 | # Remember, the first character of IFS is used to create $*, | ||
| 4131 | # except with old shells: | ||
| 4132 | build_os=$* | ||
| 4133 | IFS=$ac_save_IFS | ||
| 4134 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
| 4135 | |||
| 4136 | |||
| 4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
| 4138 | $as_echo_n "checking host system type... " >&6; } | ||
| 4139 | if test "${ac_cv_host+set}" = set; then : | ||
| 4140 | $as_echo_n "(cached) " >&6 | ||
| 4141 | else | ||
| 4142 | if test "x$host_alias" = x; then | ||
| 4143 | ac_cv_host=$ac_cv_build | ||
| 4144 | else | ||
| 4145 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
| 4146 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
| 4147 | fi | ||
| 4148 | |||
| 4149 | fi | ||
| 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
| 4151 | $as_echo "$ac_cv_host" >&6; } | ||
| 4152 | case $ac_cv_host in | ||
| 4153 | *-*-*) ;; | ||
| 4154 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | ||
| 4155 | esac | ||
| 4156 | host=$ac_cv_host | ||
| 4157 | ac_save_IFS=$IFS; IFS='-' | ||
| 4158 | set x $ac_cv_host | ||
| 4159 | shift | ||
| 4160 | host_cpu=$1 | ||
| 4161 | host_vendor=$2 | ||
| 4162 | shift; shift | ||
| 4163 | # Remember, the first character of IFS is used to create $*, | ||
| 4164 | # except with old shells: | ||
| 4165 | host_os=$* | ||
| 4166 | IFS=$ac_save_IFS | ||
| 4167 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
| 4168 | |||
| 4169 | |||
| 4170 | canonical=$host | ||
| 4171 | configuration=${host_alias-${build_alias-$host}} | ||
| 4172 | |||
| 4173 | |||
| 4174 | |||
| 4175 | ### If you add support for a new configuration, add code to this | ||
| 4176 | ### switch statement to recognize your configuration name and select | ||
| 4177 | ### the appropriate operating system and machine description files. | ||
| 4178 | |||
| 4179 | ### You would hope that you could choose an m/*.h file pretty much | ||
| 4180 | ### based on the machine portion of the configuration name, and an s/*.h | ||
| 4181 | ### file based on the operating system portion. However, it turns out | ||
| 4182 | ### that each m/*.h file is pretty manufacturer-specific - for | ||
| 4183 | ### example mips.h is MIPS | ||
| 4184 | ### So we basically have to have a special case for each | ||
| 4185 | ### configuration name. | ||
| 4186 | ### | ||
| 4187 | ### As far as handling version numbers on operating systems is | ||
| 4188 | ### concerned, make sure things will fail in a fixable way. If | ||
| 4189 | ### /etc/MACHINES doesn't say anything about version numbers, be | ||
| 4190 | ### prepared to handle anything reasonably. If version numbers | ||
| 4191 | ### matter, be sure /etc/MACHINES says something about it. | ||
| 4192 | |||
| 4193 | machine='' opsys='' unported=no | ||
| 4194 | case "${canonical}" in | ||
| 4195 | |||
| 4196 | ## GNU/Linux ports | ||
| 4197 | *-*-linux-gnu*) | ||
| 4198 | opsys=gnu-linux | ||
| 4199 | case ${canonical} in | ||
| 4200 | alpha*) machine=alpha ;; | ||
| 4201 | s390-*) machine=ibms390 ;; | ||
| 4202 | s390x-*) machine=ibms390x ;; | ||
| 4203 | powerpc*) machine=macppc ;; | ||
| 4204 | sparc*) machine=sparc ;; | ||
| 4205 | ia64*) machine=ia64 ;; | ||
| 4206 | m68k*) machine=m68k ;; | ||
| 4207 | x86_64*) machine=amdx86-64 ;; | ||
| 4208 | esac | ||
| 4209 | ;; | ||
| 4210 | |||
| 4211 | ## FreeBSD ports | ||
| 4212 | *-*-freebsd* ) | ||
| 4213 | opsys=freebsd | ||
| 4214 | case "${canonical}" in | ||
| 4215 | alpha*) machine=alpha ;; | ||
| 4216 | amd64-*|x86_64-*) machine=amdx86-64 ;; | ||
| 4217 | ia64-*) machine=ia64 ;; | ||
| 4218 | i[3456]86-*) machine=intel386 ;; | ||
| 4219 | powerpc-*) machine=macppc ;; | ||
| 4220 | sparc-*) machine=sparc ;; | ||
| 4221 | sparc64-*) machine=sparc ;; | ||
| 4222 | esac | ||
| 4223 | ;; | ||
| 4224 | |||
| 4225 | ## FreeBSD kernel + glibc based userland | ||
| 4226 | *-*-kfreebsd*gnu* ) | ||
| 4227 | opsys=gnu-kfreebsd | ||
| 4228 | case "${canonical}" in | ||
| 4229 | alpha*) machine=alpha ;; | ||
| 4230 | amd64-*|x86_64-*) machine=amdx86-64 ;; | ||
| 4231 | ia64-*) machine=ia64 ;; | ||
| 4232 | i[3456]86-*) machine=intel386 ;; | ||
| 4233 | powerpc-*) machine=macppc ;; | ||
| 4234 | sparc-*) machine=sparc ;; | ||
| 4235 | sparc64-*) machine=sparc ;; | ||
| 4236 | esac | ||
| 4237 | ;; | ||
| 4238 | |||
| 4239 | ## NetBSD ports | ||
| 4240 | *-*-netbsd* ) | ||
| 4241 | opsys=netbsd | ||
| 4242 | case "${canonical}" in | ||
| 4243 | alpha*) machine=alpha ;; | ||
| 4244 | x86_64-*) machine=amdx86-64 ;; | ||
| 4245 | i[3456]86-*) machine=intel386 ;; | ||
| 4246 | m68k-*) machine=m68k ;; | ||
| 4247 | powerpc-*) machine=macppc ;; | ||
| 4248 | sparc*-) machine=sparc ;; | ||
| 4249 | vax-*) machine=vax ;; | ||
| 4250 | esac | ||
| 4251 | ;; | ||
| 4252 | |||
| 4253 | ## OpenBSD ports | ||
| 4254 | *-*-openbsd* ) | ||
| 4255 | opsys=openbsd | ||
| 4256 | case "${canonical}" in | ||
| 4257 | alpha*) machine=alpha ;; | ||
| 4258 | x86_64-*) machine=amdx86-64 ;; | ||
| 4259 | i386-*) machine=intel386 ;; | ||
| 4260 | powerpc-*) machine=macppc ;; | ||
| 4261 | sparc*) machine=sparc ;; | ||
| 4262 | vax-*) machine=vax ;; | ||
| 4263 | esac | ||
| 4264 | ;; | ||
| 4265 | |||
| 4266 | ## Apple Darwin / Mac OS X | ||
| 4267 | *-apple-darwin* ) | ||
| 4268 | case "${canonical}" in | ||
| 4269 | i[3456]86-* ) machine=intel386 ;; | ||
| 4270 | powerpc-* ) machine=macppc ;; | ||
| 4271 | x86_64-* ) machine=amdx86-64 ;; | ||
| 4272 | * ) unported=yes ;; | ||
| 4273 | esac | ||
| 4274 | opsys=darwin | ||
| 4275 | # Define CPP as follows to make autoconf work correctly. | ||
| 4276 | CPP="${CC-cc} -E -no-cpp-precomp" | ||
| 4277 | # Use fink packages if available. | ||
| 4278 | if test -d /sw/include && test -d /sw/lib; then | ||
| 4279 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | ||
| 4280 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | ||
| 4281 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | ||
| 4282 | fi | ||
| 4283 | ;; | ||
| 4284 | |||
| 4285 | ## HP 9000 series 700 and 800, running HP/UX | ||
| 4286 | hppa*-hp-hpux10.2* ) | ||
| 4287 | opsys=hpux10-20 | ||
| 4288 | ;; | ||
| 4289 | hppa*-hp-hpux1[1-9]* ) | ||
| 4290 | opsys=hpux11 | ||
| 4291 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" | ||
| 4292 | ;; | ||
| 4293 | |||
| 4294 | ia64*-hp-hpux1[1-9]* ) | ||
| 4295 | machine=hp800 opsys=hpux11 | ||
| 4296 | ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't | ||
| 4297 | ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811 | ||
| 4298 | CANNOT_DUMP=yes | ||
| 4299 | ;; | ||
| 4300 | |||
| 4301 | hppa*-*-linux-gnu* ) | ||
| 4302 | machine=hp800 opsys=gnu-linux | ||
| 4303 | ;; | ||
| 4304 | |||
| 4305 | ## IBM machines | ||
| 4306 | rs6000-ibm-aix4.[23]* ) | ||
| 4307 | machine=ibmrs6000 opsys=aix4-2 | ||
| 4308 | ;; | ||
| 4309 | powerpc-ibm-aix4.[23]* ) | ||
| 4310 | machine=ibmrs6000 opsys=aix4-2 | ||
| 4311 | ;; | ||
| 4312 | rs6000-ibm-aix[56]* ) | ||
| 4313 | machine=ibmrs6000 opsys=aix4-2 | ||
| 4314 | ;; | ||
| 4315 | powerpc-ibm-aix[56]* ) | ||
| 4316 | machine=ibmrs6000 opsys=aix4-2 | ||
| 4317 | ;; | ||
| 4318 | |||
| 4319 | ## Silicon Graphics machines | ||
| 4320 | ## Iris 4D | ||
| 4321 | mips-sgi-irix6.5 ) | ||
| 4322 | machine=iris4d opsys=irix6-5 | ||
| 4323 | # Without defining _LANGUAGE_C, things get masked out in the headers | ||
| 4324 | # so that, for instance, grepping for `free' in stdlib.h fails and | ||
| 4325 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | ||
| 4326 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | ||
| 4327 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" | ||
| 4328 | ;; | ||
| 4329 | |||
| 4330 | ## Suns | ||
| 4331 | *-sun-solaris* \ | ||
| 4332 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \ | ||
| 4333 | | x86_64-*-solaris2* | x86_64-*-sunos5*) | ||
| 4334 | case "${canonical}" in | ||
| 4335 | i[3456]86-*-* ) machine=intel386 ;; | ||
| 4336 | amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; | ||
| 4337 | sparc* ) machine=sparc ;; | ||
| 4338 | * ) unported=yes ;; | ||
| 4339 | esac | ||
| 4340 | case "${canonical}" in | ||
| 4341 | *-sunos5.6* | *-solaris2.6* ) | ||
| 4342 | opsys=sol2-6 | ||
| 4343 | NON_GNU_CPP=/usr/ccs/lib/cpp | ||
| 4344 | RANLIB="ar -ts" | ||
| 4345 | ;; | ||
| 4346 | *-sunos5.[7-9]* | *-solaris2.[7-9]* ) | ||
| 4347 | opsys=sol2-6 | ||
| 4348 | emacs_check_sunpro_c=yes | ||
| 4349 | NON_GNU_CPP=/usr/ccs/lib/cpp | ||
| 4350 | ;; | ||
| 4351 | *-sunos5* | *-solaris* ) | ||
| 4352 | opsys=sol2-10 | ||
| 4353 | emacs_check_sunpro_c=yes | ||
| 4354 | NON_GNU_CPP=/usr/ccs/lib/cpp | ||
| 4355 | ;; | ||
| 4356 | esac | ||
| 4357 | ## Watch out for a compiler that we know will not work. | ||
| 4358 | case "${canonical}" in | ||
| 4359 | *-solaris* | *-sunos5* ) | ||
| 4360 | if [ "x$CC" = x/usr/ucb/cc ]; then | ||
| 4361 | ## /usr/ucb/cc doesn't work; | ||
| 4362 | ## we should find some other compiler that does work. | ||
| 4363 | unset CC | ||
| 4364 | fi | ||
| 4365 | ;; | ||
| 4366 | *) ;; | ||
| 4367 | esac | ||
| 4368 | ;; | ||
| 4369 | |||
| 4370 | ## Intel 386 machines where we don't care about the manufacturer. | ||
| 4371 | i[3456]86-*-* ) | ||
| 4372 | machine=intel386 | ||
| 4373 | case "${canonical}" in | ||
| 4374 | *-cygwin ) opsys=cygwin ;; | ||
| 4375 | *-darwin* ) opsys=darwin | ||
| 4376 | CPP="${CC-cc} -E -no-cpp-precomp" | ||
| 4377 | ;; | ||
| 4378 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | ||
| 4379 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | ||
| 4380 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | ||
| 4381 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | ||
| 4382 | esac | ||
| 4383 | ;; | ||
| 4384 | |||
| 4385 | * ) | ||
| 4386 | unported=yes | ||
| 4387 | ;; | ||
| 4388 | esac | ||
| 4389 | |||
| 4390 | ### If the code above didn't choose an operating system, just choose | ||
| 4391 | ### an operating system based on the configuration name. You really | ||
| 4392 | ### only want to use this when you have no idea what the right | ||
| 4393 | ### operating system is; if you know what operating systems a machine | ||
| 4394 | ### runs, it's cleaner to make it explicit in the case statement | ||
| 4395 | ### above. | ||
| 4396 | if test x"${opsys}" = x; then | ||
| 4397 | case "${canonical}" in | ||
| 4398 | *-gnu* ) opsys=gnu ;; | ||
| 4399 | * ) | ||
| 4400 | unported=yes | ||
| 4401 | ;; | ||
| 4402 | esac | ||
| 4403 | fi | ||
| 4404 | |||
| 4405 | |||
| 4406 | |||
| 4407 | if test $unported = yes; then | ||
| 4408 | as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. | ||
| 4409 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 | ||
| 4410 | fi | ||
| 4411 | |||
| 4412 | if test -n "$machine"; then | ||
| 4413 | machfile="m/${machine}.h" | ||
| 4414 | else | ||
| 4415 | machfile= | ||
| 4416 | fi | ||
| 4417 | opsysfile="s/${opsys}.h" | ||
| 4418 | |||
| 4419 | |||
| 4420 | #### Choose a compiler. | ||
| 4421 | test -n "$CC" && cc_specified=yes | ||
| 4422 | |||
| 4423 | # Save the value of CFLAGS that the user specified. | ||
| 4424 | SPECIFIED_CFLAGS="$CFLAGS" | ||
| 4425 | |||
| 4426 | ac_ext=c | ||
| 4427 | ac_cpp='$CPP $CPPFLAGS' | ||
| 4428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 4429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 4430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 4431 | if test -n "$ac_tool_prefix"; then | ||
| 4432 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
| 4433 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
| 4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 4435 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 4436 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 4437 | $as_echo_n "(cached) " >&6 | ||
| 4438 | else | ||
| 4439 | if test -n "$CC"; then | ||
| 4440 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 4441 | else | ||
| 4442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 4443 | for as_dir in $PATH | ||
| 4444 | do | ||
| 4445 | IFS=$as_save_IFS | ||
| 4446 | test -z "$as_dir" && as_dir=. | ||
| 4447 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 4448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 4449 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
| 4450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 4451 | break 2 | ||
| 4452 | fi | ||
| 4453 | done | ||
| 4454 | done | ||
| 4455 | IFS=$as_save_IFS | ||
| 4456 | |||
| 4457 | fi | ||
| 4458 | fi | ||
| 4459 | CC=$ac_cv_prog_CC | ||
| 4460 | if test -n "$CC"; then | ||
| 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 4462 | $as_echo "$CC" >&6; } | ||
| 4463 | else | ||
| 4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 4465 | $as_echo "no" >&6; } | ||
| 4466 | fi | ||
| 4467 | |||
| 4468 | |||
| 4469 | fi | ||
| 4470 | if test -z "$ac_cv_prog_CC"; then | ||
| 4471 | ac_ct_CC=$CC | ||
| 4472 | # Extract the first word of "gcc", so it can be a program name with args. | ||
| 4473 | set dummy gcc; ac_word=$2 | ||
| 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 4475 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 4476 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
| 4477 | $as_echo_n "(cached) " >&6 | ||
| 4478 | else | ||
| 4479 | if test -n "$ac_ct_CC"; then | ||
| 4480 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 4481 | else | ||
| 4482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 4483 | for as_dir in $PATH | ||
| 4484 | do | ||
| 4485 | IFS=$as_save_IFS | ||
| 4486 | test -z "$as_dir" && as_dir=. | ||
| 4487 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 4488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 4489 | ac_cv_prog_ac_ct_CC="gcc" | ||
| 4490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 4491 | break 2 | ||
| 4492 | fi | ||
| 4493 | done | ||
| 4494 | done | ||
| 4495 | IFS=$as_save_IFS | ||
| 4496 | |||
| 4497 | fi | ||
| 4498 | fi | ||
| 4499 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 4500 | if test -n "$ac_ct_CC"; then | ||
| 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
| 4502 | $as_echo "$ac_ct_CC" >&6; } | ||
| 4503 | else | ||
| 4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 4505 | $as_echo "no" >&6; } | ||
| 4506 | fi | ||
| 4507 | |||
| 4508 | if test "x$ac_ct_CC" = x; then | ||
| 4509 | CC="" | ||
| 4510 | else | ||
| 4511 | case $cross_compiling:$ac_tool_warned in | ||
| 4512 | yes:) | ||
| 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
| 4514 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
| 4515 | ac_tool_warned=yes ;; | ||
| 4516 | esac | ||
| 4517 | CC=$ac_ct_CC | ||
| 4518 | fi | ||
| 4519 | else | ||
| 4520 | CC="$ac_cv_prog_CC" | ||
| 4521 | fi | ||
| 4522 | |||
| 4523 | if test -z "$CC"; then | ||
| 4524 | if test -n "$ac_tool_prefix"; then | ||
| 4525 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
| 4526 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
| 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 4528 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 4529 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 4530 | $as_echo_n "(cached) " >&6 | ||
| 4531 | else | ||
| 4532 | if test -n "$CC"; then | ||
| 4533 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 4534 | else | ||
| 4535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 4536 | for as_dir in $PATH | ||
| 4537 | do | ||
| 4538 | IFS=$as_save_IFS | ||
| 4539 | test -z "$as_dir" && as_dir=. | ||
| 4540 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 4541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 4542 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
| 4543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 4544 | break 2 | ||
| 4545 | fi | ||
| 4546 | done | ||
| 4547 | done | ||
| 4548 | IFS=$as_save_IFS | ||
| 4549 | |||
| 4550 | fi | ||
| 4551 | fi | ||
| 4552 | CC=$ac_cv_prog_CC | ||
| 4553 | if test -n "$CC"; then | ||
| 4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 4555 | $as_echo "$CC" >&6; } | ||
| 4556 | else | ||
| 4557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 4558 | $as_echo "no" >&6; } | ||
| 4559 | fi | ||
| 4560 | |||
| 4561 | |||
| 4562 | fi | ||
| 4563 | fi | ||
| 4564 | if test -z "$CC"; then | ||
| 4565 | # Extract the first word of "cc", so it can be a program name with args. | ||
| 4566 | set dummy cc; ac_word=$2 | ||
| 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 4568 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 4569 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 4570 | $as_echo_n "(cached) " >&6 | ||
| 4571 | else | ||
| 4572 | if test -n "$CC"; then | ||
| 4573 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 4574 | else | ||
| 4575 | ac_prog_rejected=no | ||
| 4576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 4577 | for as_dir in $PATH | ||
| 4578 | do | ||
| 4579 | IFS=$as_save_IFS | ||
| 4580 | test -z "$as_dir" && as_dir=. | ||
| 4581 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 4582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 4583 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
| 4584 | ac_prog_rejected=yes | ||
| 4585 | continue | ||
| 4586 | fi | ||
| 4587 | ac_cv_prog_CC="cc" | ||
| 4588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 4589 | break 2 | ||
| 4590 | fi | ||
| 4591 | done | ||
| 4592 | done | ||
| 4593 | IFS=$as_save_IFS | ||
| 4594 | |||
| 4595 | if test $ac_prog_rejected = yes; then | ||
| 4596 | # We found a bogon in the path, so make sure we never use it. | ||
| 4597 | set dummy $ac_cv_prog_CC | ||
| 4598 | shift | ||
| 4599 | if test $# != 0; then | ||
| 4600 | # We chose a different compiler from the bogus one. | ||
| 4601 | # However, it has the same basename, so the bogon will be chosen | ||
| 4602 | # first if we set CC to just the basename; use the full file name. | ||
| 4603 | shift | ||
| 4604 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
| 4605 | fi | ||
| 4606 | fi | ||
| 4607 | fi | ||
| 4608 | fi | ||
| 4609 | CC=$ac_cv_prog_CC | ||
| 4610 | if test -n "$CC"; then | ||
| 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 4612 | $as_echo "$CC" >&6; } | ||
| 4613 | else | ||
| 4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 4615 | $as_echo "no" >&6; } | ||
| 4616 | fi | ||
| 4617 | |||
| 4618 | |||
| 4619 | fi | ||
| 4620 | if test -z "$CC"; then | ||
| 4621 | if test -n "$ac_tool_prefix"; then | ||
| 4622 | for ac_prog in cl.exe | ||
| 4623 | do | ||
| 4624 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
| 4625 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
| 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 4627 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 4628 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
| 4629 | $as_echo_n "(cached) " >&6 | ||
| 4630 | else | ||
| 4631 | if test -n "$CC"; then | ||
| 4632 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 4633 | else | ||
| 4634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 4635 | for as_dir in $PATH | ||
| 4636 | do | ||
| 4637 | IFS=$as_save_IFS | ||
| 4638 | test -z "$as_dir" && as_dir=. | ||
| 4639 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 4640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 4641 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
| 4642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 4643 | break 2 | ||
| 4644 | fi | ||
| 4645 | done | ||
| 4646 | done | ||
| 4647 | IFS=$as_save_IFS | ||
| 4648 | |||
| 4649 | fi | ||
| 4650 | fi | ||
| 4651 | CC=$ac_cv_prog_CC | ||
| 4652 | if test -n "$CC"; then | ||
| 4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
| 4654 | $as_echo "$CC" >&6; } | ||
| 4655 | else | ||
| 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 4657 | $as_echo "no" >&6; } | ||
| 4658 | fi | ||
| 4659 | |||
| 4660 | |||
| 4661 | test -n "$CC" && break | ||
| 4662 | done | ||
| 4663 | fi | ||
| 4664 | if test -z "$CC"; then | ||
| 4665 | ac_ct_CC=$CC | ||
| 4666 | for ac_prog in cl.exe | ||
| 4667 | do | ||
| 4668 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 4669 | set dummy $ac_prog; ac_word=$2 | ||
| 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 4671 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 4672 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
| 4673 | $as_echo_n "(cached) " >&6 | ||
| 4674 | else | ||
| 4675 | if test -n "$ac_ct_CC"; then | ||
| 4676 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 4677 | else | ||
| 4678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 4679 | for as_dir in $PATH | ||
| 4680 | do | ||
| 4681 | IFS=$as_save_IFS | ||
| 4682 | test -z "$as_dir" && as_dir=. | ||
| 4683 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 4684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 4685 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
| 4686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 4687 | break 2 | ||
| 4688 | fi | ||
| 4689 | done | ||
| 4690 | done | ||
| 4691 | IFS=$as_save_IFS | ||
| 4692 | |||
| 4693 | fi | ||
| 4694 | fi | ||
| 4695 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 4696 | if test -n "$ac_ct_CC"; then | ||
| 4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
| 4698 | $as_echo "$ac_ct_CC" >&6; } | ||
| 4699 | else | ||
| 4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 4701 | $as_echo "no" >&6; } | ||
| 4702 | fi | ||
| 4703 | |||
| 4704 | |||
| 4705 | test -n "$ac_ct_CC" && break | ||
| 4706 | done | ||
| 4707 | |||
| 4708 | if test "x$ac_ct_CC" = x; then | ||
| 4709 | CC="" | ||
| 4710 | else | ||
| 4711 | case $cross_compiling:$ac_tool_warned in | ||
| 4712 | yes:) | ||
| 4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
| 4714 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
| 4715 | ac_tool_warned=yes ;; | ||
| 4716 | esac | ||
| 4717 | CC=$ac_ct_CC | ||
| 4718 | fi | ||
| 4719 | fi | ||
| 4720 | |||
| 4721 | fi | ||
| 4722 | |||
| 4723 | |||
| 4724 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 4725 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 4726 | as_fn_error "no acceptable C compiler found in \$PATH | ||
| 4727 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 4728 | |||
| 4729 | # Provide some information about the compiler. | ||
| 4730 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
| 4731 | set X $ac_compile | ||
| 4732 | ac_compiler=$2 | ||
| 4733 | for ac_option in --version -v -V -qversion; do | ||
| 4734 | { { ac_try="$ac_compiler $ac_option >&5" | ||
| 4735 | case "(($ac_try" in | ||
| 4736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 4737 | *) ac_try_echo=$ac_try;; | ||
| 4738 | esac | ||
| 4739 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 4740 | $as_echo "$ac_try_echo"; } >&5 | ||
| 4741 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
| 4742 | ac_status=$? | ||
| 4743 | if test -s conftest.err; then | ||
| 4744 | sed '10a\ | ||
| 4745 | ... rest of stderr output deleted ... | ||
| 4746 | 10q' conftest.err >conftest.er1 | ||
| 4747 | cat conftest.er1 >&5 | ||
| 4748 | fi | ||
| 4749 | rm -f conftest.er1 conftest.err | ||
| 4750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 4751 | test $ac_status = 0; } | ||
| 4752 | done | ||
| 4753 | |||
| 4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 4755 | /* end confdefs.h. */ | ||
| 4756 | |||
| 4757 | int | ||
| 4758 | main () | ||
| 4759 | { | ||
| 4760 | |||
| 4761 | ; | ||
| 4762 | return 0; | ||
| 4763 | } | ||
| 4764 | _ACEOF | ||
| 4765 | ac_clean_files_save=$ac_clean_files | ||
| 4766 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
| 4767 | # Try to create an executable without -o first, disregard a.out. | ||
| 4768 | # It will help us diagnose broken compilers, and finding out an intuition | ||
| 4769 | # of exeext. | ||
| 4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
| 4771 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
| 4772 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
| 4773 | |||
| 4774 | # The possible output files: | ||
| 4775 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
| 4776 | |||
| 4777 | ac_rmfiles= | ||
| 4778 | for ac_file in $ac_files | ||
| 4779 | do | ||
| 4780 | case $ac_file in | ||
| 4781 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
| 4782 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
| 4783 | esac | ||
| 4784 | done | ||
| 4785 | rm -f $ac_rmfiles | ||
| 4786 | |||
| 4787 | if { { ac_try="$ac_link_default" | ||
| 4788 | case "(($ac_try" in | ||
| 4789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 4790 | *) ac_try_echo=$ac_try;; | ||
| 4791 | esac | ||
| 4792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 4793 | $as_echo "$ac_try_echo"; } >&5 | ||
| 4794 | (eval "$ac_link_default") 2>&5 | ||
| 4795 | ac_status=$? | ||
| 4796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 4797 | test $ac_status = 0; }; then : | ||
| 4798 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
| 4799 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
| 4800 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
| 4801 | # so that the user can short-circuit this test for compilers unknown to | ||
| 4802 | # Autoconf. | ||
| 4803 | for ac_file in $ac_files '' | ||
| 4804 | do | ||
| 4805 | test -f "$ac_file" || continue | ||
| 4806 | case $ac_file in | ||
| 4807 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
| 4808 | ;; | ||
| 4809 | [ab].out ) | ||
| 4810 | # We found the default executable, but exeext='' is most | ||
| 4811 | # certainly right. | ||
| 4812 | break;; | ||
| 4813 | *.* ) | ||
| 4814 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
| 4815 | then :; else | ||
| 4816 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
| 4817 | fi | ||
| 4818 | # We set ac_cv_exeext here because the later test for it is not | ||
| 4819 | # safe: cross compilers may not add the suffix if given an `-o' | ||
| 4820 | # argument, so we may need to know it at that point already. | ||
| 4821 | # Even if this section looks crufty: it has the advantage of | ||
| 4822 | # actually working. | ||
| 4823 | break;; | ||
| 4824 | * ) | ||
| 4825 | break;; | ||
| 4826 | esac | ||
| 4827 | done | ||
| 4828 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
| 4829 | |||
| 4830 | else | ||
| 4831 | ac_file='' | ||
| 4832 | fi | ||
| 4833 | if test -z "$ac_file"; then : | ||
| 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 4835 | $as_echo "no" >&6; } | ||
| 4836 | $as_echo "$as_me: failed program was:" >&5 | ||
| 4837 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 4838 | |||
| 4839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 4840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 4841 | { as_fn_set_status 77 | ||
| 4842 | as_fn_error "C compiler cannot create executables | ||
| 4843 | See \`config.log' for more details." "$LINENO" 5; }; } | ||
| 4844 | else | ||
| 4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 4846 | $as_echo "yes" >&6; } | ||
| 4847 | fi | ||
| 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
| 4849 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
| 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
| 4851 | $as_echo "$ac_file" >&6; } | ||
| 4852 | ac_exeext=$ac_cv_exeext | ||
| 4853 | |||
| 4854 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
| 4855 | ac_clean_files=$ac_clean_files_save | ||
| 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
| 4857 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
| 4858 | if { { ac_try="$ac_link" | ||
| 4859 | case "(($ac_try" in | ||
| 4860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 4861 | *) ac_try_echo=$ac_try;; | ||
| 4862 | esac | ||
| 4863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 4864 | $as_echo "$ac_try_echo"; } >&5 | ||
| 4865 | (eval "$ac_link") 2>&5 | ||
| 4866 | ac_status=$? | ||
| 4867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 4868 | test $ac_status = 0; }; then : | ||
| 4869 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
| 4870 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
| 4871 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
| 4872 | # `rm'. | ||
| 4873 | for ac_file in conftest.exe conftest conftest.*; do | ||
| 4874 | test -f "$ac_file" || continue | ||
| 4875 | case $ac_file in | ||
| 4876 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
| 4877 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
| 4878 | break;; | ||
| 4879 | * ) break;; | ||
| 4880 | esac | ||
| 4881 | done | ||
| 4882 | else | ||
| 4883 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 4884 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 4885 | as_fn_error "cannot compute suffix of executables: cannot compile and link | ||
| 4886 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 4887 | fi | ||
| 4888 | rm -f conftest conftest$ac_cv_exeext | ||
| 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
| 4890 | $as_echo "$ac_cv_exeext" >&6; } | ||
| 4891 | |||
| 4892 | rm -f conftest.$ac_ext | ||
| 4893 | EXEEXT=$ac_cv_exeext | ||
| 4894 | ac_exeext=$EXEEXT | ||
| 4895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 4896 | /* end confdefs.h. */ | ||
| 4897 | #include <stdio.h> | ||
| 4898 | int | ||
| 4899 | main () | ||
| 4900 | { | ||
| 4901 | FILE *f = fopen ("conftest.out", "w"); | ||
| 4902 | return ferror (f) || fclose (f) != 0; | ||
| 4903 | |||
| 4904 | ; | ||
| 4905 | return 0; | ||
| 4906 | } | ||
| 4907 | _ACEOF | ||
| 4908 | ac_clean_files="$ac_clean_files conftest.out" | ||
| 4909 | # Check that the compiler produces executables we can run. If not, either | ||
| 4910 | # the compiler is broken, or we cross compile. | ||
| 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
| 4912 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
| 4913 | if test "$cross_compiling" != yes; then | ||
| 4914 | { { ac_try="$ac_link" | ||
| 4915 | case "(($ac_try" in | ||
| 4916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 4917 | *) ac_try_echo=$ac_try;; | ||
| 4918 | esac | ||
| 4919 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 4920 | $as_echo "$ac_try_echo"; } >&5 | ||
| 4921 | (eval "$ac_link") 2>&5 | ||
| 4922 | ac_status=$? | ||
| 4923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 4924 | test $ac_status = 0; } | ||
| 4925 | if { ac_try='./conftest$ac_cv_exeext' | ||
| 4926 | { { case "(($ac_try" in | ||
| 4927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 4928 | *) ac_try_echo=$ac_try;; | ||
| 4929 | esac | ||
| 4930 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 4931 | $as_echo "$ac_try_echo"; } >&5 | ||
| 4932 | (eval "$ac_try") 2>&5 | ||
| 4933 | ac_status=$? | ||
| 4934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 4935 | test $ac_status = 0; }; }; then | ||
| 4936 | cross_compiling=no | ||
| 4937 | else | ||
| 4938 | if test "$cross_compiling" = maybe; then | ||
| 4939 | cross_compiling=yes | ||
| 4940 | else | ||
| 4941 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 4942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 4943 | as_fn_error "cannot run C compiled programs. | ||
| 4944 | If you meant to cross compile, use \`--host'. | ||
| 4945 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 4946 | fi | ||
| 4947 | fi | ||
| 4948 | fi | ||
| 4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
| 4950 | $as_echo "$cross_compiling" >&6; } | ||
| 4951 | |||
| 4952 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
| 4953 | ac_clean_files=$ac_clean_files_save | ||
| 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
| 4955 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
| 4956 | if test "${ac_cv_objext+set}" = set; then : | ||
| 4957 | $as_echo_n "(cached) " >&6 | ||
| 4958 | else | ||
| 4959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 4960 | /* end confdefs.h. */ | ||
| 4961 | |||
| 4962 | int | ||
| 4963 | main () | ||
| 4964 | { | ||
| 4965 | |||
| 4966 | ; | ||
| 4967 | return 0; | ||
| 4968 | } | ||
| 4969 | _ACEOF | ||
| 4970 | rm -f conftest.o conftest.obj | ||
| 4971 | if { { ac_try="$ac_compile" | ||
| 4972 | case "(($ac_try" in | ||
| 4973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 4974 | *) ac_try_echo=$ac_try;; | ||
| 4975 | esac | ||
| 4976 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 4977 | $as_echo "$ac_try_echo"; } >&5 | ||
| 4978 | (eval "$ac_compile") 2>&5 | ||
| 4979 | ac_status=$? | ||
| 4980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 4981 | test $ac_status = 0; }; then : | ||
| 4982 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
| 4983 | test -f "$ac_file" || continue; | ||
| 4984 | case $ac_file in | ||
| 4985 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
| 4986 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
| 4987 | break;; | ||
| 4988 | esac | ||
| 4989 | done | ||
| 4990 | else | ||
| 4991 | $as_echo "$as_me: failed program was:" >&5 | ||
| 4992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 4993 | |||
| 4994 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 4995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 4996 | as_fn_error "cannot compute suffix of object files: cannot compile | ||
| 4997 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 4998 | fi | ||
| 4999 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
| 5000 | fi | ||
| 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
| 5002 | $as_echo "$ac_cv_objext" >&6; } | ||
| 5003 | OBJEXT=$ac_cv_objext | ||
| 5004 | ac_objext=$OBJEXT | ||
| 5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
| 5006 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
| 5007 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
| 5008 | $as_echo_n "(cached) " >&6 | ||
| 5009 | else | ||
| 5010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5011 | /* end confdefs.h. */ | ||
| 5012 | |||
| 5013 | int | ||
| 5014 | main () | ||
| 5015 | { | ||
| 5016 | #ifndef __GNUC__ | ||
| 5017 | choke me | ||
| 5018 | #endif | ||
| 5019 | |||
| 5020 | ; | ||
| 5021 | return 0; | ||
| 5022 | } | ||
| 5023 | _ACEOF | ||
| 5024 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 5025 | ac_compiler_gnu=yes | ||
| 5026 | else | ||
| 5027 | ac_compiler_gnu=no | ||
| 5028 | fi | ||
| 5029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 5030 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
| 5031 | |||
| 5032 | fi | ||
| 5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
| 5034 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
| 5035 | if test $ac_compiler_gnu = yes; then | ||
| 5036 | GCC=yes | ||
| 5037 | else | ||
| 5038 | GCC= | ||
| 5039 | fi | ||
| 5040 | ac_test_CFLAGS=${CFLAGS+set} | ||
| 5041 | ac_save_CFLAGS=$CFLAGS | ||
| 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
| 5043 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
| 5044 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
| 5045 | $as_echo_n "(cached) " >&6 | ||
| 5046 | else | ||
| 5047 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
| 5048 | ac_c_werror_flag=yes | ||
| 5049 | ac_cv_prog_cc_g=no | ||
| 5050 | CFLAGS="-g" | ||
| 5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5052 | /* end confdefs.h. */ | ||
| 5053 | |||
| 5054 | int | ||
| 5055 | main () | ||
| 5056 | { | ||
| 5057 | |||
| 5058 | ; | ||
| 5059 | return 0; | ||
| 5060 | } | ||
| 5061 | _ACEOF | ||
| 5062 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 5063 | ac_cv_prog_cc_g=yes | ||
| 5064 | else | ||
| 5065 | CFLAGS="" | ||
| 5066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5067 | /* end confdefs.h. */ | ||
| 5068 | |||
| 5069 | int | ||
| 5070 | main () | ||
| 5071 | { | ||
| 5072 | |||
| 5073 | ; | ||
| 5074 | return 0; | ||
| 5075 | } | ||
| 5076 | _ACEOF | ||
| 5077 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 5078 | |||
| 5079 | else | ||
| 5080 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
| 5081 | CFLAGS="-g" | ||
| 5082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5083 | /* end confdefs.h. */ | ||
| 5084 | |||
| 5085 | int | ||
| 5086 | main () | ||
| 5087 | { | ||
| 5088 | |||
| 5089 | ; | ||
| 5090 | return 0; | ||
| 5091 | } | ||
| 5092 | _ACEOF | ||
| 5093 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 5094 | ac_cv_prog_cc_g=yes | ||
| 5095 | fi | ||
| 5096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 5097 | fi | ||
| 5098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 5099 | fi | ||
| 5100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 5101 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
| 5102 | fi | ||
| 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
| 5104 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
| 5105 | if test "$ac_test_CFLAGS" = set; then | ||
| 5106 | CFLAGS=$ac_save_CFLAGS | ||
| 5107 | elif test $ac_cv_prog_cc_g = yes; then | ||
| 5108 | if test "$GCC" = yes; then | ||
| 5109 | CFLAGS="-g -O2" | ||
| 5110 | else | ||
| 5111 | CFLAGS="-g" | ||
| 5112 | fi | ||
| 5113 | else | ||
| 5114 | if test "$GCC" = yes; then | ||
| 5115 | CFLAGS="-O2" | ||
| 5116 | else | ||
| 5117 | CFLAGS= | ||
| 5118 | fi | ||
| 5119 | fi | ||
| 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
| 5121 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
| 5122 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
| 5123 | $as_echo_n "(cached) " >&6 | ||
| 5124 | else | ||
| 5125 | ac_cv_prog_cc_c89=no | ||
| 5126 | ac_save_CC=$CC | ||
| 5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5128 | /* end confdefs.h. */ | ||
| 5129 | #include <stdarg.h> | ||
| 5130 | #include <stdio.h> | ||
| 5131 | #include <sys/types.h> | ||
| 5132 | #include <sys/stat.h> | ||
| 5133 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
| 5134 | struct buf { int x; }; | ||
| 5135 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
| 5136 | static char *e (p, i) | ||
| 5137 | char **p; | ||
| 5138 | int i; | ||
| 5139 | { | ||
| 5140 | return p[i]; | ||
| 5141 | } | ||
| 5142 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
| 5143 | { | ||
| 5144 | char *s; | ||
| 5145 | va_list v; | ||
| 5146 | va_start (v,p); | ||
| 5147 | s = g (p, va_arg (v,int)); | ||
| 5148 | va_end (v); | ||
| 5149 | return s; | ||
| 5150 | } | ||
| 5151 | |||
| 5152 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
| 5153 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
| 5154 | These don't provoke an error unfortunately, instead are silently treated | ||
| 5155 | as 'x'. The following induces an error, until -std is added to get | ||
| 5156 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
| 5157 | array size at least. It's necessary to write '\x00'==0 to get something | ||
| 5158 | that's true only with -std. */ | ||
| 5159 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
| 5160 | |||
| 5161 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
| 5162 | inside strings and character constants. */ | ||
| 5163 | #define FOO(x) 'x' | ||
| 5164 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
| 5165 | |||
| 5166 | int test (int i, double x); | ||
| 5167 | struct s1 {int (*f) (int a);}; | ||
| 5168 | struct s2 {int (*f) (double a);}; | ||
| 5169 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
| 5170 | int argc; | ||
| 5171 | char **argv; | ||
| 5172 | int | ||
| 5173 | main () | ||
| 5174 | { | ||
| 5175 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
| 5176 | ; | ||
| 5177 | return 0; | ||
| 5178 | } | ||
| 5179 | _ACEOF | ||
| 5180 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
| 5181 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
| 5182 | do | ||
| 5183 | CC="$ac_save_CC $ac_arg" | ||
| 5184 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 5185 | ac_cv_prog_cc_c89=$ac_arg | ||
| 5186 | fi | ||
| 5187 | rm -f core conftest.err conftest.$ac_objext | ||
| 5188 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
| 5189 | done | ||
| 5190 | rm -f conftest.$ac_ext | ||
| 5191 | CC=$ac_save_CC | ||
| 5192 | |||
| 5193 | fi | ||
| 5194 | # AC_CACHE_VAL | ||
| 5195 | case "x$ac_cv_prog_cc_c89" in | ||
| 5196 | x) | ||
| 5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
| 5198 | $as_echo "none needed" >&6; } ;; | ||
| 5199 | xno) | ||
| 5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
| 5201 | $as_echo "unsupported" >&6; } ;; | ||
| 5202 | *) | ||
| 5203 | CC="$CC $ac_cv_prog_cc_c89" | ||
| 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
| 5205 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
| 5206 | esac | ||
| 5207 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
| 5208 | |||
| 5209 | fi | ||
| 5210 | |||
| 5211 | ac_ext=c | ||
| 5212 | ac_cpp='$CPP $CPPFLAGS' | ||
| 5213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 5214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 5215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 5216 | DEPDIR="${am__leading_dot}deps" | ||
| 5217 | |||
| 5218 | ac_config_commands="$ac_config_commands depfiles" | ||
| 5219 | |||
| 5220 | |||
| 5221 | am_make=${MAKE-make} | ||
| 5222 | cat > confinc << 'END' | ||
| 5223 | am__doit: | ||
| 5224 | @echo this is the am__doit target | ||
| 5225 | .PHONY: am__doit | ||
| 5226 | END | ||
| 5227 | # If we don't find an include directive, just comment out the code. | ||
| 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
| 5229 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
| 5230 | am__include="#" | ||
| 5231 | am__quote= | ||
| 5232 | _am_result=none | ||
| 5233 | # First try GNU make style include. | ||
| 5234 | echo "include confinc" > confmf | ||
| 5235 | # Ignore all kinds of additional output from `make'. | ||
| 5236 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
| 5237 | *the\ am__doit\ target*) | ||
| 5238 | am__include=include | ||
| 5239 | am__quote= | ||
| 5240 | _am_result=GNU | ||
| 5241 | ;; | ||
| 5242 | esac | ||
| 5243 | # Now try BSD make style include. | ||
| 5244 | if test "$am__include" = "#"; then | ||
| 5245 | echo '.include "confinc"' > confmf | ||
| 5246 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
| 5247 | *the\ am__doit\ target*) | ||
| 5248 | am__include=.include | ||
| 5249 | am__quote="\"" | ||
| 5250 | _am_result=BSD | ||
| 5251 | ;; | ||
| 5252 | esac | ||
| 5253 | fi | ||
| 5254 | |||
| 5255 | |||
| 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
| 5257 | $as_echo "$_am_result" >&6; } | ||
| 5258 | rm -f confinc confmf | ||
| 5259 | |||
| 5260 | # Check whether --enable-dependency-tracking was given. | ||
| 5261 | if test "${enable_dependency_tracking+set}" = set; then : | ||
| 5262 | enableval=$enable_dependency_tracking; | ||
| 5263 | fi | ||
| 5264 | |||
| 5265 | if test "x$enable_dependency_tracking" != xno; then | ||
| 5266 | am_depcomp="$ac_aux_dir/depcomp" | ||
| 5267 | AMDEPBACKSLASH='\' | ||
| 5268 | fi | ||
| 5269 | if test "x$enable_dependency_tracking" != xno; then | ||
| 5270 | AMDEP_TRUE= | ||
| 5271 | AMDEP_FALSE='#' | ||
| 5272 | else | ||
| 5273 | AMDEP_TRUE='#' | ||
| 5274 | AMDEP_FALSE= | ||
| 5275 | fi | ||
| 5276 | |||
| 5277 | |||
| 5278 | |||
| 5279 | depcc="$CC" am_compiler_list= | ||
| 5280 | |||
| 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
| 5282 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
| 5283 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
| 5284 | $as_echo_n "(cached) " >&6 | ||
| 5285 | else | ||
| 5286 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
| 5287 | # We make a subdir and do the tests there. Otherwise we can end up | ||
| 5288 | # making bogus files that we don't know about and never remove. For | ||
| 5289 | # instance it was reported that on HP-UX the gcc test will end up | ||
| 5290 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
| 5291 | # in D'. | ||
| 5292 | mkdir conftest.dir | ||
| 5293 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
| 5294 | # using a relative directory. | ||
| 5295 | cp "$am_depcomp" conftest.dir | ||
| 5296 | cd conftest.dir | ||
| 5297 | # We will build objects and dependencies in a subdirectory because | ||
| 5298 | # it helps to detect inapplicable dependency modes. For instance | ||
| 5299 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
| 5300 | # side effect of compilation, but ICC will put the dependencies in | ||
| 5301 | # the current directory while Tru64 will put them in the object | ||
| 5302 | # directory. | ||
| 5303 | mkdir sub | ||
| 5304 | |||
| 5305 | am_cv_CC_dependencies_compiler_type=none | ||
| 5306 | if test "$am_compiler_list" = ""; then | ||
| 5307 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
| 5308 | fi | ||
| 5309 | am__universal=false | ||
| 5310 | case " $depcc " in #( | ||
| 5311 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
| 5312 | esac | ||
| 5313 | |||
| 5314 | for depmode in $am_compiler_list; do | ||
| 5315 | # Setup a source with many dependencies, because some compilers | ||
| 5316 | # like to wrap large dependency lists on column 80 (with \), and | ||
| 5317 | # we should not choose a depcomp mode which is confused by this. | ||
| 5318 | # | ||
| 5319 | # We need to recreate these files for each test, as the compiler may | ||
| 5320 | # overwrite some of them when testing with obscure command lines. | ||
| 5321 | # This happens at least with the AIX C compiler. | ||
| 5322 | : > sub/conftest.c | ||
| 5323 | for i in 1 2 3 4 5 6; do | ||
| 5324 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
| 5325 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
| 5326 | # Solaris 8's {/usr,}/bin/sh. | ||
| 5327 | touch sub/conftst$i.h | ||
| 5328 | done | ||
| 5329 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
| 5330 | |||
| 5331 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
| 5332 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
| 5333 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
| 5334 | # versions had trouble with output in subdirs | ||
| 5335 | am__obj=sub/conftest.${OBJEXT-o} | ||
| 5336 | am__minus_obj="-o $am__obj" | ||
| 5337 | case $depmode in | ||
| 5338 | gcc) | ||
| 5339 | # This depmode causes a compiler race in universal mode. | ||
| 5340 | test "$am__universal" = false || continue | ||
| 5341 | ;; | ||
| 5342 | nosideeffect) | ||
| 5343 | # after this tag, mechanisms are not by side-effect, so they'll | ||
| 5344 | # only be used when explicitly requested | ||
| 5345 | if test "x$enable_dependency_tracking" = xyes; then | ||
| 5346 | continue | ||
| 5347 | else | ||
| 5348 | break | ||
| 5349 | fi | ||
| 5350 | ;; | ||
| 5351 | msvisualcpp | msvcmsys) | ||
| 5352 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
| 5353 | # not run yet. These depmodes are late enough in the game, and | ||
| 5354 | # so weak that their functioning should not be impacted. | ||
| 5355 | am__obj=conftest.${OBJEXT-o} | ||
| 5356 | am__minus_obj= | ||
| 5357 | ;; | ||
| 5358 | none) break ;; | ||
| 5359 | esac | ||
| 5360 | if depmode=$depmode \ | ||
| 5361 | source=sub/conftest.c object=$am__obj \ | ||
| 5362 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
| 5363 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
| 5364 | >/dev/null 2>conftest.err && | ||
| 5365 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
| 5366 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
| 5367 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
| 5368 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
| 5369 | # icc doesn't choke on unknown options, it will just issue warnings | ||
| 5370 | # or remarks (even with -Werror). So we grep stderr for any message | ||
| 5371 | # that says an option was ignored or not supported. | ||
| 5372 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
| 5373 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
| 5374 | # The diagnosis changed in icc 8.0: | ||
| 5375 | # icc: Command line remark: option '-MP' not supported | ||
| 5376 | if (grep 'ignoring option' conftest.err || | ||
| 5377 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
| 5378 | am_cv_CC_dependencies_compiler_type=$depmode | ||
| 5379 | break | ||
| 5380 | fi | ||
| 5381 | fi | ||
| 5382 | done | ||
| 5383 | |||
| 5384 | cd .. | ||
| 5385 | rm -rf conftest.dir | ||
| 5386 | else | ||
| 5387 | am_cv_CC_dependencies_compiler_type=none | ||
| 5388 | fi | ||
| 5389 | |||
| 5390 | fi | ||
| 5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
| 5392 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
| 5393 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
| 5394 | |||
| 5395 | if | ||
| 5396 | test "x$enable_dependency_tracking" != xno \ | ||
| 5397 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
| 5398 | am__fastdepCC_TRUE= | ||
| 5399 | am__fastdepCC_FALSE='#' | ||
| 5400 | else | ||
| 5401 | am__fastdepCC_TRUE='#' | ||
| 5402 | am__fastdepCC_FALSE= | ||
| 5403 | fi | ||
| 5404 | |||
| 5405 | |||
| 5406 | if test "x$CC" != xcc; then | ||
| 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | ||
| 5408 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | ||
| 5409 | else | ||
| 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | ||
| 5411 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | ||
| 5412 | fi | ||
| 5413 | set dummy $CC; ac_cc=`$as_echo "$2" | | ||
| 5414 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
| 5415 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 5416 | $as_echo_n "(cached) " >&6 | ||
| 5417 | else | ||
| 5418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5419 | /* end confdefs.h. */ | ||
| 5420 | |||
| 5421 | int | ||
| 5422 | main () | ||
| 5423 | { | ||
| 5424 | |||
| 5425 | ; | ||
| 5426 | return 0; | ||
| 5427 | } | ||
| 5428 | _ACEOF | ||
| 5429 | # Make sure it works both with $CC and with simple cc. | ||
| 5430 | # We do the test twice because some compilers refuse to overwrite an | ||
| 5431 | # existing .o file with -o, though they will create one. | ||
| 5432 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
| 5433 | rm -f conftest2.* | ||
| 5434 | if { { case "(($ac_try" in | ||
| 5435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 5436 | *) ac_try_echo=$ac_try;; | ||
| 5437 | esac | ||
| 5438 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 5439 | $as_echo "$ac_try_echo"; } >&5 | ||
| 5440 | (eval "$ac_try") 2>&5 | ||
| 5441 | ac_status=$? | ||
| 5442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 5443 | test $ac_status = 0; } && | ||
| 5444 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
| 5445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 5446 | *) ac_try_echo=$ac_try;; | ||
| 5447 | esac | ||
| 5448 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 5449 | $as_echo "$ac_try_echo"; } >&5 | ||
| 5450 | (eval "$ac_try") 2>&5 | ||
| 5451 | ac_status=$? | ||
| 5452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 5453 | test $ac_status = 0; }; | ||
| 5454 | then | ||
| 5455 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | ||
| 5456 | if test "x$CC" != xcc; then | ||
| 5457 | # Test first that cc exists at all. | ||
| 5458 | if { ac_try='cc -c conftest.$ac_ext >&5' | ||
| 5459 | { { case "(($ac_try" in | ||
| 5460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 5461 | *) ac_try_echo=$ac_try;; | ||
| 5462 | esac | ||
| 5463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 5464 | $as_echo "$ac_try_echo"; } >&5 | ||
| 5465 | (eval "$ac_try") 2>&5 | ||
| 5466 | ac_status=$? | ||
| 5467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 5468 | test $ac_status = 0; }; }; then | ||
| 5469 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
| 5470 | rm -f conftest2.* | ||
| 5471 | if { { case "(($ac_try" in | ||
| 5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 5473 | *) ac_try_echo=$ac_try;; | ||
| 5474 | esac | ||
| 5475 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 5476 | $as_echo "$ac_try_echo"; } >&5 | ||
| 5477 | (eval "$ac_try") 2>&5 | ||
| 5478 | ac_status=$? | ||
| 5479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 5480 | test $ac_status = 0; } && | ||
| 5481 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
| 5482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 5483 | *) ac_try_echo=$ac_try;; | ||
| 5484 | esac | ||
| 5485 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
| 5486 | $as_echo "$ac_try_echo"; } >&5 | ||
| 5487 | (eval "$ac_try") 2>&5 | ||
| 5488 | ac_status=$? | ||
| 5489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
| 5490 | test $ac_status = 0; }; | ||
| 5491 | then | ||
| 5492 | # cc works too. | ||
| 5493 | : | ||
| 5494 | else | ||
| 5495 | # cc exists but doesn't like -o. | ||
| 5496 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
| 5497 | fi | ||
| 5498 | fi | ||
| 5499 | fi | ||
| 5500 | else | ||
| 5501 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
| 5502 | fi | ||
| 5503 | rm -f core conftest* | ||
| 5504 | |||
| 5505 | fi | ||
| 5506 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | ||
| 5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 5508 | $as_echo "yes" >&6; } | ||
| 5509 | else | ||
| 5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 5511 | $as_echo "no" >&6; } | ||
| 5512 | |||
| 5513 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | ||
| 5514 | |||
| 5515 | fi | ||
| 5516 | |||
| 5517 | # FIXME: we rely on the cache variable name because | ||
| 5518 | # there is no other way. | ||
| 5519 | set dummy $CC | ||
| 5520 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
| 5521 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
| 5522 | if test "$am_t" != yes; then | ||
| 5523 | # Losing compiler, so override with the script. | ||
| 5524 | # FIXME: It is wrong to rewrite CC. | ||
| 5525 | # But if we don't then we get into trouble of one sort or another. | ||
| 5526 | # A longer-term fix would be to have automake use am__CC in this case, | ||
| 5527 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
| 5528 | CC="$am_aux_dir/compile $CC" | ||
| 5529 | fi | ||
| 5530 | |||
| 5531 | |||
| 5532 | |||
| 5533 | # Initialize gnulib right after verifying that the C compiler works. | ||
| 5534 | if test -n "$ac_tool_prefix"; then | ||
| 5535 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
| 5536 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
| 5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 5538 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 5539 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
| 5540 | $as_echo_n "(cached) " >&6 | ||
| 5541 | else | ||
| 5542 | if test -n "$RANLIB"; then | ||
| 5543 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
| 5544 | else | ||
| 5545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 5546 | for as_dir in $PATH | ||
| 5547 | do | ||
| 5548 | IFS=$as_save_IFS | ||
| 5549 | test -z "$as_dir" && as_dir=. | ||
| 5550 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 5551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 5552 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
| 5553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 5554 | break 2 | ||
| 5555 | fi | ||
| 5556 | done | ||
| 5557 | done | ||
| 5558 | IFS=$as_save_IFS | ||
| 5559 | |||
| 5560 | fi | ||
| 5561 | fi | ||
| 5562 | RANLIB=$ac_cv_prog_RANLIB | ||
| 5563 | if test -n "$RANLIB"; then | ||
| 5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
| 5565 | $as_echo "$RANLIB" >&6; } | ||
| 5566 | else | ||
| 5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 5568 | $as_echo "no" >&6; } | ||
| 5569 | fi | ||
| 5570 | |||
| 5571 | |||
| 5572 | fi | ||
| 5573 | if test -z "$ac_cv_prog_RANLIB"; then | ||
| 5574 | ac_ct_RANLIB=$RANLIB | ||
| 5575 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
| 5576 | set dummy ranlib; ac_word=$2 | ||
| 5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 5578 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 5579 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
| 5580 | $as_echo_n "(cached) " >&6 | ||
| 5581 | else | ||
| 5582 | if test -n "$ac_ct_RANLIB"; then | ||
| 5583 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
| 5584 | else | ||
| 5585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 5586 | for as_dir in $PATH | ||
| 5587 | do | ||
| 5588 | IFS=$as_save_IFS | ||
| 5589 | test -z "$as_dir" && as_dir=. | ||
| 5590 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 5591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 5592 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
| 5593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 5594 | break 2 | ||
| 5595 | fi | ||
| 5596 | done | ||
| 5597 | done | ||
| 5598 | IFS=$as_save_IFS | ||
| 5599 | |||
| 5600 | fi | ||
| 5601 | fi | ||
| 5602 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
| 5603 | if test -n "$ac_ct_RANLIB"; then | ||
| 5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
| 5605 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
| 5606 | else | ||
| 5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 5608 | $as_echo "no" >&6; } | ||
| 5609 | fi | ||
| 5610 | |||
| 5611 | if test "x$ac_ct_RANLIB" = x; then | ||
| 5612 | RANLIB=":" | ||
| 5613 | else | ||
| 5614 | case $cross_compiling:$ac_tool_warned in | ||
| 5615 | yes:) | ||
| 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
| 5617 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
| 5618 | ac_tool_warned=yes ;; | ||
| 5619 | esac | ||
| 5620 | RANLIB=$ac_ct_RANLIB | ||
| 5621 | fi | ||
| 5622 | else | ||
| 5623 | RANLIB="$ac_cv_prog_RANLIB" | ||
| 5624 | fi | ||
| 5625 | |||
| 5626 | |||
| 5627 | ac_ext=c | ||
| 5628 | ac_cpp='$CPP $CPPFLAGS' | ||
| 5629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 5630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 5631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
| 5633 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
| 5634 | # On Suns, sometimes $CPP names a directory. | ||
| 5635 | if test -n "$CPP" && test -d "$CPP"; then | ||
| 5636 | CPP= | ||
| 5637 | fi | ||
| 5638 | if test -z "$CPP"; then | ||
| 5639 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
| 5640 | $as_echo_n "(cached) " >&6 | ||
| 5641 | else | ||
| 5642 | # Double quotes because CPP needs to be expanded | ||
| 5643 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
| 5644 | do | ||
| 5645 | ac_preproc_ok=false | ||
| 5646 | for ac_c_preproc_warn_flag in '' yes | ||
| 5647 | do | ||
| 5648 | # Use a header file that comes with gcc, so configuring glibc | ||
| 5649 | # with a fresh cross-compiler works. | ||
| 5650 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| 5651 | # <limits.h> exists even on freestanding compilers. | ||
| 5652 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 5653 | # not just through cpp. "Syntax error" is here to catch this case. | ||
| 5654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5655 | /* end confdefs.h. */ | ||
| 5656 | #ifdef __STDC__ | ||
| 5657 | # include <limits.h> | ||
| 5658 | #else | ||
| 5659 | # include <assert.h> | ||
| 5660 | #endif | ||
| 5661 | Syntax error | ||
| 5662 | _ACEOF | ||
| 5663 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 5664 | |||
| 5665 | else | ||
| 5666 | # Broken: fails on valid input. | ||
| 5667 | continue | ||
| 5668 | fi | ||
| 5669 | rm -f conftest.err conftest.$ac_ext | ||
| 5670 | |||
| 5671 | # OK, works on sane cases. Now check whether nonexistent headers | ||
| 5672 | # can be detected and how. | ||
| 5673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5674 | /* end confdefs.h. */ | ||
| 5675 | #include <ac_nonexistent.h> | ||
| 5676 | _ACEOF | ||
| 5677 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 5678 | # Broken: success on invalid input. | ||
| 5679 | continue | ||
| 5680 | else | ||
| 5681 | # Passes both tests. | ||
| 5682 | ac_preproc_ok=: | ||
| 5683 | break | ||
| 5684 | fi | ||
| 5685 | rm -f conftest.err conftest.$ac_ext | ||
| 5686 | |||
| 5687 | done | ||
| 5688 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 5689 | rm -f conftest.err conftest.$ac_ext | ||
| 5690 | if $ac_preproc_ok; then : | ||
| 5691 | break | ||
| 5692 | fi | ||
| 5693 | |||
| 5694 | done | ||
| 5695 | ac_cv_prog_CPP=$CPP | ||
| 5696 | |||
| 5697 | fi | ||
| 5698 | CPP=$ac_cv_prog_CPP | ||
| 5699 | else | ||
| 5700 | ac_cv_prog_CPP=$CPP | ||
| 5701 | fi | ||
| 5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
| 5703 | $as_echo "$CPP" >&6; } | ||
| 5704 | ac_preproc_ok=false | ||
| 5705 | for ac_c_preproc_warn_flag in '' yes | ||
| 5706 | do | ||
| 5707 | # Use a header file that comes with gcc, so configuring glibc | ||
| 5708 | # with a fresh cross-compiler works. | ||
| 5709 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| 5710 | # <limits.h> exists even on freestanding compilers. | ||
| 5711 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 5712 | # not just through cpp. "Syntax error" is here to catch this case. | ||
| 5713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5714 | /* end confdefs.h. */ | ||
| 5715 | #ifdef __STDC__ | ||
| 5716 | # include <limits.h> | ||
| 5717 | #else | ||
| 5718 | # include <assert.h> | ||
| 5719 | #endif | ||
| 5720 | Syntax error | ||
| 5721 | _ACEOF | ||
| 5722 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 5723 | |||
| 5724 | else | ||
| 5725 | # Broken: fails on valid input. | ||
| 5726 | continue | ||
| 5727 | fi | ||
| 5728 | rm -f conftest.err conftest.$ac_ext | ||
| 5729 | |||
| 5730 | # OK, works on sane cases. Now check whether nonexistent headers | ||
| 5731 | # can be detected and how. | ||
| 5732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5733 | /* end confdefs.h. */ | ||
| 5734 | #include <ac_nonexistent.h> | ||
| 5735 | _ACEOF | ||
| 5736 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 5737 | # Broken: success on invalid input. | ||
| 5738 | continue | ||
| 5739 | else | ||
| 5740 | # Passes both tests. | ||
| 5741 | ac_preproc_ok=: | ||
| 5742 | break | ||
| 5743 | fi | ||
| 5744 | rm -f conftest.err conftest.$ac_ext | ||
| 5745 | |||
| 5746 | done | ||
| 5747 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 5748 | rm -f conftest.err conftest.$ac_ext | ||
| 5749 | if $ac_preproc_ok; then : | ||
| 5750 | |||
| 5751 | else | ||
| 5752 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 5753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 5754 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | ||
| 5755 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 5756 | fi | ||
| 5757 | |||
| 5758 | ac_ext=c | ||
| 5759 | ac_cpp='$CPP $CPPFLAGS' | ||
| 5760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 5761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 5762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 5763 | |||
| 5764 | |||
| 5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
| 5766 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
| 5767 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
| 5768 | $as_echo_n "(cached) " >&6 | ||
| 5769 | else | ||
| 5770 | if test -z "$GREP"; then | ||
| 5771 | ac_path_GREP_found=false | ||
| 5772 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
| 5773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 5774 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
| 5775 | do | ||
| 5776 | IFS=$as_save_IFS | ||
| 5777 | test -z "$as_dir" && as_dir=. | ||
| 5778 | for ac_prog in grep ggrep; do | ||
| 5779 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 5780 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
| 5781 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
| 5782 | # Check for GNU ac_path_GREP and select it if it is found. | ||
| 5783 | # Check for GNU $ac_path_GREP | ||
| 5784 | case `"$ac_path_GREP" --version 2>&1` in | ||
| 5785 | *GNU*) | ||
| 5786 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
| 5787 | *) | ||
| 5788 | ac_count=0 | ||
| 5789 | $as_echo_n 0123456789 >"conftest.in" | ||
| 5790 | while : | ||
| 5791 | do | ||
| 5792 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
| 5793 | mv "conftest.tmp" "conftest.in" | ||
| 5794 | cp "conftest.in" "conftest.nl" | ||
| 5795 | $as_echo 'GREP' >> "conftest.nl" | ||
| 5796 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
| 5797 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
| 5798 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
| 5799 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
| 5800 | # Best one so far, save it but keep looking for a better one | ||
| 5801 | ac_cv_path_GREP="$ac_path_GREP" | ||
| 5802 | ac_path_GREP_max=$ac_count | ||
| 5803 | fi | ||
| 5804 | # 10*(2^10) chars as input seems more than enough | ||
| 5805 | test $ac_count -gt 10 && break | ||
| 5806 | done | ||
| 5807 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
| 5808 | esac | ||
| 5809 | |||
| 5810 | $ac_path_GREP_found && break 3 | ||
| 5811 | done | ||
| 5812 | done | ||
| 5813 | done | ||
| 5814 | IFS=$as_save_IFS | ||
| 5815 | if test -z "$ac_cv_path_GREP"; then | ||
| 5816 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
| 5817 | fi | ||
| 5818 | else | ||
| 5819 | ac_cv_path_GREP=$GREP | ||
| 5820 | fi | ||
| 5821 | |||
| 5822 | fi | ||
| 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
| 5824 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
| 5825 | GREP="$ac_cv_path_GREP" | ||
| 5826 | |||
| 5827 | |||
| 5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
| 5829 | $as_echo_n "checking for egrep... " >&6; } | ||
| 5830 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
| 5831 | $as_echo_n "(cached) " >&6 | ||
| 5832 | else | ||
| 5833 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
| 5834 | then ac_cv_path_EGREP="$GREP -E" | ||
| 5835 | else | ||
| 5836 | if test -z "$EGREP"; then | ||
| 5837 | ac_path_EGREP_found=false | ||
| 5838 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
| 5839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 5840 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
| 5841 | do | ||
| 5842 | IFS=$as_save_IFS | ||
| 5843 | test -z "$as_dir" && as_dir=. | ||
| 5844 | for ac_prog in egrep; do | ||
| 5845 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 5846 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
| 5847 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
| 5848 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
| 5849 | # Check for GNU $ac_path_EGREP | ||
| 5850 | case `"$ac_path_EGREP" --version 2>&1` in | ||
| 5851 | *GNU*) | ||
| 5852 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
| 5853 | *) | ||
| 5854 | ac_count=0 | ||
| 5855 | $as_echo_n 0123456789 >"conftest.in" | ||
| 5856 | while : | ||
| 5857 | do | ||
| 5858 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
| 5859 | mv "conftest.tmp" "conftest.in" | ||
| 5860 | cp "conftest.in" "conftest.nl" | ||
| 5861 | $as_echo 'EGREP' >> "conftest.nl" | ||
| 5862 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
| 5863 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
| 5864 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
| 5865 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
| 5866 | # Best one so far, save it but keep looking for a better one | ||
| 5867 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
| 5868 | ac_path_EGREP_max=$ac_count | ||
| 5869 | fi | ||
| 5870 | # 10*(2^10) chars as input seems more than enough | ||
| 5871 | test $ac_count -gt 10 && break | ||
| 5872 | done | ||
| 5873 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
| 5874 | esac | ||
| 5875 | |||
| 5876 | $ac_path_EGREP_found && break 3 | ||
| 5877 | done | ||
| 5878 | done | ||
| 5879 | done | ||
| 5880 | IFS=$as_save_IFS | ||
| 5881 | if test -z "$ac_cv_path_EGREP"; then | ||
| 5882 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
| 5883 | fi | ||
| 5884 | else | ||
| 5885 | ac_cv_path_EGREP=$EGREP | ||
| 5886 | fi | ||
| 5887 | |||
| 5888 | fi | ||
| 5889 | fi | ||
| 5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
| 5891 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
| 5892 | EGREP="$ac_cv_path_EGREP" | ||
| 5893 | |||
| 5894 | |||
| 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
| 5896 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
| 5897 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
| 5898 | $as_echo_n "(cached) " >&6 | ||
| 5899 | else | ||
| 5900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5901 | /* end confdefs.h. */ | ||
| 5902 | #include <stdlib.h> | ||
| 5903 | #include <stdarg.h> | ||
| 5904 | #include <string.h> | ||
| 5905 | #include <float.h> | ||
| 5906 | |||
| 5907 | int | ||
| 5908 | main () | ||
| 5909 | { | ||
| 5910 | |||
| 5911 | ; | ||
| 5912 | return 0; | ||
| 5913 | } | ||
| 5914 | _ACEOF | ||
| 5915 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 5916 | ac_cv_header_stdc=yes | ||
| 5917 | else | ||
| 5918 | ac_cv_header_stdc=no | ||
| 5919 | fi | ||
| 5920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 5921 | |||
| 5922 | if test $ac_cv_header_stdc = yes; then | ||
| 5923 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
| 5924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5925 | /* end confdefs.h. */ | ||
| 5926 | #include <string.h> | ||
| 5927 | |||
| 5928 | _ACEOF | ||
| 5929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5930 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
| 5931 | |||
| 5932 | else | ||
| 5933 | ac_cv_header_stdc=no | ||
| 5934 | fi | ||
| 5935 | rm -f conftest* | ||
| 5936 | |||
| 5937 | fi | ||
| 5938 | |||
| 5939 | if test $ac_cv_header_stdc = yes; then | ||
| 5940 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
| 5941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5942 | /* end confdefs.h. */ | ||
| 5943 | #include <stdlib.h> | ||
| 5944 | |||
| 5945 | _ACEOF | ||
| 5946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5947 | $EGREP "free" >/dev/null 2>&1; then : | ||
| 5948 | |||
| 5949 | else | ||
| 5950 | ac_cv_header_stdc=no | ||
| 5951 | fi | ||
| 5952 | rm -f conftest* | ||
| 5953 | |||
| 5954 | fi | ||
| 5955 | |||
| 5956 | if test $ac_cv_header_stdc = yes; then | ||
| 5957 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
| 5958 | if test "$cross_compiling" = yes; then : | ||
| 5959 | : | ||
| 5960 | else | ||
| 5961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 5962 | /* end confdefs.h. */ | ||
| 5963 | #include <ctype.h> | ||
| 5964 | #include <stdlib.h> | ||
| 5965 | #if ((' ' & 0x0FF) == 0x020) | ||
| 5966 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
| 5967 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
| 5968 | #else | ||
| 5969 | # define ISLOWER(c) \ | ||
| 5970 | (('a' <= (c) && (c) <= 'i') \ | ||
| 5971 | || ('j' <= (c) && (c) <= 'r') \ | ||
| 5972 | || ('s' <= (c) && (c) <= 'z')) | ||
| 5973 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
| 5974 | #endif | ||
| 5975 | |||
| 5976 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
| 5977 | int | ||
| 5978 | main () | ||
| 5979 | { | ||
| 5980 | int i; | ||
| 5981 | for (i = 0; i < 256; i++) | ||
| 5982 | if (XOR (islower (i), ISLOWER (i)) | ||
| 5983 | || toupper (i) != TOUPPER (i)) | ||
| 5984 | return 2; | ||
| 5985 | return 0; | ||
| 5986 | } | ||
| 5987 | _ACEOF | ||
| 5988 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 5989 | |||
| 5990 | else | ||
| 5991 | ac_cv_header_stdc=no | ||
| 5992 | fi | ||
| 5993 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 5994 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 5995 | fi | ||
| 5996 | |||
| 5997 | fi | ||
| 5998 | fi | ||
| 5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
| 6000 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
| 6001 | if test $ac_cv_header_stdc = yes; then | ||
| 6002 | |||
| 6003 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
| 6004 | |||
| 6005 | fi | ||
| 6006 | |||
| 6007 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
| 6008 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
| 6009 | inttypes.h stdint.h unistd.h | ||
| 6010 | do : | ||
| 6011 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 6012 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
| 6013 | " | ||
| 6014 | eval as_val=\$$as_ac_Header | ||
| 6015 | if test "x$as_val" = x""yes; then : | ||
| 6016 | cat >>confdefs.h <<_ACEOF | ||
| 6017 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 6018 | _ACEOF | ||
| 6019 | |||
| 6020 | fi | ||
| 6021 | |||
| 6022 | done | ||
| 6023 | |||
| 6024 | |||
| 6025 | |||
| 6026 | |||
| 6027 | |||
| 6028 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
| 6029 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
| 6030 | MINIX=yes | ||
| 6031 | else | ||
| 6032 | MINIX= | ||
| 6033 | fi | ||
| 6034 | |||
| 6035 | |||
| 6036 | if test "$MINIX" = yes; then | ||
| 6037 | |||
| 6038 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
| 6039 | |||
| 6040 | |||
| 6041 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
| 6042 | |||
| 6043 | |||
| 6044 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
| 6045 | |||
| 6046 | fi | ||
| 6047 | |||
| 6048 | case "$host_os" in | ||
| 6049 | hpux*) | ||
| 6050 | |||
| 6051 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h | ||
| 6052 | |||
| 6053 | ;; | ||
| 6054 | esac | ||
| 6055 | |||
| 6056 | |||
| 6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
| 6058 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
| 6059 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
| 6060 | $as_echo_n "(cached) " >&6 | ||
| 6061 | else | ||
| 6062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6063 | /* end confdefs.h. */ | ||
| 6064 | |||
| 6065 | # define __EXTENSIONS__ 1 | ||
| 6066 | $ac_includes_default | ||
| 6067 | int | ||
| 6068 | main () | ||
| 6069 | { | ||
| 6070 | |||
| 6071 | ; | ||
| 6072 | return 0; | ||
| 6073 | } | ||
| 6074 | _ACEOF | ||
| 6075 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 6076 | ac_cv_safe_to_define___extensions__=yes | ||
| 6077 | else | ||
| 6078 | ac_cv_safe_to_define___extensions__=no | ||
| 6079 | fi | ||
| 6080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 6081 | fi | ||
| 6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
| 6083 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
| 6084 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
| 6085 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
| 6086 | |||
| 6087 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
| 6088 | |||
| 6089 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
| 6090 | |||
| 6091 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
| 6092 | |||
| 6093 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
| 6094 | |||
| 6095 | |||
| 6096 | |||
| 6097 | |||
| 6098 | |||
| 6099 | |||
| 6100 | |||
| 6101 | |||
| 6102 | |||
| 6103 | |||
| 6104 | # Code from module arg-nonnull: | ||
| 6105 | # Code from module c++defs: | ||
| 6106 | # Code from module crypto/md5: | ||
| 6107 | # Code from module dosname: | ||
| 6108 | # Code from module dtoastr: | ||
| 6109 | # Code from module extensions: | ||
| 6110 | |||
| 6111 | # Code from module filemode: | ||
| 6112 | # Code from module getloadavg: | ||
| 6113 | # Code from module getopt-gnu: | ||
| 6114 | # Code from module getopt-posix: | ||
| 6115 | # Code from module gettext-h: | ||
| 6116 | # Code from module ignore-value: | ||
| 6117 | # Code from module include_next: | ||
| 6118 | # Code from module intprops: | ||
| 6119 | # Code from module lstat: | ||
| 6120 | # Code from module mktime: | ||
| 6121 | # Code from module multiarch: | ||
| 6122 | # Code from module readlink: | ||
| 6123 | # Code from module stat: | ||
| 6124 | # Code from module stdbool: | ||
| 6125 | # Code from module stddef: | ||
| 6126 | # Code from module stdint: | ||
| 6127 | # Code from module stdlib: | ||
| 6128 | # Code from module strftime: | ||
| 6129 | # Code from module symlink: | ||
| 6130 | # Code from module sys_stat: | ||
| 6131 | # Code from module time: | ||
| 6132 | # Code from module time_r: | ||
| 6133 | # Code from module unistd: | ||
| 6134 | # Code from module warn-on-use: | ||
| 6135 | |||
| 6136 | |||
| 6137 | # On Suns, sometimes $CPP names a directory. | ||
| 6138 | if test -n "$CPP" && test -d "$CPP"; then | ||
| 6139 | CPP= | ||
| 6140 | fi | ||
| 6141 | |||
| 6142 | ## If not using gcc, and on Solaris, and no CPP specified, see if | ||
| 6143 | ## using a Sun compiler, which needs -Xs to prevent whitespace. | ||
| 6144 | if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | ||
| 6145 | test x"$CPP" = x; then | ||
| 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 | ||
| 6147 | $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } | ||
| 6148 | if test "${emacs_cv_sunpro_c+set}" = set; then : | ||
| 6149 | $as_echo_n "(cached) " >&6 | ||
| 6150 | else | ||
| 6151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6152 | /* end confdefs.h. */ | ||
| 6153 | |||
| 6154 | int | ||
| 6155 | main () | ||
| 6156 | { | ||
| 6157 | #ifndef __SUNPRO_C | ||
| 6158 | fail; | ||
| 6159 | #endif | ||
| 6160 | |||
| 6161 | ; | ||
| 6162 | return 0; | ||
| 6163 | } | ||
| 6164 | _ACEOF | ||
| 6165 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 6166 | emacs_cv_sunpro_c=yes | ||
| 6167 | else | ||
| 6168 | emacs_cv_sunpro_c=no | ||
| 6169 | fi | ||
| 6170 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 6171 | conftest$ac_exeext conftest.$ac_ext | ||
| 6172 | fi | ||
| 6173 | |||
| 6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 | ||
| 6175 | $as_echo "$emacs_cv_sunpro_c" >&6; } | ||
| 6176 | |||
| 6177 | if test x"$emacs_cv_sunpro_c" = xyes; then | ||
| 6178 | NON_GNU_CPP="$CC -E -Xs" | ||
| 6179 | fi | ||
| 6180 | fi | ||
| 6181 | |||
| 6182 | #### Some systems specify a CPP to use unless we are using GCC. | ||
| 6183 | #### Now that we know whether we are using GCC, we can decide whether | ||
| 6184 | #### to use that one. | ||
| 6185 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | ||
| 6186 | then | ||
| 6187 | CPP="$NON_GNU_CPP" | ||
| 6188 | fi | ||
| 6189 | |||
| 6190 | #### Some systems specify a CC to use unless we are using GCC. | ||
| 6191 | #### Now that we know whether we are using GCC, we can decide whether | ||
| 6192 | #### to use that one. | ||
| 6193 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | ||
| 6194 | test x$cc_specified != xyes | ||
| 6195 | then | ||
| 6196 | CC="$NON_GNU_CC" | ||
| 6197 | fi | ||
| 6198 | |||
| 6199 | if test x$GCC = xyes; then | ||
| 6200 | test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS" | ||
| 6201 | else | ||
| 6202 | test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" | ||
| 6203 | fi | ||
| 6204 | |||
| 6205 | ### Use -Wdeclaration-after-statement if the compiler supports it | ||
| 6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 | ||
| 6207 | $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } | ||
| 6208 | SAVE_CFLAGS="$CFLAGS" | ||
| 6209 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" | ||
| 6210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6211 | /* end confdefs.h. */ | ||
| 6212 | |||
| 6213 | int | ||
| 6214 | main () | ||
| 6215 | { | ||
| 6216 | |||
| 6217 | ; | ||
| 6218 | return 0; | ||
| 6219 | } | ||
| 6220 | _ACEOF | ||
| 6221 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 6222 | has_option=yes | ||
| 6223 | else | ||
| 6224 | has_option=no | ||
| 6225 | fi | ||
| 6226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 6227 | if test $has_option = yes; then | ||
| 6228 | C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" | ||
| 6229 | fi | ||
| 6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | ||
| 6231 | $as_echo "$has_option" >&6; } | ||
| 6232 | CFLAGS="$SAVE_CFLAGS" | ||
| 6233 | unset has_option | ||
| 6234 | unset SAVE_CFLAGS | ||
| 6235 | |||
| 6236 | ### Use -Wold-style-definition if the compiler supports it | ||
| 6237 | # This can be removed when conversion to standard C is finished. | ||
| 6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5 | ||
| 6239 | $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; } | ||
| 6240 | SAVE_CFLAGS="$CFLAGS" | ||
| 6241 | CFLAGS="$CFLAGS -Wold-style-definition" | ||
| 6242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6243 | /* end confdefs.h. */ | ||
| 6244 | |||
| 6245 | int | ||
| 6246 | main () | ||
| 6247 | { | ||
| 6248 | |||
| 6249 | ; | ||
| 6250 | return 0; | ||
| 6251 | } | ||
| 6252 | _ACEOF | ||
| 6253 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 6254 | has_option=yes | ||
| 6255 | else | ||
| 6256 | has_option=no | ||
| 6257 | fi | ||
| 6258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 6259 | if test $has_option = yes; then | ||
| 6260 | C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH" | ||
| 6261 | fi | ||
| 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | ||
| 6263 | $as_echo "$has_option" >&6; } | ||
| 6264 | CFLAGS="$SAVE_CFLAGS" | ||
| 6265 | unset has_option | ||
| 6266 | unset SAVE_CFLAGS | ||
| 6267 | |||
| 6268 | ### Use -Wimplicit-function-declaration if the compiler supports it | ||
| 6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5 | ||
| 6270 | $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; } | ||
| 6271 | SAVE_CFLAGS="$CFLAGS" | ||
| 6272 | CFLAGS="$CFLAGS -Wimplicit-function-declaration" | ||
| 6273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6274 | /* end confdefs.h. */ | ||
| 6275 | |||
| 6276 | int | ||
| 6277 | main () | ||
| 6278 | { | ||
| 6279 | |||
| 6280 | ; | ||
| 6281 | return 0; | ||
| 6282 | } | ||
| 6283 | _ACEOF | ||
| 6284 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 6285 | has_option=yes | ||
| 6286 | else | ||
| 6287 | has_option=no | ||
| 6288 | fi | ||
| 6289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 6290 | if test $has_option = yes; then | ||
| 6291 | C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH" | ||
| 6292 | fi | ||
| 6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | ||
| 6294 | $as_echo "$has_option" >&6; } | ||
| 6295 | CFLAGS="$SAVE_CFLAGS" | ||
| 6296 | unset has_option | ||
| 6297 | unset SAVE_CFLAGS | ||
| 6298 | |||
| 6299 | |||
| 6300 | |||
| 6301 | |||
| 6302 | #### Some other nice autoconf tests. | ||
| 6303 | |||
| 6304 | ac_ext=c | ||
| 6305 | ac_cpp='$CPP $CPPFLAGS' | ||
| 6306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 6307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 6308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
| 6310 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
| 6311 | # On Suns, sometimes $CPP names a directory. | ||
| 6312 | if test -n "$CPP" && test -d "$CPP"; then | ||
| 6313 | CPP= | ||
| 6314 | fi | ||
| 6315 | if test -z "$CPP"; then | ||
| 6316 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
| 6317 | $as_echo_n "(cached) " >&6 | ||
| 6318 | else | ||
| 6319 | # Double quotes because CPP needs to be expanded | ||
| 6320 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
| 6321 | do | ||
| 6322 | ac_preproc_ok=false | ||
| 6323 | for ac_c_preproc_warn_flag in '' yes | ||
| 6324 | do | ||
| 6325 | # Use a header file that comes with gcc, so configuring glibc | ||
| 6326 | # with a fresh cross-compiler works. | ||
| 6327 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| 6328 | # <limits.h> exists even on freestanding compilers. | ||
| 6329 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 6330 | # not just through cpp. "Syntax error" is here to catch this case. | ||
| 6331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6332 | /* end confdefs.h. */ | ||
| 6333 | #ifdef __STDC__ | ||
| 6334 | # include <limits.h> | ||
| 6335 | #else | ||
| 6336 | # include <assert.h> | ||
| 6337 | #endif | ||
| 6338 | Syntax error | ||
| 6339 | _ACEOF | ||
| 6340 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 6341 | |||
| 6342 | else | ||
| 6343 | # Broken: fails on valid input. | ||
| 6344 | continue | ||
| 6345 | fi | ||
| 6346 | rm -f conftest.err conftest.$ac_ext | ||
| 6347 | |||
| 6348 | # OK, works on sane cases. Now check whether nonexistent headers | ||
| 6349 | # can be detected and how. | ||
| 6350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6351 | /* end confdefs.h. */ | ||
| 6352 | #include <ac_nonexistent.h> | ||
| 6353 | _ACEOF | ||
| 6354 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 6355 | # Broken: success on invalid input. | ||
| 6356 | continue | ||
| 6357 | else | ||
| 6358 | # Passes both tests. | ||
| 6359 | ac_preproc_ok=: | ||
| 6360 | break | ||
| 6361 | fi | ||
| 6362 | rm -f conftest.err conftest.$ac_ext | ||
| 6363 | |||
| 6364 | done | ||
| 6365 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 6366 | rm -f conftest.err conftest.$ac_ext | ||
| 6367 | if $ac_preproc_ok; then : | ||
| 6368 | break | ||
| 6369 | fi | ||
| 6370 | |||
| 6371 | done | ||
| 6372 | ac_cv_prog_CPP=$CPP | ||
| 6373 | |||
| 6374 | fi | ||
| 6375 | CPP=$ac_cv_prog_CPP | ||
| 6376 | else | ||
| 6377 | ac_cv_prog_CPP=$CPP | ||
| 6378 | fi | ||
| 6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
| 6380 | $as_echo "$CPP" >&6; } | ||
| 6381 | ac_preproc_ok=false | ||
| 6382 | for ac_c_preproc_warn_flag in '' yes | ||
| 6383 | do | ||
| 6384 | # Use a header file that comes with gcc, so configuring glibc | ||
| 6385 | # with a fresh cross-compiler works. | ||
| 6386 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| 6387 | # <limits.h> exists even on freestanding compilers. | ||
| 6388 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 6389 | # not just through cpp. "Syntax error" is here to catch this case. | ||
| 6390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6391 | /* end confdefs.h. */ | ||
| 6392 | #ifdef __STDC__ | ||
| 6393 | # include <limits.h> | ||
| 6394 | #else | ||
| 6395 | # include <assert.h> | ||
| 6396 | #endif | ||
| 6397 | Syntax error | ||
| 6398 | _ACEOF | ||
| 6399 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 6400 | |||
| 6401 | else | ||
| 6402 | # Broken: fails on valid input. | ||
| 6403 | continue | ||
| 6404 | fi | ||
| 6405 | rm -f conftest.err conftest.$ac_ext | ||
| 6406 | |||
| 6407 | # OK, works on sane cases. Now check whether nonexistent headers | ||
| 6408 | # can be detected and how. | ||
| 6409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6410 | /* end confdefs.h. */ | ||
| 6411 | #include <ac_nonexistent.h> | ||
| 6412 | _ACEOF | ||
| 6413 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 6414 | # Broken: success on invalid input. | ||
| 6415 | continue | ||
| 6416 | else | ||
| 6417 | # Passes both tests. | ||
| 6418 | ac_preproc_ok=: | ||
| 6419 | break | ||
| 6420 | fi | ||
| 6421 | rm -f conftest.err conftest.$ac_ext | ||
| 6422 | |||
| 6423 | done | ||
| 6424 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 6425 | rm -f conftest.err conftest.$ac_ext | ||
| 6426 | if $ac_preproc_ok; then : | ||
| 6427 | |||
| 6428 | else | ||
| 6429 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 6430 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 6431 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | ||
| 6432 | See \`config.log' for more details." "$LINENO" 5; } | ||
| 6433 | fi | ||
| 6434 | |||
| 6435 | ac_ext=c | ||
| 6436 | ac_cpp='$CPP $CPPFLAGS' | ||
| 6437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 6438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 6439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 6440 | |||
| 6441 | |||
| 6442 | if test "x$RANLIB" = x; then | ||
| 6443 | if test -n "$ac_tool_prefix"; then | ||
| 6444 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
| 6445 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
| 6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 6447 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 6448 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
| 6449 | $as_echo_n "(cached) " >&6 | ||
| 6450 | else | ||
| 6451 | if test -n "$RANLIB"; then | ||
| 6452 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
| 6453 | else | ||
| 6454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 6455 | for as_dir in $PATH | ||
| 6456 | do | ||
| 6457 | IFS=$as_save_IFS | ||
| 6458 | test -z "$as_dir" && as_dir=. | ||
| 6459 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 6460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 6461 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
| 6462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 6463 | break 2 | ||
| 6464 | fi | ||
| 6465 | done | ||
| 6466 | done | ||
| 6467 | IFS=$as_save_IFS | ||
| 6468 | |||
| 6469 | fi | ||
| 6470 | fi | ||
| 6471 | RANLIB=$ac_cv_prog_RANLIB | ||
| 6472 | if test -n "$RANLIB"; then | ||
| 6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
| 6474 | $as_echo "$RANLIB" >&6; } | ||
| 6475 | else | ||
| 6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6477 | $as_echo "no" >&6; } | ||
| 6478 | fi | ||
| 6479 | |||
| 6480 | |||
| 6481 | fi | ||
| 6482 | if test -z "$ac_cv_prog_RANLIB"; then | ||
| 6483 | ac_ct_RANLIB=$RANLIB | ||
| 6484 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
| 6485 | set dummy ranlib; ac_word=$2 | ||
| 6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 6487 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 6488 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
| 6489 | $as_echo_n "(cached) " >&6 | ||
| 6490 | else | ||
| 6491 | if test -n "$ac_ct_RANLIB"; then | ||
| 6492 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
| 6493 | else | ||
| 6494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 6495 | for as_dir in $PATH | ||
| 6496 | do | ||
| 6497 | IFS=$as_save_IFS | ||
| 6498 | test -z "$as_dir" && as_dir=. | ||
| 6499 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 6500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 6501 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
| 6502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 6503 | break 2 | ||
| 6504 | fi | ||
| 6505 | done | ||
| 6506 | done | ||
| 6507 | IFS=$as_save_IFS | ||
| 6508 | |||
| 6509 | fi | ||
| 6510 | fi | ||
| 6511 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
| 6512 | if test -n "$ac_ct_RANLIB"; then | ||
| 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
| 6514 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
| 6515 | else | ||
| 6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6517 | $as_echo "no" >&6; } | ||
| 6518 | fi | ||
| 6519 | |||
| 6520 | if test "x$ac_ct_RANLIB" = x; then | ||
| 6521 | RANLIB=":" | ||
| 6522 | else | ||
| 6523 | case $cross_compiling:$ac_tool_warned in | ||
| 6524 | yes:) | ||
| 6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
| 6526 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
| 6527 | ac_tool_warned=yes ;; | ||
| 6528 | esac | ||
| 6529 | RANLIB=$ac_ct_RANLIB | ||
| 6530 | fi | ||
| 6531 | else | ||
| 6532 | RANLIB="$ac_cv_prog_RANLIB" | ||
| 6533 | fi | ||
| 6534 | |||
| 6535 | fi | ||
| 6536 | |||
| 6537 | ## Although we're running on an amd64 kernel, we're actually compiling for | ||
| 6538 | ## the x86 architecture. The user should probably have provided an | ||
| 6539 | ## explicit --build to `configure', but if everything else than the kernel | ||
| 6540 | ## is running in i386 mode, we can help them out. | ||
| 6541 | if test "$machine" = "amdx86-64"; then | ||
| 6542 | ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" | ||
| 6543 | if test "x$ac_cv_have_decl_i386" = x""yes; then : | ||
| 6544 | |||
| 6545 | fi | ||
| 6546 | |||
| 6547 | if test "$ac_cv_have_decl_i386" = "yes"; then | ||
| 6548 | canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` | ||
| 6549 | machine=intel386 | ||
| 6550 | machfile="m/${machine}.h" | ||
| 6551 | fi | ||
| 6552 | fi | ||
| 6553 | |||
| 6554 | # Extract the first word of "install-info", so it can be a program name with args. | ||
| 6555 | set dummy install-info; ac_word=$2 | ||
| 6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 6557 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 6558 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : | ||
| 6559 | $as_echo_n "(cached) " >&6 | ||
| 6560 | else | ||
| 6561 | case $INSTALL_INFO in | ||
| 6562 | [\\/]* | ?:[\\/]*) | ||
| 6563 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | ||
| 6564 | ;; | ||
| 6565 | *) | ||
| 6566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 6567 | for as_dir in $PATH | ||
| 6568 | do | ||
| 6569 | IFS=$as_save_IFS | ||
| 6570 | test -z "$as_dir" && as_dir=. | ||
| 6571 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 6572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 6573 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | ||
| 6574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 6575 | break 2 | ||
| 6576 | fi | ||
| 6577 | done | ||
| 6578 | done | ||
| 6579 | IFS=$as_save_IFS | ||
| 6580 | |||
| 6581 | ;; | ||
| 6582 | esac | ||
| 6583 | fi | ||
| 6584 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | ||
| 6585 | if test -n "$INSTALL_INFO"; then | ||
| 6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 | ||
| 6587 | $as_echo "$INSTALL_INFO" >&6; } | ||
| 6588 | else | ||
| 6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6590 | $as_echo "no" >&6; } | ||
| 6591 | fi | ||
| 6592 | |||
| 6593 | |||
| 6594 | # Extract the first word of "install-info", so it can be a program name with args. | ||
| 6595 | set dummy install-info; ac_word=$2 | ||
| 6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 6597 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 6598 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : | ||
| 6599 | $as_echo_n "(cached) " >&6 | ||
| 6600 | else | ||
| 6601 | case $INSTALL_INFO in | ||
| 6602 | [\\/]* | ?:[\\/]*) | ||
| 6603 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | ||
| 6604 | ;; | ||
| 6605 | *) | ||
| 6606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 6607 | for as_dir in /usr/sbin | ||
| 6608 | do | ||
| 6609 | IFS=$as_save_IFS | ||
| 6610 | test -z "$as_dir" && as_dir=. | ||
| 6611 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 6612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 6613 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | ||
| 6614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 6615 | break 2 | ||
| 6616 | fi | ||
| 6617 | done | ||
| 6618 | done | ||
| 6619 | IFS=$as_save_IFS | ||
| 6620 | |||
| 6621 | ;; | ||
| 6622 | esac | ||
| 6623 | fi | ||
| 6624 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | ||
| 6625 | if test -n "$INSTALL_INFO"; then | ||
| 6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 | ||
| 6627 | $as_echo "$INSTALL_INFO" >&6; } | ||
| 6628 | else | ||
| 6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6630 | $as_echo "no" >&6; } | ||
| 6631 | fi | ||
| 6632 | |||
| 6633 | |||
| 6634 | # Extract the first word of "install-info", so it can be a program name with args. | ||
| 6635 | set dummy install-info; ac_word=$2 | ||
| 6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 6637 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 6638 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : | ||
| 6639 | $as_echo_n "(cached) " >&6 | ||
| 6640 | else | ||
| 6641 | case $INSTALL_INFO in | ||
| 6642 | [\\/]* | ?:[\\/]*) | ||
| 6643 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | ||
| 6644 | ;; | ||
| 6645 | *) | ||
| 6646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 6647 | for as_dir in /sbin | ||
| 6648 | do | ||
| 6649 | IFS=$as_save_IFS | ||
| 6650 | test -z "$as_dir" && as_dir=. | ||
| 6651 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 6652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 6653 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | ||
| 6654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 6655 | break 2 | ||
| 6656 | fi | ||
| 6657 | done | ||
| 6658 | done | ||
| 6659 | IFS=$as_save_IFS | ||
| 6660 | |||
| 6661 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | ||
| 6662 | ;; | ||
| 6663 | esac | ||
| 6664 | fi | ||
| 6665 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | ||
| 6666 | if test -n "$INSTALL_INFO"; then | ||
| 6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 | ||
| 6668 | $as_echo "$INSTALL_INFO" >&6; } | ||
| 6669 | else | ||
| 6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6671 | $as_echo "no" >&6; } | ||
| 6672 | fi | ||
| 6673 | |||
| 6674 | |||
| 6675 | # Extract the first word of "gzip", so it can be a program name with args. | ||
| 6676 | set dummy gzip; ac_word=$2 | ||
| 6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 6678 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 6679 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then : | ||
| 6680 | $as_echo_n "(cached) " >&6 | ||
| 6681 | else | ||
| 6682 | case $GZIP_PROG in | ||
| 6683 | [\\/]* | ?:[\\/]*) | ||
| 6684 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. | ||
| 6685 | ;; | ||
| 6686 | *) | ||
| 6687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 6688 | for as_dir in $PATH | ||
| 6689 | do | ||
| 6690 | IFS=$as_save_IFS | ||
| 6691 | test -z "$as_dir" && as_dir=. | ||
| 6692 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 6693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 6694 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
| 6695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 6696 | break 2 | ||
| 6697 | fi | ||
| 6698 | done | ||
| 6699 | done | ||
| 6700 | IFS=$as_save_IFS | ||
| 6701 | |||
| 6702 | ;; | ||
| 6703 | esac | ||
| 6704 | fi | ||
| 6705 | GZIP_PROG=$ac_cv_path_GZIP_PROG | ||
| 6706 | if test -n "$GZIP_PROG"; then | ||
| 6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 | ||
| 6708 | $as_echo "$GZIP_PROG" >&6; } | ||
| 6709 | else | ||
| 6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6711 | $as_echo "no" >&6; } | ||
| 6712 | fi | ||
| 6713 | |||
| 6714 | |||
| 6715 | |||
| 6716 | |||
| 6717 | ## Need makeinfo >= 4.6 (?) to build the manuals. | ||
| 6718 | # Extract the first word of "makeinfo", so it can be a program name with args. | ||
| 6719 | set dummy makeinfo; ac_word=$2 | ||
| 6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 6721 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 6722 | if test "${ac_cv_path_MAKEINFO+set}" = set; then : | ||
| 6723 | $as_echo_n "(cached) " >&6 | ||
| 6724 | else | ||
| 6725 | case $MAKEINFO in | ||
| 6726 | [\\/]* | ?:[\\/]*) | ||
| 6727 | ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. | ||
| 6728 | ;; | ||
| 6729 | *) | ||
| 6730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 6731 | for as_dir in $PATH | ||
| 6732 | do | ||
| 6733 | IFS=$as_save_IFS | ||
| 6734 | test -z "$as_dir" && as_dir=. | ||
| 6735 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 6736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 6737 | ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" | ||
| 6738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 6739 | break 2 | ||
| 6740 | fi | ||
| 6741 | done | ||
| 6742 | done | ||
| 6743 | IFS=$as_save_IFS | ||
| 6744 | |||
| 6745 | test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" | ||
| 6746 | ;; | ||
| 6747 | esac | ||
| 6748 | fi | ||
| 6749 | MAKEINFO=$ac_cv_path_MAKEINFO | ||
| 6750 | if test -n "$MAKEINFO"; then | ||
| 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | ||
| 6752 | $as_echo "$MAKEINFO" >&6; } | ||
| 6753 | else | ||
| 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6755 | $as_echo "no" >&6; } | ||
| 6756 | fi | ||
| 6757 | |||
| 6758 | |||
| 6759 | if test "$MAKEINFO" != "no" && \ | ||
| 6760 | test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then | ||
| 6761 | MAKEINFO=no | ||
| 6762 | fi | ||
| 6763 | |||
| 6764 | ## Makeinfo is unusual. For a released Emacs, the manuals are | ||
| 6765 | ## pre-built, and not deleted by the normal clean rules. makeinfo is | ||
| 6766 | ## therefore in the category of "special tools" not normally required, which | ||
| 6767 | ## configure does not have to check for (eg autoconf itself). | ||
| 6768 | ## In a Bazaar checkout on the other hand, the manuals are not included. | ||
| 6769 | ## So makeinfo is a requirement to build from Bazaar, and configure | ||
| 6770 | ## should test for it as it does for any other build requirement. | ||
| 6771 | ## We use the presence of $srcdir/info/emacs to distinguish a release, | ||
| 6772 | ## with pre-built manuals, from a Bazaar checkout. | ||
| 6773 | HAVE_MAKEINFO=yes | ||
| 6774 | |||
| 6775 | if test "$MAKEINFO" = "no"; then | ||
| 6776 | MAKEINFO=makeinfo | ||
| 6777 | if test "x${with_makeinfo}" = "xno"; then | ||
| 6778 | HAVE_MAKEINFO=no | ||
| 6779 | elif test ! -e $srcdir/info/emacs; then | ||
| 6780 | as_fn_error "You do not seem to have makeinfo >= 4.6, and your | ||
| 6781 | source tree does not seem to have pre-built manuals in the \`info' directory. | ||
| 6782 | Either install a suitable version of makeinfo, or re-run configure | ||
| 6783 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 | ||
| 6784 | fi | ||
| 6785 | fi | ||
| 6786 | |||
| 6787 | |||
| 6788 | |||
| 6789 | if test x$GCC = xyes; then | ||
| 6790 | test "x$GCC_LINK_TEST_OPTIONS" != x && \ | ||
| 6791 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | ||
| 6792 | else | ||
| 6793 | test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \ | ||
| 6794 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | ||
| 6795 | fi | ||
| 6796 | |||
| 6797 | |||
| 6798 | late_LDFLAGS=$LDFLAGS | ||
| 6799 | if test x$GCC = xyes; then | ||
| 6800 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" | ||
| 6801 | else | ||
| 6802 | LDFLAGS="$LDFLAGS -znocombreloc" | ||
| 6803 | fi | ||
| 6804 | |||
| 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 | ||
| 6806 | $as_echo_n "checking for -znocombreloc... " >&6; } | ||
| 6807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6808 | /* end confdefs.h. */ | ||
| 6809 | |||
| 6810 | int | ||
| 6811 | main () | ||
| 6812 | { | ||
| 6813 | |||
| 6814 | ; | ||
| 6815 | return 0; | ||
| 6816 | } | ||
| 6817 | _ACEOF | ||
| 6818 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 6820 | $as_echo "yes" >&6; } | ||
| 6821 | else | ||
| 6822 | LDFLAGS=$late_LDFLAGS | ||
| 6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 6824 | $as_echo "no" >&6; } | ||
| 6825 | fi | ||
| 6826 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 6827 | conftest$ac_exeext conftest.$ac_ext | ||
| 6828 | |||
| 6829 | |||
| 6830 | # The value of CPP is a quoted variable reference, so we need to do this | ||
| 6831 | # to get its actual value... | ||
| 6832 | CPP=`eval "echo $CPP"` | ||
| 6833 | |||
| 6834 | |||
| 6835 | test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no | ||
| 6836 | case "$opsys" in | ||
| 6837 | your-opsys-here) CANNOT_DUMP=yes ;; | ||
| 6838 | esac | ||
| 6839 | |||
| 6840 | test "$CANNOT_DUMP" = "yes" && \ | ||
| 6841 | |||
| 6842 | $as_echo "#define CANNOT_DUMP 1" >>confdefs.h | ||
| 6843 | |||
| 6844 | |||
| 6845 | |||
| 6846 | |||
| 6847 | |||
| 6848 | UNEXEC_OBJ=unexelf.o | ||
| 6849 | case "$opsys" in | ||
| 6850 | # MSDOS uses unexcoff.o | ||
| 6851 | # MSWindows uses unexw32.o | ||
| 6852 | aix4-2) | ||
| 6853 | UNEXEC_OBJ=unexaix.o | ||
| 6854 | ;; | ||
| 6855 | cygwin) | ||
| 6856 | UNEXEC_OBJ=unexcw.o | ||
| 6857 | ;; | ||
| 6858 | darwin) | ||
| 6859 | UNEXEC_OBJ=unexmacosx.o | ||
| 6860 | ;; | ||
| 6861 | hpux10-20 | hpux11) | ||
| 6862 | UNEXEC_OBJ=unexhp9k800.o | ||
| 6863 | ;; | ||
| 6864 | sol2-10) | ||
| 6865 | # Use the Solaris dldump() function, called from unexsol.c, to dump | ||
| 6866 | # emacs, instead of the generic ELF dump code found in unexelf.c. | ||
| 6867 | # The resulting binary has a complete symbol table, and is better | ||
| 6868 | # for debugging and other observability tools (debuggers, pstack, etc). | ||
| 6869 | # | ||
| 6870 | # If you encounter a problem using dldump(), please consider sending | ||
| 6871 | # a message to the OpenSolaris tools-linking mailing list: | ||
| 6872 | # http://mail.opensolaris.org/mailman/listinfo/tools-linking | ||
| 6873 | # | ||
| 6874 | # It is likely that dldump() works with older Solaris too, but this has | ||
| 6875 | # not been tested, so for now this change is for Solaris 10 or newer. | ||
| 6876 | UNEXEC_OBJ=unexsol.o | ||
| 6877 | ;; | ||
| 6878 | esac | ||
| 6879 | |||
| 6880 | LD_SWITCH_SYSTEM= | ||
| 6881 | case "$opsys" in | ||
| 6882 | freebsd) | ||
| 6883 | ## Let `ld' find image libs and similar things in /usr/local/lib. | ||
| 6884 | ## The system compiler, GCC, has apparently been modified to not | ||
| 6885 | ## look there, contrary to what a stock GCC would do. | ||
| 6886 | LD_SWITCH_SYSTEM=-L/usr/local/lib | ||
| 6887 | ;; | ||
| 6888 | |||
| 6889 | gnu-linux) | ||
| 6890 | ## cpp test was "ifdef __mips__", but presumably this is equivalent... | ||
| 6891 | case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac | ||
| 6892 | ;; | ||
| 6893 | |||
| 6894 | netbsd) | ||
| 6895 | LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib" | ||
| 6896 | ;; | ||
| 6897 | |||
| 6898 | openbsd) | ||
| 6899 | ## Han Boetes <han@mijncomputer.nl> says this is necessary, | ||
| 6900 | ## otherwise Emacs dumps core on elf systems. | ||
| 6901 | LD_SWITCH_SYSTEM="-Z" | ||
| 6902 | ;; | ||
| 6903 | esac | ||
| 6904 | |||
| 6905 | |||
| 6906 | ac_link="$ac_link $LD_SWITCH_SYSTEM" | ||
| 6907 | |||
| 6908 | ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX, | ||
| 6909 | ## which has not been defined yet. When this was handled with cpp, | ||
| 6910 | ## it was expanded to null when configure sourced the s/*.h file. | ||
| 6911 | ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles. | ||
| 6912 | ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS | ||
| 6913 | ## (or somesuch), but because it is supposed to go at the _front_ | ||
| 6914 | ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way. | ||
| 6915 | ## Compare with the gnu-linux case below, which added to the end | ||
| 6916 | ## of LD_SWITCH_SYSTEM, and so can instead go at the front of | ||
| 6917 | ## LD_SWITCH_SYSTEM_TEMACS. | ||
| 6918 | case "$opsys" in | ||
| 6919 | netbsd|openbsd) | ||
| 6920 | ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R. | ||
| 6921 | LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;; | ||
| 6922 | esac | ||
| 6923 | |||
| 6924 | |||
| 6925 | C_SWITCH_MACHINE= | ||
| 6926 | if test "$machine" = "alpha"; then | ||
| 6927 | ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" | ||
| 6928 | if test "x$ac_cv_have_decl___ELF__" = x""yes; then : | ||
| 6929 | |||
| 6930 | fi | ||
| 6931 | |||
| 6932 | if test "$ac_cv_have_decl___ELF__" = "yes"; then | ||
| 6933 | ## With ELF, make sure that all common symbols get allocated to in the | ||
| 6934 | ## data section. Otherwise, the dump of temacs may miss variables in | ||
| 6935 | ## the shared library that have been initialized. For example, with | ||
| 6936 | ## GNU libc, __malloc_initialized would normally be resolved to the | ||
| 6937 | ## shared library's .bss section, which is fatal. | ||
| 6938 | if test "x$GCC" = "xyes"; then | ||
| 6939 | C_SWITCH_MACHINE="-fno-common" | ||
| 6940 | else | ||
| 6941 | as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 | ||
| 6942 | fi | ||
| 6943 | else | ||
| 6944 | UNEXEC_OBJ=unexalpha.o | ||
| 6945 | fi | ||
| 6946 | fi | ||
| 6947 | |||
| 6948 | |||
| 6949 | |||
| 6950 | |||
| 6951 | C_SWITCH_SYSTEM= | ||
| 6952 | ## Some programs in src produce warnings saying certain subprograms | ||
| 6953 | ## are too complex and need a MAXMEM value greater than 2000 for | ||
| 6954 | ## additional optimization. --nils@exp-math.uni-essen.de | ||
| 6955 | test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \ | ||
| 6956 | C_SWITCH_SYSTEM="-ma -qmaxmem=4000" | ||
| 6957 | ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems. | ||
| 6958 | ## It is redundant in glibc2, since we define _GNU_SOURCE. | ||
| 6959 | |||
| 6960 | |||
| 6961 | |||
| 6962 | LIBS_SYSTEM= | ||
| 6963 | case "$opsys" in | ||
| 6964 | ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2. | ||
| 6965 | aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;; | ||
| 6966 | |||
| 6967 | freebsd) LIBS_SYSTEM="-lutil" ;; | ||
| 6968 | |||
| 6969 | hpux*) LIBS_SYSTEM="-l:libdld.sl" ;; | ||
| 6970 | |||
| 6971 | sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;; | ||
| 6972 | |||
| 6973 | ## Motif needs -lgen. | ||
| 6974 | unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;; | ||
| 6975 | esac | ||
| 6976 | |||
| 6977 | |||
| 6978 | |||
| 6979 | ### Make sure subsequent tests use flags consistent with the build flags. | ||
| 6980 | |||
| 6981 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | ||
| 6982 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | ||
| 6983 | else | ||
| 6984 | CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS" | ||
| 6985 | fi | ||
| 6986 | |||
| 6987 | # Check whether --enable-largefile was given. | ||
| 6988 | if test "${enable_largefile+set}" = set; then : | ||
| 6989 | enableval=$enable_largefile; | ||
| 6990 | fi | ||
| 6991 | |||
| 6992 | if test "$enable_largefile" != no; then | ||
| 6993 | |||
| 6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
| 6995 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
| 6996 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | ||
| 6997 | $as_echo_n "(cached) " >&6 | ||
| 6998 | else | ||
| 6999 | ac_cv_sys_largefile_CC=no | ||
| 7000 | if test "$GCC" != yes; then | ||
| 7001 | ac_save_CC=$CC | ||
| 7002 | while :; do | ||
| 7003 | # IRIX 6.2 and later do not support large files by default, | ||
| 7004 | # so use the C compiler's -n32 option if that helps. | ||
| 7005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7006 | /* end confdefs.h. */ | ||
| 7007 | #include <sys/types.h> | ||
| 7008 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
| 7009 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
| 7010 | since some C++ compilers masquerading as C compilers | ||
| 7011 | incorrectly reject 9223372036854775807. */ | ||
| 7012 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 7013 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 7014 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 7015 | ? 1 : -1]; | ||
| 7016 | int | ||
| 7017 | main () | ||
| 7018 | { | ||
| 7019 | |||
| 7020 | ; | ||
| 7021 | return 0; | ||
| 7022 | } | ||
| 7023 | _ACEOF | ||
| 7024 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7025 | break | ||
| 7026 | fi | ||
| 7027 | rm -f core conftest.err conftest.$ac_objext | ||
| 7028 | CC="$CC -n32" | ||
| 7029 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7030 | ac_cv_sys_largefile_CC=' -n32'; break | ||
| 7031 | fi | ||
| 7032 | rm -f core conftest.err conftest.$ac_objext | ||
| 7033 | break | ||
| 7034 | done | ||
| 7035 | CC=$ac_save_CC | ||
| 7036 | rm -f conftest.$ac_ext | ||
| 7037 | fi | ||
| 7038 | fi | ||
| 7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
| 7040 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
| 7041 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
| 7042 | CC=$CC$ac_cv_sys_largefile_CC | ||
| 7043 | fi | ||
| 7044 | |||
| 7045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
| 7046 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
| 7047 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | ||
| 7048 | $as_echo_n "(cached) " >&6 | ||
| 7049 | else | ||
| 7050 | while :; do | ||
| 7051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7052 | /* end confdefs.h. */ | ||
| 7053 | #include <sys/types.h> | ||
| 7054 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
| 7055 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
| 7056 | since some C++ compilers masquerading as C compilers | ||
| 7057 | incorrectly reject 9223372036854775807. */ | ||
| 7058 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 7059 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 7060 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 7061 | ? 1 : -1]; | ||
| 7062 | int | ||
| 7063 | main () | ||
| 7064 | { | ||
| 7065 | |||
| 7066 | ; | ||
| 7067 | return 0; | ||
| 7068 | } | ||
| 7069 | _ACEOF | ||
| 7070 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7071 | ac_cv_sys_file_offset_bits=no; break | ||
| 7072 | fi | ||
| 7073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7075 | /* end confdefs.h. */ | ||
| 7076 | #define _FILE_OFFSET_BITS 64 | ||
| 7077 | #include <sys/types.h> | ||
| 7078 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
| 7079 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
| 7080 | since some C++ compilers masquerading as C compilers | ||
| 7081 | incorrectly reject 9223372036854775807. */ | ||
| 7082 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 7083 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 7084 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 7085 | ? 1 : -1]; | ||
| 7086 | int | ||
| 7087 | main () | ||
| 7088 | { | ||
| 7089 | |||
| 7090 | ; | ||
| 7091 | return 0; | ||
| 7092 | } | ||
| 7093 | _ACEOF | ||
| 7094 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7095 | ac_cv_sys_file_offset_bits=64; break | ||
| 7096 | fi | ||
| 7097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7098 | ac_cv_sys_file_offset_bits=unknown | ||
| 7099 | break | ||
| 7100 | done | ||
| 7101 | fi | ||
| 7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
| 7103 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
| 7104 | case $ac_cv_sys_file_offset_bits in #( | ||
| 7105 | no | unknown) ;; | ||
| 7106 | *) | ||
| 7107 | cat >>confdefs.h <<_ACEOF | ||
| 7108 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
| 7109 | _ACEOF | ||
| 7110 | ;; | ||
| 7111 | esac | ||
| 7112 | rm -rf conftest* | ||
| 7113 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
| 7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
| 7115 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
| 7116 | if test "${ac_cv_sys_large_files+set}" = set; then : | ||
| 7117 | $as_echo_n "(cached) " >&6 | ||
| 7118 | else | ||
| 7119 | while :; do | ||
| 7120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7121 | /* end confdefs.h. */ | ||
| 7122 | #include <sys/types.h> | ||
| 7123 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
| 7124 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
| 7125 | since some C++ compilers masquerading as C compilers | ||
| 7126 | incorrectly reject 9223372036854775807. */ | ||
| 7127 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 7128 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 7129 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 7130 | ? 1 : -1]; | ||
| 7131 | int | ||
| 7132 | main () | ||
| 7133 | { | ||
| 7134 | |||
| 7135 | ; | ||
| 7136 | return 0; | ||
| 7137 | } | ||
| 7138 | _ACEOF | ||
| 7139 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7140 | ac_cv_sys_large_files=no; break | ||
| 7141 | fi | ||
| 7142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7144 | /* end confdefs.h. */ | ||
| 7145 | #define _LARGE_FILES 1 | ||
| 7146 | #include <sys/types.h> | ||
| 7147 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
| 7148 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
| 7149 | since some C++ compilers masquerading as C compilers | ||
| 7150 | incorrectly reject 9223372036854775807. */ | ||
| 7151 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 7152 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 7153 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 7154 | ? 1 : -1]; | ||
| 7155 | int | ||
| 7156 | main () | ||
| 7157 | { | ||
| 7158 | |||
| 7159 | ; | ||
| 7160 | return 0; | ||
| 7161 | } | ||
| 7162 | _ACEOF | ||
| 7163 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7164 | ac_cv_sys_large_files=1; break | ||
| 7165 | fi | ||
| 7166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7167 | ac_cv_sys_large_files=unknown | ||
| 7168 | break | ||
| 7169 | done | ||
| 7170 | fi | ||
| 7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
| 7172 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
| 7173 | case $ac_cv_sys_large_files in #( | ||
| 7174 | no | unknown) ;; | ||
| 7175 | *) | ||
| 7176 | cat >>confdefs.h <<_ACEOF | ||
| 7177 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
| 7178 | _ACEOF | ||
| 7179 | ;; | ||
| 7180 | esac | ||
| 7181 | rm -rf conftest* | ||
| 7182 | fi | ||
| 7183 | fi | ||
| 7184 | |||
| 7185 | |||
| 7186 | |||
| 7187 | ## If user specified a crt-dir, use that unconditionally. | ||
| 7188 | if test "X$CRT_DIR" = "X"; then | ||
| 7189 | |||
| 7190 | case "$canonical" in | ||
| 7191 | x86_64-*-linux-gnu* | s390x-*-linux-gnu*) | ||
| 7192 | ## On x86-64 and s390x GNU/Linux distributions, the standard library | ||
| 7193 | ## can be in a variety of places. We only try /usr/lib64 and /usr/lib. | ||
| 7194 | ## For anything else (eg /usr/lib32), it is up the user to specify | ||
| 7195 | ## the location (bug#5655). | ||
| 7196 | ## Test for crtn.o, not just the directory, because sometimes the | ||
| 7197 | ## directory exists but does not have the relevant files (bug#1287). | ||
| 7198 | ## FIXME better to test for binary compatibility somehow. | ||
| 7199 | test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64 | ||
| 7200 | ;; | ||
| 7201 | |||
| 7202 | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;; | ||
| 7203 | esac | ||
| 7204 | |||
| 7205 | case "$opsys" in | ||
| 7206 | hpux10-20) CRT_DIR=/lib ;; | ||
| 7207 | esac | ||
| 7208 | |||
| 7209 | ## Default is /usr/lib. | ||
| 7210 | test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib | ||
| 7211 | |||
| 7212 | else | ||
| 7213 | |||
| 7214 | ## Some platforms don't use any of these files, so it is not | ||
| 7215 | ## appropriate to put this test outside the if block. | ||
| 7216 | test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ | ||
| 7217 | as_fn_error "crt*.o not found in specified location." "$LINENO" 5 | ||
| 7218 | |||
| 7219 | fi | ||
| 7220 | |||
| 7221 | |||
| 7222 | |||
| 7223 | LIB_MATH=-lm | ||
| 7224 | LIB_STANDARD= | ||
| 7225 | START_FILES= | ||
| 7226 | |||
| 7227 | case $opsys in | ||
| 7228 | cygwin ) | ||
| 7229 | LIB_MATH= | ||
| 7230 | START_FILES='pre-crt0.o' | ||
| 7231 | ;; | ||
| 7232 | darwin ) | ||
| 7233 | ## Adding -lm confuses the dynamic linker, so omit it. | ||
| 7234 | LIB_MATH= | ||
| 7235 | START_FILES='pre-crt0.o' | ||
| 7236 | ;; | ||
| 7237 | freebsd ) | ||
| 7238 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | ||
| 7239 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | ||
| 7240 | ;; | ||
| 7241 | gnu-linux | gnu-kfreebsd ) | ||
| 7242 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o' | ||
| 7243 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o' | ||
| 7244 | ;; | ||
| 7245 | hpux10-20 | hpux11 ) | ||
| 7246 | LIB_STANDARD=-lc | ||
| 7247 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' | ||
| 7248 | ;; | ||
| 7249 | netbsd | openbsd ) | ||
| 7250 | if test -f $CRT_DIR/crti.o; then | ||
| 7251 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | ||
| 7252 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | ||
| 7253 | else | ||
| 7254 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o' | ||
| 7255 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o' | ||
| 7256 | fi | ||
| 7257 | ;; | ||
| 7258 | esac | ||
| 7259 | |||
| 7260 | |||
| 7261 | |||
| 7262 | |||
| 7263 | |||
| 7264 | |||
| 7265 | |||
| 7266 | if test "${with_sound}" != "no"; then | ||
| 7267 | # Sound support for GNU/Linux and the free BSDs. | ||
| 7268 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | ||
| 7269 | do : | ||
| 7270 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 7271 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
| 7272 | eval as_val=\$$as_ac_Header | ||
| 7273 | if test "x$as_val" = x""yes; then : | ||
| 7274 | cat >>confdefs.h <<_ACEOF | ||
| 7275 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 7276 | _ACEOF | ||
| 7277 | have_sound_header=yes | ||
| 7278 | fi | ||
| 7279 | |||
| 7280 | done | ||
| 7281 | |||
| 7282 | # Emulation library used on NetBSD. | ||
| 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 | ||
| 7284 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } | ||
| 7285 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : | ||
| 7286 | $as_echo_n "(cached) " >&6 | ||
| 7287 | else | ||
| 7288 | ac_check_lib_save_LIBS=$LIBS | ||
| 7289 | LIBS="-lossaudio $LIBS" | ||
| 7290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7291 | /* end confdefs.h. */ | ||
| 7292 | |||
| 7293 | /* Override any GCC internal prototype to avoid an error. | ||
| 7294 | Use char because int might match the return type of a GCC | ||
| 7295 | builtin and then its argument prototype would still apply. */ | ||
| 7296 | #ifdef __cplusplus | ||
| 7297 | extern "C" | ||
| 7298 | #endif | ||
| 7299 | char _oss_ioctl (); | ||
| 7300 | int | ||
| 7301 | main () | ||
| 7302 | { | ||
| 7303 | return _oss_ioctl (); | ||
| 7304 | ; | ||
| 7305 | return 0; | ||
| 7306 | } | ||
| 7307 | _ACEOF | ||
| 7308 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 7309 | ac_cv_lib_ossaudio__oss_ioctl=yes | ||
| 7310 | else | ||
| 7311 | ac_cv_lib_ossaudio__oss_ioctl=no | ||
| 7312 | fi | ||
| 7313 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 7314 | conftest$ac_exeext conftest.$ac_ext | ||
| 7315 | LIBS=$ac_check_lib_save_LIBS | ||
| 7316 | fi | ||
| 7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | ||
| 7318 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | ||
| 7319 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : | ||
| 7320 | LIBSOUND=-lossaudio | ||
| 7321 | else | ||
| 7322 | LIBSOUND= | ||
| 7323 | fi | ||
| 7324 | |||
| 7325 | |||
| 7326 | |||
| 7327 | ALSA_REQUIRED=1.0.0 | ||
| 7328 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | ||
| 7329 | |||
| 7330 | succeeded=no | ||
| 7331 | |||
| 7332 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 7333 | set dummy pkg-config; ac_word=$2 | ||
| 7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 7335 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 7336 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 7337 | $as_echo_n "(cached) " >&6 | ||
| 7338 | else | ||
| 7339 | case $PKG_CONFIG in | ||
| 7340 | [\\/]* | ?:[\\/]*) | ||
| 7341 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 7342 | ;; | ||
| 7343 | *) | ||
| 7344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 7345 | for as_dir in $PATH | ||
| 7346 | do | ||
| 7347 | IFS=$as_save_IFS | ||
| 7348 | test -z "$as_dir" && as_dir=. | ||
| 7349 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 7350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 7351 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 7352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 7353 | break 2 | ||
| 7354 | fi | ||
| 7355 | done | ||
| 7356 | done | ||
| 7357 | IFS=$as_save_IFS | ||
| 7358 | |||
| 7359 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 7360 | ;; | ||
| 7361 | esac | ||
| 7362 | fi | ||
| 7363 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 7364 | if test -n "$PKG_CONFIG"; then | ||
| 7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 7366 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 7367 | else | ||
| 7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 7369 | $as_echo "no" >&6; } | ||
| 7370 | fi | ||
| 7371 | |||
| 7372 | |||
| 7373 | |||
| 7374 | if test "$PKG_CONFIG" = "no" ; then | ||
| 7375 | HAVE_ALSA=no | ||
| 7376 | else | ||
| 7377 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 7378 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 | ||
| 7380 | $as_echo_n "checking for $ALSA_MODULES... " >&6; } | ||
| 7381 | |||
| 7382 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then | ||
| 7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 7384 | $as_echo "yes" >&6; } | ||
| 7385 | succeeded=yes | ||
| 7386 | |||
| 7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 | ||
| 7388 | $as_echo_n "checking ALSA_CFLAGS... " >&6; } | ||
| 7389 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` | ||
| 7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 | ||
| 7391 | $as_echo "$ALSA_CFLAGS" >&6; } | ||
| 7392 | |||
| 7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 | ||
| 7394 | $as_echo_n "checking ALSA_LIBS... " >&6; } | ||
| 7395 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` | ||
| 7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 | ||
| 7397 | $as_echo "$ALSA_LIBS" >&6; } | ||
| 7398 | else | ||
| 7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 7400 | $as_echo "no" >&6; } | ||
| 7401 | ALSA_CFLAGS="" | ||
| 7402 | ALSA_LIBS="" | ||
| 7403 | ## If we have a custom action on failure, don't print errors, but | ||
| 7404 | ## do set a variable so people can do so. | ||
| 7405 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` | ||
| 7406 | |||
| 7407 | fi | ||
| 7408 | |||
| 7409 | |||
| 7410 | |||
| 7411 | else | ||
| 7412 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 7413 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 7414 | fi | ||
| 7415 | fi | ||
| 7416 | |||
| 7417 | if test $succeeded = yes; then | ||
| 7418 | HAVE_ALSA=yes | ||
| 7419 | else | ||
| 7420 | HAVE_ALSA=no | ||
| 7421 | fi | ||
| 7422 | |||
| 7423 | if test $HAVE_ALSA = yes; then | ||
| 7424 | SAVE_CFLAGS="$CFLAGS" | ||
| 7425 | SAVE_LDFLAGS="$LDFLAGS" | ||
| 7426 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | ||
| 7427 | LDFLAGS="$ALSA_LIBS $LDFLAGS" | ||
| 7428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7429 | /* end confdefs.h. */ | ||
| 7430 | #include <asoundlib.h> | ||
| 7431 | int | ||
| 7432 | main () | ||
| 7433 | { | ||
| 7434 | snd_lib_error_set_handler (0); | ||
| 7435 | ; | ||
| 7436 | return 0; | ||
| 7437 | } | ||
| 7438 | _ACEOF | ||
| 7439 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7440 | emacs_alsa_normal=yes | ||
| 7441 | else | ||
| 7442 | emacs_alsa_normal=no | ||
| 7443 | fi | ||
| 7444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7445 | if test "$emacs_alsa_normal" != yes; then | ||
| 7446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7447 | /* end confdefs.h. */ | ||
| 7448 | #include <alsa/asoundlib.h> | ||
| 7449 | int | ||
| 7450 | main () | ||
| 7451 | { | ||
| 7452 | snd_lib_error_set_handler (0); | ||
| 7453 | ; | ||
| 7454 | return 0; | ||
| 7455 | } | ||
| 7456 | _ACEOF | ||
| 7457 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7458 | emacs_alsa_subdir=yes | ||
| 7459 | else | ||
| 7460 | emacs_alsa_subdir=no | ||
| 7461 | fi | ||
| 7462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7463 | if test "$emacs_alsa_subdir" != yes; then | ||
| 7464 | as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 | ||
| 7465 | fi | ||
| 7466 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | ||
| 7467 | fi | ||
| 7468 | |||
| 7469 | CFLAGS="$SAVE_CFLAGS" | ||
| 7470 | LDFLAGS="$SAVE_LDFLAGS" | ||
| 7471 | LIBSOUND="$LIBSOUND $ALSA_LIBS" | ||
| 7472 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | ||
| 7473 | |||
| 7474 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h | ||
| 7475 | |||
| 7476 | fi | ||
| 7477 | |||
| 7478 | if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then | ||
| 7479 | case "$opsys" in | ||
| 7480 | gnu-linux|freebsd|netbsd) | ||
| 7481 | |||
| 7482 | $as_echo "#define HAVE_SOUND 1" >>confdefs.h | ||
| 7483 | |||
| 7484 | ;; | ||
| 7485 | esac | ||
| 7486 | fi | ||
| 7487 | |||
| 7488 | |||
| 7489 | fi | ||
| 7490 | |||
| 7491 | for ac_header in sys/select.h sys/time.h unistd.h utime.h \ | ||
| 7492 | linux/version.h sys/systeminfo.h limits.h \ | ||
| 7493 | stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \ | ||
| 7494 | sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | ||
| 7495 | sys/utsname.h pwd.h utmp.h dirent.h util.h | ||
| 7496 | do : | ||
| 7497 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 7498 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
| 7499 | eval as_val=\$$as_ac_Header | ||
| 7500 | if test "x$as_val" = x""yes; then : | ||
| 7501 | cat >>confdefs.h <<_ACEOF | ||
| 7502 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 7503 | _ACEOF | ||
| 7504 | |||
| 7505 | fi | ||
| 7506 | |||
| 7507 | done | ||
| 7508 | |||
| 7509 | |||
| 7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 | ||
| 7511 | $as_echo_n "checking if personality LINUX32 can be set... " >&6; } | ||
| 7512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7513 | /* end confdefs.h. */ | ||
| 7514 | #include <sys/personality.h> | ||
| 7515 | int | ||
| 7516 | main () | ||
| 7517 | { | ||
| 7518 | personality (PER_LINUX32) | ||
| 7519 | ; | ||
| 7520 | return 0; | ||
| 7521 | } | ||
| 7522 | _ACEOF | ||
| 7523 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7524 | emacs_cv_personality_linux32=yes | ||
| 7525 | else | ||
| 7526 | emacs_cv_personality_linux32=no | ||
| 7527 | fi | ||
| 7528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 | ||
| 7530 | $as_echo "$emacs_cv_personality_linux32" >&6; } | ||
| 7531 | |||
| 7532 | if test $emacs_cv_personality_linux32 = yes; then | ||
| 7533 | |||
| 7534 | $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h | ||
| 7535 | |||
| 7536 | fi | ||
| 7537 | |||
| 7538 | for ac_header in term.h | ||
| 7539 | do : | ||
| 7540 | ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" | ||
| 7541 | if test "x$ac_cv_header_term_h" = x""yes; then : | ||
| 7542 | cat >>confdefs.h <<_ACEOF | ||
| 7543 | #define HAVE_TERM_H 1 | ||
| 7544 | _ACEOF | ||
| 7545 | |||
| 7546 | fi | ||
| 7547 | |||
| 7548 | done | ||
| 7549 | |||
| 7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
| 7551 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
| 7552 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
| 7553 | $as_echo_n "(cached) " >&6 | ||
| 7554 | else | ||
| 7555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7556 | /* end confdefs.h. */ | ||
| 7557 | #include <stdlib.h> | ||
| 7558 | #include <stdarg.h> | ||
| 7559 | #include <string.h> | ||
| 7560 | #include <float.h> | ||
| 7561 | |||
| 7562 | int | ||
| 7563 | main () | ||
| 7564 | { | ||
| 7565 | |||
| 7566 | ; | ||
| 7567 | return 0; | ||
| 7568 | } | ||
| 7569 | _ACEOF | ||
| 7570 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7571 | ac_cv_header_stdc=yes | ||
| 7572 | else | ||
| 7573 | ac_cv_header_stdc=no | ||
| 7574 | fi | ||
| 7575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7576 | |||
| 7577 | if test $ac_cv_header_stdc = yes; then | ||
| 7578 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
| 7579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7580 | /* end confdefs.h. */ | ||
| 7581 | #include <string.h> | ||
| 7582 | |||
| 7583 | _ACEOF | ||
| 7584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 7585 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
| 7586 | |||
| 7587 | else | ||
| 7588 | ac_cv_header_stdc=no | ||
| 7589 | fi | ||
| 7590 | rm -f conftest* | ||
| 7591 | |||
| 7592 | fi | ||
| 7593 | |||
| 7594 | if test $ac_cv_header_stdc = yes; then | ||
| 7595 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
| 7596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7597 | /* end confdefs.h. */ | ||
| 7598 | #include <stdlib.h> | ||
| 7599 | |||
| 7600 | _ACEOF | ||
| 7601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 7602 | $EGREP "free" >/dev/null 2>&1; then : | ||
| 7603 | |||
| 7604 | else | ||
| 7605 | ac_cv_header_stdc=no | ||
| 7606 | fi | ||
| 7607 | rm -f conftest* | ||
| 7608 | |||
| 7609 | fi | ||
| 7610 | |||
| 7611 | if test $ac_cv_header_stdc = yes; then | ||
| 7612 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
| 7613 | if test "$cross_compiling" = yes; then : | ||
| 7614 | : | ||
| 7615 | else | ||
| 7616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7617 | /* end confdefs.h. */ | ||
| 7618 | #include <ctype.h> | ||
| 7619 | #include <stdlib.h> | ||
| 7620 | #if ((' ' & 0x0FF) == 0x020) | ||
| 7621 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
| 7622 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
| 7623 | #else | ||
| 7624 | # define ISLOWER(c) \ | ||
| 7625 | (('a' <= (c) && (c) <= 'i') \ | ||
| 7626 | || ('j' <= (c) && (c) <= 'r') \ | ||
| 7627 | || ('s' <= (c) && (c) <= 'z')) | ||
| 7628 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
| 7629 | #endif | ||
| 7630 | |||
| 7631 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
| 7632 | int | ||
| 7633 | main () | ||
| 7634 | { | ||
| 7635 | int i; | ||
| 7636 | for (i = 0; i < 256; i++) | ||
| 7637 | if (XOR (islower (i), ISLOWER (i)) | ||
| 7638 | || toupper (i) != TOUPPER (i)) | ||
| 7639 | return 2; | ||
| 7640 | return 0; | ||
| 7641 | } | ||
| 7642 | _ACEOF | ||
| 7643 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 7644 | |||
| 7645 | else | ||
| 7646 | ac_cv_header_stdc=no | ||
| 7647 | fi | ||
| 7648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 7649 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 7650 | fi | ||
| 7651 | |||
| 7652 | fi | ||
| 7653 | fi | ||
| 7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
| 7655 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
| 7656 | if test $ac_cv_header_stdc = yes; then | ||
| 7657 | |||
| 7658 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
| 7659 | |||
| 7660 | fi | ||
| 7661 | |||
| 7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | ||
| 7663 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||
| 7664 | if test "${ac_cv_header_time+set}" = set; then : | ||
| 7665 | $as_echo_n "(cached) " >&6 | ||
| 7666 | else | ||
| 7667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7668 | /* end confdefs.h. */ | ||
| 7669 | #include <sys/types.h> | ||
| 7670 | #include <sys/time.h> | ||
| 7671 | #include <time.h> | ||
| 7672 | |||
| 7673 | int | ||
| 7674 | main () | ||
| 7675 | { | ||
| 7676 | if ((struct tm *) 0) | ||
| 7677 | return 0; | ||
| 7678 | ; | ||
| 7679 | return 0; | ||
| 7680 | } | ||
| 7681 | _ACEOF | ||
| 7682 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7683 | ac_cv_header_time=yes | ||
| 7684 | else | ||
| 7685 | ac_cv_header_time=no | ||
| 7686 | fi | ||
| 7687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7688 | fi | ||
| 7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | ||
| 7690 | $as_echo "$ac_cv_header_time" >&6; } | ||
| 7691 | if test $ac_cv_header_time = yes; then | ||
| 7692 | |||
| 7693 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | ||
| 7694 | |||
| 7695 | fi | ||
| 7696 | |||
| 7697 | ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" | ||
| 7698 | if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : | ||
| 7699 | ac_have_decl=1 | ||
| 7700 | else | ||
| 7701 | ac_have_decl=0 | ||
| 7702 | fi | ||
| 7703 | |||
| 7704 | cat >>confdefs.h <<_ACEOF | ||
| 7705 | #define HAVE_DECL_SYS_SIGLIST $ac_have_decl | ||
| 7706 | _ACEOF | ||
| 7707 | |||
| 7708 | if test $ac_cv_have_decl_sys_siglist != yes; then | ||
| 7709 | # For Tru64, at least: | ||
| 7710 | ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" | ||
| 7711 | if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : | ||
| 7712 | ac_have_decl=1 | ||
| 7713 | else | ||
| 7714 | ac_have_decl=0 | ||
| 7715 | fi | ||
| 7716 | |||
| 7717 | cat >>confdefs.h <<_ACEOF | ||
| 7718 | #define HAVE_DECL___SYS_SIGLIST $ac_have_decl | ||
| 7719 | _ACEOF | ||
| 7720 | |||
| 7721 | if test $ac_cv_have_decl___sys_siglist = yes; then | ||
| 7722 | |||
| 7723 | $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h | ||
| 7724 | |||
| 7725 | fi | ||
| 7726 | fi | ||
| 7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | ||
| 7728 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | ||
| 7729 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | ||
| 7730 | $as_echo_n "(cached) " >&6 | ||
| 7731 | else | ||
| 7732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7733 | /* end confdefs.h. */ | ||
| 7734 | #include <sys/types.h> | ||
| 7735 | #include <sys/wait.h> | ||
| 7736 | #ifndef WEXITSTATUS | ||
| 7737 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | ||
| 7738 | #endif | ||
| 7739 | #ifndef WIFEXITED | ||
| 7740 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | ||
| 7741 | #endif | ||
| 7742 | |||
| 7743 | int | ||
| 7744 | main () | ||
| 7745 | { | ||
| 7746 | int s; | ||
| 7747 | wait (&s); | ||
| 7748 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | ||
| 7749 | ; | ||
| 7750 | return 0; | ||
| 7751 | } | ||
| 7752 | _ACEOF | ||
| 7753 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7754 | ac_cv_header_sys_wait_h=yes | ||
| 7755 | else | ||
| 7756 | ac_cv_header_sys_wait_h=no | ||
| 7757 | fi | ||
| 7758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7759 | fi | ||
| 7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | ||
| 7761 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | ||
| 7762 | if test $ac_cv_header_sys_wait_h = yes; then | ||
| 7763 | |||
| 7764 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | ||
| 7765 | |||
| 7766 | fi | ||
| 7767 | |||
| 7768 | |||
| 7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 | ||
| 7770 | $as_echo_n "checking for struct utimbuf... " >&6; } | ||
| 7771 | if test "${emacs_cv_struct_utimbuf+set}" = set; then : | ||
| 7772 | $as_echo_n "(cached) " >&6 | ||
| 7773 | else | ||
| 7774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7775 | /* end confdefs.h. */ | ||
| 7776 | #ifdef TIME_WITH_SYS_TIME | ||
| 7777 | #include <sys/time.h> | ||
| 7778 | #include <time.h> | ||
| 7779 | #else | ||
| 7780 | #ifdef HAVE_SYS_TIME_H | ||
| 7781 | #include <sys/time.h> | ||
| 7782 | #else | ||
| 7783 | #include <time.h> | ||
| 7784 | #endif | ||
| 7785 | #endif | ||
| 7786 | #ifdef HAVE_UTIME_H | ||
| 7787 | #include <utime.h> | ||
| 7788 | #endif | ||
| 7789 | int | ||
| 7790 | main () | ||
| 7791 | { | ||
| 7792 | static struct utimbuf x; x.actime = x.modtime; | ||
| 7793 | ; | ||
| 7794 | return 0; | ||
| 7795 | } | ||
| 7796 | _ACEOF | ||
| 7797 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7798 | emacs_cv_struct_utimbuf=yes | ||
| 7799 | else | ||
| 7800 | emacs_cv_struct_utimbuf=no | ||
| 7801 | fi | ||
| 7802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7803 | fi | ||
| 7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 | ||
| 7805 | $as_echo "$emacs_cv_struct_utimbuf" >&6; } | ||
| 7806 | if test $emacs_cv_struct_utimbuf = yes; then | ||
| 7807 | |||
| 7808 | $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h | ||
| 7809 | |||
| 7810 | fi | ||
| 7811 | |||
| 7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | ||
| 7813 | $as_echo_n "checking return type of signal handlers... " >&6; } | ||
| 7814 | if test "${ac_cv_type_signal+set}" = set; then : | ||
| 7815 | $as_echo_n "(cached) " >&6 | ||
| 7816 | else | ||
| 7817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7818 | /* end confdefs.h. */ | ||
| 7819 | #include <sys/types.h> | ||
| 7820 | #include <signal.h> | ||
| 7821 | |||
| 7822 | int | ||
| 7823 | main () | ||
| 7824 | { | ||
| 7825 | return *(signal (0, 0)) (0) == 1; | ||
| 7826 | ; | ||
| 7827 | return 0; | ||
| 7828 | } | ||
| 7829 | _ACEOF | ||
| 7830 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7831 | ac_cv_type_signal=int | ||
| 7832 | else | ||
| 7833 | ac_cv_type_signal=void | ||
| 7834 | fi | ||
| 7835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7836 | fi | ||
| 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | ||
| 7838 | $as_echo "$ac_cv_type_signal" >&6; } | ||
| 7839 | |||
| 7840 | cat >>confdefs.h <<_ACEOF | ||
| 7841 | #define RETSIGTYPE $ac_cv_type_signal | ||
| 7842 | _ACEOF | ||
| 7843 | |||
| 7844 | |||
| 7845 | |||
| 7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 | ||
| 7847 | $as_echo_n "checking for speed_t... " >&6; } | ||
| 7848 | if test "${emacs_cv_speed_t+set}" = set; then : | ||
| 7849 | $as_echo_n "(cached) " >&6 | ||
| 7850 | else | ||
| 7851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7852 | /* end confdefs.h. */ | ||
| 7853 | #include <termios.h> | ||
| 7854 | int | ||
| 7855 | main () | ||
| 7856 | { | ||
| 7857 | speed_t x = 1; | ||
| 7858 | ; | ||
| 7859 | return 0; | ||
| 7860 | } | ||
| 7861 | _ACEOF | ||
| 7862 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7863 | emacs_cv_speed_t=yes | ||
| 7864 | else | ||
| 7865 | emacs_cv_speed_t=no | ||
| 7866 | fi | ||
| 7867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7868 | fi | ||
| 7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 | ||
| 7870 | $as_echo "$emacs_cv_speed_t" >&6; } | ||
| 7871 | if test $emacs_cv_speed_t = yes; then | ||
| 7872 | |||
| 7873 | $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h | ||
| 7874 | |||
| 7875 | fi | ||
| 7876 | |||
| 7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
| 7878 | $as_echo_n "checking for struct timeval... " >&6; } | ||
| 7879 | if test "${emacs_cv_struct_timeval+set}" = set; then : | ||
| 7880 | $as_echo_n "(cached) " >&6 | ||
| 7881 | else | ||
| 7882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7883 | /* end confdefs.h. */ | ||
| 7884 | #ifdef TIME_WITH_SYS_TIME | ||
| 7885 | #include <sys/time.h> | ||
| 7886 | #include <time.h> | ||
| 7887 | #else | ||
| 7888 | #ifdef HAVE_SYS_TIME_H | ||
| 7889 | #include <sys/time.h> | ||
| 7890 | #else | ||
| 7891 | #include <time.h> | ||
| 7892 | #endif | ||
| 7893 | #endif | ||
| 7894 | int | ||
| 7895 | main () | ||
| 7896 | { | ||
| 7897 | static struct timeval x; x.tv_sec = x.tv_usec; | ||
| 7898 | ; | ||
| 7899 | return 0; | ||
| 7900 | } | ||
| 7901 | _ACEOF | ||
| 7902 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7903 | emacs_cv_struct_timeval=yes | ||
| 7904 | else | ||
| 7905 | emacs_cv_struct_timeval=no | ||
| 7906 | fi | ||
| 7907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7908 | fi | ||
| 7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 | ||
| 7910 | $as_echo "$emacs_cv_struct_timeval" >&6; } | ||
| 7911 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | ||
| 7912 | if test $emacs_cv_struct_timeval = yes; then | ||
| 7913 | |||
| 7914 | $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h | ||
| 7915 | |||
| 7916 | fi | ||
| 7917 | |||
| 7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 | ||
| 7919 | $as_echo_n "checking for struct exception... " >&6; } | ||
| 7920 | if test "${emacs_cv_struct_exception+set}" = set; then : | ||
| 7921 | $as_echo_n "(cached) " >&6 | ||
| 7922 | else | ||
| 7923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7924 | /* end confdefs.h. */ | ||
| 7925 | #include <math.h> | ||
| 7926 | int | ||
| 7927 | main () | ||
| 7928 | { | ||
| 7929 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | ||
| 7930 | ; | ||
| 7931 | return 0; | ||
| 7932 | } | ||
| 7933 | _ACEOF | ||
| 7934 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7935 | emacs_cv_struct_exception=yes | ||
| 7936 | else | ||
| 7937 | emacs_cv_struct_exception=no | ||
| 7938 | fi | ||
| 7939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7940 | fi | ||
| 7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 | ||
| 7942 | $as_echo "$emacs_cv_struct_exception" >&6; } | ||
| 7943 | HAVE_EXCEPTION=$emacs_cv_struct_exception | ||
| 7944 | if test $emacs_cv_struct_exception != yes; then | ||
| 7945 | |||
| 7946 | $as_echo "#define NO_MATHERR 1" >>confdefs.h | ||
| 7947 | |||
| 7948 | fi | ||
| 7949 | |||
| 7950 | for ac_header in sys/socket.h | ||
| 7951 | do : | ||
| 7952 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" | ||
| 7953 | if test "x$ac_cv_header_sys_socket_h" = x""yes; then : | ||
| 7954 | cat >>confdefs.h <<_ACEOF | ||
| 7955 | #define HAVE_SYS_SOCKET_H 1 | ||
| 7956 | _ACEOF | ||
| 7957 | |||
| 7958 | fi | ||
| 7959 | |||
| 7960 | done | ||
| 7961 | |||
| 7962 | for ac_header in net/if.h | ||
| 7963 | do : | ||
| 7964 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default | ||
| 7965 | #if HAVE_SYS_SOCKET_H | ||
| 7966 | #include <sys/socket.h> | ||
| 7967 | #endif | ||
| 7968 | " | ||
| 7969 | if test "x$ac_cv_header_net_if_h" = x""yes; then : | ||
| 7970 | cat >>confdefs.h <<_ACEOF | ||
| 7971 | #define HAVE_NET_IF_H 1 | ||
| 7972 | _ACEOF | ||
| 7973 | |||
| 7974 | fi | ||
| 7975 | |||
| 7976 | done | ||
| 7977 | |||
| 7978 | |||
| 7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | ||
| 7980 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | ||
| 7981 | if test "${ac_cv_struct_tm+set}" = set; then : | ||
| 7982 | $as_echo_n "(cached) " >&6 | ||
| 7983 | else | ||
| 7984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7985 | /* end confdefs.h. */ | ||
| 7986 | #include <sys/types.h> | ||
| 7987 | #include <time.h> | ||
| 7988 | |||
| 7989 | int | ||
| 7990 | main () | ||
| 7991 | { | ||
| 7992 | struct tm tm; | ||
| 7993 | int *p = &tm.tm_sec; | ||
| 7994 | return !p; | ||
| 7995 | ; | ||
| 7996 | return 0; | ||
| 7997 | } | ||
| 7998 | _ACEOF | ||
| 7999 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8000 | ac_cv_struct_tm=time.h | ||
| 8001 | else | ||
| 8002 | ac_cv_struct_tm=sys/time.h | ||
| 8003 | fi | ||
| 8004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8005 | fi | ||
| 8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | ||
| 8007 | $as_echo "$ac_cv_struct_tm" >&6; } | ||
| 8008 | if test $ac_cv_struct_tm = sys/time.h; then | ||
| 8009 | |||
| 8010 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | ||
| 8011 | |||
| 8012 | fi | ||
| 8013 | |||
| 8014 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | ||
| 8015 | #include <$ac_cv_struct_tm> | ||
| 8016 | |||
| 8017 | " | ||
| 8018 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : | ||
| 8019 | |||
| 8020 | cat >>confdefs.h <<_ACEOF | ||
| 8021 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||
| 8022 | _ACEOF | ||
| 8023 | |||
| 8024 | |||
| 8025 | fi | ||
| 8026 | |||
| 8027 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | ||
| 8028 | |||
| 8029 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | ||
| 8030 | |||
| 8031 | else | ||
| 8032 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | ||
| 8033 | " | ||
| 8034 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | ||
| 8035 | ac_have_decl=1 | ||
| 8036 | else | ||
| 8037 | ac_have_decl=0 | ||
| 8038 | fi | ||
| 8039 | |||
| 8040 | cat >>confdefs.h <<_ACEOF | ||
| 8041 | #define HAVE_DECL_TZNAME $ac_have_decl | ||
| 8042 | _ACEOF | ||
| 8043 | |||
| 8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | ||
| 8045 | $as_echo_n "checking for tzname... " >&6; } | ||
| 8046 | if test "${ac_cv_var_tzname+set}" = set; then : | ||
| 8047 | $as_echo_n "(cached) " >&6 | ||
| 8048 | else | ||
| 8049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8050 | /* end confdefs.h. */ | ||
| 8051 | #include <time.h> | ||
| 8052 | #if !HAVE_DECL_TZNAME | ||
| 8053 | extern char *tzname[]; | ||
| 8054 | #endif | ||
| 8055 | |||
| 8056 | int | ||
| 8057 | main () | ||
| 8058 | { | ||
| 8059 | return tzname[0][0]; | ||
| 8060 | ; | ||
| 8061 | return 0; | ||
| 8062 | } | ||
| 8063 | _ACEOF | ||
| 8064 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 8065 | ac_cv_var_tzname=yes | ||
| 8066 | else | ||
| 8067 | ac_cv_var_tzname=no | ||
| 8068 | fi | ||
| 8069 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 8070 | conftest$ac_exeext conftest.$ac_ext | ||
| 8071 | fi | ||
| 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | ||
| 8073 | $as_echo "$ac_cv_var_tzname" >&6; } | ||
| 8074 | if test $ac_cv_var_tzname = yes; then | ||
| 8075 | |||
| 8076 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | ||
| 8077 | |||
| 8078 | fi | ||
| 8079 | fi | ||
| 8080 | |||
| 8081 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> | ||
| 8082 | " | ||
| 8083 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : | ||
| 8084 | |||
| 8085 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | ||
| 8086 | |||
| 8087 | fi | ||
| 8088 | |||
| 8089 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default | ||
| 8090 | #if HAVE_SYS_SOCKET_H | ||
| 8091 | #include <sys/socket.h> | ||
| 8092 | #endif | ||
| 8093 | #if HAVE_NET_IF_H | ||
| 8094 | #include <net/if.h> | ||
| 8095 | #endif | ||
| 8096 | " | ||
| 8097 | if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : | ||
| 8098 | |||
| 8099 | cat >>confdefs.h <<_ACEOF | ||
| 8100 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | ||
| 8101 | _ACEOF | ||
| 8102 | |||
| 8103 | |||
| 8104 | fi | ||
| 8105 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default | ||
| 8106 | #if HAVE_SYS_SOCKET_H | ||
| 8107 | #include <sys/socket.h> | ||
| 8108 | #endif | ||
| 8109 | #if HAVE_NET_IF_H | ||
| 8110 | #include <net/if.h> | ||
| 8111 | #endif | ||
| 8112 | " | ||
| 8113 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : | ||
| 8114 | |||
| 8115 | cat >>confdefs.h <<_ACEOF | ||
| 8116 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | ||
| 8117 | _ACEOF | ||
| 8118 | |||
| 8119 | |||
| 8120 | fi | ||
| 8121 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default | ||
| 8122 | #if HAVE_SYS_SOCKET_H | ||
| 8123 | #include <sys/socket.h> | ||
| 8124 | #endif | ||
| 8125 | #if HAVE_NET_IF_H | ||
| 8126 | #include <net/if.h> | ||
| 8127 | #endif | ||
| 8128 | " | ||
| 8129 | if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : | ||
| 8130 | |||
| 8131 | cat >>confdefs.h <<_ACEOF | ||
| 8132 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | ||
| 8133 | _ACEOF | ||
| 8134 | |||
| 8135 | |||
| 8136 | fi | ||
| 8137 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default | ||
| 8138 | #if HAVE_SYS_SOCKET_H | ||
| 8139 | #include <sys/socket.h> | ||
| 8140 | #endif | ||
| 8141 | #if HAVE_NET_IF_H | ||
| 8142 | #include <net/if.h> | ||
| 8143 | #endif | ||
| 8144 | " | ||
| 8145 | if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : | ||
| 8146 | |||
| 8147 | cat >>confdefs.h <<_ACEOF | ||
| 8148 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | ||
| 8149 | _ACEOF | ||
| 8150 | |||
| 8151 | |||
| 8152 | fi | ||
| 8153 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default | ||
| 8154 | #if HAVE_SYS_SOCKET_H | ||
| 8155 | #include <sys/socket.h> | ||
| 8156 | #endif | ||
| 8157 | #if HAVE_NET_IF_H | ||
| 8158 | #include <net/if.h> | ||
| 8159 | #endif | ||
| 8160 | " | ||
| 8161 | if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : | ||
| 8162 | |||
| 8163 | cat >>confdefs.h <<_ACEOF | ||
| 8164 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | ||
| 8165 | _ACEOF | ||
| 8166 | |||
| 8167 | |||
| 8168 | fi | ||
| 8169 | |||
| 8170 | |||
| 8171 | |||
| 8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 | ||
| 8173 | $as_echo_n "checking for function prototypes... " >&6; } | ||
| 8174 | if test "$ac_cv_prog_cc_c89" != no; then | ||
| 8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 8176 | $as_echo "yes" >&6; } | ||
| 8177 | |||
| 8178 | $as_echo "#define PROTOTYPES 1" >>confdefs.h | ||
| 8179 | |||
| 8180 | |||
| 8181 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h | ||
| 8182 | |||
| 8183 | else | ||
| 8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 8185 | $as_echo "no" >&6; } | ||
| 8186 | fi | ||
| 8187 | |||
| 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | ||
| 8189 | $as_echo_n "checking for working volatile... " >&6; } | ||
| 8190 | if test "${ac_cv_c_volatile+set}" = set; then : | ||
| 8191 | $as_echo_n "(cached) " >&6 | ||
| 8192 | else | ||
| 8193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8194 | /* end confdefs.h. */ | ||
| 8195 | |||
| 8196 | int | ||
| 8197 | main () | ||
| 8198 | { | ||
| 8199 | |||
| 8200 | volatile int x; | ||
| 8201 | int * volatile y = (int *) 0; | ||
| 8202 | return !x && !y; | ||
| 8203 | ; | ||
| 8204 | return 0; | ||
| 8205 | } | ||
| 8206 | _ACEOF | ||
| 8207 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8208 | ac_cv_c_volatile=yes | ||
| 8209 | else | ||
| 8210 | ac_cv_c_volatile=no | ||
| 8211 | fi | ||
| 8212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8213 | fi | ||
| 8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | ||
| 8215 | $as_echo "$ac_cv_c_volatile" >&6; } | ||
| 8216 | if test $ac_cv_c_volatile = no; then | ||
| 8217 | |||
| 8218 | $as_echo "#define volatile /**/" >>confdefs.h | ||
| 8219 | |||
| 8220 | fi | ||
| 8221 | |||
| 8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
| 8223 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
| 8224 | if test "${ac_cv_c_const+set}" = set; then : | ||
| 8225 | $as_echo_n "(cached) " >&6 | ||
| 8226 | else | ||
| 8227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8228 | /* end confdefs.h. */ | ||
| 8229 | |||
| 8230 | int | ||
| 8231 | main () | ||
| 8232 | { | ||
| 8233 | /* FIXME: Include the comments suggested by Paul. */ | ||
| 8234 | #ifndef __cplusplus | ||
| 8235 | /* Ultrix mips cc rejects this. */ | ||
| 8236 | typedef int charset[2]; | ||
| 8237 | const charset cs; | ||
| 8238 | /* SunOS 4.1.1 cc rejects this. */ | ||
| 8239 | char const *const *pcpcc; | ||
| 8240 | char **ppc; | ||
| 8241 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
| 8242 | struct point {int x, y;}; | ||
| 8243 | static struct point const zero = {0,0}; | ||
| 8244 | /* AIX XL C 1.02.0.0 rejects this. | ||
| 8245 | It does not let you subtract one const X* pointer from another in | ||
| 8246 | an arm of an if-expression whose if-part is not a constant | ||
| 8247 | expression */ | ||
| 8248 | const char *g = "string"; | ||
| 8249 | pcpcc = &g + (g ? g-g : 0); | ||
| 8250 | /* HPUX 7.0 cc rejects these. */ | ||
| 8251 | ++pcpcc; | ||
| 8252 | ppc = (char**) pcpcc; | ||
| 8253 | pcpcc = (char const *const *) ppc; | ||
| 8254 | { /* SCO 3.2v4 cc rejects this. */ | ||
| 8255 | char *t; | ||
| 8256 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
| 8257 | |||
| 8258 | *t++ = 0; | ||
| 8259 | if (s) return 0; | ||
| 8260 | } | ||
| 8261 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
| 8262 | int x[] = {25, 17}; | ||
| 8263 | const int *foo = &x[0]; | ||
| 8264 | ++foo; | ||
| 8265 | } | ||
| 8266 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
| 8267 | typedef const int *iptr; | ||
| 8268 | iptr p = 0; | ||
| 8269 | ++p; | ||
| 8270 | } | ||
| 8271 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
| 8272 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
| 8273 | struct s { int j; const int *ap[3]; }; | ||
| 8274 | struct s *b; b->j = 5; | ||
| 8275 | } | ||
| 8276 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
| 8277 | const int foo = 10; | ||
| 8278 | if (!foo) return 0; | ||
| 8279 | } | ||
| 8280 | return !cs[0] && !zero.x; | ||
| 8281 | #endif | ||
| 8282 | |||
| 8283 | ; | ||
| 8284 | return 0; | ||
| 8285 | } | ||
| 8286 | _ACEOF | ||
| 8287 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8288 | ac_cv_c_const=yes | ||
| 8289 | else | ||
| 8290 | ac_cv_c_const=no | ||
| 8291 | fi | ||
| 8292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8293 | fi | ||
| 8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
| 8295 | $as_echo "$ac_cv_c_const" >&6; } | ||
| 8296 | if test $ac_cv_c_const = no; then | ||
| 8297 | |||
| 8298 | $as_echo "#define const /**/" >>confdefs.h | ||
| 8299 | |||
| 8300 | fi | ||
| 8301 | |||
| 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 | ||
| 8303 | $as_echo_n "checking for void * support... " >&6; } | ||
| 8304 | if test "${emacs_cv_void_star+set}" = set; then : | ||
| 8305 | $as_echo_n "(cached) " >&6 | ||
| 8306 | else | ||
| 8307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8308 | /* end confdefs.h. */ | ||
| 8309 | |||
| 8310 | int | ||
| 8311 | main () | ||
| 8312 | { | ||
| 8313 | void * foo; | ||
| 8314 | ; | ||
| 8315 | return 0; | ||
| 8316 | } | ||
| 8317 | _ACEOF | ||
| 8318 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8319 | emacs_cv_void_star=yes | ||
| 8320 | else | ||
| 8321 | emacs_cv_void_star=no | ||
| 8322 | fi | ||
| 8323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8324 | fi | ||
| 8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 | ||
| 8326 | $as_echo "$emacs_cv_void_star" >&6; } | ||
| 8327 | if test $emacs_cv_void_star = yes; then | ||
| 8328 | $as_echo "#define POINTER_TYPE void" >>confdefs.h | ||
| 8329 | |||
| 8330 | else | ||
| 8331 | $as_echo "#define POINTER_TYPE char" >>confdefs.h | ||
| 8332 | |||
| 8333 | fi | ||
| 8334 | |||
| 8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
| 8336 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
| 8337 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
| 8338 | $as_echo_n "(cached) " >&6 | ||
| 8339 | else | ||
| 8340 | ac_cv_c_bigendian=unknown | ||
| 8341 | # See if we're dealing with a universal compiler. | ||
| 8342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8343 | /* end confdefs.h. */ | ||
| 8344 | #ifndef __APPLE_CC__ | ||
| 8345 | not a universal capable compiler | ||
| 8346 | #endif | ||
| 8347 | typedef int dummy; | ||
| 8348 | |||
| 8349 | _ACEOF | ||
| 8350 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8351 | |||
| 8352 | # Check for potential -arch flags. It is not universal unless | ||
| 8353 | # there are at least two -arch flags with different values. | ||
| 8354 | ac_arch= | ||
| 8355 | ac_prev= | ||
| 8356 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
| 8357 | if test -n "$ac_prev"; then | ||
| 8358 | case $ac_word in | ||
| 8359 | i?86 | x86_64 | ppc | ppc64) | ||
| 8360 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
| 8361 | ac_arch=$ac_word | ||
| 8362 | else | ||
| 8363 | ac_cv_c_bigendian=universal | ||
| 8364 | break | ||
| 8365 | fi | ||
| 8366 | ;; | ||
| 8367 | esac | ||
| 8368 | ac_prev= | ||
| 8369 | elif test "x$ac_word" = "x-arch"; then | ||
| 8370 | ac_prev=arch | ||
| 8371 | fi | ||
| 8372 | done | ||
| 8373 | fi | ||
| 8374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8375 | if test $ac_cv_c_bigendian = unknown; then | ||
| 8376 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
| 8377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8378 | /* end confdefs.h. */ | ||
| 8379 | #include <sys/types.h> | ||
| 8380 | #include <sys/param.h> | ||
| 8381 | |||
| 8382 | int | ||
| 8383 | main () | ||
| 8384 | { | ||
| 8385 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
| 8386 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
| 8387 | && LITTLE_ENDIAN) | ||
| 8388 | bogus endian macros | ||
| 8389 | #endif | ||
| 8390 | |||
| 8391 | ; | ||
| 8392 | return 0; | ||
| 8393 | } | ||
| 8394 | _ACEOF | ||
| 8395 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8396 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
| 8397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8398 | /* end confdefs.h. */ | ||
| 8399 | #include <sys/types.h> | ||
| 8400 | #include <sys/param.h> | ||
| 8401 | |||
| 8402 | int | ||
| 8403 | main () | ||
| 8404 | { | ||
| 8405 | #if BYTE_ORDER != BIG_ENDIAN | ||
| 8406 | not big endian | ||
| 8407 | #endif | ||
| 8408 | |||
| 8409 | ; | ||
| 8410 | return 0; | ||
| 8411 | } | ||
| 8412 | _ACEOF | ||
| 8413 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8414 | ac_cv_c_bigendian=yes | ||
| 8415 | else | ||
| 8416 | ac_cv_c_bigendian=no | ||
| 8417 | fi | ||
| 8418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8419 | fi | ||
| 8420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8421 | fi | ||
| 8422 | if test $ac_cv_c_bigendian = unknown; then | ||
| 8423 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
| 8424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8425 | /* end confdefs.h. */ | ||
| 8426 | #include <limits.h> | ||
| 8427 | |||
| 8428 | int | ||
| 8429 | main () | ||
| 8430 | { | ||
| 8431 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
| 8432 | bogus endian macros | ||
| 8433 | #endif | ||
| 8434 | |||
| 8435 | ; | ||
| 8436 | return 0; | ||
| 8437 | } | ||
| 8438 | _ACEOF | ||
| 8439 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8440 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
| 8441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8442 | /* end confdefs.h. */ | ||
| 8443 | #include <limits.h> | ||
| 8444 | |||
| 8445 | int | ||
| 8446 | main () | ||
| 8447 | { | ||
| 8448 | #ifndef _BIG_ENDIAN | ||
| 8449 | not big endian | ||
| 8450 | #endif | ||
| 8451 | |||
| 8452 | ; | ||
| 8453 | return 0; | ||
| 8454 | } | ||
| 8455 | _ACEOF | ||
| 8456 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8457 | ac_cv_c_bigendian=yes | ||
| 8458 | else | ||
| 8459 | ac_cv_c_bigendian=no | ||
| 8460 | fi | ||
| 8461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8462 | fi | ||
| 8463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8464 | fi | ||
| 8465 | if test $ac_cv_c_bigendian = unknown; then | ||
| 8466 | # Compile a test program. | ||
| 8467 | if test "$cross_compiling" = yes; then : | ||
| 8468 | # Try to guess by grepping values from an object file. | ||
| 8469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8470 | /* end confdefs.h. */ | ||
| 8471 | short int ascii_mm[] = | ||
| 8472 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
| 8473 | short int ascii_ii[] = | ||
| 8474 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
| 8475 | int use_ascii (int i) { | ||
| 8476 | return ascii_mm[i] + ascii_ii[i]; | ||
| 8477 | } | ||
| 8478 | short int ebcdic_ii[] = | ||
| 8479 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
| 8480 | short int ebcdic_mm[] = | ||
| 8481 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
| 8482 | int use_ebcdic (int i) { | ||
| 8483 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
| 8484 | } | ||
| 8485 | extern int foo; | ||
| 8486 | |||
| 8487 | int | ||
| 8488 | main () | ||
| 8489 | { | ||
| 8490 | return use_ascii (foo) == use_ebcdic (foo); | ||
| 8491 | ; | ||
| 8492 | return 0; | ||
| 8493 | } | ||
| 8494 | _ACEOF | ||
| 8495 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8496 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
| 8497 | ac_cv_c_bigendian=yes | ||
| 8498 | fi | ||
| 8499 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
| 8500 | if test "$ac_cv_c_bigendian" = unknown; then | ||
| 8501 | ac_cv_c_bigendian=no | ||
| 8502 | else | ||
| 8503 | # finding both strings is unlikely to happen, but who knows? | ||
| 8504 | ac_cv_c_bigendian=unknown | ||
| 8505 | fi | ||
| 8506 | fi | ||
| 8507 | fi | ||
| 8508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8509 | else | ||
| 8510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8511 | /* end confdefs.h. */ | ||
| 8512 | $ac_includes_default | ||
| 8513 | int | ||
| 8514 | main () | ||
| 8515 | { | ||
| 8516 | |||
| 8517 | /* Are we little or big endian? From Harbison&Steele. */ | ||
| 8518 | union | ||
| 8519 | { | ||
| 8520 | long int l; | ||
| 8521 | char c[sizeof (long int)]; | ||
| 8522 | } u; | ||
| 8523 | u.l = 1; | ||
| 8524 | return u.c[sizeof (long int) - 1] == 1; | ||
| 8525 | |||
| 8526 | ; | ||
| 8527 | return 0; | ||
| 8528 | } | ||
| 8529 | _ACEOF | ||
| 8530 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 8531 | ac_cv_c_bigendian=no | ||
| 8532 | else | ||
| 8533 | ac_cv_c_bigendian=yes | ||
| 8534 | fi | ||
| 8535 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 8536 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 8537 | fi | ||
| 8538 | |||
| 8539 | fi | ||
| 8540 | fi | ||
| 8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
| 8542 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
| 8543 | case $ac_cv_c_bigendian in #( | ||
| 8544 | yes) | ||
| 8545 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
| 8546 | ;; #( | ||
| 8547 | no) | ||
| 8548 | ;; #( | ||
| 8549 | universal) | ||
| 8550 | |||
| 8551 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
| 8552 | |||
| 8553 | ;; #( | ||
| 8554 | *) | ||
| 8555 | as_fn_error "unknown endianness | ||
| 8556 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
| 8557 | esac | ||
| 8558 | |||
| 8559 | |||
| 8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5 | ||
| 8561 | $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; } | ||
| 8562 | if test "${emacs_cv_attribute_aligned+set}" = set; then : | ||
| 8563 | $as_echo_n "(cached) " >&6 | ||
| 8564 | else | ||
| 8565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8566 | /* end confdefs.h. */ | ||
| 8567 | char __attribute__ ((__aligned__ (1 << 3))) c; | ||
| 8568 | int | ||
| 8569 | main () | ||
| 8570 | { | ||
| 8571 | |||
| 8572 | ; | ||
| 8573 | return 0; | ||
| 8574 | } | ||
| 8575 | _ACEOF | ||
| 8576 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8577 | emacs_cv_attribute_aligned=yes | ||
| 8578 | else | ||
| 8579 | emacs_cv_attribute_aligned=no | ||
| 8580 | fi | ||
| 8581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8582 | fi | ||
| 8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5 | ||
| 8584 | $as_echo "$emacs_cv_attribute_aligned" >&6; } | ||
| 8585 | if test $emacs_cv_attribute_aligned = yes; then | ||
| 8586 | |||
| 8587 | $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h | ||
| 8588 | |||
| 8589 | fi | ||
| 8590 | |||
| 8591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
| 8592 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
| 8593 | set x ${MAKE-make} | ||
| 8594 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
| 8595 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 8596 | $as_echo_n "(cached) " >&6 | ||
| 8597 | else | ||
| 8598 | cat >conftest.make <<\_ACEOF | ||
| 8599 | SHELL = /bin/sh | ||
| 8600 | all: | ||
| 8601 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
| 8602 | _ACEOF | ||
| 8603 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
| 8604 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
| 8605 | *@@@%%%=?*=@@@%%%*) | ||
| 8606 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
| 8607 | *) | ||
| 8608 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
| 8609 | esac | ||
| 8610 | rm -f conftest.make | ||
| 8611 | fi | ||
| 8612 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
| 8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 8614 | $as_echo "yes" >&6; } | ||
| 8615 | SET_MAKE= | ||
| 8616 | else | ||
| 8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 8618 | $as_echo "no" >&6; } | ||
| 8619 | SET_MAKE="MAKE=${MAKE-make}" | ||
| 8620 | fi | ||
| 8621 | |||
| 8622 | |||
| 8623 | DEPFLAGS= | ||
| 8624 | MKDEPDIR=":" | ||
| 8625 | deps_frag=deps.mk | ||
| 8626 | if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | ||
| 8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 | ||
| 8628 | $as_echo_n "checking whether we are using GNU Make... " >&6; } | ||
| 8629 | HAVE_GNU_MAKE=no | ||
| 8630 | testval=`make --version 2>/dev/null | grep 'GNU Make'` | ||
| 8631 | if test "x$testval" != x; then | ||
| 8632 | HAVE_GNU_MAKE=yes | ||
| 8633 | else | ||
| 8634 | ac_enable_autodepend=no | ||
| 8635 | fi | ||
| 8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 | ||
| 8637 | $as_echo "$HAVE_GNU_MAKE" >&6; } | ||
| 8638 | if test $HAVE_GNU_MAKE = yes; then | ||
| 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 | ||
| 8640 | $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } | ||
| 8641 | SAVE_CFLAGS="$CFLAGS" | ||
| 8642 | CFLAGS="$CFLAGS -MMD -MF deps.d" | ||
| 8643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8644 | /* end confdefs.h. */ | ||
| 8645 | |||
| 8646 | int | ||
| 8647 | main () | ||
| 8648 | { | ||
| 8649 | |||
| 8650 | ; | ||
| 8651 | return 0; | ||
| 8652 | } | ||
| 8653 | _ACEOF | ||
| 8654 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8655 | |||
| 8656 | else | ||
| 8657 | ac_enable_autodepend=no | ||
| 8658 | fi | ||
| 8659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8660 | CFLAGS="$SAVE_CFLAGS" | ||
| 8661 | test -f deps.d || ac_enable_autodepend=no | ||
| 8662 | rm -rf deps.d | ||
| 8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 | ||
| 8664 | $as_echo "$ac_enable_autodepend" >&6; } | ||
| 8665 | fi | ||
| 8666 | if test $ac_enable_autodepend = yes; then | ||
| 8667 | DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d' | ||
| 8668 | ## In parallel builds, another make might create depdir between | ||
| 8669 | ## the first test and mkdir, so stick another test on the end. | ||
| 8670 | ## Or use mkinstalldirs? mkdir -p is not portable. | ||
| 8671 | MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}' | ||
| 8672 | deps_frag=autodeps.mk | ||
| 8673 | fi | ||
| 8674 | fi | ||
| 8675 | deps_frag=$srcdir/src/$deps_frag | ||
| 8676 | |||
| 8677 | |||
| 8678 | |||
| 8679 | |||
| 8680 | |||
| 8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 | ||
| 8682 | $as_echo_n "checking for long file names... " >&6; } | ||
| 8683 | if test "${ac_cv_sys_long_file_names+set}" = set; then : | ||
| 8684 | $as_echo_n "(cached) " >&6 | ||
| 8685 | else | ||
| 8686 | ac_cv_sys_long_file_names=yes | ||
| 8687 | # Test for long file names in all the places we know might matter: | ||
| 8688 | # . the current directory, where building will happen | ||
| 8689 | # $prefix/lib where we will be installing things | ||
| 8690 | # $exec_prefix/lib likewise | ||
| 8691 | # $TMPDIR if set, where it might want to write temporary files | ||
| 8692 | # /tmp where it might want to write temporary files | ||
| 8693 | # /var/tmp likewise | ||
| 8694 | # /usr/tmp likewise | ||
| 8695 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do | ||
| 8696 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib | ||
| 8697 | # in the usual case where exec_prefix is '${prefix}'. | ||
| 8698 | case $ac_dir in #( | ||
| 8699 | . | /* | ?:[\\/]*) ;; #( | ||
| 8700 | *) continue;; | ||
| 8701 | esac | ||
| 8702 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. | ||
| 8703 | ac_xdir=$ac_dir/cf$$ | ||
| 8704 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue | ||
| 8705 | ac_tf1=$ac_xdir/conftest9012345 | ||
| 8706 | ac_tf2=$ac_xdir/conftest9012346 | ||
| 8707 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || | ||
| 8708 | ac_cv_sys_long_file_names=no | ||
| 8709 | rm -f -r "$ac_xdir" 2>/dev/null | ||
| 8710 | test $ac_cv_sys_long_file_names = no && break | ||
| 8711 | done | ||
| 8712 | fi | ||
| 8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 | ||
| 8714 | $as_echo "$ac_cv_sys_long_file_names" >&6; } | ||
| 8715 | if test $ac_cv_sys_long_file_names = yes; then | ||
| 8716 | |||
| 8717 | $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h | ||
| 8718 | |||
| 8719 | fi | ||
| 8720 | |||
| 8721 | |||
| 8722 | #### Choose a window system. | ||
| 8723 | |||
| 8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
| 8725 | $as_echo_n "checking for X... " >&6; } | ||
| 8726 | |||
| 8727 | |||
| 8728 | # Check whether --with-x was given. | ||
| 8729 | if test "${with_x+set}" = set; then : | ||
| 8730 | withval=$with_x; | ||
| 8731 | fi | ||
| 8732 | |||
| 8733 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
| 8734 | if test "x$with_x" = xno; then | ||
| 8735 | # The user explicitly disabled X. | ||
| 8736 | have_x=disabled | ||
| 8737 | else | ||
| 8738 | case $x_includes,$x_libraries in #( | ||
| 8739 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( | ||
| 8740 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
| 8741 | $as_echo_n "(cached) " >&6 | ||
| 8742 | else | ||
| 8743 | # One or both of the vars are not set, and there is no cached value. | ||
| 8744 | ac_x_includes=no ac_x_libraries=no | ||
| 8745 | rm -f -r conftest.dir | ||
| 8746 | if mkdir conftest.dir; then | ||
| 8747 | cd conftest.dir | ||
| 8748 | cat >Imakefile <<'_ACEOF' | ||
| 8749 | incroot: | ||
| 8750 | @echo incroot='${INCROOT}' | ||
| 8751 | usrlibdir: | ||
| 8752 | @echo usrlibdir='${USRLIBDIR}' | ||
| 8753 | libdir: | ||
| 8754 | @echo libdir='${LIBDIR}' | ||
| 8755 | _ACEOF | ||
| 8756 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
| 8757 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
| 8758 | for ac_var in incroot usrlibdir libdir; do | ||
| 8759 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
| 8760 | done | ||
| 8761 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
| 8762 | for ac_extension in a so sl dylib la dll; do | ||
| 8763 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
| 8764 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
| 8765 | ac_im_usrlibdir=$ac_im_libdir; break | ||
| 8766 | fi | ||
| 8767 | done | ||
| 8768 | # Screen out bogus values from the imake configuration. They are | ||
| 8769 | # bogus both because they are the default anyway, and because | ||
| 8770 | # using them would break gcc on systems where it needs fixed includes. | ||
| 8771 | case $ac_im_incroot in | ||
| 8772 | /usr/include) ac_x_includes= ;; | ||
| 8773 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
| 8774 | esac | ||
| 8775 | case $ac_im_usrlibdir in | ||
| 8776 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
| 8777 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
| 8778 | esac | ||
| 8779 | fi | ||
| 8780 | cd .. | ||
| 8781 | rm -f -r conftest.dir | ||
| 8782 | fi | ||
| 8783 | |||
| 8784 | # Standard set of common directories for X headers. | ||
| 8785 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
| 8786 | ac_x_header_dirs=' | ||
| 8787 | /usr/X11/include | ||
| 8788 | /usr/X11R7/include | ||
| 8789 | /usr/X11R6/include | ||
| 8790 | /usr/X11R5/include | ||
| 8791 | /usr/X11R4/include | ||
| 8792 | |||
| 8793 | /usr/include/X11 | ||
| 8794 | /usr/include/X11R7 | ||
| 8795 | /usr/include/X11R6 | ||
| 8796 | /usr/include/X11R5 | ||
| 8797 | /usr/include/X11R4 | ||
| 8798 | |||
| 8799 | /usr/local/X11/include | ||
| 8800 | /usr/local/X11R7/include | ||
| 8801 | /usr/local/X11R6/include | ||
| 8802 | /usr/local/X11R5/include | ||
| 8803 | /usr/local/X11R4/include | ||
| 8804 | |||
| 8805 | /usr/local/include/X11 | ||
| 8806 | /usr/local/include/X11R7 | ||
| 8807 | /usr/local/include/X11R6 | ||
| 8808 | /usr/local/include/X11R5 | ||
| 8809 | /usr/local/include/X11R4 | ||
| 8810 | |||
| 8811 | /usr/X386/include | ||
| 8812 | /usr/x386/include | ||
| 8813 | /usr/XFree86/include/X11 | ||
| 8814 | |||
| 8815 | /usr/include | ||
| 8816 | /usr/local/include | ||
| 8817 | /usr/unsupported/include | ||
| 8818 | /usr/athena/include | ||
| 8819 | /usr/local/x11r5/include | ||
| 8820 | /usr/lpp/Xamples/include | ||
| 8821 | |||
| 8822 | /usr/openwin/include | ||
| 8823 | /usr/openwin/share/include' | ||
| 8824 | |||
| 8825 | if test "$ac_x_includes" = no; then | ||
| 8826 | # Guess where to find include files, by looking for Xlib.h. | ||
| 8827 | # First, try using that file with no special directory specified. | ||
| 8828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8829 | /* end confdefs.h. */ | ||
| 8830 | #include <X11/Xlib.h> | ||
| 8831 | _ACEOF | ||
| 8832 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
| 8833 | # We can compile using X headers with no special include directory. | ||
| 8834 | ac_x_includes= | ||
| 8835 | else | ||
| 8836 | for ac_dir in $ac_x_header_dirs; do | ||
| 8837 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
| 8838 | ac_x_includes=$ac_dir | ||
| 8839 | break | ||
| 8840 | fi | ||
| 8841 | done | ||
| 8842 | fi | ||
| 8843 | rm -f conftest.err conftest.$ac_ext | ||
| 8844 | fi # $ac_x_includes = no | ||
| 8845 | |||
| 8846 | if test "$ac_x_libraries" = no; then | ||
| 8847 | # Check for the libraries. | ||
| 8848 | # See if we find them without any special options. | ||
| 8849 | # Don't add to $LIBS permanently. | ||
| 8850 | ac_save_LIBS=$LIBS | ||
| 8851 | LIBS="-lX11 $LIBS" | ||
| 8852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8853 | /* end confdefs.h. */ | ||
| 8854 | #include <X11/Xlib.h> | ||
| 8855 | int | ||
| 8856 | main () | ||
| 8857 | { | ||
| 8858 | XrmInitialize () | ||
| 8859 | ; | ||
| 8860 | return 0; | ||
| 8861 | } | ||
| 8862 | _ACEOF | ||
| 8863 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 8864 | LIBS=$ac_save_LIBS | ||
| 8865 | # We can link X programs with no special library path. | ||
| 8866 | ac_x_libraries= | ||
| 8867 | else | ||
| 8868 | LIBS=$ac_save_LIBS | ||
| 8869 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
| 8870 | do | ||
| 8871 | # Don't even attempt the hair of trying to link an X program! | ||
| 8872 | for ac_extension in a so sl dylib la dll; do | ||
| 8873 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
| 8874 | ac_x_libraries=$ac_dir | ||
| 8875 | break 2 | ||
| 8876 | fi | ||
| 8877 | done | ||
| 8878 | done | ||
| 8879 | fi | ||
| 8880 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 8881 | conftest$ac_exeext conftest.$ac_ext | ||
| 8882 | fi # $ac_x_libraries = no | ||
| 8883 | |||
| 8884 | case $ac_x_includes,$ac_x_libraries in #( | ||
| 8885 | no,* | *,no | *\'*) | ||
| 8886 | # Didn't find X, or a directory has "'" in its name. | ||
| 8887 | ac_cv_have_x="have_x=no";; #( | ||
| 8888 | *) | ||
| 8889 | # Record where we found X for the cache. | ||
| 8890 | ac_cv_have_x="have_x=yes\ | ||
| 8891 | ac_x_includes='$ac_x_includes'\ | ||
| 8892 | ac_x_libraries='$ac_x_libraries'" | ||
| 8893 | esac | ||
| 8894 | fi | ||
| 8895 | ;; #( | ||
| 8896 | *) have_x=yes;; | ||
| 8897 | esac | ||
| 8898 | eval "$ac_cv_have_x" | ||
| 8899 | fi # $with_x != no | ||
| 8900 | |||
| 8901 | if test "$have_x" != yes; then | ||
| 8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
| 8903 | $as_echo "$have_x" >&6; } | ||
| 8904 | no_x=yes | ||
| 8905 | else | ||
| 8906 | # If each of the values was on the command line, it overrides each guess. | ||
| 8907 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
| 8908 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
| 8909 | # Update the cache value to reflect the command line values. | ||
| 8910 | ac_cv_have_x="have_x=yes\ | ||
| 8911 | ac_x_includes='$x_includes'\ | ||
| 8912 | ac_x_libraries='$x_libraries'" | ||
| 8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
| 8914 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
| 8915 | fi | ||
| 8916 | |||
| 8917 | if test "$no_x" = yes; then | ||
| 8918 | window_system=none | ||
| 8919 | else | ||
| 8920 | window_system=x11 | ||
| 8921 | fi | ||
| 8922 | |||
| 8923 | ## Workaround for bug in autoconf <= 2.62. | ||
| 8924 | ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html | ||
| 8925 | ## No need to do anything special for these standard directories. | ||
| 8926 | if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then | ||
| 8927 | |||
| 8928 | x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'` | ||
| 8929 | |||
| 8930 | fi | ||
| 8931 | |||
| 8932 | LD_SWITCH_X_SITE_AUX= | ||
| 8933 | LD_SWITCH_X_SITE_AUX_RPATH= | ||
| 8934 | if test "${x_libraries}" != NONE; then | ||
| 8935 | if test -n "${x_libraries}"; then | ||
| 8936 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | ||
| 8937 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | ||
| 8938 | LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'` | ||
| 8939 | fi | ||
| 8940 | x_default_search_path="" | ||
| 8941 | x_search_path=${x_libraries} | ||
| 8942 | if test -z "${x_search_path}"; then | ||
| 8943 | x_search_path=/usr/lib | ||
| 8944 | fi | ||
| 8945 | for x_library in `echo ${x_search_path}: | \ | ||
| 8946 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do | ||
| 8947 | x_search_path="\ | ||
| 8948 | ${x_library}/X11/%L/%T/%N%C%S:\ | ||
| 8949 | ${x_library}/X11/%l/%T/%N%C%S:\ | ||
| 8950 | ${x_library}/X11/%T/%N%C%S:\ | ||
| 8951 | ${x_library}/X11/%L/%T/%N%S:\ | ||
| 8952 | ${x_library}/X11/%l/%T/%N%S:\ | ||
| 8953 | ${x_library}/X11/%T/%N%S" | ||
| 8954 | if test x"${x_default_search_path}" = x; then | ||
| 8955 | x_default_search_path=${x_search_path} | ||
| 8956 | else | ||
| 8957 | x_default_search_path="${x_search_path}:${x_default_search_path}" | ||
| 8958 | fi | ||
| 8959 | done | ||
| 8960 | fi | ||
| 8961 | |||
| 8962 | |||
| 8963 | |||
| 8964 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | ||
| 8965 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | ||
| 8966 | fi | ||
| 8967 | |||
| 8968 | if test x"${x_includes}" = x; then | ||
| 8969 | bitmapdir=/usr/include/X11/bitmaps | ||
| 8970 | else | ||
| 8971 | # accumulate include directories that have X11 bitmap subdirectories | ||
| 8972 | bmd_acc="dummyval" | ||
| 8973 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | ||
| 8974 | if test -d "${bmd}/X11/bitmaps"; then | ||
| 8975 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | ||
| 8976 | fi | ||
| 8977 | if test -d "${bmd}/bitmaps"; then | ||
| 8978 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | ||
| 8979 | fi | ||
| 8980 | done | ||
| 8981 | if test ${bmd_acc} != "dummyval"; then | ||
| 8982 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | ||
| 8983 | fi | ||
| 8984 | fi | ||
| 8985 | |||
| 8986 | HAVE_NS=no | ||
| 8987 | NS_IMPL_COCOA=no | ||
| 8988 | NS_IMPL_GNUSTEP=no | ||
| 8989 | tmp_CPPFLAGS="$CPPFLAGS" | ||
| 8990 | tmp_CFLAGS="$CFLAGS" | ||
| 8991 | CPPFLAGS="$CPPFLAGS -x objective-c" | ||
| 8992 | CFLAGS="$CFLAGS -x objective-c" | ||
| 8993 | TEMACS_LDFLAGS2="\${LDFLAGS}" | ||
| 8994 | if test "${with_ns}" != no; then | ||
| 8995 | if test "${opsys}" = darwin; then | ||
| 8996 | NS_IMPL_COCOA=yes | ||
| 8997 | ns_appdir=`pwd`/nextstep/Emacs.app | ||
| 8998 | ns_appbindir=${ns_appdir}/Contents/MacOS/ | ||
| 8999 | ns_appresdir=${ns_appdir}/Contents/Resources | ||
| 9000 | ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base | ||
| 9001 | elif test -f $GNUSTEP_CONFIG_FILE; then | ||
| 9002 | NS_IMPL_GNUSTEP=yes | ||
| 9003 | ns_appdir=`pwd`/nextstep/Emacs.app | ||
| 9004 | ns_appbindir=${ns_appdir}/ | ||
| 9005 | ns_appresdir=${ns_appdir}/Resources | ||
| 9006 | ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base | ||
| 9007 | GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)" | ||
| 9008 | GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)" | ||
| 9009 | GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)" | ||
| 9010 | GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)" | ||
| 9011 | test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \ | ||
| 9012 | GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}" | ||
| 9013 | test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \ | ||
| 9014 | GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}" | ||
| 9015 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" | ||
| 9016 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" | ||
| 9017 | LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" | ||
| 9018 | LIB_STANDARD= | ||
| 9019 | START_FILES= | ||
| 9020 | TEMACS_LDFLAGS2= | ||
| 9021 | fi | ||
| 9022 | ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" | ||
| 9023 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : | ||
| 9024 | HAVE_NS=yes | ||
| 9025 | else | ||
| 9026 | as_fn_error "\`--with-ns' was specified, but the include | ||
| 9027 | files are missing or cannot be compiled." "$LINENO" 5 | ||
| 9028 | fi | ||
| 9029 | |||
| 9030 | |||
| 9031 | NS_HAVE_NSINTEGER=yes | ||
| 9032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9033 | /* end confdefs.h. */ | ||
| 9034 | #include <Foundation/NSObjCRuntime.h> | ||
| 9035 | int | ||
| 9036 | main () | ||
| 9037 | { | ||
| 9038 | NSInteger i; | ||
| 9039 | ; | ||
| 9040 | return 0; | ||
| 9041 | } | ||
| 9042 | _ACEOF | ||
| 9043 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 9044 | ns_have_nsinteger=yes | ||
| 9045 | else | ||
| 9046 | ns_have_nsinteger=no | ||
| 9047 | fi | ||
| 9048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 9049 | if test $ns_have_nsinteger = no; then | ||
| 9050 | NS_HAVE_NSINTEGER=no | ||
| 9051 | fi | ||
| 9052 | fi | ||
| 9053 | |||
| 9054 | |||
| 9055 | ns_frag=/dev/null | ||
| 9056 | NS_OBJ= | ||
| 9057 | NS_OBJC_OBJ= | ||
| 9058 | NS_SUPPORT= | ||
| 9059 | if test "${HAVE_NS}" = yes; then | ||
| 9060 | window_system=nextstep | ||
| 9061 | with_xft=no | ||
| 9062 | # set up packaging dirs | ||
| 9063 | exec_prefix=${ns_appbindir} | ||
| 9064 | libexecdir=${ns_appbindir}/libexec | ||
| 9065 | if test "${EN_NS_SELF_CONTAINED}" = yes; then | ||
| 9066 | prefix=${ns_appresdir} | ||
| 9067 | fi | ||
| 9068 | ns_frag=$srcdir/src/ns.mk | ||
| 9069 | NS_OBJ="fontset.o fringe.o image.o" | ||
| 9070 | NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o" | ||
| 9071 | NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc" | ||
| 9072 | fi | ||
| 9073 | CFLAGS="$tmp_CFLAGS" | ||
| 9074 | CPPFLAGS="$tmp_CPPFLAGS" | ||
| 9075 | |||
| 9076 | |||
| 9077 | |||
| 9078 | |||
| 9079 | |||
| 9080 | |||
| 9081 | case "${window_system}" in | ||
| 9082 | x11 ) | ||
| 9083 | HAVE_X_WINDOWS=yes | ||
| 9084 | HAVE_X11=yes | ||
| 9085 | case "${with_x_toolkit}" in | ||
| 9086 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | ||
| 9087 | motif ) USE_X_TOOLKIT=MOTIF ;; | ||
| 9088 | gtk ) with_gtk=yes | ||
| 9089 | USE_X_TOOLKIT=none ;; | ||
| 9090 | gtk3 ) with_gtk3=yes | ||
| 9091 | USE_X_TOOLKIT=none ;; | ||
| 9092 | no ) USE_X_TOOLKIT=none ;; | ||
| 9093 | * ) USE_X_TOOLKIT=maybe ;; | ||
| 9094 | esac | ||
| 9095 | ;; | ||
| 9096 | nextstep | none ) | ||
| 9097 | HAVE_X_WINDOWS=no | ||
| 9098 | HAVE_X11=no | ||
| 9099 | USE_X_TOOLKIT=none | ||
| 9100 | ;; | ||
| 9101 | esac | ||
| 9102 | |||
| 9103 | if test "$window_system" = none && test "X$with_x" != "Xno"; then | ||
| 9104 | # Extract the first word of "X", so it can be a program name with args. | ||
| 9105 | set dummy X; ac_word=$2 | ||
| 9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 9107 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 9108 | if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : | ||
| 9109 | $as_echo_n "(cached) " >&6 | ||
| 9110 | else | ||
| 9111 | if test -n "$HAVE_XSERVER"; then | ||
| 9112 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | ||
| 9113 | else | ||
| 9114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 9115 | for as_dir in $PATH | ||
| 9116 | do | ||
| 9117 | IFS=$as_save_IFS | ||
| 9118 | test -z "$as_dir" && as_dir=. | ||
| 9119 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 9120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 9121 | ac_cv_prog_HAVE_XSERVER="true" | ||
| 9122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 9123 | break 2 | ||
| 9124 | fi | ||
| 9125 | done | ||
| 9126 | done | ||
| 9127 | IFS=$as_save_IFS | ||
| 9128 | |||
| 9129 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | ||
| 9130 | fi | ||
| 9131 | fi | ||
| 9132 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | ||
| 9133 | if test -n "$HAVE_XSERVER"; then | ||
| 9134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 | ||
| 9135 | $as_echo "$HAVE_XSERVER" >&6; } | ||
| 9136 | else | ||
| 9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 9138 | $as_echo "no" >&6; } | ||
| 9139 | fi | ||
| 9140 | |||
| 9141 | |||
| 9142 | if test "$HAVE_XSERVER" = true || | ||
| 9143 | test -n "$DISPLAY" || | ||
| 9144 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | ||
| 9145 | as_fn_error "You seem to be running X, but no X development libraries | ||
| 9146 | were found. You should install the relevant development files for X | ||
| 9147 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | ||
| 9148 | sure you have development files for image handling, i.e. | ||
| 9149 | tiff, gif, jpeg, png and xpm. | ||
| 9150 | If you are sure you want Emacs compiled without X window support, pass | ||
| 9151 | --without-x | ||
| 9152 | to configure." "$LINENO" 5 | ||
| 9153 | fi | ||
| 9154 | fi | ||
| 9155 | |||
| 9156 | ### If we're using X11, we should use the X menu package. | ||
| 9157 | HAVE_MENUS=no | ||
| 9158 | case ${HAVE_X11} in | ||
| 9159 | yes ) HAVE_MENUS=yes ;; | ||
| 9160 | esac | ||
| 9161 | |||
| 9162 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | ||
| 9163 | # Assume not, until told otherwise. | ||
| 9164 | GNU_MALLOC=yes | ||
| 9165 | doug_lea_malloc=yes | ||
| 9166 | ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" | ||
| 9167 | if test "x$ac_cv_func_malloc_get_state" = x""yes; then : | ||
| 9168 | |||
| 9169 | else | ||
| 9170 | doug_lea_malloc=no | ||
| 9171 | fi | ||
| 9172 | |||
| 9173 | ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" | ||
| 9174 | if test "x$ac_cv_func_malloc_set_state" = x""yes; then : | ||
| 9175 | |||
| 9176 | else | ||
| 9177 | doug_lea_malloc=no | ||
| 9178 | fi | ||
| 9179 | |||
| 9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 | ||
| 9181 | $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } | ||
| 9182 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : | ||
| 9183 | $as_echo_n "(cached) " >&6 | ||
| 9184 | else | ||
| 9185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9186 | /* end confdefs.h. */ | ||
| 9187 | extern void (* __after_morecore_hook)(); | ||
| 9188 | int | ||
| 9189 | main () | ||
| 9190 | { | ||
| 9191 | __after_morecore_hook = 0 | ||
| 9192 | ; | ||
| 9193 | return 0; | ||
| 9194 | } | ||
| 9195 | _ACEOF | ||
| 9196 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9197 | emacs_cv_var___after_morecore_hook=yes | ||
| 9198 | else | ||
| 9199 | emacs_cv_var___after_morecore_hook=no | ||
| 9200 | fi | ||
| 9201 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9202 | conftest$ac_exeext conftest.$ac_ext | ||
| 9203 | fi | ||
| 9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 | ||
| 9205 | $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } | ||
| 9206 | if test $emacs_cv_var___after_morecore_hook = no; then | ||
| 9207 | doug_lea_malloc=no | ||
| 9208 | fi | ||
| 9209 | |||
| 9210 | |||
| 9211 | system_malloc=no | ||
| 9212 | case "$opsys" in | ||
| 9213 | ## darwin ld insists on the use of malloc routines in the System framework. | ||
| 9214 | darwin|sol2-10) system_malloc=yes ;; | ||
| 9215 | esac | ||
| 9216 | |||
| 9217 | if test "${system_malloc}" = "yes"; then | ||
| 9218 | |||
| 9219 | $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h | ||
| 9220 | |||
| 9221 | GNU_MALLOC=no | ||
| 9222 | GNU_MALLOC_reason=" | ||
| 9223 | (The GNU allocators don't work with this system configuration.)" | ||
| 9224 | GMALLOC_OBJ= | ||
| 9225 | VMLIMIT_OBJ= | ||
| 9226 | else | ||
| 9227 | test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o | ||
| 9228 | VMLIMIT_OBJ=vm-limit.o | ||
| 9229 | fi | ||
| 9230 | |||
| 9231 | |||
| 9232 | |||
| 9233 | if test "$doug_lea_malloc" = "yes" ; then | ||
| 9234 | if test "$GNU_MALLOC" = yes ; then | ||
| 9235 | GNU_MALLOC_reason=" | ||
| 9236 | (Using Doug Lea's new malloc from the GNU C Library.)" | ||
| 9237 | fi | ||
| 9238 | |||
| 9239 | $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h | ||
| 9240 | |||
| 9241 | |||
| 9242 | ## Use mmap directly for allocating larger buffers. | ||
| 9243 | ## FIXME this comes from src/s/{gnu,gnu-linux}.h: | ||
| 9244 | ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif | ||
| 9245 | ## Does the AC_FUNC_MMAP test below make this check unecessary? | ||
| 9246 | case "$opsys" in | ||
| 9247 | gnu*) REL_ALLOC=no ;; | ||
| 9248 | esac | ||
| 9249 | fi | ||
| 9250 | |||
| 9251 | if test x"${REL_ALLOC}" = x; then | ||
| 9252 | REL_ALLOC=${GNU_MALLOC} | ||
| 9253 | fi | ||
| 9254 | |||
| 9255 | use_mmap_for_buffers=no | ||
| 9256 | case "$opsys" in | ||
| 9257 | freebsd|irix6-5) use_mmap_for_buffers=yes ;; | ||
| 9258 | esac | ||
| 9259 | |||
| 9260 | |||
| 9261 | |||
| 9262 | |||
| 9263 | for ac_header in $ac_header_list | ||
| 9264 | do : | ||
| 9265 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 9266 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
| 9267 | " | ||
| 9268 | eval as_val=\$$as_ac_Header | ||
| 9269 | if test "x$as_val" = x""yes; then : | ||
| 9270 | cat >>confdefs.h <<_ACEOF | ||
| 9271 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 9272 | _ACEOF | ||
| 9273 | |||
| 9274 | fi | ||
| 9275 | |||
| 9276 | done | ||
| 9277 | |||
| 9278 | |||
| 9279 | |||
| 9280 | |||
| 9281 | |||
| 9282 | |||
| 9283 | |||
| 9284 | |||
| 9285 | for ac_func in getpagesize | ||
| 9286 | do : | ||
| 9287 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
| 9288 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | ||
| 9289 | cat >>confdefs.h <<_ACEOF | ||
| 9290 | #define HAVE_GETPAGESIZE 1 | ||
| 9291 | _ACEOF | ||
| 9292 | |||
| 9293 | fi | ||
| 9294 | done | ||
| 9295 | |||
| 9296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | ||
| 9297 | $as_echo_n "checking for working mmap... " >&6; } | ||
| 9298 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | ||
| 9299 | $as_echo_n "(cached) " >&6 | ||
| 9300 | else | ||
| 9301 | if test "$cross_compiling" = yes; then : | ||
| 9302 | ac_cv_func_mmap_fixed_mapped=no | ||
| 9303 | else | ||
| 9304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9305 | /* end confdefs.h. */ | ||
| 9306 | $ac_includes_default | ||
| 9307 | /* malloc might have been renamed as rpl_malloc. */ | ||
| 9308 | #undef malloc | ||
| 9309 | |||
| 9310 | /* Thanks to Mike Haertel and Jim Avera for this test. | ||
| 9311 | Here is a matrix of mmap possibilities: | ||
| 9312 | mmap private not fixed | ||
| 9313 | mmap private fixed at somewhere currently unmapped | ||
| 9314 | mmap private fixed at somewhere already mapped | ||
| 9315 | mmap shared not fixed | ||
| 9316 | mmap shared fixed at somewhere currently unmapped | ||
| 9317 | mmap shared fixed at somewhere already mapped | ||
| 9318 | For private mappings, we should verify that changes cannot be read() | ||
| 9319 | back from the file, nor mmap's back from the file at a different | ||
| 9320 | address. (There have been systems where private was not correctly | ||
| 9321 | implemented like the infamous i386 svr4.0, and systems where the | ||
| 9322 | VM page cache was not coherent with the file system buffer cache | ||
| 9323 | like early versions of FreeBSD and possibly contemporary NetBSD.) | ||
| 9324 | For shared mappings, we should conversely verify that changes get | ||
| 9325 | propagated back to all the places they're supposed to be. | ||
| 9326 | |||
| 9327 | Grep wants private fixed already mapped. | ||
| 9328 | The main things grep needs to know about mmap are: | ||
| 9329 | * does it exist and is it safe to write into the mmap'd area | ||
| 9330 | * how to use it (BSD variants) */ | ||
| 9331 | |||
| 9332 | #include <fcntl.h> | ||
| 9333 | #include <sys/mman.h> | ||
| 9334 | |||
| 9335 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | ||
| 9336 | char *malloc (); | ||
| 9337 | #endif | ||
| 9338 | |||
| 9339 | /* This mess was copied from the GNU getpagesize.h. */ | ||
| 9340 | #ifndef HAVE_GETPAGESIZE | ||
| 9341 | # ifdef _SC_PAGESIZE | ||
| 9342 | # define getpagesize() sysconf(_SC_PAGESIZE) | ||
| 9343 | # else /* no _SC_PAGESIZE */ | ||
| 9344 | # ifdef HAVE_SYS_PARAM_H | ||
| 9345 | # include <sys/param.h> | ||
| 9346 | # ifdef EXEC_PAGESIZE | ||
| 9347 | # define getpagesize() EXEC_PAGESIZE | ||
| 9348 | # else /* no EXEC_PAGESIZE */ | ||
| 9349 | # ifdef NBPG | ||
| 9350 | # define getpagesize() NBPG * CLSIZE | ||
| 9351 | # ifndef CLSIZE | ||
| 9352 | # define CLSIZE 1 | ||
| 9353 | # endif /* no CLSIZE */ | ||
| 9354 | # else /* no NBPG */ | ||
| 9355 | # ifdef NBPC | ||
| 9356 | # define getpagesize() NBPC | ||
| 9357 | # else /* no NBPC */ | ||
| 9358 | # ifdef PAGESIZE | ||
| 9359 | # define getpagesize() PAGESIZE | ||
| 9360 | # endif /* PAGESIZE */ | ||
| 9361 | # endif /* no NBPC */ | ||
| 9362 | # endif /* no NBPG */ | ||
| 9363 | # endif /* no EXEC_PAGESIZE */ | ||
| 9364 | # else /* no HAVE_SYS_PARAM_H */ | ||
| 9365 | # define getpagesize() 8192 /* punt totally */ | ||
| 9366 | # endif /* no HAVE_SYS_PARAM_H */ | ||
| 9367 | # endif /* no _SC_PAGESIZE */ | ||
| 9368 | |||
| 9369 | #endif /* no HAVE_GETPAGESIZE */ | ||
| 9370 | |||
| 9371 | int | ||
| 9372 | main () | ||
| 9373 | { | ||
| 9374 | char *data, *data2, *data3; | ||
| 9375 | const char *cdata2; | ||
| 9376 | int i, pagesize; | ||
| 9377 | int fd, fd2; | ||
| 9378 | |||
| 9379 | pagesize = getpagesize (); | ||
| 9380 | |||
| 9381 | /* First, make a file with some known garbage in it. */ | ||
| 9382 | data = (char *) malloc (pagesize); | ||
| 9383 | if (!data) | ||
| 9384 | return 1; | ||
| 9385 | for (i = 0; i < pagesize; ++i) | ||
| 9386 | *(data + i) = rand (); | ||
| 9387 | umask (0); | ||
| 9388 | fd = creat ("conftest.mmap", 0600); | ||
| 9389 | if (fd < 0) | ||
| 9390 | return 2; | ||
| 9391 | if (write (fd, data, pagesize) != pagesize) | ||
| 9392 | return 3; | ||
| 9393 | close (fd); | ||
| 9394 | |||
| 9395 | /* Next, check that the tail of a page is zero-filled. File must have | ||
| 9396 | non-zero length, otherwise we risk SIGBUS for entire page. */ | ||
| 9397 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | ||
| 9398 | if (fd2 < 0) | ||
| 9399 | return 4; | ||
| 9400 | cdata2 = ""; | ||
| 9401 | if (write (fd2, cdata2, 1) != 1) | ||
| 9402 | return 5; | ||
| 9403 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | ||
| 9404 | if (data2 == MAP_FAILED) | ||
| 9405 | return 6; | ||
| 9406 | for (i = 0; i < pagesize; ++i) | ||
| 9407 | if (*(data2 + i)) | ||
| 9408 | return 7; | ||
| 9409 | close (fd2); | ||
| 9410 | if (munmap (data2, pagesize)) | ||
| 9411 | return 8; | ||
| 9412 | |||
| 9413 | /* Next, try to mmap the file at a fixed address which already has | ||
| 9414 | something else allocated at it. If we can, also make sure that | ||
| 9415 | we see the same garbage. */ | ||
| 9416 | fd = open ("conftest.mmap", O_RDWR); | ||
| 9417 | if (fd < 0) | ||
| 9418 | return 9; | ||
| 9419 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | ||
| 9420 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | ||
| 9421 | return 10; | ||
| 9422 | for (i = 0; i < pagesize; ++i) | ||
| 9423 | if (*(data + i) != *(data2 + i)) | ||
| 9424 | return 11; | ||
| 9425 | |||
| 9426 | /* Finally, make sure that changes to the mapped area do not | ||
| 9427 | percolate back to the file as seen by read(). (This is a bug on | ||
| 9428 | some variants of i386 svr4.0.) */ | ||
| 9429 | for (i = 0; i < pagesize; ++i) | ||
| 9430 | *(data2 + i) = *(data2 + i) + 1; | ||
| 9431 | data3 = (char *) malloc (pagesize); | ||
| 9432 | if (!data3) | ||
| 9433 | return 12; | ||
| 9434 | if (read (fd, data3, pagesize) != pagesize) | ||
| 9435 | return 13; | ||
| 9436 | for (i = 0; i < pagesize; ++i) | ||
| 9437 | if (*(data + i) != *(data3 + i)) | ||
| 9438 | return 14; | ||
| 9439 | close (fd); | ||
| 9440 | return 0; | ||
| 9441 | } | ||
| 9442 | _ACEOF | ||
| 9443 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 9444 | ac_cv_func_mmap_fixed_mapped=yes | ||
| 9445 | else | ||
| 9446 | ac_cv_func_mmap_fixed_mapped=no | ||
| 9447 | fi | ||
| 9448 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 9449 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 9450 | fi | ||
| 9451 | |||
| 9452 | fi | ||
| 9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | ||
| 9454 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | ||
| 9455 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | ||
| 9456 | |||
| 9457 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | ||
| 9458 | |||
| 9459 | fi | ||
| 9460 | rm -f conftest.mmap conftest.txt | ||
| 9461 | |||
| 9462 | if test $use_mmap_for_buffers = yes; then | ||
| 9463 | |||
| 9464 | $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h | ||
| 9465 | |||
| 9466 | REL_ALLOC=no | ||
| 9467 | fi | ||
| 9468 | |||
| 9469 | LIBS="$LIBS_SYSTEM $LIBS" | ||
| 9470 | |||
| 9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
| 9472 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
| 9473 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
| 9474 | $as_echo_n "(cached) " >&6 | ||
| 9475 | else | ||
| 9476 | ac_check_lib_save_LIBS=$LIBS | ||
| 9477 | LIBS="-ldnet $LIBS" | ||
| 9478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9479 | /* end confdefs.h. */ | ||
| 9480 | |||
| 9481 | /* Override any GCC internal prototype to avoid an error. | ||
| 9482 | Use char because int might match the return type of a GCC | ||
| 9483 | builtin and then its argument prototype would still apply. */ | ||
| 9484 | #ifdef __cplusplus | ||
| 9485 | extern "C" | ||
| 9486 | #endif | ||
| 9487 | char dnet_ntoa (); | ||
| 9488 | int | ||
| 9489 | main () | ||
| 9490 | { | ||
| 9491 | return dnet_ntoa (); | ||
| 9492 | ; | ||
| 9493 | return 0; | ||
| 9494 | } | ||
| 9495 | _ACEOF | ||
| 9496 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9497 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
| 9498 | else | ||
| 9499 | ac_cv_lib_dnet_dnet_ntoa=no | ||
| 9500 | fi | ||
| 9501 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9502 | conftest$ac_exeext conftest.$ac_ext | ||
| 9503 | LIBS=$ac_check_lib_save_LIBS | ||
| 9504 | fi | ||
| 9505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
| 9506 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
| 9507 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
| 9508 | cat >>confdefs.h <<_ACEOF | ||
| 9509 | #define HAVE_LIBDNET 1 | ||
| 9510 | _ACEOF | ||
| 9511 | |||
| 9512 | LIBS="-ldnet $LIBS" | ||
| 9513 | |||
| 9514 | fi | ||
| 9515 | |||
| 9516 | |||
| 9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 | ||
| 9518 | $as_echo_n "checking for main in -lXbsd... " >&6; } | ||
| 9519 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then : | ||
| 9520 | $as_echo_n "(cached) " >&6 | ||
| 9521 | else | ||
| 9522 | ac_check_lib_save_LIBS=$LIBS | ||
| 9523 | LIBS="-lXbsd $LIBS" | ||
| 9524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9525 | /* end confdefs.h. */ | ||
| 9526 | |||
| 9527 | |||
| 9528 | int | ||
| 9529 | main () | ||
| 9530 | { | ||
| 9531 | return main (); | ||
| 9532 | ; | ||
| 9533 | return 0; | ||
| 9534 | } | ||
| 9535 | _ACEOF | ||
| 9536 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9537 | ac_cv_lib_Xbsd_main=yes | ||
| 9538 | else | ||
| 9539 | ac_cv_lib_Xbsd_main=no | ||
| 9540 | fi | ||
| 9541 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9542 | conftest$ac_exeext conftest.$ac_ext | ||
| 9543 | LIBS=$ac_check_lib_save_LIBS | ||
| 9544 | fi | ||
| 9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 | ||
| 9546 | $as_echo "$ac_cv_lib_Xbsd_main" >&6; } | ||
| 9547 | if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : | ||
| 9548 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | ||
| 9549 | fi | ||
| 9550 | |||
| 9551 | |||
| 9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 | ||
| 9553 | $as_echo_n "checking for cma_open in -lpthreads... " >&6; } | ||
| 9554 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : | ||
| 9555 | $as_echo_n "(cached) " >&6 | ||
| 9556 | else | ||
| 9557 | ac_check_lib_save_LIBS=$LIBS | ||
| 9558 | LIBS="-lpthreads $LIBS" | ||
| 9559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9560 | /* end confdefs.h. */ | ||
| 9561 | |||
| 9562 | /* Override any GCC internal prototype to avoid an error. | ||
| 9563 | Use char because int might match the return type of a GCC | ||
| 9564 | builtin and then its argument prototype would still apply. */ | ||
| 9565 | #ifdef __cplusplus | ||
| 9566 | extern "C" | ||
| 9567 | #endif | ||
| 9568 | char cma_open (); | ||
| 9569 | int | ||
| 9570 | main () | ||
| 9571 | { | ||
| 9572 | return cma_open (); | ||
| 9573 | ; | ||
| 9574 | return 0; | ||
| 9575 | } | ||
| 9576 | _ACEOF | ||
| 9577 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9578 | ac_cv_lib_pthreads_cma_open=yes | ||
| 9579 | else | ||
| 9580 | ac_cv_lib_pthreads_cma_open=no | ||
| 9581 | fi | ||
| 9582 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9583 | conftest$ac_exeext conftest.$ac_ext | ||
| 9584 | LIBS=$ac_check_lib_save_LIBS | ||
| 9585 | fi | ||
| 9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 | ||
| 9587 | $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } | ||
| 9588 | if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : | ||
| 9589 | cat >>confdefs.h <<_ACEOF | ||
| 9590 | #define HAVE_LIBPTHREADS 1 | ||
| 9591 | _ACEOF | ||
| 9592 | |||
| 9593 | LIBS="-lpthreads $LIBS" | ||
| 9594 | |||
| 9595 | fi | ||
| 9596 | |||
| 9597 | |||
| 9598 | ## Note: when using cpp in s/aix4.2.h, this definition depended on | ||
| 9599 | ## HAVE_LIBPTHREADS. That was not defined earlier in configure when | ||
| 9600 | ## the system file was sourced. Hence the value of LIBS_SYSTEM | ||
| 9601 | ## added to LIBS in configure would never contain the pthreads part, | ||
| 9602 | ## but the value used in Makefiles might. FIXME? | ||
| 9603 | ## | ||
| 9604 | ## -lpthreads seems to be necessary for Xlib in X11R6, and should | ||
| 9605 | ## be harmless on older versions of X where it happens to exist. | ||
| 9606 | test "$opsys" = "aix4-2" && \ | ||
| 9607 | test $ac_cv_lib_pthreads_cma_open = yes && \ | ||
| 9608 | LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads" | ||
| 9609 | |||
| 9610 | |||
| 9611 | case ${host_os} in | ||
| 9612 | aix*) | ||
| 9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 | ||
| 9614 | $as_echo_n "checking for -bbigtoc option... " >&6; } | ||
| 9615 | if test "${gdb_cv_bigtoc+set}" = set; then : | ||
| 9616 | $as_echo_n "(cached) " >&6 | ||
| 9617 | else | ||
| 9618 | |||
| 9619 | case $GCC in | ||
| 9620 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | ||
| 9621 | *) gdb_cv_bigtoc=-bbigtoc ;; | ||
| 9622 | esac | ||
| 9623 | |||
| 9624 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | ||
| 9625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9626 | /* end confdefs.h. */ | ||
| 9627 | |||
| 9628 | int | ||
| 9629 | main () | ||
| 9630 | { | ||
| 9631 | int i; | ||
| 9632 | ; | ||
| 9633 | return 0; | ||
| 9634 | } | ||
| 9635 | _ACEOF | ||
| 9636 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9637 | |||
| 9638 | else | ||
| 9639 | gdb_cv_bigtoc= | ||
| 9640 | fi | ||
| 9641 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9642 | conftest$ac_exeext conftest.$ac_ext | ||
| 9643 | |||
| 9644 | fi | ||
| 9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 | ||
| 9646 | $as_echo "$gdb_cv_bigtoc" >&6; } | ||
| 9647 | ;; | ||
| 9648 | esac | ||
| 9649 | |||
| 9650 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets | ||
| 9651 | # used for the tests that follow. We set them back to REAL_CFLAGS and | ||
| 9652 | # REAL_CPPFLAGS later on. | ||
| 9653 | |||
| 9654 | REAL_CFLAGS="$CFLAGS" | ||
| 9655 | REAL_CPPFLAGS="$CPPFLAGS" | ||
| 9656 | |||
| 9657 | if test "${HAVE_X11}" = "yes"; then | ||
| 9658 | DEFS="$C_SWITCH_X_SITE $DEFS" | ||
| 9659 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | ||
| 9660 | LIBS="-lX11 $LIBS" | ||
| 9661 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | ||
| 9662 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | ||
| 9663 | |||
| 9664 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | ||
| 9665 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | ||
| 9666 | # but it's more convenient here to set LD_RUN_PATH | ||
| 9667 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | ||
| 9668 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | ||
| 9669 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | ||
| 9670 | export LD_RUN_PATH | ||
| 9671 | fi | ||
| 9672 | |||
| 9673 | if test "${opsys}" = "gnu-linux"; then | ||
| 9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 | ||
| 9675 | $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } | ||
| 9676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9677 | /* end confdefs.h. */ | ||
| 9678 | |||
| 9679 | int | ||
| 9680 | main () | ||
| 9681 | { | ||
| 9682 | XOpenDisplay ("foo"); | ||
| 9683 | ; | ||
| 9684 | return 0; | ||
| 9685 | } | ||
| 9686 | _ACEOF | ||
| 9687 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9688 | xlinux_first_failure=no | ||
| 9689 | else | ||
| 9690 | xlinux_first_failure=yes | ||
| 9691 | fi | ||
| 9692 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9693 | conftest$ac_exeext conftest.$ac_ext | ||
| 9694 | if test "${xlinux_first_failure}" = "yes"; then | ||
| 9695 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | ||
| 9696 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | ||
| 9697 | OLD_CPPFLAGS="$CPPFLAGS" | ||
| 9698 | OLD_LIBS="$LIBS" | ||
| 9699 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | ||
| 9700 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | ||
| 9701 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | ||
| 9702 | LIBS="$LIBS -b i486-linuxaout" | ||
| 9703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9704 | /* end confdefs.h. */ | ||
| 9705 | |||
| 9706 | int | ||
| 9707 | main () | ||
| 9708 | { | ||
| 9709 | XOpenDisplay ("foo"); | ||
| 9710 | ; | ||
| 9711 | return 0; | ||
| 9712 | } | ||
| 9713 | _ACEOF | ||
| 9714 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9715 | xlinux_second_failure=no | ||
| 9716 | else | ||
| 9717 | xlinux_second_failure=yes | ||
| 9718 | fi | ||
| 9719 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9720 | conftest$ac_exeext conftest.$ac_ext | ||
| 9721 | if test "${xlinux_second_failure}" = "yes"; then | ||
| 9722 | # If we get the same failure with -b, there is no use adding -b. | ||
| 9723 | # So take it out. This plays safe. | ||
| 9724 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | ||
| 9725 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | ||
| 9726 | CPPFLAGS="$OLD_CPPFLAGS" | ||
| 9727 | LIBS="$OLD_LIBS" | ||
| 9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 9729 | $as_echo "no" >&6; } | ||
| 9730 | else | ||
| 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 9732 | $as_echo "yes" >&6; } | ||
| 9733 | fi | ||
| 9734 | else | ||
| 9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 9736 | $as_echo "no" >&6; } | ||
| 9737 | fi | ||
| 9738 | fi | ||
| 9739 | |||
| 9740 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | ||
| 9741 | # header files included from there. | ||
| 9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 | ||
| 9743 | $as_echo_n "checking for Xkb... " >&6; } | ||
| 9744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9745 | /* end confdefs.h. */ | ||
| 9746 | #include <X11/Xlib.h> | ||
| 9747 | #include <X11/XKBlib.h> | ||
| 9748 | int | ||
| 9749 | main () | ||
| 9750 | { | ||
| 9751 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | ||
| 9752 | ; | ||
| 9753 | return 0; | ||
| 9754 | } | ||
| 9755 | _ACEOF | ||
| 9756 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9757 | emacs_xkb=yes | ||
| 9758 | else | ||
| 9759 | emacs_xkb=no | ||
| 9760 | fi | ||
| 9761 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9762 | conftest$ac_exeext conftest.$ac_ext | ||
| 9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 | ||
| 9764 | $as_echo "$emacs_xkb" >&6; } | ||
| 9765 | if test $emacs_xkb = yes; then | ||
| 9766 | |||
| 9767 | $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h | ||
| 9768 | |||
| 9769 | fi | ||
| 9770 | |||
| 9771 | for ac_func in XrmSetDatabase XScreenResourceString \ | ||
| 9772 | XScreenNumberOfScreen XSetWMProtocols | ||
| 9773 | do : | ||
| 9774 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
| 9775 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
| 9776 | eval as_val=\$$as_ac_var | ||
| 9777 | if test "x$as_val" = x""yes; then : | ||
| 9778 | cat >>confdefs.h <<_ACEOF | ||
| 9779 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 9780 | _ACEOF | ||
| 9781 | |||
| 9782 | fi | ||
| 9783 | done | ||
| 9784 | |||
| 9785 | fi | ||
| 9786 | |||
| 9787 | if test "${window_system}" = "x11"; then | ||
| 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 | ||
| 9789 | $as_echo_n "checking X11 version 6... " >&6; } | ||
| 9790 | if test "${emacs_cv_x11_version_6+set}" = set; then : | ||
| 9791 | $as_echo_n "(cached) " >&6 | ||
| 9792 | else | ||
| 9793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 9794 | /* end confdefs.h. */ | ||
| 9795 | #include <X11/Xlib.h> | ||
| 9796 | int | ||
| 9797 | main () | ||
| 9798 | { | ||
| 9799 | #if XlibSpecificationRelease < 6 | ||
| 9800 | fail; | ||
| 9801 | #endif | ||
| 9802 | |||
| 9803 | ; | ||
| 9804 | return 0; | ||
| 9805 | } | ||
| 9806 | _ACEOF | ||
| 9807 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 9808 | emacs_cv_x11_version_6=yes | ||
| 9809 | else | ||
| 9810 | emacs_cv_x11_version_6=no | ||
| 9811 | fi | ||
| 9812 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 9813 | conftest$ac_exeext conftest.$ac_ext | ||
| 9814 | fi | ||
| 9815 | |||
| 9816 | if test $emacs_cv_x11_version_6 = yes; then | ||
| 9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 | ||
| 9818 | $as_echo "6 or newer" >&6; } | ||
| 9819 | |||
| 9820 | $as_echo "#define HAVE_X11R6 1" >>confdefs.h | ||
| 9821 | |||
| 9822 | |||
| 9823 | $as_echo "#define HAVE_X_I18N 1" >>confdefs.h | ||
| 9824 | |||
| 9825 | ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style | ||
| 9826 | ## XIM support. | ||
| 9827 | case "$opsys" in | ||
| 9828 | sol2-*) : ;; | ||
| 9829 | *) | ||
| 9830 | $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h | ||
| 9831 | |||
| 9832 | ;; | ||
| 9833 | esac | ||
| 9834 | else | ||
| 9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 | ||
| 9836 | $as_echo "before 6" >&6; } | ||
| 9837 | fi | ||
| 9838 | fi | ||
| 9839 | |||
| 9840 | |||
| 9841 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. | ||
| 9842 | HAVE_RSVG=no | ||
| 9843 | if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then | ||
| 9844 | if test "${with_rsvg}" != "no"; then | ||
| 9845 | RSVG_REQUIRED=2.11.0 | ||
| 9846 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" | ||
| 9847 | |||
| 9848 | |||
| 9849 | succeeded=no | ||
| 9850 | |||
| 9851 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 9852 | set dummy pkg-config; ac_word=$2 | ||
| 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 9854 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 9855 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 9856 | $as_echo_n "(cached) " >&6 | ||
| 9857 | else | ||
| 9858 | case $PKG_CONFIG in | ||
| 9859 | [\\/]* | ?:[\\/]*) | ||
| 9860 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 9861 | ;; | ||
| 9862 | *) | ||
| 9863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 9864 | for as_dir in $PATH | ||
| 9865 | do | ||
| 9866 | IFS=$as_save_IFS | ||
| 9867 | test -z "$as_dir" && as_dir=. | ||
| 9868 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 9869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 9870 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 9871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 9872 | break 2 | ||
| 9873 | fi | ||
| 9874 | done | ||
| 9875 | done | ||
| 9876 | IFS=$as_save_IFS | ||
| 9877 | |||
| 9878 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 9879 | ;; | ||
| 9880 | esac | ||
| 9881 | fi | ||
| 9882 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 9883 | if test -n "$PKG_CONFIG"; then | ||
| 9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 9885 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 9886 | else | ||
| 9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 9888 | $as_echo "no" >&6; } | ||
| 9889 | fi | ||
| 9890 | |||
| 9891 | |||
| 9892 | |||
| 9893 | if test "$PKG_CONFIG" = "no" ; then | ||
| 9894 | : | ||
| 9895 | else | ||
| 9896 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 9897 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 | ||
| 9899 | $as_echo_n "checking for $RSVG_MODULE... " >&6; } | ||
| 9900 | |||
| 9901 | if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then | ||
| 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 9903 | $as_echo "yes" >&6; } | ||
| 9904 | succeeded=yes | ||
| 9905 | |||
| 9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 | ||
| 9907 | $as_echo_n "checking RSVG_CFLAGS... " >&6; } | ||
| 9908 | RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` | ||
| 9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 | ||
| 9910 | $as_echo "$RSVG_CFLAGS" >&6; } | ||
| 9911 | |||
| 9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 | ||
| 9913 | $as_echo_n "checking RSVG_LIBS... " >&6; } | ||
| 9914 | RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` | ||
| 9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 | ||
| 9916 | $as_echo "$RSVG_LIBS" >&6; } | ||
| 9917 | else | ||
| 9918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 9919 | $as_echo "no" >&6; } | ||
| 9920 | RSVG_CFLAGS="" | ||
| 9921 | RSVG_LIBS="" | ||
| 9922 | ## If we have a custom action on failure, don't print errors, but | ||
| 9923 | ## do set a variable so people can do so. | ||
| 9924 | RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"` | ||
| 9925 | |||
| 9926 | fi | ||
| 9927 | |||
| 9928 | |||
| 9929 | |||
| 9930 | else | ||
| 9931 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 9932 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 9933 | fi | ||
| 9934 | fi | ||
| 9935 | |||
| 9936 | if test $succeeded = yes; then | ||
| 9937 | HAVE_RSVG=yes | ||
| 9938 | else | ||
| 9939 | : | ||
| 9940 | fi | ||
| 9941 | |||
| 9942 | |||
| 9943 | |||
| 9944 | |||
| 9945 | if test $HAVE_RSVG = yes; then | ||
| 9946 | |||
| 9947 | $as_echo "#define HAVE_RSVG 1" >>confdefs.h | ||
| 9948 | |||
| 9949 | CFLAGS="$CFLAGS $RSVG_CFLAGS" | ||
| 9950 | LIBS="$RSVG_LIBS $LIBS" | ||
| 9951 | fi | ||
| 9952 | fi | ||
| 9953 | fi | ||
| 9954 | |||
| 9955 | HAVE_IMAGEMAGICK=no | ||
| 9956 | if test "${HAVE_X11}" = "yes"; then | ||
| 9957 | if test "${with_imagemagick}" != "no"; then | ||
| 9958 | IMAGEMAGICK_MODULE="Wand" | ||
| 9959 | |||
| 9960 | succeeded=no | ||
| 9961 | |||
| 9962 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 9963 | set dummy pkg-config; ac_word=$2 | ||
| 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 9965 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 9966 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 9967 | $as_echo_n "(cached) " >&6 | ||
| 9968 | else | ||
| 9969 | case $PKG_CONFIG in | ||
| 9970 | [\\/]* | ?:[\\/]*) | ||
| 9971 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 9972 | ;; | ||
| 9973 | *) | ||
| 9974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 9975 | for as_dir in $PATH | ||
| 9976 | do | ||
| 9977 | IFS=$as_save_IFS | ||
| 9978 | test -z "$as_dir" && as_dir=. | ||
| 9979 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 9980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 9981 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 9982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 9983 | break 2 | ||
| 9984 | fi | ||
| 9985 | done | ||
| 9986 | done | ||
| 9987 | IFS=$as_save_IFS | ||
| 9988 | |||
| 9989 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 9990 | ;; | ||
| 9991 | esac | ||
| 9992 | fi | ||
| 9993 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 9994 | if test -n "$PKG_CONFIG"; then | ||
| 9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 9996 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 9997 | else | ||
| 9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 9999 | $as_echo "no" >&6; } | ||
| 10000 | fi | ||
| 10001 | |||
| 10002 | |||
| 10003 | |||
| 10004 | if test "$PKG_CONFIG" = "no" ; then | ||
| 10005 | : | ||
| 10006 | else | ||
| 10007 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 10008 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5 | ||
| 10010 | $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; } | ||
| 10011 | |||
| 10012 | if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then | ||
| 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 10014 | $as_echo "yes" >&6; } | ||
| 10015 | succeeded=yes | ||
| 10016 | |||
| 10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5 | ||
| 10018 | $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; } | ||
| 10019 | IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'` | ||
| 10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5 | ||
| 10021 | $as_echo "$IMAGEMAGICK_CFLAGS" >&6; } | ||
| 10022 | |||
| 10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5 | ||
| 10024 | $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; } | ||
| 10025 | IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'` | ||
| 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5 | ||
| 10027 | $as_echo "$IMAGEMAGICK_LIBS" >&6; } | ||
| 10028 | else | ||
| 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10030 | $as_echo "no" >&6; } | ||
| 10031 | IMAGEMAGICK_CFLAGS="" | ||
| 10032 | IMAGEMAGICK_LIBS="" | ||
| 10033 | ## If we have a custom action on failure, don't print errors, but | ||
| 10034 | ## do set a variable so people can do so. | ||
| 10035 | IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"` | ||
| 10036 | |||
| 10037 | fi | ||
| 10038 | |||
| 10039 | |||
| 10040 | |||
| 10041 | else | ||
| 10042 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 10043 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 10044 | fi | ||
| 10045 | fi | ||
| 10046 | |||
| 10047 | if test $succeeded = yes; then | ||
| 10048 | HAVE_IMAGEMAGICK=yes | ||
| 10049 | else | ||
| 10050 | : | ||
| 10051 | fi | ||
| 10052 | |||
| 10053 | |||
| 10054 | |||
| 10055 | |||
| 10056 | if test $HAVE_IMAGEMAGICK = yes; then | ||
| 10057 | |||
| 10058 | $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h | ||
| 10059 | |||
| 10060 | CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" | ||
| 10061 | LIBS="$IMAGEMAGICK_LIBS $LIBS" | ||
| 10062 | for ac_func in MagickExportImagePixels | ||
| 10063 | do : | ||
| 10064 | ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels" | ||
| 10065 | if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then : | ||
| 10066 | cat >>confdefs.h <<_ACEOF | ||
| 10067 | #define HAVE_MAGICKEXPORTIMAGEPIXELS 1 | ||
| 10068 | _ACEOF | ||
| 10069 | |||
| 10070 | fi | ||
| 10071 | done | ||
| 10072 | |||
| 10073 | fi | ||
| 10074 | fi | ||
| 10075 | fi | ||
| 10076 | |||
| 10077 | |||
| 10078 | HAVE_GTK=no | ||
| 10079 | if test "${with_gtk3}" = "yes"; then | ||
| 10080 | GLIB_REQUIRED=2.28 | ||
| 10081 | GTK_REQUIRED=3.0 | ||
| 10082 | GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | ||
| 10083 | |||
| 10084 | |||
| 10085 | succeeded=no | ||
| 10086 | |||
| 10087 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 10088 | set dummy pkg-config; ac_word=$2 | ||
| 10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 10090 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 10091 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 10092 | $as_echo_n "(cached) " >&6 | ||
| 10093 | else | ||
| 10094 | case $PKG_CONFIG in | ||
| 10095 | [\\/]* | ?:[\\/]*) | ||
| 10096 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 10097 | ;; | ||
| 10098 | *) | ||
| 10099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 10100 | for as_dir in $PATH | ||
| 10101 | do | ||
| 10102 | IFS=$as_save_IFS | ||
| 10103 | test -z "$as_dir" && as_dir=. | ||
| 10104 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 10105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 10106 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 10107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 10108 | break 2 | ||
| 10109 | fi | ||
| 10110 | done | ||
| 10111 | done | ||
| 10112 | IFS=$as_save_IFS | ||
| 10113 | |||
| 10114 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 10115 | ;; | ||
| 10116 | esac | ||
| 10117 | fi | ||
| 10118 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 10119 | if test -n "$PKG_CONFIG"; then | ||
| 10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 10121 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 10122 | else | ||
| 10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10124 | $as_echo "no" >&6; } | ||
| 10125 | fi | ||
| 10126 | |||
| 10127 | |||
| 10128 | |||
| 10129 | if test "$PKG_CONFIG" = "no" ; then | ||
| 10130 | pkg_check_gtk=no | ||
| 10131 | else | ||
| 10132 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 10133 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 | ||
| 10135 | $as_echo_n "checking for $GTK_MODULES... " >&6; } | ||
| 10136 | |||
| 10137 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then | ||
| 10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 10139 | $as_echo "yes" >&6; } | ||
| 10140 | succeeded=yes | ||
| 10141 | |||
| 10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 | ||
| 10143 | $as_echo_n "checking GTK_CFLAGS... " >&6; } | ||
| 10144 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` | ||
| 10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 | ||
| 10146 | $as_echo "$GTK_CFLAGS" >&6; } | ||
| 10147 | |||
| 10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 | ||
| 10149 | $as_echo_n "checking GTK_LIBS... " >&6; } | ||
| 10150 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` | ||
| 10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 | ||
| 10152 | $as_echo "$GTK_LIBS" >&6; } | ||
| 10153 | else | ||
| 10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10155 | $as_echo "no" >&6; } | ||
| 10156 | GTK_CFLAGS="" | ||
| 10157 | GTK_LIBS="" | ||
| 10158 | ## If we have a custom action on failure, don't print errors, but | ||
| 10159 | ## do set a variable so people can do so. | ||
| 10160 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | ||
| 10161 | |||
| 10162 | fi | ||
| 10163 | |||
| 10164 | |||
| 10165 | |||
| 10166 | else | ||
| 10167 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 10168 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 10169 | fi | ||
| 10170 | fi | ||
| 10171 | |||
| 10172 | if test $succeeded = yes; then | ||
| 10173 | pkg_check_gtk=yes | ||
| 10174 | else | ||
| 10175 | pkg_check_gtk=no | ||
| 10176 | fi | ||
| 10177 | |||
| 10178 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | ||
| 10179 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 | ||
| 10180 | fi | ||
| 10181 | |||
| 10182 | $as_echo "#define HAVE_GTK3 1" >>confdefs.h | ||
| 10183 | |||
| 10184 | fi | ||
| 10185 | |||
| 10186 | if test "$pkg_check_gtk" != "yes"; then | ||
| 10187 | HAVE_GTK=no | ||
| 10188 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then | ||
| 10189 | GLIB_REQUIRED=2.6 | ||
| 10190 | GTK_REQUIRED=2.6 | ||
| 10191 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | ||
| 10192 | |||
| 10193 | |||
| 10194 | succeeded=no | ||
| 10195 | |||
| 10196 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 10197 | set dummy pkg-config; ac_word=$2 | ||
| 10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 10199 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 10200 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 10201 | $as_echo_n "(cached) " >&6 | ||
| 10202 | else | ||
| 10203 | case $PKG_CONFIG in | ||
| 10204 | [\\/]* | ?:[\\/]*) | ||
| 10205 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 10206 | ;; | ||
| 10207 | *) | ||
| 10208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 10209 | for as_dir in $PATH | ||
| 10210 | do | ||
| 10211 | IFS=$as_save_IFS | ||
| 10212 | test -z "$as_dir" && as_dir=. | ||
| 10213 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 10214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 10215 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 10216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 10217 | break 2 | ||
| 10218 | fi | ||
| 10219 | done | ||
| 10220 | done | ||
| 10221 | IFS=$as_save_IFS | ||
| 10222 | |||
| 10223 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 10224 | ;; | ||
| 10225 | esac | ||
| 10226 | fi | ||
| 10227 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 10228 | if test -n "$PKG_CONFIG"; then | ||
| 10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 10230 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 10231 | else | ||
| 10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10233 | $as_echo "no" >&6; } | ||
| 10234 | fi | ||
| 10235 | |||
| 10236 | |||
| 10237 | |||
| 10238 | if test "$PKG_CONFIG" = "no" ; then | ||
| 10239 | pkg_check_gtk=no | ||
| 10240 | else | ||
| 10241 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 10242 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 10243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 | ||
| 10244 | $as_echo_n "checking for $GTK_MODULES... " >&6; } | ||
| 10245 | |||
| 10246 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then | ||
| 10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 10248 | $as_echo "yes" >&6; } | ||
| 10249 | succeeded=yes | ||
| 10250 | |||
| 10251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 | ||
| 10252 | $as_echo_n "checking GTK_CFLAGS... " >&6; } | ||
| 10253 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` | ||
| 10254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 | ||
| 10255 | $as_echo "$GTK_CFLAGS" >&6; } | ||
| 10256 | |||
| 10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 | ||
| 10258 | $as_echo_n "checking GTK_LIBS... " >&6; } | ||
| 10259 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` | ||
| 10260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 | ||
| 10261 | $as_echo "$GTK_LIBS" >&6; } | ||
| 10262 | else | ||
| 10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10264 | $as_echo "no" >&6; } | ||
| 10265 | GTK_CFLAGS="" | ||
| 10266 | GTK_LIBS="" | ||
| 10267 | ## If we have a custom action on failure, don't print errors, but | ||
| 10268 | ## do set a variable so people can do so. | ||
| 10269 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | ||
| 10270 | |||
| 10271 | fi | ||
| 10272 | |||
| 10273 | |||
| 10274 | |||
| 10275 | else | ||
| 10276 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 10277 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 10278 | fi | ||
| 10279 | fi | ||
| 10280 | |||
| 10281 | if test $succeeded = yes; then | ||
| 10282 | pkg_check_gtk=yes | ||
| 10283 | else | ||
| 10284 | pkg_check_gtk=no | ||
| 10285 | fi | ||
| 10286 | |||
| 10287 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | ||
| 10288 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 | ||
| 10289 | fi | ||
| 10290 | fi | ||
| 10291 | fi | ||
| 10292 | |||
| 10293 | GTK_OBJ= | ||
| 10294 | if test x"$pkg_check_gtk" = xyes; then | ||
| 10295 | |||
| 10296 | |||
| 10297 | |||
| 10298 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | ||
| 10299 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
| 10300 | LIBS="$GTK_LIBS $LIBS" | ||
| 10301 | GTK_COMPILES=no | ||
| 10302 | for ac_func in gtk_main | ||
| 10303 | do : | ||
| 10304 | ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" | ||
| 10305 | if test "x$ac_cv_func_gtk_main" = x""yes; then : | ||
| 10306 | cat >>confdefs.h <<_ACEOF | ||
| 10307 | #define HAVE_GTK_MAIN 1 | ||
| 10308 | _ACEOF | ||
| 10309 | GTK_COMPILES=yes | ||
| 10310 | fi | ||
| 10311 | done | ||
| 10312 | |||
| 10313 | if test "${GTK_COMPILES}" != "yes"; then | ||
| 10314 | if test "$USE_X_TOOLKIT" != "maybe"; then | ||
| 10315 | as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; | ||
| 10316 | fi | ||
| 10317 | else | ||
| 10318 | HAVE_GTK=yes | ||
| 10319 | |||
| 10320 | $as_echo "#define USE_GTK 1" >>confdefs.h | ||
| 10321 | |||
| 10322 | GTK_OBJ=gtkutil.o | ||
| 10323 | USE_X_TOOLKIT=none | ||
| 10324 | if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then | ||
| 10325 | : | ||
| 10326 | else | ||
| 10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with | ||
| 10328 | closing open displays. This is no problem if you just use | ||
| 10329 | one display, but if you use more than one and close one of them | ||
| 10330 | Emacs may crash." >&5 | ||
| 10331 | $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with | ||
| 10332 | closing open displays. This is no problem if you just use | ||
| 10333 | one display, but if you use more than one and close one of them | ||
| 10334 | Emacs may crash." >&2;} | ||
| 10335 | sleep 3 | ||
| 10336 | fi | ||
| 10337 | fi | ||
| 10338 | |||
| 10339 | fi | ||
| 10340 | |||
| 10341 | |||
| 10342 | |||
| 10343 | if test "${HAVE_GTK}" = "yes"; then | ||
| 10344 | |||
| 10345 | if test "$with_toolkit_scroll_bars" != no; then | ||
| 10346 | with_toolkit_scroll_bars=yes | ||
| 10347 | fi | ||
| 10348 | |||
| 10349 | HAVE_GTK_FILE_SELECTION=no | ||
| 10350 | ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default | ||
| 10351 | #include <gtk/gtk.h> | ||
| 10352 | " | ||
| 10353 | if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : | ||
| 10354 | HAVE_GTK_FILE_SELECTION=yes | ||
| 10355 | else | ||
| 10356 | HAVE_GTK_FILE_SELECTION=no | ||
| 10357 | fi | ||
| 10358 | |||
| 10359 | if test "$HAVE_GTK_FILE_SELECTION" = yes; then | ||
| 10360 | for ac_func in gtk_file_selection_new | ||
| 10361 | do : | ||
| 10362 | ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" | ||
| 10363 | if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : | ||
| 10364 | cat >>confdefs.h <<_ACEOF | ||
| 10365 | #define HAVE_GTK_FILE_SELECTION_NEW 1 | ||
| 10366 | _ACEOF | ||
| 10367 | |||
| 10368 | fi | ||
| 10369 | done | ||
| 10370 | |||
| 10371 | fi | ||
| 10372 | |||
| 10373 | HAVE_GTK_AND_PTHREAD=no | ||
| 10374 | for ac_header in pthread.h | ||
| 10375 | do : | ||
| 10376 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | ||
| 10377 | if test "x$ac_cv_header_pthread_h" = x""yes; then : | ||
| 10378 | cat >>confdefs.h <<_ACEOF | ||
| 10379 | #define HAVE_PTHREAD_H 1 | ||
| 10380 | _ACEOF | ||
| 10381 | |||
| 10382 | fi | ||
| 10383 | |||
| 10384 | done | ||
| 10385 | |||
| 10386 | if test "$ac_cv_header_pthread_h"; then | ||
| 10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 | ||
| 10388 | $as_echo_n "checking for pthread_self in -lpthread... " >&6; } | ||
| 10389 | if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : | ||
| 10390 | $as_echo_n "(cached) " >&6 | ||
| 10391 | else | ||
| 10392 | ac_check_lib_save_LIBS=$LIBS | ||
| 10393 | LIBS="-lpthread $LIBS" | ||
| 10394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 10395 | /* end confdefs.h. */ | ||
| 10396 | |||
| 10397 | /* Override any GCC internal prototype to avoid an error. | ||
| 10398 | Use char because int might match the return type of a GCC | ||
| 10399 | builtin and then its argument prototype would still apply. */ | ||
| 10400 | #ifdef __cplusplus | ||
| 10401 | extern "C" | ||
| 10402 | #endif | ||
| 10403 | char pthread_self (); | ||
| 10404 | int | ||
| 10405 | main () | ||
| 10406 | { | ||
| 10407 | return pthread_self (); | ||
| 10408 | ; | ||
| 10409 | return 0; | ||
| 10410 | } | ||
| 10411 | _ACEOF | ||
| 10412 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 10413 | ac_cv_lib_pthread_pthread_self=yes | ||
| 10414 | else | ||
| 10415 | ac_cv_lib_pthread_pthread_self=no | ||
| 10416 | fi | ||
| 10417 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 10418 | conftest$ac_exeext conftest.$ac_ext | ||
| 10419 | LIBS=$ac_check_lib_save_LIBS | ||
| 10420 | fi | ||
| 10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 | ||
| 10422 | $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } | ||
| 10423 | if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : | ||
| 10424 | HAVE_GTK_AND_PTHREAD=yes | ||
| 10425 | fi | ||
| 10426 | |||
| 10427 | fi | ||
| 10428 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then | ||
| 10429 | case "${canonical}" in | ||
| 10430 | *-hpux*) ;; | ||
| 10431 | *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | ||
| 10432 | esac | ||
| 10433 | |||
| 10434 | $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h | ||
| 10435 | |||
| 10436 | fi | ||
| 10437 | |||
| 10438 | for ac_func in gtk_widget_get_window gtk_widget_set_has_window \ | ||
| 10439 | gtk_dialog_get_action_area gtk_widget_get_sensitive \ | ||
| 10440 | gtk_widget_get_mapped gtk_adjustment_get_page_size \ | ||
| 10441 | gtk_orientable_set_orientation | ||
| 10442 | do : | ||
| 10443 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
| 10444 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
| 10445 | eval as_val=\$$as_ac_var | ||
| 10446 | if test "x$as_val" = x""yes; then : | ||
| 10447 | cat >>confdefs.h <<_ACEOF | ||
| 10448 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 10449 | _ACEOF | ||
| 10450 | |||
| 10451 | fi | ||
| 10452 | done | ||
| 10453 | |||
| 10454 | |||
| 10455 | fi | ||
| 10456 | |||
| 10457 | HAVE_DBUS=no | ||
| 10458 | DBUS_OBJ= | ||
| 10459 | if test "${with_dbus}" = "yes"; then | ||
| 10460 | |||
| 10461 | succeeded=no | ||
| 10462 | |||
| 10463 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 10464 | set dummy pkg-config; ac_word=$2 | ||
| 10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 10466 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 10467 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 10468 | $as_echo_n "(cached) " >&6 | ||
| 10469 | else | ||
| 10470 | case $PKG_CONFIG in | ||
| 10471 | [\\/]* | ?:[\\/]*) | ||
| 10472 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 10473 | ;; | ||
| 10474 | *) | ||
| 10475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 10476 | for as_dir in $PATH | ||
| 10477 | do | ||
| 10478 | IFS=$as_save_IFS | ||
| 10479 | test -z "$as_dir" && as_dir=. | ||
| 10480 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 10481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 10482 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 10483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 10484 | break 2 | ||
| 10485 | fi | ||
| 10486 | done | ||
| 10487 | done | ||
| 10488 | IFS=$as_save_IFS | ||
| 10489 | |||
| 10490 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 10491 | ;; | ||
| 10492 | esac | ||
| 10493 | fi | ||
| 10494 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 10495 | if test -n "$PKG_CONFIG"; then | ||
| 10496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 10497 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 10498 | else | ||
| 10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10500 | $as_echo "no" >&6; } | ||
| 10501 | fi | ||
| 10502 | |||
| 10503 | |||
| 10504 | |||
| 10505 | if test "$PKG_CONFIG" = "no" ; then | ||
| 10506 | HAVE_DBUS=no | ||
| 10507 | else | ||
| 10508 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 10509 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 | ||
| 10511 | $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } | ||
| 10512 | |||
| 10513 | if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then | ||
| 10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 10515 | $as_echo "yes" >&6; } | ||
| 10516 | succeeded=yes | ||
| 10517 | |||
| 10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 | ||
| 10519 | $as_echo_n "checking DBUS_CFLAGS... " >&6; } | ||
| 10520 | DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | ||
| 10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 | ||
| 10522 | $as_echo "$DBUS_CFLAGS" >&6; } | ||
| 10523 | |||
| 10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 | ||
| 10525 | $as_echo_n "checking DBUS_LIBS... " >&6; } | ||
| 10526 | DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | ||
| 10527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 | ||
| 10528 | $as_echo "$DBUS_LIBS" >&6; } | ||
| 10529 | else | ||
| 10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10531 | $as_echo "no" >&6; } | ||
| 10532 | DBUS_CFLAGS="" | ||
| 10533 | DBUS_LIBS="" | ||
| 10534 | ## If we have a custom action on failure, don't print errors, but | ||
| 10535 | ## do set a variable so people can do so. | ||
| 10536 | DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"` | ||
| 10537 | |||
| 10538 | fi | ||
| 10539 | |||
| 10540 | |||
| 10541 | |||
| 10542 | else | ||
| 10543 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 10544 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 10545 | fi | ||
| 10546 | fi | ||
| 10547 | |||
| 10548 | if test $succeeded = yes; then | ||
| 10549 | HAVE_DBUS=yes | ||
| 10550 | else | ||
| 10551 | HAVE_DBUS=no | ||
| 10552 | fi | ||
| 10553 | |||
| 10554 | if test "$HAVE_DBUS" = yes; then | ||
| 10555 | LIBS="$LIBS $DBUS_LIBS" | ||
| 10556 | |||
| 10557 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | ||
| 10558 | |||
| 10559 | for ac_func in dbus_watch_get_unix_fd | ||
| 10560 | do : | ||
| 10561 | ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" | ||
| 10562 | if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : | ||
| 10563 | cat >>confdefs.h <<_ACEOF | ||
| 10564 | #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 | ||
| 10565 | _ACEOF | ||
| 10566 | |||
| 10567 | fi | ||
| 10568 | done | ||
| 10569 | |||
| 10570 | DBUS_OBJ=dbusbind.o | ||
| 10571 | fi | ||
| 10572 | fi | ||
| 10573 | |||
| 10574 | |||
| 10575 | HAVE_GCONF=no | ||
| 10576 | if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then | ||
| 10577 | |||
| 10578 | succeeded=no | ||
| 10579 | |||
| 10580 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 10581 | set dummy pkg-config; ac_word=$2 | ||
| 10582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 10583 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 10584 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 10585 | $as_echo_n "(cached) " >&6 | ||
| 10586 | else | ||
| 10587 | case $PKG_CONFIG in | ||
| 10588 | [\\/]* | ?:[\\/]*) | ||
| 10589 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 10590 | ;; | ||
| 10591 | *) | ||
| 10592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 10593 | for as_dir in $PATH | ||
| 10594 | do | ||
| 10595 | IFS=$as_save_IFS | ||
| 10596 | test -z "$as_dir" && as_dir=. | ||
| 10597 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 10598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 10599 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 10600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 10601 | break 2 | ||
| 10602 | fi | ||
| 10603 | done | ||
| 10604 | done | ||
| 10605 | IFS=$as_save_IFS | ||
| 10606 | |||
| 10607 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 10608 | ;; | ||
| 10609 | esac | ||
| 10610 | fi | ||
| 10611 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 10612 | if test -n "$PKG_CONFIG"; then | ||
| 10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 10614 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 10615 | else | ||
| 10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10617 | $as_echo "no" >&6; } | ||
| 10618 | fi | ||
| 10619 | |||
| 10620 | |||
| 10621 | |||
| 10622 | if test "$PKG_CONFIG" = "no" ; then | ||
| 10623 | HAVE_GCONF=no | ||
| 10624 | else | ||
| 10625 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 10626 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 10627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 | ||
| 10628 | $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } | ||
| 10629 | |||
| 10630 | if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then | ||
| 10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 10632 | $as_echo "yes" >&6; } | ||
| 10633 | succeeded=yes | ||
| 10634 | |||
| 10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 | ||
| 10636 | $as_echo_n "checking GCONF_CFLAGS... " >&6; } | ||
| 10637 | GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | ||
| 10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 | ||
| 10639 | $as_echo "$GCONF_CFLAGS" >&6; } | ||
| 10640 | |||
| 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 | ||
| 10642 | $as_echo_n "checking GCONF_LIBS... " >&6; } | ||
| 10643 | GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | ||
| 10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 | ||
| 10645 | $as_echo "$GCONF_LIBS" >&6; } | ||
| 10646 | else | ||
| 10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10648 | $as_echo "no" >&6; } | ||
| 10649 | GCONF_CFLAGS="" | ||
| 10650 | GCONF_LIBS="" | ||
| 10651 | ## If we have a custom action on failure, don't print errors, but | ||
| 10652 | ## do set a variable so people can do so. | ||
| 10653 | GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"` | ||
| 10654 | |||
| 10655 | fi | ||
| 10656 | |||
| 10657 | |||
| 10658 | |||
| 10659 | else | ||
| 10660 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 10661 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 10662 | fi | ||
| 10663 | fi | ||
| 10664 | |||
| 10665 | if test $succeeded = yes; then | ||
| 10666 | HAVE_GCONF=yes | ||
| 10667 | else | ||
| 10668 | HAVE_GCONF=no | ||
| 10669 | fi | ||
| 10670 | |||
| 10671 | if test "$HAVE_GCONF" = yes; then | ||
| 10672 | |||
| 10673 | $as_echo "#define HAVE_GCONF 1" >>confdefs.h | ||
| 10674 | |||
| 10675 | for ac_func in g_type_init | ||
| 10676 | do : | ||
| 10677 | ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init" | ||
| 10678 | if test "x$ac_cv_func_g_type_init" = x""yes; then : | ||
| 10679 | cat >>confdefs.h <<_ACEOF | ||
| 10680 | #define HAVE_G_TYPE_INIT 1 | ||
| 10681 | _ACEOF | ||
| 10682 | |||
| 10683 | fi | ||
| 10684 | done | ||
| 10685 | |||
| 10686 | fi | ||
| 10687 | fi | ||
| 10688 | |||
| 10689 | HAVE_LIBSELINUX=no | ||
| 10690 | LIBSELINUX_LIBS= | ||
| 10691 | if test "${with_selinux}" = "yes"; then | ||
| 10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 | ||
| 10693 | $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } | ||
| 10694 | if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : | ||
| 10695 | $as_echo_n "(cached) " >&6 | ||
| 10696 | else | ||
| 10697 | ac_check_lib_save_LIBS=$LIBS | ||
| 10698 | LIBS="-lselinux $LIBS" | ||
| 10699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 10700 | /* end confdefs.h. */ | ||
| 10701 | |||
| 10702 | /* Override any GCC internal prototype to avoid an error. | ||
| 10703 | Use char because int might match the return type of a GCC | ||
| 10704 | builtin and then its argument prototype would still apply. */ | ||
| 10705 | #ifdef __cplusplus | ||
| 10706 | extern "C" | ||
| 10707 | #endif | ||
| 10708 | char lgetfilecon (); | ||
| 10709 | int | ||
| 10710 | main () | ||
| 10711 | { | ||
| 10712 | return lgetfilecon (); | ||
| 10713 | ; | ||
| 10714 | return 0; | ||
| 10715 | } | ||
| 10716 | _ACEOF | ||
| 10717 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 10718 | ac_cv_lib_selinux_lgetfilecon=yes | ||
| 10719 | else | ||
| 10720 | ac_cv_lib_selinux_lgetfilecon=no | ||
| 10721 | fi | ||
| 10722 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 10723 | conftest$ac_exeext conftest.$ac_ext | ||
| 10724 | LIBS=$ac_check_lib_save_LIBS | ||
| 10725 | fi | ||
| 10726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 | ||
| 10727 | $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } | ||
| 10728 | if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : | ||
| 10729 | HAVE_LIBSELINUX=yes | ||
| 10730 | else | ||
| 10731 | HAVE_LIBSELINUX=no | ||
| 10732 | fi | ||
| 10733 | |||
| 10734 | if test "$HAVE_LIBSELINUX" = yes; then | ||
| 10735 | |||
| 10736 | $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h | ||
| 10737 | |||
| 10738 | LIBSELINUX_LIBS=-lselinux | ||
| 10739 | fi | ||
| 10740 | fi | ||
| 10741 | |||
| 10742 | |||
| 10743 | HAVE_GNUTLS=no | ||
| 10744 | if test "${with_gnutls}" = "yes" ; then | ||
| 10745 | |||
| 10746 | succeeded=no | ||
| 10747 | |||
| 10748 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 10749 | set dummy pkg-config; ac_word=$2 | ||
| 10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 10751 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 10752 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 10753 | $as_echo_n "(cached) " >&6 | ||
| 10754 | else | ||
| 10755 | case $PKG_CONFIG in | ||
| 10756 | [\\/]* | ?:[\\/]*) | ||
| 10757 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 10758 | ;; | ||
| 10759 | *) | ||
| 10760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 10761 | for as_dir in $PATH | ||
| 10762 | do | ||
| 10763 | IFS=$as_save_IFS | ||
| 10764 | test -z "$as_dir" && as_dir=. | ||
| 10765 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 10766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 10767 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 10768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 10769 | break 2 | ||
| 10770 | fi | ||
| 10771 | done | ||
| 10772 | done | ||
| 10773 | IFS=$as_save_IFS | ||
| 10774 | |||
| 10775 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 10776 | ;; | ||
| 10777 | esac | ||
| 10778 | fi | ||
| 10779 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 10780 | if test -n "$PKG_CONFIG"; then | ||
| 10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 10782 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 10783 | else | ||
| 10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10785 | $as_echo "no" >&6; } | ||
| 10786 | fi | ||
| 10787 | |||
| 10788 | |||
| 10789 | |||
| 10790 | if test "$PKG_CONFIG" = "no" ; then | ||
| 10791 | HAVE_GNUTLS=no | ||
| 10792 | else | ||
| 10793 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 10794 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5 | ||
| 10796 | $as_echo_n "checking for gnutls >= 2.2.4... " >&6; } | ||
| 10797 | |||
| 10798 | if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then | ||
| 10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 10800 | $as_echo "yes" >&6; } | ||
| 10801 | succeeded=yes | ||
| 10802 | |||
| 10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5 | ||
| 10804 | $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; } | ||
| 10805 | LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'` | ||
| 10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5 | ||
| 10807 | $as_echo "$LIBGNUTLS_CFLAGS" >&6; } | ||
| 10808 | |||
| 10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5 | ||
| 10810 | $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; } | ||
| 10811 | LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'` | ||
| 10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5 | ||
| 10813 | $as_echo "$LIBGNUTLS_LIBS" >&6; } | ||
| 10814 | else | ||
| 10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10816 | $as_echo "no" >&6; } | ||
| 10817 | LIBGNUTLS_CFLAGS="" | ||
| 10818 | LIBGNUTLS_LIBS="" | ||
| 10819 | ## If we have a custom action on failure, don't print errors, but | ||
| 10820 | ## do set a variable so people can do so. | ||
| 10821 | LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"` | ||
| 10822 | |||
| 10823 | fi | ||
| 10824 | |||
| 10825 | |||
| 10826 | |||
| 10827 | else | ||
| 10828 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 10829 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 10830 | fi | ||
| 10831 | fi | ||
| 10832 | |||
| 10833 | if test $succeeded = yes; then | ||
| 10834 | HAVE_GNUTLS=yes | ||
| 10835 | else | ||
| 10836 | HAVE_GNUTLS=no | ||
| 10837 | fi | ||
| 10838 | |||
| 10839 | if test "${HAVE_GNUTLS}" = "yes"; then | ||
| 10840 | |||
| 10841 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | ||
| 10842 | |||
| 10843 | fi | ||
| 10844 | fi | ||
| 10845 | |||
| 10846 | |||
| 10847 | |||
| 10848 | HAVE_XAW3D=no | ||
| 10849 | LUCID_LIBW= | ||
| 10850 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then | ||
| 10851 | if test "$with_xaw3d" != no; then | ||
| 10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 | ||
| 10853 | $as_echo_n "checking for xaw3d... " >&6; } | ||
| 10854 | if test "${emacs_cv_xaw3d+set}" = set; then : | ||
| 10855 | $as_echo_n "(cached) " >&6 | ||
| 10856 | else | ||
| 10857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 10858 | /* end confdefs.h. */ | ||
| 10859 | |||
| 10860 | #include <X11/Intrinsic.h> | ||
| 10861 | #include <X11/Xaw3d/Simple.h> | ||
| 10862 | int | ||
| 10863 | main () | ||
| 10864 | { | ||
| 10865 | |||
| 10866 | ; | ||
| 10867 | return 0; | ||
| 10868 | } | ||
| 10869 | _ACEOF | ||
| 10870 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | ||
| 10872 | $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; } | ||
| 10873 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then : | ||
| 10874 | $as_echo_n "(cached) " >&6 | ||
| 10875 | else | ||
| 10876 | ac_check_lib_save_LIBS=$LIBS | ||
| 10877 | LIBS="-lXaw3d $LIBS" | ||
| 10878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 10879 | /* end confdefs.h. */ | ||
| 10880 | |||
| 10881 | /* Override any GCC internal prototype to avoid an error. | ||
| 10882 | Use char because int might match the return type of a GCC | ||
| 10883 | builtin and then its argument prototype would still apply. */ | ||
| 10884 | #ifdef __cplusplus | ||
| 10885 | extern "C" | ||
| 10886 | #endif | ||
| 10887 | char XawScrollbarSetThumb (); | ||
| 10888 | int | ||
| 10889 | main () | ||
| 10890 | { | ||
| 10891 | return XawScrollbarSetThumb (); | ||
| 10892 | ; | ||
| 10893 | return 0; | ||
| 10894 | } | ||
| 10895 | _ACEOF | ||
| 10896 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 10897 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | ||
| 10898 | else | ||
| 10899 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | ||
| 10900 | fi | ||
| 10901 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 10902 | conftest$ac_exeext conftest.$ac_ext | ||
| 10903 | LIBS=$ac_check_lib_save_LIBS | ||
| 10904 | fi | ||
| 10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 | ||
| 10906 | $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; } | ||
| 10907 | if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then : | ||
| 10908 | emacs_cv_xaw3d=yes | ||
| 10909 | else | ||
| 10910 | emacs_cv_xaw3d=no | ||
| 10911 | fi | ||
| 10912 | |||
| 10913 | else | ||
| 10914 | emacs_cv_xaw3d=no | ||
| 10915 | fi | ||
| 10916 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 10917 | conftest$ac_exeext conftest.$ac_ext | ||
| 10918 | fi | ||
| 10919 | |||
| 10920 | else | ||
| 10921 | emacs_cv_xaw3d=no | ||
| 10922 | fi | ||
| 10923 | if test $emacs_cv_xaw3d = yes; then | ||
| 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 | ||
| 10925 | $as_echo "yes; using Lucid toolkit" >&6; } | ||
| 10926 | USE_X_TOOLKIT=LUCID | ||
| 10927 | HAVE_XAW3D=yes | ||
| 10928 | LUCID_LIBW=-lXaw3d | ||
| 10929 | |||
| 10930 | $as_echo "#define HAVE_XAW3D 1" >>confdefs.h | ||
| 10931 | |||
| 10932 | else | ||
| 10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 10934 | $as_echo "no" >&6; } | ||
| 10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 | ||
| 10936 | $as_echo_n "checking for libXaw... " >&6; } | ||
| 10937 | if test "${emacs_cv_xaw+set}" = set; then : | ||
| 10938 | $as_echo_n "(cached) " >&6 | ||
| 10939 | else | ||
| 10940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 10941 | /* end confdefs.h. */ | ||
| 10942 | |||
| 10943 | #include <X11/Intrinsic.h> | ||
| 10944 | #include <X11/Xaw/Simple.h> | ||
| 10945 | int | ||
| 10946 | main () | ||
| 10947 | { | ||
| 10948 | |||
| 10949 | ; | ||
| 10950 | return 0; | ||
| 10951 | } | ||
| 10952 | _ACEOF | ||
| 10953 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 10954 | emacs_cv_xaw=yes | ||
| 10955 | else | ||
| 10956 | emacs_cv_xaw=no | ||
| 10957 | fi | ||
| 10958 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 10959 | conftest$ac_exeext conftest.$ac_ext | ||
| 10960 | fi | ||
| 10961 | |||
| 10962 | if test $emacs_cv_xaw = yes; then | ||
| 10963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 | ||
| 10964 | $as_echo "yes; using Lucid toolkit" >&6; } | ||
| 10965 | USE_X_TOOLKIT=LUCID | ||
| 10966 | LUCID_LIBW=-lXaw | ||
| 10967 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | ||
| 10968 | as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 | ||
| 10969 | else | ||
| 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 | ||
| 10971 | $as_echo "no; do not use toolkit by default" >&6; } | ||
| 10972 | USE_X_TOOLKIT=none | ||
| 10973 | fi | ||
| 10974 | fi | ||
| 10975 | fi | ||
| 10976 | |||
| 10977 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | ||
| 10978 | |||
| 10979 | LIBXTR6= | ||
| 10980 | if test "${USE_X_TOOLKIT}" != "none"; then | ||
| 10981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 | ||
| 10982 | $as_echo_n "checking X11 toolkit version... " >&6; } | ||
| 10983 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : | ||
| 10984 | $as_echo_n "(cached) " >&6 | ||
| 10985 | else | ||
| 10986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 10987 | /* end confdefs.h. */ | ||
| 10988 | #include <X11/Intrinsic.h> | ||
| 10989 | int | ||
| 10990 | main () | ||
| 10991 | { | ||
| 10992 | #if XtSpecificationRelease < 6 | ||
| 10993 | fail; | ||
| 10994 | #endif | ||
| 10995 | |||
| 10996 | ; | ||
| 10997 | return 0; | ||
| 10998 | } | ||
| 10999 | _ACEOF | ||
| 11000 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 11001 | emacs_cv_x11_toolkit_version_6=yes | ||
| 11002 | else | ||
| 11003 | emacs_cv_x11_toolkit_version_6=no | ||
| 11004 | fi | ||
| 11005 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 11006 | conftest$ac_exeext conftest.$ac_ext | ||
| 11007 | fi | ||
| 11008 | |||
| 11009 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | ||
| 11010 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | ||
| 11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 | ||
| 11012 | $as_echo "6 or newer" >&6; } | ||
| 11013 | |||
| 11014 | $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h | ||
| 11015 | |||
| 11016 | LIBXTR6="-lSM -lICE" | ||
| 11017 | case "$opsys" in | ||
| 11018 | ## Use libw.a along with X11R6 Xt. | ||
| 11019 | unixware) LIBXTR6="$LIBXTR6 -lw" ;; | ||
| 11020 | esac | ||
| 11021 | else | ||
| 11022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 | ||
| 11023 | $as_echo "before 6" >&6; } | ||
| 11024 | fi | ||
| 11025 | |||
| 11026 | OLDLIBS="$LIBS" | ||
| 11027 | if test x$HAVE_X11XTR6 = xyes; then | ||
| 11028 | LIBS="-lXt -lSM -lICE $LIBS" | ||
| 11029 | else | ||
| 11030 | LIBS="-lXt $LIBS" | ||
| 11031 | fi | ||
| 11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 | ||
| 11033 | $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } | ||
| 11034 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : | ||
| 11035 | $as_echo_n "(cached) " >&6 | ||
| 11036 | else | ||
| 11037 | ac_check_lib_save_LIBS=$LIBS | ||
| 11038 | LIBS="-lXmu $LIBS" | ||
| 11039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11040 | /* end confdefs.h. */ | ||
| 11041 | |||
| 11042 | /* Override any GCC internal prototype to avoid an error. | ||
| 11043 | Use char because int might match the return type of a GCC | ||
| 11044 | builtin and then its argument prototype would still apply. */ | ||
| 11045 | #ifdef __cplusplus | ||
| 11046 | extern "C" | ||
| 11047 | #endif | ||
| 11048 | char XmuConvertStandardSelection (); | ||
| 11049 | int | ||
| 11050 | main () | ||
| 11051 | { | ||
| 11052 | return XmuConvertStandardSelection (); | ||
| 11053 | ; | ||
| 11054 | return 0; | ||
| 11055 | } | ||
| 11056 | _ACEOF | ||
| 11057 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 11058 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | ||
| 11059 | else | ||
| 11060 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no | ||
| 11061 | fi | ||
| 11062 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 11063 | conftest$ac_exeext conftest.$ac_ext | ||
| 11064 | LIBS=$ac_check_lib_save_LIBS | ||
| 11065 | fi | ||
| 11066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 | ||
| 11067 | $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | ||
| 11068 | if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : | ||
| 11069 | cat >>confdefs.h <<_ACEOF | ||
| 11070 | #define HAVE_LIBXMU 1 | ||
| 11071 | _ACEOF | ||
| 11072 | |||
| 11073 | LIBS="-lXmu $LIBS" | ||
| 11074 | |||
| 11075 | fi | ||
| 11076 | |||
| 11077 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | ||
| 11078 | fi | ||
| 11079 | |||
| 11080 | |||
| 11081 | LIBXMU=-lXmu | ||
| 11082 | case $opsys in | ||
| 11083 | ## These systems don't supply Xmu. | ||
| 11084 | hpux* | aix4-2 ) | ||
| 11085 | test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU= | ||
| 11086 | ;; | ||
| 11087 | esac | ||
| 11088 | |||
| 11089 | |||
| 11090 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | ||
| 11091 | if test "${HAVE_X11}" = "yes"; then | ||
| 11092 | if test "${USE_X_TOOLKIT}" != "none"; then | ||
| 11093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 | ||
| 11094 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } | ||
| 11095 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : | ||
| 11096 | $as_echo_n "(cached) " >&6 | ||
| 11097 | else | ||
| 11098 | ac_check_lib_save_LIBS=$LIBS | ||
| 11099 | LIBS="-lXext $LIBS" | ||
| 11100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11101 | /* end confdefs.h. */ | ||
| 11102 | |||
| 11103 | /* Override any GCC internal prototype to avoid an error. | ||
| 11104 | Use char because int might match the return type of a GCC | ||
| 11105 | builtin and then its argument prototype would still apply. */ | ||
| 11106 | #ifdef __cplusplus | ||
| 11107 | extern "C" | ||
| 11108 | #endif | ||
| 11109 | char XShapeQueryExtension (); | ||
| 11110 | int | ||
| 11111 | main () | ||
| 11112 | { | ||
| 11113 | return XShapeQueryExtension (); | ||
| 11114 | ; | ||
| 11115 | return 0; | ||
| 11116 | } | ||
| 11117 | _ACEOF | ||
| 11118 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 11119 | ac_cv_lib_Xext_XShapeQueryExtension=yes | ||
| 11120 | else | ||
| 11121 | ac_cv_lib_Xext_XShapeQueryExtension=no | ||
| 11122 | fi | ||
| 11123 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 11124 | conftest$ac_exeext conftest.$ac_ext | ||
| 11125 | LIBS=$ac_check_lib_save_LIBS | ||
| 11126 | fi | ||
| 11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | ||
| 11128 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | ||
| 11129 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : | ||
| 11130 | cat >>confdefs.h <<_ACEOF | ||
| 11131 | #define HAVE_LIBXEXT 1 | ||
| 11132 | _ACEOF | ||
| 11133 | |||
| 11134 | LIBS="-lXext $LIBS" | ||
| 11135 | |||
| 11136 | fi | ||
| 11137 | |||
| 11138 | fi | ||
| 11139 | fi | ||
| 11140 | |||
| 11141 | LIBXP= | ||
| 11142 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | ||
| 11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 | ||
| 11144 | $as_echo_n "checking for Motif version 2.1... " >&6; } | ||
| 11145 | if test "${emacs_cv_motif_version_2_1+set}" = set; then : | ||
| 11146 | $as_echo_n "(cached) " >&6 | ||
| 11147 | else | ||
| 11148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11149 | /* end confdefs.h. */ | ||
| 11150 | #include <Xm/Xm.h> | ||
| 11151 | int | ||
| 11152 | main () | ||
| 11153 | { | ||
| 11154 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | ||
| 11155 | int x = 5; | ||
| 11156 | #else | ||
| 11157 | Motif version prior to 2.1. | ||
| 11158 | #endif | ||
| 11159 | ; | ||
| 11160 | return 0; | ||
| 11161 | } | ||
| 11162 | _ACEOF | ||
| 11163 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 11164 | emacs_cv_motif_version_2_1=yes | ||
| 11165 | else | ||
| 11166 | emacs_cv_motif_version_2_1=no | ||
| 11167 | fi | ||
| 11168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 11169 | fi | ||
| 11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 | ||
| 11171 | $as_echo "$emacs_cv_motif_version_2_1" >&6; } | ||
| 11172 | if test $emacs_cv_motif_version_2_1 = yes; then | ||
| 11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 | ||
| 11174 | $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } | ||
| 11175 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : | ||
| 11176 | $as_echo_n "(cached) " >&6 | ||
| 11177 | else | ||
| 11178 | ac_check_lib_save_LIBS=$LIBS | ||
| 11179 | LIBS="-lXp $LIBS" | ||
| 11180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11181 | /* end confdefs.h. */ | ||
| 11182 | |||
| 11183 | /* Override any GCC internal prototype to avoid an error. | ||
| 11184 | Use char because int might match the return type of a GCC | ||
| 11185 | builtin and then its argument prototype would still apply. */ | ||
| 11186 | #ifdef __cplusplus | ||
| 11187 | extern "C" | ||
| 11188 | #endif | ||
| 11189 | char XpCreateContext (); | ||
| 11190 | int | ||
| 11191 | main () | ||
| 11192 | { | ||
| 11193 | return XpCreateContext (); | ||
| 11194 | ; | ||
| 11195 | return 0; | ||
| 11196 | } | ||
| 11197 | _ACEOF | ||
| 11198 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 11199 | ac_cv_lib_Xp_XpCreateContext=yes | ||
| 11200 | else | ||
| 11201 | ac_cv_lib_Xp_XpCreateContext=no | ||
| 11202 | fi | ||
| 11203 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 11204 | conftest$ac_exeext conftest.$ac_ext | ||
| 11205 | LIBS=$ac_check_lib_save_LIBS | ||
| 11206 | fi | ||
| 11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 | ||
| 11208 | $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } | ||
| 11209 | if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : | ||
| 11210 | LIBXP=-lXp | ||
| 11211 | fi | ||
| 11212 | |||
| 11213 | else | ||
| 11214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 | ||
| 11215 | $as_echo_n "checking for LessTif where some systems put it... " >&6; } | ||
| 11216 | if test "${emacs_cv_lesstif+set}" = set; then : | ||
| 11217 | $as_echo_n "(cached) " >&6 | ||
| 11218 | else | ||
| 11219 | # We put this in CFLAGS temporarily to precede other -I options | ||
| 11220 | # that might be in CFLAGS temporarily. | ||
| 11221 | # We put this in CPPFLAGS where it precedes the other -I options. | ||
| 11222 | OLD_CPPFLAGS=$CPPFLAGS | ||
| 11223 | OLD_CFLAGS=$CFLAGS | ||
| 11224 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | ||
| 11225 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | ||
| 11226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11227 | /* end confdefs.h. */ | ||
| 11228 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | ||
| 11229 | int | ||
| 11230 | main () | ||
| 11231 | { | ||
| 11232 | int x = 5; | ||
| 11233 | ; | ||
| 11234 | return 0; | ||
| 11235 | } | ||
| 11236 | _ACEOF | ||
| 11237 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 11238 | emacs_cv_lesstif=yes | ||
| 11239 | else | ||
| 11240 | emacs_cv_lesstif=no | ||
| 11241 | fi | ||
| 11242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 11243 | fi | ||
| 11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 | ||
| 11245 | $as_echo "$emacs_cv_lesstif" >&6; } | ||
| 11246 | if test $emacs_cv_lesstif = yes; then | ||
| 11247 | # Make sure this -I option remains in CPPFLAGS after it is set | ||
| 11248 | # back to REAL_CPPFLAGS. | ||
| 11249 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | ||
| 11250 | # have those other -I options anyway. Ultimately, having this | ||
| 11251 | # directory ultimately in CPPFLAGS will be enough. | ||
| 11252 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | ||
| 11253 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | ||
| 11254 | else | ||
| 11255 | CFLAGS=$OLD_CFLAGS | ||
| 11256 | CPPFLAGS=$OLD_CPPFLAGS | ||
| 11257 | fi | ||
| 11258 | fi | ||
| 11259 | fi | ||
| 11260 | |||
| 11261 | |||
| 11262 | USE_TOOLKIT_SCROLL_BARS=no | ||
| 11263 | if test "${with_toolkit_scroll_bars}" != "no"; then | ||
| 11264 | if test "${USE_X_TOOLKIT}" != "none"; then | ||
| 11265 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | ||
| 11266 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | ||
| 11267 | |||
| 11268 | HAVE_XAW3D=no | ||
| 11269 | USE_TOOLKIT_SCROLL_BARS=yes | ||
| 11270 | elif test "${HAVE_XAW3D}" = "yes"; then | ||
| 11271 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | ||
| 11272 | |||
| 11273 | USE_TOOLKIT_SCROLL_BARS=yes | ||
| 11274 | fi | ||
| 11275 | elif test "${HAVE_GTK}" = "yes"; then | ||
| 11276 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | ||
| 11277 | |||
| 11278 | USE_TOOLKIT_SCROLL_BARS=yes | ||
| 11279 | elif test "${HAVE_NS}" = "yes"; then | ||
| 11280 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | ||
| 11281 | |||
| 11282 | USE_TOOLKIT_SCROLL_BARS=yes | ||
| 11283 | fi | ||
| 11284 | fi | ||
| 11285 | |||
| 11286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11287 | /* end confdefs.h. */ | ||
| 11288 | |||
| 11289 | #include <X11/Xlib.h> | ||
| 11290 | #include <X11/Xresource.h> | ||
| 11291 | int | ||
| 11292 | main () | ||
| 11293 | { | ||
| 11294 | XIMProc callback; | ||
| 11295 | ; | ||
| 11296 | return 0; | ||
| 11297 | } | ||
| 11298 | _ACEOF | ||
| 11299 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 11300 | HAVE_XIM=yes | ||
| 11301 | |||
| 11302 | $as_echo "#define HAVE_XIM 1" >>confdefs.h | ||
| 11303 | |||
| 11304 | else | ||
| 11305 | HAVE_XIM=no | ||
| 11306 | fi | ||
| 11307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 11308 | |||
| 11309 | |||
| 11310 | if test "${with_xim}" != "no"; then | ||
| 11311 | |||
| 11312 | $as_echo "#define USE_XIM 1" >>confdefs.h | ||
| 11313 | |||
| 11314 | fi | ||
| 11315 | |||
| 11316 | |||
| 11317 | if test "${HAVE_XIM}" != "no"; then | ||
| 11318 | late_CFLAGS=$CFLAGS | ||
| 11319 | if test "$GCC" = yes; then | ||
| 11320 | CFLAGS="$CFLAGS --pedantic-errors" | ||
| 11321 | fi | ||
| 11322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11323 | /* end confdefs.h. */ | ||
| 11324 | |||
| 11325 | #include <X11/Xlib.h> | ||
| 11326 | #include <X11/Xresource.h> | ||
| 11327 | int | ||
| 11328 | main () | ||
| 11329 | { | ||
| 11330 | Display *display; | ||
| 11331 | XrmDatabase db; | ||
| 11332 | char *res_name; | ||
| 11333 | char *res_class; | ||
| 11334 | XIMProc callback; | ||
| 11335 | XPointer *client_data; | ||
| 11336 | #ifndef __GNUC__ | ||
| 11337 | /* If we're not using GCC, it's probably not XFree86, and this is | ||
| 11338 | probably right, but we can't use something like --pedantic-errors. */ | ||
| 11339 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | ||
| 11340 | char*, XIMProc, XPointer*); | ||
| 11341 | #endif | ||
| 11342 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, | ||
| 11343 | client_data); | ||
| 11344 | ; | ||
| 11345 | return 0; | ||
| 11346 | } | ||
| 11347 | _ACEOF | ||
| 11348 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 11349 | emacs_cv_arg6_star=yes | ||
| 11350 | fi | ||
| 11351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 11352 | if test "$emacs_cv_arg6_star" = yes; then | ||
| 11353 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h | ||
| 11354 | |||
| 11355 | else | ||
| 11356 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h | ||
| 11357 | |||
| 11358 | fi | ||
| 11359 | CFLAGS=$late_CFLAGS | ||
| 11360 | fi | ||
| 11361 | |||
| 11362 | ### Start of font-backend (under any platform) section. | ||
| 11363 | # (nothing here yet -- this is a placeholder) | ||
| 11364 | ### End of font-backend (under any platform) section. | ||
| 11365 | |||
| 11366 | ### Start of font-backend (under X11) section. | ||
| 11367 | if test "${HAVE_X11}" = "yes"; then | ||
| 11368 | |||
| 11369 | succeeded=no | ||
| 11370 | |||
| 11371 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 11372 | set dummy pkg-config; ac_word=$2 | ||
| 11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 11374 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 11375 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 11376 | $as_echo_n "(cached) " >&6 | ||
| 11377 | else | ||
| 11378 | case $PKG_CONFIG in | ||
| 11379 | [\\/]* | ?:[\\/]*) | ||
| 11380 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 11381 | ;; | ||
| 11382 | *) | ||
| 11383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 11384 | for as_dir in $PATH | ||
| 11385 | do | ||
| 11386 | IFS=$as_save_IFS | ||
| 11387 | test -z "$as_dir" && as_dir=. | ||
| 11388 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 11389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 11390 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 11391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 11392 | break 2 | ||
| 11393 | fi | ||
| 11394 | done | ||
| 11395 | done | ||
| 11396 | IFS=$as_save_IFS | ||
| 11397 | |||
| 11398 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 11399 | ;; | ||
| 11400 | esac | ||
| 11401 | fi | ||
| 11402 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 11403 | if test -n "$PKG_CONFIG"; then | ||
| 11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 11405 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 11406 | else | ||
| 11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11408 | $as_echo "no" >&6; } | ||
| 11409 | fi | ||
| 11410 | |||
| 11411 | |||
| 11412 | |||
| 11413 | if test "$PKG_CONFIG" = "no" ; then | ||
| 11414 | HAVE_FC=no | ||
| 11415 | else | ||
| 11416 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 11417 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 | ||
| 11419 | $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } | ||
| 11420 | |||
| 11421 | if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then | ||
| 11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 11423 | $as_echo "yes" >&6; } | ||
| 11424 | succeeded=yes | ||
| 11425 | |||
| 11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 | ||
| 11427 | $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } | ||
| 11428 | FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | ||
| 11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 | ||
| 11430 | $as_echo "$FONTCONFIG_CFLAGS" >&6; } | ||
| 11431 | |||
| 11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 | ||
| 11433 | $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } | ||
| 11434 | FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | ||
| 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 | ||
| 11436 | $as_echo "$FONTCONFIG_LIBS" >&6; } | ||
| 11437 | else | ||
| 11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11439 | $as_echo "no" >&6; } | ||
| 11440 | FONTCONFIG_CFLAGS="" | ||
| 11441 | FONTCONFIG_LIBS="" | ||
| 11442 | ## If we have a custom action on failure, don't print errors, but | ||
| 11443 | ## do set a variable so people can do so. | ||
| 11444 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"` | ||
| 11445 | |||
| 11446 | fi | ||
| 11447 | |||
| 11448 | |||
| 11449 | |||
| 11450 | else | ||
| 11451 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 11452 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 11453 | fi | ||
| 11454 | fi | ||
| 11455 | |||
| 11456 | if test $succeeded = yes; then | ||
| 11457 | HAVE_FC=yes | ||
| 11458 | else | ||
| 11459 | HAVE_FC=no | ||
| 11460 | fi | ||
| 11461 | |||
| 11462 | |||
| 11463 | ## Use -lXft if available, unless `--with-xft=no'. | ||
| 11464 | HAVE_XFT=maybe | ||
| 11465 | if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then | ||
| 11466 | with_xft="no"; | ||
| 11467 | fi | ||
| 11468 | if test "x${with_xft}" != "xno"; then | ||
| 11469 | |||
| 11470 | |||
| 11471 | succeeded=no | ||
| 11472 | |||
| 11473 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 11474 | set dummy pkg-config; ac_word=$2 | ||
| 11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 11476 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 11477 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 11478 | $as_echo_n "(cached) " >&6 | ||
| 11479 | else | ||
| 11480 | case $PKG_CONFIG in | ||
| 11481 | [\\/]* | ?:[\\/]*) | ||
| 11482 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 11483 | ;; | ||
| 11484 | *) | ||
| 11485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 11486 | for as_dir in $PATH | ||
| 11487 | do | ||
| 11488 | IFS=$as_save_IFS | ||
| 11489 | test -z "$as_dir" && as_dir=. | ||
| 11490 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 11491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 11492 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 11493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 11494 | break 2 | ||
| 11495 | fi | ||
| 11496 | done | ||
| 11497 | done | ||
| 11498 | IFS=$as_save_IFS | ||
| 11499 | |||
| 11500 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 11501 | ;; | ||
| 11502 | esac | ||
| 11503 | fi | ||
| 11504 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 11505 | if test -n "$PKG_CONFIG"; then | ||
| 11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 11507 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 11508 | else | ||
| 11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11510 | $as_echo "no" >&6; } | ||
| 11511 | fi | ||
| 11512 | |||
| 11513 | |||
| 11514 | |||
| 11515 | if test "$PKG_CONFIG" = "no" ; then | ||
| 11516 | HAVE_XFT=no | ||
| 11517 | else | ||
| 11518 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 11519 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 | ||
| 11521 | $as_echo_n "checking for xft >= 0.13.0... " >&6; } | ||
| 11522 | |||
| 11523 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | ||
| 11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 11525 | $as_echo "yes" >&6; } | ||
| 11526 | succeeded=yes | ||
| 11527 | |||
| 11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 | ||
| 11529 | $as_echo_n "checking XFT_CFLAGS... " >&6; } | ||
| 11530 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` | ||
| 11531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 | ||
| 11532 | $as_echo "$XFT_CFLAGS" >&6; } | ||
| 11533 | |||
| 11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 | ||
| 11535 | $as_echo_n "checking XFT_LIBS... " >&6; } | ||
| 11536 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` | ||
| 11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 | ||
| 11538 | $as_echo "$XFT_LIBS" >&6; } | ||
| 11539 | else | ||
| 11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11541 | $as_echo "no" >&6; } | ||
| 11542 | XFT_CFLAGS="" | ||
| 11543 | XFT_LIBS="" | ||
| 11544 | ## If we have a custom action on failure, don't print errors, but | ||
| 11545 | ## do set a variable so people can do so. | ||
| 11546 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` | ||
| 11547 | |||
| 11548 | fi | ||
| 11549 | |||
| 11550 | |||
| 11551 | |||
| 11552 | else | ||
| 11553 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 11554 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 11555 | fi | ||
| 11556 | fi | ||
| 11557 | |||
| 11558 | if test $succeeded = yes; then | ||
| 11559 | : | ||
| 11560 | else | ||
| 11561 | HAVE_XFT=no | ||
| 11562 | fi | ||
| 11563 | |||
| 11564 | ## Because xftfont.c uses XRenderQueryExtension, we also | ||
| 11565 | ## need to link to -lXrender. | ||
| 11566 | HAVE_XRENDER=no | ||
| 11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 | ||
| 11568 | $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } | ||
| 11569 | if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : | ||
| 11570 | $as_echo_n "(cached) " >&6 | ||
| 11571 | else | ||
| 11572 | ac_check_lib_save_LIBS=$LIBS | ||
| 11573 | LIBS="-lXrender $LIBS" | ||
| 11574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11575 | /* end confdefs.h. */ | ||
| 11576 | |||
| 11577 | /* Override any GCC internal prototype to avoid an error. | ||
| 11578 | Use char because int might match the return type of a GCC | ||
| 11579 | builtin and then its argument prototype would still apply. */ | ||
| 11580 | #ifdef __cplusplus | ||
| 11581 | extern "C" | ||
| 11582 | #endif | ||
| 11583 | char XRenderQueryExtension (); | ||
| 11584 | int | ||
| 11585 | main () | ||
| 11586 | { | ||
| 11587 | return XRenderQueryExtension (); | ||
| 11588 | ; | ||
| 11589 | return 0; | ||
| 11590 | } | ||
| 11591 | _ACEOF | ||
| 11592 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 11593 | ac_cv_lib_Xrender_XRenderQueryExtension=yes | ||
| 11594 | else | ||
| 11595 | ac_cv_lib_Xrender_XRenderQueryExtension=no | ||
| 11596 | fi | ||
| 11597 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 11598 | conftest$ac_exeext conftest.$ac_ext | ||
| 11599 | LIBS=$ac_check_lib_save_LIBS | ||
| 11600 | fi | ||
| 11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 | ||
| 11602 | $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } | ||
| 11603 | if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : | ||
| 11604 | HAVE_XRENDER=yes | ||
| 11605 | fi | ||
| 11606 | |||
| 11607 | if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then | ||
| 11608 | OLD_CPPFLAGS="$CPPFLAGS" | ||
| 11609 | OLD_CFLAGS="$CFLAGS" | ||
| 11610 | OLD_LIBS="$LIBS" | ||
| 11611 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | ||
| 11612 | CFLAGS="$CFLAGS $XFT_CFLAGS" | ||
| 11613 | XFT_LIBS="-lXrender $XFT_LIBS" | ||
| 11614 | LIBS="$XFT_LIBS $LIBS" | ||
| 11615 | ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" | ||
| 11616 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : | ||
| 11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 | ||
| 11618 | $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } | ||
| 11619 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : | ||
| 11620 | $as_echo_n "(cached) " >&6 | ||
| 11621 | else | ||
| 11622 | ac_check_lib_save_LIBS=$LIBS | ||
| 11623 | LIBS="-lXft $XFT_LIBS $LIBS" | ||
| 11624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11625 | /* end confdefs.h. */ | ||
| 11626 | |||
| 11627 | /* Override any GCC internal prototype to avoid an error. | ||
| 11628 | Use char because int might match the return type of a GCC | ||
| 11629 | builtin and then its argument prototype would still apply. */ | ||
| 11630 | #ifdef __cplusplus | ||
| 11631 | extern "C" | ||
| 11632 | #endif | ||
| 11633 | char XftFontOpen (); | ||
| 11634 | int | ||
| 11635 | main () | ||
| 11636 | { | ||
| 11637 | return XftFontOpen (); | ||
| 11638 | ; | ||
| 11639 | return 0; | ||
| 11640 | } | ||
| 11641 | _ACEOF | ||
| 11642 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 11643 | ac_cv_lib_Xft_XftFontOpen=yes | ||
| 11644 | else | ||
| 11645 | ac_cv_lib_Xft_XftFontOpen=no | ||
| 11646 | fi | ||
| 11647 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 11648 | conftest$ac_exeext conftest.$ac_ext | ||
| 11649 | LIBS=$ac_check_lib_save_LIBS | ||
| 11650 | fi | ||
| 11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | ||
| 11652 | $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } | ||
| 11653 | if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : | ||
| 11654 | HAVE_XFT=yes | ||
| 11655 | fi | ||
| 11656 | |||
| 11657 | fi | ||
| 11658 | |||
| 11659 | |||
| 11660 | |||
| 11661 | if test "${HAVE_XFT}" = "yes"; then | ||
| 11662 | |||
| 11663 | $as_echo "#define HAVE_XFT 1" >>confdefs.h | ||
| 11664 | |||
| 11665 | |||
| 11666 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | ||
| 11667 | else | ||
| 11668 | CPPFLAGS="$OLD_CPPFLAGS" | ||
| 11669 | CFLAGS="$OLD_CFLAGS" | ||
| 11670 | LIBS="$OLD_LIBS" | ||
| 11671 | fi # "${HAVE_XFT}" = "yes" | ||
| 11672 | fi # "$HAVE_XFT" != no | ||
| 11673 | fi # "x${with_xft}" != "xno" | ||
| 11674 | |||
| 11675 | ## We used to allow building with FreeType and without Xft. | ||
| 11676 | ## However, the ftx font backend driver is not in good shape. | ||
| 11677 | if test "$HAVE_XFT" != "yes"; then | ||
| 11678 | HAVE_XFT=no | ||
| 11679 | HAVE_FREETYPE=no | ||
| 11680 | else | ||
| 11681 | |||
| 11682 | succeeded=no | ||
| 11683 | |||
| 11684 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 11685 | set dummy pkg-config; ac_word=$2 | ||
| 11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 11687 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 11688 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 11689 | $as_echo_n "(cached) " >&6 | ||
| 11690 | else | ||
| 11691 | case $PKG_CONFIG in | ||
| 11692 | [\\/]* | ?:[\\/]*) | ||
| 11693 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 11694 | ;; | ||
| 11695 | *) | ||
| 11696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 11697 | for as_dir in $PATH | ||
| 11698 | do | ||
| 11699 | IFS=$as_save_IFS | ||
| 11700 | test -z "$as_dir" && as_dir=. | ||
| 11701 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 11702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 11703 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 11704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 11705 | break 2 | ||
| 11706 | fi | ||
| 11707 | done | ||
| 11708 | done | ||
| 11709 | IFS=$as_save_IFS | ||
| 11710 | |||
| 11711 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 11712 | ;; | ||
| 11713 | esac | ||
| 11714 | fi | ||
| 11715 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 11716 | if test -n "$PKG_CONFIG"; then | ||
| 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 11718 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 11719 | else | ||
| 11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11721 | $as_echo "no" >&6; } | ||
| 11722 | fi | ||
| 11723 | |||
| 11724 | |||
| 11725 | |||
| 11726 | if test "$PKG_CONFIG" = "no" ; then | ||
| 11727 | HAVE_FREETYPE=no | ||
| 11728 | else | ||
| 11729 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 11730 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 | ||
| 11732 | $as_echo_n "checking for freetype2... " >&6; } | ||
| 11733 | |||
| 11734 | if $PKG_CONFIG --exists "freetype2" 2>&5; then | ||
| 11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 11736 | $as_echo "yes" >&6; } | ||
| 11737 | succeeded=yes | ||
| 11738 | |||
| 11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5 | ||
| 11740 | $as_echo_n "checking FREETYPE_CFLAGS... " >&6; } | ||
| 11741 | FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'` | ||
| 11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5 | ||
| 11743 | $as_echo "$FREETYPE_CFLAGS" >&6; } | ||
| 11744 | |||
| 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5 | ||
| 11746 | $as_echo_n "checking FREETYPE_LIBS... " >&6; } | ||
| 11747 | FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'` | ||
| 11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5 | ||
| 11749 | $as_echo "$FREETYPE_LIBS" >&6; } | ||
| 11750 | else | ||
| 11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11752 | $as_echo "no" >&6; } | ||
| 11753 | FREETYPE_CFLAGS="" | ||
| 11754 | FREETYPE_LIBS="" | ||
| 11755 | ## If we have a custom action on failure, don't print errors, but | ||
| 11756 | ## do set a variable so people can do so. | ||
| 11757 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"` | ||
| 11758 | |||
| 11759 | fi | ||
| 11760 | |||
| 11761 | |||
| 11762 | |||
| 11763 | else | ||
| 11764 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 11765 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 11766 | fi | ||
| 11767 | fi | ||
| 11768 | |||
| 11769 | if test $succeeded = yes; then | ||
| 11770 | HAVE_FREETYPE=yes | ||
| 11771 | else | ||
| 11772 | HAVE_FREETYPE=no | ||
| 11773 | fi | ||
| 11774 | |||
| 11775 | |||
| 11776 | test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5 | ||
| 11777 | fi | ||
| 11778 | |||
| 11779 | HAVE_LIBOTF=no | ||
| 11780 | if test "${HAVE_FREETYPE}" = "yes"; then | ||
| 11781 | |||
| 11782 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h | ||
| 11783 | |||
| 11784 | if test "${with_libotf}" != "no"; then | ||
| 11785 | |||
| 11786 | succeeded=no | ||
| 11787 | |||
| 11788 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 11789 | set dummy pkg-config; ac_word=$2 | ||
| 11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 11791 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 11792 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 11793 | $as_echo_n "(cached) " >&6 | ||
| 11794 | else | ||
| 11795 | case $PKG_CONFIG in | ||
| 11796 | [\\/]* | ?:[\\/]*) | ||
| 11797 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 11798 | ;; | ||
| 11799 | *) | ||
| 11800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 11801 | for as_dir in $PATH | ||
| 11802 | do | ||
| 11803 | IFS=$as_save_IFS | ||
| 11804 | test -z "$as_dir" && as_dir=. | ||
| 11805 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 11806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 11807 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 11808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 11809 | break 2 | ||
| 11810 | fi | ||
| 11811 | done | ||
| 11812 | done | ||
| 11813 | IFS=$as_save_IFS | ||
| 11814 | |||
| 11815 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 11816 | ;; | ||
| 11817 | esac | ||
| 11818 | fi | ||
| 11819 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 11820 | if test -n "$PKG_CONFIG"; then | ||
| 11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 11822 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 11823 | else | ||
| 11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11825 | $as_echo "no" >&6; } | ||
| 11826 | fi | ||
| 11827 | |||
| 11828 | |||
| 11829 | |||
| 11830 | if test "$PKG_CONFIG" = "no" ; then | ||
| 11831 | HAVE_LIBOTF=no | ||
| 11832 | else | ||
| 11833 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 11834 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 | ||
| 11836 | $as_echo_n "checking for libotf... " >&6; } | ||
| 11837 | |||
| 11838 | if $PKG_CONFIG --exists "libotf" 2>&5; then | ||
| 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 11840 | $as_echo "yes" >&6; } | ||
| 11841 | succeeded=yes | ||
| 11842 | |||
| 11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 | ||
| 11844 | $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } | ||
| 11845 | LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` | ||
| 11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 | ||
| 11847 | $as_echo "$LIBOTF_CFLAGS" >&6; } | ||
| 11848 | |||
| 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 | ||
| 11850 | $as_echo_n "checking LIBOTF_LIBS... " >&6; } | ||
| 11851 | LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` | ||
| 11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 | ||
| 11853 | $as_echo "$LIBOTF_LIBS" >&6; } | ||
| 11854 | else | ||
| 11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11856 | $as_echo "no" >&6; } | ||
| 11857 | LIBOTF_CFLAGS="" | ||
| 11858 | LIBOTF_LIBS="" | ||
| 11859 | ## If we have a custom action on failure, don't print errors, but | ||
| 11860 | ## do set a variable so people can do so. | ||
| 11861 | LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"` | ||
| 11862 | |||
| 11863 | fi | ||
| 11864 | |||
| 11865 | |||
| 11866 | |||
| 11867 | else | ||
| 11868 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 11869 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 11870 | fi | ||
| 11871 | fi | ||
| 11872 | |||
| 11873 | if test $succeeded = yes; then | ||
| 11874 | HAVE_LIBOTF=yes | ||
| 11875 | else | ||
| 11876 | HAVE_LIBOTF=no | ||
| 11877 | fi | ||
| 11878 | |||
| 11879 | if test "$HAVE_LIBOTF" = "yes"; then | ||
| 11880 | |||
| 11881 | $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h | ||
| 11882 | |||
| 11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 | ||
| 11884 | $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } | ||
| 11885 | if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : | ||
| 11886 | $as_echo_n "(cached) " >&6 | ||
| 11887 | else | ||
| 11888 | ac_check_lib_save_LIBS=$LIBS | ||
| 11889 | LIBS="-lotf $LIBS" | ||
| 11890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 11891 | /* end confdefs.h. */ | ||
| 11892 | |||
| 11893 | /* Override any GCC internal prototype to avoid an error. | ||
| 11894 | Use char because int might match the return type of a GCC | ||
| 11895 | builtin and then its argument prototype would still apply. */ | ||
| 11896 | #ifdef __cplusplus | ||
| 11897 | extern "C" | ||
| 11898 | #endif | ||
| 11899 | char OTF_get_variation_glyphs (); | ||
| 11900 | int | ||
| 11901 | main () | ||
| 11902 | { | ||
| 11903 | return OTF_get_variation_glyphs (); | ||
| 11904 | ; | ||
| 11905 | return 0; | ||
| 11906 | } | ||
| 11907 | _ACEOF | ||
| 11908 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 11909 | ac_cv_lib_otf_OTF_get_variation_glyphs=yes | ||
| 11910 | else | ||
| 11911 | ac_cv_lib_otf_OTF_get_variation_glyphs=no | ||
| 11912 | fi | ||
| 11913 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 11914 | conftest$ac_exeext conftest.$ac_ext | ||
| 11915 | LIBS=$ac_check_lib_save_LIBS | ||
| 11916 | fi | ||
| 11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 | ||
| 11918 | $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } | ||
| 11919 | if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : | ||
| 11920 | HAVE_OTF_GET_VARIATION_GLYPHS=yes | ||
| 11921 | else | ||
| 11922 | HAVE_OTF_GET_VARIATION_GLYPHS=no | ||
| 11923 | fi | ||
| 11924 | |||
| 11925 | if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then | ||
| 11926 | |||
| 11927 | $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h | ||
| 11928 | |||
| 11929 | fi | ||
| 11930 | fi | ||
| 11931 | fi | ||
| 11932 | fi | ||
| 11933 | |||
| 11934 | HAVE_M17N_FLT=no | ||
| 11935 | if test "${HAVE_LIBOTF}" = yes; then | ||
| 11936 | if test "${with_m17n_flt}" != "no"; then | ||
| 11937 | |||
| 11938 | succeeded=no | ||
| 11939 | |||
| 11940 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 11941 | set dummy pkg-config; ac_word=$2 | ||
| 11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 11943 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 11944 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 11945 | $as_echo_n "(cached) " >&6 | ||
| 11946 | else | ||
| 11947 | case $PKG_CONFIG in | ||
| 11948 | [\\/]* | ?:[\\/]*) | ||
| 11949 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 11950 | ;; | ||
| 11951 | *) | ||
| 11952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 11953 | for as_dir in $PATH | ||
| 11954 | do | ||
| 11955 | IFS=$as_save_IFS | ||
| 11956 | test -z "$as_dir" && as_dir=. | ||
| 11957 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 11958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 11959 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 11960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 11961 | break 2 | ||
| 11962 | fi | ||
| 11963 | done | ||
| 11964 | done | ||
| 11965 | IFS=$as_save_IFS | ||
| 11966 | |||
| 11967 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 11968 | ;; | ||
| 11969 | esac | ||
| 11970 | fi | ||
| 11971 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 11972 | if test -n "$PKG_CONFIG"; then | ||
| 11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 11974 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 11975 | else | ||
| 11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 11977 | $as_echo "no" >&6; } | ||
| 11978 | fi | ||
| 11979 | |||
| 11980 | |||
| 11981 | |||
| 11982 | if test "$PKG_CONFIG" = "no" ; then | ||
| 11983 | HAVE_M17N_FLT=no | ||
| 11984 | else | ||
| 11985 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 11986 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 | ||
| 11988 | $as_echo_n "checking for m17n-flt... " >&6; } | ||
| 11989 | |||
| 11990 | if $PKG_CONFIG --exists "m17n-flt" 2>&5; then | ||
| 11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 11992 | $as_echo "yes" >&6; } | ||
| 11993 | succeeded=yes | ||
| 11994 | |||
| 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 | ||
| 11996 | $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } | ||
| 11997 | M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` | ||
| 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 | ||
| 11999 | $as_echo "$M17N_FLT_CFLAGS" >&6; } | ||
| 12000 | |||
| 12001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 | ||
| 12002 | $as_echo_n "checking M17N_FLT_LIBS... " >&6; } | ||
| 12003 | M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` | ||
| 12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 | ||
| 12005 | $as_echo "$M17N_FLT_LIBS" >&6; } | ||
| 12006 | else | ||
| 12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 12008 | $as_echo "no" >&6; } | ||
| 12009 | M17N_FLT_CFLAGS="" | ||
| 12010 | M17N_FLT_LIBS="" | ||
| 12011 | ## If we have a custom action on failure, don't print errors, but | ||
| 12012 | ## do set a variable so people can do so. | ||
| 12013 | M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"` | ||
| 12014 | |||
| 12015 | fi | ||
| 12016 | |||
| 12017 | |||
| 12018 | |||
| 12019 | else | ||
| 12020 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 12021 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 12022 | fi | ||
| 12023 | fi | ||
| 12024 | |||
| 12025 | if test $succeeded = yes; then | ||
| 12026 | HAVE_M17N_FLT=yes | ||
| 12027 | else | ||
| 12028 | HAVE_M17N_FLT=no | ||
| 12029 | fi | ||
| 12030 | |||
| 12031 | if test "$HAVE_M17N_FLT" = "yes"; then | ||
| 12032 | |||
| 12033 | $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h | ||
| 12034 | |||
| 12035 | fi | ||
| 12036 | fi | ||
| 12037 | fi | ||
| 12038 | else | ||
| 12039 | HAVE_XFT=no | ||
| 12040 | HAVE_FREETYPE=no | ||
| 12041 | HAVE_LIBOTF=no | ||
| 12042 | HAVE_M17N_FLT=no | ||
| 12043 | fi | ||
| 12044 | |||
| 12045 | ### End of font-backend (under X11) section. | ||
| 12046 | |||
| 12047 | |||
| 12048 | |||
| 12049 | |||
| 12050 | |||
| 12051 | |||
| 12052 | |||
| 12053 | |||
| 12054 | |||
| 12055 | |||
| 12056 | ### Use -lXpm if available, unless `--with-xpm=no'. | ||
| 12057 | HAVE_XPM=no | ||
| 12058 | LIBXPM= | ||
| 12059 | if test "${HAVE_X11}" = "yes"; then | ||
| 12060 | if test "${with_xpm}" != "no"; then | ||
| 12061 | ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" | ||
| 12062 | if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : | ||
| 12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 | ||
| 12064 | $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } | ||
| 12065 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : | ||
| 12066 | $as_echo_n "(cached) " >&6 | ||
| 12067 | else | ||
| 12068 | ac_check_lib_save_LIBS=$LIBS | ||
| 12069 | LIBS="-lXpm -lX11 $LIBS" | ||
| 12070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12071 | /* end confdefs.h. */ | ||
| 12072 | |||
| 12073 | /* Override any GCC internal prototype to avoid an error. | ||
| 12074 | Use char because int might match the return type of a GCC | ||
| 12075 | builtin and then its argument prototype would still apply. */ | ||
| 12076 | #ifdef __cplusplus | ||
| 12077 | extern "C" | ||
| 12078 | #endif | ||
| 12079 | char XpmReadFileToPixmap (); | ||
| 12080 | int | ||
| 12081 | main () | ||
| 12082 | { | ||
| 12083 | return XpmReadFileToPixmap (); | ||
| 12084 | ; | ||
| 12085 | return 0; | ||
| 12086 | } | ||
| 12087 | _ACEOF | ||
| 12088 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12089 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | ||
| 12090 | else | ||
| 12091 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no | ||
| 12092 | fi | ||
| 12093 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12094 | conftest$ac_exeext conftest.$ac_ext | ||
| 12095 | LIBS=$ac_check_lib_save_LIBS | ||
| 12096 | fi | ||
| 12097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 | ||
| 12098 | $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | ||
| 12099 | if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : | ||
| 12100 | HAVE_XPM=yes | ||
| 12101 | fi | ||
| 12102 | |||
| 12103 | fi | ||
| 12104 | |||
| 12105 | |||
| 12106 | if test "${HAVE_XPM}" = "yes"; then | ||
| 12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 | ||
| 12108 | $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } | ||
| 12109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12110 | /* end confdefs.h. */ | ||
| 12111 | #include "X11/xpm.h" | ||
| 12112 | #ifndef XpmReturnAllocPixels | ||
| 12113 | no_return_alloc_pixels | ||
| 12114 | #endif | ||
| 12115 | |||
| 12116 | _ACEOF | ||
| 12117 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 12118 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : | ||
| 12119 | HAVE_XPM=no | ||
| 12120 | else | ||
| 12121 | HAVE_XPM=yes | ||
| 12122 | fi | ||
| 12123 | rm -f conftest* | ||
| 12124 | |||
| 12125 | |||
| 12126 | if test "${HAVE_XPM}" = "yes"; then | ||
| 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 12128 | $as_echo "yes" >&6; } | ||
| 12129 | else | ||
| 12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 12131 | $as_echo "no" >&6; } | ||
| 12132 | fi | ||
| 12133 | fi | ||
| 12134 | fi | ||
| 12135 | |||
| 12136 | if test "${HAVE_XPM}" = "yes"; then | ||
| 12137 | |||
| 12138 | $as_echo "#define HAVE_XPM 1" >>confdefs.h | ||
| 12139 | |||
| 12140 | LIBXPM=-lXpm | ||
| 12141 | fi | ||
| 12142 | fi | ||
| 12143 | |||
| 12144 | |||
| 12145 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | ||
| 12146 | HAVE_JPEG=no | ||
| 12147 | LIBJPEG= | ||
| 12148 | if test "${HAVE_X11}" = "yes"; then | ||
| 12149 | if test "${with_jpeg}" != "no"; then | ||
| 12150 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" | ||
| 12151 | if test "x$ac_cv_header_jerror_h" = x""yes; then : | ||
| 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 | ||
| 12153 | $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } | ||
| 12154 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : | ||
| 12155 | $as_echo_n "(cached) " >&6 | ||
| 12156 | else | ||
| 12157 | ac_check_lib_save_LIBS=$LIBS | ||
| 12158 | LIBS="-ljpeg $LIBS" | ||
| 12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12160 | /* end confdefs.h. */ | ||
| 12161 | |||
| 12162 | /* Override any GCC internal prototype to avoid an error. | ||
| 12163 | Use char because int might match the return type of a GCC | ||
| 12164 | builtin and then its argument prototype would still apply. */ | ||
| 12165 | #ifdef __cplusplus | ||
| 12166 | extern "C" | ||
| 12167 | #endif | ||
| 12168 | char jpeg_destroy_compress (); | ||
| 12169 | int | ||
| 12170 | main () | ||
| 12171 | { | ||
| 12172 | return jpeg_destroy_compress (); | ||
| 12173 | ; | ||
| 12174 | return 0; | ||
| 12175 | } | ||
| 12176 | _ACEOF | ||
| 12177 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12178 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes | ||
| 12179 | else | ||
| 12180 | ac_cv_lib_jpeg_jpeg_destroy_compress=no | ||
| 12181 | fi | ||
| 12182 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12183 | conftest$ac_exeext conftest.$ac_ext | ||
| 12184 | LIBS=$ac_check_lib_save_LIBS | ||
| 12185 | fi | ||
| 12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 | ||
| 12187 | $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | ||
| 12188 | if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : | ||
| 12189 | HAVE_JPEG=yes | ||
| 12190 | fi | ||
| 12191 | |||
| 12192 | fi | ||
| 12193 | |||
| 12194 | |||
| 12195 | fi | ||
| 12196 | |||
| 12197 | if test "${HAVE_JPEG}" = "yes"; then | ||
| 12198 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h | ||
| 12199 | |||
| 12200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12201 | /* end confdefs.h. */ | ||
| 12202 | #include <jpeglib.h> | ||
| 12203 | version=JPEG_LIB_VERSION | ||
| 12204 | |||
| 12205 | _ACEOF | ||
| 12206 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 12207 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : | ||
| 12208 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h | ||
| 12209 | |||
| 12210 | else | ||
| 12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 | ||
| 12212 | $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} | ||
| 12213 | HAVE_JPEG=no | ||
| 12214 | fi | ||
| 12215 | rm -f conftest* | ||
| 12216 | |||
| 12217 | fi | ||
| 12218 | if test "${HAVE_JPEG}" = "yes"; then | ||
| 12219 | LIBJPEG=-ljpeg | ||
| 12220 | fi | ||
| 12221 | fi | ||
| 12222 | |||
| 12223 | |||
| 12224 | ### Use -lpng if available, unless `--with-png=no'. | ||
| 12225 | HAVE_PNG=no | ||
| 12226 | LIBPNG= | ||
| 12227 | if test "${HAVE_X11}" = "yes"; then | ||
| 12228 | if test "${with_png}" != "no"; then | ||
| 12229 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h | ||
| 12230 | # in /usr/include/libpng. | ||
| 12231 | for ac_header in png.h libpng/png.h | ||
| 12232 | do : | ||
| 12233 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 12234 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
| 12235 | eval as_val=\$$as_ac_Header | ||
| 12236 | if test "x$as_val" = x""yes; then : | ||
| 12237 | cat >>confdefs.h <<_ACEOF | ||
| 12238 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 12239 | _ACEOF | ||
| 12240 | |||
| 12241 | fi | ||
| 12242 | |||
| 12243 | done | ||
| 12244 | |||
| 12245 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | ||
| 12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 | ||
| 12247 | $as_echo_n "checking for png_get_channels in -lpng... " >&6; } | ||
| 12248 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : | ||
| 12249 | $as_echo_n "(cached) " >&6 | ||
| 12250 | else | ||
| 12251 | ac_check_lib_save_LIBS=$LIBS | ||
| 12252 | LIBS="-lpng -lz -lm $LIBS" | ||
| 12253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12254 | /* end confdefs.h. */ | ||
| 12255 | |||
| 12256 | /* Override any GCC internal prototype to avoid an error. | ||
| 12257 | Use char because int might match the return type of a GCC | ||
| 12258 | builtin and then its argument prototype would still apply. */ | ||
| 12259 | #ifdef __cplusplus | ||
| 12260 | extern "C" | ||
| 12261 | #endif | ||
| 12262 | char png_get_channels (); | ||
| 12263 | int | ||
| 12264 | main () | ||
| 12265 | { | ||
| 12266 | return png_get_channels (); | ||
| 12267 | ; | ||
| 12268 | return 0; | ||
| 12269 | } | ||
| 12270 | _ACEOF | ||
| 12271 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12272 | ac_cv_lib_png_png_get_channels=yes | ||
| 12273 | else | ||
| 12274 | ac_cv_lib_png_png_get_channels=no | ||
| 12275 | fi | ||
| 12276 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12277 | conftest$ac_exeext conftest.$ac_ext | ||
| 12278 | LIBS=$ac_check_lib_save_LIBS | ||
| 12279 | fi | ||
| 12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 | ||
| 12281 | $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } | ||
| 12282 | if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : | ||
| 12283 | HAVE_PNG=yes | ||
| 12284 | fi | ||
| 12285 | |||
| 12286 | fi | ||
| 12287 | fi | ||
| 12288 | |||
| 12289 | if test "${HAVE_PNG}" = "yes"; then | ||
| 12290 | |||
| 12291 | $as_echo "#define HAVE_PNG 1" >>confdefs.h | ||
| 12292 | |||
| 12293 | LIBPNG="-lpng -lz -lm" | ||
| 12294 | fi | ||
| 12295 | fi | ||
| 12296 | |||
| 12297 | |||
| 12298 | ### Use -ltiff if available, unless `--with-tiff=no'. | ||
| 12299 | HAVE_TIFF=no | ||
| 12300 | LIBTIFF= | ||
| 12301 | if test "${HAVE_X11}" = "yes"; then | ||
| 12302 | if test "${with_tiff}" != "no"; then | ||
| 12303 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" | ||
| 12304 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : | ||
| 12305 | tifflibs="-lz -lm" | ||
| 12306 | # At least one tiff package requires the jpeg library. | ||
| 12307 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | ||
| 12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 | ||
| 12309 | $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } | ||
| 12310 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : | ||
| 12311 | $as_echo_n "(cached) " >&6 | ||
| 12312 | else | ||
| 12313 | ac_check_lib_save_LIBS=$LIBS | ||
| 12314 | LIBS="-ltiff $tifflibs $LIBS" | ||
| 12315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12316 | /* end confdefs.h. */ | ||
| 12317 | |||
| 12318 | /* Override any GCC internal prototype to avoid an error. | ||
| 12319 | Use char because int might match the return type of a GCC | ||
| 12320 | builtin and then its argument prototype would still apply. */ | ||
| 12321 | #ifdef __cplusplus | ||
| 12322 | extern "C" | ||
| 12323 | #endif | ||
| 12324 | char TIFFGetVersion (); | ||
| 12325 | int | ||
| 12326 | main () | ||
| 12327 | { | ||
| 12328 | return TIFFGetVersion (); | ||
| 12329 | ; | ||
| 12330 | return 0; | ||
| 12331 | } | ||
| 12332 | _ACEOF | ||
| 12333 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12334 | ac_cv_lib_tiff_TIFFGetVersion=yes | ||
| 12335 | else | ||
| 12336 | ac_cv_lib_tiff_TIFFGetVersion=no | ||
| 12337 | fi | ||
| 12338 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12339 | conftest$ac_exeext conftest.$ac_ext | ||
| 12340 | LIBS=$ac_check_lib_save_LIBS | ||
| 12341 | fi | ||
| 12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 | ||
| 12343 | $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | ||
| 12344 | if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : | ||
| 12345 | HAVE_TIFF=yes | ||
| 12346 | fi | ||
| 12347 | |||
| 12348 | fi | ||
| 12349 | |||
| 12350 | |||
| 12351 | fi | ||
| 12352 | |||
| 12353 | if test "${HAVE_TIFF}" = "yes"; then | ||
| 12354 | |||
| 12355 | $as_echo "#define HAVE_TIFF 1" >>confdefs.h | ||
| 12356 | |||
| 12357 | LIBTIFF=-ltiff | ||
| 12358 | fi | ||
| 12359 | fi | ||
| 12360 | |||
| 12361 | |||
| 12362 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. | ||
| 12363 | HAVE_GIF=no | ||
| 12364 | LIBGIF= | ||
| 12365 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then | ||
| 12366 | ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" | ||
| 12367 | if test "x$ac_cv_header_gif_lib_h" = x""yes; then : | ||
| 12368 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | ||
| 12369 | # Earlier versions can crash Emacs. | ||
| 12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 | ||
| 12371 | $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } | ||
| 12372 | if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : | ||
| 12373 | $as_echo_n "(cached) " >&6 | ||
| 12374 | else | ||
| 12375 | ac_check_lib_save_LIBS=$LIBS | ||
| 12376 | LIBS="-lgif $LIBS" | ||
| 12377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12378 | /* end confdefs.h. */ | ||
| 12379 | |||
| 12380 | /* Override any GCC internal prototype to avoid an error. | ||
| 12381 | Use char because int might match the return type of a GCC | ||
| 12382 | builtin and then its argument prototype would still apply. */ | ||
| 12383 | #ifdef __cplusplus | ||
| 12384 | extern "C" | ||
| 12385 | #endif | ||
| 12386 | char EGifPutExtensionLast (); | ||
| 12387 | int | ||
| 12388 | main () | ||
| 12389 | { | ||
| 12390 | return EGifPutExtensionLast (); | ||
| 12391 | ; | ||
| 12392 | return 0; | ||
| 12393 | } | ||
| 12394 | _ACEOF | ||
| 12395 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12396 | ac_cv_lib_gif_EGifPutExtensionLast=yes | ||
| 12397 | else | ||
| 12398 | ac_cv_lib_gif_EGifPutExtensionLast=no | ||
| 12399 | fi | ||
| 12400 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12401 | conftest$ac_exeext conftest.$ac_ext | ||
| 12402 | LIBS=$ac_check_lib_save_LIBS | ||
| 12403 | fi | ||
| 12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 | ||
| 12405 | $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | ||
| 12406 | if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : | ||
| 12407 | HAVE_GIF=yes | ||
| 12408 | else | ||
| 12409 | HAVE_GIF=maybe | ||
| 12410 | fi | ||
| 12411 | |||
| 12412 | fi | ||
| 12413 | |||
| 12414 | |||
| 12415 | |||
| 12416 | if test "$HAVE_GIF" = yes; then | ||
| 12417 | LIBGIF=-lgif | ||
| 12418 | elif test "$HAVE_GIF" = maybe; then | ||
| 12419 | # If gif_lib.h but no libgif, try libungif. | ||
| 12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 | ||
| 12421 | $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } | ||
| 12422 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : | ||
| 12423 | $as_echo_n "(cached) " >&6 | ||
| 12424 | else | ||
| 12425 | ac_check_lib_save_LIBS=$LIBS | ||
| 12426 | LIBS="-lungif $LIBS" | ||
| 12427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12428 | /* end confdefs.h. */ | ||
| 12429 | |||
| 12430 | /* Override any GCC internal prototype to avoid an error. | ||
| 12431 | Use char because int might match the return type of a GCC | ||
| 12432 | builtin and then its argument prototype would still apply. */ | ||
| 12433 | #ifdef __cplusplus | ||
| 12434 | extern "C" | ||
| 12435 | #endif | ||
| 12436 | char EGifPutExtensionLast (); | ||
| 12437 | int | ||
| 12438 | main () | ||
| 12439 | { | ||
| 12440 | return EGifPutExtensionLast (); | ||
| 12441 | ; | ||
| 12442 | return 0; | ||
| 12443 | } | ||
| 12444 | _ACEOF | ||
| 12445 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12446 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | ||
| 12447 | else | ||
| 12448 | ac_cv_lib_ungif_EGifPutExtensionLast=no | ||
| 12449 | fi | ||
| 12450 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12451 | conftest$ac_exeext conftest.$ac_ext | ||
| 12452 | LIBS=$ac_check_lib_save_LIBS | ||
| 12453 | fi | ||
| 12454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 | ||
| 12455 | $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | ||
| 12456 | if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : | ||
| 12457 | HAVE_GIF=yes | ||
| 12458 | else | ||
| 12459 | HAVE_GIF=no | ||
| 12460 | fi | ||
| 12461 | |||
| 12462 | test "$HAVE_GIF" = yes && LIBGIF=-lungif | ||
| 12463 | fi | ||
| 12464 | |||
| 12465 | if test "${HAVE_GIF}" = "yes"; then | ||
| 12466 | |||
| 12467 | $as_echo "#define HAVE_GIF 1" >>confdefs.h | ||
| 12468 | |||
| 12469 | fi | ||
| 12470 | fi | ||
| 12471 | |||
| 12472 | |||
| 12473 | if test "${HAVE_X11}" = "yes"; then | ||
| 12474 | MISSING="" | ||
| 12475 | WITH_NO="" | ||
| 12476 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && | ||
| 12477 | MISSING="libXpm" && WITH_NO="--with-xpm=no" | ||
| 12478 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && | ||
| 12479 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" | ||
| 12480 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && | ||
| 12481 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" | ||
| 12482 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && | ||
| 12483 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | ||
| 12484 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | ||
| 12485 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | ||
| 12486 | |||
| 12487 | if test "X${MISSING}" != X; then | ||
| 12488 | as_fn_error "The following required libraries were not found: | ||
| 12489 | $MISSING | ||
| 12490 | Maybe some development libraries/packages are missing? | ||
| 12491 | If you don't want to link with them give | ||
| 12492 | $WITH_NO | ||
| 12493 | as options to configure" "$LINENO" 5 | ||
| 12494 | fi | ||
| 12495 | fi | ||
| 12496 | |||
| 12497 | ### Use -lgpm if available, unless `--with-gpm=no'. | ||
| 12498 | HAVE_GPM=no | ||
| 12499 | LIBGPM= | ||
| 12500 | MOUSE_SUPPORT= | ||
| 12501 | if test "${with_gpm}" != "no"; then | ||
| 12502 | ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" | ||
| 12503 | if test "x$ac_cv_header_gpm_h" = x""yes; then : | ||
| 12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 | ||
| 12505 | $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } | ||
| 12506 | if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : | ||
| 12507 | $as_echo_n "(cached) " >&6 | ||
| 12508 | else | ||
| 12509 | ac_check_lib_save_LIBS=$LIBS | ||
| 12510 | LIBS="-lgpm $LIBS" | ||
| 12511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12512 | /* end confdefs.h. */ | ||
| 12513 | |||
| 12514 | /* Override any GCC internal prototype to avoid an error. | ||
| 12515 | Use char because int might match the return type of a GCC | ||
| 12516 | builtin and then its argument prototype would still apply. */ | ||
| 12517 | #ifdef __cplusplus | ||
| 12518 | extern "C" | ||
| 12519 | #endif | ||
| 12520 | char Gpm_Open (); | ||
| 12521 | int | ||
| 12522 | main () | ||
| 12523 | { | ||
| 12524 | return Gpm_Open (); | ||
| 12525 | ; | ||
| 12526 | return 0; | ||
| 12527 | } | ||
| 12528 | _ACEOF | ||
| 12529 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12530 | ac_cv_lib_gpm_Gpm_Open=yes | ||
| 12531 | else | ||
| 12532 | ac_cv_lib_gpm_Gpm_Open=no | ||
| 12533 | fi | ||
| 12534 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12535 | conftest$ac_exeext conftest.$ac_ext | ||
| 12536 | LIBS=$ac_check_lib_save_LIBS | ||
| 12537 | fi | ||
| 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | ||
| 12539 | $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } | ||
| 12540 | if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : | ||
| 12541 | HAVE_GPM=yes | ||
| 12542 | fi | ||
| 12543 | |||
| 12544 | fi | ||
| 12545 | |||
| 12546 | |||
| 12547 | |||
| 12548 | if test "${HAVE_GPM}" = "yes"; then | ||
| 12549 | |||
| 12550 | $as_echo "#define HAVE_GPM 1" >>confdefs.h | ||
| 12551 | |||
| 12552 | LIBGPM=-lgpm | ||
| 12553 | ## May be reset below. | ||
| 12554 | MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)" | ||
| 12555 | fi | ||
| 12556 | fi | ||
| 12557 | |||
| 12558 | |||
| 12559 | ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" | ||
| 12560 | if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : | ||
| 12561 | |||
| 12562 | $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h | ||
| 12563 | |||
| 12564 | fi | ||
| 12565 | |||
| 12566 | |||
| 12567 | |||
| 12568 | C_SWITCH_X_SYSTEM= | ||
| 12569 | ### Use NeXTstep API to implement GUI. | ||
| 12570 | if test "${HAVE_NS}" = "yes"; then | ||
| 12571 | |||
| 12572 | $as_echo "#define HAVE_NS 1" >>confdefs.h | ||
| 12573 | |||
| 12574 | if test "${NS_IMPL_COCOA}" = "yes"; then | ||
| 12575 | |||
| 12576 | $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h | ||
| 12577 | |||
| 12578 | GNU_OBJC_CFLAGS= | ||
| 12579 | fi | ||
| 12580 | if test "${NS_IMPL_GNUSTEP}" = "yes"; then | ||
| 12581 | |||
| 12582 | $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h | ||
| 12583 | |||
| 12584 | # See also .m.o rule in Makefile.in */ | ||
| 12585 | # FIXME: are all these flags really needed? Document here why. */ | ||
| 12586 | C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" | ||
| 12587 | GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" | ||
| 12588 | fi | ||
| 12589 | if test "${NS_HAVE_NSINTEGER}" = "yes"; then | ||
| 12590 | |||
| 12591 | $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h | ||
| 12592 | |||
| 12593 | fi | ||
| 12594 | # We also have mouse menus. | ||
| 12595 | HAVE_MENUS=yes | ||
| 12596 | OTHER_FILES=ns-app | ||
| 12597 | fi | ||
| 12598 | |||
| 12599 | |||
| 12600 | ### Use session management (-lSM -lICE) if available | ||
| 12601 | HAVE_X_SM=no | ||
| 12602 | LIBXSM= | ||
| 12603 | if test "${HAVE_X11}" = "yes"; then | ||
| 12604 | ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" | ||
| 12605 | if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : | ||
| 12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 | ||
| 12607 | $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } | ||
| 12608 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : | ||
| 12609 | $as_echo_n "(cached) " >&6 | ||
| 12610 | else | ||
| 12611 | ac_check_lib_save_LIBS=$LIBS | ||
| 12612 | LIBS="-lSM -lICE $LIBS" | ||
| 12613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12614 | /* end confdefs.h. */ | ||
| 12615 | |||
| 12616 | /* Override any GCC internal prototype to avoid an error. | ||
| 12617 | Use char because int might match the return type of a GCC | ||
| 12618 | builtin and then its argument prototype would still apply. */ | ||
| 12619 | #ifdef __cplusplus | ||
| 12620 | extern "C" | ||
| 12621 | #endif | ||
| 12622 | char SmcOpenConnection (); | ||
| 12623 | int | ||
| 12624 | main () | ||
| 12625 | { | ||
| 12626 | return SmcOpenConnection (); | ||
| 12627 | ; | ||
| 12628 | return 0; | ||
| 12629 | } | ||
| 12630 | _ACEOF | ||
| 12631 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12632 | ac_cv_lib_SM_SmcOpenConnection=yes | ||
| 12633 | else | ||
| 12634 | ac_cv_lib_SM_SmcOpenConnection=no | ||
| 12635 | fi | ||
| 12636 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12637 | conftest$ac_exeext conftest.$ac_ext | ||
| 12638 | LIBS=$ac_check_lib_save_LIBS | ||
| 12639 | fi | ||
| 12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 | ||
| 12641 | $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } | ||
| 12642 | if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : | ||
| 12643 | HAVE_X_SM=yes | ||
| 12644 | fi | ||
| 12645 | |||
| 12646 | fi | ||
| 12647 | |||
| 12648 | |||
| 12649 | |||
| 12650 | if test "${HAVE_X_SM}" = "yes"; then | ||
| 12651 | |||
| 12652 | $as_echo "#define HAVE_X_SM 1" >>confdefs.h | ||
| 12653 | |||
| 12654 | LIBXSM="-lSM -lICE" | ||
| 12655 | case "$LIBS" in | ||
| 12656 | *-lSM*) ;; | ||
| 12657 | *) LIBS="$LIBXSM $LIBS" ;; | ||
| 12658 | esac | ||
| 12659 | fi | ||
| 12660 | fi | ||
| 12661 | |||
| 12662 | |||
| 12663 | ### Use libxml (-lxml2) if available | ||
| 12664 | if test "${with_xml2}" != "no"; then | ||
| 12665 | ### I'm not sure what the version number should be, so I just guessed. | ||
| 12666 | |||
| 12667 | succeeded=no | ||
| 12668 | |||
| 12669 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
| 12670 | set dummy pkg-config; ac_word=$2 | ||
| 12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 12672 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 12673 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
| 12674 | $as_echo_n "(cached) " >&6 | ||
| 12675 | else | ||
| 12676 | case $PKG_CONFIG in | ||
| 12677 | [\\/]* | ?:[\\/]*) | ||
| 12678 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
| 12679 | ;; | ||
| 12680 | *) | ||
| 12681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 12682 | for as_dir in $PATH | ||
| 12683 | do | ||
| 12684 | IFS=$as_save_IFS | ||
| 12685 | test -z "$as_dir" && as_dir=. | ||
| 12686 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 12687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 12688 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
| 12689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 12690 | break 2 | ||
| 12691 | fi | ||
| 12692 | done | ||
| 12693 | done | ||
| 12694 | IFS=$as_save_IFS | ||
| 12695 | |||
| 12696 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
| 12697 | ;; | ||
| 12698 | esac | ||
| 12699 | fi | ||
| 12700 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
| 12701 | if test -n "$PKG_CONFIG"; then | ||
| 12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
| 12703 | $as_echo "$PKG_CONFIG" >&6; } | ||
| 12704 | else | ||
| 12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 12706 | $as_echo "no" >&6; } | ||
| 12707 | fi | ||
| 12708 | |||
| 12709 | |||
| 12710 | |||
| 12711 | if test "$PKG_CONFIG" = "no" ; then | ||
| 12712 | HAVE_LIBXML2=no | ||
| 12713 | else | ||
| 12714 | PKG_CONFIG_MIN_VERSION=0.9.0 | ||
| 12715 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | ||
| 12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5 | ||
| 12717 | $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; } | ||
| 12718 | |||
| 12719 | if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then | ||
| 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 12721 | $as_echo "yes" >&6; } | ||
| 12722 | succeeded=yes | ||
| 12723 | |||
| 12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5 | ||
| 12725 | $as_echo_n "checking LIBXML2_CFLAGS... " >&6; } | ||
| 12726 | LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'` | ||
| 12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5 | ||
| 12728 | $as_echo "$LIBXML2_CFLAGS" >&6; } | ||
| 12729 | |||
| 12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5 | ||
| 12731 | $as_echo_n "checking LIBXML2_LIBS... " >&6; } | ||
| 12732 | LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'` | ||
| 12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5 | ||
| 12734 | $as_echo "$LIBXML2_LIBS" >&6; } | ||
| 12735 | else | ||
| 12736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 12737 | $as_echo "no" >&6; } | ||
| 12738 | LIBXML2_CFLAGS="" | ||
| 12739 | LIBXML2_LIBS="" | ||
| 12740 | ## If we have a custom action on failure, don't print errors, but | ||
| 12741 | ## do set a variable so people can do so. | ||
| 12742 | LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"` | ||
| 12743 | |||
| 12744 | fi | ||
| 12745 | |||
| 12746 | |||
| 12747 | |||
| 12748 | else | ||
| 12749 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | ||
| 12750 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | ||
| 12751 | fi | ||
| 12752 | fi | ||
| 12753 | |||
| 12754 | if test $succeeded = yes; then | ||
| 12755 | HAVE_LIBXML2=yes | ||
| 12756 | else | ||
| 12757 | HAVE_LIBXML2=no | ||
| 12758 | fi | ||
| 12759 | |||
| 12760 | if test "${HAVE_LIBXML2}" = "yes"; then | ||
| 12761 | LIBS="$LIBXML2_LIBS $LIBS" | ||
| 12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5 | ||
| 12763 | $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; } | ||
| 12764 | if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then : | ||
| 12765 | $as_echo_n "(cached) " >&6 | ||
| 12766 | else | ||
| 12767 | ac_check_lib_save_LIBS=$LIBS | ||
| 12768 | LIBS="-lxml2 $LIBS" | ||
| 12769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12770 | /* end confdefs.h. */ | ||
| 12771 | |||
| 12772 | /* Override any GCC internal prototype to avoid an error. | ||
| 12773 | Use char because int might match the return type of a GCC | ||
| 12774 | builtin and then its argument prototype would still apply. */ | ||
| 12775 | #ifdef __cplusplus | ||
| 12776 | extern "C" | ||
| 12777 | #endif | ||
| 12778 | char htmlReadMemory (); | ||
| 12779 | int | ||
| 12780 | main () | ||
| 12781 | { | ||
| 12782 | return htmlReadMemory (); | ||
| 12783 | ; | ||
| 12784 | return 0; | ||
| 12785 | } | ||
| 12786 | _ACEOF | ||
| 12787 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12788 | ac_cv_lib_xml2_htmlReadMemory=yes | ||
| 12789 | else | ||
| 12790 | ac_cv_lib_xml2_htmlReadMemory=no | ||
| 12791 | fi | ||
| 12792 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12793 | conftest$ac_exeext conftest.$ac_ext | ||
| 12794 | LIBS=$ac_check_lib_save_LIBS | ||
| 12795 | fi | ||
| 12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5 | ||
| 12797 | $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; } | ||
| 12798 | if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then : | ||
| 12799 | HAVE_LIBXML2=yes | ||
| 12800 | else | ||
| 12801 | HAVE_LIBXML2=no | ||
| 12802 | fi | ||
| 12803 | |||
| 12804 | if test "${HAVE_LIBXML2}" = "yes"; then | ||
| 12805 | |||
| 12806 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h | ||
| 12807 | |||
| 12808 | else | ||
| 12809 | LIBXML2_LIBS="" | ||
| 12810 | LIBXML2_CFLAGS="" | ||
| 12811 | fi | ||
| 12812 | fi | ||
| 12813 | fi | ||
| 12814 | |||
| 12815 | |||
| 12816 | |||
| 12817 | # If netdb.h doesn't declare h_errno, we must declare it by hand. | ||
| 12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 | ||
| 12819 | $as_echo_n "checking whether netdb declares h_errno... " >&6; } | ||
| 12820 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : | ||
| 12821 | $as_echo_n "(cached) " >&6 | ||
| 12822 | else | ||
| 12823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12824 | /* end confdefs.h. */ | ||
| 12825 | #include <netdb.h> | ||
| 12826 | int | ||
| 12827 | main () | ||
| 12828 | { | ||
| 12829 | return h_errno; | ||
| 12830 | ; | ||
| 12831 | return 0; | ||
| 12832 | } | ||
| 12833 | _ACEOF | ||
| 12834 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12835 | emacs_cv_netdb_declares_h_errno=yes | ||
| 12836 | else | ||
| 12837 | emacs_cv_netdb_declares_h_errno=no | ||
| 12838 | fi | ||
| 12839 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12840 | conftest$ac_exeext conftest.$ac_ext | ||
| 12841 | fi | ||
| 12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 | ||
| 12843 | $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } | ||
| 12844 | if test $emacs_cv_netdb_declares_h_errno = yes; then | ||
| 12845 | |||
| 12846 | $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h | ||
| 12847 | |||
| 12848 | fi | ||
| 12849 | |||
| 12850 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
| 12851 | # for constant arguments. Useless! | ||
| 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
| 12853 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
| 12854 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
| 12855 | $as_echo_n "(cached) " >&6 | ||
| 12856 | else | ||
| 12857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12858 | /* end confdefs.h. */ | ||
| 12859 | #include <alloca.h> | ||
| 12860 | int | ||
| 12861 | main () | ||
| 12862 | { | ||
| 12863 | char *p = (char *) alloca (2 * sizeof (int)); | ||
| 12864 | if (p) return 0; | ||
| 12865 | ; | ||
| 12866 | return 0; | ||
| 12867 | } | ||
| 12868 | _ACEOF | ||
| 12869 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12870 | ac_cv_working_alloca_h=yes | ||
| 12871 | else | ||
| 12872 | ac_cv_working_alloca_h=no | ||
| 12873 | fi | ||
| 12874 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12875 | conftest$ac_exeext conftest.$ac_ext | ||
| 12876 | fi | ||
| 12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
| 12878 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
| 12879 | if test $ac_cv_working_alloca_h = yes; then | ||
| 12880 | |||
| 12881 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
| 12882 | |||
| 12883 | fi | ||
| 12884 | |||
| 12885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
| 12886 | $as_echo_n "checking for alloca... " >&6; } | ||
| 12887 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
| 12888 | $as_echo_n "(cached) " >&6 | ||
| 12889 | else | ||
| 12890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12891 | /* end confdefs.h. */ | ||
| 12892 | #ifdef __GNUC__ | ||
| 12893 | # define alloca __builtin_alloca | ||
| 12894 | #else | ||
| 12895 | # ifdef _MSC_VER | ||
| 12896 | # include <malloc.h> | ||
| 12897 | # define alloca _alloca | ||
| 12898 | # else | ||
| 12899 | # ifdef HAVE_ALLOCA_H | ||
| 12900 | # include <alloca.h> | ||
| 12901 | # else | ||
| 12902 | # ifdef _AIX | ||
| 12903 | #pragma alloca | ||
| 12904 | # else | ||
| 12905 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
| 12906 | char *alloca (); | ||
| 12907 | # endif | ||
| 12908 | # endif | ||
| 12909 | # endif | ||
| 12910 | # endif | ||
| 12911 | #endif | ||
| 12912 | |||
| 12913 | int | ||
| 12914 | main () | ||
| 12915 | { | ||
| 12916 | char *p = (char *) alloca (1); | ||
| 12917 | if (p) return 0; | ||
| 12918 | ; | ||
| 12919 | return 0; | ||
| 12920 | } | ||
| 12921 | _ACEOF | ||
| 12922 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 12923 | ac_cv_func_alloca_works=yes | ||
| 12924 | else | ||
| 12925 | ac_cv_func_alloca_works=no | ||
| 12926 | fi | ||
| 12927 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 12928 | conftest$ac_exeext conftest.$ac_ext | ||
| 12929 | fi | ||
| 12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
| 12931 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
| 12932 | |||
| 12933 | if test $ac_cv_func_alloca_works = yes; then | ||
| 12934 | |||
| 12935 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
| 12936 | |||
| 12937 | else | ||
| 12938 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
| 12939 | # that cause trouble. Some versions do not even contain alloca or | ||
| 12940 | # contain a buggy version. If you still want to use their alloca, | ||
| 12941 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
| 12942 | |||
| 12943 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
| 12944 | |||
| 12945 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
| 12946 | |||
| 12947 | |||
| 12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
| 12949 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
| 12950 | if test "${ac_cv_os_cray+set}" = set; then : | ||
| 12951 | $as_echo_n "(cached) " >&6 | ||
| 12952 | else | ||
| 12953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12954 | /* end confdefs.h. */ | ||
| 12955 | #if defined CRAY && ! defined CRAY2 | ||
| 12956 | webecray | ||
| 12957 | #else | ||
| 12958 | wenotbecray | ||
| 12959 | #endif | ||
| 12960 | |||
| 12961 | _ACEOF | ||
| 12962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 12963 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
| 12964 | ac_cv_os_cray=yes | ||
| 12965 | else | ||
| 12966 | ac_cv_os_cray=no | ||
| 12967 | fi | ||
| 12968 | rm -f conftest* | ||
| 12969 | |||
| 12970 | fi | ||
| 12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
| 12972 | $as_echo "$ac_cv_os_cray" >&6; } | ||
| 12973 | if test $ac_cv_os_cray = yes; then | ||
| 12974 | for ac_func in _getb67 GETB67 getb67; do | ||
| 12975 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
| 12976 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
| 12977 | eval as_val=\$$as_ac_var | ||
| 12978 | if test "x$as_val" = x""yes; then : | ||
| 12979 | |||
| 12980 | cat >>confdefs.h <<_ACEOF | ||
| 12981 | #define CRAY_STACKSEG_END $ac_func | ||
| 12982 | _ACEOF | ||
| 12983 | |||
| 12984 | break | ||
| 12985 | fi | ||
| 12986 | |||
| 12987 | done | ||
| 12988 | fi | ||
| 12989 | |||
| 12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
| 12991 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
| 12992 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
| 12993 | $as_echo_n "(cached) " >&6 | ||
| 12994 | else | ||
| 12995 | if test "$cross_compiling" = yes; then : | ||
| 12996 | ac_cv_c_stack_direction=0 | ||
| 12997 | else | ||
| 12998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 12999 | /* end confdefs.h. */ | ||
| 13000 | $ac_includes_default | ||
| 13001 | int | ||
| 13002 | find_stack_direction () | ||
| 13003 | { | ||
| 13004 | static char *addr = 0; | ||
| 13005 | auto char dummy; | ||
| 13006 | if (addr == 0) | ||
| 13007 | { | ||
| 13008 | addr = &dummy; | ||
| 13009 | return find_stack_direction (); | ||
| 13010 | } | ||
| 13011 | else | ||
| 13012 | return (&dummy > addr) ? 1 : -1; | ||
| 13013 | } | ||
| 13014 | |||
| 13015 | int | ||
| 13016 | main () | ||
| 13017 | { | ||
| 13018 | return find_stack_direction () < 0; | ||
| 13019 | } | ||
| 13020 | _ACEOF | ||
| 13021 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 13022 | ac_cv_c_stack_direction=1 | ||
| 13023 | else | ||
| 13024 | ac_cv_c_stack_direction=-1 | ||
| 13025 | fi | ||
| 13026 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 13027 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 13028 | fi | ||
| 13029 | |||
| 13030 | fi | ||
| 13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
| 13032 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
| 13033 | cat >>confdefs.h <<_ACEOF | ||
| 13034 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
| 13035 | _ACEOF | ||
| 13036 | |||
| 13037 | |||
| 13038 | fi | ||
| 13039 | |||
| 13040 | |||
| 13041 | if test x"$ac_cv_func_alloca_works" != xyes; then | ||
| 13042 | as_fn_error "a system implementation of alloca is required " "$LINENO" 5 | ||
| 13043 | fi | ||
| 13044 | |||
| 13045 | # fmod, logb, and frexp are found in -lm on most systems. | ||
| 13046 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | ||
| 13047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 | ||
| 13048 | $as_echo_n "checking for sqrt in -lm... " >&6; } | ||
| 13049 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : | ||
| 13050 | $as_echo_n "(cached) " >&6 | ||
| 13051 | else | ||
| 13052 | ac_check_lib_save_LIBS=$LIBS | ||
| 13053 | LIBS="-lm $LIBS" | ||
| 13054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13055 | /* end confdefs.h. */ | ||
| 13056 | |||
| 13057 | /* Override any GCC internal prototype to avoid an error. | ||
| 13058 | Use char because int might match the return type of a GCC | ||
| 13059 | builtin and then its argument prototype would still apply. */ | ||
| 13060 | #ifdef __cplusplus | ||
| 13061 | extern "C" | ||
| 13062 | #endif | ||
| 13063 | char sqrt (); | ||
| 13064 | int | ||
| 13065 | main () | ||
| 13066 | { | ||
| 13067 | return sqrt (); | ||
| 13068 | ; | ||
| 13069 | return 0; | ||
| 13070 | } | ||
| 13071 | _ACEOF | ||
| 13072 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 13073 | ac_cv_lib_m_sqrt=yes | ||
| 13074 | else | ||
| 13075 | ac_cv_lib_m_sqrt=no | ||
| 13076 | fi | ||
| 13077 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 13078 | conftest$ac_exeext conftest.$ac_ext | ||
| 13079 | LIBS=$ac_check_lib_save_LIBS | ||
| 13080 | fi | ||
| 13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 | ||
| 13082 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | ||
| 13083 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : | ||
| 13084 | cat >>confdefs.h <<_ACEOF | ||
| 13085 | #define HAVE_LIBM 1 | ||
| 13086 | _ACEOF | ||
| 13087 | |||
| 13088 | LIBS="-lm $LIBS" | ||
| 13089 | |||
| 13090 | fi | ||
| 13091 | |||
| 13092 | |||
| 13093 | # Check for mail-locking functions in a "mail" library. Probably this should | ||
| 13094 | # have the same check as for liblockfile below. | ||
| 13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 | ||
| 13096 | $as_echo_n "checking for maillock in -lmail... " >&6; } | ||
| 13097 | if test "${ac_cv_lib_mail_maillock+set}" = set; then : | ||
| 13098 | $as_echo_n "(cached) " >&6 | ||
| 13099 | else | ||
| 13100 | ac_check_lib_save_LIBS=$LIBS | ||
| 13101 | LIBS="-lmail $LIBS" | ||
| 13102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13103 | /* end confdefs.h. */ | ||
| 13104 | |||
| 13105 | /* Override any GCC internal prototype to avoid an error. | ||
| 13106 | Use char because int might match the return type of a GCC | ||
| 13107 | builtin and then its argument prototype would still apply. */ | ||
| 13108 | #ifdef __cplusplus | ||
| 13109 | extern "C" | ||
| 13110 | #endif | ||
| 13111 | char maillock (); | ||
| 13112 | int | ||
| 13113 | main () | ||
| 13114 | { | ||
| 13115 | return maillock (); | ||
| 13116 | ; | ||
| 13117 | return 0; | ||
| 13118 | } | ||
| 13119 | _ACEOF | ||
| 13120 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 13121 | ac_cv_lib_mail_maillock=yes | ||
| 13122 | else | ||
| 13123 | ac_cv_lib_mail_maillock=no | ||
| 13124 | fi | ||
| 13125 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 13126 | conftest$ac_exeext conftest.$ac_ext | ||
| 13127 | LIBS=$ac_check_lib_save_LIBS | ||
| 13128 | fi | ||
| 13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 | ||
| 13130 | $as_echo "$ac_cv_lib_mail_maillock" >&6; } | ||
| 13131 | if test "x$ac_cv_lib_mail_maillock" = x""yes; then : | ||
| 13132 | have_mail=yes | ||
| 13133 | else | ||
| 13134 | have_mail=no | ||
| 13135 | fi | ||
| 13136 | |||
| 13137 | if test $have_mail = yes; then | ||
| 13138 | LIBS_MAIL=-lmail | ||
| 13139 | LIBS="$LIBS_MAIL $LIBS" | ||
| 13140 | |||
| 13141 | $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h | ||
| 13142 | |||
| 13143 | else | ||
| 13144 | LIBS_MAIL= | ||
| 13145 | fi | ||
| 13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 | ||
| 13147 | $as_echo_n "checking for maillock in -llockfile... " >&6; } | ||
| 13148 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : | ||
| 13149 | $as_echo_n "(cached) " >&6 | ||
| 13150 | else | ||
| 13151 | ac_check_lib_save_LIBS=$LIBS | ||
| 13152 | LIBS="-llockfile $LIBS" | ||
| 13153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13154 | /* end confdefs.h. */ | ||
| 13155 | |||
| 13156 | /* Override any GCC internal prototype to avoid an error. | ||
| 13157 | Use char because int might match the return type of a GCC | ||
| 13158 | builtin and then its argument prototype would still apply. */ | ||
| 13159 | #ifdef __cplusplus | ||
| 13160 | extern "C" | ||
| 13161 | #endif | ||
| 13162 | char maillock (); | ||
| 13163 | int | ||
| 13164 | main () | ||
| 13165 | { | ||
| 13166 | return maillock (); | ||
| 13167 | ; | ||
| 13168 | return 0; | ||
| 13169 | } | ||
| 13170 | _ACEOF | ||
| 13171 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 13172 | ac_cv_lib_lockfile_maillock=yes | ||
| 13173 | else | ||
| 13174 | ac_cv_lib_lockfile_maillock=no | ||
| 13175 | fi | ||
| 13176 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 13177 | conftest$ac_exeext conftest.$ac_ext | ||
| 13178 | LIBS=$ac_check_lib_save_LIBS | ||
| 13179 | fi | ||
| 13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 | ||
| 13181 | $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } | ||
| 13182 | if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : | ||
| 13183 | have_lockfile=yes | ||
| 13184 | else | ||
| 13185 | have_lockfile=no | ||
| 13186 | fi | ||
| 13187 | |||
| 13188 | if test $have_lockfile = yes; then | ||
| 13189 | LIBS_MAIL=-llockfile | ||
| 13190 | LIBS="$LIBS_MAIL $LIBS" | ||
| 13191 | |||
| 13192 | $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h | ||
| 13193 | |||
| 13194 | else | ||
| 13195 | # If we have the shared liblockfile, assume we must use it for mail | ||
| 13196 | # locking (e.g. Debian). If we couldn't link against liblockfile | ||
| 13197 | # (no liblockfile.a installed), ensure that we don't need to. | ||
| 13198 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | ||
| 13199 | set dummy liblockfile.so; ac_word=$2 | ||
| 13200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 13201 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 13202 | if test "${ac_cv_prog_liblockfile+set}" = set; then : | ||
| 13203 | $as_echo_n "(cached) " >&6 | ||
| 13204 | else | ||
| 13205 | if test -n "$liblockfile"; then | ||
| 13206 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | ||
| 13207 | else | ||
| 13208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 13209 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | ||
| 13210 | for as_dir in $as_dummy | ||
| 13211 | do | ||
| 13212 | IFS=$as_save_IFS | ||
| 13213 | test -z "$as_dir" && as_dir=. | ||
| 13214 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 13215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
| 13216 | ac_cv_prog_liblockfile="yes" | ||
| 13217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 13218 | break 2 | ||
| 13219 | fi | ||
| 13220 | done | ||
| 13221 | done | ||
| 13222 | IFS=$as_save_IFS | ||
| 13223 | |||
| 13224 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | ||
| 13225 | fi | ||
| 13226 | fi | ||
| 13227 | liblockfile=$ac_cv_prog_liblockfile | ||
| 13228 | if test -n "$liblockfile"; then | ||
| 13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 | ||
| 13230 | $as_echo "$liblockfile" >&6; } | ||
| 13231 | else | ||
| 13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 13233 | $as_echo "no" >&6; } | ||
| 13234 | fi | ||
| 13235 | |||
| 13236 | |||
| 13237 | if test $ac_cv_prog_liblockfile = yes; then | ||
| 13238 | as_fn_error "Shared liblockfile found but can't link against it. | ||
| 13239 | This probably means that movemail could lose mail. | ||
| 13240 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 | ||
| 13241 | fi | ||
| 13242 | fi | ||
| 13243 | for ac_func in touchlock | ||
| 13244 | do : | ||
| 13245 | ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" | ||
| 13246 | if test "x$ac_cv_func_touchlock" = x""yes; then : | ||
| 13247 | cat >>confdefs.h <<_ACEOF | ||
| 13248 | #define HAVE_TOUCHLOCK 1 | ||
| 13249 | _ACEOF | ||
| 13250 | |||
| 13251 | fi | ||
| 13252 | done | ||
| 13253 | |||
| 13254 | for ac_header in maillock.h | ||
| 13255 | do : | ||
| 13256 | ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" | ||
| 13257 | if test "x$ac_cv_header_maillock_h" = x""yes; then : | ||
| 13258 | cat >>confdefs.h <<_ACEOF | ||
| 13259 | #define HAVE_MAILLOCK_H 1 | ||
| 13260 | _ACEOF | ||
| 13261 | |||
| 13262 | fi | ||
| 13263 | |||
| 13264 | done | ||
| 13265 | |||
| 13266 | |||
| 13267 | |||
| 13268 | ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to | ||
| 13269 | ## interlock access to the mail spool. The alternative is a lock file named | ||
| 13270 | ## /usr/spool/mail/$USER.lock. | ||
| 13271 | mail_lock=no | ||
| 13272 | case "$opsys" in | ||
| 13273 | aix4-2) mail_lock="lockf" ;; | ||
| 13274 | |||
| 13275 | gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; | ||
| 13276 | |||
| 13277 | ## On GNU/Linux systems, both methods are used by various mail programs. | ||
| 13278 | ## I assume most people are using newer mailers that have heard of flock. | ||
| 13279 | ## Change this if you need to. | ||
| 13280 | ## Debian contains a patch which says: ``On Debian/GNU/Linux systems, | ||
| 13281 | ## configure gets the right answers, and that means *NOT* using flock. | ||
| 13282 | ## Using flock is guaranteed to be the wrong thing. See Debian Policy | ||
| 13283 | ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the | ||
| 13284 | ## Debian maintainer hasn't provided a clean fix for Emacs. | ||
| 13285 | ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and | ||
| 13286 | ## HAVE_MAILLOCK_H are defined, so the following appears to be the | ||
| 13287 | ## correct logic. -- fx | ||
| 13288 | ## We must check for HAVE_LIBLOCKFILE too, as movemail does. | ||
| 13289 | ## liblockfile is a Free Software replacement for libmail, used on | ||
| 13290 | ## Debian systems and elsewhere. -rfr. | ||
| 13291 | gnu-*) | ||
| 13292 | mail_lock="flock" | ||
| 13293 | if test $have_mail = yes || test $have_lockfile = yes; then | ||
| 13294 | test $ac_cv_header_maillock_h = yes && mail_lock=no | ||
| 13295 | fi | ||
| 13296 | ;; | ||
| 13297 | esac | ||
| 13298 | |||
| 13299 | BLESSMAIL_TARGET= | ||
| 13300 | case "$mail_lock" in | ||
| 13301 | flock) | ||
| 13302 | $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h | ||
| 13303 | ;; | ||
| 13304 | |||
| 13305 | lockf) | ||
| 13306 | $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h | ||
| 13307 | ;; | ||
| 13308 | |||
| 13309 | *) BLESSMAIL_TARGET="need-blessmail" ;; | ||
| 13310 | esac | ||
| 13311 | |||
| 13312 | |||
| 13313 | |||
| 13314 | for ac_func in gethostname getdomainname dup2 \ | ||
| 13315 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | ||
| 13316 | random lrand48 logb frexp fmod rint cbrt ftime setsid \ | ||
| 13317 | strerror fpathconf select euidaccess getpagesize tzset setlocale \ | ||
| 13318 | utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \ | ||
| 13319 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \ | ||
| 13320 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | ||
| 13321 | gai_strerror mkstemp getline getdelim mremap memmove fsync sync \ | ||
| 13322 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ | ||
| 13323 | cfmakeraw cfsetspeed isnan copysign __executable_start | ||
| 13324 | do : | ||
| 13325 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
| 13326 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
| 13327 | eval as_val=\$$as_ac_var | ||
| 13328 | if test "x$as_val" = x""yes; then : | ||
| 13329 | cat >>confdefs.h <<_ACEOF | ||
| 13330 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 13331 | _ACEOF | ||
| 13332 | |||
| 13333 | fi | ||
| 13334 | done | ||
| 13335 | |||
| 13336 | |||
| 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5 | ||
| 13338 | $as_echo_n "checking for __builtin_unwind_init... " >&6; } | ||
| 13339 | if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then : | ||
| 13340 | $as_echo_n "(cached) " >&6 | ||
| 13341 | else | ||
| 13342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13343 | /* end confdefs.h. */ | ||
| 13344 | |||
| 13345 | int | ||
| 13346 | main () | ||
| 13347 | { | ||
| 13348 | __builtin_unwind_init (); | ||
| 13349 | ; | ||
| 13350 | return 0; | ||
| 13351 | } | ||
| 13352 | _ACEOF | ||
| 13353 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 13354 | emacs_cv_func___builtin_unwind_init=yes | ||
| 13355 | else | ||
| 13356 | emacs_cv_func___builtin_unwind_init=no | ||
| 13357 | fi | ||
| 13358 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 13359 | conftest$ac_exeext conftest.$ac_ext | ||
| 13360 | fi | ||
| 13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5 | ||
| 13362 | $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; } | ||
| 13363 | if test $emacs_cv_func___builtin_unwind_init = yes; then | ||
| 13364 | |||
| 13365 | $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h | ||
| 13366 | |||
| 13367 | fi | ||
| 13368 | |||
| 13369 | for ac_header in sys/un.h | ||
| 13370 | do : | ||
| 13371 | ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" | ||
| 13372 | if test "x$ac_cv_header_sys_un_h" = x""yes; then : | ||
| 13373 | cat >>confdefs.h <<_ACEOF | ||
| 13374 | #define HAVE_SYS_UN_H 1 | ||
| 13375 | _ACEOF | ||
| 13376 | |||
| 13377 | fi | ||
| 13378 | |||
| 13379 | done | ||
| 13380 | |||
| 13381 | |||
| 13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | ||
| 13383 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | ||
| 13384 | if test "${ac_cv_sys_largefile_source+set}" = set; then : | ||
| 13385 | $as_echo_n "(cached) " >&6 | ||
| 13386 | else | ||
| 13387 | while :; do | ||
| 13388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13389 | /* end confdefs.h. */ | ||
| 13390 | #include <sys/types.h> /* for off_t */ | ||
| 13391 | #include <stdio.h> | ||
| 13392 | int | ||
| 13393 | main () | ||
| 13394 | { | ||
| 13395 | int (*fp) (FILE *, off_t, int) = fseeko; | ||
| 13396 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | ||
| 13397 | ; | ||
| 13398 | return 0; | ||
| 13399 | } | ||
| 13400 | _ACEOF | ||
| 13401 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 13402 | ac_cv_sys_largefile_source=no; break | ||
| 13403 | fi | ||
| 13404 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 13405 | conftest$ac_exeext conftest.$ac_ext | ||
| 13406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13407 | /* end confdefs.h. */ | ||
| 13408 | #define _LARGEFILE_SOURCE 1 | ||
| 13409 | #include <sys/types.h> /* for off_t */ | ||
| 13410 | #include <stdio.h> | ||
| 13411 | int | ||
| 13412 | main () | ||
| 13413 | { | ||
| 13414 | int (*fp) (FILE *, off_t, int) = fseeko; | ||
| 13415 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | ||
| 13416 | ; | ||
| 13417 | return 0; | ||
| 13418 | } | ||
| 13419 | _ACEOF | ||
| 13420 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 13421 | ac_cv_sys_largefile_source=1; break | ||
| 13422 | fi | ||
| 13423 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 13424 | conftest$ac_exeext conftest.$ac_ext | ||
| 13425 | ac_cv_sys_largefile_source=unknown | ||
| 13426 | break | ||
| 13427 | done | ||
| 13428 | fi | ||
| 13429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 | ||
| 13430 | $as_echo "$ac_cv_sys_largefile_source" >&6; } | ||
| 13431 | case $ac_cv_sys_largefile_source in #( | ||
| 13432 | no | unknown) ;; | ||
| 13433 | *) | ||
| 13434 | cat >>confdefs.h <<_ACEOF | ||
| 13435 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | ||
| 13436 | _ACEOF | ||
| 13437 | ;; | ||
| 13438 | esac | ||
| 13439 | rm -rf conftest* | ||
| 13440 | |||
| 13441 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | ||
| 13442 | # in glibc 2.1.3, but that breaks too many other things. | ||
| 13443 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | ||
| 13444 | if test $ac_cv_sys_largefile_source != unknown; then | ||
| 13445 | |||
| 13446 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h | ||
| 13447 | |||
| 13448 | fi | ||
| 13449 | |||
| 13450 | |||
| 13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | ||
| 13452 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | ||
| 13453 | if test "${ac_cv_func_getpgrp_void+set}" = set; then : | ||
| 13454 | $as_echo_n "(cached) " >&6 | ||
| 13455 | else | ||
| 13456 | # Use it with a single arg. | ||
| 13457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13458 | /* end confdefs.h. */ | ||
| 13459 | $ac_includes_default | ||
| 13460 | int | ||
| 13461 | main () | ||
| 13462 | { | ||
| 13463 | getpgrp (0); | ||
| 13464 | ; | ||
| 13465 | return 0; | ||
| 13466 | } | ||
| 13467 | _ACEOF | ||
| 13468 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13469 | ac_cv_func_getpgrp_void=no | ||
| 13470 | else | ||
| 13471 | ac_cv_func_getpgrp_void=yes | ||
| 13472 | fi | ||
| 13473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13474 | |||
| 13475 | fi | ||
| 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | ||
| 13477 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
| 13478 | if test $ac_cv_func_getpgrp_void = yes; then | ||
| 13479 | |||
| 13480 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
| 13481 | |||
| 13482 | fi | ||
| 13483 | |||
| 13484 | |||
| 13485 | # Configure gnulib. | ||
| 13486 | |||
| 13487 | |||
| 13488 | |||
| 13489 | |||
| 13490 | |||
| 13491 | |||
| 13492 | |||
| 13493 | |||
| 13494 | |||
| 13495 | |||
| 13496 | LIBC_FATAL_STDERR_=1 | ||
| 13497 | export LIBC_FATAL_STDERR_ | ||
| 13498 | |||
| 13499 | |||
| 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
| 13501 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
| 13502 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
| 13503 | $as_echo_n "(cached) " >&6 | ||
| 13504 | else | ||
| 13505 | ac_cv_c_bigendian=unknown | ||
| 13506 | # See if we're dealing with a universal compiler. | ||
| 13507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13508 | /* end confdefs.h. */ | ||
| 13509 | #ifndef __APPLE_CC__ | ||
| 13510 | not a universal capable compiler | ||
| 13511 | #endif | ||
| 13512 | typedef int dummy; | ||
| 13513 | |||
| 13514 | _ACEOF | ||
| 13515 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13516 | |||
| 13517 | # Check for potential -arch flags. It is not universal unless | ||
| 13518 | # there are at least two -arch flags with different values. | ||
| 13519 | ac_arch= | ||
| 13520 | ac_prev= | ||
| 13521 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
| 13522 | if test -n "$ac_prev"; then | ||
| 13523 | case $ac_word in | ||
| 13524 | i?86 | x86_64 | ppc | ppc64) | ||
| 13525 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
| 13526 | ac_arch=$ac_word | ||
| 13527 | else | ||
| 13528 | ac_cv_c_bigendian=universal | ||
| 13529 | break | ||
| 13530 | fi | ||
| 13531 | ;; | ||
| 13532 | esac | ||
| 13533 | ac_prev= | ||
| 13534 | elif test "x$ac_word" = "x-arch"; then | ||
| 13535 | ac_prev=arch | ||
| 13536 | fi | ||
| 13537 | done | ||
| 13538 | fi | ||
| 13539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13540 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13541 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
| 13542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13543 | /* end confdefs.h. */ | ||
| 13544 | #include <sys/types.h> | ||
| 13545 | #include <sys/param.h> | ||
| 13546 | |||
| 13547 | int | ||
| 13548 | main () | ||
| 13549 | { | ||
| 13550 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
| 13551 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
| 13552 | && LITTLE_ENDIAN) | ||
| 13553 | bogus endian macros | ||
| 13554 | #endif | ||
| 13555 | |||
| 13556 | ; | ||
| 13557 | return 0; | ||
| 13558 | } | ||
| 13559 | _ACEOF | ||
| 13560 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13561 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
| 13562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13563 | /* end confdefs.h. */ | ||
| 13564 | #include <sys/types.h> | ||
| 13565 | #include <sys/param.h> | ||
| 13566 | |||
| 13567 | int | ||
| 13568 | main () | ||
| 13569 | { | ||
| 13570 | #if BYTE_ORDER != BIG_ENDIAN | ||
| 13571 | not big endian | ||
| 13572 | #endif | ||
| 13573 | |||
| 13574 | ; | ||
| 13575 | return 0; | ||
| 13576 | } | ||
| 13577 | _ACEOF | ||
| 13578 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13579 | ac_cv_c_bigendian=yes | ||
| 13580 | else | ||
| 13581 | ac_cv_c_bigendian=no | ||
| 13582 | fi | ||
| 13583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13584 | fi | ||
| 13585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13586 | fi | ||
| 13587 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13588 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
| 13589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13590 | /* end confdefs.h. */ | ||
| 13591 | #include <limits.h> | ||
| 13592 | |||
| 13593 | int | ||
| 13594 | main () | ||
| 13595 | { | ||
| 13596 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
| 13597 | bogus endian macros | ||
| 13598 | #endif | ||
| 13599 | |||
| 13600 | ; | ||
| 13601 | return 0; | ||
| 13602 | } | ||
| 13603 | _ACEOF | ||
| 13604 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13605 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
| 13606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13607 | /* end confdefs.h. */ | ||
| 13608 | #include <limits.h> | ||
| 13609 | |||
| 13610 | int | ||
| 13611 | main () | ||
| 13612 | { | ||
| 13613 | #ifndef _BIG_ENDIAN | ||
| 13614 | not big endian | ||
| 13615 | #endif | ||
| 13616 | |||
| 13617 | ; | ||
| 13618 | return 0; | ||
| 13619 | } | ||
| 13620 | _ACEOF | ||
| 13621 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13622 | ac_cv_c_bigendian=yes | ||
| 13623 | else | ||
| 13624 | ac_cv_c_bigendian=no | ||
| 13625 | fi | ||
| 13626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13627 | fi | ||
| 13628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13629 | fi | ||
| 13630 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13631 | # Compile a test program. | ||
| 13632 | if test "$cross_compiling" = yes; then : | ||
| 13633 | # Try to guess by grepping values from an object file. | ||
| 13634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13635 | /* end confdefs.h. */ | ||
| 13636 | short int ascii_mm[] = | ||
| 13637 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
| 13638 | short int ascii_ii[] = | ||
| 13639 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
| 13640 | int use_ascii (int i) { | ||
| 13641 | return ascii_mm[i] + ascii_ii[i]; | ||
| 13642 | } | ||
| 13643 | short int ebcdic_ii[] = | ||
| 13644 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
| 13645 | short int ebcdic_mm[] = | ||
| 13646 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
| 13647 | int use_ebcdic (int i) { | ||
| 13648 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
| 13649 | } | ||
| 13650 | extern int foo; | ||
| 13651 | |||
| 13652 | int | ||
| 13653 | main () | ||
| 13654 | { | ||
| 13655 | return use_ascii (foo) == use_ebcdic (foo); | ||
| 13656 | ; | ||
| 13657 | return 0; | ||
| 13658 | } | ||
| 13659 | _ACEOF | ||
| 13660 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13661 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
| 13662 | ac_cv_c_bigendian=yes | ||
| 13663 | fi | ||
| 13664 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
| 13665 | if test "$ac_cv_c_bigendian" = unknown; then | ||
| 13666 | ac_cv_c_bigendian=no | ||
| 13667 | else | ||
| 13668 | # finding both strings is unlikely to happen, but who knows? | ||
| 13669 | ac_cv_c_bigendian=unknown | ||
| 13670 | fi | ||
| 13671 | fi | ||
| 13672 | fi | ||
| 13673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13674 | else | ||
| 13675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13676 | /* end confdefs.h. */ | ||
| 13677 | $ac_includes_default | ||
| 13678 | int | ||
| 13679 | main () | ||
| 13680 | { | ||
| 13681 | |||
| 13682 | /* Are we little or big endian? From Harbison&Steele. */ | ||
| 13683 | union | ||
| 13684 | { | ||
| 13685 | long int l; | ||
| 13686 | char c[sizeof (long int)]; | ||
| 13687 | } u; | ||
| 13688 | u.l = 1; | ||
| 13689 | return u.c[sizeof (long int) - 1] == 1; | ||
| 13690 | |||
| 13691 | ; | ||
| 13692 | return 0; | ||
| 13693 | } | ||
| 13694 | _ACEOF | ||
| 13695 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 13696 | ac_cv_c_bigendian=no | ||
| 13697 | else | ||
| 13698 | ac_cv_c_bigendian=yes | ||
| 13699 | fi | ||
| 13700 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 13701 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 13702 | fi | ||
| 13703 | |||
| 13704 | fi | ||
| 13705 | fi | ||
| 13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
| 13707 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
| 13708 | case $ac_cv_c_bigendian in #( | ||
| 13709 | yes) | ||
| 13710 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
| 13711 | ;; #( | ||
| 13712 | no) | ||
| 13713 | ;; #( | ||
| 13714 | universal) | ||
| 13715 | |||
| 13716 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
| 13717 | |||
| 13718 | ;; #( | ||
| 13719 | *) | ||
| 13720 | as_fn_error "unknown endianness | ||
| 13721 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
| 13722 | esac | ||
| 13723 | |||
| 13724 | |||
| 13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
| 13726 | $as_echo_n "checking for inline... " >&6; } | ||
| 13727 | if test "${ac_cv_c_inline+set}" = set; then : | ||
| 13728 | $as_echo_n "(cached) " >&6 | ||
| 13729 | else | ||
| 13730 | ac_cv_c_inline=no | ||
| 13731 | for ac_kw in inline __inline__ __inline; do | ||
| 13732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13733 | /* end confdefs.h. */ | ||
| 13734 | #ifndef __cplusplus | ||
| 13735 | typedef int foo_t; | ||
| 13736 | static $ac_kw foo_t static_foo () {return 0; } | ||
| 13737 | $ac_kw foo_t foo () {return 0; } | ||
| 13738 | #endif | ||
| 13739 | |||
| 13740 | _ACEOF | ||
| 13741 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13742 | ac_cv_c_inline=$ac_kw | ||
| 13743 | fi | ||
| 13744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13745 | test "$ac_cv_c_inline" != no && break | ||
| 13746 | done | ||
| 13747 | |||
| 13748 | fi | ||
| 13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
| 13750 | $as_echo "$ac_cv_c_inline" >&6; } | ||
| 13751 | |||
| 13752 | case $ac_cv_c_inline in | ||
| 13753 | inline | yes) ;; | ||
| 13754 | *) | ||
| 13755 | case $ac_cv_c_inline in | ||
| 13756 | no) ac_val=;; | ||
| 13757 | *) ac_val=$ac_cv_c_inline;; | ||
| 13758 | esac | ||
| 13759 | cat >>confdefs.h <<_ACEOF | ||
| 13760 | #ifndef __cplusplus | ||
| 13761 | #define inline $ac_val | ||
| 13762 | #endif | ||
| 13763 | _ACEOF | ||
| 13764 | ;; | ||
| 13765 | esac | ||
| 13766 | |||
| 13767 | |||
| 13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 | ||
| 13769 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } | ||
| 13770 | if test "${gl_cv_func_c99_strtold+set}" = set; then : | ||
| 13771 | $as_echo_n "(cached) " >&6 | ||
| 13772 | else | ||
| 13773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13774 | /* end confdefs.h. */ | ||
| 13775 | /* On HP-UX before 11.23, strtold returns a struct instead of | ||
| 13776 | long double. Reject implementations like that, by requiring | ||
| 13777 | compatibility with the C99 prototype. */ | ||
| 13778 | #include <stdlib.h> | ||
| 13779 | static long double (*p) (char const *, char **) = strtold; | ||
| 13780 | static long double | ||
| 13781 | test (char const *nptr, char **endptr) | ||
| 13782 | { | ||
| 13783 | long double r; | ||
| 13784 | r = strtold (nptr, endptr); | ||
| 13785 | return r; | ||
| 13786 | } | ||
| 13787 | int | ||
| 13788 | main () | ||
| 13789 | { | ||
| 13790 | return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1; | ||
| 13791 | ; | ||
| 13792 | return 0; | ||
| 13793 | } | ||
| 13794 | _ACEOF | ||
| 13795 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 13796 | gl_cv_func_c99_strtold=yes | ||
| 13797 | else | ||
| 13798 | gl_cv_func_c99_strtold=no | ||
| 13799 | fi | ||
| 13800 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 13801 | conftest$ac_exeext conftest.$ac_ext | ||
| 13802 | fi | ||
| 13803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5 | ||
| 13804 | $as_echo "$gl_cv_func_c99_strtold" >&6; } | ||
| 13805 | if test $gl_cv_func_c99_strtold = yes; then | ||
| 13806 | |||
| 13807 | $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h | ||
| 13808 | |||
| 13809 | fi | ||
| 13810 | |||
| 13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 | ||
| 13812 | $as_echo_n "checking for st_dm_mode in struct stat... " >&6; } | ||
| 13813 | if test "${ac_cv_struct_st_dm_mode+set}" = set; then : | ||
| 13814 | $as_echo_n "(cached) " >&6 | ||
| 13815 | else | ||
| 13816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13817 | /* end confdefs.h. */ | ||
| 13818 | |||
| 13819 | #include <sys/types.h> | ||
| 13820 | #include <sys/stat.h> | ||
| 13821 | int | ||
| 13822 | main () | ||
| 13823 | { | ||
| 13824 | struct stat s; s.st_dm_mode; | ||
| 13825 | ; | ||
| 13826 | return 0; | ||
| 13827 | } | ||
| 13828 | _ACEOF | ||
| 13829 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13830 | ac_cv_struct_st_dm_mode=yes | ||
| 13831 | else | ||
| 13832 | ac_cv_struct_st_dm_mode=no | ||
| 13833 | fi | ||
| 13834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13835 | fi | ||
| 13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5 | ||
| 13837 | $as_echo "$ac_cv_struct_st_dm_mode" >&6; } | ||
| 13838 | |||
| 13839 | if test $ac_cv_struct_st_dm_mode = yes; then | ||
| 13840 | |||
| 13841 | $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h | ||
| 13842 | |||
| 13843 | fi | ||
| 13844 | |||
| 13845 | |||
| 13846 | ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default" | ||
| 13847 | if test "x$ac_cv_have_decl_strmode" = x""yes; then : | ||
| 13848 | ac_have_decl=1 | ||
| 13849 | else | ||
| 13850 | ac_have_decl=0 | ||
| 13851 | fi | ||
| 13852 | |||
| 13853 | cat >>confdefs.h <<_ACEOF | ||
| 13854 | #define HAVE_DECL_STRMODE $ac_have_decl | ||
| 13855 | _ACEOF | ||
| 13856 | |||
| 13857 | |||
| 13858 | GNULIB__EXIT=0; | ||
| 13859 | GNULIB_ATOLL=0; | ||
| 13860 | GNULIB_CALLOC_POSIX=0; | ||
| 13861 | GNULIB_CANONICALIZE_FILE_NAME=0; | ||
| 13862 | GNULIB_GETLOADAVG=0; | ||
| 13863 | GNULIB_GETSUBOPT=0; | ||
| 13864 | GNULIB_GRANTPT=0; | ||
| 13865 | GNULIB_MALLOC_POSIX=0; | ||
| 13866 | GNULIB_MBTOWC=0; | ||
| 13867 | GNULIB_MKDTEMP=0; | ||
| 13868 | GNULIB_MKOSTEMP=0; | ||
| 13869 | GNULIB_MKOSTEMPS=0; | ||
| 13870 | GNULIB_MKSTEMP=0; | ||
| 13871 | GNULIB_MKSTEMPS=0; | ||
| 13872 | GNULIB_PTSNAME=0; | ||
| 13873 | GNULIB_PUTENV=0; | ||
| 13874 | GNULIB_RANDOM_R=0; | ||
| 13875 | GNULIB_REALLOC_POSIX=0; | ||
| 13876 | GNULIB_REALPATH=0; | ||
| 13877 | GNULIB_RPMATCH=0; | ||
| 13878 | GNULIB_SETENV=0; | ||
| 13879 | GNULIB_STRTOD=0; | ||
| 13880 | GNULIB_STRTOLL=0; | ||
| 13881 | GNULIB_STRTOULL=0; | ||
| 13882 | GNULIB_SYSTEM_POSIX=0; | ||
| 13883 | GNULIB_UNLOCKPT=0; | ||
| 13884 | GNULIB_UNSETENV=0; | ||
| 13885 | GNULIB_WCTOMB=0; | ||
| 13886 | HAVE__EXIT=1; | ||
| 13887 | HAVE_ATOLL=1; | ||
| 13888 | HAVE_CANONICALIZE_FILE_NAME=1; | ||
| 13889 | HAVE_DECL_GETLOADAVG=1; | ||
| 13890 | HAVE_GETSUBOPT=1; | ||
| 13891 | HAVE_GRANTPT=1; | ||
| 13892 | HAVE_MKDTEMP=1; | ||
| 13893 | HAVE_MKOSTEMP=1; | ||
| 13894 | HAVE_MKOSTEMPS=1; | ||
| 13895 | HAVE_MKSTEMP=1; | ||
| 13896 | HAVE_MKSTEMPS=1; | ||
| 13897 | HAVE_PTSNAME=1; | ||
| 13898 | HAVE_RANDOM_H=1; | ||
| 13899 | HAVE_RANDOM_R=1; | ||
| 13900 | HAVE_REALPATH=1; | ||
| 13901 | HAVE_RPMATCH=1; | ||
| 13902 | HAVE_SETENV=1; | ||
| 13903 | HAVE_DECL_SETENV=1; | ||
| 13904 | HAVE_STRTOD=1; | ||
| 13905 | HAVE_STRTOLL=1; | ||
| 13906 | HAVE_STRTOULL=1; | ||
| 13907 | HAVE_STRUCT_RANDOM_DATA=1; | ||
| 13908 | HAVE_SYS_LOADAVG_H=0; | ||
| 13909 | HAVE_UNLOCKPT=1; | ||
| 13910 | HAVE_DECL_UNSETENV=1; | ||
| 13911 | REPLACE_CALLOC=0; | ||
| 13912 | REPLACE_CANONICALIZE_FILE_NAME=0; | ||
| 13913 | REPLACE_MALLOC=0; | ||
| 13914 | REPLACE_MBTOWC=0; | ||
| 13915 | REPLACE_MKSTEMP=0; | ||
| 13916 | REPLACE_PUTENV=0; | ||
| 13917 | REPLACE_REALLOC=0; | ||
| 13918 | REPLACE_REALPATH=0; | ||
| 13919 | REPLACE_SETENV=0; | ||
| 13920 | REPLACE_STRTOD=0; | ||
| 13921 | REPLACE_UNSETENV=0; | ||
| 13922 | REPLACE_WCTOMB=0; | ||
| 13923 | |||
| 13924 | |||
| 13925 | GNULIB_CHOWN=0; | ||
| 13926 | GNULIB_CLOSE=0; | ||
| 13927 | GNULIB_DUP2=0; | ||
| 13928 | GNULIB_DUP3=0; | ||
| 13929 | GNULIB_ENVIRON=0; | ||
| 13930 | GNULIB_EUIDACCESS=0; | ||
| 13931 | GNULIB_FACCESSAT=0; | ||
| 13932 | GNULIB_FCHDIR=0; | ||
| 13933 | GNULIB_FCHOWNAT=0; | ||
| 13934 | GNULIB_FSYNC=0; | ||
| 13935 | GNULIB_FTRUNCATE=0; | ||
| 13936 | GNULIB_GETCWD=0; | ||
| 13937 | GNULIB_GETDOMAINNAME=0; | ||
| 13938 | GNULIB_GETDTABLESIZE=0; | ||
| 13939 | GNULIB_GETGROUPS=0; | ||
| 13940 | GNULIB_GETHOSTNAME=0; | ||
| 13941 | GNULIB_GETLOGIN=0; | ||
| 13942 | GNULIB_GETLOGIN_R=0; | ||
| 13943 | GNULIB_GETPAGESIZE=0; | ||
| 13944 | GNULIB_GETUSERSHELL=0; | ||
| 13945 | GNULIB_LCHOWN=0; | ||
| 13946 | GNULIB_LINK=0; | ||
| 13947 | GNULIB_LINKAT=0; | ||
| 13948 | GNULIB_LSEEK=0; | ||
| 13949 | GNULIB_PIPE=0; | ||
| 13950 | GNULIB_PIPE2=0; | ||
| 13951 | GNULIB_PREAD=0; | ||
| 13952 | GNULIB_PWRITE=0; | ||
| 13953 | GNULIB_READLINK=0; | ||
| 13954 | GNULIB_READLINKAT=0; | ||
| 13955 | GNULIB_RMDIR=0; | ||
| 13956 | GNULIB_SLEEP=0; | ||
| 13957 | GNULIB_SYMLINK=0; | ||
| 13958 | GNULIB_SYMLINKAT=0; | ||
| 13959 | GNULIB_TTYNAME_R=0; | ||
| 13960 | GNULIB_UNISTD_H_GETOPT=0; | ||
| 13961 | GNULIB_UNISTD_H_SIGPIPE=0; | ||
| 13962 | GNULIB_UNLINK=0; | ||
| 13963 | GNULIB_UNLINKAT=0; | ||
| 13964 | GNULIB_USLEEP=0; | ||
| 13965 | GNULIB_WRITE=0; | ||
| 13966 | HAVE_CHOWN=1; | ||
| 13967 | HAVE_DUP2=1; | ||
| 13968 | HAVE_DUP3=1; | ||
| 13969 | HAVE_EUIDACCESS=1; | ||
| 13970 | HAVE_FACCESSAT=1; | ||
| 13971 | HAVE_FCHDIR=1; | ||
| 13972 | HAVE_FCHOWNAT=1; | ||
| 13973 | HAVE_FSYNC=1; | ||
| 13974 | HAVE_FTRUNCATE=1; | ||
| 13975 | HAVE_GETDTABLESIZE=1; | ||
| 13976 | HAVE_GETGROUPS=1; | ||
| 13977 | HAVE_GETHOSTNAME=1; | ||
| 13978 | HAVE_GETLOGIN=1; | ||
| 13979 | HAVE_GETPAGESIZE=1; | ||
| 13980 | HAVE_LCHOWN=1; | ||
| 13981 | HAVE_LINK=1; | ||
| 13982 | HAVE_LINKAT=1; | ||
| 13983 | HAVE_PIPE=1; | ||
| 13984 | HAVE_PIPE2=1; | ||
| 13985 | HAVE_PREAD=1; | ||
| 13986 | HAVE_PWRITE=1; | ||
| 13987 | HAVE_READLINK=1; | ||
| 13988 | HAVE_READLINKAT=1; | ||
| 13989 | HAVE_SLEEP=1; | ||
| 13990 | HAVE_SYMLINK=1; | ||
| 13991 | HAVE_SYMLINKAT=1; | ||
| 13992 | HAVE_UNLINKAT=1; | ||
| 13993 | HAVE_USLEEP=1; | ||
| 13994 | HAVE_DECL_ENVIRON=1; | ||
| 13995 | HAVE_DECL_FCHDIR=1; | ||
| 13996 | HAVE_DECL_GETDOMAINNAME=1; | ||
| 13997 | HAVE_DECL_GETLOGIN_R=1; | ||
| 13998 | HAVE_DECL_GETPAGESIZE=1; | ||
| 13999 | HAVE_DECL_GETUSERSHELL=1; | ||
| 14000 | HAVE_DECL_TTYNAME_R=1; | ||
| 14001 | HAVE_OS_H=0; | ||
| 14002 | HAVE_SYS_PARAM_H=0; | ||
| 14003 | REPLACE_CHOWN=0; | ||
| 14004 | REPLACE_CLOSE=0; | ||
| 14005 | REPLACE_DUP=0; | ||
| 14006 | REPLACE_DUP2=0; | ||
| 14007 | REPLACE_FCHOWNAT=0; | ||
| 14008 | REPLACE_GETCWD=0; | ||
| 14009 | REPLACE_GETDOMAINNAME=0; | ||
| 14010 | REPLACE_GETLOGIN_R=0; | ||
| 14011 | REPLACE_GETGROUPS=0; | ||
| 14012 | REPLACE_GETPAGESIZE=0; | ||
| 14013 | REPLACE_LCHOWN=0; | ||
| 14014 | REPLACE_LINK=0; | ||
| 14015 | REPLACE_LINKAT=0; | ||
| 14016 | REPLACE_LSEEK=0; | ||
| 14017 | REPLACE_PREAD=0; | ||
| 14018 | REPLACE_PWRITE=0; | ||
| 14019 | REPLACE_READLINK=0; | ||
| 14020 | REPLACE_RMDIR=0; | ||
| 14021 | REPLACE_SLEEP=0; | ||
| 14022 | REPLACE_SYMLINK=0; | ||
| 14023 | REPLACE_TTYNAME_R=0; | ||
| 14024 | REPLACE_UNLINK=0; | ||
| 14025 | REPLACE_UNLINKAT=0; | ||
| 14026 | REPLACE_USLEEP=0; | ||
| 14027 | REPLACE_WRITE=0; | ||
| 14028 | UNISTD_H_HAVE_WINSOCK2_H=0; | ||
| 14029 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; | ||
| 14030 | |||
| 14031 | |||
| 14032 | |||
| 14033 | |||
| 14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 | ||
| 14035 | $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } | ||
| 14036 | if test "${gl_cv_have_include_next+set}" = set; then : | ||
| 14037 | $as_echo_n "(cached) " >&6 | ||
| 14038 | else | ||
| 14039 | rm -rf conftestd1a conftestd1b conftestd2 | ||
| 14040 | mkdir conftestd1a conftestd1b conftestd2 | ||
| 14041 | cat <<EOF > conftestd1a/conftest.h | ||
| 14042 | #define DEFINED_IN_CONFTESTD1 | ||
| 14043 | #include_next <conftest.h> | ||
| 14044 | #ifdef DEFINED_IN_CONFTESTD2 | ||
| 14045 | int foo; | ||
| 14046 | #else | ||
| 14047 | #error "include_next doesn't work" | ||
| 14048 | #endif | ||
| 14049 | EOF | ||
| 14050 | cat <<EOF > conftestd1b/conftest.h | ||
| 14051 | #define DEFINED_IN_CONFTESTD1 | ||
| 14052 | #include <stdio.h> | ||
| 14053 | #include_next <conftest.h> | ||
| 14054 | #ifdef DEFINED_IN_CONFTESTD2 | ||
| 14055 | int foo; | ||
| 14056 | #else | ||
| 14057 | #error "include_next doesn't work" | ||
| 14058 | #endif | ||
| 14059 | EOF | ||
| 14060 | cat <<EOF > conftestd2/conftest.h | ||
| 14061 | #ifndef DEFINED_IN_CONFTESTD1 | ||
| 14062 | #error "include_next test doesn't work" | ||
| 14063 | #endif | ||
| 14064 | #define DEFINED_IN_CONFTESTD2 | ||
| 14065 | EOF | ||
| 14066 | gl_save_CPPFLAGS="$CPPFLAGS" | ||
| 14067 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" | ||
| 14068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14069 | /* end confdefs.h. */ | ||
| 14070 | #include <conftest.h> | ||
| 14071 | _ACEOF | ||
| 14072 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14073 | gl_cv_have_include_next=yes | ||
| 14074 | else | ||
| 14075 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" | ||
| 14076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14077 | /* end confdefs.h. */ | ||
| 14078 | #include <conftest.h> | ||
| 14079 | _ACEOF | ||
| 14080 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14081 | gl_cv_have_include_next=buggy | ||
| 14082 | else | ||
| 14083 | gl_cv_have_include_next=no | ||
| 14084 | fi | ||
| 14085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14086 | |||
| 14087 | fi | ||
| 14088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14089 | CPPFLAGS="$gl_save_CPPFLAGS" | ||
| 14090 | rm -rf conftestd1a conftestd1b conftestd2 | ||
| 14091 | |||
| 14092 | fi | ||
| 14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 | ||
| 14094 | $as_echo "$gl_cv_have_include_next" >&6; } | ||
| 14095 | PRAGMA_SYSTEM_HEADER= | ||
| 14096 | if test $gl_cv_have_include_next = yes; then | ||
| 14097 | INCLUDE_NEXT=include_next | ||
| 14098 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | ||
| 14099 | if test -n "$GCC"; then | ||
| 14100 | PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' | ||
| 14101 | fi | ||
| 14102 | else | ||
| 14103 | if test $gl_cv_have_include_next = buggy; then | ||
| 14104 | INCLUDE_NEXT=include | ||
| 14105 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | ||
| 14106 | else | ||
| 14107 | INCLUDE_NEXT=include | ||
| 14108 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include | ||
| 14109 | fi | ||
| 14110 | fi | ||
| 14111 | |||
| 14112 | |||
| 14113 | |||
| 14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 | ||
| 14115 | $as_echo_n "checking whether system header files limit the line length... " >&6; } | ||
| 14116 | if test "${gl_cv_pragma_columns+set}" = set; then : | ||
| 14117 | $as_echo_n "(cached) " >&6 | ||
| 14118 | else | ||
| 14119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14120 | /* end confdefs.h. */ | ||
| 14121 | |||
| 14122 | #ifdef __TANDEM | ||
| 14123 | choke me | ||
| 14124 | #endif | ||
| 14125 | |||
| 14126 | _ACEOF | ||
| 14127 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 14128 | $EGREP "choke me" >/dev/null 2>&1; then : | ||
| 14129 | gl_cv_pragma_columns=yes | ||
| 14130 | else | ||
| 14131 | gl_cv_pragma_columns=no | ||
| 14132 | fi | ||
| 14133 | rm -f conftest* | ||
| 14134 | |||
| 14135 | |||
| 14136 | fi | ||
| 14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 | ||
| 14138 | $as_echo "$gl_cv_pragma_columns" >&6; } | ||
| 14139 | if test $gl_cv_pragma_columns = yes; then | ||
| 14140 | PRAGMA_COLUMNS="#pragma COLUMNS 10000" | ||
| 14141 | else | ||
| 14142 | PRAGMA_COLUMNS= | ||
| 14143 | fi | ||
| 14144 | |||
| 14145 | |||
| 14146 | |||
| 14147 | |||
| 14148 | |||
| 14149 | |||
| 14150 | |||
| 14151 | |||
| 14152 | |||
| 14153 | |||
| 14154 | |||
| 14155 | |||
| 14156 | |||
| 14157 | |||
| 14158 | |||
| 14159 | |||
| 14160 | |||
| 14161 | if test $gl_cv_have_include_next = yes; then | ||
| 14162 | gl_cv_next_getopt_h='<'getopt.h'>' | ||
| 14163 | else | ||
| 14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 | ||
| 14165 | $as_echo_n "checking absolute name of <getopt.h>... " >&6; } | ||
| 14166 | if test "${gl_cv_next_getopt_h+set}" = set; then : | ||
| 14167 | $as_echo_n "(cached) " >&6 | ||
| 14168 | else | ||
| 14169 | |||
| 14170 | if test $ac_cv_header_getopt_h = yes; then | ||
| 14171 | |||
| 14172 | |||
| 14173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14174 | /* end confdefs.h. */ | ||
| 14175 | #include <getopt.h> | ||
| 14176 | |||
| 14177 | _ACEOF | ||
| 14178 | case "$host_os" in | ||
| 14179 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 14180 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 14181 | esac | ||
| 14182 | gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 14183 | sed -n '\#/getopt.h#{ | ||
| 14184 | s#.*"\(.*/getopt.h\)".*#\1# | ||
| 14185 | s#^/[^/]#//&# | ||
| 14186 | p | ||
| 14187 | q | ||
| 14188 | }'`'"' | ||
| 14189 | else | ||
| 14190 | gl_cv_next_getopt_h='<'getopt.h'>' | ||
| 14191 | fi | ||
| 14192 | |||
| 14193 | |||
| 14194 | fi | ||
| 14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 | ||
| 14196 | $as_echo "$gl_cv_next_getopt_h" >&6; } | ||
| 14197 | fi | ||
| 14198 | NEXT_GETOPT_H=$gl_cv_next_getopt_h | ||
| 14199 | |||
| 14200 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 14201 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 14202 | gl_next_as_first_directive='<'getopt.h'>' | ||
| 14203 | else | ||
| 14204 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 14205 | gl_next_as_first_directive=$gl_cv_next_getopt_h | ||
| 14206 | fi | ||
| 14207 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive | ||
| 14208 | |||
| 14209 | |||
| 14210 | |||
| 14211 | |||
| 14212 | if test $ac_cv_header_getopt_h = yes; then | ||
| 14213 | HAVE_GETOPT_H=1 | ||
| 14214 | else | ||
| 14215 | HAVE_GETOPT_H=0 | ||
| 14216 | fi | ||
| 14217 | |||
| 14218 | |||
| 14219 | gl_replace_getopt= | ||
| 14220 | |||
| 14221 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | ||
| 14222 | for ac_header in getopt.h | ||
| 14223 | do : | ||
| 14224 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | ||
| 14225 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | ||
| 14226 | cat >>confdefs.h <<_ACEOF | ||
| 14227 | #define HAVE_GETOPT_H 1 | ||
| 14228 | _ACEOF | ||
| 14229 | |||
| 14230 | else | ||
| 14231 | gl_replace_getopt=yes | ||
| 14232 | fi | ||
| 14233 | |||
| 14234 | done | ||
| 14235 | |||
| 14236 | fi | ||
| 14237 | |||
| 14238 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | ||
| 14239 | for ac_func in getopt_long_only | ||
| 14240 | do : | ||
| 14241 | ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" | ||
| 14242 | if test "x$ac_cv_func_getopt_long_only" = x""yes; then : | ||
| 14243 | cat >>confdefs.h <<_ACEOF | ||
| 14244 | #define HAVE_GETOPT_LONG_ONLY 1 | ||
| 14245 | _ACEOF | ||
| 14246 | |||
| 14247 | else | ||
| 14248 | gl_replace_getopt=yes | ||
| 14249 | fi | ||
| 14250 | done | ||
| 14251 | |||
| 14252 | fi | ||
| 14253 | |||
| 14254 | if test -z "$gl_replace_getopt"; then | ||
| 14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 | ||
| 14256 | $as_echo_n "checking whether getopt is POSIX compatible... " >&6; } | ||
| 14257 | if test "${gl_cv_func_getopt_posix+set}" = set; then : | ||
| 14258 | $as_echo_n "(cached) " >&6 | ||
| 14259 | else | ||
| 14260 | |||
| 14261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14262 | /* end confdefs.h. */ | ||
| 14263 | #include <unistd.h> | ||
| 14264 | int | ||
| 14265 | main () | ||
| 14266 | { | ||
| 14267 | int *p = &optreset; return optreset; | ||
| 14268 | ; | ||
| 14269 | return 0; | ||
| 14270 | } | ||
| 14271 | _ACEOF | ||
| 14272 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14273 | gl_optind_min=1 | ||
| 14274 | else | ||
| 14275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14276 | /* end confdefs.h. */ | ||
| 14277 | #include <getopt.h> | ||
| 14278 | int | ||
| 14279 | main () | ||
| 14280 | { | ||
| 14281 | return !getopt_clip; | ||
| 14282 | ; | ||
| 14283 | return 0; | ||
| 14284 | } | ||
| 14285 | _ACEOF | ||
| 14286 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14287 | gl_optind_min=1 | ||
| 14288 | else | ||
| 14289 | gl_optind_min=0 | ||
| 14290 | fi | ||
| 14291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14292 | fi | ||
| 14293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14294 | |||
| 14295 | gl_save_CPPFLAGS=$CPPFLAGS | ||
| 14296 | CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min" | ||
| 14297 | if test "$cross_compiling" = yes; then : | ||
| 14298 | case "$host_os" in | ||
| 14299 | mingw*) gl_cv_func_getopt_posix="guessing no";; | ||
| 14300 | darwin* | aix*) gl_cv_func_getopt_posix="guessing no";; | ||
| 14301 | *) gl_cv_func_getopt_posix="guessing yes";; | ||
| 14302 | esac | ||
| 14303 | |||
| 14304 | else | ||
| 14305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14306 | /* end confdefs.h. */ | ||
| 14307 | |||
| 14308 | #include <unistd.h> | ||
| 14309 | #include <stdlib.h> | ||
| 14310 | #include <string.h> | ||
| 14311 | |||
| 14312 | int | ||
| 14313 | main () | ||
| 14314 | { | ||
| 14315 | { | ||
| 14316 | int argc = 0; | ||
| 14317 | char *argv[10]; | ||
| 14318 | int c; | ||
| 14319 | |||
| 14320 | argv[argc++] = "program"; | ||
| 14321 | argv[argc++] = "-a"; | ||
| 14322 | argv[argc++] = "foo"; | ||
| 14323 | argv[argc++] = "bar"; | ||
| 14324 | argv[argc] = NULL; | ||
| 14325 | optind = OPTIND_MIN; | ||
| 14326 | opterr = 0; | ||
| 14327 | |||
| 14328 | c = getopt (argc, argv, "ab"); | ||
| 14329 | if (!(c == 'a')) | ||
| 14330 | return 1; | ||
| 14331 | c = getopt (argc, argv, "ab"); | ||
| 14332 | if (!(c == -1)) | ||
| 14333 | return 2; | ||
| 14334 | if (!(optind == 2)) | ||
| 14335 | return 3; | ||
| 14336 | } | ||
| 14337 | /* Some internal state exists at this point. */ | ||
| 14338 | { | ||
| 14339 | int argc = 0; | ||
| 14340 | char *argv[10]; | ||
| 14341 | int c; | ||
| 14342 | |||
| 14343 | argv[argc++] = "program"; | ||
| 14344 | argv[argc++] = "donald"; | ||
| 14345 | argv[argc++] = "-p"; | ||
| 14346 | argv[argc++] = "billy"; | ||
| 14347 | argv[argc++] = "duck"; | ||
| 14348 | argv[argc++] = "-a"; | ||
| 14349 | argv[argc++] = "bar"; | ||
| 14350 | argv[argc] = NULL; | ||
| 14351 | optind = OPTIND_MIN; | ||
| 14352 | opterr = 0; | ||
| 14353 | |||
| 14354 | c = getopt (argc, argv, "+abp:q:"); | ||
| 14355 | if (!(c == -1)) | ||
| 14356 | return 4; | ||
| 14357 | if (!(strcmp (argv[0], "program") == 0)) | ||
| 14358 | return 5; | ||
| 14359 | if (!(strcmp (argv[1], "donald") == 0)) | ||
| 14360 | return 6; | ||
| 14361 | if (!(strcmp (argv[2], "-p") == 0)) | ||
| 14362 | return 7; | ||
| 14363 | if (!(strcmp (argv[3], "billy") == 0)) | ||
| 14364 | return 8; | ||
| 14365 | if (!(strcmp (argv[4], "duck") == 0)) | ||
| 14366 | return 9; | ||
| 14367 | if (!(strcmp (argv[5], "-a") == 0)) | ||
| 14368 | return 10; | ||
| 14369 | if (!(strcmp (argv[6], "bar") == 0)) | ||
| 14370 | return 11; | ||
| 14371 | if (!(optind == 1)) | ||
| 14372 | return 12; | ||
| 14373 | } | ||
| 14374 | /* Detect MacOS 10.5, AIX 7.1 bug. */ | ||
| 14375 | { | ||
| 14376 | char *argv[3] = { "program", "-ab", NULL }; | ||
| 14377 | optind = OPTIND_MIN; | ||
| 14378 | opterr = 0; | ||
| 14379 | if (getopt (2, argv, "ab:") != 'a') | ||
| 14380 | return 13; | ||
| 14381 | if (getopt (2, argv, "ab:") != '?') | ||
| 14382 | return 14; | ||
| 14383 | if (optopt != 'b') | ||
| 14384 | return 15; | ||
| 14385 | if (optind != 2) | ||
| 14386 | return 16; | ||
| 14387 | } | ||
| 14388 | |||
| 14389 | return 0; | ||
| 14390 | } | ||
| 14391 | |||
| 14392 | _ACEOF | ||
| 14393 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 14394 | gl_cv_func_getopt_posix=yes | ||
| 14395 | else | ||
| 14396 | gl_cv_func_getopt_posix=no | ||
| 14397 | fi | ||
| 14398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 14399 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 14400 | fi | ||
| 14401 | |||
| 14402 | CPPFLAGS=$gl_save_CPPFLAGS | ||
| 14403 | |||
| 14404 | fi | ||
| 14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 | ||
| 14406 | $as_echo "$gl_cv_func_getopt_posix" >&6; } | ||
| 14407 | case "$gl_cv_func_getopt_posix" in | ||
| 14408 | *no) gl_replace_getopt=yes ;; | ||
| 14409 | esac | ||
| 14410 | fi | ||
| 14411 | |||
| 14412 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | ||
| 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 | ||
| 14414 | $as_echo_n "checking for working GNU getopt function... " >&6; } | ||
| 14415 | if test "${gl_cv_func_getopt_gnu+set}" = set; then : | ||
| 14416 | $as_echo_n "(cached) " >&6 | ||
| 14417 | else | ||
| 14418 | # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the | ||
| 14419 | # optstring is necessary for programs like m4 that have POSIX-mandated | ||
| 14420 | # semantics for supporting options interspersed with files. | ||
| 14421 | # Also, since getopt_long is a GNU extension, we require optind=0. | ||
| 14422 | # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; | ||
| 14423 | # so take care to revert to the correct (non-)export state. | ||
| 14424 | gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' | ||
| 14425 | case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in | ||
| 14426 | xx) gl_had_POSIXLY_CORRECT=exported ;; | ||
| 14427 | x) gl_had_POSIXLY_CORRECT=yes ;; | ||
| 14428 | *) gl_had_POSIXLY_CORRECT= ;; | ||
| 14429 | esac | ||
| 14430 | POSIXLY_CORRECT=1 | ||
| 14431 | export POSIXLY_CORRECT | ||
| 14432 | if test "$cross_compiling" = yes; then : | ||
| 14433 | case $host_os:$ac_cv_have_decl_optreset in | ||
| 14434 | *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; | ||
| 14435 | *:yes) gl_cv_func_getopt_gnu=no;; | ||
| 14436 | *) gl_cv_func_getopt_gnu=yes;; | ||
| 14437 | esac | ||
| 14438 | |||
| 14439 | else | ||
| 14440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14441 | /* end confdefs.h. */ | ||
| 14442 | #include <getopt.h> | ||
| 14443 | #include <stddef.h> | ||
| 14444 | #include <string.h> | ||
| 14445 | |||
| 14446 | int | ||
| 14447 | main () | ||
| 14448 | { | ||
| 14449 | |||
| 14450 | int result = 0; | ||
| 14451 | /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, | ||
| 14452 | and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, | ||
| 14453 | OSF/1 5.1, Solaris 10. */ | ||
| 14454 | { | ||
| 14455 | char *myargv[3]; | ||
| 14456 | myargv[0] = "conftest"; | ||
| 14457 | myargv[1] = "-+"; | ||
| 14458 | myargv[2] = 0; | ||
| 14459 | opterr = 0; | ||
| 14460 | if (getopt (2, myargv, "+a") != '?') | ||
| 14461 | result |= 1; | ||
| 14462 | } | ||
| 14463 | /* This code succeeds on glibc 2.8, mingw, | ||
| 14464 | and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, | ||
| 14465 | IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ | ||
| 14466 | { | ||
| 14467 | char *argv[] = { "program", "-p", "foo", "bar", NULL }; | ||
| 14468 | |||
| 14469 | optind = 1; | ||
| 14470 | if (getopt (4, argv, "p::") != 'p') | ||
| 14471 | result |= 2; | ||
| 14472 | else if (optarg != NULL) | ||
| 14473 | result |= 4; | ||
| 14474 | else if (getopt (4, argv, "p::") != -1) | ||
| 14475 | result |= 6; | ||
| 14476 | else if (optind != 2) | ||
| 14477 | result |= 8; | ||
| 14478 | } | ||
| 14479 | /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ | ||
| 14480 | { | ||
| 14481 | char *argv[] = { "program", "foo", "-p", NULL }; | ||
| 14482 | optind = 0; | ||
| 14483 | if (getopt (3, argv, "-p") != 1) | ||
| 14484 | result |= 16; | ||
| 14485 | else if (getopt (3, argv, "-p") != 'p') | ||
| 14486 | result |= 32; | ||
| 14487 | } | ||
| 14488 | /* This code fails on glibc 2.11. */ | ||
| 14489 | { | ||
| 14490 | char *argv[] = { "program", "-b", "-a", NULL }; | ||
| 14491 | optind = opterr = 0; | ||
| 14492 | if (getopt (3, argv, "+:a:b") != 'b') | ||
| 14493 | result |= 64; | ||
| 14494 | else if (getopt (3, argv, "+:a:b") != ':') | ||
| 14495 | result |= 64; | ||
| 14496 | } | ||
| 14497 | return result; | ||
| 14498 | |||
| 14499 | ; | ||
| 14500 | return 0; | ||
| 14501 | } | ||
| 14502 | _ACEOF | ||
| 14503 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 14504 | gl_cv_func_getopt_gnu=yes | ||
| 14505 | else | ||
| 14506 | gl_cv_func_getopt_gnu=no | ||
| 14507 | fi | ||
| 14508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 14509 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 14510 | fi | ||
| 14511 | |||
| 14512 | case $gl_had_POSIXLY_CORRECT in | ||
| 14513 | exported) ;; | ||
| 14514 | yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; | ||
| 14515 | *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; | ||
| 14516 | esac | ||
| 14517 | |||
| 14518 | fi | ||
| 14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 | ||
| 14520 | $as_echo "$gl_cv_func_getopt_gnu" >&6; } | ||
| 14521 | if test "$gl_cv_func_getopt_gnu" = "no"; then | ||
| 14522 | gl_replace_getopt=yes | ||
| 14523 | fi | ||
| 14524 | fi | ||
| 14525 | |||
| 14526 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | ||
| 14527 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | ||
| 14528 | ac_have_decl=1 | ||
| 14529 | else | ||
| 14530 | ac_have_decl=0 | ||
| 14531 | fi | ||
| 14532 | |||
| 14533 | cat >>confdefs.h <<_ACEOF | ||
| 14534 | #define HAVE_DECL_GETENV $ac_have_decl | ||
| 14535 | _ACEOF | ||
| 14536 | |||
| 14537 | |||
| 14538 | |||
| 14539 | |||
| 14540 | |||
| 14541 | |||
| 14542 | if test -n "$gl_replace_getopt"; then : | ||
| 14543 | |||
| 14544 | |||
| 14545 | |||
| 14546 | GETOPT_H=getopt.h | ||
| 14547 | |||
| 14548 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | ||
| 14549 | |||
| 14550 | |||
| 14551 | |||
| 14552 | GNULIB_UNISTD_H_GETOPT=1 | ||
| 14553 | |||
| 14554 | |||
| 14555 | |||
| 14556 | |||
| 14557 | |||
| 14558 | |||
| 14559 | |||
| 14560 | |||
| 14561 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | ||
| 14562 | |||
| 14563 | |||
| 14564 | |||
| 14565 | |||
| 14566 | |||
| 14567 | |||
| 14568 | |||
| 14569 | |||
| 14570 | |||
| 14571 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | ||
| 14572 | |||
| 14573 | |||
| 14574 | |||
| 14575 | |||
| 14576 | |||
| 14577 | |||
| 14578 | fi | ||
| 14579 | |||
| 14580 | |||
| 14581 | |||
| 14582 | GNULIB_FCHMODAT=0; | ||
| 14583 | GNULIB_FSTATAT=0; | ||
| 14584 | GNULIB_FUTIMENS=0; | ||
| 14585 | GNULIB_LCHMOD=0; | ||
| 14586 | GNULIB_LSTAT=0; | ||
| 14587 | GNULIB_MKDIRAT=0; | ||
| 14588 | GNULIB_MKFIFO=0; | ||
| 14589 | GNULIB_MKFIFOAT=0; | ||
| 14590 | GNULIB_MKNOD=0; | ||
| 14591 | GNULIB_MKNODAT=0; | ||
| 14592 | GNULIB_STAT=0; | ||
| 14593 | GNULIB_UTIMENSAT=0; | ||
| 14594 | HAVE_FCHMODAT=1; | ||
| 14595 | HAVE_FSTATAT=1; | ||
| 14596 | HAVE_FUTIMENS=1; | ||
| 14597 | HAVE_LCHMOD=1; | ||
| 14598 | HAVE_LSTAT=1; | ||
| 14599 | HAVE_MKDIRAT=1; | ||
| 14600 | HAVE_MKFIFO=1; | ||
| 14601 | HAVE_MKFIFOAT=1; | ||
| 14602 | HAVE_MKNOD=1; | ||
| 14603 | HAVE_MKNODAT=1; | ||
| 14604 | HAVE_UTIMENSAT=1; | ||
| 14605 | REPLACE_FSTAT=0; | ||
| 14606 | REPLACE_FSTATAT=0; | ||
| 14607 | REPLACE_FUTIMENS=0; | ||
| 14608 | REPLACE_LSTAT=0; | ||
| 14609 | REPLACE_MKDIR=0; | ||
| 14610 | REPLACE_MKFIFO=0; | ||
| 14611 | REPLACE_MKNOD=0; | ||
| 14612 | REPLACE_STAT=0; | ||
| 14613 | REPLACE_UTIMENSAT=0; | ||
| 14614 | |||
| 14615 | |||
| 14616 | |||
| 14617 | |||
| 14618 | for ac_func in $ac_func_list | ||
| 14619 | do : | ||
| 14620 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
| 14621 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
| 14622 | eval as_val=\$$as_ac_var | ||
| 14623 | if test "x$as_val" = x""yes; then : | ||
| 14624 | cat >>confdefs.h <<_ACEOF | ||
| 14625 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 14626 | _ACEOF | ||
| 14627 | |||
| 14628 | fi | ||
| 14629 | done | ||
| 14630 | |||
| 14631 | |||
| 14632 | |||
| 14633 | |||
| 14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | ||
| 14635 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | ||
| 14636 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | ||
| 14637 | $as_echo_n "(cached) " >&6 | ||
| 14638 | else | ||
| 14639 | rm -f conftest.sym conftest.file | ||
| 14640 | echo >conftest.file | ||
| 14641 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | ||
| 14642 | if test "$cross_compiling" = yes; then : | ||
| 14643 | # When cross-compiling, be pessimistic so we will end up using the | ||
| 14644 | # replacement version of lstat that checks for trailing slashes and | ||
| 14645 | # calls lstat a second time when necessary. | ||
| 14646 | ac_cv_func_lstat_dereferences_slashed_symlink=no | ||
| 14647 | |||
| 14648 | else | ||
| 14649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14650 | /* end confdefs.h. */ | ||
| 14651 | $ac_includes_default | ||
| 14652 | int | ||
| 14653 | main () | ||
| 14654 | { | ||
| 14655 | struct stat sbuf; | ||
| 14656 | /* Linux will dereference the symlink and fail, as required by | ||
| 14657 | POSIX. That is better in the sense that it means we will not | ||
| 14658 | have to compile and use the lstat wrapper. */ | ||
| 14659 | return lstat ("conftest.sym/", &sbuf) == 0; | ||
| 14660 | |||
| 14661 | ; | ||
| 14662 | return 0; | ||
| 14663 | } | ||
| 14664 | _ACEOF | ||
| 14665 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 14666 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | ||
| 14667 | else | ||
| 14668 | ac_cv_func_lstat_dereferences_slashed_symlink=no | ||
| 14669 | fi | ||
| 14670 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 14671 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 14672 | fi | ||
| 14673 | |||
| 14674 | else | ||
| 14675 | # If the 'ln -s' command failed, then we probably don't even | ||
| 14676 | # have an lstat function. | ||
| 14677 | ac_cv_func_lstat_dereferences_slashed_symlink=no | ||
| 14678 | fi | ||
| 14679 | rm -f conftest.sym conftest.file | ||
| 14680 | |||
| 14681 | fi | ||
| 14682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | ||
| 14683 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | ||
| 14684 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | ||
| 14685 | |||
| 14686 | cat >>confdefs.h <<_ACEOF | ||
| 14687 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | ||
| 14688 | _ACEOF | ||
| 14689 | |||
| 14690 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then | ||
| 14691 | |||
| 14692 | |||
| 14693 | |||
| 14694 | |||
| 14695 | |||
| 14696 | |||
| 14697 | |||
| 14698 | |||
| 14699 | gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" | ||
| 14700 | |||
| 14701 | fi | ||
| 14702 | |||
| 14703 | |||
| 14704 | GNULIB_MKTIME=0; | ||
| 14705 | GNULIB_NANOSLEEP=0; | ||
| 14706 | GNULIB_STRPTIME=0; | ||
| 14707 | GNULIB_TIMEGM=0; | ||
| 14708 | GNULIB_TIME_R=0; | ||
| 14709 | HAVE_DECL_LOCALTIME_R=1; | ||
| 14710 | HAVE_NANOSLEEP=1; | ||
| 14711 | HAVE_STRPTIME=1; | ||
| 14712 | HAVE_TIMEGM=1; | ||
| 14713 | REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; | ||
| 14714 | REPLACE_MKTIME=GNULIB_PORTCHECK; | ||
| 14715 | REPLACE_NANOSLEEP=GNULIB_PORTCHECK; | ||
| 14716 | REPLACE_TIMEGM=GNULIB_PORTCHECK; | ||
| 14717 | |||
| 14718 | |||
| 14719 | |||
| 14720 | |||
| 14721 | gl_cv_c_multiarch=no | ||
| 14722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14723 | /* end confdefs.h. */ | ||
| 14724 | #ifndef __APPLE_CC__ | ||
| 14725 | not a universal capable compiler | ||
| 14726 | #endif | ||
| 14727 | typedef int dummy; | ||
| 14728 | |||
| 14729 | _ACEOF | ||
| 14730 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14731 | |||
| 14732 | arch= | ||
| 14733 | prev= | ||
| 14734 | for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do | ||
| 14735 | if test -n "$prev"; then | ||
| 14736 | case $word in | ||
| 14737 | i?86 | x86_64 | ppc | ppc64) | ||
| 14738 | if test -z "$arch" || test "$arch" = "$word"; then | ||
| 14739 | arch="$word" | ||
| 14740 | else | ||
| 14741 | gl_cv_c_multiarch=yes | ||
| 14742 | fi | ||
| 14743 | ;; | ||
| 14744 | esac | ||
| 14745 | prev= | ||
| 14746 | else | ||
| 14747 | if test "x$word" = "x-arch"; then | ||
| 14748 | prev=arch | ||
| 14749 | fi | ||
| 14750 | fi | ||
| 14751 | done | ||
| 14752 | |||
| 14753 | fi | ||
| 14754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14755 | if test $gl_cv_c_multiarch = yes; then | ||
| 14756 | APPLE_UNIVERSAL_BUILD=1 | ||
| 14757 | else | ||
| 14758 | APPLE_UNIVERSAL_BUILD=0 | ||
| 14759 | fi | ||
| 14760 | |||
| 14761 | |||
| 14762 | |||
| 14763 | |||
| 14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 | ||
| 14765 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | ||
| 14766 | if test "${ac_cv_header_stdbool_h+set}" = set; then : | ||
| 14767 | $as_echo_n "(cached) " >&6 | ||
| 14768 | else | ||
| 14769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14770 | /* end confdefs.h. */ | ||
| 14771 | |||
| 14772 | #include <stdbool.h> | ||
| 14773 | #ifndef bool | ||
| 14774 | "error: bool is not defined" | ||
| 14775 | #endif | ||
| 14776 | #ifndef false | ||
| 14777 | "error: false is not defined" | ||
| 14778 | #endif | ||
| 14779 | #if false | ||
| 14780 | "error: false is not 0" | ||
| 14781 | #endif | ||
| 14782 | #ifndef true | ||
| 14783 | "error: true is not defined" | ||
| 14784 | #endif | ||
| 14785 | #if true != 1 | ||
| 14786 | "error: true is not 1" | ||
| 14787 | #endif | ||
| 14788 | #ifndef __bool_true_false_are_defined | ||
| 14789 | "error: __bool_true_false_are_defined is not defined" | ||
| 14790 | #endif | ||
| 14791 | |||
| 14792 | struct s { _Bool s: 1; _Bool t; } s; | ||
| 14793 | |||
| 14794 | char a[true == 1 ? 1 : -1]; | ||
| 14795 | char b[false == 0 ? 1 : -1]; | ||
| 14796 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | ||
| 14797 | char d[(bool) 0.5 == true ? 1 : -1]; | ||
| 14798 | /* See body of main program for 'e'. */ | ||
| 14799 | char f[(_Bool) 0.0 == false ? 1 : -1]; | ||
| 14800 | char g[true]; | ||
| 14801 | char h[sizeof (_Bool)]; | ||
| 14802 | char i[sizeof s.t]; | ||
| 14803 | enum { j = false, k = true, l = false * true, m = true * 256 }; | ||
| 14804 | /* The following fails for | ||
| 14805 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | ||
| 14806 | _Bool n[m]; | ||
| 14807 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | ||
| 14808 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | ||
| 14809 | /* Catch a bug in an HP-UX C compiler. See | ||
| 14810 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | ||
| 14811 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | ||
| 14812 | */ | ||
| 14813 | _Bool q = true; | ||
| 14814 | _Bool *pq = &q; | ||
| 14815 | |||
| 14816 | int | ||
| 14817 | main () | ||
| 14818 | { | ||
| 14819 | |||
| 14820 | bool e = &s; | ||
| 14821 | *pq |= q; | ||
| 14822 | *pq |= ! q; | ||
| 14823 | /* Refer to every declared value, to avoid compiler optimizations. */ | ||
| 14824 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | ||
| 14825 | + !m + !n + !o + !p + !q + !pq); | ||
| 14826 | |||
| 14827 | ; | ||
| 14828 | return 0; | ||
| 14829 | } | ||
| 14830 | _ACEOF | ||
| 14831 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14832 | ac_cv_header_stdbool_h=yes | ||
| 14833 | else | ||
| 14834 | ac_cv_header_stdbool_h=no | ||
| 14835 | fi | ||
| 14836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14837 | fi | ||
| 14838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 | ||
| 14839 | $as_echo "$ac_cv_header_stdbool_h" >&6; } | ||
| 14840 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | ||
| 14841 | if test "x$ac_cv_type__Bool" = x""yes; then : | ||
| 14842 | |||
| 14843 | cat >>confdefs.h <<_ACEOF | ||
| 14844 | #define HAVE__BOOL 1 | ||
| 14845 | _ACEOF | ||
| 14846 | |||
| 14847 | |||
| 14848 | fi | ||
| 14849 | |||
| 14850 | |||
| 14851 | |||
| 14852 | REPLACE_NULL=0; | ||
| 14853 | HAVE_WCHAR_T=1; | ||
| 14854 | STDDEF_H=''; | ||
| 14855 | |||
| 14856 | |||
| 14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 | ||
| 14858 | $as_echo_n "checking for wchar_t... " >&6; } | ||
| 14859 | if test "${gt_cv_c_wchar_t+set}" = set; then : | ||
| 14860 | $as_echo_n "(cached) " >&6 | ||
| 14861 | else | ||
| 14862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14863 | /* end confdefs.h. */ | ||
| 14864 | #include <stddef.h> | ||
| 14865 | wchar_t foo = (wchar_t)'\0'; | ||
| 14866 | int | ||
| 14867 | main () | ||
| 14868 | { | ||
| 14869 | |||
| 14870 | ; | ||
| 14871 | return 0; | ||
| 14872 | } | ||
| 14873 | _ACEOF | ||
| 14874 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14875 | gt_cv_c_wchar_t=yes | ||
| 14876 | else | ||
| 14877 | gt_cv_c_wchar_t=no | ||
| 14878 | fi | ||
| 14879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14880 | fi | ||
| 14881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 | ||
| 14882 | $as_echo "$gt_cv_c_wchar_t" >&6; } | ||
| 14883 | if test $gt_cv_c_wchar_t = yes; then | ||
| 14884 | |||
| 14885 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | ||
| 14886 | |||
| 14887 | fi | ||
| 14888 | |||
| 14889 | |||
| 14890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | ||
| 14891 | $as_echo_n "checking for unsigned long long int... " >&6; } | ||
| 14892 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : | ||
| 14893 | $as_echo_n "(cached) " >&6 | ||
| 14894 | else | ||
| 14895 | ac_cv_type_unsigned_long_long_int=yes | ||
| 14896 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | ||
| 14897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14898 | /* end confdefs.h. */ | ||
| 14899 | |||
| 14900 | /* For now, do not test the preprocessor; as of 2007 there are too many | ||
| 14901 | implementations with broken preprocessors. Perhaps this can | ||
| 14902 | be revisited in 2012. In the meantime, code should not expect | ||
| 14903 | #if to work with literals wider than 32 bits. */ | ||
| 14904 | /* Test literals. */ | ||
| 14905 | long long int ll = 9223372036854775807ll; | ||
| 14906 | long long int nll = -9223372036854775807LL; | ||
| 14907 | unsigned long long int ull = 18446744073709551615ULL; | ||
| 14908 | /* Test constant expressions. */ | ||
| 14909 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | ||
| 14910 | ? 1 : -1)]; | ||
| 14911 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | ||
| 14912 | ? 1 : -1)]; | ||
| 14913 | int i = 63; | ||
| 14914 | int | ||
| 14915 | main () | ||
| 14916 | { | ||
| 14917 | /* Test availability of runtime routines for shift and division. */ | ||
| 14918 | long long int llmax = 9223372036854775807ll; | ||
| 14919 | unsigned long long int ullmax = 18446744073709551615ull; | ||
| 14920 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | ||
| 14921 | | (llmax / ll) | (llmax % ll) | ||
| 14922 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | ||
| 14923 | | (ullmax / ull) | (ullmax % ull)); | ||
| 14924 | ; | ||
| 14925 | return 0; | ||
| 14926 | } | ||
| 14927 | |||
| 14928 | _ACEOF | ||
| 14929 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 14930 | |||
| 14931 | else | ||
| 14932 | ac_cv_type_unsigned_long_long_int=no | ||
| 14933 | fi | ||
| 14934 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 14935 | conftest$ac_exeext conftest.$ac_ext | ||
| 14936 | fi | ||
| 14937 | fi | ||
| 14938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 | ||
| 14939 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | ||
| 14940 | if test $ac_cv_type_unsigned_long_long_int = yes; then | ||
| 14941 | |||
| 14942 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | ||
| 14943 | |||
| 14944 | fi | ||
| 14945 | |||
| 14946 | |||
| 14947 | |||
| 14948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | ||
| 14949 | $as_echo_n "checking for long long int... " >&6; } | ||
| 14950 | if test "${ac_cv_type_long_long_int+set}" = set; then : | ||
| 14951 | $as_echo_n "(cached) " >&6 | ||
| 14952 | else | ||
| 14953 | ac_cv_type_long_long_int=yes | ||
| 14954 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | ||
| 14955 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int | ||
| 14956 | if test $ac_cv_type_long_long_int = yes; then | ||
| 14957 | if test "$cross_compiling" = yes; then : | ||
| 14958 | : | ||
| 14959 | else | ||
| 14960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14961 | /* end confdefs.h. */ | ||
| 14962 | #include <limits.h> | ||
| 14963 | #ifndef LLONG_MAX | ||
| 14964 | # define HALF \ | ||
| 14965 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | ||
| 14966 | # define LLONG_MAX (HALF - 1 + HALF) | ||
| 14967 | #endif | ||
| 14968 | int | ||
| 14969 | main () | ||
| 14970 | { | ||
| 14971 | long long int n = 1; | ||
| 14972 | int i; | ||
| 14973 | for (i = 0; ; i++) | ||
| 14974 | { | ||
| 14975 | long long int m = n << i; | ||
| 14976 | if (m >> i != n) | ||
| 14977 | return 1; | ||
| 14978 | if (LLONG_MAX / 2 < m) | ||
| 14979 | break; | ||
| 14980 | } | ||
| 14981 | return 0; | ||
| 14982 | ; | ||
| 14983 | return 0; | ||
| 14984 | } | ||
| 14985 | _ACEOF | ||
| 14986 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 14987 | |||
| 14988 | else | ||
| 14989 | ac_cv_type_long_long_int=no | ||
| 14990 | fi | ||
| 14991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 14992 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 14993 | fi | ||
| 14994 | |||
| 14995 | fi | ||
| 14996 | fi | ||
| 14997 | fi | ||
| 14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | ||
| 14999 | $as_echo "$ac_cv_type_long_long_int" >&6; } | ||
| 15000 | if test $ac_cv_type_long_long_int = yes; then | ||
| 15001 | |||
| 15002 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | ||
| 15003 | |||
| 15004 | fi | ||
| 15005 | |||
| 15006 | |||
| 15007 | |||
| 15008 | |||
| 15009 | |||
| 15010 | |||
| 15011 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> | ||
| 15012 | " | ||
| 15013 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : | ||
| 15014 | |||
| 15015 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | ||
| 15016 | |||
| 15017 | fi | ||
| 15018 | |||
| 15019 | |||
| 15020 | |||
| 15021 | |||
| 15022 | |||
| 15023 | |||
| 15024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 | ||
| 15025 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | ||
| 15026 | if test "${ac_cv_header_stat_broken+set}" = set; then : | ||
| 15027 | $as_echo_n "(cached) " >&6 | ||
| 15028 | else | ||
| 15029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15030 | /* end confdefs.h. */ | ||
| 15031 | #include <sys/types.h> | ||
| 15032 | #include <sys/stat.h> | ||
| 15033 | |||
| 15034 | #if defined S_ISBLK && defined S_IFDIR | ||
| 15035 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | ||
| 15036 | #endif | ||
| 15037 | |||
| 15038 | #if defined S_ISBLK && defined S_IFCHR | ||
| 15039 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | ||
| 15040 | #endif | ||
| 15041 | |||
| 15042 | #if defined S_ISLNK && defined S_IFREG | ||
| 15043 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | ||
| 15044 | #endif | ||
| 15045 | |||
| 15046 | #if defined S_ISSOCK && defined S_IFREG | ||
| 15047 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | ||
| 15048 | #endif | ||
| 15049 | |||
| 15050 | _ACEOF | ||
| 15051 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 15052 | ac_cv_header_stat_broken=no | ||
| 15053 | else | ||
| 15054 | ac_cv_header_stat_broken=yes | ||
| 15055 | fi | ||
| 15056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 15057 | fi | ||
| 15058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 | ||
| 15059 | $as_echo "$ac_cv_header_stat_broken" >&6; } | ||
| 15060 | if test $ac_cv_header_stat_broken = yes; then | ||
| 15061 | |||
| 15062 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h | ||
| 15063 | |||
| 15064 | fi | ||
| 15065 | |||
| 15066 | |||
| 15067 | |||
| 15068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 | ||
| 15069 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | ||
| 15070 | if test "${ac_cv_c_restrict+set}" = set; then : | ||
| 15071 | $as_echo_n "(cached) " >&6 | ||
| 15072 | else | ||
| 15073 | ac_cv_c_restrict=no | ||
| 15074 | # The order here caters to the fact that C++ does not require restrict. | ||
| 15075 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | ||
| 15076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15077 | /* end confdefs.h. */ | ||
| 15078 | typedef int * int_ptr; | ||
| 15079 | int foo (int_ptr $ac_kw ip) { | ||
| 15080 | return ip[0]; | ||
| 15081 | } | ||
| 15082 | int | ||
| 15083 | main () | ||
| 15084 | { | ||
| 15085 | int s[1]; | ||
| 15086 | int * $ac_kw t = s; | ||
| 15087 | t[0] = 0; | ||
| 15088 | return foo(t) | ||
| 15089 | ; | ||
| 15090 | return 0; | ||
| 15091 | } | ||
| 15092 | _ACEOF | ||
| 15093 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 15094 | ac_cv_c_restrict=$ac_kw | ||
| 15095 | fi | ||
| 15096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 15097 | test "$ac_cv_c_restrict" != no && break | ||
| 15098 | done | ||
| 15099 | |||
| 15100 | fi | ||
| 15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | ||
| 15102 | $as_echo "$ac_cv_c_restrict" >&6; } | ||
| 15103 | |||
| 15104 | case $ac_cv_c_restrict in | ||
| 15105 | restrict) ;; | ||
| 15106 | no) $as_echo "#define restrict /**/" >>confdefs.h | ||
| 15107 | ;; | ||
| 15108 | *) cat >>confdefs.h <<_ACEOF | ||
| 15109 | #define restrict $ac_cv_c_restrict | ||
| 15110 | _ACEOF | ||
| 15111 | ;; | ||
| 15112 | esac | ||
| 15113 | |||
| 15114 | |||
| 15115 | |||
| 15116 | |||
| 15117 | |||
| 15118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 | ||
| 15119 | $as_echo_n "checking for struct timespec in <time.h>... " >&6; } | ||
| 15120 | if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then : | ||
| 15121 | $as_echo_n "(cached) " >&6 | ||
| 15122 | else | ||
| 15123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15124 | /* end confdefs.h. */ | ||
| 15125 | #include <time.h> | ||
| 15126 | |||
| 15127 | int | ||
| 15128 | main () | ||
| 15129 | { | ||
| 15130 | static struct timespec x; x.tv_sec = x.tv_nsec; | ||
| 15131 | ; | ||
| 15132 | return 0; | ||
| 15133 | } | ||
| 15134 | _ACEOF | ||
| 15135 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 15136 | gl_cv_sys_struct_timespec_in_time_h=yes | ||
| 15137 | else | ||
| 15138 | gl_cv_sys_struct_timespec_in_time_h=no | ||
| 15139 | fi | ||
| 15140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 15141 | fi | ||
| 15142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 | ||
| 15143 | $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } | ||
| 15144 | |||
| 15145 | TIME_H_DEFINES_STRUCT_TIMESPEC=0 | ||
| 15146 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 | ||
| 15147 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 | ||
| 15148 | if test $gl_cv_sys_struct_timespec_in_time_h = yes; then | ||
| 15149 | TIME_H_DEFINES_STRUCT_TIMESPEC=1 | ||
| 15150 | else | ||
| 15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 | ||
| 15152 | $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } | ||
| 15153 | if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then : | ||
| 15154 | $as_echo_n "(cached) " >&6 | ||
| 15155 | else | ||
| 15156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15157 | /* end confdefs.h. */ | ||
| 15158 | #include <sys/time.h> | ||
| 15159 | |||
| 15160 | int | ||
| 15161 | main () | ||
| 15162 | { | ||
| 15163 | static struct timespec x; x.tv_sec = x.tv_nsec; | ||
| 15164 | ; | ||
| 15165 | return 0; | ||
| 15166 | } | ||
| 15167 | _ACEOF | ||
| 15168 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 15169 | gl_cv_sys_struct_timespec_in_sys_time_h=yes | ||
| 15170 | else | ||
| 15171 | gl_cv_sys_struct_timespec_in_sys_time_h=no | ||
| 15172 | fi | ||
| 15173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 15174 | fi | ||
| 15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 | ||
| 15176 | $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } | ||
| 15177 | if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then | ||
| 15178 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 | ||
| 15179 | else | ||
| 15180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 | ||
| 15181 | $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } | ||
| 15182 | if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then : | ||
| 15183 | $as_echo_n "(cached) " >&6 | ||
| 15184 | else | ||
| 15185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15186 | /* end confdefs.h. */ | ||
| 15187 | #include <pthread.h> | ||
| 15188 | |||
| 15189 | int | ||
| 15190 | main () | ||
| 15191 | { | ||
| 15192 | static struct timespec x; x.tv_sec = x.tv_nsec; | ||
| 15193 | ; | ||
| 15194 | return 0; | ||
| 15195 | } | ||
| 15196 | _ACEOF | ||
| 15197 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 15198 | gl_cv_sys_struct_timespec_in_pthread_h=yes | ||
| 15199 | else | ||
| 15200 | gl_cv_sys_struct_timespec_in_pthread_h=no | ||
| 15201 | fi | ||
| 15202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 15203 | fi | ||
| 15204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 | ||
| 15205 | $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } | ||
| 15206 | if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then | ||
| 15207 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 | ||
| 15208 | fi | ||
| 15209 | fi | ||
| 15210 | fi | ||
| 15211 | |||
| 15212 | |||
| 15213 | |||
| 15214 | |||
| 15215 | |||
| 15216 | |||
| 15217 | |||
| 15218 | |||
| 15219 | |||
| 15220 | |||
| 15221 | |||
| 15222 | |||
| 15223 | |||
| 15224 | |||
| 15225 | |||
| 15226 | if test $gl_cv_have_include_next = yes; then | ||
| 15227 | gl_cv_next_time_h='<'time.h'>' | ||
| 15228 | else | ||
| 15229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 | ||
| 15230 | $as_echo_n "checking absolute name of <time.h>... " >&6; } | ||
| 15231 | if test "${gl_cv_next_time_h+set}" = set; then : | ||
| 15232 | $as_echo_n "(cached) " >&6 | ||
| 15233 | else | ||
| 15234 | |||
| 15235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15236 | /* end confdefs.h. */ | ||
| 15237 | #include <time.h> | ||
| 15238 | |||
| 15239 | _ACEOF | ||
| 15240 | case "$host_os" in | ||
| 15241 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 15242 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 15243 | esac | ||
| 15244 | gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 15245 | sed -n '\#/time.h#{ | ||
| 15246 | s#.*"\(.*/time.h\)".*#\1# | ||
| 15247 | s#^/[^/]#//&# | ||
| 15248 | p | ||
| 15249 | q | ||
| 15250 | }'`'"' | ||
| 15251 | |||
| 15252 | |||
| 15253 | fi | ||
| 15254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 | ||
| 15255 | $as_echo "$gl_cv_next_time_h" >&6; } | ||
| 15256 | fi | ||
| 15257 | NEXT_TIME_H=$gl_cv_next_time_h | ||
| 15258 | |||
| 15259 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 15260 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 15261 | gl_next_as_first_directive='<'time.h'>' | ||
| 15262 | else | ||
| 15263 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 15264 | gl_next_as_first_directive=$gl_cv_next_time_h | ||
| 15265 | fi | ||
| 15266 | NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive | ||
| 15267 | |||
| 15268 | |||
| 15269 | |||
| 15270 | |||
| 15271 | |||
| 15272 | |||
| 15273 | ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default" | ||
| 15274 | if test "x$ac_cv_have_decl_localtime_r" = x""yes; then : | ||
| 15275 | ac_have_decl=1 | ||
| 15276 | else | ||
| 15277 | ac_have_decl=0 | ||
| 15278 | fi | ||
| 15279 | |||
| 15280 | cat >>confdefs.h <<_ACEOF | ||
| 15281 | #define HAVE_DECL_LOCALTIME_R $ac_have_decl | ||
| 15282 | _ACEOF | ||
| 15283 | |||
| 15284 | |||
| 15285 | |||
| 15286 | |||
| 15287 | if false; then | ||
| 15288 | GL_COND_LIBTOOL_TRUE= | ||
| 15289 | GL_COND_LIBTOOL_FALSE='#' | ||
| 15290 | else | ||
| 15291 | GL_COND_LIBTOOL_TRUE='#' | ||
| 15292 | GL_COND_LIBTOOL_FALSE= | ||
| 15293 | fi | ||
| 15294 | |||
| 15295 | gl_cond_libtool=false | ||
| 15296 | gl_libdeps= | ||
| 15297 | gl_ltlibdeps= | ||
| 15298 | gl_m4_base='m4' | ||
| 15299 | |||
| 15300 | |||
| 15301 | |||
| 15302 | |||
| 15303 | |||
| 15304 | |||
| 15305 | |||
| 15306 | |||
| 15307 | |||
| 15308 | gl_source_base='lib' | ||
| 15309 | # Code from module arg-nonnull: | ||
| 15310 | # Code from module c++defs: | ||
| 15311 | # Code from module crypto/md5: | ||
| 15312 | |||
| 15313 | |||
| 15314 | |||
| 15315 | |||
| 15316 | |||
| 15317 | |||
| 15318 | |||
| 15319 | |||
| 15320 | |||
| 15321 | gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext" | ||
| 15322 | |||
| 15323 | |||
| 15324 | |||
| 15325 | |||
| 15326 | : | ||
| 15327 | |||
| 15328 | # Code from module dosname: | ||
| 15329 | # Code from module dtoastr: | ||
| 15330 | |||
| 15331 | # Code from module extensions: | ||
| 15332 | # Code from module filemode: | ||
| 15333 | |||
| 15334 | |||
| 15335 | |||
| 15336 | |||
| 15337 | |||
| 15338 | |||
| 15339 | |||
| 15340 | |||
| 15341 | |||
| 15342 | |||
| 15343 | gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext" | ||
| 15344 | |||
| 15345 | |||
| 15346 | |||
| 15347 | # Code from module getloadavg: | ||
| 15348 | |||
| 15349 | |||
| 15350 | # Persuade glibc <stdlib.h> to declare getloadavg(). | ||
| 15351 | |||
| 15352 | |||
| 15353 | # Make sure getloadavg.c is where it belongs, at configure-time. | ||
| 15354 | test -f "$srcdir/$gl_source_base/getloadavg.c" || | ||
| 15355 | as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5 | ||
| 15356 | |||
| 15357 | gl_save_LIBS=$LIBS | ||
| 15358 | |||
| 15359 | # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0, | ||
| 15360 | # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7. | ||
| 15361 | ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" | ||
| 15362 | if test "x$ac_cv_func_getloadavg" = x""yes; then : | ||
| 15363 | |||
| 15364 | else | ||
| 15365 | gl_have_func=no | ||
| 15366 | |||
| 15367 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | ||
| 15368 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | ||
| 15369 | # to get the right answer into the cache. | ||
| 15370 | # For kstat on solaris, we need to test for libelf and libkvm to force the | ||
| 15371 | # definition of SVR4 below. | ||
| 15372 | if test $gl_have_func = no; then | ||
| 15373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 | ||
| 15374 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } | ||
| 15375 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : | ||
| 15376 | $as_echo_n "(cached) " >&6 | ||
| 15377 | else | ||
| 15378 | ac_check_lib_save_LIBS=$LIBS | ||
| 15379 | LIBS="-lelf $LIBS" | ||
| 15380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15381 | /* end confdefs.h. */ | ||
| 15382 | |||
| 15383 | /* Override any GCC internal prototype to avoid an error. | ||
| 15384 | Use char because int might match the return type of a GCC | ||
| 15385 | builtin and then its argument prototype would still apply. */ | ||
| 15386 | #ifdef __cplusplus | ||
| 15387 | extern "C" | ||
| 15388 | #endif | ||
| 15389 | char elf_begin (); | ||
| 15390 | int | ||
| 15391 | main () | ||
| 15392 | { | ||
| 15393 | return elf_begin (); | ||
| 15394 | ; | ||
| 15395 | return 0; | ||
| 15396 | } | ||
| 15397 | _ACEOF | ||
| 15398 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15399 | ac_cv_lib_elf_elf_begin=yes | ||
| 15400 | else | ||
| 15401 | ac_cv_lib_elf_elf_begin=no | ||
| 15402 | fi | ||
| 15403 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15404 | conftest$ac_exeext conftest.$ac_ext | ||
| 15405 | LIBS=$ac_check_lib_save_LIBS | ||
| 15406 | fi | ||
| 15407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 | ||
| 15408 | $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } | ||
| 15409 | if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : | ||
| 15410 | LIBS="-lelf $LIBS" | ||
| 15411 | fi | ||
| 15412 | |||
| 15413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 | ||
| 15414 | $as_echo_n "checking for kvm_open in -lkvm... " >&6; } | ||
| 15415 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : | ||
| 15416 | $as_echo_n "(cached) " >&6 | ||
| 15417 | else | ||
| 15418 | ac_check_lib_save_LIBS=$LIBS | ||
| 15419 | LIBS="-lkvm $LIBS" | ||
| 15420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15421 | /* end confdefs.h. */ | ||
| 15422 | |||
| 15423 | /* Override any GCC internal prototype to avoid an error. | ||
| 15424 | Use char because int might match the return type of a GCC | ||
| 15425 | builtin and then its argument prototype would still apply. */ | ||
| 15426 | #ifdef __cplusplus | ||
| 15427 | extern "C" | ||
| 15428 | #endif | ||
| 15429 | char kvm_open (); | ||
| 15430 | int | ||
| 15431 | main () | ||
| 15432 | { | ||
| 15433 | return kvm_open (); | ||
| 15434 | ; | ||
| 15435 | return 0; | ||
| 15436 | } | ||
| 15437 | _ACEOF | ||
| 15438 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15439 | ac_cv_lib_kvm_kvm_open=yes | ||
| 15440 | else | ||
| 15441 | ac_cv_lib_kvm_kvm_open=no | ||
| 15442 | fi | ||
| 15443 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15444 | conftest$ac_exeext conftest.$ac_ext | ||
| 15445 | LIBS=$ac_check_lib_save_LIBS | ||
| 15446 | fi | ||
| 15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 | ||
| 15448 | $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } | ||
| 15449 | if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : | ||
| 15450 | LIBS="-lkvm $LIBS" | ||
| 15451 | fi | ||
| 15452 | |||
| 15453 | # Check for the 4.4BSD definition of getloadavg. | ||
| 15454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 | ||
| 15455 | $as_echo_n "checking for getloadavg in -lutil... " >&6; } | ||
| 15456 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then : | ||
| 15457 | $as_echo_n "(cached) " >&6 | ||
| 15458 | else | ||
| 15459 | ac_check_lib_save_LIBS=$LIBS | ||
| 15460 | LIBS="-lutil $LIBS" | ||
| 15461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15462 | /* end confdefs.h. */ | ||
| 15463 | |||
| 15464 | /* Override any GCC internal prototype to avoid an error. | ||
| 15465 | Use char because int might match the return type of a GCC | ||
| 15466 | builtin and then its argument prototype would still apply. */ | ||
| 15467 | #ifdef __cplusplus | ||
| 15468 | extern "C" | ||
| 15469 | #endif | ||
| 15470 | char getloadavg (); | ||
| 15471 | int | ||
| 15472 | main () | ||
| 15473 | { | ||
| 15474 | return getloadavg (); | ||
| 15475 | ; | ||
| 15476 | return 0; | ||
| 15477 | } | ||
| 15478 | _ACEOF | ||
| 15479 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15480 | ac_cv_lib_util_getloadavg=yes | ||
| 15481 | else | ||
| 15482 | ac_cv_lib_util_getloadavg=no | ||
| 15483 | fi | ||
| 15484 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15485 | conftest$ac_exeext conftest.$ac_ext | ||
| 15486 | LIBS=$ac_check_lib_save_LIBS | ||
| 15487 | fi | ||
| 15488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 | ||
| 15489 | $as_echo "$ac_cv_lib_util_getloadavg" >&6; } | ||
| 15490 | if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : | ||
| 15491 | LIBS="-lutil $LIBS" gl_have_func=yes | ||
| 15492 | fi | ||
| 15493 | |||
| 15494 | fi | ||
| 15495 | |||
| 15496 | if test $gl_have_func = no; then | ||
| 15497 | # There is a commonly available library for RS/6000 AIX. | ||
| 15498 | # Since it is not a standard part of AIX, it might be installed locally. | ||
| 15499 | gl_getloadavg_LIBS=$LIBS | ||
| 15500 | LIBS="-L/usr/local/lib $LIBS" | ||
| 15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 | ||
| 15502 | $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } | ||
| 15503 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : | ||
| 15504 | $as_echo_n "(cached) " >&6 | ||
| 15505 | else | ||
| 15506 | ac_check_lib_save_LIBS=$LIBS | ||
| 15507 | LIBS="-lgetloadavg $LIBS" | ||
| 15508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15509 | /* end confdefs.h. */ | ||
| 15510 | |||
| 15511 | /* Override any GCC internal prototype to avoid an error. | ||
| 15512 | Use char because int might match the return type of a GCC | ||
| 15513 | builtin and then its argument prototype would still apply. */ | ||
| 15514 | #ifdef __cplusplus | ||
| 15515 | extern "C" | ||
| 15516 | #endif | ||
| 15517 | char getloadavg (); | ||
| 15518 | int | ||
| 15519 | main () | ||
| 15520 | { | ||
| 15521 | return getloadavg (); | ||
| 15522 | ; | ||
| 15523 | return 0; | ||
| 15524 | } | ||
| 15525 | _ACEOF | ||
| 15526 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15527 | ac_cv_lib_getloadavg_getloadavg=yes | ||
| 15528 | else | ||
| 15529 | ac_cv_lib_getloadavg_getloadavg=no | ||
| 15530 | fi | ||
| 15531 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15532 | conftest$ac_exeext conftest.$ac_ext | ||
| 15533 | LIBS=$ac_check_lib_save_LIBS | ||
| 15534 | fi | ||
| 15535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | ||
| 15536 | $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } | ||
| 15537 | if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : | ||
| 15538 | LIBS="-lgetloadavg $LIBS" gl_have_func=yes | ||
| 15539 | else | ||
| 15540 | LIBS=$gl_getloadavg_LIBS | ||
| 15541 | fi | ||
| 15542 | |||
| 15543 | fi | ||
| 15544 | |||
| 15545 | # Set up the replacement function if necessary. | ||
| 15546 | if test $gl_have_func = no; then | ||
| 15547 | |||
| 15548 | |||
| 15549 | |||
| 15550 | |||
| 15551 | |||
| 15552 | |||
| 15553 | |||
| 15554 | |||
| 15555 | gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext" | ||
| 15556 | |||
| 15557 | |||
| 15558 | # Figure out what our getloadavg.c needs. | ||
| 15559 | |||
| 15560 | # Solaris has libkstat which does not require root. | ||
| 15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 | ||
| 15562 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } | ||
| 15563 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : | ||
| 15564 | $as_echo_n "(cached) " >&6 | ||
| 15565 | else | ||
| 15566 | ac_check_lib_save_LIBS=$LIBS | ||
| 15567 | LIBS="-lkstat $LIBS" | ||
| 15568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15569 | /* end confdefs.h. */ | ||
| 15570 | |||
| 15571 | /* Override any GCC internal prototype to avoid an error. | ||
| 15572 | Use char because int might match the return type of a GCC | ||
| 15573 | builtin and then its argument prototype would still apply. */ | ||
| 15574 | #ifdef __cplusplus | ||
| 15575 | extern "C" | ||
| 15576 | #endif | ||
| 15577 | char kstat_open (); | ||
| 15578 | int | ||
| 15579 | main () | ||
| 15580 | { | ||
| 15581 | return kstat_open (); | ||
| 15582 | ; | ||
| 15583 | return 0; | ||
| 15584 | } | ||
| 15585 | _ACEOF | ||
| 15586 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15587 | ac_cv_lib_kstat_kstat_open=yes | ||
| 15588 | else | ||
| 15589 | ac_cv_lib_kstat_kstat_open=no | ||
| 15590 | fi | ||
| 15591 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15592 | conftest$ac_exeext conftest.$ac_ext | ||
| 15593 | LIBS=$ac_check_lib_save_LIBS | ||
| 15594 | fi | ||
| 15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 | ||
| 15596 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } | ||
| 15597 | if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : | ||
| 15598 | cat >>confdefs.h <<_ACEOF | ||
| 15599 | #define HAVE_LIBKSTAT 1 | ||
| 15600 | _ACEOF | ||
| 15601 | |||
| 15602 | LIBS="-lkstat $LIBS" | ||
| 15603 | |||
| 15604 | fi | ||
| 15605 | |||
| 15606 | test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes | ||
| 15607 | |||
| 15608 | # On HPUX9, an unprivileged user can get load averages this way. | ||
| 15609 | if test $gl_have_func = no; then | ||
| 15610 | for ac_func in pstat_getdynamic | ||
| 15611 | do : | ||
| 15612 | ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" | ||
| 15613 | if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : | ||
| 15614 | cat >>confdefs.h <<_ACEOF | ||
| 15615 | #define HAVE_PSTAT_GETDYNAMIC 1 | ||
| 15616 | _ACEOF | ||
| 15617 | gl_have_func=yes | ||
| 15618 | fi | ||
| 15619 | done | ||
| 15620 | |||
| 15621 | fi | ||
| 15622 | |||
| 15623 | # AIX has libperfstat which does not require root | ||
| 15624 | if test $gl_have_func = no; then | ||
| 15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 | ||
| 15626 | $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; } | ||
| 15627 | if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then : | ||
| 15628 | $as_echo_n "(cached) " >&6 | ||
| 15629 | else | ||
| 15630 | ac_check_lib_save_LIBS=$LIBS | ||
| 15631 | LIBS="-lperfstat $LIBS" | ||
| 15632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15633 | /* end confdefs.h. */ | ||
| 15634 | |||
| 15635 | /* Override any GCC internal prototype to avoid an error. | ||
| 15636 | Use char because int might match the return type of a GCC | ||
| 15637 | builtin and then its argument prototype would still apply. */ | ||
| 15638 | #ifdef __cplusplus | ||
| 15639 | extern "C" | ||
| 15640 | #endif | ||
| 15641 | char perfstat_cpu_total (); | ||
| 15642 | int | ||
| 15643 | main () | ||
| 15644 | { | ||
| 15645 | return perfstat_cpu_total (); | ||
| 15646 | ; | ||
| 15647 | return 0; | ||
| 15648 | } | ||
| 15649 | _ACEOF | ||
| 15650 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15651 | ac_cv_lib_perfstat_perfstat_cpu_total=yes | ||
| 15652 | else | ||
| 15653 | ac_cv_lib_perfstat_perfstat_cpu_total=no | ||
| 15654 | fi | ||
| 15655 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15656 | conftest$ac_exeext conftest.$ac_ext | ||
| 15657 | LIBS=$ac_check_lib_save_LIBS | ||
| 15658 | fi | ||
| 15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5 | ||
| 15660 | $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; } | ||
| 15661 | if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then : | ||
| 15662 | cat >>confdefs.h <<_ACEOF | ||
| 15663 | #define HAVE_LIBPERFSTAT 1 | ||
| 15664 | _ACEOF | ||
| 15665 | |||
| 15666 | LIBS="-lperfstat $LIBS" | ||
| 15667 | |||
| 15668 | fi | ||
| 15669 | |||
| 15670 | test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes | ||
| 15671 | fi | ||
| 15672 | |||
| 15673 | if test $gl_have_func = no; then | ||
| 15674 | ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" | ||
| 15675 | if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : | ||
| 15676 | gl_have_func=yes | ||
| 15677 | |||
| 15678 | $as_echo "#define DGUX 1" >>confdefs.h | ||
| 15679 | |||
| 15680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 | ||
| 15681 | $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } | ||
| 15682 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : | ||
| 15683 | $as_echo_n "(cached) " >&6 | ||
| 15684 | else | ||
| 15685 | ac_check_lib_save_LIBS=$LIBS | ||
| 15686 | LIBS="-ldgc $LIBS" | ||
| 15687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15688 | /* end confdefs.h. */ | ||
| 15689 | |||
| 15690 | /* Override any GCC internal prototype to avoid an error. | ||
| 15691 | Use char because int might match the return type of a GCC | ||
| 15692 | builtin and then its argument prototype would still apply. */ | ||
| 15693 | #ifdef __cplusplus | ||
| 15694 | extern "C" | ||
| 15695 | #endif | ||
| 15696 | char dg_sys_info (); | ||
| 15697 | int | ||
| 15698 | main () | ||
| 15699 | { | ||
| 15700 | return dg_sys_info (); | ||
| 15701 | ; | ||
| 15702 | return 0; | ||
| 15703 | } | ||
| 15704 | _ACEOF | ||
| 15705 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15706 | ac_cv_lib_dgc_dg_sys_info=yes | ||
| 15707 | else | ||
| 15708 | ac_cv_lib_dgc_dg_sys_info=no | ||
| 15709 | fi | ||
| 15710 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15711 | conftest$ac_exeext conftest.$ac_ext | ||
| 15712 | LIBS=$ac_check_lib_save_LIBS | ||
| 15713 | fi | ||
| 15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | ||
| 15715 | $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } | ||
| 15716 | if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : | ||
| 15717 | cat >>confdefs.h <<_ACEOF | ||
| 15718 | #define HAVE_LIBDGC 1 | ||
| 15719 | _ACEOF | ||
| 15720 | |||
| 15721 | LIBS="-ldgc $LIBS" | ||
| 15722 | |||
| 15723 | fi | ||
| 15724 | |||
| 15725 | fi | ||
| 15726 | |||
| 15727 | |||
| 15728 | fi | ||
| 15729 | |||
| 15730 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | ||
| 15731 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | ||
| 15732 | # Irix 4.0.5F has the header but not the library. | ||
| 15733 | if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \ | ||
| 15734 | && test "$ac_cv_lib_kvm_kvm_open" = yes; then | ||
| 15735 | gl_have_func=yes | ||
| 15736 | |||
| 15737 | $as_echo "#define SVR4 1" >>confdefs.h | ||
| 15738 | |||
| 15739 | fi | ||
| 15740 | |||
| 15741 | if test $gl_have_func = no; then | ||
| 15742 | ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" | ||
| 15743 | if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : | ||
| 15744 | gl_have_func=yes | ||
| 15745 | |||
| 15746 | $as_echo "#define UMAX 1" >>confdefs.h | ||
| 15747 | |||
| 15748 | |||
| 15749 | $as_echo "#define UMAX4_3 1" >>confdefs.h | ||
| 15750 | |||
| 15751 | fi | ||
| 15752 | |||
| 15753 | |||
| 15754 | fi | ||
| 15755 | |||
| 15756 | if test $gl_have_func = no; then | ||
| 15757 | ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" | ||
| 15758 | if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : | ||
| 15759 | gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h | ||
| 15760 | |||
| 15761 | fi | ||
| 15762 | |||
| 15763 | |||
| 15764 | fi | ||
| 15765 | |||
| 15766 | if test $gl_have_func = no; then | ||
| 15767 | for ac_header in mach/mach.h | ||
| 15768 | do : | ||
| 15769 | ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | ||
| 15770 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : | ||
| 15771 | cat >>confdefs.h <<_ACEOF | ||
| 15772 | #define HAVE_MACH_MACH_H 1 | ||
| 15773 | _ACEOF | ||
| 15774 | |||
| 15775 | fi | ||
| 15776 | |||
| 15777 | done | ||
| 15778 | |||
| 15779 | fi | ||
| 15780 | |||
| 15781 | for ac_header in nlist.h | ||
| 15782 | do : | ||
| 15783 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" | ||
| 15784 | if test "x$ac_cv_header_nlist_h" = x""yes; then : | ||
| 15785 | cat >>confdefs.h <<_ACEOF | ||
| 15786 | #define HAVE_NLIST_H 1 | ||
| 15787 | _ACEOF | ||
| 15788 | ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> | ||
| 15789 | " | ||
| 15790 | if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : | ||
| 15791 | |||
| 15792 | cat >>confdefs.h <<_ACEOF | ||
| 15793 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | ||
| 15794 | _ACEOF | ||
| 15795 | |||
| 15796 | |||
| 15797 | fi | ||
| 15798 | |||
| 15799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15800 | /* end confdefs.h. */ | ||
| 15801 | #include <nlist.h> | ||
| 15802 | int | ||
| 15803 | main () | ||
| 15804 | { | ||
| 15805 | struct nlist x; | ||
| 15806 | #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME | ||
| 15807 | x.n_un.n_name = ""; | ||
| 15808 | #else | ||
| 15809 | x.n_name = ""; | ||
| 15810 | #endif | ||
| 15811 | ; | ||
| 15812 | return 0; | ||
| 15813 | } | ||
| 15814 | _ACEOF | ||
| 15815 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 15816 | |||
| 15817 | $as_echo "#define N_NAME_POINTER 1" >>confdefs.h | ||
| 15818 | |||
| 15819 | fi | ||
| 15820 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 15821 | conftest$ac_exeext conftest.$ac_ext | ||
| 15822 | |||
| 15823 | fi | ||
| 15824 | |||
| 15825 | done | ||
| 15826 | |||
| 15827 | fi | ||
| 15828 | fi | ||
| 15829 | |||
| 15830 | |||
| 15831 | if test "x$gl_save_LIBS" = x; then | ||
| 15832 | GETLOADAVG_LIBS=$LIBS | ||
| 15833 | else | ||
| 15834 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"` | ||
| 15835 | fi | ||
| 15836 | LIBS=$gl_save_LIBS | ||
| 15837 | |||
| 15838 | |||
| 15839 | # Test whether the system declares getloadavg. Solaris has the function | ||
| 15840 | # but declares it in <sys/loadavg.h>, not <stdlib.h>. | ||
| 15841 | for ac_header in sys/loadavg.h | ||
| 15842 | do : | ||
| 15843 | ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" | ||
| 15844 | if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then : | ||
| 15845 | cat >>confdefs.h <<_ACEOF | ||
| 15846 | #define HAVE_SYS_LOADAVG_H 1 | ||
| 15847 | _ACEOF | ||
| 15848 | |||
| 15849 | fi | ||
| 15850 | |||
| 15851 | done | ||
| 15852 | |||
| 15853 | if test $ac_cv_header_sys_loadavg_h = yes; then | ||
| 15854 | HAVE_SYS_LOADAVG_H=1 | ||
| 15855 | else | ||
| 15856 | HAVE_SYS_LOADAVG_H=0 | ||
| 15857 | fi | ||
| 15858 | ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H | ||
| 15859 | # include <sys/loadavg.h> | ||
| 15860 | #endif | ||
| 15861 | #include <stdlib.h> | ||
| 15862 | " | ||
| 15863 | if test "x$ac_cv_have_decl_getloadavg" = x""yes; then : | ||
| 15864 | |||
| 15865 | else | ||
| 15866 | HAVE_DECL_GETLOADAVG=0 | ||
| 15867 | fi | ||
| 15868 | |||
| 15869 | |||
| 15870 | |||
| 15871 | |||
| 15872 | |||
| 15873 | GNULIB_GETLOADAVG=1 | ||
| 15874 | |||
| 15875 | |||
| 15876 | |||
| 15877 | # Code from module getopt-gnu: | ||
| 15878 | |||
| 15879 | |||
| 15880 | |||
| 15881 | |||
| 15882 | |||
| 15883 | |||
| 15884 | # Code from module getopt-posix: | ||
| 15885 | |||
| 15886 | |||
| 15887 | |||
| 15888 | |||
| 15889 | |||
| 15890 | if test -n "$gl_replace_getopt"; then : | ||
| 15891 | |||
| 15892 | |||
| 15893 | |||
| 15894 | GETOPT_H=getopt.h | ||
| 15895 | |||
| 15896 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | ||
| 15897 | |||
| 15898 | |||
| 15899 | |||
| 15900 | GNULIB_UNISTD_H_GETOPT=1 | ||
| 15901 | |||
| 15902 | |||
| 15903 | |||
| 15904 | |||
| 15905 | |||
| 15906 | |||
| 15907 | |||
| 15908 | |||
| 15909 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | ||
| 15910 | |||
| 15911 | |||
| 15912 | |||
| 15913 | |||
| 15914 | |||
| 15915 | |||
| 15916 | |||
| 15917 | |||
| 15918 | |||
| 15919 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | ||
| 15920 | |||
| 15921 | |||
| 15922 | |||
| 15923 | |||
| 15924 | |||
| 15925 | |||
| 15926 | fi | ||
| 15927 | |||
| 15928 | |||
| 15929 | # Code from module gettext-h: | ||
| 15930 | |||
| 15931 | |||
| 15932 | # Code from module ignore-value: | ||
| 15933 | |||
| 15934 | # Code from module include_next: | ||
| 15935 | # Code from module intprops: | ||
| 15936 | # Code from module lstat: | ||
| 15937 | |||
| 15938 | |||
| 15939 | |||
| 15940 | if test $ac_cv_func_lstat = yes; then | ||
| 15941 | |||
| 15942 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | ||
| 15943 | REPLACE_LSTAT=1 | ||
| 15944 | fi | ||
| 15945 | # Prerequisites of lib/lstat.c. | ||
| 15946 | |||
| 15947 | else | ||
| 15948 | HAVE_LSTAT=0 | ||
| 15949 | fi | ||
| 15950 | |||
| 15951 | |||
| 15952 | |||
| 15953 | |||
| 15954 | GNULIB_LSTAT=1 | ||
| 15955 | |||
| 15956 | |||
| 15957 | |||
| 15958 | # Code from module mktime: | ||
| 15959 | |||
| 15960 | |||
| 15961 | |||
| 15962 | |||
| 15963 | |||
| 15964 | if test $APPLE_UNIVERSAL_BUILD = 1; then | ||
| 15965 | # A universal build on Apple MacOS X platforms. | ||
| 15966 | # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode. | ||
| 15967 | # But we need a configuration result that is valid in both modes. | ||
| 15968 | ac_cv_func_working_mktime=no | ||
| 15969 | fi | ||
| 15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 | ||
| 15971 | $as_echo_n "checking for working mktime... " >&6; } | ||
| 15972 | if test "${ac_cv_func_working_mktime+set}" = set; then : | ||
| 15973 | $as_echo_n "(cached) " >&6 | ||
| 15974 | else | ||
| 15975 | if test "$cross_compiling" = yes; then : | ||
| 15976 | ac_cv_func_working_mktime=no | ||
| 15977 | else | ||
| 15978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 15979 | /* end confdefs.h. */ | ||
| 15980 | /* Test program from Paul Eggert and Tony Leneis. */ | ||
| 15981 | #include <limits.h> | ||
| 15982 | #include <stdlib.h> | ||
| 15983 | #include <time.h> | ||
| 15984 | |||
| 15985 | #ifdef HAVE_UNISTD_H | ||
| 15986 | # include <unistd.h> | ||
| 15987 | #endif | ||
| 15988 | |||
| 15989 | #ifndef HAVE_ALARM | ||
| 15990 | # define alarm(X) /* empty */ | ||
| 15991 | #endif | ||
| 15992 | |||
| 15993 | /* Work around redefinition to rpl_putenv by other config tests. */ | ||
| 15994 | #undef putenv | ||
| 15995 | |||
| 15996 | static time_t time_t_max; | ||
| 15997 | static time_t time_t_min; | ||
| 15998 | |||
| 15999 | /* Values we'll use to set the TZ environment variable. */ | ||
| 16000 | static char *tz_strings[] = { | ||
| 16001 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | ||
| 16002 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | ||
| 16003 | }; | ||
| 16004 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | ||
| 16005 | |||
| 16006 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. | ||
| 16007 | Based on a problem report from Andreas Jaeger. */ | ||
| 16008 | static int | ||
| 16009 | spring_forward_gap () | ||
| 16010 | { | ||
| 16011 | /* glibc (up to about 1998-10-07) failed this test. */ | ||
| 16012 | struct tm tm; | ||
| 16013 | |||
| 16014 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | ||
| 16015 | instead of "TZ=America/Vancouver" in order to detect the bug even | ||
| 16016 | on systems that don't support the Olson extension, or don't have the | ||
| 16017 | full zoneinfo tables installed. */ | ||
| 16018 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | ||
| 16019 | |||
| 16020 | tm.tm_year = 98; | ||
| 16021 | tm.tm_mon = 3; | ||
| 16022 | tm.tm_mday = 5; | ||
| 16023 | tm.tm_hour = 2; | ||
| 16024 | tm.tm_min = 0; | ||
| 16025 | tm.tm_sec = 0; | ||
| 16026 | tm.tm_isdst = -1; | ||
| 16027 | return mktime (&tm) != (time_t) -1; | ||
| 16028 | } | ||
| 16029 | |||
| 16030 | static int | ||
| 16031 | mktime_test1 (time_t now) | ||
| 16032 | { | ||
| 16033 | struct tm *lt; | ||
| 16034 | return ! (lt = localtime (&now)) || mktime (lt) == now; | ||
| 16035 | } | ||
| 16036 | |||
| 16037 | static int | ||
| 16038 | mktime_test (time_t now) | ||
| 16039 | { | ||
| 16040 | return (mktime_test1 (now) | ||
| 16041 | && mktime_test1 ((time_t) (time_t_max - now)) | ||
| 16042 | && mktime_test1 ((time_t) (time_t_min + now))); | ||
| 16043 | } | ||
| 16044 | |||
| 16045 | static int | ||
| 16046 | irix_6_4_bug () | ||
| 16047 | { | ||
| 16048 | /* Based on code from Ariel Faigon. */ | ||
| 16049 | struct tm tm; | ||
| 16050 | tm.tm_year = 96; | ||
| 16051 | tm.tm_mon = 3; | ||
| 16052 | tm.tm_mday = 0; | ||
| 16053 | tm.tm_hour = 0; | ||
| 16054 | tm.tm_min = 0; | ||
| 16055 | tm.tm_sec = 0; | ||
| 16056 | tm.tm_isdst = -1; | ||
| 16057 | mktime (&tm); | ||
| 16058 | return tm.tm_mon == 2 && tm.tm_mday == 31; | ||
| 16059 | } | ||
| 16060 | |||
| 16061 | static int | ||
| 16062 | bigtime_test (int j) | ||
| 16063 | { | ||
| 16064 | struct tm tm; | ||
| 16065 | time_t now; | ||
| 16066 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | ||
| 16067 | now = mktime (&tm); | ||
| 16068 | if (now != (time_t) -1) | ||
| 16069 | { | ||
| 16070 | struct tm *lt = localtime (&now); | ||
| 16071 | if (! (lt | ||
| 16072 | && lt->tm_year == tm.tm_year | ||
| 16073 | && lt->tm_mon == tm.tm_mon | ||
| 16074 | && lt->tm_mday == tm.tm_mday | ||
| 16075 | && lt->tm_hour == tm.tm_hour | ||
| 16076 | && lt->tm_min == tm.tm_min | ||
| 16077 | && lt->tm_sec == tm.tm_sec | ||
| 16078 | && lt->tm_yday == tm.tm_yday | ||
| 16079 | && lt->tm_wday == tm.tm_wday | ||
| 16080 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | ||
| 16081 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | ||
| 16082 | return 0; | ||
| 16083 | } | ||
| 16084 | return 1; | ||
| 16085 | } | ||
| 16086 | |||
| 16087 | static int | ||
| 16088 | year_2050_test () | ||
| 16089 | { | ||
| 16090 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | ||
| 16091 | ignoring leap seconds. */ | ||
| 16092 | unsigned long int answer = 2527315200UL; | ||
| 16093 | |||
| 16094 | struct tm tm; | ||
| 16095 | time_t t; | ||
| 16096 | tm.tm_year = 2050 - 1900; | ||
| 16097 | tm.tm_mon = 2 - 1; | ||
| 16098 | tm.tm_mday = 1; | ||
| 16099 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | ||
| 16100 | tm.tm_isdst = -1; | ||
| 16101 | |||
| 16102 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | ||
| 16103 | instead of "TZ=America/Vancouver" in order to detect the bug even | ||
| 16104 | on systems that don't support the Olson extension, or don't have the | ||
| 16105 | full zoneinfo tables installed. */ | ||
| 16106 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | ||
| 16107 | |||
| 16108 | t = mktime (&tm); | ||
| 16109 | |||
| 16110 | /* Check that the result is either a failure, or close enough | ||
| 16111 | to the correct answer that we can assume the discrepancy is | ||
| 16112 | due to leap seconds. */ | ||
| 16113 | return (t == (time_t) -1 | ||
| 16114 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | ||
| 16115 | } | ||
| 16116 | |||
| 16117 | int | ||
| 16118 | main () | ||
| 16119 | { | ||
| 16120 | int result = 0; | ||
| 16121 | time_t t, delta; | ||
| 16122 | int i, j; | ||
| 16123 | int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1; | ||
| 16124 | int time_t_signed = ! ((time_t) 0 < (time_t) -1); | ||
| 16125 | |||
| 16126 | /* This test makes some buggy mktime implementations loop. | ||
| 16127 | Give up after 60 seconds; a mktime slower than that | ||
| 16128 | isn't worth using anyway. */ | ||
| 16129 | alarm (60); | ||
| 16130 | |||
| 16131 | time_t_max = (! time_t_signed | ||
| 16132 | ? (time_t) -1 | ||
| 16133 | : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1) | ||
| 16134 | * 2 + 1)); | ||
| 16135 | time_t_min = (! time_t_signed | ||
| 16136 | ? (time_t) 0 | ||
| 16137 | : time_t_signed_magnitude | ||
| 16138 | ? ~ (time_t) 0 | ||
| 16139 | : ~ time_t_max); | ||
| 16140 | |||
| 16141 | delta = time_t_max / 997; /* a suitable prime number */ | ||
| 16142 | for (i = 0; i < N_STRINGS; i++) | ||
| 16143 | { | ||
| 16144 | if (tz_strings[i]) | ||
| 16145 | putenv (tz_strings[i]); | ||
| 16146 | |||
| 16147 | for (t = 0; t <= time_t_max - delta; t += delta) | ||
| 16148 | if (! mktime_test (t)) | ||
| 16149 | result |= 1; | ||
| 16150 | if (! (mktime_test ((time_t) 1) | ||
| 16151 | && mktime_test ((time_t) (60 * 60)) | ||
| 16152 | && mktime_test ((time_t) (60 * 60 * 24)))) | ||
| 16153 | result |= 2; | ||
| 16154 | |||
| 16155 | for (j = 1; ; j <<= 1) | ||
| 16156 | if (! bigtime_test (j)) | ||
| 16157 | result |= 4; | ||
| 16158 | else if (INT_MAX / 2 < j) | ||
| 16159 | break; | ||
| 16160 | if (! bigtime_test (INT_MAX)) | ||
| 16161 | result |= 8; | ||
| 16162 | } | ||
| 16163 | if (! irix_6_4_bug ()) | ||
| 16164 | result |= 16; | ||
| 16165 | if (! spring_forward_gap ()) | ||
| 16166 | result |= 32; | ||
| 16167 | if (! year_2050_test ()) | ||
| 16168 | result |= 64; | ||
| 16169 | return result; | ||
| 16170 | } | ||
| 16171 | _ACEOF | ||
| 16172 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 16173 | ac_cv_func_working_mktime=yes | ||
| 16174 | else | ||
| 16175 | ac_cv_func_working_mktime=no | ||
| 16176 | fi | ||
| 16177 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 16178 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 16179 | fi | ||
| 16180 | |||
| 16181 | fi | ||
| 16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 | ||
| 16183 | $as_echo "$ac_cv_func_working_mktime" >&6; } | ||
| 16184 | if test $ac_cv_func_working_mktime = no; then | ||
| 16185 | |||
| 16186 | |||
| 16187 | |||
| 16188 | |||
| 16189 | |||
| 16190 | |||
| 16191 | |||
| 16192 | |||
| 16193 | gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext" | ||
| 16194 | |||
| 16195 | fi | ||
| 16196 | |||
| 16197 | if test $ac_cv_func_working_mktime = no; then | ||
| 16198 | REPLACE_MKTIME=1 | ||
| 16199 | |||
| 16200 | |||
| 16201 | |||
| 16202 | else | ||
| 16203 | REPLACE_MKTIME=0 | ||
| 16204 | fi | ||
| 16205 | |||
| 16206 | |||
| 16207 | |||
| 16208 | |||
| 16209 | GNULIB_MKTIME=1 | ||
| 16210 | |||
| 16211 | |||
| 16212 | |||
| 16213 | # Code from module multiarch: | ||
| 16214 | |||
| 16215 | # Code from module readlink: | ||
| 16216 | |||
| 16217 | |||
| 16218 | |||
| 16219 | if test $ac_cv_func_readlink = no; then | ||
| 16220 | HAVE_READLINK=0 | ||
| 16221 | |||
| 16222 | |||
| 16223 | |||
| 16224 | |||
| 16225 | |||
| 16226 | |||
| 16227 | |||
| 16228 | |||
| 16229 | gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" | ||
| 16230 | |||
| 16231 | |||
| 16232 | : | ||
| 16233 | |||
| 16234 | else | ||
| 16235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 | ||
| 16236 | $as_echo_n "checking whether readlink signature is correct... " >&6; } | ||
| 16237 | if test "${gl_cv_decl_readlink_works+set}" = set; then : | ||
| 16238 | $as_echo_n "(cached) " >&6 | ||
| 16239 | else | ||
| 16240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16241 | /* end confdefs.h. */ | ||
| 16242 | #include <unistd.h> | ||
| 16243 | /* Cause compilation failure if original declaration has wrong type. */ | ||
| 16244 | ssize_t readlink (const char *, char *, size_t); | ||
| 16245 | int | ||
| 16246 | main () | ||
| 16247 | { | ||
| 16248 | |||
| 16249 | ; | ||
| 16250 | return 0; | ||
| 16251 | } | ||
| 16252 | _ACEOF | ||
| 16253 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16254 | gl_cv_decl_readlink_works=yes | ||
| 16255 | else | ||
| 16256 | gl_cv_decl_readlink_works=no | ||
| 16257 | fi | ||
| 16258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 16259 | fi | ||
| 16260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 | ||
| 16261 | $as_echo "$gl_cv_decl_readlink_works" >&6; } | ||
| 16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 | ||
| 16263 | $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; } | ||
| 16264 | if test "${gl_cv_func_readlink_works+set}" = set; then : | ||
| 16265 | $as_echo_n "(cached) " >&6 | ||
| 16266 | else | ||
| 16267 | # We have readlink, so assume ln -s works. | ||
| 16268 | ln -s conftest.no-such conftest.link | ||
| 16269 | ln -s conftest.link conftest.lnk2 | ||
| 16270 | if test "$cross_compiling" = yes; then : | ||
| 16271 | gl_cv_func_readlink_works="guessing no" | ||
| 16272 | else | ||
| 16273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16274 | /* end confdefs.h. */ | ||
| 16275 | #include <unistd.h> | ||
| 16276 | |||
| 16277 | int | ||
| 16278 | main () | ||
| 16279 | { | ||
| 16280 | char buf[20]; | ||
| 16281 | return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; | ||
| 16282 | ; | ||
| 16283 | return 0; | ||
| 16284 | } | ||
| 16285 | _ACEOF | ||
| 16286 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 16287 | gl_cv_func_readlink_works=yes | ||
| 16288 | else | ||
| 16289 | gl_cv_func_readlink_works=no | ||
| 16290 | fi | ||
| 16291 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 16292 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 16293 | fi | ||
| 16294 | |||
| 16295 | rm -f conftest.link conftest.lnk2 | ||
| 16296 | fi | ||
| 16297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5 | ||
| 16298 | $as_echo "$gl_cv_func_readlink_works" >&6; } | ||
| 16299 | if test "$gl_cv_func_readlink_works" != yes; then | ||
| 16300 | |||
| 16301 | $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h | ||
| 16302 | |||
| 16303 | REPLACE_READLINK=1 | ||
| 16304 | |||
| 16305 | |||
| 16306 | |||
| 16307 | |||
| 16308 | |||
| 16309 | |||
| 16310 | |||
| 16311 | |||
| 16312 | gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" | ||
| 16313 | |||
| 16314 | elif test "$gl_cv_decl_readlink_works" != yes; then | ||
| 16315 | REPLACE_READLINK=1 | ||
| 16316 | |||
| 16317 | |||
| 16318 | |||
| 16319 | |||
| 16320 | |||
| 16321 | |||
| 16322 | |||
| 16323 | |||
| 16324 | gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" | ||
| 16325 | |||
| 16326 | fi | ||
| 16327 | fi | ||
| 16328 | |||
| 16329 | |||
| 16330 | |||
| 16331 | |||
| 16332 | GNULIB_READLINK=1 | ||
| 16333 | |||
| 16334 | |||
| 16335 | |||
| 16336 | # Code from module stat: | ||
| 16337 | |||
| 16338 | |||
| 16339 | |||
| 16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 | ||
| 16341 | $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } | ||
| 16342 | if test "${gl_cv_func_stat_dir_slash+set}" = set; then : | ||
| 16343 | $as_echo_n "(cached) " >&6 | ||
| 16344 | else | ||
| 16345 | if test "$cross_compiling" = yes; then : | ||
| 16346 | case $host_os in | ||
| 16347 | mingw*) gl_cv_func_stat_dir_slash="guessing no";; | ||
| 16348 | *) gl_cv_func_stat_dir_slash="guessing yes";; | ||
| 16349 | esac | ||
| 16350 | else | ||
| 16351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16352 | /* end confdefs.h. */ | ||
| 16353 | #include <sys/stat.h> | ||
| 16354 | |||
| 16355 | int | ||
| 16356 | main () | ||
| 16357 | { | ||
| 16358 | struct stat st; return stat (".", &st) != stat ("./", &st); | ||
| 16359 | ; | ||
| 16360 | return 0; | ||
| 16361 | } | ||
| 16362 | _ACEOF | ||
| 16363 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 16364 | gl_cv_func_stat_dir_slash=yes | ||
| 16365 | else | ||
| 16366 | gl_cv_func_stat_dir_slash=no | ||
| 16367 | fi | ||
| 16368 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 16369 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 16370 | fi | ||
| 16371 | |||
| 16372 | fi | ||
| 16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 | ||
| 16374 | $as_echo "$gl_cv_func_stat_dir_slash" >&6; } | ||
| 16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 | ||
| 16376 | $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } | ||
| 16377 | if test "${gl_cv_func_stat_file_slash+set}" = set; then : | ||
| 16378 | $as_echo_n "(cached) " >&6 | ||
| 16379 | else | ||
| 16380 | touch conftest.tmp | ||
| 16381 | # Assume that if we have lstat, we can also check symlinks. | ||
| 16382 | if test $ac_cv_func_lstat = yes; then | ||
| 16383 | ln -s conftest.tmp conftest.lnk | ||
| 16384 | fi | ||
| 16385 | if test "$cross_compiling" = yes; then : | ||
| 16386 | gl_cv_func_stat_file_slash="guessing no" | ||
| 16387 | else | ||
| 16388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16389 | /* end confdefs.h. */ | ||
| 16390 | #include <sys/stat.h> | ||
| 16391 | |||
| 16392 | int | ||
| 16393 | main () | ||
| 16394 | { | ||
| 16395 | int result = 0; | ||
| 16396 | struct stat st; | ||
| 16397 | if (!stat ("conftest.tmp/", &st)) | ||
| 16398 | result |= 1; | ||
| 16399 | #if HAVE_LSTAT | ||
| 16400 | if (!stat ("conftest.lnk/", &st)) | ||
| 16401 | result |= 2; | ||
| 16402 | #endif | ||
| 16403 | return result; | ||
| 16404 | |||
| 16405 | ; | ||
| 16406 | return 0; | ||
| 16407 | } | ||
| 16408 | _ACEOF | ||
| 16409 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 16410 | gl_cv_func_stat_file_slash=yes | ||
| 16411 | else | ||
| 16412 | gl_cv_func_stat_file_slash=no | ||
| 16413 | fi | ||
| 16414 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 16415 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 16416 | fi | ||
| 16417 | |||
| 16418 | rm -f conftest.tmp conftest.lnk | ||
| 16419 | fi | ||
| 16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 | ||
| 16421 | $as_echo "$gl_cv_func_stat_file_slash" >&6; } | ||
| 16422 | case $gl_cv_func_stat_dir_slash in | ||
| 16423 | *no) REPLACE_STAT=1 | ||
| 16424 | |||
| 16425 | $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h | ||
| 16426 | ;; | ||
| 16427 | esac | ||
| 16428 | case $gl_cv_func_stat_file_slash in | ||
| 16429 | *no) REPLACE_STAT=1 | ||
| 16430 | |||
| 16431 | $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h | ||
| 16432 | ;; | ||
| 16433 | esac | ||
| 16434 | if test $REPLACE_STAT = 1; then | ||
| 16435 | |||
| 16436 | |||
| 16437 | |||
| 16438 | |||
| 16439 | |||
| 16440 | |||
| 16441 | |||
| 16442 | |||
| 16443 | gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" | ||
| 16444 | |||
| 16445 | |||
| 16446 | fi | ||
| 16447 | |||
| 16448 | |||
| 16449 | |||
| 16450 | |||
| 16451 | GNULIB_STAT=1 | ||
| 16452 | |||
| 16453 | |||
| 16454 | |||
| 16455 | # Code from module stdbool: | ||
| 16456 | |||
| 16457 | |||
| 16458 | |||
| 16459 | # Define two additional variables used in the Makefile substitution. | ||
| 16460 | |||
| 16461 | if test "$ac_cv_header_stdbool_h" = yes; then | ||
| 16462 | STDBOOL_H='' | ||
| 16463 | else | ||
| 16464 | STDBOOL_H='stdbool.h' | ||
| 16465 | fi | ||
| 16466 | |||
| 16467 | |||
| 16468 | if test "$ac_cv_type__Bool" = yes; then | ||
| 16469 | HAVE__BOOL=1 | ||
| 16470 | else | ||
| 16471 | HAVE__BOOL=0 | ||
| 16472 | fi | ||
| 16473 | |||
| 16474 | |||
| 16475 | # Code from module stddef: | ||
| 16476 | |||
| 16477 | |||
| 16478 | |||
| 16479 | if test $gt_cv_c_wchar_t = no; then | ||
| 16480 | HAVE_WCHAR_T=0 | ||
| 16481 | STDDEF_H=stddef.h | ||
| 16482 | fi | ||
| 16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 | ||
| 16484 | $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } | ||
| 16485 | if test "${gl_cv_decl_null_works+set}" = set; then : | ||
| 16486 | $as_echo_n "(cached) " >&6 | ||
| 16487 | else | ||
| 16488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16489 | /* end confdefs.h. */ | ||
| 16490 | #include <stddef.h> | ||
| 16491 | int test[2 * (sizeof NULL == sizeof (void *)) -1]; | ||
| 16492 | |||
| 16493 | int | ||
| 16494 | main () | ||
| 16495 | { | ||
| 16496 | |||
| 16497 | ; | ||
| 16498 | return 0; | ||
| 16499 | } | ||
| 16500 | _ACEOF | ||
| 16501 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16502 | gl_cv_decl_null_works=yes | ||
| 16503 | else | ||
| 16504 | gl_cv_decl_null_works=no | ||
| 16505 | fi | ||
| 16506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 16507 | fi | ||
| 16508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 | ||
| 16509 | $as_echo "$gl_cv_decl_null_works" >&6; } | ||
| 16510 | if test $gl_cv_decl_null_works = no; then | ||
| 16511 | REPLACE_NULL=1 | ||
| 16512 | STDDEF_H=stddef.h | ||
| 16513 | fi | ||
| 16514 | if test -n "$STDDEF_H"; then | ||
| 16515 | |||
| 16516 | |||
| 16517 | |||
| 16518 | |||
| 16519 | |||
| 16520 | |||
| 16521 | |||
| 16522 | |||
| 16523 | if test $gl_cv_have_include_next = yes; then | ||
| 16524 | gl_cv_next_stddef_h='<'stddef.h'>' | ||
| 16525 | else | ||
| 16526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 | ||
| 16527 | $as_echo_n "checking absolute name of <stddef.h>... " >&6; } | ||
| 16528 | if test "${gl_cv_next_stddef_h+set}" = set; then : | ||
| 16529 | $as_echo_n "(cached) " >&6 | ||
| 16530 | else | ||
| 16531 | |||
| 16532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16533 | /* end confdefs.h. */ | ||
| 16534 | #include <stddef.h> | ||
| 16535 | |||
| 16536 | _ACEOF | ||
| 16537 | case "$host_os" in | ||
| 16538 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 16539 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 16540 | esac | ||
| 16541 | gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 16542 | sed -n '\#/stddef.h#{ | ||
| 16543 | s#.*"\(.*/stddef.h\)".*#\1# | ||
| 16544 | s#^/[^/]#//&# | ||
| 16545 | p | ||
| 16546 | q | ||
| 16547 | }'`'"' | ||
| 16548 | |||
| 16549 | |||
| 16550 | fi | ||
| 16551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 | ||
| 16552 | $as_echo "$gl_cv_next_stddef_h" >&6; } | ||
| 16553 | fi | ||
| 16554 | NEXT_STDDEF_H=$gl_cv_next_stddef_h | ||
| 16555 | |||
| 16556 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 16557 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 16558 | gl_next_as_first_directive='<'stddef.h'>' | ||
| 16559 | else | ||
| 16560 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 16561 | gl_next_as_first_directive=$gl_cv_next_stddef_h | ||
| 16562 | fi | ||
| 16563 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive | ||
| 16564 | |||
| 16565 | |||
| 16566 | |||
| 16567 | |||
| 16568 | fi | ||
| 16569 | |||
| 16570 | # Code from module stdint: | ||
| 16571 | |||
| 16572 | |||
| 16573 | |||
| 16574 | if test $ac_cv_type_long_long_int = yes; then | ||
| 16575 | HAVE_LONG_LONG_INT=1 | ||
| 16576 | else | ||
| 16577 | HAVE_LONG_LONG_INT=0 | ||
| 16578 | fi | ||
| 16579 | |||
| 16580 | |||
| 16581 | if test $ac_cv_type_unsigned_long_long_int = yes; then | ||
| 16582 | HAVE_UNSIGNED_LONG_LONG_INT=1 | ||
| 16583 | else | ||
| 16584 | HAVE_UNSIGNED_LONG_LONG_INT=0 | ||
| 16585 | fi | ||
| 16586 | |||
| 16587 | |||
| 16588 | |||
| 16589 | if test $ac_cv_header_wchar_h = yes; then | ||
| 16590 | HAVE_WCHAR_H=1 | ||
| 16591 | else | ||
| 16592 | HAVE_WCHAR_H=0 | ||
| 16593 | fi | ||
| 16594 | |||
| 16595 | |||
| 16596 | if test $ac_cv_header_inttypes_h = yes; then | ||
| 16597 | HAVE_INTTYPES_H=1 | ||
| 16598 | else | ||
| 16599 | HAVE_INTTYPES_H=0 | ||
| 16600 | fi | ||
| 16601 | |||
| 16602 | |||
| 16603 | if test $ac_cv_header_sys_types_h = yes; then | ||
| 16604 | HAVE_SYS_TYPES_H=1 | ||
| 16605 | else | ||
| 16606 | HAVE_SYS_TYPES_H=0 | ||
| 16607 | fi | ||
| 16608 | |||
| 16609 | |||
| 16610 | |||
| 16611 | |||
| 16612 | |||
| 16613 | |||
| 16614 | |||
| 16615 | |||
| 16616 | |||
| 16617 | |||
| 16618 | |||
| 16619 | if test $gl_cv_have_include_next = yes; then | ||
| 16620 | gl_cv_next_stdint_h='<'stdint.h'>' | ||
| 16621 | else | ||
| 16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 | ||
| 16623 | $as_echo_n "checking absolute name of <stdint.h>... " >&6; } | ||
| 16624 | if test "${gl_cv_next_stdint_h+set}" = set; then : | ||
| 16625 | $as_echo_n "(cached) " >&6 | ||
| 16626 | else | ||
| 16627 | |||
| 16628 | if test $ac_cv_header_stdint_h = yes; then | ||
| 16629 | |||
| 16630 | |||
| 16631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16632 | /* end confdefs.h. */ | ||
| 16633 | #include <stdint.h> | ||
| 16634 | |||
| 16635 | _ACEOF | ||
| 16636 | case "$host_os" in | ||
| 16637 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 16638 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 16639 | esac | ||
| 16640 | gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 16641 | sed -n '\#/stdint.h#{ | ||
| 16642 | s#.*"\(.*/stdint.h\)".*#\1# | ||
| 16643 | s#^/[^/]#//&# | ||
| 16644 | p | ||
| 16645 | q | ||
| 16646 | }'`'"' | ||
| 16647 | else | ||
| 16648 | gl_cv_next_stdint_h='<'stdint.h'>' | ||
| 16649 | fi | ||
| 16650 | |||
| 16651 | |||
| 16652 | fi | ||
| 16653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 | ||
| 16654 | $as_echo "$gl_cv_next_stdint_h" >&6; } | ||
| 16655 | fi | ||
| 16656 | NEXT_STDINT_H=$gl_cv_next_stdint_h | ||
| 16657 | |||
| 16658 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 16659 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 16660 | gl_next_as_first_directive='<'stdint.h'>' | ||
| 16661 | else | ||
| 16662 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 16663 | gl_next_as_first_directive=$gl_cv_next_stdint_h | ||
| 16664 | fi | ||
| 16665 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive | ||
| 16666 | |||
| 16667 | |||
| 16668 | |||
| 16669 | |||
| 16670 | if test $ac_cv_header_stdint_h = yes; then | ||
| 16671 | HAVE_STDINT_H=1 | ||
| 16672 | else | ||
| 16673 | HAVE_STDINT_H=0 | ||
| 16674 | fi | ||
| 16675 | |||
| 16676 | |||
| 16677 | if test $ac_cv_header_stdint_h = yes; then | ||
| 16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 | ||
| 16679 | $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } | ||
| 16680 | if test "${gl_cv_header_working_stdint_h+set}" = set; then : | ||
| 16681 | $as_echo_n "(cached) " >&6 | ||
| 16682 | else | ||
| 16683 | gl_cv_header_working_stdint_h=no | ||
| 16684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16685 | /* end confdefs.h. */ | ||
| 16686 | |||
| 16687 | |||
| 16688 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16689 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16690 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | ||
| 16691 | #include <stdint.h> | ||
| 16692 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | ||
| 16693 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) | ||
| 16694 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | ||
| 16695 | #endif | ||
| 16696 | |||
| 16697 | |||
| 16698 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16699 | included before <wchar.h>. */ | ||
| 16700 | #include <stddef.h> | ||
| 16701 | #include <signal.h> | ||
| 16702 | #if HAVE_WCHAR_H | ||
| 16703 | # include <stdio.h> | ||
| 16704 | # include <time.h> | ||
| 16705 | # include <wchar.h> | ||
| 16706 | #endif | ||
| 16707 | |||
| 16708 | |||
| 16709 | #ifdef INT8_MAX | ||
| 16710 | int8_t a1 = INT8_MAX; | ||
| 16711 | int8_t a1min = INT8_MIN; | ||
| 16712 | #endif | ||
| 16713 | #ifdef INT16_MAX | ||
| 16714 | int16_t a2 = INT16_MAX; | ||
| 16715 | int16_t a2min = INT16_MIN; | ||
| 16716 | #endif | ||
| 16717 | #ifdef INT32_MAX | ||
| 16718 | int32_t a3 = INT32_MAX; | ||
| 16719 | int32_t a3min = INT32_MIN; | ||
| 16720 | #endif | ||
| 16721 | #ifdef INT64_MAX | ||
| 16722 | int64_t a4 = INT64_MAX; | ||
| 16723 | int64_t a4min = INT64_MIN; | ||
| 16724 | #endif | ||
| 16725 | #ifdef UINT8_MAX | ||
| 16726 | uint8_t b1 = UINT8_MAX; | ||
| 16727 | #else | ||
| 16728 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | ||
| 16729 | #endif | ||
| 16730 | #ifdef UINT16_MAX | ||
| 16731 | uint16_t b2 = UINT16_MAX; | ||
| 16732 | #endif | ||
| 16733 | #ifdef UINT32_MAX | ||
| 16734 | uint32_t b3 = UINT32_MAX; | ||
| 16735 | #endif | ||
| 16736 | #ifdef UINT64_MAX | ||
| 16737 | uint64_t b4 = UINT64_MAX; | ||
| 16738 | #endif | ||
| 16739 | int_least8_t c1 = INT8_C (0x7f); | ||
| 16740 | int_least8_t c1max = INT_LEAST8_MAX; | ||
| 16741 | int_least8_t c1min = INT_LEAST8_MIN; | ||
| 16742 | int_least16_t c2 = INT16_C (0x7fff); | ||
| 16743 | int_least16_t c2max = INT_LEAST16_MAX; | ||
| 16744 | int_least16_t c2min = INT_LEAST16_MIN; | ||
| 16745 | int_least32_t c3 = INT32_C (0x7fffffff); | ||
| 16746 | int_least32_t c3max = INT_LEAST32_MAX; | ||
| 16747 | int_least32_t c3min = INT_LEAST32_MIN; | ||
| 16748 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); | ||
| 16749 | int_least64_t c4max = INT_LEAST64_MAX; | ||
| 16750 | int_least64_t c4min = INT_LEAST64_MIN; | ||
| 16751 | uint_least8_t d1 = UINT8_C (0xff); | ||
| 16752 | uint_least8_t d1max = UINT_LEAST8_MAX; | ||
| 16753 | uint_least16_t d2 = UINT16_C (0xffff); | ||
| 16754 | uint_least16_t d2max = UINT_LEAST16_MAX; | ||
| 16755 | uint_least32_t d3 = UINT32_C (0xffffffff); | ||
| 16756 | uint_least32_t d3max = UINT_LEAST32_MAX; | ||
| 16757 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | ||
| 16758 | uint_least64_t d4max = UINT_LEAST64_MAX; | ||
| 16759 | int_fast8_t e1 = INT_FAST8_MAX; | ||
| 16760 | int_fast8_t e1min = INT_FAST8_MIN; | ||
| 16761 | int_fast16_t e2 = INT_FAST16_MAX; | ||
| 16762 | int_fast16_t e2min = INT_FAST16_MIN; | ||
| 16763 | int_fast32_t e3 = INT_FAST32_MAX; | ||
| 16764 | int_fast32_t e3min = INT_FAST32_MIN; | ||
| 16765 | int_fast64_t e4 = INT_FAST64_MAX; | ||
| 16766 | int_fast64_t e4min = INT_FAST64_MIN; | ||
| 16767 | uint_fast8_t f1 = UINT_FAST8_MAX; | ||
| 16768 | uint_fast16_t f2 = UINT_FAST16_MAX; | ||
| 16769 | uint_fast32_t f3 = UINT_FAST32_MAX; | ||
| 16770 | uint_fast64_t f4 = UINT_FAST64_MAX; | ||
| 16771 | #ifdef INTPTR_MAX | ||
| 16772 | intptr_t g = INTPTR_MAX; | ||
| 16773 | intptr_t gmin = INTPTR_MIN; | ||
| 16774 | #endif | ||
| 16775 | #ifdef UINTPTR_MAX | ||
| 16776 | uintptr_t h = UINTPTR_MAX; | ||
| 16777 | #endif | ||
| 16778 | intmax_t i = INTMAX_MAX; | ||
| 16779 | uintmax_t j = UINTMAX_MAX; | ||
| 16780 | |||
| 16781 | #include <limits.h> /* for CHAR_BIT */ | ||
| 16782 | #define TYPE_MINIMUM(t) \ | ||
| 16783 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) | ||
| 16784 | #define TYPE_MAXIMUM(t) \ | ||
| 16785 | ((t) ((t) 0 < (t) -1 \ | ||
| 16786 | ? (t) -1 \ | ||
| 16787 | : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) | ||
| 16788 | struct s { | ||
| 16789 | int check_PTRDIFF: | ||
| 16790 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | ||
| 16791 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | ||
| 16792 | ? 1 : -1; | ||
| 16793 | /* Detect bug in FreeBSD 6.0 / ia64. */ | ||
| 16794 | int check_SIG_ATOMIC: | ||
| 16795 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | ||
| 16796 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | ||
| 16797 | ? 1 : -1; | ||
| 16798 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | ||
| 16799 | int check_WCHAR: | ||
| 16800 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) | ||
| 16801 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | ||
| 16802 | ? 1 : -1; | ||
| 16803 | /* Detect bug in mingw. */ | ||
| 16804 | int check_WINT: | ||
| 16805 | WINT_MIN == TYPE_MINIMUM (wint_t) | ||
| 16806 | && WINT_MAX == TYPE_MAXIMUM (wint_t) | ||
| 16807 | ? 1 : -1; | ||
| 16808 | |||
| 16809 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | ||
| 16810 | int check_UINT8_C: | ||
| 16811 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | ||
| 16812 | int check_UINT16_C: | ||
| 16813 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | ||
| 16814 | |||
| 16815 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ | ||
| 16816 | #ifdef UINT8_MAX | ||
| 16817 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | ||
| 16818 | #endif | ||
| 16819 | #ifdef UINT16_MAX | ||
| 16820 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | ||
| 16821 | #endif | ||
| 16822 | #ifdef UINT32_MAX | ||
| 16823 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | ||
| 16824 | #endif | ||
| 16825 | #ifdef UINT64_MAX | ||
| 16826 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | ||
| 16827 | #endif | ||
| 16828 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | ||
| 16829 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | ||
| 16830 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | ||
| 16831 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | ||
| 16832 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | ||
| 16833 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | ||
| 16834 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | ||
| 16835 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | ||
| 16836 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | ||
| 16837 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | ||
| 16838 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | ||
| 16839 | }; | ||
| 16840 | |||
| 16841 | int | ||
| 16842 | main () | ||
| 16843 | { | ||
| 16844 | |||
| 16845 | ; | ||
| 16846 | return 0; | ||
| 16847 | } | ||
| 16848 | _ACEOF | ||
| 16849 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16850 | if test "$cross_compiling" = yes; then : | ||
| 16851 | gl_cv_header_working_stdint_h=yes | ||
| 16852 | |||
| 16853 | else | ||
| 16854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16855 | /* end confdefs.h. */ | ||
| 16856 | |||
| 16857 | |||
| 16858 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16859 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16860 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | ||
| 16861 | #include <stdint.h> | ||
| 16862 | |||
| 16863 | |||
| 16864 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16865 | included before <wchar.h>. */ | ||
| 16866 | #include <stddef.h> | ||
| 16867 | #include <signal.h> | ||
| 16868 | #if HAVE_WCHAR_H | ||
| 16869 | # include <stdio.h> | ||
| 16870 | # include <time.h> | ||
| 16871 | # include <wchar.h> | ||
| 16872 | #endif | ||
| 16873 | |||
| 16874 | |||
| 16875 | #include <stdio.h> | ||
| 16876 | #include <string.h> | ||
| 16877 | #define MVAL(macro) MVAL1(macro) | ||
| 16878 | #define MVAL1(expression) #expression | ||
| 16879 | static const char *macro_values[] = | ||
| 16880 | { | ||
| 16881 | #ifdef INT8_MAX | ||
| 16882 | MVAL (INT8_MAX), | ||
| 16883 | #endif | ||
| 16884 | #ifdef INT16_MAX | ||
| 16885 | MVAL (INT16_MAX), | ||
| 16886 | #endif | ||
| 16887 | #ifdef INT32_MAX | ||
| 16888 | MVAL (INT32_MAX), | ||
| 16889 | #endif | ||
| 16890 | #ifdef INT64_MAX | ||
| 16891 | MVAL (INT64_MAX), | ||
| 16892 | #endif | ||
| 16893 | #ifdef UINT8_MAX | ||
| 16894 | MVAL (UINT8_MAX), | ||
| 16895 | #endif | ||
| 16896 | #ifdef UINT16_MAX | ||
| 16897 | MVAL (UINT16_MAX), | ||
| 16898 | #endif | ||
| 16899 | #ifdef UINT32_MAX | ||
| 16900 | MVAL (UINT32_MAX), | ||
| 16901 | #endif | ||
| 16902 | #ifdef UINT64_MAX | ||
| 16903 | MVAL (UINT64_MAX), | ||
| 16904 | #endif | ||
| 16905 | NULL | ||
| 16906 | }; | ||
| 16907 | |||
| 16908 | int | ||
| 16909 | main () | ||
| 16910 | { | ||
| 16911 | |||
| 16912 | const char **mv; | ||
| 16913 | for (mv = macro_values; *mv != NULL; mv++) | ||
| 16914 | { | ||
| 16915 | const char *value = *mv; | ||
| 16916 | /* Test whether it looks like a cast expression. */ | ||
| 16917 | if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 | ||
| 16918 | || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 | ||
| 16919 | || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 | ||
| 16920 | || strncmp (value, "((int)"/*)*/, 6) == 0 | ||
| 16921 | || strncmp (value, "((signed short)"/*)*/, 15) == 0 | ||
| 16922 | || strncmp (value, "((signed char)"/*)*/, 14) == 0) | ||
| 16923 | return mv - macro_values + 1; | ||
| 16924 | } | ||
| 16925 | return 0; | ||
| 16926 | |||
| 16927 | ; | ||
| 16928 | return 0; | ||
| 16929 | } | ||
| 16930 | _ACEOF | ||
| 16931 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 16932 | gl_cv_header_working_stdint_h=yes | ||
| 16933 | fi | ||
| 16934 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 16935 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 16936 | fi | ||
| 16937 | |||
| 16938 | |||
| 16939 | fi | ||
| 16940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 16941 | |||
| 16942 | fi | ||
| 16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 | ||
| 16944 | $as_echo "$gl_cv_header_working_stdint_h" >&6; } | ||
| 16945 | fi | ||
| 16946 | if test "$gl_cv_header_working_stdint_h" = yes; then | ||
| 16947 | STDINT_H= | ||
| 16948 | else | ||
| 16949 | for ac_header in sys/inttypes.h sys/bitypes.h | ||
| 16950 | do : | ||
| 16951 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 16952 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
| 16953 | eval as_val=\$$as_ac_Header | ||
| 16954 | if test "x$as_val" = x""yes; then : | ||
| 16955 | cat >>confdefs.h <<_ACEOF | ||
| 16956 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 16957 | _ACEOF | ||
| 16958 | |||
| 16959 | fi | ||
| 16960 | |||
| 16961 | done | ||
| 16962 | |||
| 16963 | if test $ac_cv_header_sys_inttypes_h = yes; then | ||
| 16964 | HAVE_SYS_INTTYPES_H=1 | ||
| 16965 | else | ||
| 16966 | HAVE_SYS_INTTYPES_H=0 | ||
| 16967 | fi | ||
| 16968 | |||
| 16969 | if test $ac_cv_header_sys_bitypes_h = yes; then | ||
| 16970 | HAVE_SYS_BITYPES_H=1 | ||
| 16971 | else | ||
| 16972 | HAVE_SYS_BITYPES_H=0 | ||
| 16973 | fi | ||
| 16974 | |||
| 16975 | |||
| 16976 | |||
| 16977 | |||
| 16978 | if test $APPLE_UNIVERSAL_BUILD = 0; then | ||
| 16979 | |||
| 16980 | |||
| 16981 | for gltype in ptrdiff_t size_t ; do | ||
| 16982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | ||
| 16983 | $as_echo_n "checking for bit size of $gltype... " >&6; } | ||
| 16984 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 16985 | $as_echo_n "(cached) " >&6 | ||
| 16986 | else | ||
| 16987 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | ||
| 16988 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16989 | included before <wchar.h>. */ | ||
| 16990 | #include <stddef.h> | ||
| 16991 | #include <signal.h> | ||
| 16992 | #if HAVE_WCHAR_H | ||
| 16993 | # include <stdio.h> | ||
| 16994 | # include <time.h> | ||
| 16995 | # include <wchar.h> | ||
| 16996 | #endif | ||
| 16997 | |||
| 16998 | #include <limits.h>"; then : | ||
| 16999 | |||
| 17000 | else | ||
| 17001 | result=unknown | ||
| 17002 | fi | ||
| 17003 | |||
| 17004 | eval gl_cv_bitsizeof_${gltype}=\$result | ||
| 17005 | |||
| 17006 | fi | ||
| 17007 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | ||
| 17008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 17009 | $as_echo "$ac_res" >&6; } | ||
| 17010 | eval result=\$gl_cv_bitsizeof_${gltype} | ||
| 17011 | if test $result = unknown; then | ||
| 17012 | result=0 | ||
| 17013 | fi | ||
| 17014 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 17015 | cat >>confdefs.h <<_ACEOF | ||
| 17016 | #define BITSIZEOF_${GLTYPE} $result | ||
| 17017 | _ACEOF | ||
| 17018 | |||
| 17019 | eval BITSIZEOF_${GLTYPE}=\$result | ||
| 17020 | done | ||
| 17021 | |||
| 17022 | |||
| 17023 | fi | ||
| 17024 | |||
| 17025 | |||
| 17026 | for gltype in sig_atomic_t wchar_t wint_t ; do | ||
| 17027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | ||
| 17028 | $as_echo_n "checking for bit size of $gltype... " >&6; } | ||
| 17029 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 17030 | $as_echo_n "(cached) " >&6 | ||
| 17031 | else | ||
| 17032 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | ||
| 17033 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 17034 | included before <wchar.h>. */ | ||
| 17035 | #include <stddef.h> | ||
| 17036 | #include <signal.h> | ||
| 17037 | #if HAVE_WCHAR_H | ||
| 17038 | # include <stdio.h> | ||
| 17039 | # include <time.h> | ||
| 17040 | # include <wchar.h> | ||
| 17041 | #endif | ||
| 17042 | |||
| 17043 | #include <limits.h>"; then : | ||
| 17044 | |||
| 17045 | else | ||
| 17046 | result=unknown | ||
| 17047 | fi | ||
| 17048 | |||
| 17049 | eval gl_cv_bitsizeof_${gltype}=\$result | ||
| 17050 | |||
| 17051 | fi | ||
| 17052 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | ||
| 17053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 17054 | $as_echo "$ac_res" >&6; } | ||
| 17055 | eval result=\$gl_cv_bitsizeof_${gltype} | ||
| 17056 | if test $result = unknown; then | ||
| 17057 | result=0 | ||
| 17058 | fi | ||
| 17059 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 17060 | cat >>confdefs.h <<_ACEOF | ||
| 17061 | #define BITSIZEOF_${GLTYPE} $result | ||
| 17062 | _ACEOF | ||
| 17063 | |||
| 17064 | eval BITSIZEOF_${GLTYPE}=\$result | ||
| 17065 | done | ||
| 17066 | |||
| 17067 | |||
| 17068 | |||
| 17069 | |||
| 17070 | for gltype in sig_atomic_t wchar_t wint_t ; do | ||
| 17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 | ||
| 17072 | $as_echo_n "checking whether $gltype is signed... " >&6; } | ||
| 17073 | if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 17074 | $as_echo_n "(cached) " >&6 | ||
| 17075 | else | ||
| 17076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17077 | /* end confdefs.h. */ | ||
| 17078 | |||
| 17079 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 17080 | included before <wchar.h>. */ | ||
| 17081 | #include <stddef.h> | ||
| 17082 | #include <signal.h> | ||
| 17083 | #if HAVE_WCHAR_H | ||
| 17084 | # include <stdio.h> | ||
| 17085 | # include <time.h> | ||
| 17086 | # include <wchar.h> | ||
| 17087 | #endif | ||
| 17088 | |||
| 17089 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | ||
| 17090 | int | ||
| 17091 | main () | ||
| 17092 | { | ||
| 17093 | |||
| 17094 | ; | ||
| 17095 | return 0; | ||
| 17096 | } | ||
| 17097 | _ACEOF | ||
| 17098 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 17099 | result=yes | ||
| 17100 | else | ||
| 17101 | result=no | ||
| 17102 | fi | ||
| 17103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 17104 | eval gl_cv_type_${gltype}_signed=\$result | ||
| 17105 | |||
| 17106 | fi | ||
| 17107 | eval ac_res=\$gl_cv_type_${gltype}_signed | ||
| 17108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 17109 | $as_echo "$ac_res" >&6; } | ||
| 17110 | eval result=\$gl_cv_type_${gltype}_signed | ||
| 17111 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 17112 | if test "$result" = yes; then | ||
| 17113 | cat >>confdefs.h <<_ACEOF | ||
| 17114 | #define HAVE_SIGNED_${GLTYPE} 1 | ||
| 17115 | _ACEOF | ||
| 17116 | |||
| 17117 | eval HAVE_SIGNED_${GLTYPE}=1 | ||
| 17118 | else | ||
| 17119 | eval HAVE_SIGNED_${GLTYPE}=0 | ||
| 17120 | fi | ||
| 17121 | done | ||
| 17122 | |||
| 17123 | |||
| 17124 | gl_cv_type_ptrdiff_t_signed=yes | ||
| 17125 | gl_cv_type_size_t_signed=no | ||
| 17126 | if test $APPLE_UNIVERSAL_BUILD = 0; then | ||
| 17127 | |||
| 17128 | |||
| 17129 | for gltype in ptrdiff_t size_t ; do | ||
| 17130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | ||
| 17131 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | ||
| 17132 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 17133 | $as_echo_n "(cached) " >&6 | ||
| 17134 | else | ||
| 17135 | eval gl_cv_type_${gltype}_suffix=no | ||
| 17136 | eval result=\$gl_cv_type_${gltype}_signed | ||
| 17137 | if test "$result" = yes; then | ||
| 17138 | glsufu= | ||
| 17139 | else | ||
| 17140 | glsufu=u | ||
| 17141 | fi | ||
| 17142 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | ||
| 17143 | case $glsuf in | ||
| 17144 | '') gltype1='int';; | ||
| 17145 | l) gltype1='long int';; | ||
| 17146 | ll) gltype1='long long int';; | ||
| 17147 | i64) gltype1='__int64';; | ||
| 17148 | u) gltype1='unsigned int';; | ||
| 17149 | ul) gltype1='unsigned long int';; | ||
| 17150 | ull) gltype1='unsigned long long int';; | ||
| 17151 | ui64)gltype1='unsigned __int64';; | ||
| 17152 | esac | ||
| 17153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17154 | /* end confdefs.h. */ | ||
| 17155 | |||
| 17156 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 17157 | included before <wchar.h>. */ | ||
| 17158 | #include <stddef.h> | ||
| 17159 | #include <signal.h> | ||
| 17160 | #if HAVE_WCHAR_H | ||
| 17161 | # include <stdio.h> | ||
| 17162 | # include <time.h> | ||
| 17163 | # include <wchar.h> | ||
| 17164 | #endif | ||
| 17165 | |||
| 17166 | extern $gltype foo; | ||
| 17167 | extern $gltype1 foo; | ||
| 17168 | int | ||
| 17169 | main () | ||
| 17170 | { | ||
| 17171 | |||
| 17172 | ; | ||
| 17173 | return 0; | ||
| 17174 | } | ||
| 17175 | _ACEOF | ||
| 17176 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 17177 | eval gl_cv_type_${gltype}_suffix=\$glsuf | ||
| 17178 | fi | ||
| 17179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 17180 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 17181 | test "$result" != no && break | ||
| 17182 | done | ||
| 17183 | fi | ||
| 17184 | eval ac_res=\$gl_cv_type_${gltype}_suffix | ||
| 17185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 17186 | $as_echo "$ac_res" >&6; } | ||
| 17187 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 17188 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 17189 | test "$result" = no && result= | ||
| 17190 | eval ${GLTYPE}_SUFFIX=\$result | ||
| 17191 | cat >>confdefs.h <<_ACEOF | ||
| 17192 | #define ${GLTYPE}_SUFFIX $result | ||
| 17193 | _ACEOF | ||
| 17194 | |||
| 17195 | done | ||
| 17196 | |||
| 17197 | |||
| 17198 | fi | ||
| 17199 | |||
| 17200 | |||
| 17201 | for gltype in sig_atomic_t wchar_t wint_t ; do | ||
| 17202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | ||
| 17203 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | ||
| 17204 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
| 17205 | $as_echo_n "(cached) " >&6 | ||
| 17206 | else | ||
| 17207 | eval gl_cv_type_${gltype}_suffix=no | ||
| 17208 | eval result=\$gl_cv_type_${gltype}_signed | ||
| 17209 | if test "$result" = yes; then | ||
| 17210 | glsufu= | ||
| 17211 | else | ||
| 17212 | glsufu=u | ||
| 17213 | fi | ||
| 17214 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | ||
| 17215 | case $glsuf in | ||
| 17216 | '') gltype1='int';; | ||
| 17217 | l) gltype1='long int';; | ||
| 17218 | ll) gltype1='long long int';; | ||
| 17219 | i64) gltype1='__int64';; | ||
| 17220 | u) gltype1='unsigned int';; | ||
| 17221 | ul) gltype1='unsigned long int';; | ||
| 17222 | ull) gltype1='unsigned long long int';; | ||
| 17223 | ui64)gltype1='unsigned __int64';; | ||
| 17224 | esac | ||
| 17225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17226 | /* end confdefs.h. */ | ||
| 17227 | |||
| 17228 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 17229 | included before <wchar.h>. */ | ||
| 17230 | #include <stddef.h> | ||
| 17231 | #include <signal.h> | ||
| 17232 | #if HAVE_WCHAR_H | ||
| 17233 | # include <stdio.h> | ||
| 17234 | # include <time.h> | ||
| 17235 | # include <wchar.h> | ||
| 17236 | #endif | ||
| 17237 | |||
| 17238 | extern $gltype foo; | ||
| 17239 | extern $gltype1 foo; | ||
| 17240 | int | ||
| 17241 | main () | ||
| 17242 | { | ||
| 17243 | |||
| 17244 | ; | ||
| 17245 | return 0; | ||
| 17246 | } | ||
| 17247 | _ACEOF | ||
| 17248 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 17249 | eval gl_cv_type_${gltype}_suffix=\$glsuf | ||
| 17250 | fi | ||
| 17251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 17252 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 17253 | test "$result" != no && break | ||
| 17254 | done | ||
| 17255 | fi | ||
| 17256 | eval ac_res=\$gl_cv_type_${gltype}_suffix | ||
| 17257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 17258 | $as_echo "$ac_res" >&6; } | ||
| 17259 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 17260 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 17261 | test "$result" = no && result= | ||
| 17262 | eval ${GLTYPE}_SUFFIX=\$result | ||
| 17263 | cat >>confdefs.h <<_ACEOF | ||
| 17264 | #define ${GLTYPE}_SUFFIX $result | ||
| 17265 | _ACEOF | ||
| 17266 | |||
| 17267 | done | ||
| 17268 | |||
| 17269 | |||
| 17270 | |||
| 17271 | STDINT_H=stdint.h | ||
| 17272 | fi | ||
| 17273 | |||
| 17274 | |||
| 17275 | # Code from module stdlib: | ||
| 17276 | |||
| 17277 | |||
| 17278 | |||
| 17279 | |||
| 17280 | |||
| 17281 | |||
| 17282 | |||
| 17283 | |||
| 17284 | |||
| 17285 | |||
| 17286 | if test $gl_cv_have_include_next = yes; then | ||
| 17287 | gl_cv_next_stdlib_h='<'stdlib.h'>' | ||
| 17288 | else | ||
| 17289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 | ||
| 17290 | $as_echo_n "checking absolute name of <stdlib.h>... " >&6; } | ||
| 17291 | if test "${gl_cv_next_stdlib_h+set}" = set; then : | ||
| 17292 | $as_echo_n "(cached) " >&6 | ||
| 17293 | else | ||
| 17294 | |||
| 17295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17296 | /* end confdefs.h. */ | ||
| 17297 | #include <stdlib.h> | ||
| 17298 | |||
| 17299 | _ACEOF | ||
| 17300 | case "$host_os" in | ||
| 17301 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 17302 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 17303 | esac | ||
| 17304 | gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 17305 | sed -n '\#/stdlib.h#{ | ||
| 17306 | s#.*"\(.*/stdlib.h\)".*#\1# | ||
| 17307 | s#^/[^/]#//&# | ||
| 17308 | p | ||
| 17309 | q | ||
| 17310 | }'`'"' | ||
| 17311 | |||
| 17312 | |||
| 17313 | fi | ||
| 17314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 | ||
| 17315 | $as_echo "$gl_cv_next_stdlib_h" >&6; } | ||
| 17316 | fi | ||
| 17317 | NEXT_STDLIB_H=$gl_cv_next_stdlib_h | ||
| 17318 | |||
| 17319 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 17320 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 17321 | gl_next_as_first_directive='<'stdlib.h'>' | ||
| 17322 | else | ||
| 17323 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 17324 | gl_next_as_first_directive=$gl_cv_next_stdlib_h | ||
| 17325 | fi | ||
| 17326 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive | ||
| 17327 | |||
| 17328 | |||
| 17329 | |||
| 17330 | |||
| 17331 | |||
| 17332 | |||
| 17333 | |||
| 17334 | # Code from module strftime: | ||
| 17335 | |||
| 17336 | |||
| 17337 | |||
| 17338 | |||
| 17339 | |||
| 17340 | |||
| 17341 | |||
| 17342 | |||
| 17343 | |||
| 17344 | |||
| 17345 | gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext" | ||
| 17346 | |||
| 17347 | |||
| 17348 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. | ||
| 17349 | |||
| 17350 | |||
| 17351 | |||
| 17352 | |||
| 17353 | |||
| 17354 | |||
| 17355 | |||
| 17356 | $as_echo "#define my_strftime nstrftime" >>confdefs.h | ||
| 17357 | |||
| 17358 | |||
| 17359 | |||
| 17360 | # Code from module symlink: | ||
| 17361 | |||
| 17362 | |||
| 17363 | |||
| 17364 | if test $ac_cv_func_symlink = no; then | ||
| 17365 | HAVE_SYMLINK=0 | ||
| 17366 | |||
| 17367 | |||
| 17368 | |||
| 17369 | |||
| 17370 | |||
| 17371 | |||
| 17372 | |||
| 17373 | |||
| 17374 | gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext" | ||
| 17375 | |||
| 17376 | else | ||
| 17377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 | ||
| 17378 | $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; } | ||
| 17379 | if test "${gl_cv_func_symlink_works+set}" = set; then : | ||
| 17380 | $as_echo_n "(cached) " >&6 | ||
| 17381 | else | ||
| 17382 | if test "$cross_compiling" = yes; then : | ||
| 17383 | gl_cv_func_symlink_works="guessing no" | ||
| 17384 | else | ||
| 17385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17386 | /* end confdefs.h. */ | ||
| 17387 | #include <unistd.h> | ||
| 17388 | |||
| 17389 | int | ||
| 17390 | main () | ||
| 17391 | { | ||
| 17392 | int result = 0; | ||
| 17393 | if (!symlink ("a", "conftest.link/")) | ||
| 17394 | result |= 1; | ||
| 17395 | if (symlink ("conftest.f", "conftest.lnk2")) | ||
| 17396 | result |= 2; | ||
| 17397 | else if (!symlink ("a", "conftest.lnk2/")) | ||
| 17398 | result |= 4; | ||
| 17399 | return result; | ||
| 17400 | |||
| 17401 | ; | ||
| 17402 | return 0; | ||
| 17403 | } | ||
| 17404 | _ACEOF | ||
| 17405 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 17406 | gl_cv_func_symlink_works=yes | ||
| 17407 | else | ||
| 17408 | gl_cv_func_symlink_works=no | ||
| 17409 | fi | ||
| 17410 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 17411 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 17412 | fi | ||
| 17413 | |||
| 17414 | rm -f conftest.f conftest.link conftest.lnk2 | ||
| 17415 | fi | ||
| 17416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 | ||
| 17417 | $as_echo "$gl_cv_func_symlink_works" >&6; } | ||
| 17418 | if test "$gl_cv_func_symlink_works" != yes; then | ||
| 17419 | REPLACE_SYMLINK=1 | ||
| 17420 | |||
| 17421 | |||
| 17422 | |||
| 17423 | |||
| 17424 | |||
| 17425 | |||
| 17426 | |||
| 17427 | |||
| 17428 | gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext" | ||
| 17429 | |||
| 17430 | fi | ||
| 17431 | fi | ||
| 17432 | |||
| 17433 | |||
| 17434 | |||
| 17435 | |||
| 17436 | GNULIB_SYMLINK=1 | ||
| 17437 | |||
| 17438 | |||
| 17439 | |||
| 17440 | # Code from module sys_stat: | ||
| 17441 | |||
| 17442 | |||
| 17443 | |||
| 17444 | |||
| 17445 | |||
| 17446 | |||
| 17447 | |||
| 17448 | |||
| 17449 | |||
| 17450 | |||
| 17451 | |||
| 17452 | |||
| 17453 | |||
| 17454 | |||
| 17455 | |||
| 17456 | |||
| 17457 | if test $gl_cv_have_include_next = yes; then | ||
| 17458 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' | ||
| 17459 | else | ||
| 17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 | ||
| 17461 | $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } | ||
| 17462 | if test "${gl_cv_next_sys_stat_h+set}" = set; then : | ||
| 17463 | $as_echo_n "(cached) " >&6 | ||
| 17464 | else | ||
| 17465 | |||
| 17466 | if test $ac_cv_header_sys_stat_h = yes; then | ||
| 17467 | |||
| 17468 | |||
| 17469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17470 | /* end confdefs.h. */ | ||
| 17471 | #include <sys/stat.h> | ||
| 17472 | |||
| 17473 | _ACEOF | ||
| 17474 | case "$host_os" in | ||
| 17475 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 17476 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 17477 | esac | ||
| 17478 | gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 17479 | sed -n '\#/sys/stat.h#{ | ||
| 17480 | s#.*"\(.*/sys/stat.h\)".*#\1# | ||
| 17481 | s#^/[^/]#//&# | ||
| 17482 | p | ||
| 17483 | q | ||
| 17484 | }'`'"' | ||
| 17485 | else | ||
| 17486 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' | ||
| 17487 | fi | ||
| 17488 | |||
| 17489 | |||
| 17490 | fi | ||
| 17491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 | ||
| 17492 | $as_echo "$gl_cv_next_sys_stat_h" >&6; } | ||
| 17493 | fi | ||
| 17494 | NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h | ||
| 17495 | |||
| 17496 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 17497 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 17498 | gl_next_as_first_directive='<'sys/stat.h'>' | ||
| 17499 | else | ||
| 17500 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 17501 | gl_next_as_first_directive=$gl_cv_next_sys_stat_h | ||
| 17502 | fi | ||
| 17503 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive | ||
| 17504 | |||
| 17505 | |||
| 17506 | |||
| 17507 | |||
| 17508 | |||
| 17509 | ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> | ||
| 17510 | #include <sys/stat.h> | ||
| 17511 | " | ||
| 17512 | if test "x$ac_cv_type_nlink_t" = x""yes; then : | ||
| 17513 | |||
| 17514 | else | ||
| 17515 | |||
| 17516 | $as_echo "#define nlink_t int" >>confdefs.h | ||
| 17517 | |||
| 17518 | fi | ||
| 17519 | |||
| 17520 | |||
| 17521 | |||
| 17522 | |||
| 17523 | |||
| 17524 | # Code from module time: | ||
| 17525 | |||
| 17526 | |||
| 17527 | |||
| 17528 | # Code from module time_r: | ||
| 17529 | |||
| 17530 | |||
| 17531 | |||
| 17532 | |||
| 17533 | |||
| 17534 | |||
| 17535 | |||
| 17536 | if test $ac_cv_have_decl_localtime_r = no; then | ||
| 17537 | HAVE_DECL_LOCALTIME_R=0 | ||
| 17538 | fi | ||
| 17539 | |||
| 17540 | |||
| 17541 | if test $ac_cv_func_localtime_r = yes; then | ||
| 17542 | HAVE_LOCALTIME_R=1 | ||
| 17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 | ||
| 17544 | $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; } | ||
| 17545 | if test "${gl_cv_time_r_posix+set}" = set; then : | ||
| 17546 | $as_echo_n "(cached) " >&6 | ||
| 17547 | else | ||
| 17548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17549 | /* end confdefs.h. */ | ||
| 17550 | #include <time.h> | ||
| 17551 | int | ||
| 17552 | main () | ||
| 17553 | { | ||
| 17554 | /* We don't need to append 'restrict's to the argument types, | ||
| 17555 | even though the POSIX signature has the 'restrict's, | ||
| 17556 | since C99 says they can't affect type compatibility. */ | ||
| 17557 | struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; | ||
| 17558 | if (ptr) return 0; | ||
| 17559 | /* Check the return type is a pointer. | ||
| 17560 | On HP-UX 10 it is 'int'. */ | ||
| 17561 | *localtime_r (0, 0); | ||
| 17562 | ; | ||
| 17563 | return 0; | ||
| 17564 | } | ||
| 17565 | |||
| 17566 | _ACEOF | ||
| 17567 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 17568 | gl_cv_time_r_posix=yes | ||
| 17569 | else | ||
| 17570 | gl_cv_time_r_posix=no | ||
| 17571 | fi | ||
| 17572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 17573 | |||
| 17574 | fi | ||
| 17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 | ||
| 17576 | $as_echo "$gl_cv_time_r_posix" >&6; } | ||
| 17577 | if test $gl_cv_time_r_posix = yes; then | ||
| 17578 | REPLACE_LOCALTIME_R=0 | ||
| 17579 | else | ||
| 17580 | REPLACE_LOCALTIME_R=1 | ||
| 17581 | fi | ||
| 17582 | else | ||
| 17583 | HAVE_LOCALTIME_R=0 | ||
| 17584 | fi | ||
| 17585 | if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then | ||
| 17586 | |||
| 17587 | |||
| 17588 | |||
| 17589 | |||
| 17590 | |||
| 17591 | |||
| 17592 | |||
| 17593 | |||
| 17594 | gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext" | ||
| 17595 | |||
| 17596 | |||
| 17597 | : | ||
| 17598 | |||
| 17599 | fi | ||
| 17600 | |||
| 17601 | |||
| 17602 | |||
| 17603 | |||
| 17604 | GNULIB_TIME_R=1 | ||
| 17605 | |||
| 17606 | |||
| 17607 | |||
| 17608 | # Code from module unistd: | ||
| 17609 | |||
| 17610 | |||
| 17611 | |||
| 17612 | |||
| 17613 | |||
| 17614 | |||
| 17615 | |||
| 17616 | |||
| 17617 | |||
| 17618 | |||
| 17619 | |||
| 17620 | |||
| 17621 | |||
| 17622 | if test $gl_cv_have_include_next = yes; then | ||
| 17623 | gl_cv_next_unistd_h='<'unistd.h'>' | ||
| 17624 | else | ||
| 17625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 | ||
| 17626 | $as_echo_n "checking absolute name of <unistd.h>... " >&6; } | ||
| 17627 | if test "${gl_cv_next_unistd_h+set}" = set; then : | ||
| 17628 | $as_echo_n "(cached) " >&6 | ||
| 17629 | else | ||
| 17630 | |||
| 17631 | if test $ac_cv_header_unistd_h = yes; then | ||
| 17632 | |||
| 17633 | |||
| 17634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17635 | /* end confdefs.h. */ | ||
| 17636 | #include <unistd.h> | ||
| 17637 | |||
| 17638 | _ACEOF | ||
| 17639 | case "$host_os" in | ||
| 17640 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 17641 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 17642 | esac | ||
| 17643 | gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 17644 | sed -n '\#/unistd.h#{ | ||
| 17645 | s#.*"\(.*/unistd.h\)".*#\1# | ||
| 17646 | s#^/[^/]#//&# | ||
| 17647 | p | ||
| 17648 | q | ||
| 17649 | }'`'"' | ||
| 17650 | else | ||
| 17651 | gl_cv_next_unistd_h='<'unistd.h'>' | ||
| 17652 | fi | ||
| 17653 | |||
| 17654 | |||
| 17655 | fi | ||
| 17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 | ||
| 17657 | $as_echo "$gl_cv_next_unistd_h" >&6; } | ||
| 17658 | fi | ||
| 17659 | NEXT_UNISTD_H=$gl_cv_next_unistd_h | ||
| 17660 | |||
| 17661 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 17662 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 17663 | gl_next_as_first_directive='<'unistd.h'>' | ||
| 17664 | else | ||
| 17665 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 17666 | gl_next_as_first_directive=$gl_cv_next_unistd_h | ||
| 17667 | fi | ||
| 17668 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive | ||
| 17669 | |||
| 17670 | |||
| 17671 | |||
| 17672 | |||
| 17673 | if test $ac_cv_header_unistd_h = yes; then | ||
| 17674 | HAVE_UNISTD_H=1 | ||
| 17675 | else | ||
| 17676 | HAVE_UNISTD_H=0 | ||
| 17677 | fi | ||
| 17678 | |||
| 17679 | |||
| 17680 | |||
| 17681 | |||
| 17682 | # Code from module warn-on-use: | ||
| 17683 | # End of code from modules | ||
| 17684 | |||
| 17685 | |||
| 17686 | |||
| 17687 | |||
| 17688 | |||
| 17689 | |||
| 17690 | |||
| 17691 | |||
| 17692 | |||
| 17693 | gltests_libdeps= | ||
| 17694 | gltests_ltlibdeps= | ||
| 17695 | |||
| 17696 | |||
| 17697 | |||
| 17698 | |||
| 17699 | |||
| 17700 | |||
| 17701 | |||
| 17702 | |||
| 17703 | |||
| 17704 | gl_source_base='tests' | ||
| 17705 | gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS | ||
| 17706 | |||
| 17707 | gl_module_indicator_condition=$gltests_WITNESS | ||
| 17708 | |||
| 17709 | |||
| 17710 | |||
| 17711 | |||
| 17712 | |||
| 17713 | |||
| 17714 | |||
| 17715 | |||
| 17716 | |||
| 17717 | LIBGNU_LIBDEPS="$gl_libdeps" | ||
| 17718 | |||
| 17719 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | ||
| 17720 | |||
| 17721 | |||
| 17722 | |||
| 17723 | # UNIX98 PTYs. | ||
| 17724 | for ac_func in grantpt | ||
| 17725 | do : | ||
| 17726 | ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" | ||
| 17727 | if test "x$ac_cv_func_grantpt" = x""yes; then : | ||
| 17728 | cat >>confdefs.h <<_ACEOF | ||
| 17729 | #define HAVE_GRANTPT 1 | ||
| 17730 | _ACEOF | ||
| 17731 | |||
| 17732 | fi | ||
| 17733 | done | ||
| 17734 | |||
| 17735 | |||
| 17736 | # PTY-related GNU extensions. | ||
| 17737 | for ac_func in getpt | ||
| 17738 | do : | ||
| 17739 | ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" | ||
| 17740 | if test "x$ac_cv_func_getpt" = x""yes; then : | ||
| 17741 | cat >>confdefs.h <<_ACEOF | ||
| 17742 | #define HAVE_GETPT 1 | ||
| 17743 | _ACEOF | ||
| 17744 | |||
| 17745 | fi | ||
| 17746 | done | ||
| 17747 | |||
| 17748 | |||
| 17749 | # Check this now, so that we will NOT find the above functions in ncurses. | ||
| 17750 | # That is because we have not set up to link ncurses in lib-src. | ||
| 17751 | # It's better to believe a function is not available | ||
| 17752 | # than to expect to find it in ncurses. | ||
| 17753 | # Also we need tputs and friends to be able to build at all. | ||
| 17754 | have_tputs_et_al=true | ||
| 17755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 | ||
| 17756 | $as_echo_n "checking for library containing tputs... " >&6; } | ||
| 17757 | if test "${ac_cv_search_tputs+set}" = set; then : | ||
| 17758 | $as_echo_n "(cached) " >&6 | ||
| 17759 | else | ||
| 17760 | ac_func_search_save_LIBS=$LIBS | ||
| 17761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17762 | /* end confdefs.h. */ | ||
| 17763 | |||
| 17764 | /* Override any GCC internal prototype to avoid an error. | ||
| 17765 | Use char because int might match the return type of a GCC | ||
| 17766 | builtin and then its argument prototype would still apply. */ | ||
| 17767 | #ifdef __cplusplus | ||
| 17768 | extern "C" | ||
| 17769 | #endif | ||
| 17770 | char tputs (); | ||
| 17771 | int | ||
| 17772 | main () | ||
| 17773 | { | ||
| 17774 | return tputs (); | ||
| 17775 | ; | ||
| 17776 | return 0; | ||
| 17777 | } | ||
| 17778 | _ACEOF | ||
| 17779 | for ac_lib in '' ncurses terminfo termcap; do | ||
| 17780 | if test -z "$ac_lib"; then | ||
| 17781 | ac_res="none required" | ||
| 17782 | else | ||
| 17783 | ac_res=-l$ac_lib | ||
| 17784 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
| 17785 | fi | ||
| 17786 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 17787 | ac_cv_search_tputs=$ac_res | ||
| 17788 | fi | ||
| 17789 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 17790 | conftest$ac_exeext | ||
| 17791 | if test "${ac_cv_search_tputs+set}" = set; then : | ||
| 17792 | break | ||
| 17793 | fi | ||
| 17794 | done | ||
| 17795 | if test "${ac_cv_search_tputs+set}" = set; then : | ||
| 17796 | |||
| 17797 | else | ||
| 17798 | ac_cv_search_tputs=no | ||
| 17799 | fi | ||
| 17800 | rm conftest.$ac_ext | ||
| 17801 | LIBS=$ac_func_search_save_LIBS | ||
| 17802 | fi | ||
| 17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 | ||
| 17804 | $as_echo "$ac_cv_search_tputs" >&6; } | ||
| 17805 | ac_res=$ac_cv_search_tputs | ||
| 17806 | if test "$ac_res" != no; then : | ||
| 17807 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
| 17808 | |||
| 17809 | else | ||
| 17810 | have_tputs_et_al=false | ||
| 17811 | fi | ||
| 17812 | |||
| 17813 | if test "$have_tputs_et_al" != true; then | ||
| 17814 | as_fn_error "I couldn't find termcap functions (tputs and friends). | ||
| 17815 | Maybe some development libraries/packages are missing? Try installing | ||
| 17816 | libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 | ||
| 17817 | fi | ||
| 17818 | # Must define this when any termcap library is found. | ||
| 17819 | |||
| 17820 | $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h | ||
| 17821 | |||
| 17822 | ## FIXME This was the cpp logic, but I am not sure it is right. | ||
| 17823 | ## The above test has not necessarily found libncurses. | ||
| 17824 | HAVE_LIBNCURSES=yes | ||
| 17825 | |||
| 17826 | ## Use terminfo instead of termcap? | ||
| 17827 | ## Note only system files NOT using terminfo are: | ||
| 17828 | ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and | ||
| 17829 | ## darwin|gnu without ncurses. | ||
| 17830 | TERMINFO=no | ||
| 17831 | LIBS_TERMCAP= | ||
| 17832 | case "$opsys" in | ||
| 17833 | ## cygwin: Fewer environment variables to go wrong, more terminal types. | ||
| 17834 | ## hpux10-20: Use the system provided termcap(3) library. | ||
| 17835 | ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this | ||
| 17836 | ## is necessary. Otherwise Emacs dumps core when run -nw. | ||
| 17837 | aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;; | ||
| 17838 | |||
| 17839 | ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2. | ||
| 17840 | ## The ncurses library has been moved out of the System framework in | ||
| 17841 | ## Mac OS X 10.2. So if configure detects it, set the command-line | ||
| 17842 | ## option to use it. | ||
| 17843 | darwin|gnu*) | ||
| 17844 | ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.) | ||
| 17845 | if test "x$HAVE_LIBNCURSES" = "xyes"; then | ||
| 17846 | TERMINFO=yes | ||
| 17847 | LIBS_TERMCAP="-lncurses" | ||
| 17848 | fi | ||
| 17849 | ;; | ||
| 17850 | |||
| 17851 | freebsd) | ||
| 17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5 | ||
| 17853 | $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } | ||
| 17854 | if test "${emacs_cv_freebsd_terminfo+set}" = set; then : | ||
| 17855 | $as_echo_n "(cached) " >&6 | ||
| 17856 | else | ||
| 17857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17858 | /* end confdefs.h. */ | ||
| 17859 | #include <osreldate.h> | ||
| 17860 | int | ||
| 17861 | main () | ||
| 17862 | { | ||
| 17863 | #if __FreeBSD_version < 400000 | ||
| 17864 | fail; | ||
| 17865 | #endif | ||
| 17866 | |||
| 17867 | ; | ||
| 17868 | return 0; | ||
| 17869 | } | ||
| 17870 | _ACEOF | ||
| 17871 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 17872 | emacs_cv_freebsd_terminfo=yes | ||
| 17873 | else | ||
| 17874 | emacs_cv_freebsd_terminfo=no | ||
| 17875 | fi | ||
| 17876 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 17877 | conftest$ac_exeext conftest.$ac_ext | ||
| 17878 | fi | ||
| 17879 | |||
| 17880 | |||
| 17881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5 | ||
| 17882 | $as_echo "$emacs_cv_freebsd_terminfo" >&6; } | ||
| 17883 | |||
| 17884 | if test $emacs_cv_freebsd_terminfo = yes; then | ||
| 17885 | TERMINFO=yes | ||
| 17886 | LIBS_TERMCAP="-lncurses" | ||
| 17887 | else | ||
| 17888 | LIBS_TERMCAP="-ltermcap" | ||
| 17889 | fi | ||
| 17890 | ;; | ||
| 17891 | |||
| 17892 | netbsd) | ||
| 17893 | if test $ac_cv_search_tputs = -lterminfo; then | ||
| 17894 | TERMINFO=yes | ||
| 17895 | LIBS_TERMCAP="-lterminfo" | ||
| 17896 | else | ||
| 17897 | LIBS_TERMCAP="-ltermcap" | ||
| 17898 | fi | ||
| 17899 | ;; | ||
| 17900 | |||
| 17901 | esac | ||
| 17902 | |||
| 17903 | case "$opsys" in | ||
| 17904 | ## hpux: Make sure we get select from libc rather than from libcurses | ||
| 17905 | ## because libcurses on HPUX 10.10 has a broken version of select. | ||
| 17906 | ## We used to use -lc -lcurses, but this may be cleaner. | ||
| 17907 | hpux*) LIBS_TERMCAP="-ltermcap" ;; | ||
| 17908 | |||
| 17909 | openbsd) LIBS_TERMCAP="-lncurses" ;; | ||
| 17910 | |||
| 17911 | ## Must use system termcap, if we use any termcap. It does special things. | ||
| 17912 | sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;; | ||
| 17913 | esac | ||
| 17914 | |||
| 17915 | TERMCAP_OBJ=tparam.o | ||
| 17916 | if test $TERMINFO = yes; then | ||
| 17917 | |||
| 17918 | $as_echo "#define TERMINFO 1" >>confdefs.h | ||
| 17919 | |||
| 17920 | |||
| 17921 | ## Default used to be -ltermcap. Add a case above if need something else. | ||
| 17922 | test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses" | ||
| 17923 | |||
| 17924 | TERMCAP_OBJ=terminfo.o | ||
| 17925 | fi | ||
| 17926 | |||
| 17927 | |||
| 17928 | |||
| 17929 | |||
| 17930 | # Do we have res_init, for detecting changes in /etc/resolv.conf? | ||
| 17931 | resolv=no | ||
| 17932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17933 | /* end confdefs.h. */ | ||
| 17934 | #include <netinet/in.h> | ||
| 17935 | #include <arpa/nameser.h> | ||
| 17936 | #include <resolv.h> | ||
| 17937 | int | ||
| 17938 | main () | ||
| 17939 | { | ||
| 17940 | return res_init(); | ||
| 17941 | ; | ||
| 17942 | return 0; | ||
| 17943 | } | ||
| 17944 | _ACEOF | ||
| 17945 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 17946 | have_res_init=yes | ||
| 17947 | else | ||
| 17948 | have_res_init=no | ||
| 17949 | fi | ||
| 17950 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 17951 | conftest$ac_exeext conftest.$ac_ext | ||
| 17952 | if test "$have_res_init" = no; then | ||
| 17953 | OLIBS="$LIBS" | ||
| 17954 | LIBS="$LIBS -lresolv" | ||
| 17955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 | ||
| 17956 | $as_echo_n "checking for res_init with -lresolv... " >&6; } | ||
| 17957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17958 | /* end confdefs.h. */ | ||
| 17959 | #include <netinet/in.h> | ||
| 17960 | #include <arpa/nameser.h> | ||
| 17961 | #include <resolv.h> | ||
| 17962 | int | ||
| 17963 | main () | ||
| 17964 | { | ||
| 17965 | return res_init(); | ||
| 17966 | ; | ||
| 17967 | return 0; | ||
| 17968 | } | ||
| 17969 | _ACEOF | ||
| 17970 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 17971 | have_res_init=yes | ||
| 17972 | else | ||
| 17973 | have_res_init=no | ||
| 17974 | fi | ||
| 17975 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 17976 | conftest$ac_exeext conftest.$ac_ext | ||
| 17977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 | ||
| 17978 | $as_echo "$have_res_init" >&6; } | ||
| 17979 | if test "$have_res_init" = yes ; then | ||
| 17980 | resolv=yes | ||
| 17981 | fi | ||
| 17982 | LIBS="$OLIBS" | ||
| 17983 | fi | ||
| 17984 | |||
| 17985 | if test "$have_res_init" = yes; then | ||
| 17986 | |||
| 17987 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | ||
| 17988 | |||
| 17989 | fi | ||
| 17990 | |||
| 17991 | # Do we need the Hesiod library to provide the support routines? | ||
| 17992 | LIBHESIOD= | ||
| 17993 | if test "$with_hesiod" != no ; then | ||
| 17994 | # Don't set $LIBS here -- see comments above. FIXME which comments? | ||
| 17995 | ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" | ||
| 17996 | if test "x$ac_cv_func_res_send" = x""yes; then : | ||
| 17997 | |||
| 17998 | else | ||
| 17999 | ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" | ||
| 18000 | if test "x$ac_cv_func___res_send" = x""yes; then : | ||
| 18001 | |||
| 18002 | else | ||
| 18003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 | ||
| 18004 | $as_echo_n "checking for res_send in -lresolv... " >&6; } | ||
| 18005 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then : | ||
| 18006 | $as_echo_n "(cached) " >&6 | ||
| 18007 | else | ||
| 18008 | ac_check_lib_save_LIBS=$LIBS | ||
| 18009 | LIBS="-lresolv $LIBS" | ||
| 18010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18011 | /* end confdefs.h. */ | ||
| 18012 | |||
| 18013 | /* Override any GCC internal prototype to avoid an error. | ||
| 18014 | Use char because int might match the return type of a GCC | ||
| 18015 | builtin and then its argument prototype would still apply. */ | ||
| 18016 | #ifdef __cplusplus | ||
| 18017 | extern "C" | ||
| 18018 | #endif | ||
| 18019 | char res_send (); | ||
| 18020 | int | ||
| 18021 | main () | ||
| 18022 | { | ||
| 18023 | return res_send (); | ||
| 18024 | ; | ||
| 18025 | return 0; | ||
| 18026 | } | ||
| 18027 | _ACEOF | ||
| 18028 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18029 | ac_cv_lib_resolv_res_send=yes | ||
| 18030 | else | ||
| 18031 | ac_cv_lib_resolv_res_send=no | ||
| 18032 | fi | ||
| 18033 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18034 | conftest$ac_exeext conftest.$ac_ext | ||
| 18035 | LIBS=$ac_check_lib_save_LIBS | ||
| 18036 | fi | ||
| 18037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 | ||
| 18038 | $as_echo "$ac_cv_lib_resolv_res_send" >&6; } | ||
| 18039 | if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : | ||
| 18040 | resolv=yes | ||
| 18041 | else | ||
| 18042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 | ||
| 18043 | $as_echo_n "checking for __res_send in -lresolv... " >&6; } | ||
| 18044 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then : | ||
| 18045 | $as_echo_n "(cached) " >&6 | ||
| 18046 | else | ||
| 18047 | ac_check_lib_save_LIBS=$LIBS | ||
| 18048 | LIBS="-lresolv $LIBS" | ||
| 18049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18050 | /* end confdefs.h. */ | ||
| 18051 | |||
| 18052 | /* Override any GCC internal prototype to avoid an error. | ||
| 18053 | Use char because int might match the return type of a GCC | ||
| 18054 | builtin and then its argument prototype would still apply. */ | ||
| 18055 | #ifdef __cplusplus | ||
| 18056 | extern "C" | ||
| 18057 | #endif | ||
| 18058 | char __res_send (); | ||
| 18059 | int | ||
| 18060 | main () | ||
| 18061 | { | ||
| 18062 | return __res_send (); | ||
| 18063 | ; | ||
| 18064 | return 0; | ||
| 18065 | } | ||
| 18066 | _ACEOF | ||
| 18067 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18068 | ac_cv_lib_resolv___res_send=yes | ||
| 18069 | else | ||
| 18070 | ac_cv_lib_resolv___res_send=no | ||
| 18071 | fi | ||
| 18072 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18073 | conftest$ac_exeext conftest.$ac_ext | ||
| 18074 | LIBS=$ac_check_lib_save_LIBS | ||
| 18075 | fi | ||
| 18076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 | ||
| 18077 | $as_echo "$ac_cv_lib_resolv___res_send" >&6; } | ||
| 18078 | if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : | ||
| 18079 | resolv=yes | ||
| 18080 | fi | ||
| 18081 | |||
| 18082 | fi | ||
| 18083 | |||
| 18084 | fi | ||
| 18085 | |||
| 18086 | fi | ||
| 18087 | |||
| 18088 | if test "$resolv" = yes ; then | ||
| 18089 | RESOLVLIB=-lresolv | ||
| 18090 | else | ||
| 18091 | RESOLVLIB= | ||
| 18092 | fi | ||
| 18093 | ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" | ||
| 18094 | if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : | ||
| 18095 | |||
| 18096 | else | ||
| 18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 | ||
| 18098 | $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } | ||
| 18099 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : | ||
| 18100 | $as_echo_n "(cached) " >&6 | ||
| 18101 | else | ||
| 18102 | ac_check_lib_save_LIBS=$LIBS | ||
| 18103 | LIBS="-lhesiod $RESOLVLIB $LIBS" | ||
| 18104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18105 | /* end confdefs.h. */ | ||
| 18106 | |||
| 18107 | /* Override any GCC internal prototype to avoid an error. | ||
| 18108 | Use char because int might match the return type of a GCC | ||
| 18109 | builtin and then its argument prototype would still apply. */ | ||
| 18110 | #ifdef __cplusplus | ||
| 18111 | extern "C" | ||
| 18112 | #endif | ||
| 18113 | char hes_getmailhost (); | ||
| 18114 | int | ||
| 18115 | main () | ||
| 18116 | { | ||
| 18117 | return hes_getmailhost (); | ||
| 18118 | ; | ||
| 18119 | return 0; | ||
| 18120 | } | ||
| 18121 | _ACEOF | ||
| 18122 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18123 | ac_cv_lib_hesiod_hes_getmailhost=yes | ||
| 18124 | else | ||
| 18125 | ac_cv_lib_hesiod_hes_getmailhost=no | ||
| 18126 | fi | ||
| 18127 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18128 | conftest$ac_exeext conftest.$ac_ext | ||
| 18129 | LIBS=$ac_check_lib_save_LIBS | ||
| 18130 | fi | ||
| 18131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 | ||
| 18132 | $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | ||
| 18133 | if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : | ||
| 18134 | hesiod=yes | ||
| 18135 | else | ||
| 18136 | : | ||
| 18137 | fi | ||
| 18138 | |||
| 18139 | fi | ||
| 18140 | |||
| 18141 | |||
| 18142 | if test x"$hesiod" = xyes; then | ||
| 18143 | |||
| 18144 | $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h | ||
| 18145 | |||
| 18146 | LIBHESIOD=-lhesiod | ||
| 18147 | fi | ||
| 18148 | fi | ||
| 18149 | |||
| 18150 | |||
| 18151 | # Do we need libresolv (due to res_init or Hesiod)? | ||
| 18152 | if test "$resolv" = yes ; then | ||
| 18153 | |||
| 18154 | $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h | ||
| 18155 | |||
| 18156 | LIBRESOLV=-lresolv | ||
| 18157 | else | ||
| 18158 | LIBRESOLV= | ||
| 18159 | fi | ||
| 18160 | |||
| 18161 | |||
| 18162 | # These tell us which Kerberos-related libraries to use. | ||
| 18163 | COM_ERRLIB= | ||
| 18164 | CRYPTOLIB= | ||
| 18165 | KRB5LIB= | ||
| 18166 | DESLIB= | ||
| 18167 | KRB4LIB= | ||
| 18168 | |||
| 18169 | if test "${with_kerberos}" != no; then | ||
| 18170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 | ||
| 18171 | $as_echo_n "checking for com_err in -lcom_err... " >&6; } | ||
| 18172 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then : | ||
| 18173 | $as_echo_n "(cached) " >&6 | ||
| 18174 | else | ||
| 18175 | ac_check_lib_save_LIBS=$LIBS | ||
| 18176 | LIBS="-lcom_err $LIBS" | ||
| 18177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18178 | /* end confdefs.h. */ | ||
| 18179 | |||
| 18180 | /* Override any GCC internal prototype to avoid an error. | ||
| 18181 | Use char because int might match the return type of a GCC | ||
| 18182 | builtin and then its argument prototype would still apply. */ | ||
| 18183 | #ifdef __cplusplus | ||
| 18184 | extern "C" | ||
| 18185 | #endif | ||
| 18186 | char com_err (); | ||
| 18187 | int | ||
| 18188 | main () | ||
| 18189 | { | ||
| 18190 | return com_err (); | ||
| 18191 | ; | ||
| 18192 | return 0; | ||
| 18193 | } | ||
| 18194 | _ACEOF | ||
| 18195 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18196 | ac_cv_lib_com_err_com_err=yes | ||
| 18197 | else | ||
| 18198 | ac_cv_lib_com_err_com_err=no | ||
| 18199 | fi | ||
| 18200 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18201 | conftest$ac_exeext conftest.$ac_ext | ||
| 18202 | LIBS=$ac_check_lib_save_LIBS | ||
| 18203 | fi | ||
| 18204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 | ||
| 18205 | $as_echo "$ac_cv_lib_com_err_com_err" >&6; } | ||
| 18206 | if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : | ||
| 18207 | have_com_err=yes | ||
| 18208 | else | ||
| 18209 | have_com_err=no | ||
| 18210 | fi | ||
| 18211 | |||
| 18212 | if test $have_com_err = yes; then | ||
| 18213 | COM_ERRLIB=-lcom_err | ||
| 18214 | LIBS="$COM_ERRLIB $LIBS" | ||
| 18215 | |||
| 18216 | $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h | ||
| 18217 | |||
| 18218 | fi | ||
| 18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | ||
| 18220 | $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } | ||
| 18221 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : | ||
| 18222 | $as_echo_n "(cached) " >&6 | ||
| 18223 | else | ||
| 18224 | ac_check_lib_save_LIBS=$LIBS | ||
| 18225 | LIBS="-lcrypto $LIBS" | ||
| 18226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18227 | /* end confdefs.h. */ | ||
| 18228 | |||
| 18229 | /* Override any GCC internal prototype to avoid an error. | ||
| 18230 | Use char because int might match the return type of a GCC | ||
| 18231 | builtin and then its argument prototype would still apply. */ | ||
| 18232 | #ifdef __cplusplus | ||
| 18233 | extern "C" | ||
| 18234 | #endif | ||
| 18235 | char mit_des_cbc_encrypt (); | ||
| 18236 | int | ||
| 18237 | main () | ||
| 18238 | { | ||
| 18239 | return mit_des_cbc_encrypt (); | ||
| 18240 | ; | ||
| 18241 | return 0; | ||
| 18242 | } | ||
| 18243 | _ACEOF | ||
| 18244 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18245 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | ||
| 18246 | else | ||
| 18247 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no | ||
| 18248 | fi | ||
| 18249 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18250 | conftest$ac_exeext conftest.$ac_ext | ||
| 18251 | LIBS=$ac_check_lib_save_LIBS | ||
| 18252 | fi | ||
| 18253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 | ||
| 18254 | $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | ||
| 18255 | if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : | ||
| 18256 | have_crypto=yes | ||
| 18257 | else | ||
| 18258 | have_crypto=no | ||
| 18259 | fi | ||
| 18260 | |||
| 18261 | if test $have_crypto = yes; then | ||
| 18262 | CRYPTOLIB=-lcrypto | ||
| 18263 | LIBS="$CRYPTOLIB $LIBS" | ||
| 18264 | |||
| 18265 | $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h | ||
| 18266 | |||
| 18267 | fi | ||
| 18268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | ||
| 18269 | $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } | ||
| 18270 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : | ||
| 18271 | $as_echo_n "(cached) " >&6 | ||
| 18272 | else | ||
| 18273 | ac_check_lib_save_LIBS=$LIBS | ||
| 18274 | LIBS="-lk5crypto $LIBS" | ||
| 18275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18276 | /* end confdefs.h. */ | ||
| 18277 | |||
| 18278 | /* Override any GCC internal prototype to avoid an error. | ||
| 18279 | Use char because int might match the return type of a GCC | ||
| 18280 | builtin and then its argument prototype would still apply. */ | ||
| 18281 | #ifdef __cplusplus | ||
| 18282 | extern "C" | ||
| 18283 | #endif | ||
| 18284 | char mit_des_cbc_encrypt (); | ||
| 18285 | int | ||
| 18286 | main () | ||
| 18287 | { | ||
| 18288 | return mit_des_cbc_encrypt (); | ||
| 18289 | ; | ||
| 18290 | return 0; | ||
| 18291 | } | ||
| 18292 | _ACEOF | ||
| 18293 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18294 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | ||
| 18295 | else | ||
| 18296 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | ||
| 18297 | fi | ||
| 18298 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18299 | conftest$ac_exeext conftest.$ac_ext | ||
| 18300 | LIBS=$ac_check_lib_save_LIBS | ||
| 18301 | fi | ||
| 18302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 | ||
| 18303 | $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | ||
| 18304 | if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : | ||
| 18305 | have_k5crypto=yes | ||
| 18306 | else | ||
| 18307 | have_k5crypto=no | ||
| 18308 | fi | ||
| 18309 | |||
| 18310 | if test $have_k5crypto = yes; then | ||
| 18311 | CRYPTOLIB=-lk5crypto | ||
| 18312 | LIBS="$CRYPTOLIB $LIBS" | ||
| 18313 | |||
| 18314 | $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h | ||
| 18315 | |||
| 18316 | fi | ||
| 18317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 | ||
| 18318 | $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } | ||
| 18319 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : | ||
| 18320 | $as_echo_n "(cached) " >&6 | ||
| 18321 | else | ||
| 18322 | ac_check_lib_save_LIBS=$LIBS | ||
| 18323 | LIBS="-lkrb5 $LIBS" | ||
| 18324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18325 | /* end confdefs.h. */ | ||
| 18326 | |||
| 18327 | /* Override any GCC internal prototype to avoid an error. | ||
| 18328 | Use char because int might match the return type of a GCC | ||
| 18329 | builtin and then its argument prototype would still apply. */ | ||
| 18330 | #ifdef __cplusplus | ||
| 18331 | extern "C" | ||
| 18332 | #endif | ||
| 18333 | char krb5_init_context (); | ||
| 18334 | int | ||
| 18335 | main () | ||
| 18336 | { | ||
| 18337 | return krb5_init_context (); | ||
| 18338 | ; | ||
| 18339 | return 0; | ||
| 18340 | } | ||
| 18341 | _ACEOF | ||
| 18342 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18343 | ac_cv_lib_krb5_krb5_init_context=yes | ||
| 18344 | else | ||
| 18345 | ac_cv_lib_krb5_krb5_init_context=no | ||
| 18346 | fi | ||
| 18347 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18348 | conftest$ac_exeext conftest.$ac_ext | ||
| 18349 | LIBS=$ac_check_lib_save_LIBS | ||
| 18350 | fi | ||
| 18351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 | ||
| 18352 | $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } | ||
| 18353 | if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : | ||
| 18354 | have_krb5=yes | ||
| 18355 | else | ||
| 18356 | have_krb5=no | ||
| 18357 | fi | ||
| 18358 | |||
| 18359 | if test $have_krb5=yes; then | ||
| 18360 | KRB5LIB=-lkrb5 | ||
| 18361 | LIBS="$KRB5LIB $LIBS" | ||
| 18362 | |||
| 18363 | $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h | ||
| 18364 | |||
| 18365 | fi | ||
| 18366 | if test "${with_kerberos5}" = no; then | ||
| 18367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 | ||
| 18368 | $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } | ||
| 18369 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : | ||
| 18370 | $as_echo_n "(cached) " >&6 | ||
| 18371 | else | ||
| 18372 | ac_check_lib_save_LIBS=$LIBS | ||
| 18373 | LIBS="-ldes425 $LIBS" | ||
| 18374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18375 | /* end confdefs.h. */ | ||
| 18376 | |||
| 18377 | /* Override any GCC internal prototype to avoid an error. | ||
| 18378 | Use char because int might match the return type of a GCC | ||
| 18379 | builtin and then its argument prototype would still apply. */ | ||
| 18380 | #ifdef __cplusplus | ||
| 18381 | extern "C" | ||
| 18382 | #endif | ||
| 18383 | char des_cbc_encrypt (); | ||
| 18384 | int | ||
| 18385 | main () | ||
| 18386 | { | ||
| 18387 | return des_cbc_encrypt (); | ||
| 18388 | ; | ||
| 18389 | return 0; | ||
| 18390 | } | ||
| 18391 | _ACEOF | ||
| 18392 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18393 | ac_cv_lib_des425_des_cbc_encrypt=yes | ||
| 18394 | else | ||
| 18395 | ac_cv_lib_des425_des_cbc_encrypt=no | ||
| 18396 | fi | ||
| 18397 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18398 | conftest$ac_exeext conftest.$ac_ext | ||
| 18399 | LIBS=$ac_check_lib_save_LIBS | ||
| 18400 | fi | ||
| 18401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | ||
| 18402 | $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | ||
| 18403 | if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : | ||
| 18404 | have_des425=yes | ||
| 18405 | else | ||
| 18406 | have_des425=no | ||
| 18407 | fi | ||
| 18408 | |||
| 18409 | if test $have_des425 = yes; then | ||
| 18410 | DESLIB=-ldes425 | ||
| 18411 | LIBS="$DESLIB $LIBS" | ||
| 18412 | |||
| 18413 | $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h | ||
| 18414 | |||
| 18415 | else | ||
| 18416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
| 18417 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
| 18418 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : | ||
| 18419 | $as_echo_n "(cached) " >&6 | ||
| 18420 | else | ||
| 18421 | ac_check_lib_save_LIBS=$LIBS | ||
| 18422 | LIBS="-ldes $LIBS" | ||
| 18423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18424 | /* end confdefs.h. */ | ||
| 18425 | |||
| 18426 | /* Override any GCC internal prototype to avoid an error. | ||
| 18427 | Use char because int might match the return type of a GCC | ||
| 18428 | builtin and then its argument prototype would still apply. */ | ||
| 18429 | #ifdef __cplusplus | ||
| 18430 | extern "C" | ||
| 18431 | #endif | ||
| 18432 | char des_cbc_encrypt (); | ||
| 18433 | int | ||
| 18434 | main () | ||
| 18435 | { | ||
| 18436 | return des_cbc_encrypt (); | ||
| 18437 | ; | ||
| 18438 | return 0; | ||
| 18439 | } | ||
| 18440 | _ACEOF | ||
| 18441 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18442 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
| 18443 | else | ||
| 18444 | ac_cv_lib_des_des_cbc_encrypt=no | ||
| 18445 | fi | ||
| 18446 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18447 | conftest$ac_exeext conftest.$ac_ext | ||
| 18448 | LIBS=$ac_check_lib_save_LIBS | ||
| 18449 | fi | ||
| 18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
| 18451 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
| 18452 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : | ||
| 18453 | have_des=yes | ||
| 18454 | else | ||
| 18455 | have_des=no | ||
| 18456 | fi | ||
| 18457 | |||
| 18458 | if test $have_des = yes; then | ||
| 18459 | DESLIB=-ldes | ||
| 18460 | LIBS="$DESLIB $LIBS" | ||
| 18461 | |||
| 18462 | $as_echo "#define HAVE_LIBDES 1" >>confdefs.h | ||
| 18463 | |||
| 18464 | fi | ||
| 18465 | fi | ||
| 18466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 | ||
| 18467 | $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } | ||
| 18468 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : | ||
| 18469 | $as_echo_n "(cached) " >&6 | ||
| 18470 | else | ||
| 18471 | ac_check_lib_save_LIBS=$LIBS | ||
| 18472 | LIBS="-lkrb4 $LIBS" | ||
| 18473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18474 | /* end confdefs.h. */ | ||
| 18475 | |||
| 18476 | /* Override any GCC internal prototype to avoid an error. | ||
| 18477 | Use char because int might match the return type of a GCC | ||
| 18478 | builtin and then its argument prototype would still apply. */ | ||
| 18479 | #ifdef __cplusplus | ||
| 18480 | extern "C" | ||
| 18481 | #endif | ||
| 18482 | char krb_get_cred (); | ||
| 18483 | int | ||
| 18484 | main () | ||
| 18485 | { | ||
| 18486 | return krb_get_cred (); | ||
| 18487 | ; | ||
| 18488 | return 0; | ||
| 18489 | } | ||
| 18490 | _ACEOF | ||
| 18491 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18492 | ac_cv_lib_krb4_krb_get_cred=yes | ||
| 18493 | else | ||
| 18494 | ac_cv_lib_krb4_krb_get_cred=no | ||
| 18495 | fi | ||
| 18496 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18497 | conftest$ac_exeext conftest.$ac_ext | ||
| 18498 | LIBS=$ac_check_lib_save_LIBS | ||
| 18499 | fi | ||
| 18500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 | ||
| 18501 | $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } | ||
| 18502 | if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : | ||
| 18503 | have_krb4=yes | ||
| 18504 | else | ||
| 18505 | have_krb4=no | ||
| 18506 | fi | ||
| 18507 | |||
| 18508 | if test $have_krb4 = yes; then | ||
| 18509 | KRB4LIB=-lkrb4 | ||
| 18510 | LIBS="$KRB4LIB $LIBS" | ||
| 18511 | |||
| 18512 | $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h | ||
| 18513 | |||
| 18514 | else | ||
| 18515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 | ||
| 18516 | $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } | ||
| 18517 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : | ||
| 18518 | $as_echo_n "(cached) " >&6 | ||
| 18519 | else | ||
| 18520 | ac_check_lib_save_LIBS=$LIBS | ||
| 18521 | LIBS="-lkrb $LIBS" | ||
| 18522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18523 | /* end confdefs.h. */ | ||
| 18524 | |||
| 18525 | /* Override any GCC internal prototype to avoid an error. | ||
| 18526 | Use char because int might match the return type of a GCC | ||
| 18527 | builtin and then its argument prototype would still apply. */ | ||
| 18528 | #ifdef __cplusplus | ||
| 18529 | extern "C" | ||
| 18530 | #endif | ||
| 18531 | char krb_get_cred (); | ||
| 18532 | int | ||
| 18533 | main () | ||
| 18534 | { | ||
| 18535 | return krb_get_cred (); | ||
| 18536 | ; | ||
| 18537 | return 0; | ||
| 18538 | } | ||
| 18539 | _ACEOF | ||
| 18540 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18541 | ac_cv_lib_krb_krb_get_cred=yes | ||
| 18542 | else | ||
| 18543 | ac_cv_lib_krb_krb_get_cred=no | ||
| 18544 | fi | ||
| 18545 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18546 | conftest$ac_exeext conftest.$ac_ext | ||
| 18547 | LIBS=$ac_check_lib_save_LIBS | ||
| 18548 | fi | ||
| 18549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 | ||
| 18550 | $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } | ||
| 18551 | if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : | ||
| 18552 | have_krb=yes | ||
| 18553 | else | ||
| 18554 | have_krb=no | ||
| 18555 | fi | ||
| 18556 | |||
| 18557 | if test $have_krb = yes; then | ||
| 18558 | KRB4LIB=-lkrb | ||
| 18559 | LIBS="$KRB4LIB $LIBS" | ||
| 18560 | |||
| 18561 | $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h | ||
| 18562 | |||
| 18563 | fi | ||
| 18564 | fi | ||
| 18565 | fi | ||
| 18566 | |||
| 18567 | if test "${with_kerberos5}" != no; then | ||
| 18568 | for ac_header in krb5.h | ||
| 18569 | do : | ||
| 18570 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" | ||
| 18571 | if test "x$ac_cv_header_krb5_h" = x""yes; then : | ||
| 18572 | cat >>confdefs.h <<_ACEOF | ||
| 18573 | #define HAVE_KRB5_H 1 | ||
| 18574 | _ACEOF | ||
| 18575 | ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> | ||
| 18576 | " | ||
| 18577 | if test "x$ac_cv_member_krb5_error_text" = x""yes; then : | ||
| 18578 | |||
| 18579 | cat >>confdefs.h <<_ACEOF | ||
| 18580 | #define HAVE_KRB5_ERROR_TEXT 1 | ||
| 18581 | _ACEOF | ||
| 18582 | |||
| 18583 | |||
| 18584 | fi | ||
| 18585 | ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> | ||
| 18586 | " | ||
| 18587 | if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : | ||
| 18588 | |||
| 18589 | cat >>confdefs.h <<_ACEOF | ||
| 18590 | #define HAVE_KRB5_ERROR_E_TEXT 1 | ||
| 18591 | _ACEOF | ||
| 18592 | |||
| 18593 | |||
| 18594 | fi | ||
| 18595 | |||
| 18596 | fi | ||
| 18597 | |||
| 18598 | done | ||
| 18599 | |||
| 18600 | else | ||
| 18601 | for ac_header in des.h | ||
| 18602 | do : | ||
| 18603 | ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" | ||
| 18604 | if test "x$ac_cv_header_des_h" = x""yes; then : | ||
| 18605 | cat >>confdefs.h <<_ACEOF | ||
| 18606 | #define HAVE_DES_H 1 | ||
| 18607 | _ACEOF | ||
| 18608 | |||
| 18609 | else | ||
| 18610 | for ac_header in kerberosIV/des.h | ||
| 18611 | do : | ||
| 18612 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" | ||
| 18613 | if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : | ||
| 18614 | cat >>confdefs.h <<_ACEOF | ||
| 18615 | #define HAVE_KERBEROSIV_DES_H 1 | ||
| 18616 | _ACEOF | ||
| 18617 | |||
| 18618 | else | ||
| 18619 | for ac_header in kerberos/des.h | ||
| 18620 | do : | ||
| 18621 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" | ||
| 18622 | if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : | ||
| 18623 | cat >>confdefs.h <<_ACEOF | ||
| 18624 | #define HAVE_KERBEROS_DES_H 1 | ||
| 18625 | _ACEOF | ||
| 18626 | |||
| 18627 | fi | ||
| 18628 | |||
| 18629 | done | ||
| 18630 | |||
| 18631 | fi | ||
| 18632 | |||
| 18633 | done | ||
| 18634 | |||
| 18635 | fi | ||
| 18636 | |||
| 18637 | done | ||
| 18638 | |||
| 18639 | for ac_header in krb.h | ||
| 18640 | do : | ||
| 18641 | ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" | ||
| 18642 | if test "x$ac_cv_header_krb_h" = x""yes; then : | ||
| 18643 | cat >>confdefs.h <<_ACEOF | ||
| 18644 | #define HAVE_KRB_H 1 | ||
| 18645 | _ACEOF | ||
| 18646 | |||
| 18647 | else | ||
| 18648 | for ac_header in kerberosIV/krb.h | ||
| 18649 | do : | ||
| 18650 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" | ||
| 18651 | if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : | ||
| 18652 | cat >>confdefs.h <<_ACEOF | ||
| 18653 | #define HAVE_KERBEROSIV_KRB_H 1 | ||
| 18654 | _ACEOF | ||
| 18655 | |||
| 18656 | else | ||
| 18657 | for ac_header in kerberos/krb.h | ||
| 18658 | do : | ||
| 18659 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" | ||
| 18660 | if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : | ||
| 18661 | cat >>confdefs.h <<_ACEOF | ||
| 18662 | #define HAVE_KERBEROS_KRB_H 1 | ||
| 18663 | _ACEOF | ||
| 18664 | |||
| 18665 | fi | ||
| 18666 | |||
| 18667 | done | ||
| 18668 | |||
| 18669 | fi | ||
| 18670 | |||
| 18671 | done | ||
| 18672 | |||
| 18673 | fi | ||
| 18674 | |||
| 18675 | done | ||
| 18676 | |||
| 18677 | fi | ||
| 18678 | for ac_header in com_err.h | ||
| 18679 | do : | ||
| 18680 | ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" | ||
| 18681 | if test "x$ac_cv_header_com_err_h" = x""yes; then : | ||
| 18682 | cat >>confdefs.h <<_ACEOF | ||
| 18683 | #define HAVE_COM_ERR_H 1 | ||
| 18684 | _ACEOF | ||
| 18685 | |||
| 18686 | fi | ||
| 18687 | |||
| 18688 | done | ||
| 18689 | |||
| 18690 | fi | ||
| 18691 | |||
| 18692 | |||
| 18693 | |||
| 18694 | |||
| 18695 | |||
| 18696 | |||
| 18697 | |||
| 18698 | # Solaris requires -lintl if you want strerror (which calls dgettext) | ||
| 18699 | # to return localized messages. | ||
| 18700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 | ||
| 18701 | $as_echo_n "checking for dgettext in -lintl... " >&6; } | ||
| 18702 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then : | ||
| 18703 | $as_echo_n "(cached) " >&6 | ||
| 18704 | else | ||
| 18705 | ac_check_lib_save_LIBS=$LIBS | ||
| 18706 | LIBS="-lintl $LIBS" | ||
| 18707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18708 | /* end confdefs.h. */ | ||
| 18709 | |||
| 18710 | /* Override any GCC internal prototype to avoid an error. | ||
| 18711 | Use char because int might match the return type of a GCC | ||
| 18712 | builtin and then its argument prototype would still apply. */ | ||
| 18713 | #ifdef __cplusplus | ||
| 18714 | extern "C" | ||
| 18715 | #endif | ||
| 18716 | char dgettext (); | ||
| 18717 | int | ||
| 18718 | main () | ||
| 18719 | { | ||
| 18720 | return dgettext (); | ||
| 18721 | ; | ||
| 18722 | return 0; | ||
| 18723 | } | ||
| 18724 | _ACEOF | ||
| 18725 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 18726 | ac_cv_lib_intl_dgettext=yes | ||
| 18727 | else | ||
| 18728 | ac_cv_lib_intl_dgettext=no | ||
| 18729 | fi | ||
| 18730 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 18731 | conftest$ac_exeext conftest.$ac_ext | ||
| 18732 | LIBS=$ac_check_lib_save_LIBS | ||
| 18733 | fi | ||
| 18734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 | ||
| 18735 | $as_echo "$ac_cv_lib_intl_dgettext" >&6; } | ||
| 18736 | if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : | ||
| 18737 | cat >>confdefs.h <<_ACEOF | ||
| 18738 | #define HAVE_LIBINTL 1 | ||
| 18739 | _ACEOF | ||
| 18740 | |||
| 18741 | LIBS="-lintl $LIBS" | ||
| 18742 | |||
| 18743 | fi | ||
| 18744 | |||
| 18745 | |||
| 18746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 | ||
| 18747 | $as_echo_n "checking whether localtime caches TZ... " >&6; } | ||
| 18748 | if test "${emacs_cv_localtime_cache+set}" = set; then : | ||
| 18749 | $as_echo_n "(cached) " >&6 | ||
| 18750 | else | ||
| 18751 | if test x$ac_cv_func_tzset = xyes; then | ||
| 18752 | if test "$cross_compiling" = yes; then : | ||
| 18753 | # If we have tzset, assume the worst when cross-compiling. | ||
| 18754 | emacs_cv_localtime_cache=yes | ||
| 18755 | else | ||
| 18756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18757 | /* end confdefs.h. */ | ||
| 18758 | #include <time.h> | ||
| 18759 | char TZ_GMT0[] = "TZ=GMT0"; | ||
| 18760 | char TZ_PST8[] = "TZ=PST8"; | ||
| 18761 | main() | ||
| 18762 | { | ||
| 18763 | time_t now = time ((time_t *) 0); | ||
| 18764 | int hour_GMT0, hour_unset; | ||
| 18765 | if (putenv (TZ_GMT0) != 0) | ||
| 18766 | exit (1); | ||
| 18767 | hour_GMT0 = localtime (&now)->tm_hour; | ||
| 18768 | unsetenv("TZ"); | ||
| 18769 | hour_unset = localtime (&now)->tm_hour; | ||
| 18770 | if (putenv (TZ_PST8) != 0) | ||
| 18771 | exit (1); | ||
| 18772 | if (localtime (&now)->tm_hour == hour_GMT0) | ||
| 18773 | exit (1); | ||
| 18774 | unsetenv("TZ"); | ||
| 18775 | if (localtime (&now)->tm_hour != hour_unset) | ||
| 18776 | exit (1); | ||
| 18777 | exit (0); | ||
| 18778 | } | ||
| 18779 | _ACEOF | ||
| 18780 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 18781 | emacs_cv_localtime_cache=no | ||
| 18782 | else | ||
| 18783 | emacs_cv_localtime_cache=yes | ||
| 18784 | fi | ||
| 18785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 18786 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 18787 | fi | ||
| 18788 | |||
| 18789 | else | ||
| 18790 | # If we lack tzset, report that localtime does not cache TZ, | ||
| 18791 | # since we can't invalidate the cache if we don't have tzset. | ||
| 18792 | emacs_cv_localtime_cache=no | ||
| 18793 | fi | ||
| 18794 | fi | ||
| 18795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 | ||
| 18796 | $as_echo "$emacs_cv_localtime_cache" >&6; } | ||
| 18797 | if test $emacs_cv_localtime_cache = yes; then | ||
| 18798 | |||
| 18799 | $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h | ||
| 18800 | |||
| 18801 | fi | ||
| 18802 | |||
| 18803 | if test "x$HAVE_TIMEVAL" = xyes; then | ||
| 18804 | for ac_func in gettimeofday | ||
| 18805 | do : | ||
| 18806 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | ||
| 18807 | if test "x$ac_cv_func_gettimeofday" = x""yes; then : | ||
| 18808 | cat >>confdefs.h <<_ACEOF | ||
| 18809 | #define HAVE_GETTIMEOFDAY 1 | ||
| 18810 | _ACEOF | ||
| 18811 | |||
| 18812 | fi | ||
| 18813 | done | ||
| 18814 | |||
| 18815 | if test $ac_cv_func_gettimeofday = yes; then | ||
| 18816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 | ||
| 18817 | $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } | ||
| 18818 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : | ||
| 18819 | $as_echo_n "(cached) " >&6 | ||
| 18820 | else | ||
| 18821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18822 | /* end confdefs.h. */ | ||
| 18823 | |||
| 18824 | #ifdef TIME_WITH_SYS_TIME | ||
| 18825 | #include <sys/time.h> | ||
| 18826 | #include <time.h> | ||
| 18827 | #else | ||
| 18828 | #ifdef HAVE_SYS_TIME_H | ||
| 18829 | #include <sys/time.h> | ||
| 18830 | #else | ||
| 18831 | #include <time.h> | ||
| 18832 | #endif | ||
| 18833 | #endif | ||
| 18834 | int | ||
| 18835 | main () | ||
| 18836 | { | ||
| 18837 | struct timeval time; | ||
| 18838 | gettimeofday (&time, 0); | ||
| 18839 | ; | ||
| 18840 | return 0; | ||
| 18841 | } | ||
| 18842 | _ACEOF | ||
| 18843 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 18844 | emacs_cv_gettimeofday_two_arguments=yes | ||
| 18845 | else | ||
| 18846 | emacs_cv_gettimeofday_two_arguments=no | ||
| 18847 | fi | ||
| 18848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 18849 | fi | ||
| 18850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 | ||
| 18851 | $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } | ||
| 18852 | if test $emacs_cv_gettimeofday_two_arguments = no; then | ||
| 18853 | |||
| 18854 | $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h | ||
| 18855 | |||
| 18856 | fi | ||
| 18857 | fi | ||
| 18858 | fi | ||
| 18859 | |||
| 18860 | ok_so_far=yes | ||
| 18861 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | ||
| 18862 | if test "x$ac_cv_func_socket" = x""yes; then : | ||
| 18863 | |||
| 18864 | else | ||
| 18865 | ok_so_far=no | ||
| 18866 | fi | ||
| 18867 | |||
| 18868 | if test $ok_so_far = yes; then | ||
| 18869 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" | ||
| 18870 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : | ||
| 18871 | |||
| 18872 | else | ||
| 18873 | ok_so_far=no | ||
| 18874 | fi | ||
| 18875 | |||
| 18876 | |||
| 18877 | fi | ||
| 18878 | if test $ok_so_far = yes; then | ||
| 18879 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | ||
| 18880 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | ||
| 18881 | |||
| 18882 | else | ||
| 18883 | ok_so_far=no | ||
| 18884 | fi | ||
| 18885 | |||
| 18886 | |||
| 18887 | fi | ||
| 18888 | if test $ok_so_far = yes; then | ||
| 18889 | |||
| 18890 | $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h | ||
| 18891 | |||
| 18892 | fi | ||
| 18893 | |||
| 18894 | if test -f /usr/lpp/X11/bin/smt.exp; then | ||
| 18895 | |||
| 18896 | $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h | ||
| 18897 | |||
| 18898 | fi | ||
| 18899 | |||
| 18900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 | ||
| 18901 | $as_echo_n "checking whether system supports dynamic ptys... " >&6; } | ||
| 18902 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | ||
| 18903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
| 18904 | $as_echo "yes" >&6; } | ||
| 18905 | |||
| 18906 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | ||
| 18907 | |||
| 18908 | else | ||
| 18909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 18910 | $as_echo "no" >&6; } | ||
| 18911 | fi | ||
| 18912 | |||
| 18913 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | ||
| 18914 | if test "x$ac_cv_type_pid_t" = x""yes; then : | ||
| 18915 | |||
| 18916 | else | ||
| 18917 | |||
| 18918 | cat >>confdefs.h <<_ACEOF | ||
| 18919 | #define pid_t int | ||
| 18920 | _ACEOF | ||
| 18921 | |||
| 18922 | fi | ||
| 18923 | |||
| 18924 | for ac_header in vfork.h | ||
| 18925 | do : | ||
| 18926 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | ||
| 18927 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | ||
| 18928 | cat >>confdefs.h <<_ACEOF | ||
| 18929 | #define HAVE_VFORK_H 1 | ||
| 18930 | _ACEOF | ||
| 18931 | |||
| 18932 | fi | ||
| 18933 | |||
| 18934 | done | ||
| 18935 | |||
| 18936 | for ac_func in fork vfork | ||
| 18937 | do : | ||
| 18938 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
| 18939 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
| 18940 | eval as_val=\$$as_ac_var | ||
| 18941 | if test "x$as_val" = x""yes; then : | ||
| 18942 | cat >>confdefs.h <<_ACEOF | ||
| 18943 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 18944 | _ACEOF | ||
| 18945 | |||
| 18946 | fi | ||
| 18947 | done | ||
| 18948 | |||
| 18949 | if test "x$ac_cv_func_fork" = xyes; then | ||
| 18950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | ||
| 18951 | $as_echo_n "checking for working fork... " >&6; } | ||
| 18952 | if test "${ac_cv_func_fork_works+set}" = set; then : | ||
| 18953 | $as_echo_n "(cached) " >&6 | ||
| 18954 | else | ||
| 18955 | if test "$cross_compiling" = yes; then : | ||
| 18956 | ac_cv_func_fork_works=cross | ||
| 18957 | else | ||
| 18958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 18959 | /* end confdefs.h. */ | ||
| 18960 | $ac_includes_default | ||
| 18961 | int | ||
| 18962 | main () | ||
| 18963 | { | ||
| 18964 | |||
| 18965 | /* By Ruediger Kuhlmann. */ | ||
| 18966 | return fork () < 0; | ||
| 18967 | |||
| 18968 | ; | ||
| 18969 | return 0; | ||
| 18970 | } | ||
| 18971 | _ACEOF | ||
| 18972 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 18973 | ac_cv_func_fork_works=yes | ||
| 18974 | else | ||
| 18975 | ac_cv_func_fork_works=no | ||
| 18976 | fi | ||
| 18977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 18978 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 18979 | fi | ||
| 18980 | |||
| 18981 | fi | ||
| 18982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | ||
| 18983 | $as_echo "$ac_cv_func_fork_works" >&6; } | ||
| 18984 | |||
| 18985 | else | ||
| 18986 | ac_cv_func_fork_works=$ac_cv_func_fork | ||
| 18987 | fi | ||
| 18988 | if test "x$ac_cv_func_fork_works" = xcross; then | ||
| 18989 | case $host in | ||
| 18990 | *-*-amigaos* | *-*-msdosdjgpp*) | ||
| 18991 | # Override, as these systems have only a dummy fork() stub | ||
| 18992 | ac_cv_func_fork_works=no | ||
| 18993 | ;; | ||
| 18994 | *) | ||
| 18995 | ac_cv_func_fork_works=yes | ||
| 18996 | ;; | ||
| 18997 | esac | ||
| 18998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | ||
| 18999 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | ||
| 19000 | fi | ||
| 19001 | ac_cv_func_vfork_works=$ac_cv_func_vfork | ||
| 19002 | if test "x$ac_cv_func_vfork" = xyes; then | ||
| 19003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | ||
| 19004 | $as_echo_n "checking for working vfork... " >&6; } | ||
| 19005 | if test "${ac_cv_func_vfork_works+set}" = set; then : | ||
| 19006 | $as_echo_n "(cached) " >&6 | ||
| 19007 | else | ||
| 19008 | if test "$cross_compiling" = yes; then : | ||
| 19009 | ac_cv_func_vfork_works=cross | ||
| 19010 | else | ||
| 19011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 19012 | /* end confdefs.h. */ | ||
| 19013 | /* Thanks to Paul Eggert for this test. */ | ||
| 19014 | $ac_includes_default | ||
| 19015 | #include <sys/wait.h> | ||
| 19016 | #ifdef HAVE_VFORK_H | ||
| 19017 | # include <vfork.h> | ||
| 19018 | #endif | ||
| 19019 | /* On some sparc systems, changes by the child to local and incoming | ||
| 19020 | argument registers are propagated back to the parent. The compiler | ||
| 19021 | is told about this with #include <vfork.h>, but some compilers | ||
| 19022 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | ||
| 19023 | static variable whose address is put into a register that is | ||
| 19024 | clobbered by the vfork. */ | ||
| 19025 | static void | ||
| 19026 | #ifdef __cplusplus | ||
| 19027 | sparc_address_test (int arg) | ||
| 19028 | # else | ||
| 19029 | sparc_address_test (arg) int arg; | ||
| 19030 | #endif | ||
| 19031 | { | ||
| 19032 | static pid_t child; | ||
| 19033 | if (!child) { | ||
| 19034 | child = vfork (); | ||
| 19035 | if (child < 0) { | ||
| 19036 | perror ("vfork"); | ||
| 19037 | _exit(2); | ||
| 19038 | } | ||
| 19039 | if (!child) { | ||
| 19040 | arg = getpid(); | ||
| 19041 | write(-1, "", 0); | ||
| 19042 | _exit (arg); | ||
| 19043 | } | ||
| 19044 | } | ||
| 19045 | } | ||
| 19046 | |||
| 19047 | int | ||
| 19048 | main () | ||
| 19049 | { | ||
| 19050 | pid_t parent = getpid (); | ||
| 19051 | pid_t child; | ||
| 19052 | |||
| 19053 | sparc_address_test (0); | ||
| 19054 | |||
| 19055 | child = vfork (); | ||
| 19056 | |||
| 19057 | if (child == 0) { | ||
| 19058 | /* Here is another test for sparc vfork register problems. This | ||
| 19059 | test uses lots of local variables, at least as many local | ||
| 19060 | variables as main has allocated so far including compiler | ||
| 19061 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | ||
| 19062 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | ||
| 19063 | reuse the register of parent for one of the local variables, | ||
| 19064 | since it will think that parent can't possibly be used any more | ||
| 19065 | in this routine. Assigning to the local variable will thus | ||
| 19066 | munge parent in the parent process. */ | ||
| 19067 | pid_t | ||
| 19068 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | ||
| 19069 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | ||
| 19070 | /* Convince the compiler that p..p7 are live; otherwise, it might | ||
| 19071 | use the same hardware register for all 8 local variables. */ | ||
| 19072 | if (p != p1 || p != p2 || p != p3 || p != p4 | ||
| 19073 | || p != p5 || p != p6 || p != p7) | ||
| 19074 | _exit(1); | ||
| 19075 | |||
| 19076 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | ||
| 19077 | from child file descriptors. If the child closes a descriptor | ||
| 19078 | before it execs or exits, this munges the parent's descriptor | ||
| 19079 | as well. Test for this by closing stdout in the child. */ | ||
| 19080 | _exit(close(fileno(stdout)) != 0); | ||
| 19081 | } else { | ||
| 19082 | int status; | ||
| 19083 | struct stat st; | ||
| 19084 | |||
| 19085 | while (wait(&status) != child) | ||
| 19086 | ; | ||
| 19087 | return ( | ||
| 19088 | /* Was there some problem with vforking? */ | ||
| 19089 | child < 0 | ||
| 19090 | |||
| 19091 | /* Did the child fail? (This shouldn't happen.) */ | ||
| 19092 | || status | ||
| 19093 | |||
| 19094 | /* Did the vfork/compiler bug occur? */ | ||
| 19095 | || parent != getpid() | ||
| 19096 | |||
| 19097 | /* Did the file descriptor bug occur? */ | ||
| 19098 | || fstat(fileno(stdout), &st) != 0 | ||
| 19099 | ); | ||
| 19100 | } | ||
| 19101 | } | ||
| 19102 | _ACEOF | ||
| 19103 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 19104 | ac_cv_func_vfork_works=yes | ||
| 19105 | else | ||
| 19106 | ac_cv_func_vfork_works=no | ||
| 19107 | fi | ||
| 19108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 19109 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 19110 | fi | ||
| 19111 | |||
| 19112 | fi | ||
| 19113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | ||
| 19114 | $as_echo "$ac_cv_func_vfork_works" >&6; } | ||
| 19115 | |||
| 19116 | fi; | ||
| 19117 | if test "x$ac_cv_func_fork_works" = xcross; then | ||
| 19118 | ac_cv_func_vfork_works=$ac_cv_func_vfork | ||
| 19119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | ||
| 19120 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | ||
| 19121 | fi | ||
| 19122 | |||
| 19123 | if test "x$ac_cv_func_vfork_works" = xyes; then | ||
| 19124 | |||
| 19125 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | ||
| 19126 | |||
| 19127 | else | ||
| 19128 | |||
| 19129 | $as_echo "#define vfork fork" >>confdefs.h | ||
| 19130 | |||
| 19131 | fi | ||
| 19132 | if test "x$ac_cv_func_fork_works" = xyes; then | ||
| 19133 | |||
| 19134 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | ||
| 19135 | |||
| 19136 | fi | ||
| 19137 | |||
| 19138 | |||
| 19139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 | ||
| 19140 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | ||
| 19141 | if test "${emacs_cv_langinfo_codeset+set}" = set; then : | ||
| 19142 | $as_echo_n "(cached) " >&6 | ||
| 19143 | else | ||
| 19144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 19145 | /* end confdefs.h. */ | ||
| 19146 | #include <langinfo.h> | ||
| 19147 | int | ||
| 19148 | main () | ||
| 19149 | { | ||
| 19150 | char* cs = nl_langinfo(CODESET); | ||
| 19151 | ; | ||
| 19152 | return 0; | ||
| 19153 | } | ||
| 19154 | _ACEOF | ||
| 19155 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 19156 | emacs_cv_langinfo_codeset=yes | ||
| 19157 | else | ||
| 19158 | emacs_cv_langinfo_codeset=no | ||
| 19159 | fi | ||
| 19160 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 19161 | conftest$ac_exeext conftest.$ac_ext | ||
| 19162 | |||
| 19163 | fi | ||
| 19164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 | ||
| 19165 | $as_echo "$emacs_cv_langinfo_codeset" >&6; } | ||
| 19166 | if test $emacs_cv_langinfo_codeset = yes; then | ||
| 19167 | |||
| 19168 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h | ||
| 19169 | |||
| 19170 | fi | ||
| 19171 | |||
| 19172 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | ||
| 19173 | if test "x$ac_cv_type_size_t" = x""yes; then : | ||
| 19174 | |||
| 19175 | cat >>confdefs.h <<_ACEOF | ||
| 19176 | #define HAVE_SIZE_T 1 | ||
| 19177 | _ACEOF | ||
| 19178 | |||
| 19179 | |||
| 19180 | fi | ||
| 19181 | |||
| 19182 | |||
| 19183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 | ||
| 19184 | $as_echo_n "checking for mbstate_t... " >&6; } | ||
| 19185 | if test "${ac_cv_type_mbstate_t+set}" = set; then : | ||
| 19186 | $as_echo_n "(cached) " >&6 | ||
| 19187 | else | ||
| 19188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 19189 | /* end confdefs.h. */ | ||
| 19190 | $ac_includes_default | ||
| 19191 | # include <wchar.h> | ||
| 19192 | int | ||
| 19193 | main () | ||
| 19194 | { | ||
| 19195 | mbstate_t x; return sizeof x; | ||
| 19196 | ; | ||
| 19197 | return 0; | ||
| 19198 | } | ||
| 19199 | _ACEOF | ||
| 19200 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 19201 | ac_cv_type_mbstate_t=yes | ||
| 19202 | else | ||
| 19203 | ac_cv_type_mbstate_t=no | ||
| 19204 | fi | ||
| 19205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 19206 | fi | ||
| 19207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 | ||
| 19208 | $as_echo "$ac_cv_type_mbstate_t" >&6; } | ||
| 19209 | if test $ac_cv_type_mbstate_t = yes; then | ||
| 19210 | |||
| 19211 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h | ||
| 19212 | |||
| 19213 | else | ||
| 19214 | |||
| 19215 | $as_echo "#define mbstate_t int" >>confdefs.h | ||
| 19216 | |||
| 19217 | fi | ||
| 19218 | |||
| 19219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 | ||
| 19220 | $as_echo_n "checking for C restricted array declarations... " >&6; } | ||
| 19221 | if test "${emacs_cv_c_restrict_arr+set}" = set; then : | ||
| 19222 | $as_echo_n "(cached) " >&6 | ||
| 19223 | else | ||
| 19224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 19225 | /* end confdefs.h. */ | ||
| 19226 | void fred (int x[__restrict]); | ||
| 19227 | int | ||
| 19228 | main () | ||
| 19229 | { | ||
| 19230 | |||
| 19231 | ; | ||
| 19232 | return 0; | ||
| 19233 | } | ||
| 19234 | _ACEOF | ||
| 19235 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 19236 | emacs_cv_c_restrict_arr=yes | ||
| 19237 | else | ||
| 19238 | emacs_cv_c_restrict_arr=no | ||
| 19239 | fi | ||
| 19240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 19241 | fi | ||
| 19242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 | ||
| 19243 | $as_echo "$emacs_cv_c_restrict_arr" >&6; } | ||
| 19244 | if test "$emacs_cv_c_restrict_arr" = yes; then | ||
| 19245 | |||
| 19246 | $as_echo "#define __restrict_arr __restrict" >>confdefs.h | ||
| 19247 | |||
| 19248 | fi | ||
| 19249 | |||
| 19250 | |||
| 19251 | |||
| 19252 | # Set up the CFLAGS for real compilation, so we can substitute it. | ||
| 19253 | CFLAGS="$REAL_CFLAGS" | ||
| 19254 | CPPFLAGS="$REAL_CPPFLAGS" | ||
| 19255 | |||
| 19256 | ## Hack to detect a buggy GCC version. | ||
| 19257 | if test "x$GCC" = xyes \ | ||
| 19258 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ | ||
| 19259 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ | ||
| 19260 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then | ||
| 19261 | as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 | ||
| 19262 | fi | ||
| 19263 | |||
| 19264 | version=$PACKAGE_VERSION | ||
| 19265 | |||
| 19266 | ### Specify what sort of things we'll be editing into Makefile and config.h. | ||
| 19267 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | ||
| 19268 | |||
| 19269 | |||
| 19270 | ## Unused? | ||
| 19271 | |||
| 19272 | |||
| 19273 | |||
| 19274 | |||
| 19275 | |||
| 19276 | |||
| 19277 | |||
| 19278 | |||
| 19279 | |||
| 19280 | |||
| 19281 | |||
| 19282 | |||
| 19283 | |||
| 19284 | |||
| 19285 | |||
| 19286 | |||
| 19287 | |||
| 19288 | |||
| 19289 | |||
| 19290 | |||
| 19291 | ## FIXME? Nothing uses @LD_SWITCH_X_SITE@. | ||
| 19292 | ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the | ||
| 19293 | ## end of LIBX_BASE, but nothing ever set it. | ||
| 19294 | |||
| 19295 | |||
| 19296 | |||
| 19297 | |||
| 19298 | ## Used in lwlib/Makefile.in. | ||
| 19299 | |||
| 19300 | if test -n "${machfile}"; then | ||
| 19301 | M_FILE="\$(srcdir)/${machfile}" | ||
| 19302 | else | ||
| 19303 | M_FILE= | ||
| 19304 | fi | ||
| 19305 | S_FILE="\$(srcdir)/${opsysfile}" | ||
| 19306 | |||
| 19307 | |||
| 19308 | |||
| 19309 | |||
| 19310 | |||
| 19311 | |||
| 19312 | |||
| 19313 | |||
| 19314 | |||
| 19315 | |||
| 19316 | cat >>confdefs.h <<_ACEOF | ||
| 19317 | #define EMACS_CONFIGURATION "${canonical}" | ||
| 19318 | _ACEOF | ||
| 19319 | |||
| 19320 | |||
| 19321 | cat >>confdefs.h <<_ACEOF | ||
| 19322 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | ||
| 19323 | _ACEOF | ||
| 19324 | |||
| 19325 | if test -n "$machfile"; then | ||
| 19326 | |||
| 19327 | cat >>confdefs.h <<_ACEOF | ||
| 19328 | #define config_machfile "${machfile}" | ||
| 19329 | _ACEOF | ||
| 19330 | |||
| 19331 | fi | ||
| 19332 | |||
| 19333 | cat >>confdefs.h <<_ACEOF | ||
| 19334 | #define config_opsysfile "${opsysfile}" | ||
| 19335 | _ACEOF | ||
| 19336 | |||
| 19337 | |||
| 19338 | XMENU_OBJ= | ||
| 19339 | XOBJ= | ||
| 19340 | FONT_OBJ= | ||
| 19341 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | ||
| 19342 | |||
| 19343 | $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h | ||
| 19344 | |||
| 19345 | XMENU_OBJ=xmenu.o | ||
| 19346 | XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" | ||
| 19347 | FONT_OBJ=xfont.o | ||
| 19348 | if test "$HAVE_XFT" = "yes"; then | ||
| 19349 | FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o" | ||
| 19350 | elif test "$HAVE_FREETYPE" = "yes"; then | ||
| 19351 | FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o" | ||
| 19352 | fi | ||
| 19353 | |||
| 19354 | fi | ||
| 19355 | |||
| 19356 | |||
| 19357 | |||
| 19358 | |||
| 19359 | WIDGET_OBJ= | ||
| 19360 | MOTIF_LIBW= | ||
| 19361 | if test "${USE_X_TOOLKIT}" != "none" ; then | ||
| 19362 | WIDGET_OBJ=widget.o | ||
| 19363 | |||
| 19364 | $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h | ||
| 19365 | |||
| 19366 | if test "${USE_X_TOOLKIT}" = "LUCID"; then | ||
| 19367 | |||
| 19368 | $as_echo "#define USE_LUCID 1" >>confdefs.h | ||
| 19369 | |||
| 19370 | elif test "${USE_X_TOOLKIT}" = "MOTIF"; then | ||
| 19371 | |||
| 19372 | $as_echo "#define USE_MOTIF 1" >>confdefs.h | ||
| 19373 | |||
| 19374 | MOTIF_LIBW=-lXm | ||
| 19375 | case "$opsys" in | ||
| 19376 | gnu-linux) | ||
| 19377 | ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. | ||
| 19378 | MOTIF_LIBW="$MOTIF_LIBW -lXpm" | ||
| 19379 | ;; | ||
| 19380 | |||
| 19381 | unixware) | ||
| 19382 | ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov> | ||
| 19383 | ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2. | ||
| 19384 | MOTIF_LIBW="MOTIF_LIBW -lXimp" | ||
| 19385 | ;; | ||
| 19386 | |||
| 19387 | aix4-2) | ||
| 19388 | ## olson@mcs.anl.gov says -li18n is needed by -lXm. | ||
| 19389 | MOTIF_LIBW="$MOTIF_LIBW -li18n" | ||
| 19390 | ;; | ||
| 19391 | esac | ||
| 19392 | MOTIF_LIBW="$MOTIF_LIBW $LIBXP" | ||
| 19393 | fi | ||
| 19394 | fi | ||
| 19395 | |||
| 19396 | |||
| 19397 | TOOLKIT_LIBW= | ||
| 19398 | case "$USE_X_TOOLKIT" in | ||
| 19399 | MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;; | ||
| 19400 | LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;; | ||
| 19401 | none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;; | ||
| 19402 | esac | ||
| 19403 | |||
| 19404 | |||
| 19405 | if test "$USE_X_TOOLKIT" = "none"; then | ||
| 19406 | LIBXT_OTHER="\$(LIBXSM)" | ||
| 19407 | OLDXMENU_TARGET="really-oldXMenu" | ||
| 19408 | else | ||
| 19409 | LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext" | ||
| 19410 | OLDXMENU_TARGET="really-lwlib" | ||
| 19411 | fi | ||
| 19412 | |||
| 19413 | |||
| 19414 | ## The X Menu stuff is present in the X10 distribution, but missing | ||
| 19415 | ## from X11. If we have X10, just use the installed library; | ||
| 19416 | ## otherwise, use our own copy. | ||
| 19417 | if test "${HAVE_X11}" = "yes" ; then | ||
| 19418 | |||
| 19419 | $as_echo "#define HAVE_X11 1" >>confdefs.h | ||
| 19420 | |||
| 19421 | |||
| 19422 | if test "$USE_X_TOOLKIT" = "none"; then | ||
| 19423 | OLDXMENU="\${oldXMenudir}/libXMenu11.a" | ||
| 19424 | else | ||
| 19425 | OLDXMENU="\${lwlibdir}/liblw.a" | ||
| 19426 | fi | ||
| 19427 | LIBXMENU="\$(OLDXMENU)" | ||
| 19428 | LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)" | ||
| 19429 | OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}" | ||
| 19430 | else | ||
| 19431 | ## For a syntactically valid Makefile; not actually used for anything. | ||
| 19432 | ## See comments in src/Makefile.in. | ||
| 19433 | OLDXMENU=nothing | ||
| 19434 | ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?). | ||
| 19435 | if test "${HAVE_X_WINDOWS}" = "yes"; then | ||
| 19436 | LIBXMENU="-lXMenu" | ||
| 19437 | else | ||
| 19438 | LIBXMENU= | ||
| 19439 | fi | ||
| 19440 | LIBX_OTHER= | ||
| 19441 | OLDXMENU_DEPS= | ||
| 19442 | fi | ||
| 19443 | |||
| 19444 | if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then | ||
| 19445 | OLDXMENU_TARGET= | ||
| 19446 | OLDXMENU=nothing | ||
| 19447 | LIBXMENU= | ||
| 19448 | OLDXMENU_DEPS= | ||
| 19449 | fi | ||
| 19450 | |||
| 19451 | |||
| 19452 | |||
| 19453 | |||
| 19454 | |||
| 19455 | |||
| 19456 | |||
| 19457 | if test "${HAVE_MENUS}" = "yes" ; then | ||
| 19458 | |||
| 19459 | $as_echo "#define HAVE_MENUS 1" >>confdefs.h | ||
| 19460 | |||
| 19461 | fi | ||
| 19462 | |||
| 19463 | if test "${GNU_MALLOC}" = "yes" ; then | ||
| 19464 | |||
| 19465 | $as_echo "#define GNU_MALLOC 1" >>confdefs.h | ||
| 19466 | |||
| 19467 | fi | ||
| 19468 | |||
| 19469 | RALLOC_OBJ= | ||
| 19470 | if test "${REL_ALLOC}" = "yes" ; then | ||
| 19471 | |||
| 19472 | $as_echo "#define REL_ALLOC 1" >>confdefs.h | ||
| 19473 | |||
| 19474 | |||
| 19475 | test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o | ||
| 19476 | fi | ||
| 19477 | |||
| 19478 | |||
| 19479 | if test "$opsys" = "cygwin"; then | ||
| 19480 | CYGWIN_OBJ="sheap.o" | ||
| 19481 | ## Cygwin differs because of its unexec(). | ||
| 19482 | PRE_ALLOC_OBJ= | ||
| 19483 | POST_ALLOC_OBJ=lastfile.o | ||
| 19484 | else | ||
| 19485 | CYGWIN_OBJ= | ||
| 19486 | PRE_ALLOC_OBJ=lastfile.o | ||
| 19487 | POST_ALLOC_OBJ= | ||
| 19488 | fi | ||
| 19489 | |||
| 19490 | |||
| 19491 | |||
| 19492 | |||
| 19493 | |||
| 19494 | case "$opsys" in | ||
| 19495 | aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;; | ||
| 19496 | |||
| 19497 | darwin) | ||
| 19498 | ## The -headerpad option tells ld (see man page) to leave room at the | ||
| 19499 | ## end of the header for adding load commands. Needed for dumping. | ||
| 19500 | ## 0x690 is the total size of 30 segment load commands (at 56 | ||
| 19501 | ## each); under Cocoa 31 commands are required. | ||
| 19502 | if test "$HAVE_NS" = "yes"; then | ||
| 19503 | libs_nsgui="-framework AppKit" | ||
| 19504 | headerpad_extra=6C8 | ||
| 19505 | else | ||
| 19506 | libs_nsgui= | ||
| 19507 | headerpad_extra=690 | ||
| 19508 | fi | ||
| 19509 | LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" | ||
| 19510 | |||
| 19511 | ## This is here because src/Makefile.in did some extra fiddling around | ||
| 19512 | ## with LD_SWITCH_SYSTEM. The cpp logic was: | ||
| 19513 | ## #ifndef LD_SWITCH_SYSTEM | ||
| 19514 | ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) | ||
| 19515 | ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: | ||
| 19516 | ## not using gcc, darwin system not on an alpha (ie darwin, since | ||
| 19517 | ## darwin + alpha does not occur). | ||
| 19518 | ## Because this was done in src/Makefile.in, the resulting part of | ||
| 19519 | ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link). | ||
| 19520 | ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS, | ||
| 19521 | ## rather than LD_SWITCH_SYSTEM. | ||
| 19522 | test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ | ||
| 19523 | LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS" | ||
| 19524 | ;; | ||
| 19525 | |||
| 19526 | ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time. | ||
| 19527 | ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at | ||
| 19528 | ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX | ||
| 19529 | ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM | ||
| 19530 | ## had different values in configure (in ac_link) and src/Makefile.in. | ||
| 19531 | ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS. | ||
| 19532 | gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;; | ||
| 19533 | |||
| 19534 | *) LD_SWITCH_SYSTEM_TEMACS= ;; | ||
| 19535 | esac | ||
| 19536 | |||
| 19537 | if test "$NS_IMPL_GNUSTEP" = "yes"; then | ||
| 19538 | LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread" | ||
| 19539 | fi | ||
| 19540 | |||
| 19541 | |||
| 19542 | |||
| 19543 | |||
| 19544 | LD_FIRSTFLAG= | ||
| 19545 | ORDINARY_LINK= | ||
| 19546 | case "$opsys" in | ||
| 19547 | ## gnu: GNU needs its own crt0. | ||
| 19548 | aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; | ||
| 19549 | |||
| 19550 | ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the | ||
| 19551 | ## library search parth, i.e. it won't search /usr/lib for libc and | ||
| 19552 | ## friends. Using -nostartfiles instead avoids this problem, and | ||
| 19553 | ## will also work on earlier NetBSD releases. | ||
| 19554 | netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;; | ||
| 19555 | |||
| 19556 | ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says | ||
| 19557 | ## MkLinux/LinuxPPC needs this. | ||
| 19558 | ## ibms390x only supports opsys = gnu-linux so it can be added here. | ||
| 19559 | gnu-*) | ||
| 19560 | case "$machine" in | ||
| 19561 | macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;; | ||
| 19562 | esac | ||
| 19563 | ;; | ||
| 19564 | esac | ||
| 19565 | |||
| 19566 | |||
| 19567 | if test "x$ORDINARY_LINK" = "xyes"; then | ||
| 19568 | |||
| 19569 | LD_FIRSTFLAG="" | ||
| 19570 | |||
| 19571 | $as_echo "#define ORDINARY_LINK 1" >>confdefs.h | ||
| 19572 | |||
| 19573 | |||
| 19574 | ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are: | ||
| 19575 | ## freebsd, gnu-* not on macppc|ibms390x. | ||
| 19576 | elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then | ||
| 19577 | |||
| 19578 | ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure | ||
| 19579 | ## places that are difficult to figure out at make time. Fortunately, | ||
| 19580 | ## these same versions allow you to pass arbitrary flags on to the | ||
| 19581 | ## linker, so there is no reason not to use it as a linker. | ||
| 19582 | ## | ||
| 19583 | ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from | ||
| 19584 | ## searching for libraries in its internal directories, so we have to | ||
| 19585 | ## ask GCC explicitly where to find libgcc.a (LIB_GCC below). | ||
| 19586 | LD_FIRSTFLAG="-nostdlib" | ||
| 19587 | fi | ||
| 19588 | |||
| 19589 | ## FIXME? What setting of EDIT_LDFLAGS should this have? | ||
| 19590 | test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic" | ||
| 19591 | |||
| 19592 | |||
| 19593 | |||
| 19594 | |||
| 19595 | ## FIXME? The logic here is not precisely the same as that above. | ||
| 19596 | ## There is no check here for a pre-defined LD_FIRSTFLAG. | ||
| 19597 | ## Should we only be setting LIB_GCC if LD ~ -nostdlib? | ||
| 19598 | LIB_GCC= | ||
| 19599 | if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then | ||
| 19600 | |||
| 19601 | case "$opsys" in | ||
| 19602 | freebsd|netbsd|openbsd) LIB_GCC= ;; | ||
| 19603 | |||
| 19604 | gnu-*) | ||
| 19605 | ## armin76@gentoo.org reported that the lgcc_s flag is necessary to | ||
| 19606 | ## build on ARM EABI under GNU/Linux. (Bug#5518) | ||
| 19607 | case $host_cpu in | ||
| 19608 | arm*) | ||
| 19609 | LIB_GCC="-lgcc_s" | ||
| 19610 | ;; | ||
| 19611 | *) | ||
| 19612 | ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then | ||
| 19613 | ## immediately undefine it again and redefine it to empty. | ||
| 19614 | ## Was the C_SWITCH_X_SITE part really necessary? | ||
| 19615 | ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name` | ||
| 19616 | LIB_GCC= | ||
| 19617 | ;; | ||
| 19618 | esac | ||
| 19619 | ;; | ||
| 19620 | |||
| 19621 | ## Ask GCC where to find libgcc.a. | ||
| 19622 | *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;; | ||
| 19623 | esac | ||
| 19624 | fi | ||
| 19625 | |||
| 19626 | |||
| 19627 | TOOLTIP_SUPPORT= | ||
| 19628 | WINDOW_SUPPORT= | ||
| 19629 | ## If we're using X11/GNUstep, define some consequences. | ||
| 19630 | if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then | ||
| 19631 | |||
| 19632 | $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h | ||
| 19633 | |||
| 19634 | |||
| 19635 | $as_echo "#define HAVE_MOUSE 1" >>confdefs.h | ||
| 19636 | |||
| 19637 | MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)" | ||
| 19638 | TOOLTIP_SUPPORT="\${lispsource}/mouse.elc" | ||
| 19639 | |||
| 19640 | WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)" | ||
| 19641 | test "$HAVE_X_WINDOWS" = "yes" && \ | ||
| 19642 | WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)" | ||
| 19643 | |||
| 19644 | fi | ||
| 19645 | |||
| 19646 | |||
| 19647 | |||
| 19648 | |||
| 19649 | |||
| 19650 | |||
| 19651 | |||
| 19652 | #### Report on what we decided to do. | ||
| 19653 | #### Report GTK as a toolkit, even if it doesn't use Xt. | ||
| 19654 | #### It makes printing result more understandable as using GTK sets | ||
| 19655 | #### toolkit_scroll_bars to yes by default. | ||
| 19656 | if test "${HAVE_GTK}" = "yes"; then | ||
| 19657 | USE_X_TOOLKIT=GTK | ||
| 19658 | fi | ||
| 19659 | |||
| 19660 | and_machfile= | ||
| 19661 | if test -n "$machfile"; then | ||
| 19662 | and_machfile=" and \`${machfile}'" | ||
| 19663 | fi | ||
| 19664 | |||
| 19665 | echo " | ||
| 19666 | Configured for \`${canonical}'. | ||
| 19667 | |||
| 19668 | Where should the build process find the source code? ${srcdir} | ||
| 19669 | What operating system and machine description files should Emacs use? | ||
| 19670 | \`${opsysfile}'${and_machfile} | ||
| 19671 | What compiler should emacs be built with? ${CC} ${CFLAGS} | ||
| 19672 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | ||
| 19673 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} | ||
| 19674 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers | ||
| 19675 | What window system should Emacs use? ${window_system} | ||
| 19676 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" | ||
| 19677 | |||
| 19678 | if test -n "${x_includes}"; then | ||
| 19679 | echo " Where do we find X Windows header files? ${x_includes}" | ||
| 19680 | else | ||
| 19681 | echo " Where do we find X Windows header files? Standard dirs" | ||
| 19682 | fi | ||
| 19683 | if test -n "${x_libraries}"; then | ||
| 19684 | echo " Where do we find X Windows libraries? ${x_libraries}" | ||
| 19685 | else | ||
| 19686 | echo " Where do we find X Windows libraries? Standard dirs" | ||
| 19687 | fi | ||
| 19688 | |||
| 19689 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | ||
| 19690 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | ||
| 19691 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | ||
| 19692 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | ||
| 19693 | echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF" | ||
| 19694 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | ||
| 19695 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | ||
| 19696 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" | ||
| 19697 | |||
| 19698 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" | ||
| 19699 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" | ||
| 19700 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" | ||
| 19701 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" | ||
| 19702 | echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}" | ||
| 19703 | echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}" | ||
| 19704 | |||
| 19705 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" | ||
| 19706 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" | ||
| 19707 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" | ||
| 19708 | echo " Does Emacs use -lxft? ${HAVE_XFT}" | ||
| 19709 | |||
| 19710 | echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | ||
| 19711 | echo | ||
| 19712 | |||
| 19713 | if test $USE_XASSERTS = yes; then | ||
| 19714 | echo " Compiling with asserts turned on." | ||
| 19715 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" | ||
| 19716 | fi | ||
| 19717 | |||
| 19718 | echo | ||
| 19719 | |||
| 19720 | if test "$HAVE_NS" = "yes"; then | ||
| 19721 | echo | ||
| 19722 | echo "You must run \"make install\" in order to test the built application. | ||
| 19723 | The installed application will go to nextstep/Emacs.app and can be | ||
| 19724 | run or moved from there." | ||
| 19725 | if test "$EN_NS_SELF_CONTAINED" = "yes"; then | ||
| 19726 | echo "The application will be fully self-contained." | ||
| 19727 | else | ||
| 19728 | echo "The lisp resources for the application will be installed under ${prefix}. | ||
| 19729 | You may need to run \"make install\" with sudo. The application will fail | ||
| 19730 | to run if these resources are not installed." | ||
| 19731 | fi | ||
| 19732 | echo | ||
| 19733 | fi | ||
| 19734 | |||
| 19735 | |||
| 19736 | # Remove any trailing slashes in these variables. | ||
| 19737 | test "${prefix}" != NONE && | ||
| 19738 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | ||
| 19739 | test "${exec_prefix}" != NONE && | ||
| 19740 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | ||
| 19741 | |||
| 19742 | ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile" | ||
| 19743 | |||
| 19744 | |||
| 19745 | ac_config_commands="$ac_config_commands mkdirs" | ||
| 19746 | |||
| 19747 | |||
| 19748 | ac_config_commands="$ac_config_commands epaths" | ||
| 19749 | |||
| 19750 | |||
| 19751 | ac_config_commands="$ac_config_commands gdbinit" | ||
| 19752 | |||
| 19753 | |||
| 19754 | cat >confcache <<\_ACEOF | ||
| 19755 | # This file is a shell script that caches the results of configure | ||
| 19756 | # tests run on this system so they can be shared between configure | ||
| 19757 | # scripts and configure runs, see configure's option --config-cache. | ||
| 19758 | # It is not useful on other systems. If it contains results you don't | ||
| 19759 | # want to keep, you may remove or edit it. | ||
| 19760 | # | ||
| 19761 | # config.status only pays attention to the cache file if you give it | ||
| 19762 | # the --recheck option to rerun configure. | ||
| 19763 | # | ||
| 19764 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
| 19765 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
| 19766 | # following values. | ||
| 19767 | |||
| 19768 | _ACEOF | ||
| 19769 | |||
| 19770 | # The following way of writing the cache mishandles newlines in values, | ||
| 19771 | # but we know of no workaround that is simple, portable, and efficient. | ||
| 19772 | # So, we kill variables containing newlines. | ||
| 19773 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
| 19774 | # and sets the high bit in the cache file unless we assign to the vars. | ||
| 19775 | ( | ||
| 19776 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
| 19777 | eval ac_val=\$$ac_var | ||
| 19778 | case $ac_val in #( | ||
| 19779 | *${as_nl}*) | ||
| 19780 | case $ac_var in #( | ||
| 19781 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
| 19782 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
| 19783 | esac | ||
| 19784 | case $ac_var in #( | ||
| 19785 | _ | IFS | as_nl) ;; #( | ||
| 19786 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
| 19787 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
| 19788 | esac ;; | ||
| 19789 | esac | ||
| 19790 | done | ||
| 19791 | |||
| 19792 | (set) 2>&1 | | ||
| 19793 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
| 19794 | *${as_nl}ac_space=\ *) | ||
| 19795 | # `set' does not quote correctly, so add quotes: double-quote | ||
| 19796 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
| 19797 | sed -n \ | ||
| 19798 | "s/'/'\\\\''/g; | ||
| 19799 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
| 19800 | ;; #( | ||
| 19801 | *) | ||
| 19802 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
| 19803 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
| 19804 | ;; | ||
| 19805 | esac | | ||
| 19806 | sort | ||
| 19807 | ) | | ||
| 19808 | sed ' | ||
| 19809 | /^ac_cv_env_/b end | ||
| 19810 | t clear | ||
| 19811 | :clear | ||
| 19812 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
| 19813 | t end | ||
| 19814 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
| 19815 | :end' >>confcache | ||
| 19816 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
| 19817 | if test -w "$cache_file"; then | ||
| 19818 | test "x$cache_file" != "x/dev/null" && | ||
| 19819 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
| 19820 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
| 19821 | cat confcache >$cache_file | ||
| 19822 | else | ||
| 19823 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
| 19824 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
| 19825 | fi | ||
| 19826 | fi | ||
| 19827 | rm -f confcache | ||
| 19828 | |||
| 19829 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
| 19830 | # Let make expand exec_prefix. | ||
| 19831 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
| 19832 | |||
| 19833 | DEFS=-DHAVE_CONFIG_H | ||
| 19834 | |||
| 19835 | ac_libobjs= | ||
| 19836 | ac_ltlibobjs= | ||
| 19837 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
| 19838 | # 1. Remove the extension, and $U if already installed. | ||
| 19839 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
| 19840 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
| 19841 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
| 19842 | # will be set to the directory where LIBOBJS objects are built. | ||
| 19843 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
| 19844 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
| 19845 | done | ||
| 19846 | LIBOBJS=$ac_libobjs | ||
| 19847 | |||
| 19848 | LTLIBOBJS=$ac_ltlibobjs | ||
| 19849 | |||
| 19850 | |||
| 19851 | if test -n "$EXEEXT"; then | ||
| 19852 | am__EXEEXT_TRUE= | ||
| 19853 | am__EXEEXT_FALSE='#' | ||
| 19854 | else | ||
| 19855 | am__EXEEXT_TRUE='#' | ||
| 19856 | am__EXEEXT_FALSE= | ||
| 19857 | fi | ||
| 19858 | |||
| 19859 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
| 19860 | as_fn_error "conditional \"AMDEP\" was never defined. | ||
| 19861 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
| 19862 | fi | ||
| 19863 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
| 19864 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | ||
| 19865 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
| 19866 | fi | ||
| 19867 | |||
| 19868 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then | ||
| 19869 | as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. | ||
| 19870 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
| 19871 | fi | ||
| 19872 | |||
| 19873 | |||
| 19874 | gl_libobjs= | ||
| 19875 | gl_ltlibobjs= | ||
| 19876 | if test -n "$gl_LIBOBJS"; then | ||
| 19877 | # Remove the extension. | ||
| 19878 | sed_drop_objext='s/\.o$//;s/\.obj$//' | ||
| 19879 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do | ||
| 19880 | gl_libobjs="$gl_libobjs $i.$ac_objext" | ||
| 19881 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | ||
| 19882 | done | ||
| 19883 | fi | ||
| 19884 | gl_LIBOBJS=$gl_libobjs | ||
| 19885 | |||
| 19886 | gl_LTLIBOBJS=$gl_ltlibobjs | ||
| 19887 | |||
| 19888 | |||
| 19889 | |||
| 19890 | gltests_libobjs= | ||
| 19891 | gltests_ltlibobjs= | ||
| 19892 | if test -n "$gltests_LIBOBJS"; then | ||
| 19893 | # Remove the extension. | ||
| 19894 | sed_drop_objext='s/\.o$//;s/\.obj$//' | ||
| 19895 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do | ||
| 19896 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" | ||
| 19897 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | ||
| 19898 | done | ||
| 19899 | fi | ||
| 19900 | gltests_LIBOBJS=$gltests_libobjs | ||
| 19901 | |||
| 19902 | gltests_LTLIBOBJS=$gltests_ltlibobjs | ||
| 19903 | |||
| 19904 | |||
| 19905 | |||
| 19906 | : ${CONFIG_STATUS=./config.status} | ||
| 19907 | ac_write_fail=0 | ||
| 19908 | ac_clean_files_save=$ac_clean_files | ||
| 19909 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
| 19910 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
| 19911 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
| 19912 | as_write_fail=0 | ||
| 19913 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
| 19914 | #! $SHELL | ||
| 19915 | # Generated by $as_me. | ||
| 19916 | # Run this file to recreate the current configuration. | ||
| 19917 | # Compiler output produced by configure, useful for debugging | ||
| 19918 | # configure, is in config.log if it exists. | ||
| 19919 | |||
| 19920 | debug=false | ||
| 19921 | ac_cs_recheck=false | ||
| 19922 | ac_cs_silent=false | ||
| 19923 | |||
| 19924 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
| 19925 | export SHELL | ||
| 19926 | _ASEOF | ||
| 19927 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
| 19928 | ## -------------------- ## | ||
| 19929 | ## M4sh Initialization. ## | ||
| 19930 | ## -------------------- ## | ||
| 19931 | |||
| 19932 | # Be more Bourne compatible | ||
| 19933 | DUALCASE=1; export DUALCASE # for MKS sh | ||
| 19934 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
| 19935 | emulate sh | ||
| 19936 | NULLCMD=: | ||
| 19937 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
| 19938 | # is contrary to our usage. Disable this feature. | ||
| 19939 | alias -g '${1+"$@"}'='"$@"' | ||
| 19940 | setopt NO_GLOB_SUBST | ||
| 19941 | else | ||
| 19942 | case `(set -o) 2>/dev/null` in #( | ||
| 19943 | *posix*) : | ||
| 19944 | set -o posix ;; #( | ||
| 19945 | *) : | ||
| 19946 | ;; | ||
| 19947 | esac | ||
| 19948 | fi | ||
| 19949 | |||
| 19950 | |||
| 19951 | as_nl=' | ||
| 19952 | ' | ||
| 19953 | export as_nl | ||
| 19954 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
| 19955 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
| 19956 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
| 19957 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
| 19958 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
| 19959 | # but without wasting forks for bash or zsh. | ||
| 19960 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
| 19961 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
| 19962 | as_echo='print -r --' | ||
| 19963 | as_echo_n='print -rn --' | ||
| 19964 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
| 19965 | as_echo='printf %s\n' | ||
| 19966 | as_echo_n='printf %s' | ||
| 19967 | else | ||
| 19968 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
| 19969 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
| 19970 | as_echo_n='/usr/ucb/echo -n' | ||
| 19971 | else | ||
| 19972 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
| 19973 | as_echo_n_body='eval | ||
| 19974 | arg=$1; | ||
| 19975 | case $arg in #( | ||
| 19976 | *"$as_nl"*) | ||
| 19977 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
| 19978 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
| 19979 | esac; | ||
| 19980 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
| 19981 | ' | ||
| 19982 | export as_echo_n_body | ||
| 19983 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
| 19984 | fi | ||
| 19985 | export as_echo_body | ||
| 19986 | as_echo='sh -c $as_echo_body as_echo' | ||
| 19987 | fi | ||
| 19988 | |||
| 19989 | # The user is always right. | ||
| 19990 | if test "${PATH_SEPARATOR+set}" != set; then | ||
| 19991 | PATH_SEPARATOR=: | ||
| 19992 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
| 19993 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
| 19994 | PATH_SEPARATOR=';' | ||
| 19995 | } | ||
| 19996 | fi | ||
| 19997 | |||
| 19998 | |||
| 19999 | # IFS | ||
| 20000 | # We need space, tab and new line, in precisely that order. Quoting is | ||
| 20001 | # there to prevent editors from complaining about space-tab. | ||
| 20002 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
| 20003 | # splitting by setting IFS to empty value.) | ||
| 20004 | IFS=" "" $as_nl" | ||
| 20005 | |||
| 20006 | # Find who we are. Look in the path if we contain no directory separator. | ||
| 20007 | case $0 in #(( | ||
| 20008 | *[\\/]* ) as_myself=$0 ;; | ||
| 20009 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 20010 | for as_dir in $PATH | ||
| 20011 | do | ||
| 20012 | IFS=$as_save_IFS | ||
| 20013 | test -z "$as_dir" && as_dir=. | ||
| 20014 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
| 20015 | done | ||
| 20016 | IFS=$as_save_IFS | ||
| 20017 | |||
| 20018 | ;; | ||
| 20019 | esac | ||
| 20020 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
| 20021 | # in which case we are not to be found in the path. | ||
| 20022 | if test "x$as_myself" = x; then | ||
| 20023 | as_myself=$0 | ||
| 20024 | fi | ||
| 20025 | if test ! -f "$as_myself"; then | ||
| 20026 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
| 20027 | exit 1 | ||
| 20028 | fi | ||
| 20029 | |||
| 20030 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
| 20031 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
| 20032 | # suppresses any "Segmentation fault" message there. '((' could | ||
| 20033 | # trigger a bug in pdksh 5.2.14. | ||
| 20034 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
| 20035 | do eval test x\${$as_var+set} = xset \ | ||
| 20036 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
| 20037 | done | ||
| 20038 | PS1='$ ' | ||
| 20039 | PS2='> ' | ||
| 20040 | PS4='+ ' | ||
| 20041 | |||
| 20042 | # NLS nuisances. | ||
| 20043 | LC_ALL=C | ||
| 20044 | export LC_ALL | ||
| 20045 | LANGUAGE=C | ||
| 20046 | export LANGUAGE | ||
| 20047 | |||
| 20048 | # CDPATH. | ||
| 20049 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
| 20050 | |||
| 20051 | |||
| 20052 | # as_fn_error ERROR [LINENO LOG_FD] | ||
| 20053 | # --------------------------------- | ||
| 20054 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
| 20055 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
| 20056 | # script with status $?, using 1 if that was 0. | ||
| 20057 | as_fn_error () | ||
| 20058 | { | ||
| 20059 | as_status=$?; test $as_status -eq 0 && as_status=1 | ||
| 20060 | if test "$3"; then | ||
| 20061 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 20062 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | ||
| 20063 | fi | ||
| 20064 | $as_echo "$as_me: error: $1" >&2 | ||
| 20065 | as_fn_exit $as_status | ||
| 20066 | } # as_fn_error | ||
| 20067 | |||
| 20068 | |||
| 20069 | # as_fn_set_status STATUS | ||
| 20070 | # ----------------------- | ||
| 20071 | # Set $? to STATUS, without forking. | ||
| 20072 | as_fn_set_status () | ||
| 20073 | { | ||
| 20074 | return $1 | ||
| 20075 | } # as_fn_set_status | ||
| 20076 | |||
| 20077 | # as_fn_exit STATUS | ||
| 20078 | # ----------------- | ||
| 20079 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
| 20080 | as_fn_exit () | ||
| 20081 | { | ||
| 20082 | set +e | ||
| 20083 | as_fn_set_status $1 | ||
| 20084 | exit $1 | ||
| 20085 | } # as_fn_exit | ||
| 20086 | |||
| 20087 | # as_fn_unset VAR | ||
| 20088 | # --------------- | ||
| 20089 | # Portably unset VAR. | ||
| 20090 | as_fn_unset () | ||
| 20091 | { | ||
| 20092 | { eval $1=; unset $1;} | ||
| 20093 | } | ||
| 20094 | as_unset=as_fn_unset | ||
| 20095 | # as_fn_append VAR VALUE | ||
| 20096 | # ---------------------- | ||
| 20097 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
| 20098 | # advantage of any shell optimizations that allow amortized linear growth over | ||
| 20099 | # repeated appends, instead of the typical quadratic growth present in naive | ||
| 20100 | # implementations. | ||
| 20101 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
| 20102 | eval 'as_fn_append () | ||
| 20103 | { | ||
| 20104 | eval $1+=\$2 | ||
| 20105 | }' | ||
| 20106 | else | ||
| 20107 | as_fn_append () | ||
| 20108 | { | ||
| 20109 | eval $1=\$$1\$2 | ||
| 20110 | } | ||
| 20111 | fi # as_fn_append | ||
| 20112 | |||
| 20113 | # as_fn_arith ARG... | ||
| 20114 | # ------------------ | ||
| 20115 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
| 20116 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
| 20117 | # must be portable across $(()) and expr. | ||
| 20118 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
| 20119 | eval 'as_fn_arith () | ||
| 20120 | { | ||
| 20121 | as_val=$(( $* )) | ||
| 20122 | }' | ||
| 20123 | else | ||
| 20124 | as_fn_arith () | ||
| 20125 | { | ||
| 20126 | as_val=`expr "$@" || test $? -eq 1` | ||
| 20127 | } | ||
| 20128 | fi # as_fn_arith | ||
| 20129 | |||
| 20130 | |||
| 20131 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
| 20132 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
| 20133 | as_expr=expr | ||
| 20134 | else | ||
| 20135 | as_expr=false | ||
| 20136 | fi | ||
| 20137 | |||
| 20138 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
| 20139 | as_basename=basename | ||
| 20140 | else | ||
| 20141 | as_basename=false | ||
| 20142 | fi | ||
| 20143 | |||
| 20144 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
| 20145 | as_dirname=dirname | ||
| 20146 | else | ||
| 20147 | as_dirname=false | ||
| 20148 | fi | ||
| 20149 | |||
| 20150 | as_me=`$as_basename -- "$0" || | ||
| 20151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
| 20152 | X"$0" : 'X\(//\)$' \| \ | ||
| 20153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
| 20154 | $as_echo X/"$0" | | ||
| 20155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
| 20156 | s//\1/ | ||
| 20157 | q | ||
| 20158 | } | ||
| 20159 | /^X\/\(\/\/\)$/{ | ||
| 20160 | s//\1/ | ||
| 20161 | q | ||
| 20162 | } | ||
| 20163 | /^X\/\(\/\).*/{ | ||
| 20164 | s//\1/ | ||
| 20165 | q | ||
| 20166 | } | ||
| 20167 | s/.*/./; q'` | ||
| 20168 | |||
| 20169 | # Avoid depending upon Character Ranges. | ||
| 20170 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
| 20171 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
| 20172 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
| 20173 | as_cr_digits='0123456789' | ||
| 20174 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
| 20175 | |||
| 20176 | ECHO_C= ECHO_N= ECHO_T= | ||
| 20177 | case `echo -n x` in #((((( | ||
| 20178 | -n*) | ||
| 20179 | case `echo 'xy\c'` in | ||
| 20180 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
| 20181 | xy) ECHO_C='\c';; | ||
| 20182 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
| 20183 | ECHO_T=' ';; | ||
| 20184 | esac;; | ||
| 20185 | *) | ||
| 20186 | ECHO_N='-n';; | ||
| 20187 | esac | ||
| 20188 | |||
| 20189 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 20190 | if test -d conf$$.dir; then | ||
| 20191 | rm -f conf$$.dir/conf$$.file | ||
| 20192 | else | ||
| 20193 | rm -f conf$$.dir | ||
| 20194 | mkdir conf$$.dir 2>/dev/null | ||
| 20195 | fi | ||
| 20196 | if (echo >conf$$.file) 2>/dev/null; then | ||
| 20197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
| 20198 | as_ln_s='ln -s' | ||
| 20199 | # ... but there are two gotchas: | ||
| 20200 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
| 20201 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
| 20202 | # In both cases, we have to default to `cp -p'. | ||
| 20203 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
| 20204 | as_ln_s='cp -p' | ||
| 20205 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
| 20206 | as_ln_s=ln | ||
| 20207 | else | ||
| 20208 | as_ln_s='cp -p' | ||
| 20209 | fi | ||
| 20210 | else | ||
| 20211 | as_ln_s='cp -p' | ||
| 20212 | fi | ||
| 20213 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
| 20214 | rmdir conf$$.dir 2>/dev/null | ||
| 20215 | |||
| 20216 | |||
| 20217 | # as_fn_mkdir_p | ||
| 20218 | # ------------- | ||
| 20219 | # Create "$as_dir" as a directory, including parents if necessary. | ||
| 20220 | as_fn_mkdir_p () | ||
| 20221 | { | ||
| 20222 | |||
| 20223 | case $as_dir in #( | ||
| 20224 | -*) as_dir=./$as_dir;; | ||
| 20225 | esac | ||
| 20226 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
| 20227 | as_dirs= | ||
| 20228 | while :; do | ||
| 20229 | case $as_dir in #( | ||
| 20230 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
| 20231 | *) as_qdir=$as_dir;; | ||
| 20232 | esac | ||
| 20233 | as_dirs="'$as_qdir' $as_dirs" | ||
| 20234 | as_dir=`$as_dirname -- "$as_dir" || | ||
| 20235 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 20236 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
| 20237 | X"$as_dir" : 'X\(//\)$' \| \ | ||
| 20238 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
| 20239 | $as_echo X"$as_dir" | | ||
| 20240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
| 20241 | s//\1/ | ||
| 20242 | q | ||
| 20243 | } | ||
| 20244 | /^X\(\/\/\)[^/].*/{ | ||
| 20245 | s//\1/ | ||
| 20246 | q | ||
| 20247 | } | ||
| 20248 | /^X\(\/\/\)$/{ | ||
| 20249 | s//\1/ | ||
| 20250 | q | ||
| 20251 | } | ||
| 20252 | /^X\(\/\).*/{ | ||
| 20253 | s//\1/ | ||
| 20254 | q | ||
| 20255 | } | ||
| 20256 | s/.*/./; q'` | ||
| 20257 | test -d "$as_dir" && break | ||
| 20258 | done | ||
| 20259 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
| 20260 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | ||
| 20261 | |||
| 20262 | |||
| 20263 | } # as_fn_mkdir_p | ||
| 20264 | if mkdir -p . 2>/dev/null; then | ||
| 20265 | as_mkdir_p='mkdir -p "$as_dir"' | ||
| 20266 | else | ||
| 20267 | test -d ./-p && rmdir ./-p | ||
| 20268 | as_mkdir_p=false | ||
| 20269 | fi | ||
| 20270 | |||
| 20271 | if test -x / >/dev/null 2>&1; then | ||
| 20272 | as_test_x='test -x' | ||
| 20273 | else | ||
| 20274 | if ls -dL / >/dev/null 2>&1; then | ||
| 20275 | as_ls_L_option=L | ||
| 20276 | else | ||
| 20277 | as_ls_L_option= | ||
| 20278 | fi | ||
| 20279 | as_test_x=' | ||
| 20280 | eval sh -c '\'' | ||
| 20281 | if test -d "$1"; then | ||
| 20282 | test -d "$1/."; | ||
| 20283 | else | ||
| 20284 | case $1 in #( | ||
| 20285 | -*)set "./$1";; | ||
| 20286 | esac; | ||
| 20287 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
| 20288 | ???[sx]*):;;*)false;;esac;fi | ||
| 20289 | '\'' sh | ||
| 20290 | ' | ||
| 20291 | fi | ||
| 20292 | as_executable_p=$as_test_x | ||
| 20293 | |||
| 20294 | # Sed expression to map a string onto a valid CPP name. | ||
| 20295 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
| 20296 | |||
| 20297 | # Sed expression to map a string onto a valid variable name. | ||
| 20298 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
| 20299 | |||
| 20300 | |||
| 20301 | exec 6>&1 | ||
| 20302 | ## ----------------------------------- ## | ||
| 20303 | ## Main body of $CONFIG_STATUS script. ## | ||
| 20304 | ## ----------------------------------- ## | ||
| 20305 | _ASEOF | ||
| 20306 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
| 20307 | |||
| 20308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20309 | # Save the log message, to keep $0 and so on meaningful, and to | ||
| 20310 | # report actual input values of CONFIG_FILES etc. instead of their | ||
| 20311 | # values after options handling. | ||
| 20312 | ac_log=" | ||
| 20313 | This file was extended by emacs $as_me 24.0.50, which was | ||
| 20314 | generated by GNU Autoconf 2.65. Invocation command line was | ||
| 20315 | |||
| 20316 | CONFIG_FILES = $CONFIG_FILES | ||
| 20317 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
| 20318 | CONFIG_LINKS = $CONFIG_LINKS | ||
| 20319 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
| 20320 | $ $0 $@ | ||
| 20321 | |||
| 20322 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 20323 | " | ||
| 20324 | |||
| 20325 | _ACEOF | ||
| 20326 | |||
| 20327 | case $ac_config_files in *" | ||
| 20328 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
| 20329 | esac | ||
| 20330 | |||
| 20331 | case $ac_config_headers in *" | ||
| 20332 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
| 20333 | esac | ||
| 20334 | |||
| 20335 | |||
| 20336 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 20337 | # Files that config.status was made for. | ||
| 20338 | config_files="$ac_config_files" | ||
| 20339 | config_headers="$ac_config_headers" | ||
| 20340 | config_commands="$ac_config_commands" | ||
| 20341 | |||
| 20342 | _ACEOF | ||
| 20343 | |||
| 20344 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20345 | ac_cs_usage="\ | ||
| 20346 | \`$as_me' instantiates files and other configuration actions | ||
| 20347 | from templates according to the current configuration. Unless the files | ||
| 20348 | and actions are specified as TAGs, all are instantiated by default. | ||
| 20349 | |||
| 20350 | Usage: $0 [OPTION]... [TAG]... | ||
| 20351 | |||
| 20352 | -h, --help print this help, then exit | ||
| 20353 | -V, --version print version number and configuration settings, then exit | ||
| 20354 | --config print configuration, then exit | ||
| 20355 | -q, --quiet, --silent | ||
| 20356 | do not print progress messages | ||
| 20357 | -d, --debug don't remove temporary files | ||
| 20358 | --recheck update $as_me by reconfiguring in the same conditions | ||
| 20359 | --file=FILE[:TEMPLATE] | ||
| 20360 | instantiate the configuration file FILE | ||
| 20361 | --header=FILE[:TEMPLATE] | ||
| 20362 | instantiate the configuration header FILE | ||
| 20363 | |||
| 20364 | Configuration files: | ||
| 20365 | $config_files | ||
| 20366 | |||
| 20367 | Configuration headers: | ||
| 20368 | $config_headers | ||
| 20369 | |||
| 20370 | Configuration commands: | ||
| 20371 | $config_commands | ||
| 20372 | |||
| 20373 | Report bugs to the package provider." | ||
| 20374 | |||
| 20375 | _ACEOF | ||
| 20376 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 20377 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
| 20378 | ac_cs_version="\\ | ||
| 20379 | emacs config.status 24.0.50 | ||
| 20380 | configured by $0, generated by GNU Autoconf 2.65, | ||
| 20381 | with options \\"\$ac_cs_config\\" | ||
| 20382 | |||
| 20383 | Copyright (C) 2009 Free Software Foundation, Inc. | ||
| 20384 | This config.status script is free software; the Free Software Foundation | ||
| 20385 | gives unlimited permission to copy, distribute and modify it." | ||
| 20386 | |||
| 20387 | ac_pwd='$ac_pwd' | ||
| 20388 | srcdir='$srcdir' | ||
| 20389 | INSTALL='$INSTALL' | ||
| 20390 | MKDIR_P='$MKDIR_P' | ||
| 20391 | AWK='$AWK' | ||
| 20392 | test -n "\$AWK" || AWK=awk | ||
| 20393 | _ACEOF | ||
| 20394 | |||
| 20395 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20396 | # The default lists apply if the user does not specify any file. | ||
| 20397 | ac_need_defaults=: | ||
| 20398 | while test $# != 0 | ||
| 20399 | do | ||
| 20400 | case $1 in | ||
| 20401 | --*=*) | ||
| 20402 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
| 20403 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
| 20404 | ac_shift=: | ||
| 20405 | ;; | ||
| 20406 | *) | ||
| 20407 | ac_option=$1 | ||
| 20408 | ac_optarg=$2 | ||
| 20409 | ac_shift=shift | ||
| 20410 | ;; | ||
| 20411 | esac | ||
| 20412 | |||
| 20413 | case $ac_option in | ||
| 20414 | # Handling of the options. | ||
| 20415 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
| 20416 | ac_cs_recheck=: ;; | ||
| 20417 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
| 20418 | $as_echo "$ac_cs_version"; exit ;; | ||
| 20419 | --config | --confi | --conf | --con | --co | --c ) | ||
| 20420 | $as_echo "$ac_cs_config"; exit ;; | ||
| 20421 | --debug | --debu | --deb | --de | --d | -d ) | ||
| 20422 | debug=: ;; | ||
| 20423 | --file | --fil | --fi | --f ) | ||
| 20424 | $ac_shift | ||
| 20425 | case $ac_optarg in | ||
| 20426 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 20427 | esac | ||
| 20428 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
| 20429 | ac_need_defaults=false;; | ||
| 20430 | --header | --heade | --head | --hea ) | ||
| 20431 | $ac_shift | ||
| 20432 | case $ac_optarg in | ||
| 20433 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 20434 | esac | ||
| 20435 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
| 20436 | ac_need_defaults=false;; | ||
| 20437 | --he | --h) | ||
| 20438 | # Conflict between --help and --header | ||
| 20439 | as_fn_error "ambiguous option: \`$1' | ||
| 20440 | Try \`$0 --help' for more information.";; | ||
| 20441 | --help | --hel | -h ) | ||
| 20442 | $as_echo "$ac_cs_usage"; exit ;; | ||
| 20443 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 20444 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
| 20445 | ac_cs_silent=: ;; | ||
| 20446 | |||
| 20447 | # This is an error. | ||
| 20448 | -*) as_fn_error "unrecognized option: \`$1' | ||
| 20449 | Try \`$0 --help' for more information." ;; | ||
| 20450 | |||
| 20451 | *) as_fn_append ac_config_targets " $1" | ||
| 20452 | ac_need_defaults=false ;; | ||
| 20453 | |||
| 20454 | esac | ||
| 20455 | shift | ||
| 20456 | done | ||
| 20457 | |||
| 20458 | ac_configure_extra_args= | ||
| 20459 | |||
| 20460 | if $ac_cs_silent; then | ||
| 20461 | exec 6>/dev/null | ||
| 20462 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
| 20463 | fi | ||
| 20464 | |||
| 20465 | _ACEOF | ||
| 20466 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 20467 | if \$ac_cs_recheck; then | ||
| 20468 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
| 20469 | shift | ||
| 20470 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
| 20471 | CONFIG_SHELL='$SHELL' | ||
| 20472 | export CONFIG_SHELL | ||
| 20473 | exec "\$@" | ||
| 20474 | fi | ||
| 20475 | |||
| 20476 | _ACEOF | ||
| 20477 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20478 | exec 5>>config.log | ||
| 20479 | { | ||
| 20480 | echo | ||
| 20481 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
| 20482 | ## Running $as_me. ## | ||
| 20483 | _ASBOX | ||
| 20484 | $as_echo "$ac_log" | ||
| 20485 | } >&5 | ||
| 20486 | |||
| 20487 | _ACEOF | ||
| 20488 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 20489 | # | ||
| 20490 | # INIT-COMMANDS | ||
| 20491 | # | ||
| 20492 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
| 20493 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS" | ||
| 20494 | |||
| 20495 | _ACEOF | ||
| 20496 | |||
| 20497 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20498 | |||
| 20499 | # Handling of arguments. | ||
| 20500 | for ac_config_target in $ac_config_targets | ||
| 20501 | do | ||
| 20502 | case $ac_config_target in | ||
| 20503 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | ||
| 20504 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
| 20505 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
| 20506 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | ||
| 20507 | "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;; | ||
| 20508 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | ||
| 20509 | "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; | ||
| 20510 | "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; | ||
| 20511 | "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; | ||
| 20512 | "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; | ||
| 20513 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
| 20514 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | ||
| 20515 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | ||
| 20516 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | ||
| 20517 | "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;; | ||
| 20518 | "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;; | ||
| 20519 | "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;; | ||
| 20520 | "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;; | ||
| 20521 | |||
| 20522 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
| 20523 | esac | ||
| 20524 | done | ||
| 20525 | |||
| 20526 | |||
| 20527 | # If the user did not use the arguments to specify the items to instantiate, | ||
| 20528 | # then the envvar interface is used. Set only those that are not. | ||
| 20529 | # We use the long form for the default assignment because of an extremely | ||
| 20530 | # bizarre bug on SunOS 4.1.3. | ||
| 20531 | if $ac_need_defaults; then | ||
| 20532 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
| 20533 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
| 20534 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
| 20535 | fi | ||
| 20536 | |||
| 20537 | # Have a temporary directory for convenience. Make it in the build tree | ||
| 20538 | # simply because there is no reason against having it here, and in addition, | ||
| 20539 | # creating and moving files from /tmp can sometimes cause problems. | ||
| 20540 | # Hook for its removal unless debugging. | ||
| 20541 | # Note that there is a small window in which the directory will not be cleaned: | ||
| 20542 | # after its creation but before its name has been assigned to `$tmp'. | ||
| 20543 | $debug || | ||
| 20544 | { | ||
| 20545 | tmp= | ||
| 20546 | trap 'exit_status=$? | ||
| 20547 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
| 20548 | ' 0 | ||
| 20549 | trap 'as_fn_exit 1' 1 2 13 15 | ||
| 20550 | } | ||
| 20551 | # Create a (secure) tmp directory for tmp files. | ||
| 20552 | |||
| 20553 | { | ||
| 20554 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
| 20555 | test -n "$tmp" && test -d "$tmp" | ||
| 20556 | } || | ||
| 20557 | { | ||
| 20558 | tmp=./conf$$-$RANDOM | ||
| 20559 | (umask 077 && mkdir "$tmp") | ||
| 20560 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | ||
| 20561 | |||
| 20562 | # Set up the scripts for CONFIG_FILES section. | ||
| 20563 | # No need to generate them if there are no CONFIG_FILES. | ||
| 20564 | # This happens for instance with `./config.status config.h'. | ||
| 20565 | if test -n "$CONFIG_FILES"; then | ||
| 20566 | |||
| 20567 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | ||
| 20568 | ac_cs_awk_getline=: | ||
| 20569 | ac_cs_awk_pipe_init= | ||
| 20570 | ac_cs_awk_read_file=' | ||
| 20571 | while ((getline aline < (F[key])) > 0) | ||
| 20572 | print(aline) | ||
| 20573 | close(F[key])' | ||
| 20574 | ac_cs_awk_pipe_fini= | ||
| 20575 | else | ||
| 20576 | ac_cs_awk_getline=false | ||
| 20577 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | ||
| 20578 | ac_cs_awk_read_file=' | ||
| 20579 | print "|#_!!_#|" | ||
| 20580 | print "cat " F[key] " &&" | ||
| 20581 | '$ac_cs_awk_pipe_init | ||
| 20582 | # The final `:' finishes the AND list. | ||
| 20583 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | ||
| 20584 | fi | ||
| 20585 | ac_cr=`echo X | tr X '\015'` | ||
| 20586 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
| 20587 | # But we know of no other shell where ac_cr would be empty at this | ||
| 20588 | # point, so we can use a bashism as a fallback. | ||
| 20589 | if test "x$ac_cr" = x; then | ||
| 20590 | eval ac_cr=\$\'\\r\' | ||
| 20591 | fi | ||
| 20592 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
| 20593 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
| 20594 | ac_cs_awk_cr='\r' | ||
| 20595 | else | ||
| 20596 | ac_cs_awk_cr=$ac_cr | ||
| 20597 | fi | ||
| 20598 | |||
| 20599 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
| 20600 | _ACEOF | ||
| 20601 | |||
| 20602 | # Create commands to substitute file output variables. | ||
| 20603 | { | ||
| 20604 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | ||
| 20605 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | ||
| 20606 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | ||
| 20607 | echo "_ACAWK" && | ||
| 20608 | echo "_ACEOF" | ||
| 20609 | } >conf$$files.sh && | ||
| 20610 | . ./conf$$files.sh || | ||
| 20611 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
| 20612 | rm -f conf$$files.sh | ||
| 20613 | |||
| 20614 | { | ||
| 20615 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
| 20616 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
| 20617 | echo "_ACEOF" | ||
| 20618 | } >conf$$subs.sh || | ||
| 20619 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
| 20620 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | ||
| 20621 | ac_delim='%!_!# ' | ||
| 20622 | for ac_last_try in false false false false false :; do | ||
| 20623 | . ./conf$$subs.sh || | ||
| 20624 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
| 20625 | |||
| 20626 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
| 20627 | if test $ac_delim_n = $ac_delim_num; then | ||
| 20628 | break | ||
| 20629 | elif $ac_last_try; then | ||
| 20630 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
| 20631 | else | ||
| 20632 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
| 20633 | fi | ||
| 20634 | done | ||
| 20635 | rm -f conf$$subs.sh | ||
| 20636 | |||
| 20637 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 20638 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
| 20639 | _ACEOF | ||
| 20640 | sed -n ' | ||
| 20641 | h | ||
| 20642 | s/^/S["/; s/!.*/"]=/ | ||
| 20643 | p | ||
| 20644 | g | ||
| 20645 | s/^[^!]*!// | ||
| 20646 | :repl | ||
| 20647 | t repl | ||
| 20648 | s/'"$ac_delim"'$// | ||
| 20649 | t delim | ||
| 20650 | :nl | ||
| 20651 | h | ||
| 20652 | s/\(.\{148\}\)..*/\1/ | ||
| 20653 | t more1 | ||
| 20654 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
| 20655 | p | ||
| 20656 | n | ||
| 20657 | b repl | ||
| 20658 | :more1 | ||
| 20659 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
| 20660 | p | ||
| 20661 | g | ||
| 20662 | s/.\{148\}// | ||
| 20663 | t nl | ||
| 20664 | :delim | ||
| 20665 | h | ||
| 20666 | s/\(.\{148\}\)..*/\1/ | ||
| 20667 | t more2 | ||
| 20668 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
| 20669 | p | ||
| 20670 | b | ||
| 20671 | :more2 | ||
| 20672 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
| 20673 | p | ||
| 20674 | g | ||
| 20675 | s/.\{148\}// | ||
| 20676 | t delim | ||
| 20677 | ' <conf$$subs.awk | sed ' | ||
| 20678 | /^[^""]/{ | ||
| 20679 | N | ||
| 20680 | s/\n// | ||
| 20681 | } | ||
| 20682 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
| 20683 | rm -f conf$$subs.awk | ||
| 20684 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 20685 | _ACAWK | ||
| 20686 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
| 20687 | for (key in S) S_is_set[key] = 1 | ||
| 20688 | FS = "" | ||
| 20689 | \$ac_cs_awk_pipe_init | ||
| 20690 | } | ||
| 20691 | { | ||
| 20692 | line = $ 0 | ||
| 20693 | nfields = split(line, field, "@") | ||
| 20694 | substed = 0 | ||
| 20695 | len = length(field[1]) | ||
| 20696 | for (i = 2; i < nfields; i++) { | ||
| 20697 | key = field[i] | ||
| 20698 | keylen = length(key) | ||
| 20699 | if (S_is_set[key]) { | ||
| 20700 | value = S[key] | ||
| 20701 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
| 20702 | len += length(value) + length(field[++i]) | ||
| 20703 | substed = 1 | ||
| 20704 | } else | ||
| 20705 | len += 1 + keylen | ||
| 20706 | } | ||
| 20707 | if (nfields == 3 && !substed) { | ||
| 20708 | key = field[2] | ||
| 20709 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | ||
| 20710 | \$ac_cs_awk_read_file | ||
| 20711 | next | ||
| 20712 | } | ||
| 20713 | } | ||
| 20714 | print line | ||
| 20715 | } | ||
| 20716 | \$ac_cs_awk_pipe_fini | ||
| 20717 | _ACAWK | ||
| 20718 | _ACEOF | ||
| 20719 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20720 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
| 20721 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
| 20722 | else | ||
| 20723 | cat | ||
| 20724 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
| 20725 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | ||
| 20726 | _ACEOF | ||
| 20727 | |||
| 20728 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
| 20729 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
| 20730 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
| 20731 | # (actually we leave an empty line to preserve line numbers). | ||
| 20732 | if test "x$srcdir" = x.; then | ||
| 20733 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
| 20734 | s/:*\$(srcdir):*/:/ | ||
| 20735 | s/:*\${srcdir}:*/:/ | ||
| 20736 | s/:*@srcdir@:*/:/ | ||
| 20737 | s/^\([^=]*=[ ]*\):*/\1/ | ||
| 20738 | s/:*$// | ||
| 20739 | s/^[^=]*=[ ]*$// | ||
| 20740 | }' | ||
| 20741 | fi | ||
| 20742 | |||
| 20743 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20744 | fi # test -n "$CONFIG_FILES" | ||
| 20745 | |||
| 20746 | # Set up the scripts for CONFIG_HEADERS section. | ||
| 20747 | # No need to generate them if there are no CONFIG_HEADERS. | ||
| 20748 | # This happens for instance with `./config.status Makefile'. | ||
| 20749 | if test -n "$CONFIG_HEADERS"; then | ||
| 20750 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
| 20751 | BEGIN { | ||
| 20752 | _ACEOF | ||
| 20753 | |||
| 20754 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
| 20755 | # here-document in config.status, that substitutes the proper values into | ||
| 20756 | # config.h.in to produce config.h. | ||
| 20757 | |||
| 20758 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
| 20759 | # handling of long lines. | ||
| 20760 | ac_delim='%!_!# ' | ||
| 20761 | for ac_last_try in false false :; do | ||
| 20762 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
| 20763 | if test -z "$ac_t"; then | ||
| 20764 | break | ||
| 20765 | elif $ac_last_try; then | ||
| 20766 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
| 20767 | else | ||
| 20768 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
| 20769 | fi | ||
| 20770 | done | ||
| 20771 | |||
| 20772 | # For the awk script, D is an array of macro values keyed by name, | ||
| 20773 | # likewise P contains macro parameters if any. Preserve backslash | ||
| 20774 | # newline sequences. | ||
| 20775 | |||
| 20776 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
| 20777 | sed -n ' | ||
| 20778 | s/.\{148\}/&'"$ac_delim"'/g | ||
| 20779 | t rset | ||
| 20780 | :rset | ||
| 20781 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
| 20782 | t def | ||
| 20783 | d | ||
| 20784 | :def | ||
| 20785 | s/\\$// | ||
| 20786 | t bsnl | ||
| 20787 | s/["\\]/\\&/g | ||
| 20788 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
| 20789 | D["\1"]=" \3"/p | ||
| 20790 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
| 20791 | d | ||
| 20792 | :bsnl | ||
| 20793 | s/["\\]/\\&/g | ||
| 20794 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
| 20795 | D["\1"]=" \3\\\\\\n"\\/p | ||
| 20796 | t cont | ||
| 20797 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
| 20798 | t cont | ||
| 20799 | d | ||
| 20800 | :cont | ||
| 20801 | n | ||
| 20802 | s/.\{148\}/&'"$ac_delim"'/g | ||
| 20803 | t clear | ||
| 20804 | :clear | ||
| 20805 | s/\\$// | ||
| 20806 | t bsnlc | ||
| 20807 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
| 20808 | d | ||
| 20809 | :bsnlc | ||
| 20810 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
| 20811 | b cont | ||
| 20812 | ' <confdefs.h | sed ' | ||
| 20813 | s/'"$ac_delim"'/"\\\ | ||
| 20814 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
| 20815 | |||
| 20816 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 20817 | for (key in D) D_is_set[key] = 1 | ||
| 20818 | FS = "" | ||
| 20819 | } | ||
| 20820 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
| 20821 | line = \$ 0 | ||
| 20822 | split(line, arg, " ") | ||
| 20823 | if (arg[1] == "#") { | ||
| 20824 | defundef = arg[2] | ||
| 20825 | mac1 = arg[3] | ||
| 20826 | } else { | ||
| 20827 | defundef = substr(arg[1], 2) | ||
| 20828 | mac1 = arg[2] | ||
| 20829 | } | ||
| 20830 | split(mac1, mac2, "(") #) | ||
| 20831 | macro = mac2[1] | ||
| 20832 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
| 20833 | if (D_is_set[macro]) { | ||
| 20834 | # Preserve the white space surrounding the "#". | ||
| 20835 | print prefix "define", macro P[macro] D[macro] | ||
| 20836 | next | ||
| 20837 | } else { | ||
| 20838 | # Replace #undef with comments. This is necessary, for example, | ||
| 20839 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
| 20840 | # on some systems where configure will not decide to define it. | ||
| 20841 | if (defundef == "undef") { | ||
| 20842 | print "/*", prefix defundef, macro, "*/" | ||
| 20843 | next | ||
| 20844 | } | ||
| 20845 | } | ||
| 20846 | } | ||
| 20847 | { print } | ||
| 20848 | _ACAWK | ||
| 20849 | _ACEOF | ||
| 20850 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 20851 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | ||
| 20852 | fi # test -n "$CONFIG_HEADERS" | ||
| 20853 | |||
| 20854 | |||
| 20855 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
| 20856 | shift | ||
| 20857 | for ac_tag | ||
| 20858 | do | ||
| 20859 | case $ac_tag in | ||
| 20860 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
| 20861 | esac | ||
| 20862 | case $ac_mode$ac_tag in | ||
| 20863 | :[FHL]*:*);; | ||
| 20864 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
| 20865 | :[FH]-) ac_tag=-:-;; | ||
| 20866 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
| 20867 | esac | ||
| 20868 | ac_save_IFS=$IFS | ||
| 20869 | IFS=: | ||
| 20870 | set x $ac_tag | ||
| 20871 | IFS=$ac_save_IFS | ||
| 20872 | shift | ||
| 20873 | ac_file=$1 | ||
| 20874 | shift | ||
| 20875 | |||
| 20876 | case $ac_mode in | ||
| 20877 | :L) ac_source=$1;; | ||
| 20878 | :[FH]) | ||
| 20879 | ac_file_inputs= | ||
| 20880 | for ac_f | ||
| 20881 | do | ||
| 20882 | case $ac_f in | ||
| 20883 | -) ac_f="$tmp/stdin";; | ||
| 20884 | *) # Look for the file first in the build tree, then in the source tree | ||
| 20885 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
| 20886 | # because $ac_f cannot contain `:'. | ||
| 20887 | test -f "$ac_f" || | ||
| 20888 | case $ac_f in | ||
| 20889 | [\\/$]*) false;; | ||
| 20890 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
| 20891 | esac || | ||
| 20892 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
| 20893 | esac | ||
| 20894 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
| 20895 | as_fn_append ac_file_inputs " '$ac_f'" | ||
| 20896 | done | ||
| 20897 | |||
| 20898 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
| 20899 | # use $as_me), people would be surprised to read: | ||
| 20900 | # /* config.h. Generated by config.status. */ | ||
| 20901 | configure_input='Generated from '` | ||
| 20902 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
| 20903 | `' by configure.' | ||
| 20904 | if test x"$ac_file" != x-; then | ||
| 20905 | configure_input="$ac_file. $configure_input" | ||
| 20906 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
| 20907 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
| 20908 | fi | ||
| 20909 | # Neutralize special characters interpreted by sed in replacement strings. | ||
| 20910 | case $configure_input in #( | ||
| 20911 | *\&* | *\|* | *\\* ) | ||
| 20912 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
| 20913 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
| 20914 | *) ac_sed_conf_input=$configure_input;; | ||
| 20915 | esac | ||
| 20916 | |||
| 20917 | case $ac_tag in | ||
| 20918 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
| 20919 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | ||
| 20920 | esac | ||
| 20921 | ;; | ||
| 20922 | esac | ||
| 20923 | |||
| 20924 | ac_dir=`$as_dirname -- "$ac_file" || | ||
| 20925 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 20926 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
| 20927 | X"$ac_file" : 'X\(//\)$' \| \ | ||
| 20928 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
| 20929 | $as_echo X"$ac_file" | | ||
| 20930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
| 20931 | s//\1/ | ||
| 20932 | q | ||
| 20933 | } | ||
| 20934 | /^X\(\/\/\)[^/].*/{ | ||
| 20935 | s//\1/ | ||
| 20936 | q | ||
| 20937 | } | ||
| 20938 | /^X\(\/\/\)$/{ | ||
| 20939 | s//\1/ | ||
| 20940 | q | ||
| 20941 | } | ||
| 20942 | /^X\(\/\).*/{ | ||
| 20943 | s//\1/ | ||
| 20944 | q | ||
| 20945 | } | ||
| 20946 | s/.*/./; q'` | ||
| 20947 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
| 20948 | ac_builddir=. | ||
| 20949 | |||
| 20950 | case "$ac_dir" in | ||
| 20951 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
| 20952 | *) | ||
| 20953 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
| 20954 | # A ".." for each directory in $ac_dir_suffix. | ||
| 20955 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
| 20956 | case $ac_top_builddir_sub in | ||
| 20957 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
| 20958 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
| 20959 | esac ;; | ||
| 20960 | esac | ||
| 20961 | ac_abs_top_builddir=$ac_pwd | ||
| 20962 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
| 20963 | # for backward compatibility: | ||
| 20964 | ac_top_builddir=$ac_top_build_prefix | ||
| 20965 | |||
| 20966 | case $srcdir in | ||
| 20967 | .) # We are building in place. | ||
| 20968 | ac_srcdir=. | ||
| 20969 | ac_top_srcdir=$ac_top_builddir_sub | ||
| 20970 | ac_abs_top_srcdir=$ac_pwd ;; | ||
| 20971 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
| 20972 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
| 20973 | ac_top_srcdir=$srcdir | ||
| 20974 | ac_abs_top_srcdir=$srcdir ;; | ||
| 20975 | *) # Relative name. | ||
| 20976 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
| 20977 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
| 20978 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
| 20979 | esac | ||
| 20980 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
| 20981 | |||
| 20982 | |||
| 20983 | case $ac_mode in | ||
| 20984 | :F) | ||
| 20985 | # | ||
| 20986 | # CONFIG_FILE | ||
| 20987 | # | ||
| 20988 | |||
| 20989 | case $INSTALL in | ||
| 20990 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
| 20991 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
| 20992 | esac | ||
| 20993 | ac_MKDIR_P=$MKDIR_P | ||
| 20994 | case $MKDIR_P in | ||
| 20995 | [\\/$]* | ?:[\\/]* ) ;; | ||
| 20996 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
| 20997 | esac | ||
| 20998 | _ACEOF | ||
| 20999 | |||
| 21000 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 21001 | # If the template does not know about datarootdir, expand it. | ||
| 21002 | # FIXME: This hack should be removed a few years after 2.60. | ||
| 21003 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
| 21004 | ac_sed_dataroot=' | ||
| 21005 | /datarootdir/ { | ||
| 21006 | p | ||
| 21007 | q | ||
| 21008 | } | ||
| 21009 | /@datadir@/p | ||
| 21010 | /@docdir@/p | ||
| 21011 | /@infodir@/p | ||
| 21012 | /@localedir@/p | ||
| 21013 | /@mandir@/p' | ||
| 21014 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
| 21015 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
| 21016 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
| 21017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
| 21018 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
| 21019 | _ACEOF | ||
| 21020 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 21021 | ac_datarootdir_hack=' | ||
| 21022 | s&@datadir@&$datadir&g | ||
| 21023 | s&@docdir@&$docdir&g | ||
| 21024 | s&@infodir@&$infodir&g | ||
| 21025 | s&@localedir@&$localedir&g | ||
| 21026 | s&@mandir@&$mandir&g | ||
| 21027 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
| 21028 | esac | ||
| 21029 | _ACEOF | ||
| 21030 | |||
| 21031 | # Neutralize VPATH when `$srcdir' = `.'. | ||
| 21032 | # Shell code in configure.ac might set extrasub. | ||
| 21033 | # FIXME: do we really want to maintain this feature? | ||
| 21034 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
| 21035 | ac_sed_extra="$ac_vpsub | ||
| 21036 | $extrasub | ||
| 21037 | _ACEOF | ||
| 21038 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
| 21039 | :t | ||
| 21040 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
| 21041 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
| 21042 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
| 21043 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
| 21044 | s&@srcdir@&$ac_srcdir&;t t | ||
| 21045 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
| 21046 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
| 21047 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
| 21048 | s&@builddir@&$ac_builddir&;t t | ||
| 21049 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
| 21050 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
| 21051 | s&@INSTALL@&$ac_INSTALL&;t t | ||
| 21052 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
| 21053 | $ac_datarootdir_hack | ||
| 21054 | " | ||
| 21055 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | ||
| 21056 | if $ac_cs_awk_getline; then | ||
| 21057 | $AWK -f "$tmp/subs.awk" | ||
| 21058 | else | ||
| 21059 | $AWK -f "$tmp/subs.awk" | $SHELL | ||
| 21060 | fi >$tmp/out \ | ||
| 21061 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | ||
| 21062 | |||
| 21063 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
| 21064 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
| 21065 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
| 21066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
| 21067 | which seems to be undefined. Please make sure it is defined." >&5 | ||
| 21068 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
| 21069 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
| 21070 | |||
| 21071 | rm -f "$tmp/stdin" | ||
| 21072 | case $ac_file in | ||
| 21073 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
| 21074 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
| 21075 | esac \ | ||
| 21076 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | ||
| 21077 | ;; | ||
| 21078 | :H) | ||
| 21079 | # | ||
| 21080 | # CONFIG_HEADER | ||
| 21081 | # | ||
| 21082 | if test x"$ac_file" != x-; then | ||
| 21083 | { | ||
| 21084 | $as_echo "/* $configure_input */" \ | ||
| 21085 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
| 21086 | } >"$tmp/config.h" \ | ||
| 21087 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | ||
| 21088 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
| 21089 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
| 21090 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
| 21091 | else | ||
| 21092 | rm -f "$ac_file" | ||
| 21093 | mv "$tmp/config.h" "$ac_file" \ | ||
| 21094 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | ||
| 21095 | fi | ||
| 21096 | else | ||
| 21097 | $as_echo "/* $configure_input */" \ | ||
| 21098 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
| 21099 | || as_fn_error "could not create -" "$LINENO" 5 | ||
| 21100 | fi | ||
| 21101 | # Compute "$ac_file"'s index in $config_headers. | ||
| 21102 | _am_arg="$ac_file" | ||
| 21103 | _am_stamp_count=1 | ||
| 21104 | for _am_header in $config_headers :; do | ||
| 21105 | case $_am_header in | ||
| 21106 | $_am_arg | $_am_arg:* ) | ||
| 21107 | break ;; | ||
| 21108 | * ) | ||
| 21109 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
| 21110 | esac | ||
| 21111 | done | ||
| 21112 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
| 21113 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 21114 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
| 21115 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
| 21116 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
| 21117 | $as_echo X"$_am_arg" | | ||
| 21118 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
| 21119 | s//\1/ | ||
| 21120 | q | ||
| 21121 | } | ||
| 21122 | /^X\(\/\/\)[^/].*/{ | ||
| 21123 | s//\1/ | ||
| 21124 | q | ||
| 21125 | } | ||
| 21126 | /^X\(\/\/\)$/{ | ||
| 21127 | s//\1/ | ||
| 21128 | q | ||
| 21129 | } | ||
| 21130 | /^X\(\/\).*/{ | ||
| 21131 | s//\1/ | ||
| 21132 | q | ||
| 21133 | } | ||
| 21134 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
| 21135 | ;; | ||
| 21136 | |||
| 21137 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
| 21138 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
| 21139 | ;; | ||
| 21140 | esac | ||
| 21141 | |||
| 21142 | |||
| 21143 | case $ac_file$ac_mode in | ||
| 21144 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
| 21145 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
| 21146 | # are listed without --file. Let's play safe and only enable the eval | ||
| 21147 | # if we detect the quoting. | ||
| 21148 | case $CONFIG_FILES in | ||
| 21149 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
| 21150 | *) set x $CONFIG_FILES ;; | ||
| 21151 | esac | ||
| 21152 | shift | ||
| 21153 | for mf | ||
| 21154 | do | ||
| 21155 | # Strip MF so we end up with the name of the file. | ||
| 21156 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
| 21157 | # Check whether this is an Automake generated Makefile or not. | ||
| 21158 | # We used to match only the files named `Makefile.in', but | ||
| 21159 | # some people rename them; so instead we look at the file content. | ||
| 21160 | # Grep'ing the first line is not enough: some people post-process | ||
| 21161 | # each Makefile.in and add a new line on top of each file to say so. | ||
| 21162 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
| 21163 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
| 21164 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
| 21165 | dirpart=`$as_dirname -- "$mf" || | ||
| 21166 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 21167 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
| 21168 | X"$mf" : 'X\(//\)$' \| \ | ||
| 21169 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
| 21170 | $as_echo X"$mf" | | ||
| 21171 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
| 21172 | s//\1/ | ||
| 21173 | q | ||
| 21174 | } | ||
| 21175 | /^X\(\/\/\)[^/].*/{ | ||
| 21176 | s//\1/ | ||
| 21177 | q | ||
| 21178 | } | ||
| 21179 | /^X\(\/\/\)$/{ | ||
| 21180 | s//\1/ | ||
| 21181 | q | ||
| 21182 | } | ||
| 21183 | /^X\(\/\).*/{ | ||
| 21184 | s//\1/ | ||
| 21185 | q | ||
| 21186 | } | ||
| 21187 | s/.*/./; q'` | ||
| 21188 | else | ||
| 21189 | continue | ||
| 21190 | fi | ||
| 21191 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
| 21192 | # from the Makefile without running `make'. | ||
| 21193 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
| 21194 | test -z "$DEPDIR" && continue | ||
| 21195 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
| 21196 | test -z "am__include" && continue | ||
| 21197 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
| 21198 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
| 21199 | U=`sed -n 's/^U = //p' < "$mf"` | ||
| 21200 | # Find all dependency output files, they are included files with | ||
| 21201 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
| 21202 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
| 21203 | # expansion. | ||
| 21204 | for file in `sed -n " | ||
| 21205 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
| 21206 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
| 21207 | # Make sure the directory exists. | ||
| 21208 | test -f "$dirpart/$file" && continue | ||
| 21209 | fdir=`$as_dirname -- "$file" || | ||
| 21210 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 21211 | X"$file" : 'X\(//\)[^/]' \| \ | ||
| 21212 | X"$file" : 'X\(//\)$' \| \ | ||
| 21213 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
| 21214 | $as_echo X"$file" | | ||
| 21215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
| 21216 | s//\1/ | ||
| 21217 | q | ||
| 21218 | } | ||
| 21219 | /^X\(\/\/\)[^/].*/{ | ||
| 21220 | s//\1/ | ||
| 21221 | q | ||
| 21222 | } | ||
| 21223 | /^X\(\/\/\)$/{ | ||
| 21224 | s//\1/ | ||
| 21225 | q | ||
| 21226 | } | ||
| 21227 | /^X\(\/\).*/{ | ||
| 21228 | s//\1/ | ||
| 21229 | q | ||
| 21230 | } | ||
| 21231 | s/.*/./; q'` | ||
| 21232 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
| 21233 | # echo "creating $dirpart/$file" | ||
| 21234 | echo '# dummy' > "$dirpart/$file" | ||
| 21235 | done | ||
| 21236 | done | ||
| 21237 | } | ||
| 21238 | ;; | ||
| 21239 | "mkdirs":C) | ||
| 21240 | for dir in etc lisp ; do | ||
| 21241 | test -d ${dir} || mkdir ${dir} | ||
| 21242 | done | ||
| 21243 | ;; | ||
| 21244 | "epaths":C) | ||
| 21245 | echo creating src/epaths.h | ||
| 21246 | ${MAKE-make} epaths-force | ||
| 21247 | ;; | ||
| 21248 | "gdbinit":C) | ||
| 21249 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then | ||
| 21250 | echo creating src/.gdbinit | ||
| 21251 | echo source $srcdir/src/.gdbinit > src/.gdbinit | ||
| 21252 | fi | ||
| 21253 | ;; | ||
| 21254 | |||
| 21255 | esac | ||
| 21256 | done # for ac_tag | ||
| 21257 | |||
| 21258 | |||
| 21259 | as_fn_exit 0 | ||
| 21260 | _ACEOF | ||
| 21261 | ac_clean_files=$ac_clean_files_save | ||
| 21262 | |||
| 21263 | test $ac_write_fail = 0 || | ||
| 21264 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
| 21265 | |||
| 21266 | |||
| 21267 | # configure is writing to config.log, and then calls config.status. | ||
| 21268 | # config.status does its own redirection, appending to config.log. | ||
| 21269 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
| 21270 | # by configure, so config.status won't be able to write to it; its | ||
| 21271 | # output is simply discarded. So we exec the FD to /dev/null, | ||
| 21272 | # effectively closing config.log, so it can be properly (re)opened and | ||
| 21273 | # appended to by config.status. When coming back to configure, we | ||
| 21274 | # need to make the FD available again. | ||
| 21275 | if test "$no_create" != yes; then | ||
| 21276 | ac_cs_success=: | ||
| 21277 | ac_config_status_args= | ||
| 21278 | test "$silent" = yes && | ||
| 21279 | ac_config_status_args="$ac_config_status_args --quiet" | ||
| 21280 | exec 5>/dev/null | ||
| 21281 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
| 21282 | exec 5>>config.log | ||
| 21283 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
| 21284 | # would make configure fail if this is the last instruction. | ||
| 21285 | $ac_cs_success || as_fn_exit $? | ||
| 21286 | fi | ||
| 21287 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
| 21288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
| 21289 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
| 21290 | fi | ||
| 21291 | |||
| 21292 | |||
diff --git a/autogen/copy_autogen b/autogen/copy_autogen new file mode 100755 index 00000000000..4abdbd87c0f --- /dev/null +++ b/autogen/copy_autogen | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | ## Helper script for those building Emacs from bzr without autoconf etc. | ||
| 4 | ## This installs some pre-generated versions of the automatically | ||
| 5 | ## generated files. It is highly recommended to install the necessary | ||
| 6 | ## tools instead of using this. Note that if eg configure.in | ||
| 7 | ## is updated, the next time you run make it will attempt to | ||
| 8 | ## regenerate configure and will fail if you do not have the required | ||
| 9 | ## tools. You will have to run this script again. | ||
| 10 | |||
| 11 | if test ! -e config.in; then | ||
| 12 | echo "You must run this script from the autogen/ directory." | ||
| 13 | exit 1 | ||
| 14 | fi | ||
| 15 | |||
| 16 | cp configure aclocal.m4 ../ | ||
| 17 | cp config.in ../src/ | ||
| 18 | cp Makefile.in ../lib/ | ||
| 19 | |||
| 20 | echo "You can now run configure" | ||
diff --git a/autogen/update_autogen b/autogen/update_autogen new file mode 100755 index 00000000000..0b26dd27d2b --- /dev/null +++ b/autogen/update_autogen | |||
| @@ -0,0 +1,183 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | ### update_autogen - update the generated files in Emacs autogen/ directory | ||
| 3 | |||
| 4 | ## Copyright (C) 2011 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | ## Author: Glenn Morris <rgm@gnu.org> | ||
| 7 | |||
| 8 | ## This file is part of GNU Emacs. | ||
| 9 | |||
| 10 | ## GNU Emacs is free software: you can redistribute it and/or modify | ||
| 11 | ## it under the terms of the GNU General Public License as published by | ||
| 12 | ## the Free Software Foundation, either version 3 of the License, or | ||
| 13 | ## (at your option) any later version. | ||
| 14 | |||
| 15 | ## GNU Emacs is distributed in the hope that it will be useful, | ||
| 16 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | ## GNU General Public License for more details. | ||
| 19 | |||
| 20 | ## You should have received a copy of the GNU General Public License | ||
| 21 | ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 22 | |||
| 23 | ### Commentary: | ||
| 24 | |||
| 25 | ## This is a helper script to update the pre-built generated files in | ||
| 26 | ## the autogen/ directory. This is suitable for running from cron. | ||
| 27 | ## Only Emacs maintainers need use this, so it uses bash features. | ||
| 28 | |||
| 29 | ### Code: | ||
| 30 | |||
| 31 | function die () # write error to stderr and exit | ||
| 32 | { | ||
| 33 | [ $# -gt 0 ] && echo "$PN: $@" >&2 | ||
| 34 | exit 1 | ||
| 35 | } | ||
| 36 | |||
| 37 | PN=${0##*/} # basename of script | ||
| 38 | PD=${0%/*} | ||
| 39 | |||
| 40 | [ "$PD" = "$0" ] && PD=. # if PATH includes PWD | ||
| 41 | |||
| 42 | ## This should be the autogen directory. | ||
| 43 | cd $PD | ||
| 44 | cd ../ | ||
| 45 | [ -d autogen ] || die "Could not locate autogen directory" | ||
| 46 | |||
| 47 | |||
| 48 | function usage () | ||
| 49 | { | ||
| 50 | cat 1>&2 <<EOF | ||
| 51 | Usage: ${PN} [-f] [-c] [-q] | ||
| 52 | Update the generated files in the Emacs autogen/ directory. | ||
| 53 | Options: | ||
| 54 | -f: force an update even if the source files are locally modified. | ||
| 55 | -c: if the update succeeds and the generated files are modified, | ||
| 56 | commit them (caution). | ||
| 57 | -q: be quiet; only give error messages, not status messages. | ||
| 58 | EOF | ||
| 59 | exit 1 | ||
| 60 | } | ||
| 61 | |||
| 62 | |||
| 63 | ## Defaults. | ||
| 64 | |||
| 65 | force= | ||
| 66 | commit= | ||
| 67 | quiet= | ||
| 68 | |||
| 69 | ## Parameters. | ||
| 70 | sources="configure.in lib/Makefile.am" | ||
| 71 | genfiles="configure aclocal.m4 src/config.in lib/Makefile.in" | ||
| 72 | |||
| 73 | for g in $genfiles; do | ||
| 74 | basegen="$basegen ${g##*/}" | ||
| 75 | done | ||
| 76 | |||
| 77 | [ "$basegen" ] || die "internal error" | ||
| 78 | |||
| 79 | tempfile=/tmp/$PN.$$ | ||
| 80 | |||
| 81 | trap "rm -f $tempfile 2> /dev/null" EXIT | ||
| 82 | |||
| 83 | |||
| 84 | while getopts ":hcfq" option ; do | ||
| 85 | case $option in | ||
| 86 | (h) usage ;; | ||
| 87 | |||
| 88 | (c) commit=1 ;; | ||
| 89 | |||
| 90 | (f) force=1 ;; | ||
| 91 | |||
| 92 | (q) quiet=1 ;; | ||
| 93 | |||
| 94 | (\?) die "Bad option -$OPTARG" ;; | ||
| 95 | |||
| 96 | (:) die "Option -$OPTARG requires an argument" ;; | ||
| 97 | |||
| 98 | (*) die "getopts error" ;; | ||
| 99 | esac | ||
| 100 | done | ||
| 101 | shift $(( --OPTIND )) | ||
| 102 | OPTIND=1 | ||
| 103 | |||
| 104 | [ $# -eq 0 ] || die "Wrong number of arguments" | ||
| 105 | |||
| 106 | |||
| 107 | function msg () | ||
| 108 | { | ||
| 109 | [ "$quiet" ] && return 0 | ||
| 110 | echo "$@" | ||
| 111 | } # function msg | ||
| 112 | |||
| 113 | |||
| 114 | msg "Running bzr status..." | ||
| 115 | |||
| 116 | bzr status -S $sources >| $tempfile || die "bzr status error for sources" | ||
| 117 | |||
| 118 | while read stat file; do | ||
| 119 | |||
| 120 | case $stat in | ||
| 121 | M) | ||
| 122 | msg "Locally modified: $file" | ||
| 123 | [ "$force" ] || die "There are local modifications" | ||
| 124 | ;; | ||
| 125 | |||
| 126 | *) die "Unexpected status ($stat) for $file" ;; | ||
| 127 | esac | ||
| 128 | done < $tempfile | ||
| 129 | |||
| 130 | |||
| 131 | msg "Running autoreconf..." | ||
| 132 | |||
| 133 | autoreconf -I m4 || die "autoreconf error" | ||
| 134 | |||
| 135 | |||
| 136 | cp $genfiles autogen/ | ||
| 137 | |||
| 138 | |||
| 139 | cd autogen | ||
| 140 | |||
| 141 | |||
| 142 | bzr status -S $basegen >| $tempfile || \ | ||
| 143 | die "bzr status error for generated files" | ||
| 144 | |||
| 145 | |||
| 146 | modified= | ||
| 147 | |||
| 148 | while read stat file; do | ||
| 149 | |||
| 150 | [ "$stat" != "M" ] && die "Unexpected status ($stat) for generated $file" | ||
| 151 | |||
| 152 | modified="$modified $file" | ||
| 153 | |||
| 154 | done < $tempfile | ||
| 155 | |||
| 156 | |||
| 157 | [ "$modified" ] || { | ||
| 158 | msg "No files were modified" | ||
| 159 | exit 0 | ||
| 160 | } | ||
| 161 | |||
| 162 | msg "Modified file(s): $modified" | ||
| 163 | |||
| 164 | [ "$commit" ] || exit 0 | ||
| 165 | |||
| 166 | |||
| 167 | msg "Committing..." | ||
| 168 | |||
| 169 | ## bzr status output is annoyingly always relative to top-level, not PWD. | ||
| 170 | cd ../ | ||
| 171 | |||
| 172 | opt= | ||
| 173 | [ "$quiet" ] || opt=-q | ||
| 174 | |||
| 175 | bzr commit $opt -m "Auto-commit of generated files." $modified || \ | ||
| 176 | die "bzr commit error" | ||
| 177 | |||
| 178 | |||
| 179 | msg "Committed files: $modified" | ||
| 180 | |||
| 181 | exit | ||
| 182 | |||
| 183 | ### update_autogen ends here | ||
| @@ -681,6 +681,93 @@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H | |||
| 681 | NEXT_SYS_STAT_H | 681 | NEXT_SYS_STAT_H |
| 682 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H | 682 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 683 | NEXT_STDLIB_H | 683 | NEXT_STDLIB_H |
| 684 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H | ||
| 685 | NEXT_STDIO_H | ||
| 686 | REPLACE_VSPRINTF | ||
| 687 | REPLACE_VSNPRINTF | ||
| 688 | REPLACE_VPRINTF | ||
| 689 | REPLACE_VFPRINTF | ||
| 690 | REPLACE_VDPRINTF | ||
| 691 | REPLACE_VASPRINTF | ||
| 692 | REPLACE_TMPFILE | ||
| 693 | REPLACE_STDIO_WRITE_FUNCS | ||
| 694 | REPLACE_SPRINTF | ||
| 695 | REPLACE_SNPRINTF | ||
| 696 | REPLACE_RENAMEAT | ||
| 697 | REPLACE_RENAME | ||
| 698 | REPLACE_REMOVE | ||
| 699 | REPLACE_PRINTF | ||
| 700 | REPLACE_POPEN | ||
| 701 | REPLACE_PERROR | ||
| 702 | REPLACE_OBSTACK_PRINTF | ||
| 703 | REPLACE_GETLINE | ||
| 704 | REPLACE_GETDELIM | ||
| 705 | REPLACE_FTELLO | ||
| 706 | REPLACE_FTELL | ||
| 707 | REPLACE_FSEEKO | ||
| 708 | REPLACE_FSEEK | ||
| 709 | REPLACE_FREOPEN | ||
| 710 | REPLACE_FPURGE | ||
| 711 | REPLACE_FPRINTF | ||
| 712 | REPLACE_FOPEN | ||
| 713 | REPLACE_FFLUSH | ||
| 714 | REPLACE_FCLOSE | ||
| 715 | REPLACE_DPRINTF | ||
| 716 | HAVE_VDPRINTF | ||
| 717 | HAVE_VASPRINTF | ||
| 718 | HAVE_RENAMEAT | ||
| 719 | HAVE_FTELLO | ||
| 720 | HAVE_FSEEKO | ||
| 721 | HAVE_DPRINTF | ||
| 722 | HAVE_DECL_VSNPRINTF | ||
| 723 | HAVE_DECL_SNPRINTF | ||
| 724 | HAVE_DECL_OBSTACK_PRINTF | ||
| 725 | HAVE_DECL_GETLINE | ||
| 726 | HAVE_DECL_GETDELIM | ||
| 727 | HAVE_DECL_FTELLO | ||
| 728 | HAVE_DECL_FSEEKO | ||
| 729 | HAVE_DECL_FPURGE | ||
| 730 | GNULIB_VSPRINTF_POSIX | ||
| 731 | GNULIB_VSNPRINTF | ||
| 732 | GNULIB_VPRINTF_POSIX | ||
| 733 | GNULIB_VPRINTF | ||
| 734 | GNULIB_VFPRINTF_POSIX | ||
| 735 | GNULIB_VFPRINTF | ||
| 736 | GNULIB_VDPRINTF | ||
| 737 | GNULIB_VASPRINTF | ||
| 738 | GNULIB_TMPFILE | ||
| 739 | GNULIB_STDIO_H_SIGPIPE | ||
| 740 | GNULIB_SPRINTF_POSIX | ||
| 741 | GNULIB_SNPRINTF | ||
| 742 | GNULIB_RENAMEAT | ||
| 743 | GNULIB_RENAME | ||
| 744 | GNULIB_REMOVE | ||
| 745 | GNULIB_PUTS | ||
| 746 | GNULIB_PUTCHAR | ||
| 747 | GNULIB_PUTC | ||
| 748 | GNULIB_PRINTF_POSIX | ||
| 749 | GNULIB_PRINTF | ||
| 750 | GNULIB_POPEN | ||
| 751 | GNULIB_PERROR | ||
| 752 | GNULIB_OBSTACK_PRINTF_POSIX | ||
| 753 | GNULIB_OBSTACK_PRINTF | ||
| 754 | GNULIB_GETLINE | ||
| 755 | GNULIB_GETDELIM | ||
| 756 | GNULIB_FWRITE | ||
| 757 | GNULIB_FTELLO | ||
| 758 | GNULIB_FTELL | ||
| 759 | GNULIB_FSEEKO | ||
| 760 | GNULIB_FSEEK | ||
| 761 | GNULIB_FREOPEN | ||
| 762 | GNULIB_FPUTS | ||
| 763 | GNULIB_FPUTC | ||
| 764 | GNULIB_FPURGE | ||
| 765 | GNULIB_FPRINTF_POSIX | ||
| 766 | GNULIB_FPRINTF | ||
| 767 | GNULIB_FOPEN | ||
| 768 | GNULIB_FFLUSH | ||
| 769 | GNULIB_FCLOSE | ||
| 770 | GNULIB_DPRINTF | ||
| 684 | STDINT_H | 771 | STDINT_H |
| 685 | WINT_T_SUFFIX | 772 | WINT_T_SUFFIX |
| 686 | WCHAR_T_SUFFIX | 773 | WCHAR_T_SUFFIX |
| @@ -3958,7 +4045,7 @@ fi | |||
| 3958 | if test "${enable_maintainer_mode+set}" = set; then : | 4045 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3959 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | 4046 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3960 | else | 4047 | else |
| 3961 | USE_MAINTAINER_MODE=no | 4048 | USE_MAINTAINER_MODE=yes |
| 3962 | fi | 4049 | fi |
| 3963 | 4050 | ||
| 3964 | if test $USE_MAINTAINER_MODE = yes; then | 4051 | if test $USE_MAINTAINER_MODE = yes; then |
| @@ -6147,6 +6234,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |||
| 6147 | # Code from module stdbool: | 6234 | # Code from module stdbool: |
| 6148 | # Code from module stddef: | 6235 | # Code from module stddef: |
| 6149 | # Code from module stdint: | 6236 | # Code from module stdint: |
| 6237 | # Code from module stdio: | ||
| 6150 | # Code from module stdlib: | 6238 | # Code from module stdlib: |
| 6151 | # Code from module strftime: | 6239 | # Code from module strftime: |
| 6152 | # Code from module symlink: | 6240 | # Code from module symlink: |
| @@ -15039,6 +15127,93 @@ $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | |||
| 15039 | 15127 | ||
| 15040 | 15128 | ||
| 15041 | 15129 | ||
| 15130 | GNULIB_DPRINTF=0; | ||
| 15131 | GNULIB_FCLOSE=0; | ||
| 15132 | GNULIB_FFLUSH=0; | ||
| 15133 | GNULIB_FOPEN=0; | ||
| 15134 | GNULIB_FPRINTF=0; | ||
| 15135 | GNULIB_FPRINTF_POSIX=0; | ||
| 15136 | GNULIB_FPURGE=0; | ||
| 15137 | GNULIB_FPUTC=0; | ||
| 15138 | GNULIB_FPUTS=0; | ||
| 15139 | GNULIB_FREOPEN=0; | ||
| 15140 | GNULIB_FSEEK=0; | ||
| 15141 | GNULIB_FSEEKO=0; | ||
| 15142 | GNULIB_FTELL=0; | ||
| 15143 | GNULIB_FTELLO=0; | ||
| 15144 | GNULIB_FWRITE=0; | ||
| 15145 | GNULIB_GETDELIM=0; | ||
| 15146 | GNULIB_GETLINE=0; | ||
| 15147 | GNULIB_OBSTACK_PRINTF=0; | ||
| 15148 | GNULIB_OBSTACK_PRINTF_POSIX=0; | ||
| 15149 | GNULIB_PERROR=0; | ||
| 15150 | GNULIB_POPEN=0; | ||
| 15151 | GNULIB_PRINTF=0; | ||
| 15152 | GNULIB_PRINTF_POSIX=0; | ||
| 15153 | GNULIB_PUTC=0; | ||
| 15154 | GNULIB_PUTCHAR=0; | ||
| 15155 | GNULIB_PUTS=0; | ||
| 15156 | GNULIB_REMOVE=0; | ||
| 15157 | GNULIB_RENAME=0; | ||
| 15158 | GNULIB_RENAMEAT=0; | ||
| 15159 | GNULIB_SNPRINTF=0; | ||
| 15160 | GNULIB_SPRINTF_POSIX=0; | ||
| 15161 | GNULIB_STDIO_H_SIGPIPE=0; | ||
| 15162 | GNULIB_TMPFILE=0; | ||
| 15163 | GNULIB_VASPRINTF=0; | ||
| 15164 | GNULIB_VDPRINTF=0; | ||
| 15165 | GNULIB_VFPRINTF=0; | ||
| 15166 | GNULIB_VFPRINTF_POSIX=0; | ||
| 15167 | GNULIB_VPRINTF=0; | ||
| 15168 | GNULIB_VPRINTF_POSIX=0; | ||
| 15169 | GNULIB_VSNPRINTF=0; | ||
| 15170 | GNULIB_VSPRINTF_POSIX=0; | ||
| 15171 | HAVE_DECL_FPURGE=1; | ||
| 15172 | HAVE_DECL_FSEEKO=1; | ||
| 15173 | HAVE_DECL_FTELLO=1; | ||
| 15174 | HAVE_DECL_GETDELIM=1; | ||
| 15175 | HAVE_DECL_GETLINE=1; | ||
| 15176 | HAVE_DECL_OBSTACK_PRINTF=1; | ||
| 15177 | HAVE_DECL_SNPRINTF=1; | ||
| 15178 | HAVE_DECL_VSNPRINTF=1; | ||
| 15179 | HAVE_DPRINTF=1; | ||
| 15180 | HAVE_FSEEKO=1; | ||
| 15181 | HAVE_FTELLO=1; | ||
| 15182 | HAVE_RENAMEAT=1; | ||
| 15183 | HAVE_VASPRINTF=1; | ||
| 15184 | HAVE_VDPRINTF=1; | ||
| 15185 | REPLACE_DPRINTF=0; | ||
| 15186 | REPLACE_FCLOSE=0; | ||
| 15187 | REPLACE_FFLUSH=0; | ||
| 15188 | REPLACE_FOPEN=0; | ||
| 15189 | REPLACE_FPRINTF=0; | ||
| 15190 | REPLACE_FPURGE=0; | ||
| 15191 | REPLACE_FREOPEN=0; | ||
| 15192 | REPLACE_FSEEK=0; | ||
| 15193 | REPLACE_FSEEKO=0; | ||
| 15194 | REPLACE_FTELL=0; | ||
| 15195 | REPLACE_FTELLO=0; | ||
| 15196 | REPLACE_GETDELIM=0; | ||
| 15197 | REPLACE_GETLINE=0; | ||
| 15198 | REPLACE_OBSTACK_PRINTF=0; | ||
| 15199 | REPLACE_PERROR=0; | ||
| 15200 | REPLACE_POPEN=0; | ||
| 15201 | REPLACE_PRINTF=0; | ||
| 15202 | REPLACE_REMOVE=0; | ||
| 15203 | REPLACE_RENAME=0; | ||
| 15204 | REPLACE_RENAMEAT=0; | ||
| 15205 | REPLACE_SNPRINTF=0; | ||
| 15206 | REPLACE_SPRINTF=0; | ||
| 15207 | REPLACE_STDIO_WRITE_FUNCS=0; | ||
| 15208 | REPLACE_TMPFILE=0; | ||
| 15209 | REPLACE_VASPRINTF=0; | ||
| 15210 | REPLACE_VDPRINTF=0; | ||
| 15211 | REPLACE_VFPRINTF=0; | ||
| 15212 | REPLACE_VPRINTF=0; | ||
| 15213 | REPLACE_VSNPRINTF=0; | ||
| 15214 | REPLACE_VSPRINTF=0; | ||
| 15215 | |||
| 15216 | |||
| 15042 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> | 15217 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
| 15043 | " | 15218 | " |
| 15044 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : | 15219 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : |
| @@ -17366,6 +17541,77 @@ _ACEOF | |||
| 17366 | fi | 17541 | fi |
| 17367 | 17542 | ||
| 17368 | 17543 | ||
| 17544 | # Code from module stdio: | ||
| 17545 | |||
| 17546 | |||
| 17547 | |||
| 17548 | |||
| 17549 | |||
| 17550 | |||
| 17551 | |||
| 17552 | |||
| 17553 | |||
| 17554 | |||
| 17555 | |||
| 17556 | if test $gl_cv_have_include_next = yes; then | ||
| 17557 | gl_cv_next_stdio_h='<'stdio.h'>' | ||
| 17558 | else | ||
| 17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 | ||
| 17560 | $as_echo_n "checking absolute name of <stdio.h>... " >&6; } | ||
| 17561 | if ${gl_cv_next_stdio_h+:} false; then : | ||
| 17562 | $as_echo_n "(cached) " >&6 | ||
| 17563 | else | ||
| 17564 | |||
| 17565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 17566 | /* end confdefs.h. */ | ||
| 17567 | #include <stdio.h> | ||
| 17568 | |||
| 17569 | _ACEOF | ||
| 17570 | case "$host_os" in | ||
| 17571 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 17572 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 17573 | esac | ||
| 17574 | gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 17575 | sed -n '\#/stdio.h#{ | ||
| 17576 | s#.*"\(.*/stdio.h\)".*#\1# | ||
| 17577 | s#^/[^/]#//&# | ||
| 17578 | p | ||
| 17579 | q | ||
| 17580 | }'`'"' | ||
| 17581 | |||
| 17582 | |||
| 17583 | fi | ||
| 17584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 | ||
| 17585 | $as_echo "$gl_cv_next_stdio_h" >&6; } | ||
| 17586 | fi | ||
| 17587 | NEXT_STDIO_H=$gl_cv_next_stdio_h | ||
| 17588 | |||
| 17589 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 17590 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 17591 | gl_next_as_first_directive='<'stdio.h'>' | ||
| 17592 | else | ||
| 17593 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 17594 | gl_next_as_first_directive=$gl_cv_next_stdio_h | ||
| 17595 | fi | ||
| 17596 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive | ||
| 17597 | |||
| 17598 | |||
| 17599 | |||
| 17600 | |||
| 17601 | GNULIB_FPRINTF=1 | ||
| 17602 | GNULIB_PRINTF=1 | ||
| 17603 | GNULIB_VFPRINTF=1 | ||
| 17604 | GNULIB_VPRINTF=1 | ||
| 17605 | GNULIB_FPUTC=1 | ||
| 17606 | GNULIB_PUTC=1 | ||
| 17607 | GNULIB_PUTCHAR=1 | ||
| 17608 | GNULIB_FPUTS=1 | ||
| 17609 | GNULIB_PUTS=1 | ||
| 17610 | GNULIB_FWRITE=1 | ||
| 17611 | |||
| 17612 | |||
| 17613 | |||
| 17614 | |||
| 17369 | # Code from module stdlib: | 17615 | # Code from module stdlib: |
| 17370 | 17616 | ||
| 17371 | 17617 | ||
diff --git a/configure.in b/configure.in index 11b7ad4db05..faf14fc6bb3 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -229,7 +229,7 @@ AC_ARG_ENABLE(maintainer-mode, | |||
| 229 | [enable make rules and dependencies not useful (and sometimes | 229 | [enable make rules and dependencies not useful (and sometimes |
| 230 | confusing) to the casual installer])], | 230 | confusing) to the casual installer])], |
| 231 | USE_MAINTAINER_MODE=$enableval, | 231 | USE_MAINTAINER_MODE=$enableval, |
| 232 | USE_MAINTAINER_MODE=no) | 232 | USE_MAINTAINER_MODE=yes) |
| 233 | if test $USE_MAINTAINER_MODE = yes; then | 233 | if test $USE_MAINTAINER_MODE = yes; then |
| 234 | MAINT= | 234 | MAINT= |
| 235 | else | 235 | else |
| @@ -2256,7 +2256,7 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 2256 | dnl if -lfreetype is not specified. | 2256 | dnl if -lfreetype is not specified. |
| 2257 | dnl The following is needed to set FREETYPE_LIBS. | 2257 | dnl The following is needed to set FREETYPE_LIBS. |
| 2258 | PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, | 2258 | PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, |
| 2259 | HAVE_FREETYPE=no) | 2259 | HAVE_FREETYPE=no) |
| 2260 | 2260 | ||
| 2261 | test "$HAVE_FREETYPE" = "no" && AC_MSG_ERROR(libxft requires libfreetype) | 2261 | test "$HAVE_FREETYPE" = "no" && AC_MSG_ERROR(libxft requires libfreetype) |
| 2262 | fi | 2262 | fi |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index a0498bf46c2..c705aae4934 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-03-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * strings.texi (String Conversion): Don't mention | ||
| 4 | string-make-(uni|multi)byte (bug#8262). | ||
| 5 | * nonascii.texi (Converting Representations): Fix up range. | ||
| 6 | * keymaps.texi (Key Binding Commands): Update code point, avoid | ||
| 7 | "unibyte character" and remove mention of unibyte bindings. | ||
| 8 | |||
| 1 | 2011-03-10 Eli Zaretskii <eliz@gnu.org> | 9 | 2011-03-10 Eli Zaretskii <eliz@gnu.org> |
| 2 | 10 | ||
| 3 | * modes.texi (Operator Precedence Grammars): Don't use characters | 11 | * modes.texi (Operator Precedence Grammars): Don't use characters |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index af24ff5aa43..2648c22ca01 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -1705,15 +1705,11 @@ or | |||
| 1705 | 1705 | ||
| 1706 | @noindent | 1706 | @noindent |
| 1707 | and your language environment is multibyte Latin-1, these commands | 1707 | and your language environment is multibyte Latin-1, these commands |
| 1708 | actually bind the multibyte character with code 2294, not the unibyte | 1708 | actually bind the multibyte character with code 246, not the byte |
| 1709 | Latin-1 character with code 246 (@kbd{M-v}). In order to use this | 1709 | code 246 (@kbd{M-v}) sent by a Latin-1 terminal. In order to use this |
| 1710 | binding, you need to enter the multibyte Latin-1 character as keyboard | 1710 | binding, you need to teach Emacs how to decode the keyboard by using an |
| 1711 | input. One way to do this is by using an appropriate input method | 1711 | appropriate input method (@pxref{Input Methods, , Input Methods, emacs, The GNU |
| 1712 | (@pxref{Input Methods, , Input Methods, emacs, The GNU Emacs Manual}). | 1712 | Emacs Manual}). |
| 1713 | |||
| 1714 | If you want to use a unibyte character in the key binding, you can | ||
| 1715 | construct the key sequence string using @code{multibyte-char-to-unibyte} | ||
| 1716 | or @code{string-make-unibyte} (@pxref{Converting Representations}). | ||
| 1717 | 1713 | ||
| 1718 | @deffn Command global-set-key key binding | 1714 | @deffn Command global-set-key key binding |
| 1719 | This function sets the binding of @var{key} in the current global map | 1715 | This function sets the binding of @var{key} in the current global map |
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 409ecc7e20c..6fcde611998 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -167,7 +167,7 @@ acceptable because the buffer's representation is a choice made by the | |||
| 167 | user that cannot be overridden automatically. | 167 | user that cannot be overridden automatically. |
| 168 | 168 | ||
| 169 | Converting unibyte text to multibyte text leaves @acronym{ASCII} | 169 | Converting unibyte text to multibyte text leaves @acronym{ASCII} |
| 170 | characters unchanged, and converts bytes with codes 128 through 159 to | 170 | characters unchanged, and converts bytes with codes 128 through 255 to |
| 171 | the multibyte representation of raw eight-bit bytes. | 171 | the multibyte representation of raw eight-bit bytes. |
| 172 | 172 | ||
| 173 | Converting multibyte text to unibyte converts all @acronym{ASCII} | 173 | Converting multibyte text to unibyte converts all @acronym{ASCII} |
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index ce080bc221f..d062c215952 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi | |||
| @@ -554,8 +554,8 @@ strings and integers. @code{format} (@pxref{Formatting Strings}) and | |||
| 554 | @code{prin1-to-string} (@pxref{Output Functions}) can also convert | 554 | @code{prin1-to-string} (@pxref{Output Functions}) can also convert |
| 555 | Lisp objects into strings. @code{read-from-string} (@pxref{Input | 555 | Lisp objects into strings. @code{read-from-string} (@pxref{Input |
| 556 | Functions}) can ``convert'' a string representation of a Lisp object | 556 | Functions}) can ``convert'' a string representation of a Lisp object |
| 557 | into an object. The functions @code{string-make-multibyte} and | 557 | into an object. The functions @code{string-to-multibyte} and |
| 558 | @code{string-make-unibyte} convert the text representation of a string | 558 | @code{string-to-unibyte} convert the text representation of a string |
| 559 | (@pxref{Converting Representations}). | 559 | (@pxref{Converting Representations}). |
| 560 | 560 | ||
| 561 | @xref{Documentation}, for functions that produce textual descriptions | 561 | @xref{Documentation}, for functions that produce textual descriptions |
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 5dd5e3e4fdc..50f0e4e45b9 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -2,6 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | * calc.texi (Logarithmic Units): Update the function names. | 3 | * calc.texi (Logarithmic Units): Update the function names. |
| 4 | 4 | ||
| 5 | 2011-03-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 6 | |||
| 7 | * message.texi (Various Commands): Document format specs in the | ||
| 8 | ellipsis. | ||
| 9 | |||
| 5 | 2011-03-15 Antoine Levitt <antoine.levitt@gmail.com> | 10 | 2011-03-15 Antoine Levitt <antoine.levitt@gmail.com> |
| 6 | 11 | ||
| 7 | * message.texi (Insertion Variables): Document message-cite-style. | 12 | * message.texi (Insertion Variables): Document message-cite-style. |
diff --git a/doc/misc/message.texi b/doc/misc/message.texi index 7d61ffd9efa..48d0028e452 100644 --- a/doc/misc/message.texi +++ b/doc/misc/message.texi | |||
| @@ -1202,6 +1202,10 @@ The text is killed and replaced with the contents of the variable | |||
| 1202 | @code{message-elide-ellipsis}. The default value is to use an ellipsis | 1202 | @code{message-elide-ellipsis}. The default value is to use an ellipsis |
| 1203 | (@samp{[...]}). | 1203 | (@samp{[...]}). |
| 1204 | 1204 | ||
| 1205 | This is a format-spec string, and you can use @samp{%l} to say how | ||
| 1206 | many lines were removed, and @samp{%c} to say how many characters were | ||
| 1207 | removed. | ||
| 1208 | |||
| 1205 | @item C-c M-k | 1209 | @item C-c M-k |
| 1206 | @kindex C-c M-k | 1210 | @kindex C-c M-k |
| 1207 | @findex message-kill-address | 1211 | @findex message-kill-address |
diff --git a/etc/ChangeLog b/etc/ChangeLog index cbe46d3a53e..53cd307e3cc 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -24,15 +24,15 @@ | |||
| 24 | 2011-02-17 Ken Manheimer <ken.manheimer@gmail.com> | 24 | 2011-02-17 Ken Manheimer <ken.manheimer@gmail.com> |
| 25 | 25 | ||
| 26 | * etc/images/icons/allout-widgets/dark-bg, | 26 | * etc/images/icons/allout-widgets/dark-bg, |
| 27 | etc/images/icons/allout-widgets/light-bg, | 27 | * etc/images/icons/allout-widgets/light-bg, |
| 28 | encrypted-locked.{xpm,png}, unlocked-encrypted.{xpm,png}: | 28 | * encrypted-locked.{xpm,png}, unlocked-encrypted.{xpm,png}: |
| 29 | Reorganize icon directories and files to reconcile against windows | 29 | Reorganize icon directories and files to reconcile against windows |
| 30 | short-filename clashes. | 30 | short-filename clashes. |
| 31 | 31 | ||
| 32 | 2011-02-16 Ken Manheimer <ken.manheimer@gmail.com> | 32 | 2011-02-16 Ken Manheimer <ken.manheimer@gmail.com> |
| 33 | 33 | ||
| 34 | * etc/images/icons/allout-widgets-dark-bg, | 34 | * etc/images/icons/allout-widgets-dark-bg, |
| 35 | etc/images/icons/allout-widgets-light-bg: Icons for new | 35 | * etc/images/icons/allout-widgets-light-bg: Icons for new |
| 36 | allout-widgets.el. | 36 | allout-widgets.el. |
| 37 | 37 | ||
| 38 | * etc/images/icons/README: Include coypright and GPL 3 license for | 38 | * etc/images/icons/README: Include coypright and GPL 3 license for |
| @@ -81,6 +81,9 @@ error, its exit status is 1. | |||
| 81 | 81 | ||
| 82 | ** Completion can cycle, depending on completion-cycle-threshold. | 82 | ** Completion can cycle, depending on completion-cycle-threshold. |
| 83 | 83 | ||
| 84 | ** `completing-read' can be customized using the new variable | ||
| 85 | `completing-read-function' | ||
| 86 | |||
| 84 | ** auto-mode-case-fold is now enabled by default. | 87 | ** auto-mode-case-fold is now enabled by default. |
| 85 | 88 | ||
| 86 | +++ | 89 | +++ |
| @@ -185,8 +188,8 @@ If you have code that adds something to kill-emacs-hook, you should | |||
| 185 | consider if it is still appropriate to add it in the noninteractive case. | 188 | consider if it is still appropriate to add it in the noninteractive case. |
| 186 | 189 | ||
| 187 | ** New scrolling commands `scroll-up-command' and `scroll-down-command' | 190 | ** New scrolling commands `scroll-up-command' and `scroll-down-command' |
| 188 | (bound to C-v/[next] and M-v/[prior]) does not signal errors at top/bottom | 191 | (bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom |
| 189 | of buffer at first key-press (instead moves to top/bottom of buffer) | 192 | of buffer at first key-press (instead move to top/bottom of buffer) |
| 190 | when a new variable `scroll-error-top-bottom' is non-nil. | 193 | when a new variable `scroll-error-top-bottom' is non-nil. |
| 191 | 194 | ||
| 192 | ** New scrolling commands `scroll-up-line' and `scroll-down-line' | 195 | ** New scrolling commands `scroll-up-line' and `scroll-down-line' |
| @@ -365,7 +368,7 @@ Just set shell-dir-cookie-re to an appropriate regexp. | |||
| 365 | ** Archive Mode has basic support to browse 7z archives. | 368 | ** Archive Mode has basic support to browse 7z archives. |
| 366 | 369 | ||
| 367 | ** browse-url has gotten a new variable that is used for mailto: URLs, | 370 | ** browse-url has gotten a new variable that is used for mailto: URLs, |
| 368 | `browse-url-mailto-function', which defaults to `browse-url-mail'. | 371 | `browse-url-mailto-function', which defaults to `browse-url-mail'. |
| 369 | 372 | ||
| 370 | ** Directory local variables can apply to file-less buffers, in certain modes | 373 | ** Directory local variables can apply to file-less buffers, in certain modes |
| 371 | (eg dired, vc-dir, log-edit). For example, adding | 374 | (eg dired, vc-dir, log-edit). For example, adding |
| @@ -702,15 +705,14 @@ FIXME: This only says what was changed, but not what are the | |||
| 702 | programmer-visible consequences. | 705 | programmer-visible consequences. |
| 703 | 706 | ||
| 704 | ** Passing a nil argument to a minor mode function now turns the mode | 707 | ** Passing a nil argument to a minor mode function now turns the mode |
| 705 | ON unconditionally. | 708 | ON unconditionally. |
| 706 | 709 | ||
| 707 | ** During startup, Emacs no longer adds entries for `menu-bar-lines' | 710 | ** During startup, Emacs no longer adds entries for `menu-bar-lines' |
| 708 | and `tool-bar-lines' to `default-frame-alist' and | 711 | and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'. |
| 709 | `initial-frame-alist'. With these alist entries omitted, `make-frame' | 712 | With these alist entries omitted, `make-frame' checks the value of the |
| 710 | checks the value of the variable `menu-bar-mode'/`tool-bar-mode' to | 713 | variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create |
| 711 | determine whether to create a menu-bar or tool-bar, respectively. | 714 | a menu-bar or tool-bar, respectively. If the alist entries are added, |
| 712 | If the alist entries are added, they override the value of | 715 | they override the value of `menu-bar-mode'/`tool-bar-mode'. |
| 713 | `menu-bar-mode'/`tool-bar-mode'. | ||
| 714 | 716 | ||
| 715 | ** Regions created by mouse dragging are now normal active regions, | 717 | ** Regions created by mouse dragging are now normal active regions, |
| 716 | similar to the ones created by shift-selection. In previous Emacs | 718 | similar to the ones created by shift-selection. In previous Emacs |
| @@ -830,13 +832,13 @@ displayed with a "spinning bar". | |||
| 830 | 832 | ||
| 831 | * Changes in Emacs 24.1 on non-free operating systems | 833 | * Changes in Emacs 24.1 on non-free operating systems |
| 832 | 834 | ||
| 833 | ** New configure.bat option --enable-checking builds emacs with extra | 835 | ** New configure.bat option --enable-checking builds Emacs with extra |
| 834 | runtime checks. | 836 | runtime checks. |
| 835 | 837 | ||
| 836 | ** New configure.bat option --distfiles to specify files to be | 838 | ** New configure.bat option --distfiles to specify files to be |
| 837 | included in binary distribution | 839 | included in binary distribution. |
| 838 | 840 | ||
| 839 | ** New make target `dist' to create binary distribution for MS Windows | 841 | ** New make target `dist' to create binary distribution for MS Windows. |
| 840 | 842 | ||
| 841 | 843 | ||
| 842 | ---------------------------------------------------------------------- | 844 | ---------------------------------------------------------------------- |
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index bd1a84cf0b9..cc713f0b68c 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-03-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | fakemail: Remove dependency on ignore-value. | ||
| 4 | This undoes some of the recent fakemail-related changes. | ||
| 5 | It is made possible due to recent changes to gnulib's stdio module. | ||
| 6 | * Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h. | ||
| 7 | * fakemail.c: Do not include ignore-value.h. | ||
| 8 | (put_line): Do not use ignore_value. | ||
| 9 | |||
| 1 | 2011-03-03 Drake Wilson <drake@begriffli.ch> (tiny change) | 10 | 2011-03-03 Drake Wilson <drake@begriffli.ch> (tiny change) |
| 2 | 11 | ||
| 3 | * emacsclient.c (longopts): Add quiet. | 12 | * emacsclient.c (longopts): Add quiet. |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index d622233efb4..f671b0844ce 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -353,7 +353,7 @@ movemail.o: ${srcdir}/movemail.c ../src/config.h | |||
| 353 | pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h ../src/config.h | 353 | pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h ../src/config.h |
| 354 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c | 354 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c |
| 355 | 355 | ||
| 356 | fakemail${EXEEXT}: ${srcdir}/fakemail.c ${srcdir}/../lib/ignore-value.h ../src/config.h | 356 | fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h |
| 357 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail | 357 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail |
| 358 | 358 | ||
| 359 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h | 359 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h |
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 780a104b405..940d6219425 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c | |||
| @@ -62,8 +62,6 @@ main () | |||
| 62 | 62 | ||
| 63 | /* This is to declare cuserid. */ | 63 | /* This is to declare cuserid. */ |
| 64 | #include <unistd.h> | 64 | #include <unistd.h> |
| 65 | |||
| 66 | #include <ignore-value.h> | ||
| 67 | 65 | ||
| 68 | /* Type definitions */ | 66 | /* Type definitions */ |
| 69 | 67 | ||
| @@ -500,7 +498,7 @@ put_line (const char *string) | |||
| 500 | } | 498 | } |
| 501 | } | 499 | } |
| 502 | /* Output that much, then break the line. */ | 500 | /* Output that much, then break the line. */ |
| 503 | ignore_value (fwrite (s, 1, breakpos - s, rem->handle)); | 501 | fwrite (s, 1, breakpos - s, rem->handle); |
| 504 | column = 8; | 502 | column = 8; |
| 505 | 503 | ||
| 506 | /* Skip whitespace and prepare to print more addresses. */ | 504 | /* Skip whitespace and prepare to print more addresses. */ |
diff --git a/lib/Makefile.in b/lib/Makefile.in index 8be57520014..f3e867a485a 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | # the same distribution terms as the rest of that program. | 24 | # the same distribution terms as the rest of that program. |
| 25 | # | 25 | # |
| 26 | # Generated by gnulib-tool. | 26 | # Generated by gnulib-tool. |
| 27 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files crypto/md5 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen strftime symlink sys_stat | 27 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files crypto/md5 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdio strftime symlink sys_stat |
| 28 | 28 | ||
| 29 | VPATH = @srcdir@ | 29 | VPATH = @srcdir@ |
| 30 | pkgdatadir = $(datadir)/@PACKAGE@ | 30 | pkgdatadir = $(datadir)/@PACKAGE@ |
| @@ -60,12 +60,12 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ | |||
| 60 | $(top_srcdir)/m4/readlink.m4 $(top_srcdir)/m4/socklen.m4 \ | 60 | $(top_srcdir)/m4/readlink.m4 $(top_srcdir)/m4/socklen.m4 \ |
| 61 | $(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/stat.m4 \ | 61 | $(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/stat.m4 \ |
| 62 | $(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stddef_h.m4 \ | 62 | $(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stddef_h.m4 \ |
| 63 | $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdlib_h.m4 \ | 63 | $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdio_h.m4 \ |
| 64 | $(top_srcdir)/m4/strftime.m4 $(top_srcdir)/m4/symlink.m4 \ | 64 | $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/strftime.m4 \ |
| 65 | $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/time_h.m4 \ | 65 | $(top_srcdir)/m4/symlink.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ |
| 66 | $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/tm_gmtoff.m4 \ | 66 | $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/time_r.m4 \ |
| 67 | $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/wchar_t.m4 \ | 67 | $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/unistd_h.m4 \ |
| 68 | $(top_srcdir)/configure.in | 68 | $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/configure.in |
| 69 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 69 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
| 70 | $(ACLOCAL_M4) | 70 | $(ACLOCAL_M4) |
| 71 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | 71 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
| @@ -151,6 +151,7 @@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ | |||
| 151 | GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ | 151 | GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ |
| 152 | GNULIB_CHOWN = @GNULIB_CHOWN@ | 152 | GNULIB_CHOWN = @GNULIB_CHOWN@ |
| 153 | GNULIB_CLOSE = @GNULIB_CLOSE@ | 153 | GNULIB_CLOSE = @GNULIB_CLOSE@ |
| 154 | GNULIB_DPRINTF = @GNULIB_DPRINTF@ | ||
| 154 | GNULIB_DUP2 = @GNULIB_DUP2@ | 155 | GNULIB_DUP2 = @GNULIB_DUP2@ |
| 155 | GNULIB_DUP3 = @GNULIB_DUP3@ | 156 | GNULIB_DUP3 = @GNULIB_DUP3@ |
| 156 | GNULIB_ENVIRON = @GNULIB_ENVIRON@ | 157 | GNULIB_ENVIRON = @GNULIB_ENVIRON@ |
| @@ -159,15 +160,31 @@ GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ | |||
| 159 | GNULIB_FCHDIR = @GNULIB_FCHDIR@ | 160 | GNULIB_FCHDIR = @GNULIB_FCHDIR@ |
| 160 | GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ | 161 | GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ |
| 161 | GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ | 162 | GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ |
| 163 | GNULIB_FCLOSE = @GNULIB_FCLOSE@ | ||
| 164 | GNULIB_FFLUSH = @GNULIB_FFLUSH@ | ||
| 165 | GNULIB_FOPEN = @GNULIB_FOPEN@ | ||
| 166 | GNULIB_FPRINTF = @GNULIB_FPRINTF@ | ||
| 167 | GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ | ||
| 168 | GNULIB_FPURGE = @GNULIB_FPURGE@ | ||
| 169 | GNULIB_FPUTC = @GNULIB_FPUTC@ | ||
| 170 | GNULIB_FPUTS = @GNULIB_FPUTS@ | ||
| 171 | GNULIB_FREOPEN = @GNULIB_FREOPEN@ | ||
| 172 | GNULIB_FSEEK = @GNULIB_FSEEK@ | ||
| 173 | GNULIB_FSEEKO = @GNULIB_FSEEKO@ | ||
| 162 | GNULIB_FSTATAT = @GNULIB_FSTATAT@ | 174 | GNULIB_FSTATAT = @GNULIB_FSTATAT@ |
| 163 | GNULIB_FSYNC = @GNULIB_FSYNC@ | 175 | GNULIB_FSYNC = @GNULIB_FSYNC@ |
| 176 | GNULIB_FTELL = @GNULIB_FTELL@ | ||
| 177 | GNULIB_FTELLO = @GNULIB_FTELLO@ | ||
| 164 | GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ | 178 | GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ |
| 165 | GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ | 179 | GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ |
| 180 | GNULIB_FWRITE = @GNULIB_FWRITE@ | ||
| 166 | GNULIB_GETCWD = @GNULIB_GETCWD@ | 181 | GNULIB_GETCWD = @GNULIB_GETCWD@ |
| 182 | GNULIB_GETDELIM = @GNULIB_GETDELIM@ | ||
| 167 | GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ | 183 | GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ |
| 168 | GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ | 184 | GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ |
| 169 | GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ | 185 | GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ |
| 170 | GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ | 186 | GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ |
| 187 | GNULIB_GETLINE = @GNULIB_GETLINE@ | ||
| 171 | GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ | 188 | GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ |
| 172 | GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ | 189 | GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ |
| 173 | GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ | 190 | GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ |
| @@ -195,22 +212,37 @@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ | |||
| 195 | GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ | 212 | GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ |
| 196 | GNULIB_MKTIME = @GNULIB_MKTIME@ | 213 | GNULIB_MKTIME = @GNULIB_MKTIME@ |
| 197 | GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ | 214 | GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ |
| 215 | GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ | ||
| 216 | GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ | ||
| 217 | GNULIB_PERROR = @GNULIB_PERROR@ | ||
| 198 | GNULIB_PIPE = @GNULIB_PIPE@ | 218 | GNULIB_PIPE = @GNULIB_PIPE@ |
| 199 | GNULIB_PIPE2 = @GNULIB_PIPE2@ | 219 | GNULIB_PIPE2 = @GNULIB_PIPE2@ |
| 220 | GNULIB_POPEN = @GNULIB_POPEN@ | ||
| 200 | GNULIB_PREAD = @GNULIB_PREAD@ | 221 | GNULIB_PREAD = @GNULIB_PREAD@ |
| 222 | GNULIB_PRINTF = @GNULIB_PRINTF@ | ||
| 223 | GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ | ||
| 201 | GNULIB_PTSNAME = @GNULIB_PTSNAME@ | 224 | GNULIB_PTSNAME = @GNULIB_PTSNAME@ |
| 225 | GNULIB_PUTC = @GNULIB_PUTC@ | ||
| 226 | GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ | ||
| 202 | GNULIB_PUTENV = @GNULIB_PUTENV@ | 227 | GNULIB_PUTENV = @GNULIB_PUTENV@ |
| 228 | GNULIB_PUTS = @GNULIB_PUTS@ | ||
| 203 | GNULIB_PWRITE = @GNULIB_PWRITE@ | 229 | GNULIB_PWRITE = @GNULIB_PWRITE@ |
| 204 | GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ | 230 | GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ |
| 205 | GNULIB_READLINK = @GNULIB_READLINK@ | 231 | GNULIB_READLINK = @GNULIB_READLINK@ |
| 206 | GNULIB_READLINKAT = @GNULIB_READLINKAT@ | 232 | GNULIB_READLINKAT = @GNULIB_READLINKAT@ |
| 207 | GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ | 233 | GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ |
| 208 | GNULIB_REALPATH = @GNULIB_REALPATH@ | 234 | GNULIB_REALPATH = @GNULIB_REALPATH@ |
| 235 | GNULIB_REMOVE = @GNULIB_REMOVE@ | ||
| 236 | GNULIB_RENAME = @GNULIB_RENAME@ | ||
| 237 | GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ | ||
| 209 | GNULIB_RMDIR = @GNULIB_RMDIR@ | 238 | GNULIB_RMDIR = @GNULIB_RMDIR@ |
| 210 | GNULIB_RPMATCH = @GNULIB_RPMATCH@ | 239 | GNULIB_RPMATCH = @GNULIB_RPMATCH@ |
| 211 | GNULIB_SETENV = @GNULIB_SETENV@ | 240 | GNULIB_SETENV = @GNULIB_SETENV@ |
| 212 | GNULIB_SLEEP = @GNULIB_SLEEP@ | 241 | GNULIB_SLEEP = @GNULIB_SLEEP@ |
| 242 | GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ | ||
| 243 | GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ | ||
| 213 | GNULIB_STAT = @GNULIB_STAT@ | 244 | GNULIB_STAT = @GNULIB_STAT@ |
| 245 | GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ | ||
| 214 | GNULIB_STRPTIME = @GNULIB_STRPTIME@ | 246 | GNULIB_STRPTIME = @GNULIB_STRPTIME@ |
| 215 | GNULIB_STRTOD = @GNULIB_STRTOD@ | 247 | GNULIB_STRTOD = @GNULIB_STRTOD@ |
| 216 | GNULIB_STRTOLL = @GNULIB_STRTOLL@ | 248 | GNULIB_STRTOLL = @GNULIB_STRTOLL@ |
| @@ -220,6 +252,7 @@ GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ | |||
| 220 | GNULIB_SYSTEM_POSIX = @GNULIB_SYSTEM_POSIX@ | 252 | GNULIB_SYSTEM_POSIX = @GNULIB_SYSTEM_POSIX@ |
| 221 | GNULIB_TIMEGM = @GNULIB_TIMEGM@ | 253 | GNULIB_TIMEGM = @GNULIB_TIMEGM@ |
| 222 | GNULIB_TIME_R = @GNULIB_TIME_R@ | 254 | GNULIB_TIME_R = @GNULIB_TIME_R@ |
| 255 | GNULIB_TMPFILE = @GNULIB_TMPFILE@ | ||
| 223 | GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ | 256 | GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ |
| 224 | GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ | 257 | GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ |
| 225 | GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ | 258 | GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ |
| @@ -229,6 +262,14 @@ GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ | |||
| 229 | GNULIB_UNSETENV = @GNULIB_UNSETENV@ | 262 | GNULIB_UNSETENV = @GNULIB_UNSETENV@ |
| 230 | GNULIB_USLEEP = @GNULIB_USLEEP@ | 263 | GNULIB_USLEEP = @GNULIB_USLEEP@ |
| 231 | GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ | 264 | GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ |
| 265 | GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ | ||
| 266 | GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ | ||
| 267 | GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ | ||
| 268 | GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ | ||
| 269 | GNULIB_VPRINTF = @GNULIB_VPRINTF@ | ||
| 270 | GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ | ||
| 271 | GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ | ||
| 272 | GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ | ||
| 232 | GNULIB_WCTOMB = @GNULIB_WCTOMB@ | 273 | GNULIB_WCTOMB = @GNULIB_WCTOMB@ |
| 233 | GNULIB_WRITE = @GNULIB_WRITE@ | 274 | GNULIB_WRITE = @GNULIB_WRITE@ |
| 234 | GNULIB__EXIT = @GNULIB__EXIT@ | 275 | GNULIB__EXIT = @GNULIB__EXIT@ |
| @@ -244,15 +285,24 @@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ | |||
| 244 | HAVE_CHOWN = @HAVE_CHOWN@ | 285 | HAVE_CHOWN = @HAVE_CHOWN@ |
| 245 | HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ | 286 | HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ |
| 246 | HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ | 287 | HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ |
| 288 | HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ | ||
| 289 | HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ | ||
| 290 | HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ | ||
| 291 | HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ | ||
| 247 | HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ | 292 | HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ |
| 293 | HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ | ||
| 248 | HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ | 294 | HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ |
| 249 | HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ | 295 | HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ |
| 250 | HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ | 296 | HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ |
| 251 | HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ | 297 | HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ |
| 252 | HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ | 298 | HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ |
| 299 | HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ | ||
| 253 | HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ | 300 | HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ |
| 301 | HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ | ||
| 254 | HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ | 302 | HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ |
| 255 | HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ | 303 | HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ |
| 304 | HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ | ||
| 305 | HAVE_DPRINTF = @HAVE_DPRINTF@ | ||
| 256 | HAVE_DUP2 = @HAVE_DUP2@ | 306 | HAVE_DUP2 = @HAVE_DUP2@ |
| 257 | HAVE_DUP3 = @HAVE_DUP3@ | 307 | HAVE_DUP3 = @HAVE_DUP3@ |
| 258 | HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ | 308 | HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ |
| @@ -260,8 +310,10 @@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ | |||
| 260 | HAVE_FCHDIR = @HAVE_FCHDIR@ | 310 | HAVE_FCHDIR = @HAVE_FCHDIR@ |
| 261 | HAVE_FCHMODAT = @HAVE_FCHMODAT@ | 311 | HAVE_FCHMODAT = @HAVE_FCHMODAT@ |
| 262 | HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ | 312 | HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ |
| 313 | HAVE_FSEEKO = @HAVE_FSEEKO@ | ||
| 263 | HAVE_FSTATAT = @HAVE_FSTATAT@ | 314 | HAVE_FSTATAT = @HAVE_FSTATAT@ |
| 264 | HAVE_FSYNC = @HAVE_FSYNC@ | 315 | HAVE_FSYNC = @HAVE_FSYNC@ |
| 316 | HAVE_FTELLO = @HAVE_FTELLO@ | ||
| 265 | HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ | 317 | HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ |
| 266 | HAVE_FUTIMENS = @HAVE_FUTIMENS@ | 318 | HAVE_FUTIMENS = @HAVE_FUTIMENS@ |
| 267 | HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ | 319 | HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ |
| @@ -302,6 +354,7 @@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ | |||
| 302 | HAVE_READLINK = @HAVE_READLINK@ | 354 | HAVE_READLINK = @HAVE_READLINK@ |
| 303 | HAVE_READLINKAT = @HAVE_READLINKAT@ | 355 | HAVE_READLINKAT = @HAVE_READLINKAT@ |
| 304 | HAVE_REALPATH = @HAVE_REALPATH@ | 356 | HAVE_REALPATH = @HAVE_REALPATH@ |
| 357 | HAVE_RENAMEAT = @HAVE_RENAMEAT@ | ||
| 305 | HAVE_RPMATCH = @HAVE_RPMATCH@ | 358 | HAVE_RPMATCH = @HAVE_RPMATCH@ |
| 306 | HAVE_SETENV = @HAVE_SETENV@ | 359 | HAVE_SETENV = @HAVE_SETENV@ |
| 307 | HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ | 360 | HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ |
| @@ -328,6 +381,8 @@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ | |||
| 328 | HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ | 381 | HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ |
| 329 | HAVE_USLEEP = @HAVE_USLEEP@ | 382 | HAVE_USLEEP = @HAVE_USLEEP@ |
| 330 | HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ | 383 | HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ |
| 384 | HAVE_VASPRINTF = @HAVE_VASPRINTF@ | ||
| 385 | HAVE_VDPRINTF = @HAVE_VDPRINTF@ | ||
| 331 | HAVE_WCHAR_H = @HAVE_WCHAR_H@ | 386 | HAVE_WCHAR_H = @HAVE_WCHAR_H@ |
| 332 | HAVE_WCHAR_T = @HAVE_WCHAR_T@ | 387 | HAVE_WCHAR_T = @HAVE_WCHAR_T@ |
| 333 | HAVE_XSERVER = @HAVE_XSERVER@ | 388 | HAVE_XSERVER = @HAVE_XSERVER@ |
| @@ -398,6 +453,7 @@ M_FILE = @M_FILE@ | |||
| 398 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ | 453 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ |
| 399 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ | 454 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ |
| 400 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ | 455 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ |
| 456 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ | ||
| 401 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ | 457 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ |
| 402 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ | 458 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ |
| 403 | NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ | 459 | NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ |
| @@ -405,6 +461,7 @@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ | |||
| 405 | NEXT_GETOPT_H = @NEXT_GETOPT_H@ | 461 | NEXT_GETOPT_H = @NEXT_GETOPT_H@ |
| 406 | NEXT_STDDEF_H = @NEXT_STDDEF_H@ | 462 | NEXT_STDDEF_H = @NEXT_STDDEF_H@ |
| 407 | NEXT_STDINT_H = @NEXT_STDINT_H@ | 463 | NEXT_STDINT_H = @NEXT_STDINT_H@ |
| 464 | NEXT_STDIO_H = @NEXT_STDIO_H@ | ||
| 408 | NEXT_STDLIB_H = @NEXT_STDLIB_H@ | 465 | NEXT_STDLIB_H = @NEXT_STDLIB_H@ |
| 409 | NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ | 466 | NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ |
| 410 | NEXT_TIME_H = @NEXT_TIME_H@ | 467 | NEXT_TIME_H = @NEXT_TIME_H@ |
| @@ -439,15 +496,28 @@ REPLACE_CALLOC = @REPLACE_CALLOC@ | |||
| 439 | REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ | 496 | REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ |
| 440 | REPLACE_CHOWN = @REPLACE_CHOWN@ | 497 | REPLACE_CHOWN = @REPLACE_CHOWN@ |
| 441 | REPLACE_CLOSE = @REPLACE_CLOSE@ | 498 | REPLACE_CLOSE = @REPLACE_CLOSE@ |
| 499 | REPLACE_DPRINTF = @REPLACE_DPRINTF@ | ||
| 442 | REPLACE_DUP = @REPLACE_DUP@ | 500 | REPLACE_DUP = @REPLACE_DUP@ |
| 443 | REPLACE_DUP2 = @REPLACE_DUP2@ | 501 | REPLACE_DUP2 = @REPLACE_DUP2@ |
| 444 | REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ | 502 | REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ |
| 503 | REPLACE_FCLOSE = @REPLACE_FCLOSE@ | ||
| 504 | REPLACE_FFLUSH = @REPLACE_FFLUSH@ | ||
| 505 | REPLACE_FOPEN = @REPLACE_FOPEN@ | ||
| 506 | REPLACE_FPRINTF = @REPLACE_FPRINTF@ | ||
| 507 | REPLACE_FPURGE = @REPLACE_FPURGE@ | ||
| 508 | REPLACE_FREOPEN = @REPLACE_FREOPEN@ | ||
| 509 | REPLACE_FSEEK = @REPLACE_FSEEK@ | ||
| 510 | REPLACE_FSEEKO = @REPLACE_FSEEKO@ | ||
| 445 | REPLACE_FSTAT = @REPLACE_FSTAT@ | 511 | REPLACE_FSTAT = @REPLACE_FSTAT@ |
| 446 | REPLACE_FSTATAT = @REPLACE_FSTATAT@ | 512 | REPLACE_FSTATAT = @REPLACE_FSTATAT@ |
| 513 | REPLACE_FTELL = @REPLACE_FTELL@ | ||
| 514 | REPLACE_FTELLO = @REPLACE_FTELLO@ | ||
| 447 | REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ | 515 | REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ |
| 448 | REPLACE_GETCWD = @REPLACE_GETCWD@ | 516 | REPLACE_GETCWD = @REPLACE_GETCWD@ |
| 517 | REPLACE_GETDELIM = @REPLACE_GETDELIM@ | ||
| 449 | REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ | 518 | REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ |
| 450 | REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ | 519 | REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ |
| 520 | REPLACE_GETLINE = @REPLACE_GETLINE@ | ||
| 451 | REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ | 521 | REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ |
| 452 | REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ | 522 | REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ |
| 453 | REPLACE_LCHOWN = @REPLACE_LCHOWN@ | 523 | REPLACE_LCHOWN = @REPLACE_LCHOWN@ |
| @@ -465,25 +535,42 @@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ | |||
| 465 | REPLACE_MKTIME = @REPLACE_MKTIME@ | 535 | REPLACE_MKTIME = @REPLACE_MKTIME@ |
| 466 | REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ | 536 | REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ |
| 467 | REPLACE_NULL = @REPLACE_NULL@ | 537 | REPLACE_NULL = @REPLACE_NULL@ |
| 538 | REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ | ||
| 539 | REPLACE_PERROR = @REPLACE_PERROR@ | ||
| 540 | REPLACE_POPEN = @REPLACE_POPEN@ | ||
| 468 | REPLACE_PREAD = @REPLACE_PREAD@ | 541 | REPLACE_PREAD = @REPLACE_PREAD@ |
| 542 | REPLACE_PRINTF = @REPLACE_PRINTF@ | ||
| 469 | REPLACE_PUTENV = @REPLACE_PUTENV@ | 543 | REPLACE_PUTENV = @REPLACE_PUTENV@ |
| 470 | REPLACE_PWRITE = @REPLACE_PWRITE@ | 544 | REPLACE_PWRITE = @REPLACE_PWRITE@ |
| 471 | REPLACE_READLINK = @REPLACE_READLINK@ | 545 | REPLACE_READLINK = @REPLACE_READLINK@ |
| 472 | REPLACE_REALLOC = @REPLACE_REALLOC@ | 546 | REPLACE_REALLOC = @REPLACE_REALLOC@ |
| 473 | REPLACE_REALPATH = @REPLACE_REALPATH@ | 547 | REPLACE_REALPATH = @REPLACE_REALPATH@ |
| 548 | REPLACE_REMOVE = @REPLACE_REMOVE@ | ||
| 549 | REPLACE_RENAME = @REPLACE_RENAME@ | ||
| 550 | REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ | ||
| 474 | REPLACE_RMDIR = @REPLACE_RMDIR@ | 551 | REPLACE_RMDIR = @REPLACE_RMDIR@ |
| 475 | REPLACE_SETENV = @REPLACE_SETENV@ | 552 | REPLACE_SETENV = @REPLACE_SETENV@ |
| 476 | REPLACE_SLEEP = @REPLACE_SLEEP@ | 553 | REPLACE_SLEEP = @REPLACE_SLEEP@ |
| 554 | REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ | ||
| 555 | REPLACE_SPRINTF = @REPLACE_SPRINTF@ | ||
| 477 | REPLACE_STAT = @REPLACE_STAT@ | 556 | REPLACE_STAT = @REPLACE_STAT@ |
| 557 | REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ | ||
| 478 | REPLACE_STRTOD = @REPLACE_STRTOD@ | 558 | REPLACE_STRTOD = @REPLACE_STRTOD@ |
| 479 | REPLACE_SYMLINK = @REPLACE_SYMLINK@ | 559 | REPLACE_SYMLINK = @REPLACE_SYMLINK@ |
| 480 | REPLACE_TIMEGM = @REPLACE_TIMEGM@ | 560 | REPLACE_TIMEGM = @REPLACE_TIMEGM@ |
| 561 | REPLACE_TMPFILE = @REPLACE_TMPFILE@ | ||
| 481 | REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ | 562 | REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ |
| 482 | REPLACE_UNLINK = @REPLACE_UNLINK@ | 563 | REPLACE_UNLINK = @REPLACE_UNLINK@ |
| 483 | REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ | 564 | REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ |
| 484 | REPLACE_UNSETENV = @REPLACE_UNSETENV@ | 565 | REPLACE_UNSETENV = @REPLACE_UNSETENV@ |
| 485 | REPLACE_USLEEP = @REPLACE_USLEEP@ | 566 | REPLACE_USLEEP = @REPLACE_USLEEP@ |
| 486 | REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ | 567 | REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ |
| 568 | REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ | ||
| 569 | REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ | ||
| 570 | REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ | ||
| 571 | REPLACE_VPRINTF = @REPLACE_VPRINTF@ | ||
| 572 | REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ | ||
| 573 | REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ | ||
| 487 | REPLACE_WCTOMB = @REPLACE_WCTOMB@ | 574 | REPLACE_WCTOMB = @REPLACE_WCTOMB@ |
| 488 | REPLACE_WRITE = @REPLACE_WRITE@ | 575 | REPLACE_WRITE = @REPLACE_WRITE@ |
| 489 | RSVG_CFLAGS = @RSVG_CFLAGS@ | 576 | RSVG_CFLAGS = @RSVG_CFLAGS@ |
| @@ -602,21 +689,22 @@ x_default_search_path = @x_default_search_path@ | |||
| 602 | # present in all Makefile.am that need it. This is ensured by the applicability | 689 | # present in all Makefile.am that need it. This is ensured by the applicability |
| 603 | # 'all' defined above. | 690 | # 'all' defined above. |
| 604 | BUILT_SOURCES = arg-nonnull.h c++defs.h $(GETOPT_H) $(STDBOOL_H) \ | 691 | BUILT_SOURCES = arg-nonnull.h c++defs.h $(GETOPT_H) $(STDBOOL_H) \ |
| 605 | $(STDDEF_H) $(STDINT_H) stdlib.h sys/stat.h time.h unistd.h \ | 692 | $(STDDEF_H) $(STDINT_H) stdio.h stdlib.h sys/stat.h time.h \ |
| 606 | warn-on-use.h | 693 | unistd.h warn-on-use.h |
| 607 | EXTRA_DIST = $(top_srcdir)/./arg-nonnull.h $(top_srcdir)/./c++defs.h \ | 694 | EXTRA_DIST = $(top_srcdir)/./arg-nonnull.h $(top_srcdir)/./c++defs.h \ |
| 608 | md5.c md5.h dosname.h ftoastr.c ftoastr.h filemode.c \ | 695 | md5.c md5.h dosname.h ftoastr.c ftoastr.h filemode.c \ |
| 609 | filemode.h getloadavg.c getopt.c getopt.in.h getopt1.c \ | 696 | filemode.h getloadavg.c getopt.c getopt.in.h getopt1.c \ |
| 610 | getopt_int.h intprops.h lstat.c mktime-internal.h mktime.c \ | 697 | getopt_int.h intprops.h lstat.c mktime-internal.h mktime.c \ |
| 611 | readlink.c stat.c stdbool.in.h stddef.in.h stdint.in.h \ | 698 | readlink.c stat.c stdbool.in.h stddef.in.h stdint.in.h \ |
| 612 | stdlib.in.h strftime.c strftime.h symlink.c sys_stat.in.h \ | 699 | stdio.in.h stdlib.in.h strftime.c strftime.h symlink.c \ |
| 613 | time.in.h time_r.c unistd.in.h $(top_srcdir)/./warn-on-use.h | 700 | sys_stat.in.h time.in.h time_r.c unistd.in.h \ |
| 701 | $(top_srcdir)/./warn-on-use.h | ||
| 614 | MOSTLYCLEANDIRS = sys | 702 | MOSTLYCLEANDIRS = sys |
| 615 | MOSTLYCLEANFILES = core *.stackdump arg-nonnull.h arg-nonnull.h-t \ | 703 | MOSTLYCLEANFILES = core *.stackdump arg-nonnull.h arg-nonnull.h-t \ |
| 616 | c++defs.h c++defs.h-t getopt.h getopt.h-t stdbool.h \ | 704 | c++defs.h c++defs.h-t getopt.h getopt.h-t stdbool.h \ |
| 617 | stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t stdlib.h \ | 705 | stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t stdio.h \ |
| 618 | stdlib.h-t sys/stat.h sys/stat.h-t time.h time.h-t unistd.h \ | 706 | stdio.h-t stdlib.h stdlib.h-t sys/stat.h sys/stat.h-t time.h \ |
| 619 | unistd.h-t warn-on-use.h warn-on-use.h-t | 707 | time.h-t unistd.h unistd.h-t warn-on-use.h warn-on-use.h-t |
| 620 | noinst_LIBRARIES = libgnu.a | 708 | noinst_LIBRARIES = libgnu.a |
| 621 | DEFAULT_INCLUDES = -I. -I../src -I$(top_srcdir)/src | 709 | DEFAULT_INCLUDES = -I. -I../src -I$(top_srcdir)/src |
| 622 | libgnu_a_SOURCES = dtoastr.c gettext.h ignore-value.h | 710 | libgnu_a_SOURCES = dtoastr.c gettext.h ignore-value.h |
| @@ -997,6 +1085,108 @@ stdint.h: stdint.in.h | |||
| 997 | } > $@-t && \ | 1085 | } > $@-t && \ |
| 998 | mv $@-t $@ | 1086 | mv $@-t $@ |
| 999 | 1087 | ||
| 1088 | # We need the following in order to create <stdio.h> when the system | ||
| 1089 | # doesn't have one that works with the given compiler. | ||
| 1090 | stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
| 1091 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 1092 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
| 1093 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 1094 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 1095 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 1096 | -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ | ||
| 1097 | -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ | ||
| 1098 | -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ | ||
| 1099 | -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ | ||
| 1100 | -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ | ||
| 1101 | -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ | ||
| 1102 | -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ | ||
| 1103 | -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ | ||
| 1104 | -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ | ||
| 1105 | -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ | ||
| 1106 | -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ | ||
| 1107 | -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ | ||
| 1108 | -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ | ||
| 1109 | -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ | ||
| 1110 | -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ | ||
| 1111 | -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ | ||
| 1112 | -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ | ||
| 1113 | -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ | ||
| 1114 | -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ | ||
| 1115 | -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ | ||
| 1116 | -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ | ||
| 1117 | -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ | ||
| 1118 | -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ | ||
| 1119 | -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ | ||
| 1120 | -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ | ||
| 1121 | -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ | ||
| 1122 | -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ | ||
| 1123 | -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ | ||
| 1124 | -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ | ||
| 1125 | -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ | ||
| 1126 | -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ | ||
| 1127 | -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ | ||
| 1128 | -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ | ||
| 1129 | -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ | ||
| 1130 | -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ | ||
| 1131 | -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ | ||
| 1132 | -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ | ||
| 1133 | -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ | ||
| 1134 | -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ | ||
| 1135 | -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ | ||
| 1136 | -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ | ||
| 1137 | -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ | ||
| 1138 | < $(srcdir)/stdio.in.h | \ | ||
| 1139 | sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ | ||
| 1140 | -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ | ||
| 1141 | -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ | ||
| 1142 | -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ | ||
| 1143 | -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ | ||
| 1144 | -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ | ||
| 1145 | -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ | ||
| 1146 | -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ | ||
| 1147 | -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ | ||
| 1148 | -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ | ||
| 1149 | -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ | ||
| 1150 | -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ | ||
| 1151 | -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ | ||
| 1152 | -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ | ||
| 1153 | -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ | ||
| 1154 | -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ | ||
| 1155 | -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ | ||
| 1156 | -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ | ||
| 1157 | -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ | ||
| 1158 | -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ | ||
| 1159 | -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ | ||
| 1160 | -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ | ||
| 1161 | -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ | ||
| 1162 | -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ | ||
| 1163 | -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ | ||
| 1164 | -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ | ||
| 1165 | -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ | ||
| 1166 | -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ | ||
| 1167 | -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ | ||
| 1168 | -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ | ||
| 1169 | -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ | ||
| 1170 | -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ | ||
| 1171 | -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ | ||
| 1172 | -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ | ||
| 1173 | -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ | ||
| 1174 | -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ | ||
| 1175 | -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ | ||
| 1176 | -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ | ||
| 1177 | -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ | ||
| 1178 | -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ | ||
| 1179 | -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ | ||
| 1180 | -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ | ||
| 1181 | -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ | ||
| 1182 | -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ | ||
| 1183 | -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ | ||
| 1184 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
| 1185 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
| 1186 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ | ||
| 1187 | } > $@-t && \ | ||
| 1188 | mv $@-t $@ | ||
| 1189 | |||
| 1000 | # We need the following in order to create <stdlib.h> when the system | 1190 | # We need the following in order to create <stdlib.h> when the system |
| 1001 | # doesn't have one that works with the given compiler. | 1191 | # doesn't have one that works with the given compiler. |
| 1002 | stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | 1192 | stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
diff --git a/lib/gnulib.mk b/lib/gnulib.mk index 369b7a48732..030f95b7a68 100644 --- a/lib/gnulib.mk +++ b/lib/gnulib.mk | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | # the same distribution terms as the rest of that program. | 9 | # the same distribution terms as the rest of that program. |
| 10 | # | 10 | # |
| 11 | # Generated by gnulib-tool. | 11 | # Generated by gnulib-tool. |
| 12 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files crypto/md5 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen strftime symlink sys_stat | 12 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files crypto/md5 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdio strftime symlink sys_stat |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | MOSTLYCLEANFILES += core *.stackdump | 15 | MOSTLYCLEANFILES += core *.stackdump |
| @@ -280,6 +280,117 @@ EXTRA_DIST += stdint.in.h | |||
| 280 | 280 | ||
| 281 | ## end gnulib module stdint | 281 | ## end gnulib module stdint |
| 282 | 282 | ||
| 283 | ## begin gnulib module stdio | ||
| 284 | |||
| 285 | BUILT_SOURCES += stdio.h | ||
| 286 | |||
| 287 | # We need the following in order to create <stdio.h> when the system | ||
| 288 | # doesn't have one that works with the given compiler. | ||
| 289 | stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
| 290 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 291 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
| 292 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 293 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 294 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 295 | -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ | ||
| 296 | -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ | ||
| 297 | -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ | ||
| 298 | -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ | ||
| 299 | -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ | ||
| 300 | -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ | ||
| 301 | -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ | ||
| 302 | -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ | ||
| 303 | -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ | ||
| 304 | -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ | ||
| 305 | -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ | ||
| 306 | -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ | ||
| 307 | -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ | ||
| 308 | -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ | ||
| 309 | -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ | ||
| 310 | -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ | ||
| 311 | -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ | ||
| 312 | -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ | ||
| 313 | -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ | ||
| 314 | -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ | ||
| 315 | -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ | ||
| 316 | -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ | ||
| 317 | -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ | ||
| 318 | -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ | ||
| 319 | -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ | ||
| 320 | -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ | ||
| 321 | -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ | ||
| 322 | -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ | ||
| 323 | -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ | ||
| 324 | -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ | ||
| 325 | -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ | ||
| 326 | -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ | ||
| 327 | -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ | ||
| 328 | -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ | ||
| 329 | -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ | ||
| 330 | -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ | ||
| 331 | -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ | ||
| 332 | -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ | ||
| 333 | -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ | ||
| 334 | -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ | ||
| 335 | -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ | ||
| 336 | -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ | ||
| 337 | < $(srcdir)/stdio.in.h | \ | ||
| 338 | sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ | ||
| 339 | -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ | ||
| 340 | -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ | ||
| 341 | -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ | ||
| 342 | -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ | ||
| 343 | -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ | ||
| 344 | -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ | ||
| 345 | -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ | ||
| 346 | -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ | ||
| 347 | -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ | ||
| 348 | -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ | ||
| 349 | -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ | ||
| 350 | -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ | ||
| 351 | -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ | ||
| 352 | -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ | ||
| 353 | -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ | ||
| 354 | -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ | ||
| 355 | -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ | ||
| 356 | -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ | ||
| 357 | -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ | ||
| 358 | -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ | ||
| 359 | -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ | ||
| 360 | -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ | ||
| 361 | -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ | ||
| 362 | -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ | ||
| 363 | -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ | ||
| 364 | -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ | ||
| 365 | -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ | ||
| 366 | -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ | ||
| 367 | -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ | ||
| 368 | -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ | ||
| 369 | -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ | ||
| 370 | -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ | ||
| 371 | -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ | ||
| 372 | -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ | ||
| 373 | -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ | ||
| 374 | -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ | ||
| 375 | -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ | ||
| 376 | -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ | ||
| 377 | -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ | ||
| 378 | -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ | ||
| 379 | -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ | ||
| 380 | -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ | ||
| 381 | -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ | ||
| 382 | -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ | ||
| 383 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
| 384 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
| 385 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ | ||
| 386 | } > $@-t && \ | ||
| 387 | mv $@-t $@ | ||
| 388 | MOSTLYCLEANFILES += stdio.h stdio.h-t | ||
| 389 | |||
| 390 | EXTRA_DIST += stdio.in.h | ||
| 391 | |||
| 392 | ## end gnulib module stdio | ||
| 393 | |||
| 283 | ## begin gnulib module stdlib | 394 | ## begin gnulib module stdlib |
| 284 | 395 | ||
| 285 | BUILT_SOURCES += stdlib.h | 396 | BUILT_SOURCES += stdlib.h |
diff --git a/lib/stdio.in.h b/lib/stdio.in.h new file mode 100644 index 00000000000..dd31ce29ed1 --- /dev/null +++ b/lib/stdio.in.h | |||
| @@ -0,0 +1,1119 @@ | |||
| 1 | /* A GNU-like <stdio.h>. | ||
| 2 | |||
| 3 | Copyright (C) 2004, 2007-2011 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This program is free software; you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation; either version 3, or (at your option) | ||
| 8 | any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program; if not, write to the Free Software Foundation, | ||
| 17 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | ||
| 18 | |||
| 19 | #if __GNUC__ >= 3 | ||
| 20 | @PRAGMA_SYSTEM_HEADER@ | ||
| 21 | #endif | ||
| 22 | @PRAGMA_COLUMNS@ | ||
| 23 | |||
| 24 | #if defined __need_FILE || defined __need___FILE || defined _GL_ALREADY_INCLUDING_STDIO_H | ||
| 25 | /* Special invocation convention: | ||
| 26 | - Inside glibc header files. | ||
| 27 | - On OSF/1 5.1 we have a sequence of nested includes | ||
| 28 | <stdio.h> -> <getopt.h> -> <ctype.h> -> <sys/localedef.h> -> | ||
| 29 | <sys/lc_core.h> -> <nl_types.h> -> <mesg.h> -> <stdio.h>. | ||
| 30 | In this situation, the functions are not yet declared, therefore we cannot | ||
| 31 | provide the C++ aliases. */ | ||
| 32 | |||
| 33 | #@INCLUDE_NEXT@ @NEXT_STDIO_H@ | ||
| 34 | |||
| 35 | #else | ||
| 36 | /* Normal invocation convention. */ | ||
| 37 | |||
| 38 | #ifndef _GL_STDIO_H | ||
| 39 | |||
| 40 | #define _GL_ALREADY_INCLUDING_STDIO_H | ||
| 41 | |||
| 42 | /* The include_next requires a split double-inclusion guard. */ | ||
| 43 | #@INCLUDE_NEXT@ @NEXT_STDIO_H@ | ||
| 44 | |||
| 45 | #undef _GL_ALREADY_INCLUDING_STDIO_H | ||
| 46 | |||
| 47 | #ifndef _GL_STDIO_H | ||
| 48 | #define _GL_STDIO_H | ||
| 49 | |||
| 50 | /* Get va_list. Needed on many systems, including glibc 2.8. */ | ||
| 51 | #include <stdarg.h> | ||
| 52 | |||
| 53 | #include <stddef.h> | ||
| 54 | |||
| 55 | /* Get off_t and ssize_t. Needed on many systems, including glibc 2.8 | ||
| 56 | and eglibc 2.11.2. */ | ||
| 57 | #include <sys/types.h> | ||
| 58 | |||
| 59 | /* The __attribute__ feature is available in gcc versions 2.5 and later. | ||
| 60 | The __-protected variants of the attributes 'format' and 'printf' are | ||
| 61 | accepted by gcc versions 2.6.4 (effectively 2.7) and later. | ||
| 62 | We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because | ||
| 63 | gnulib and libintl do '#define printf __printf__' when they override | ||
| 64 | the 'printf' function. */ | ||
| 65 | #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) | ||
| 66 | # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) | ||
| 67 | #else | ||
| 68 | # define _GL_ATTRIBUTE_FORMAT(spec) /* empty */ | ||
| 69 | #endif | ||
| 70 | #define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \ | ||
| 71 | _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument)) | ||
| 72 | |||
| 73 | /* Solaris 10 declares renameat in <unistd.h>, not in <stdio.h>. */ | ||
| 74 | /* But in any case avoid namespace pollution on glibc systems. */ | ||
| 75 | #if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __sun \ | ||
| 76 | && ! defined __GLIBC__ | ||
| 77 | # include <unistd.h> | ||
| 78 | #endif | ||
| 79 | |||
| 80 | |||
| 81 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | ||
| 82 | |||
| 83 | /* The definition of _GL_ARG_NONNULL is copied here. */ | ||
| 84 | |||
| 85 | /* The definition of _GL_WARN_ON_USE is copied here. */ | ||
| 86 | |||
| 87 | /* Macros for stringification. */ | ||
| 88 | #define _GL_STDIO_STRINGIZE(token) #token | ||
| 89 | #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) | ||
| 90 | |||
| 91 | |||
| 92 | #if @GNULIB_DPRINTF@ | ||
| 93 | # if @REPLACE_DPRINTF@ | ||
| 94 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 95 | # define dprintf rpl_dprintf | ||
| 96 | # endif | ||
| 97 | _GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *format, ...) | ||
| 98 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 99 | _GL_ARG_NONNULL ((2))); | ||
| 100 | _GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *format, ...)); | ||
| 101 | # else | ||
| 102 | # if !@HAVE_DPRINTF@ | ||
| 103 | _GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *format, ...) | ||
| 104 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 105 | _GL_ARG_NONNULL ((2))); | ||
| 106 | # endif | ||
| 107 | _GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *format, ...)); | ||
| 108 | # endif | ||
| 109 | _GL_CXXALIASWARN (dprintf); | ||
| 110 | #elif defined GNULIB_POSIXCHECK | ||
| 111 | # undef dprintf | ||
| 112 | # if HAVE_RAW_DECL_DPRINTF | ||
| 113 | _GL_WARN_ON_USE (dprintf, "dprintf is unportable - " | ||
| 114 | "use gnulib module dprintf for portability"); | ||
| 115 | # endif | ||
| 116 | #endif | ||
| 117 | |||
| 118 | #if @GNULIB_FCLOSE@ | ||
| 119 | /* Close STREAM and its underlying file descriptor. */ | ||
| 120 | # if @REPLACE_FCLOSE@ | ||
| 121 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 122 | # define fclose rpl_fclose | ||
| 123 | # endif | ||
| 124 | _GL_FUNCDECL_RPL (fclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); | ||
| 125 | _GL_CXXALIAS_RPL (fclose, int, (FILE *stream)); | ||
| 126 | # else | ||
| 127 | _GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); | ||
| 128 | # endif | ||
| 129 | _GL_CXXALIASWARN (fclose); | ||
| 130 | #elif defined GNULIB_POSIXCHECK | ||
| 131 | # undef fclose | ||
| 132 | /* Assume fclose is always declared. */ | ||
| 133 | _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " | ||
| 134 | "use gnulib module fclose for portable POSIX compliance"); | ||
| 135 | #endif | ||
| 136 | |||
| 137 | #if @GNULIB_FFLUSH@ | ||
| 138 | /* Flush all pending data on STREAM according to POSIX rules. Both | ||
| 139 | output and seekable input streams are supported. | ||
| 140 | Note! LOSS OF DATA can occur if fflush is applied on an input stream | ||
| 141 | that is _not_seekable_ or on an update stream that is _not_seekable_ | ||
| 142 | and in which the most recent operation was input. Seekability can | ||
| 143 | be tested with lseek(fileno(fp),0,SEEK_CUR). */ | ||
| 144 | # if @REPLACE_FFLUSH@ | ||
| 145 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 146 | # define fflush rpl_fflush | ||
| 147 | # endif | ||
| 148 | _GL_FUNCDECL_RPL (fflush, int, (FILE *gl_stream)); | ||
| 149 | _GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream)); | ||
| 150 | # else | ||
| 151 | _GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); | ||
| 152 | # endif | ||
| 153 | _GL_CXXALIASWARN (fflush); | ||
| 154 | #elif defined GNULIB_POSIXCHECK | ||
| 155 | # undef fflush | ||
| 156 | /* Assume fflush is always declared. */ | ||
| 157 | _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " | ||
| 158 | "use gnulib module fflush for portable POSIX compliance"); | ||
| 159 | #endif | ||
| 160 | |||
| 161 | /* It is very rare that the developer ever has full control of stdin, | ||
| 162 | so any use of gets warrants an unconditional warning. Assume it is | ||
| 163 | always declared, since it is required by C89. */ | ||
| 164 | #undef gets | ||
| 165 | _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | ||
| 166 | |||
| 167 | #if @GNULIB_FOPEN@ | ||
| 168 | # if @REPLACE_FOPEN@ | ||
| 169 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 170 | # undef fopen | ||
| 171 | # define fopen rpl_fopen | ||
| 172 | # endif | ||
| 173 | _GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) | ||
| 174 | _GL_ARG_NONNULL ((1, 2))); | ||
| 175 | _GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); | ||
| 176 | # else | ||
| 177 | _GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); | ||
| 178 | # endif | ||
| 179 | _GL_CXXALIASWARN (fopen); | ||
| 180 | #elif defined GNULIB_POSIXCHECK | ||
| 181 | # undef fopen | ||
| 182 | /* Assume fopen is always declared. */ | ||
| 183 | _GL_WARN_ON_USE (fopen, "fopen on Win32 platforms is not POSIX compatible - " | ||
| 184 | "use gnulib module fopen for portability"); | ||
| 185 | #endif | ||
| 186 | |||
| 187 | #if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@ | ||
| 188 | # if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \ | ||
| 189 | || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) | ||
| 190 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 191 | # define fprintf rpl_fprintf | ||
| 192 | # endif | ||
| 193 | # define GNULIB_overrides_fprintf 1 | ||
| 194 | _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) | ||
| 195 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 196 | _GL_ARG_NONNULL ((1, 2))); | ||
| 197 | _GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); | ||
| 198 | # else | ||
| 199 | _GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); | ||
| 200 | # endif | ||
| 201 | _GL_CXXALIASWARN (fprintf); | ||
| 202 | #endif | ||
| 203 | #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | ||
| 204 | # if !GNULIB_overrides_fprintf | ||
| 205 | # undef fprintf | ||
| 206 | # endif | ||
| 207 | /* Assume fprintf is always declared. */ | ||
| 208 | _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " | ||
| 209 | "use gnulib module fprintf-posix for portable " | ||
| 210 | "POSIX compliance"); | ||
| 211 | #endif | ||
| 212 | |||
| 213 | #if @GNULIB_FPURGE@ | ||
| 214 | /* Discard all pending buffered I/O data on STREAM. | ||
| 215 | STREAM must not be wide-character oriented. | ||
| 216 | When discarding pending output, the file position is set back to where it | ||
| 217 | was before the write calls. When discarding pending input, the file | ||
| 218 | position is advanced to match the end of the previously read input. | ||
| 219 | Return 0 if successful. Upon error, return -1 and set errno. */ | ||
| 220 | # if @REPLACE_FPURGE@ | ||
| 221 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 222 | # define fpurge rpl_fpurge | ||
| 223 | # endif | ||
| 224 | _GL_FUNCDECL_RPL (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); | ||
| 225 | _GL_CXXALIAS_RPL (fpurge, int, (FILE *gl_stream)); | ||
| 226 | # else | ||
| 227 | # if !@HAVE_DECL_FPURGE@ | ||
| 228 | _GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); | ||
| 229 | # endif | ||
| 230 | _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); | ||
| 231 | # endif | ||
| 232 | _GL_CXXALIASWARN (fpurge); | ||
| 233 | #elif defined GNULIB_POSIXCHECK | ||
| 234 | # undef fpurge | ||
| 235 | # if HAVE_RAW_DECL_FPURGE | ||
| 236 | _GL_WARN_ON_USE (fpurge, "fpurge is not always present - " | ||
| 237 | "use gnulib module fpurge for portability"); | ||
| 238 | # endif | ||
| 239 | #endif | ||
| 240 | |||
| 241 | #if @GNULIB_FPUTC@ | ||
| 242 | # if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ | ||
| 243 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 244 | # undef fputc | ||
| 245 | # define fputc rpl_fputc | ||
| 246 | # endif | ||
| 247 | _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); | ||
| 248 | _GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream)); | ||
| 249 | # else | ||
| 250 | _GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream)); | ||
| 251 | # endif | ||
| 252 | _GL_CXXALIASWARN (fputc); | ||
| 253 | #endif | ||
| 254 | |||
| 255 | #if @GNULIB_FPUTS@ | ||
| 256 | # if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ | ||
| 257 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 258 | # undef fputs | ||
| 259 | # define fputs rpl_fputs | ||
| 260 | # endif | ||
| 261 | _GL_FUNCDECL_RPL (fputs, int, (const char *string, FILE *stream) | ||
| 262 | _GL_ARG_NONNULL ((1, 2))); | ||
| 263 | _GL_CXXALIAS_RPL (fputs, int, (const char *string, FILE *stream)); | ||
| 264 | # else | ||
| 265 | _GL_CXXALIAS_SYS (fputs, int, (const char *string, FILE *stream)); | ||
| 266 | # endif | ||
| 267 | _GL_CXXALIASWARN (fputs); | ||
| 268 | #endif | ||
| 269 | |||
| 270 | #if @GNULIB_FREOPEN@ | ||
| 271 | # if @REPLACE_FREOPEN@ | ||
| 272 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 273 | # undef freopen | ||
| 274 | # define freopen rpl_freopen | ||
| 275 | # endif | ||
| 276 | _GL_FUNCDECL_RPL (freopen, FILE *, | ||
| 277 | (const char *filename, const char *mode, FILE *stream) | ||
| 278 | _GL_ARG_NONNULL ((2, 3))); | ||
| 279 | _GL_CXXALIAS_RPL (freopen, FILE *, | ||
| 280 | (const char *filename, const char *mode, FILE *stream)); | ||
| 281 | # else | ||
| 282 | _GL_CXXALIAS_SYS (freopen, FILE *, | ||
| 283 | (const char *filename, const char *mode, FILE *stream)); | ||
| 284 | # endif | ||
| 285 | _GL_CXXALIASWARN (freopen); | ||
| 286 | #elif defined GNULIB_POSIXCHECK | ||
| 287 | # undef freopen | ||
| 288 | /* Assume freopen is always declared. */ | ||
| 289 | _GL_WARN_ON_USE (freopen, | ||
| 290 | "freopen on Win32 platforms is not POSIX compatible - " | ||
| 291 | "use gnulib module freopen for portability"); | ||
| 292 | #endif | ||
| 293 | |||
| 294 | |||
| 295 | /* Set up the following warnings, based on which modules are in use. | ||
| 296 | GNU Coding Standards discourage the use of fseek, since it imposes | ||
| 297 | an arbitrary limitation on some 32-bit hosts. Remember that the | ||
| 298 | fseek module depends on the fseeko module, so we only have three | ||
| 299 | cases to consider: | ||
| 300 | |||
| 301 | 1. The developer is not using either module. Issue a warning under | ||
| 302 | GNULIB_POSIXCHECK for both functions, to remind them that both | ||
| 303 | functions have bugs on some systems. _GL_NO_LARGE_FILES has no | ||
| 304 | impact on this warning. | ||
| 305 | |||
| 306 | 2. The developer is using both modules. They may be unaware of the | ||
| 307 | arbitrary limitations of fseek, so issue a warning under | ||
| 308 | GNULIB_POSIXCHECK. On the other hand, they may be using both | ||
| 309 | modules intentionally, so the developer can define | ||
| 310 | _GL_NO_LARGE_FILES in the compilation units where the use of fseek | ||
| 311 | is safe, to silence the warning. | ||
| 312 | |||
| 313 | 3. The developer is using the fseeko module, but not fseek. Gnulib | ||
| 314 | guarantees that fseek will still work around platform bugs in that | ||
| 315 | case, but we presume that the developer is aware of the pitfalls of | ||
| 316 | fseek and was trying to avoid it, so issue a warning even when | ||
| 317 | GNULIB_POSIXCHECK is undefined. Again, _GL_NO_LARGE_FILES can be | ||
| 318 | defined to silence the warning in particular compilation units. | ||
| 319 | In C++ compilations with GNULIB_NAMESPACE, in order to avoid that | ||
| 320 | fseek gets defined as a macro, it is recommended that the developer | ||
| 321 | uses the fseek module, even if he is not calling the fseek function. | ||
| 322 | |||
| 323 | Most gnulib clients that perform stream operations should fall into | ||
| 324 | category 3. */ | ||
| 325 | |||
| 326 | #if @GNULIB_FSEEK@ | ||
| 327 | # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES | ||
| 328 | # define _GL_FSEEK_WARN /* Category 2, above. */ | ||
| 329 | # undef fseek | ||
| 330 | # endif | ||
| 331 | # if @REPLACE_FSEEK@ | ||
| 332 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 333 | # undef fseek | ||
| 334 | # define fseek rpl_fseek | ||
| 335 | # endif | ||
| 336 | _GL_FUNCDECL_RPL (fseek, int, (FILE *fp, long offset, int whence) | ||
| 337 | _GL_ARG_NONNULL ((1))); | ||
| 338 | _GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence)); | ||
| 339 | # else | ||
| 340 | _GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence)); | ||
| 341 | # endif | ||
| 342 | _GL_CXXALIASWARN (fseek); | ||
| 343 | #endif | ||
| 344 | |||
| 345 | #if @GNULIB_FSEEKO@ | ||
| 346 | # if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES | ||
| 347 | # define _GL_FSEEK_WARN /* Category 3, above. */ | ||
| 348 | # undef fseek | ||
| 349 | # endif | ||
| 350 | # if @REPLACE_FSEEKO@ | ||
| 351 | /* Provide an fseeko function that is aware of a preceding fflush(), and which | ||
| 352 | detects pipes. */ | ||
| 353 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 354 | # undef fseeko | ||
| 355 | # define fseeko rpl_fseeko | ||
| 356 | # endif | ||
| 357 | _GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) | ||
| 358 | _GL_ARG_NONNULL ((1))); | ||
| 359 | _GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); | ||
| 360 | # else | ||
| 361 | # if ! @HAVE_DECL_FSEEKO@ | ||
| 362 | _GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence) | ||
| 363 | _GL_ARG_NONNULL ((1))); | ||
| 364 | # endif | ||
| 365 | _GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); | ||
| 366 | # endif | ||
| 367 | _GL_CXXALIASWARN (fseeko); | ||
| 368 | # if (@REPLACE_FSEEKO@ || !@HAVE_FSEEKO@) && !@GNULIB_FSEEK@ | ||
| 369 | /* Provide an fseek function that is consistent with fseeko. */ | ||
| 370 | /* In order to avoid that fseek gets defined as a macro here, the | ||
| 371 | developer can request the 'fseek' module. */ | ||
| 372 | # if !GNULIB_defined_fseek_function | ||
| 373 | # undef fseek | ||
| 374 | # define fseek rpl_fseek | ||
| 375 | static inline int _GL_ARG_NONNULL ((1)) | ||
| 376 | rpl_fseek (FILE *fp, long offset, int whence) | ||
| 377 | { | ||
| 378 | # if @REPLACE_FSEEKO@ | ||
| 379 | return rpl_fseeko (fp, offset, whence); | ||
| 380 | # else | ||
| 381 | return fseeko (fp, offset, whence); | ||
| 382 | # endif | ||
| 383 | } | ||
| 384 | # define GNULIB_defined_fseek_function 1 | ||
| 385 | # endif | ||
| 386 | # endif | ||
| 387 | #elif defined GNULIB_POSIXCHECK | ||
| 388 | # define _GL_FSEEK_WARN /* Category 1, above. */ | ||
| 389 | # undef fseek | ||
| 390 | # undef fseeko | ||
| 391 | # if HAVE_RAW_DECL_FSEEKO | ||
| 392 | _GL_WARN_ON_USE (fseeko, "fseeko is unportable - " | ||
| 393 | "use gnulib module fseeko for portability"); | ||
| 394 | # endif | ||
| 395 | #endif | ||
| 396 | |||
| 397 | #ifdef _GL_FSEEK_WARN | ||
| 398 | # undef _GL_FSEEK_WARN | ||
| 399 | /* Here, either fseek is undefined (but C89 guarantees that it is | ||
| 400 | declared), or it is defined as rpl_fseek (declared above). */ | ||
| 401 | _GL_WARN_ON_USE (fseek, "fseek cannot handle files larger than 4 GB " | ||
| 402 | "on 32-bit platforms - " | ||
| 403 | "use fseeko function for handling of large files"); | ||
| 404 | #endif | ||
| 405 | |||
| 406 | |||
| 407 | /* ftell, ftello. See the comments on fseek/fseeko. */ | ||
| 408 | |||
| 409 | #if @GNULIB_FTELL@ | ||
| 410 | # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES | ||
| 411 | # define _GL_FTELL_WARN /* Category 2, above. */ | ||
| 412 | # undef ftell | ||
| 413 | # endif | ||
| 414 | # if @REPLACE_FTELL@ | ||
| 415 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 416 | # undef ftell | ||
| 417 | # define ftell rpl_ftell | ||
| 418 | # endif | ||
| 419 | _GL_FUNCDECL_RPL (ftell, long, (FILE *fp) _GL_ARG_NONNULL ((1))); | ||
| 420 | _GL_CXXALIAS_RPL (ftell, long, (FILE *fp)); | ||
| 421 | # else | ||
| 422 | _GL_CXXALIAS_SYS (ftell, long, (FILE *fp)); | ||
| 423 | # endif | ||
| 424 | _GL_CXXALIASWARN (ftell); | ||
| 425 | #endif | ||
| 426 | |||
| 427 | #if @GNULIB_FTELLO@ | ||
| 428 | # if !@GNULIB_FTELL@ && !defined _GL_NO_LARGE_FILES | ||
| 429 | # define _GL_FTELL_WARN /* Category 3, above. */ | ||
| 430 | # undef ftell | ||
| 431 | # endif | ||
| 432 | # if @REPLACE_FTELLO@ | ||
| 433 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 434 | # undef ftello | ||
| 435 | # define ftello rpl_ftello | ||
| 436 | # endif | ||
| 437 | _GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); | ||
| 438 | _GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp)); | ||
| 439 | # else | ||
| 440 | # if ! @HAVE_DECL_FTELLO@ | ||
| 441 | _GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); | ||
| 442 | # endif | ||
| 443 | _GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp)); | ||
| 444 | # endif | ||
| 445 | _GL_CXXALIASWARN (ftello); | ||
| 446 | # if (@REPLACE_FTELLO@ || !@HAVE_FTELLO@) && !@GNULIB_FTELL@ | ||
| 447 | /* Provide an ftell function that is consistent with ftello. */ | ||
| 448 | /* In order to avoid that ftell gets defined as a macro here, the | ||
| 449 | developer can request the 'ftell' module. */ | ||
| 450 | # if !GNULIB_defined_ftell_function | ||
| 451 | # undef ftell | ||
| 452 | # define ftell rpl_ftell | ||
| 453 | static inline long _GL_ARG_NONNULL ((1)) | ||
| 454 | rpl_ftell (FILE *f) | ||
| 455 | { | ||
| 456 | # if @REPLACE_FTELLO@ | ||
| 457 | return rpl_ftello (f); | ||
| 458 | # else | ||
| 459 | return ftello (f); | ||
| 460 | # endif | ||
| 461 | } | ||
| 462 | # define GNULIB_defined_ftell_function 1 | ||
| 463 | # endif | ||
| 464 | # endif | ||
| 465 | #elif defined GNULIB_POSIXCHECK | ||
| 466 | # define _GL_FTELL_WARN /* Category 1, above. */ | ||
| 467 | # undef ftell | ||
| 468 | # undef ftello | ||
| 469 | # if HAVE_RAW_DECL_FTELLO | ||
| 470 | _GL_WARN_ON_USE (ftello, "ftello is unportable - " | ||
| 471 | "use gnulib module ftello for portability"); | ||
| 472 | # endif | ||
| 473 | #endif | ||
| 474 | |||
| 475 | #ifdef _GL_FTELL_WARN | ||
| 476 | # undef _GL_FTELL_WARN | ||
| 477 | /* Here, either ftell is undefined (but C89 guarantees that it is | ||
| 478 | declared), or it is defined as rpl_ftell (declared above). */ | ||
| 479 | _GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB " | ||
| 480 | "on 32-bit platforms - " | ||
| 481 | "use ftello function for handling of large files"); | ||
| 482 | #endif | ||
| 483 | |||
| 484 | |||
| 485 | #if @GNULIB_FWRITE@ | ||
| 486 | # if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ | ||
| 487 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 488 | # undef fwrite | ||
| 489 | # define fwrite rpl_fwrite | ||
| 490 | # endif | ||
| 491 | _GL_FUNCDECL_RPL (fwrite, size_t, | ||
| 492 | (const void *ptr, size_t s, size_t n, FILE *stream) | ||
| 493 | _GL_ARG_NONNULL ((1, 4))); | ||
| 494 | _GL_CXXALIAS_RPL (fwrite, size_t, | ||
| 495 | (const void *ptr, size_t s, size_t n, FILE *stream)); | ||
| 496 | # else | ||
| 497 | _GL_CXXALIAS_SYS (fwrite, size_t, | ||
| 498 | (const void *ptr, size_t s, size_t n, FILE *stream)); | ||
| 499 | |||
| 500 | /* Work around glibc bug 11959 | ||
| 501 | <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>, | ||
| 502 | which sometimes causes an unwanted diagnostic for fwrite calls. | ||
| 503 | This affects only function declaration attributes, so it's not | ||
| 504 | needed for C++. */ | ||
| 505 | # if !defined __cplusplus && 0 < __USE_FORTIFY_LEVEL | ||
| 506 | static inline size_t _GL_ARG_NONNULL ((1, 4)) | ||
| 507 | rpl_fwrite (const void *ptr, size_t s, size_t n, FILE *stream) | ||
| 508 | { | ||
| 509 | size_t r = fwrite (ptr, s, n, stream); | ||
| 510 | (void) r; | ||
| 511 | return r; | ||
| 512 | } | ||
| 513 | # undef fwrite | ||
| 514 | # define fwrite rpl_fwrite | ||
| 515 | # endif | ||
| 516 | # endif | ||
| 517 | _GL_CXXALIASWARN (fwrite); | ||
| 518 | #endif | ||
| 519 | |||
| 520 | #if @GNULIB_GETDELIM@ | ||
| 521 | /* Read input, up to (and including) the next occurrence of DELIMITER, from | ||
| 522 | STREAM, store it in *LINEPTR (and NUL-terminate it). | ||
| 523 | *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE | ||
| 524 | bytes of space. It is realloc'd as necessary. | ||
| 525 | Return the number of bytes read and stored at *LINEPTR (not including the | ||
| 526 | NUL terminator), or -1 on error or EOF. */ | ||
| 527 | # if @REPLACE_GETDELIM@ | ||
| 528 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 529 | # undef getdelim | ||
| 530 | # define getdelim rpl_getdelim | ||
| 531 | # endif | ||
| 532 | _GL_FUNCDECL_RPL (getdelim, ssize_t, | ||
| 533 | (char **lineptr, size_t *linesize, int delimiter, | ||
| 534 | FILE *stream) | ||
| 535 | _GL_ARG_NONNULL ((1, 2, 4))); | ||
| 536 | _GL_CXXALIAS_RPL (getdelim, ssize_t, | ||
| 537 | (char **lineptr, size_t *linesize, int delimiter, | ||
| 538 | FILE *stream)); | ||
| 539 | # else | ||
| 540 | # if !@HAVE_DECL_GETDELIM@ | ||
| 541 | _GL_FUNCDECL_SYS (getdelim, ssize_t, | ||
| 542 | (char **lineptr, size_t *linesize, int delimiter, | ||
| 543 | FILE *stream) | ||
| 544 | _GL_ARG_NONNULL ((1, 2, 4))); | ||
| 545 | # endif | ||
| 546 | _GL_CXXALIAS_SYS (getdelim, ssize_t, | ||
| 547 | (char **lineptr, size_t *linesize, int delimiter, | ||
| 548 | FILE *stream)); | ||
| 549 | # endif | ||
| 550 | _GL_CXXALIASWARN (getdelim); | ||
| 551 | #elif defined GNULIB_POSIXCHECK | ||
| 552 | # undef getdelim | ||
| 553 | # if HAVE_RAW_DECL_GETDELIM | ||
| 554 | _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " | ||
| 555 | "use gnulib module getdelim for portability"); | ||
| 556 | # endif | ||
| 557 | #endif | ||
| 558 | |||
| 559 | #if @GNULIB_GETLINE@ | ||
| 560 | /* Read a line, up to (and including) the next newline, from STREAM, store it | ||
| 561 | in *LINEPTR (and NUL-terminate it). | ||
| 562 | *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE | ||
| 563 | bytes of space. It is realloc'd as necessary. | ||
| 564 | Return the number of bytes read and stored at *LINEPTR (not including the | ||
| 565 | NUL terminator), or -1 on error or EOF. */ | ||
| 566 | # if @REPLACE_GETLINE@ | ||
| 567 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 568 | # undef getline | ||
| 569 | # define getline rpl_getline | ||
| 570 | # endif | ||
| 571 | _GL_FUNCDECL_RPL (getline, ssize_t, | ||
| 572 | (char **lineptr, size_t *linesize, FILE *stream) | ||
| 573 | _GL_ARG_NONNULL ((1, 2, 3))); | ||
| 574 | _GL_CXXALIAS_RPL (getline, ssize_t, | ||
| 575 | (char **lineptr, size_t *linesize, FILE *stream)); | ||
| 576 | # else | ||
| 577 | # if !@HAVE_DECL_GETLINE@ | ||
| 578 | _GL_FUNCDECL_SYS (getline, ssize_t, | ||
| 579 | (char **lineptr, size_t *linesize, FILE *stream) | ||
| 580 | _GL_ARG_NONNULL ((1, 2, 3))); | ||
| 581 | # endif | ||
| 582 | _GL_CXXALIAS_SYS (getline, ssize_t, | ||
| 583 | (char **lineptr, size_t *linesize, FILE *stream)); | ||
| 584 | # endif | ||
| 585 | # if @HAVE_DECL_GETLINE@ | ||
| 586 | _GL_CXXALIASWARN (getline); | ||
| 587 | # endif | ||
| 588 | #elif defined GNULIB_POSIXCHECK | ||
| 589 | # undef getline | ||
| 590 | # if HAVE_RAW_DECL_GETLINE | ||
| 591 | _GL_WARN_ON_USE (getline, "getline is unportable - " | ||
| 592 | "use gnulib module getline for portability"); | ||
| 593 | # endif | ||
| 594 | #endif | ||
| 595 | |||
| 596 | #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ | ||
| 597 | struct obstack; | ||
| 598 | /* Grow an obstack with formatted output. Return the number of | ||
| 599 | bytes added to OBS. No trailing nul byte is added, and the | ||
| 600 | object should be closed with obstack_finish before use. Upon | ||
| 601 | memory allocation error, call obstack_alloc_failed_handler. Upon | ||
| 602 | other error, return -1. */ | ||
| 603 | # if @REPLACE_OBSTACK_PRINTF@ | ||
| 604 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 605 | # define obstack_printf rpl_obstack_printf | ||
| 606 | # endif | ||
| 607 | _GL_FUNCDECL_RPL (obstack_printf, int, | ||
| 608 | (struct obstack *obs, const char *format, ...) | ||
| 609 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 610 | _GL_ARG_NONNULL ((1, 2))); | ||
| 611 | _GL_CXXALIAS_RPL (obstack_printf, int, | ||
| 612 | (struct obstack *obs, const char *format, ...)); | ||
| 613 | # else | ||
| 614 | # if !@HAVE_DECL_OBSTACK_PRINTF@ | ||
| 615 | _GL_FUNCDECL_SYS (obstack_printf, int, | ||
| 616 | (struct obstack *obs, const char *format, ...) | ||
| 617 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 618 | _GL_ARG_NONNULL ((1, 2))); | ||
| 619 | # endif | ||
| 620 | _GL_CXXALIAS_SYS (obstack_printf, int, | ||
| 621 | (struct obstack *obs, const char *format, ...)); | ||
| 622 | # endif | ||
| 623 | _GL_CXXALIASWARN (obstack_printf); | ||
| 624 | # if @REPLACE_OBSTACK_PRINTF@ | ||
| 625 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 626 | # define obstack_vprintf rpl_obstack_vprintf | ||
| 627 | # endif | ||
| 628 | _GL_FUNCDECL_RPL (obstack_vprintf, int, | ||
| 629 | (struct obstack *obs, const char *format, va_list args) | ||
| 630 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 631 | _GL_ARG_NONNULL ((1, 2))); | ||
| 632 | _GL_CXXALIAS_RPL (obstack_vprintf, int, | ||
| 633 | (struct obstack *obs, const char *format, va_list args)); | ||
| 634 | # else | ||
| 635 | # if !@HAVE_DECL_OBSTACK_PRINTF@ | ||
| 636 | _GL_FUNCDECL_SYS (obstack_vprintf, int, | ||
| 637 | (struct obstack *obs, const char *format, va_list args) | ||
| 638 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 639 | _GL_ARG_NONNULL ((1, 2))); | ||
| 640 | # endif | ||
| 641 | _GL_CXXALIAS_SYS (obstack_vprintf, int, | ||
| 642 | (struct obstack *obs, const char *format, va_list args)); | ||
| 643 | # endif | ||
| 644 | _GL_CXXALIASWARN (obstack_vprintf); | ||
| 645 | #endif | ||
| 646 | |||
| 647 | #if @GNULIB_PERROR@ | ||
| 648 | /* Print a message to standard error, describing the value of ERRNO, | ||
| 649 | (if STRING is not NULL and not empty) prefixed with STRING and ": ", | ||
| 650 | and terminated with a newline. */ | ||
| 651 | # if @REPLACE_PERROR@ | ||
| 652 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 653 | # define perror rpl_perror | ||
| 654 | # endif | ||
| 655 | _GL_FUNCDECL_RPL (perror, void, (const char *string)); | ||
| 656 | _GL_CXXALIAS_RPL (perror, void, (const char *string)); | ||
| 657 | # else | ||
| 658 | _GL_CXXALIAS_SYS (perror, void, (const char *string)); | ||
| 659 | # endif | ||
| 660 | _GL_CXXALIASWARN (perror); | ||
| 661 | #elif defined GNULIB_POSIXCHECK | ||
| 662 | # undef perror | ||
| 663 | /* Assume perror is always declared. */ | ||
| 664 | _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " | ||
| 665 | "use gnulib module perror for portability"); | ||
| 666 | #endif | ||
| 667 | |||
| 668 | #if @GNULIB_POPEN@ | ||
| 669 | # if @REPLACE_POPEN@ | ||
| 670 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 671 | # undef popen | ||
| 672 | # define popen rpl_popen | ||
| 673 | # endif | ||
| 674 | _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) | ||
| 675 | _GL_ARG_NONNULL ((1, 2))); | ||
| 676 | _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); | ||
| 677 | # else | ||
| 678 | _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); | ||
| 679 | # endif | ||
| 680 | _GL_CXXALIASWARN (popen); | ||
| 681 | #elif defined GNULIB_POSIXCHECK | ||
| 682 | # undef popen | ||
| 683 | # if HAVE_RAW_DECL_POPEN | ||
| 684 | _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " | ||
| 685 | "use gnulib module popen or pipe for more portability"); | ||
| 686 | # endif | ||
| 687 | #endif | ||
| 688 | |||
| 689 | #if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@ | ||
| 690 | # if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \ | ||
| 691 | || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) | ||
| 692 | # if defined __GNUC__ | ||
| 693 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 694 | /* Don't break __attribute__((format(printf,M,N))). */ | ||
| 695 | # define printf __printf__ | ||
| 696 | # endif | ||
| 697 | _GL_FUNCDECL_RPL_1 (__printf__, int, | ||
| 698 | (const char *format, ...) | ||
| 699 | __asm__ (@ASM_SYMBOL_PREFIX@ | ||
| 700 | _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) | ||
| 701 | _GL_ATTRIBUTE_FORMAT_PRINTF (1, 2) | ||
| 702 | _GL_ARG_NONNULL ((1))); | ||
| 703 | _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); | ||
| 704 | # else | ||
| 705 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 706 | # define printf rpl_printf | ||
| 707 | # endif | ||
| 708 | _GL_FUNCDECL_RPL (printf, int, | ||
| 709 | (const char *format, ...) | ||
| 710 | _GL_ATTRIBUTE_FORMAT_PRINTF (1, 2) | ||
| 711 | _GL_ARG_NONNULL ((1))); | ||
| 712 | _GL_CXXALIAS_RPL (printf, int, (const char *format, ...)); | ||
| 713 | # endif | ||
| 714 | # define GNULIB_overrides_printf 1 | ||
| 715 | # else | ||
| 716 | _GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); | ||
| 717 | # endif | ||
| 718 | _GL_CXXALIASWARN (printf); | ||
| 719 | #endif | ||
| 720 | #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK | ||
| 721 | # if !GNULIB_overrides_printf | ||
| 722 | # undef printf | ||
| 723 | # endif | ||
| 724 | /* Assume printf is always declared. */ | ||
| 725 | _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " | ||
| 726 | "use gnulib module printf-posix for portable " | ||
| 727 | "POSIX compliance"); | ||
| 728 | #endif | ||
| 729 | |||
| 730 | #if @GNULIB_PUTC@ | ||
| 731 | # if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ | ||
| 732 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 733 | # undef putc | ||
| 734 | # define putc rpl_fputc | ||
| 735 | # endif | ||
| 736 | _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); | ||
| 737 | _GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream)); | ||
| 738 | # else | ||
| 739 | _GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream)); | ||
| 740 | # endif | ||
| 741 | _GL_CXXALIASWARN (putc); | ||
| 742 | #endif | ||
| 743 | |||
| 744 | #if @GNULIB_PUTCHAR@ | ||
| 745 | # if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ | ||
| 746 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 747 | # undef putchar | ||
| 748 | # define putchar rpl_putchar | ||
| 749 | # endif | ||
| 750 | _GL_FUNCDECL_RPL (putchar, int, (int c)); | ||
| 751 | _GL_CXXALIAS_RPL (putchar, int, (int c)); | ||
| 752 | # else | ||
| 753 | _GL_CXXALIAS_SYS (putchar, int, (int c)); | ||
| 754 | # endif | ||
| 755 | _GL_CXXALIASWARN (putchar); | ||
| 756 | #endif | ||
| 757 | |||
| 758 | #if @GNULIB_PUTS@ | ||
| 759 | # if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ | ||
| 760 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 761 | # undef puts | ||
| 762 | # define puts rpl_puts | ||
| 763 | # endif | ||
| 764 | _GL_FUNCDECL_RPL (puts, int, (const char *string) _GL_ARG_NONNULL ((1))); | ||
| 765 | _GL_CXXALIAS_RPL (puts, int, (const char *string)); | ||
| 766 | # else | ||
| 767 | _GL_CXXALIAS_SYS (puts, int, (const char *string)); | ||
| 768 | # endif | ||
| 769 | _GL_CXXALIASWARN (puts); | ||
| 770 | #endif | ||
| 771 | |||
| 772 | #if @GNULIB_REMOVE@ | ||
| 773 | # if @REPLACE_REMOVE@ | ||
| 774 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 775 | # undef remove | ||
| 776 | # define remove rpl_remove | ||
| 777 | # endif | ||
| 778 | _GL_FUNCDECL_RPL (remove, int, (const char *name) _GL_ARG_NONNULL ((1))); | ||
| 779 | _GL_CXXALIAS_RPL (remove, int, (const char *name)); | ||
| 780 | # else | ||
| 781 | _GL_CXXALIAS_SYS (remove, int, (const char *name)); | ||
| 782 | # endif | ||
| 783 | _GL_CXXALIASWARN (remove); | ||
| 784 | #elif defined GNULIB_POSIXCHECK | ||
| 785 | # undef remove | ||
| 786 | /* Assume remove is always declared. */ | ||
| 787 | _GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " | ||
| 788 | "use gnulib module remove for more portability"); | ||
| 789 | #endif | ||
| 790 | |||
| 791 | #if @GNULIB_RENAME@ | ||
| 792 | # if @REPLACE_RENAME@ | ||
| 793 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 794 | # undef rename | ||
| 795 | # define rename rpl_rename | ||
| 796 | # endif | ||
| 797 | _GL_FUNCDECL_RPL (rename, int, | ||
| 798 | (const char *old_filename, const char *new_filename) | ||
| 799 | _GL_ARG_NONNULL ((1, 2))); | ||
| 800 | _GL_CXXALIAS_RPL (rename, int, | ||
| 801 | (const char *old_filename, const char *new_filename)); | ||
| 802 | # else | ||
| 803 | _GL_CXXALIAS_SYS (rename, int, | ||
| 804 | (const char *old_filename, const char *new_filename)); | ||
| 805 | # endif | ||
| 806 | _GL_CXXALIASWARN (rename); | ||
| 807 | #elif defined GNULIB_POSIXCHECK | ||
| 808 | # undef rename | ||
| 809 | /* Assume rename is always declared. */ | ||
| 810 | _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " | ||
| 811 | "use gnulib module rename for more portability"); | ||
| 812 | #endif | ||
| 813 | |||
| 814 | #if @GNULIB_RENAMEAT@ | ||
| 815 | # if @REPLACE_RENAMEAT@ | ||
| 816 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 817 | # undef renameat | ||
| 818 | # define renameat rpl_renameat | ||
| 819 | # endif | ||
| 820 | _GL_FUNCDECL_RPL (renameat, int, | ||
| 821 | (int fd1, char const *file1, int fd2, char const *file2) | ||
| 822 | _GL_ARG_NONNULL ((2, 4))); | ||
| 823 | _GL_CXXALIAS_RPL (renameat, int, | ||
| 824 | (int fd1, char const *file1, int fd2, char const *file2)); | ||
| 825 | # else | ||
| 826 | # if !@HAVE_RENAMEAT@ | ||
| 827 | _GL_FUNCDECL_SYS (renameat, int, | ||
| 828 | (int fd1, char const *file1, int fd2, char const *file2) | ||
| 829 | _GL_ARG_NONNULL ((2, 4))); | ||
| 830 | # endif | ||
| 831 | _GL_CXXALIAS_SYS (renameat, int, | ||
| 832 | (int fd1, char const *file1, int fd2, char const *file2)); | ||
| 833 | # endif | ||
| 834 | _GL_CXXALIASWARN (renameat); | ||
| 835 | #elif defined GNULIB_POSIXCHECK | ||
| 836 | # undef renameat | ||
| 837 | # if HAVE_RAW_DECL_RENAMEAT | ||
| 838 | _GL_WARN_ON_USE (renameat, "renameat is not portable - " | ||
| 839 | "use gnulib module renameat for portability"); | ||
| 840 | # endif | ||
| 841 | #endif | ||
| 842 | |||
| 843 | #if @GNULIB_SNPRINTF@ | ||
| 844 | # if @REPLACE_SNPRINTF@ | ||
| 845 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 846 | # define snprintf rpl_snprintf | ||
| 847 | # endif | ||
| 848 | _GL_FUNCDECL_RPL (snprintf, int, | ||
| 849 | (char *str, size_t size, const char *format, ...) | ||
| 850 | _GL_ATTRIBUTE_FORMAT_PRINTF (3, 4) | ||
| 851 | _GL_ARG_NONNULL ((3))); | ||
| 852 | _GL_CXXALIAS_RPL (snprintf, int, | ||
| 853 | (char *str, size_t size, const char *format, ...)); | ||
| 854 | # else | ||
| 855 | # if !@HAVE_DECL_SNPRINTF@ | ||
| 856 | _GL_FUNCDECL_SYS (snprintf, int, | ||
| 857 | (char *str, size_t size, const char *format, ...) | ||
| 858 | _GL_ATTRIBUTE_FORMAT_PRINTF (3, 4) | ||
| 859 | _GL_ARG_NONNULL ((3))); | ||
| 860 | # endif | ||
| 861 | _GL_CXXALIAS_SYS (snprintf, int, | ||
| 862 | (char *str, size_t size, const char *format, ...)); | ||
| 863 | # endif | ||
| 864 | _GL_CXXALIASWARN (snprintf); | ||
| 865 | #elif defined GNULIB_POSIXCHECK | ||
| 866 | # undef snprintf | ||
| 867 | # if HAVE_RAW_DECL_SNPRINTF | ||
| 868 | _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " | ||
| 869 | "use gnulib module snprintf for portability"); | ||
| 870 | # endif | ||
| 871 | #endif | ||
| 872 | |||
| 873 | /* Some people would argue that sprintf should be handled like gets | ||
| 874 | (for example, OpenBSD issues a link warning for both functions), | ||
| 875 | since both can cause security holes due to buffer overruns. | ||
| 876 | However, we believe that sprintf can be used safely, and is more | ||
| 877 | efficient than snprintf in those safe cases; and as proof of our | ||
| 878 | belief, we use sprintf in several gnulib modules. So this header | ||
| 879 | intentionally avoids adding a warning to sprintf except when | ||
| 880 | GNULIB_POSIXCHECK is defined. */ | ||
| 881 | |||
| 882 | #if @GNULIB_SPRINTF_POSIX@ | ||
| 883 | # if @REPLACE_SPRINTF@ | ||
| 884 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 885 | # define sprintf rpl_sprintf | ||
| 886 | # endif | ||
| 887 | _GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) | ||
| 888 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 889 | _GL_ARG_NONNULL ((1, 2))); | ||
| 890 | _GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); | ||
| 891 | # else | ||
| 892 | _GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); | ||
| 893 | # endif | ||
| 894 | _GL_CXXALIASWARN (sprintf); | ||
| 895 | #elif defined GNULIB_POSIXCHECK | ||
| 896 | # undef sprintf | ||
| 897 | /* Assume sprintf is always declared. */ | ||
| 898 | _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " | ||
| 899 | "use gnulib module sprintf-posix for portable " | ||
| 900 | "POSIX compliance"); | ||
| 901 | #endif | ||
| 902 | |||
| 903 | #if @GNULIB_TMPFILE@ | ||
| 904 | # if @REPLACE_TMPFILE@ | ||
| 905 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 906 | # define tmpfile rpl_tmpfile | ||
| 907 | # endif | ||
| 908 | _GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); | ||
| 909 | _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); | ||
| 910 | # else | ||
| 911 | _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); | ||
| 912 | # endif | ||
| 913 | _GL_CXXALIASWARN (tmpfile); | ||
| 914 | #elif defined GNULIB_POSIXCHECK | ||
| 915 | # undef tmpfile | ||
| 916 | # if HAVE_RAW_DECL_TMPFILE | ||
| 917 | _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " | ||
| 918 | "use gnulib module tmpfile for portability"); | ||
| 919 | # endif | ||
| 920 | #endif | ||
| 921 | |||
| 922 | #if @GNULIB_VASPRINTF@ | ||
| 923 | /* Write formatted output to a string dynamically allocated with malloc(). | ||
| 924 | If the memory allocation succeeds, store the address of the string in | ||
| 925 | *RESULT and return the number of resulting bytes, excluding the trailing | ||
| 926 | NUL. Upon memory allocation error, or some other error, return -1. */ | ||
| 927 | # if @REPLACE_VASPRINTF@ | ||
| 928 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 929 | # define asprintf rpl_asprintf | ||
| 930 | # endif | ||
| 931 | _GL_FUNCDECL_RPL (asprintf, int, | ||
| 932 | (char **result, const char *format, ...) | ||
| 933 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 934 | _GL_ARG_NONNULL ((1, 2))); | ||
| 935 | _GL_CXXALIAS_RPL (asprintf, int, | ||
| 936 | (char **result, const char *format, ...)); | ||
| 937 | # else | ||
| 938 | # if !@HAVE_VASPRINTF@ | ||
| 939 | _GL_FUNCDECL_SYS (asprintf, int, | ||
| 940 | (char **result, const char *format, ...) | ||
| 941 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3) | ||
| 942 | _GL_ARG_NONNULL ((1, 2))); | ||
| 943 | # endif | ||
| 944 | _GL_CXXALIAS_SYS (asprintf, int, | ||
| 945 | (char **result, const char *format, ...)); | ||
| 946 | # endif | ||
| 947 | _GL_CXXALIASWARN (asprintf); | ||
| 948 | # if @REPLACE_VASPRINTF@ | ||
| 949 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 950 | # define vasprintf rpl_vasprintf | ||
| 951 | # endif | ||
| 952 | _GL_FUNCDECL_RPL (vasprintf, int, | ||
| 953 | (char **result, const char *format, va_list args) | ||
| 954 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 955 | _GL_ARG_NONNULL ((1, 2))); | ||
| 956 | _GL_CXXALIAS_RPL (vasprintf, int, | ||
| 957 | (char **result, const char *format, va_list args)); | ||
| 958 | # else | ||
| 959 | # if !@HAVE_VASPRINTF@ | ||
| 960 | _GL_FUNCDECL_SYS (vasprintf, int, | ||
| 961 | (char **result, const char *format, va_list args) | ||
| 962 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 963 | _GL_ARG_NONNULL ((1, 2))); | ||
| 964 | # endif | ||
| 965 | _GL_CXXALIAS_SYS (vasprintf, int, | ||
| 966 | (char **result, const char *format, va_list args)); | ||
| 967 | # endif | ||
| 968 | _GL_CXXALIASWARN (vasprintf); | ||
| 969 | #endif | ||
| 970 | |||
| 971 | #if @GNULIB_VDPRINTF@ | ||
| 972 | # if @REPLACE_VDPRINTF@ | ||
| 973 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 974 | # define vdprintf rpl_vdprintf | ||
| 975 | # endif | ||
| 976 | _GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *format, va_list args) | ||
| 977 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 978 | _GL_ARG_NONNULL ((2))); | ||
| 979 | _GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *format, va_list args)); | ||
| 980 | # else | ||
| 981 | # if !@HAVE_VDPRINTF@ | ||
| 982 | _GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *format, va_list args) | ||
| 983 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 984 | _GL_ARG_NONNULL ((2))); | ||
| 985 | # endif | ||
| 986 | /* Need to cast, because on Solaris, the third parameter will likely be | ||
| 987 | __va_list args. */ | ||
| 988 | _GL_CXXALIAS_SYS_CAST (vdprintf, int, | ||
| 989 | (int fd, const char *format, va_list args)); | ||
| 990 | # endif | ||
| 991 | _GL_CXXALIASWARN (vdprintf); | ||
| 992 | #elif defined GNULIB_POSIXCHECK | ||
| 993 | # undef vdprintf | ||
| 994 | # if HAVE_RAW_DECL_VDPRINTF | ||
| 995 | _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " | ||
| 996 | "use gnulib module vdprintf for portability"); | ||
| 997 | # endif | ||
| 998 | #endif | ||
| 999 | |||
| 1000 | #if @GNULIB_VFPRINTF_POSIX@ || @GNULIB_VFPRINTF@ | ||
| 1001 | # if (@GNULIB_VFPRINTF_POSIX@ && @REPLACE_VFPRINTF@) \ | ||
| 1002 | || (@GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) | ||
| 1003 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 1004 | # define vfprintf rpl_vfprintf | ||
| 1005 | # endif | ||
| 1006 | # define GNULIB_overrides_vfprintf 1 | ||
| 1007 | _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) | ||
| 1008 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 1009 | _GL_ARG_NONNULL ((1, 2))); | ||
| 1010 | _GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); | ||
| 1011 | # else | ||
| 1012 | /* Need to cast, because on Solaris, the third parameter is | ||
| 1013 | __va_list args | ||
| 1014 | and GCC's fixincludes did not change this to __gnuc_va_list. */ | ||
| 1015 | _GL_CXXALIAS_SYS_CAST (vfprintf, int, | ||
| 1016 | (FILE *fp, const char *format, va_list args)); | ||
| 1017 | # endif | ||
| 1018 | _GL_CXXALIASWARN (vfprintf); | ||
| 1019 | #endif | ||
| 1020 | #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | ||
| 1021 | # if !GNULIB_overrides_vfprintf | ||
| 1022 | # undef vfprintf | ||
| 1023 | # endif | ||
| 1024 | /* Assume vfprintf is always declared. */ | ||
| 1025 | _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " | ||
| 1026 | "use gnulib module vfprintf-posix for portable " | ||
| 1027 | "POSIX compliance"); | ||
| 1028 | #endif | ||
| 1029 | |||
| 1030 | #if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@ | ||
| 1031 | # if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \ | ||
| 1032 | || (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) | ||
| 1033 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 1034 | # define vprintf rpl_vprintf | ||
| 1035 | # endif | ||
| 1036 | # define GNULIB_overrides_vprintf 1 | ||
| 1037 | _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) | ||
| 1038 | _GL_ATTRIBUTE_FORMAT_PRINTF (1, 0) | ||
| 1039 | _GL_ARG_NONNULL ((1))); | ||
| 1040 | _GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); | ||
| 1041 | # else | ||
| 1042 | /* Need to cast, because on Solaris, the second parameter is | ||
| 1043 | __va_list args | ||
| 1044 | and GCC's fixincludes did not change this to __gnuc_va_list. */ | ||
| 1045 | _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); | ||
| 1046 | # endif | ||
| 1047 | _GL_CXXALIASWARN (vprintf); | ||
| 1048 | #endif | ||
| 1049 | #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | ||
| 1050 | # if !GNULIB_overrides_vprintf | ||
| 1051 | # undef vprintf | ||
| 1052 | # endif | ||
| 1053 | /* Assume vprintf is always declared. */ | ||
| 1054 | _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " | ||
| 1055 | "use gnulib module vprintf-posix for portable " | ||
| 1056 | "POSIX compliance"); | ||
| 1057 | #endif | ||
| 1058 | |||
| 1059 | #if @GNULIB_VSNPRINTF@ | ||
| 1060 | # if @REPLACE_VSNPRINTF@ | ||
| 1061 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 1062 | # define vsnprintf rpl_vsnprintf | ||
| 1063 | # endif | ||
| 1064 | _GL_FUNCDECL_RPL (vsnprintf, int, | ||
| 1065 | (char *str, size_t size, const char *format, va_list args) | ||
| 1066 | _GL_ATTRIBUTE_FORMAT_PRINTF (3, 0) | ||
| 1067 | _GL_ARG_NONNULL ((3))); | ||
| 1068 | _GL_CXXALIAS_RPL (vsnprintf, int, | ||
| 1069 | (char *str, size_t size, const char *format, va_list args)); | ||
| 1070 | # else | ||
| 1071 | # if !@HAVE_DECL_VSNPRINTF@ | ||
| 1072 | _GL_FUNCDECL_SYS (vsnprintf, int, | ||
| 1073 | (char *str, size_t size, const char *format, va_list args) | ||
| 1074 | _GL_ATTRIBUTE_FORMAT_PRINTF (3, 0) | ||
| 1075 | _GL_ARG_NONNULL ((3))); | ||
| 1076 | # endif | ||
| 1077 | _GL_CXXALIAS_SYS (vsnprintf, int, | ||
| 1078 | (char *str, size_t size, const char *format, va_list args)); | ||
| 1079 | # endif | ||
| 1080 | _GL_CXXALIASWARN (vsnprintf); | ||
| 1081 | #elif defined GNULIB_POSIXCHECK | ||
| 1082 | # undef vsnprintf | ||
| 1083 | # if HAVE_RAW_DECL_VSNPRINTF | ||
| 1084 | _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " | ||
| 1085 | "use gnulib module vsnprintf for portability"); | ||
| 1086 | # endif | ||
| 1087 | #endif | ||
| 1088 | |||
| 1089 | #if @GNULIB_VSPRINTF_POSIX@ | ||
| 1090 | # if @REPLACE_VSPRINTF@ | ||
| 1091 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 1092 | # define vsprintf rpl_vsprintf | ||
| 1093 | # endif | ||
| 1094 | _GL_FUNCDECL_RPL (vsprintf, int, | ||
| 1095 | (char *str, const char *format, va_list args) | ||
| 1096 | _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0) | ||
| 1097 | _GL_ARG_NONNULL ((1, 2))); | ||
| 1098 | _GL_CXXALIAS_RPL (vsprintf, int, | ||
| 1099 | (char *str, const char *format, va_list args)); | ||
| 1100 | # else | ||
| 1101 | /* Need to cast, because on Solaris, the third parameter is | ||
| 1102 | __va_list args | ||
| 1103 | and GCC's fixincludes did not change this to __gnuc_va_list. */ | ||
| 1104 | _GL_CXXALIAS_SYS_CAST (vsprintf, int, | ||
| 1105 | (char *str, const char *format, va_list args)); | ||
| 1106 | # endif | ||
| 1107 | _GL_CXXALIASWARN (vsprintf); | ||
| 1108 | #elif defined GNULIB_POSIXCHECK | ||
| 1109 | # undef vsprintf | ||
| 1110 | /* Assume vsprintf is always declared. */ | ||
| 1111 | _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " | ||
| 1112 | "use gnulib module vsprintf-posix for portable " | ||
| 1113 | "POSIX compliance"); | ||
| 1114 | #endif | ||
| 1115 | |||
| 1116 | |||
| 1117 | #endif /* _GL_STDIO_H */ | ||
| 1118 | #endif /* _GL_STDIO_H */ | ||
| 1119 | #endif | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5164207a5ce..b12445b466f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,73 @@ | |||
| 1 | 2011-03-20 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-menu.el (calc-units-menu): Add entries for logarithmic | ||
| 4 | units and musical notes. | ||
| 5 | |||
| 6 | 2011-03-20 Leo <sdl.web@gmail.com> | ||
| 7 | |||
| 8 | * ido.el (ido-read-internal): Use completing-read-default. | ||
| 9 | (ido-completing-read): Fix compatibility with completing-read. | ||
| 10 | |||
| 11 | 2011-03-20 Christian Ohler <ohler@gnu.org> | ||
| 12 | |||
| 13 | * emacs-lisp/ert.el (ert-run-tests-batch): Remove unused variable. | ||
| 14 | (ert-delete-all-tests): Use `called-interactively-p' rather than | ||
| 15 | `interactive-p'. | ||
| 16 | (ert--make-xrefs-region): Respect END. | ||
| 17 | |||
| 18 | 2011-03-19 Chong Yidong <cyd@stupidchicken.com> | ||
| 19 | |||
| 20 | * dired-aux.el (dired-create-directory): Signal an error if the | ||
| 21 | directory already exists (Bug#8246). | ||
| 22 | |||
| 23 | * facemenu.el (list-colors-display): Call list-faces-display | ||
| 24 | inside with-help-window. | ||
| 25 | (list-colors-print): Use display property to align the final | ||
| 26 | column, instead of checking window-width. | ||
| 27 | |||
| 28 | 2011-03-19 Eli Zaretskii <eliz@gnu.org> | ||
| 29 | |||
| 30 | * emerge.el (emerge-metachars): Separate value for ms-dos and | ||
| 31 | windows-nt systems. | ||
| 32 | (emerge-protect-metachars): Quote correctly for ms-dos and | ||
| 33 | windows-nt systems. | ||
| 34 | |||
| 35 | 2011-03-19 Ralph Schleicher <rs@ralph-schleicher.de> | ||
| 36 | |||
| 37 | * info.el (info-initialize): Replace all uses of `:' with | ||
| 38 | path-separator for compatibility with non-Unix systems. | ||
| 39 | Cache quoting of path-separator. (Bug#8258) | ||
| 40 | |||
| 41 | 2011-03-19 Juanma Barranquero <lekktu@gmail.com> | ||
| 42 | |||
| 43 | * avoid.el (mouse-avoidance-mode, mouse-avoidance-nudge-dist) | ||
| 44 | (mouse-avoidance-threshold, mouse-avoidance-banish-destination) | ||
| 45 | (mouse-avoidance-mode): Fix typos in docstrings. | ||
| 46 | |||
| 47 | 2011-03-19 Chong Yidong <cyd@stupidchicken.com> | ||
| 48 | |||
| 49 | * startup.el (package-subdirectory-regexp): Move from package.el. | ||
| 50 | Omit \\` and \\', and let callers add them. | ||
| 51 | |||
| 52 | * emacs-lisp/package.el (package-strip-version) | ||
| 53 | (package-load-all-descriptors): Add \\` and \\' to | ||
| 54 | package-subdirectory-regexp before using it. | ||
| 55 | (package-untar-buffer): New arg DIR; ensure that file untars only | ||
| 56 | into this expected directory. Remove superfluous delete-region. | ||
| 57 | (package-unpack): Caller changed. | ||
| 58 | (package-tar-file-info): Use package-subdirectory-regexp. | ||
| 59 | |||
| 60 | 2011-03-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 61 | |||
| 62 | * vc/diff-mode.el (diff-mode-map): Shadow problematic bindings from | ||
| 63 | diff-mode-shared-map (bug#8284). | ||
| 64 | (diff-mode-shared-map): Re-introduce some bindings that were problematic. | ||
| 65 | |||
| 66 | 2011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 67 | |||
| 68 | * calendar/time-date.el (format-seconds): Use assoc instead of | ||
| 69 | assoc-string, since assoc-string doesn't exist in XEmacs. | ||
| 70 | |||
| 1 | 2011-03-17 Juanma Barranquero <lekktu@gmail.com> | 71 | 2011-03-17 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 72 | ||
| 3 | * custom.el (custom-known-themes): Reflow docstring. | 73 | * custom.el (custom-known-themes): Reflow docstring. |
diff --git a/lisp/avoid.el b/lisp/avoid.el index c864d48e9ce..038927105ec 100644 --- a/lisp/avoid.el +++ b/lisp/avoid.el | |||
| @@ -76,7 +76,7 @@ | |||
| 76 | 76 | ||
| 77 | ;;;###autoload | 77 | ;;;###autoload |
| 78 | (defcustom mouse-avoidance-mode nil | 78 | (defcustom mouse-avoidance-mode nil |
| 79 | "Activate mouse avoidance mode. | 79 | "Activate Mouse Avoidance mode. |
| 80 | See function `mouse-avoidance-mode' for possible values. | 80 | See function `mouse-avoidance-mode' for possible values. |
| 81 | Setting this variable directly does not take effect; | 81 | Setting this variable directly does not take effect; |
| 82 | use either \\[customize] or the function `mouse-avoidance-mode'." | 82 | use either \\[customize] or the function `mouse-avoidance-mode'." |
| @@ -85,8 +85,7 @@ use either \\[customize] or the function `mouse-avoidance-mode'." | |||
| 85 | (mouse-avoidance-mode (or value 'none))) | 85 | (mouse-avoidance-mode (or value 'none))) |
| 86 | :initialize 'custom-initialize-default | 86 | :initialize 'custom-initialize-default |
| 87 | :type '(choice (const :tag "none" nil) (const banish) (const jump) | 87 | :type '(choice (const :tag "none" nil) (const banish) (const jump) |
| 88 | (const animate) (const exile) (const proteus) | 88 | (const animate) (const exile) (const proteus)) |
| 89 | ) | ||
| 90 | :group 'avoid | 89 | :group 'avoid |
| 91 | :require 'avoid | 90 | :require 'avoid |
| 92 | :version "20.3") | 91 | :version "20.3") |
| @@ -94,7 +93,7 @@ use either \\[customize] or the function `mouse-avoidance-mode'." | |||
| 94 | 93 | ||
| 95 | (defcustom mouse-avoidance-nudge-dist 15 | 94 | (defcustom mouse-avoidance-nudge-dist 15 |
| 96 | "Average distance that mouse will be moved when approached by cursor. | 95 | "Average distance that mouse will be moved when approached by cursor. |
| 97 | Only applies in Mouse-Avoidance mode `jump' and its derivatives. | 96 | Only applies in Mouse Avoidance mode `jump' and its derivatives. |
| 98 | For best results make this larger than `mouse-avoidance-threshold'." | 97 | For best results make this larger than `mouse-avoidance-threshold'." |
| 99 | :type 'integer | 98 | :type 'integer |
| 100 | :group 'avoid) | 99 | :group 'avoid) |
| @@ -112,7 +111,7 @@ For best results make this larger than `mouse-avoidance-threshold'." | |||
| 112 | (defcustom mouse-avoidance-threshold 5 | 111 | (defcustom mouse-avoidance-threshold 5 |
| 113 | "Mouse-pointer's flight distance. | 112 | "Mouse-pointer's flight distance. |
| 114 | If the cursor gets closer than this, the mouse pointer will move away. | 113 | If the cursor gets closer than this, the mouse pointer will move away. |
| 115 | Only applies in mouse-avoidance-modes `animate' and `jump'." | 114 | Only applies in Mouse Avoidance modes `animate' and `jump'." |
| 116 | :type 'integer | 115 | :type 'integer |
| 117 | :group 'avoid) | 116 | :group 'avoid) |
| 118 | 117 | ||
| @@ -183,7 +182,7 @@ Acceptable distance is defined by `mouse-avoidance-threshold'." | |||
| 183 | mouse-avoidance-threshold)))))) | 182 | mouse-avoidance-threshold)))))) |
| 184 | 183 | ||
| 185 | (defun mouse-avoidance-banish-destination () | 184 | (defun mouse-avoidance-banish-destination () |
| 186 | "The position to which Mouse-Avoidance mode `banish' moves the mouse. | 185 | "The position to which Mouse Avoidance mode `banish' moves the mouse. |
| 187 | You can redefine this if you want the mouse banished to a different corner." | 186 | You can redefine this if you want the mouse banished to a different corner." |
| 188 | (let* ((pos (window-edges))) | 187 | (let* ((pos (window-edges))) |
| 189 | (cons (- (nth 2 pos) 2) | 188 | (cons (- (nth 2 pos) 2) |
| @@ -333,7 +332,7 @@ redefine this function to suit your own tastes." | |||
| 333 | 332 | ||
| 334 | ;;;###autoload | 333 | ;;;###autoload |
| 335 | (defun mouse-avoidance-mode (&optional mode) | 334 | (defun mouse-avoidance-mode (&optional mode) |
| 336 | "Set cursor avoidance mode to MODE. | 335 | "Set Mouse Avoidance mode to MODE. |
| 337 | MODE should be one of the symbols `banish', `exile', `jump', `animate', | 336 | MODE should be one of the symbols `banish', `exile', `jump', `animate', |
| 338 | `cat-and-mouse', `proteus', or `none'. | 337 | `cat-and-mouse', `proteus', or `none'. |
| 339 | 338 | ||
| @@ -353,7 +352,7 @@ Effects of the different modes: | |||
| 353 | 352 | ||
| 354 | Whenever the mouse is moved, the frame is also raised. | 353 | Whenever the mouse is moved, the frame is also raised. |
| 355 | 354 | ||
| 356 | \(see `mouse-avoidance-threshold' for definition of \"too close\", | 355 | \(See `mouse-avoidance-threshold' for definition of \"too close\", |
| 357 | and `mouse-avoidance-nudge-dist' and `mouse-avoidance-nudge-var' for | 356 | and `mouse-avoidance-nudge-dist' and `mouse-avoidance-nudge-var' for |
| 358 | definition of \"random distance\".)" | 357 | definition of \"random distance\".)" |
| 359 | (interactive | 358 | (interactive |
diff --git a/lisp/calc/calc-menu.el b/lisp/calc/calc-menu.el index aaddf3e486e..d8099b0aadc 100644 --- a/lisp/calc/calc-menu.el +++ b/lisp/calc/calc-menu.el | |||
| @@ -960,6 +960,111 @@ | |||
| 960 | (require 'calc-units) | 960 | (require 'calc-units) |
| 961 | (call-interactively 'calc-view-units-table)) | 961 | (call-interactively 'calc-view-units-table)) |
| 962 | :keys "u V"] | 962 | :keys "u V"] |
| 963 | (list "Logarithmic Units" | ||
| 964 | ["Convert (1:) to dB (power)" | ||
| 965 | (progn | ||
| 966 | (require 'calc-units) | ||
| 967 | (call-interactively 'calc-db)) | ||
| 968 | :keys "l d" | ||
| 969 | :active (>= (calc-stack-size) 1)] | ||
| 970 | ["Convert (2:) to dB (power) with reference level (1:)" | ||
| 971 | (progn | ||
| 972 | (require 'calc-units) | ||
| 973 | (let ((calc-option-flag t)) | ||
| 974 | (call-interactively 'calc-db))) | ||
| 975 | :keys "O l d" | ||
| 976 | :active (>= (calc-stack-size) 2)] | ||
| 977 | ["Convert (1:) to Np (power)" | ||
| 978 | (progn | ||
| 979 | (require 'calc-units) | ||
| 980 | (call-interactively 'calc-np)) | ||
| 981 | :keys "l n" | ||
| 982 | :active (>= (calc-stack-size) 1)] | ||
| 983 | ["Convert (2:) to Np (power) with reference level (1:)" | ||
| 984 | (progn | ||
| 985 | (require 'calc-units) | ||
| 986 | (let ((calc-option-flag t)) | ||
| 987 | (call-interactively 'calc-np))) | ||
| 988 | :keys "O l n" | ||
| 989 | :active (>= (calc-stack-size) 2)] | ||
| 990 | ["Convert (1:) to power quantity" | ||
| 991 | (progn | ||
| 992 | (require 'calc-units) | ||
| 993 | (call-interactively 'calc-lu-quant)) | ||
| 994 | :keys "l q" | ||
| 995 | :active (>= (calc-stack-size) 1)] | ||
| 996 | ["Convert (2:) to power quantity with reference level (1:)" | ||
| 997 | (progn | ||
| 998 | (require 'calc-units) | ||
| 999 | (let ((calc-option-flag t)) | ||
| 1000 | (call-interactively 'calc-lu-quant))) | ||
| 1001 | :keys "O l q" | ||
| 1002 | :active (>= (calc-stack-size) 2)] | ||
| 1003 | "----" | ||
| 1004 | ["Convert (1:) to dB (field)" | ||
| 1005 | (progn | ||
| 1006 | (require 'calc-units) | ||
| 1007 | (let ((calc-hyperbolic-flag t)) | ||
| 1008 | (call-interactively 'calc-db))) | ||
| 1009 | :keys "H l d" | ||
| 1010 | :active (>= (calc-stack-size) 1)] | ||
| 1011 | ["Convert (2:) to dB (field) with reference level (1:)" | ||
| 1012 | (progn | ||
| 1013 | (require 'calc-units) | ||
| 1014 | (let ((calc-option-flag t) | ||
| 1015 | (calc-hyperbolic-flag t)) | ||
| 1016 | (call-interactively 'calc-db))) | ||
| 1017 | :keys "O H l d" | ||
| 1018 | :active (>= (calc-stack-size) 2)] | ||
| 1019 | ["Convert (1:) to Np (field)" | ||
| 1020 | (progn | ||
| 1021 | (require 'calc-units) | ||
| 1022 | (let ((calc-hyperbolic-flag t)) | ||
| 1023 | (call-interactively 'calc-np))) | ||
| 1024 | :keys "H l n" | ||
| 1025 | :active (>= (calc-stack-size) 1)] | ||
| 1026 | ["Convert (2:) to Np (field) with reference level (1:)" | ||
| 1027 | (progn | ||
| 1028 | (require 'calc-units) | ||
| 1029 | (let ((calc-option-flag t) | ||
| 1030 | (calc-hyperbolic-flag t)) | ||
| 1031 | (call-interactively 'calc-np))) | ||
| 1032 | :keys "O H l d" | ||
| 1033 | :active (>= (calc-stack-size) 2)] | ||
| 1034 | ["Convert (1:) to field quantity" | ||
| 1035 | (progn | ||
| 1036 | (require 'calc-units) | ||
| 1037 | (let ((calc-hyperbolic-flag t)) | ||
| 1038 | (call-interactively 'calc-lu-quant))) | ||
| 1039 | :keys "H l q" | ||
| 1040 | :active (>= (calc-stack-size) 1)] | ||
| 1041 | ["Convert (2:) to field quantity with reference level (1:)" | ||
| 1042 | (progn | ||
| 1043 | (require 'calc-units) | ||
| 1044 | (let ((calc-option-flag t) | ||
| 1045 | (calc-hyperbolic-flag)) | ||
| 1046 | (call-interactively 'calc-lu-quant))) | ||
| 1047 | :keys "O H l q" | ||
| 1048 | :active (>= (calc-stack-size) 2)]) | ||
| 1049 | (list "Musical Notes" | ||
| 1050 | ["Convert (1:) to scientific pitch notation" | ||
| 1051 | (progn | ||
| 1052 | (require 'calc-units) | ||
| 1053 | (call-interactively 'calc-spn)) | ||
| 1054 | :keys "l s" | ||
| 1055 | :active (>= (calc-stack-size) 1)] | ||
| 1056 | ["Convert (1:) to midi number" | ||
| 1057 | (progn | ||
| 1058 | (require 'calc-units) | ||
| 1059 | (call-interactively 'calc-midi)) | ||
| 1060 | :keys "l m" | ||
| 1061 | :active (>= (calc-stack-size) 1)] | ||
| 1062 | ["Convert (1:) to frequency" | ||
| 1063 | (progn | ||
| 1064 | (require 'calc-units) | ||
| 1065 | (call-interactively 'calc-freq)) | ||
| 1066 | :keys "l f" | ||
| 1067 | :active (>= (calc-stack-size) 1)]) | ||
| 963 | "----" | 1068 | "----" |
| 964 | ["Help on Units" | 1069 | ["Help on Units" |
| 965 | (calc-info-goto-node "Units")]) | 1070 | (calc-info-goto-node "Units")]) |
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index a1bfad3a5f5..62203600612 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el | |||
| @@ -308,13 +308,9 @@ This function does not work for SECONDS greater than `most-positive-fixnum'." | |||
| 308 | (setq start (match-end 0) | 308 | (setq start (match-end 0) |
| 309 | spec (match-string 1 string)) | 309 | spec (match-string 1 string)) |
| 310 | (unless (string-equal spec "%") | 310 | (unless (string-equal spec "%") |
| 311 | ;; `assoc-string' is not available in XEmacs. So when compiling | 311 | (or (setq match (assoc (downcase spec) units)) |
| 312 | ;; Gnus (`time-date.el' is part of Gnus) with XEmacs, we get | ||
| 313 | ;; a warning here. But `format-seconds' is not used anywhere in | ||
| 314 | ;; Gnus so it's not a real problem. --rsteib | ||
| 315 | (or (setq match (assoc-string spec units t)) | ||
| 316 | (error "Bad format specifier: `%s'" spec)) | 312 | (error "Bad format specifier: `%s'" spec)) |
| 317 | (if (assoc-string spec usedunits t) | 313 | (if (assoc (downcase spec) usedunits) |
| 318 | (error "Multiple instances of specifier: `%s'" spec)) | 314 | (error "Multiple instances of specifier: `%s'" spec)) |
| 319 | (if (string-equal (car match) "z") | 315 | (if (string-equal (car match) "z") |
| 320 | (setq zeroflag t) | 316 | (setq zeroflag t) |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index c533c81be0e..9ab1fcb0e2b 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -1638,11 +1638,14 @@ Optional arg HOW-TO determiness how to treat the target. | |||
| 1638 | 1638 | ||
| 1639 | ;;;###autoload | 1639 | ;;;###autoload |
| 1640 | (defun dired-create-directory (directory) | 1640 | (defun dired-create-directory (directory) |
| 1641 | "Create a directory called DIRECTORY." | 1641 | "Create a directory called DIRECTORY. |
| 1642 | If DIRECTORY already exists, signal an error." | ||
| 1642 | (interactive | 1643 | (interactive |
| 1643 | (list (read-file-name "Create directory: " (dired-current-directory)))) | 1644 | (list (read-file-name "Create directory: " (dired-current-directory)))) |
| 1644 | (let* ((expanded (directory-file-name (expand-file-name directory))) | 1645 | (let* ((expanded (directory-file-name (expand-file-name directory))) |
| 1645 | (try expanded) new) | 1646 | (try expanded) new) |
| 1647 | (if (file-exists-p expanded) | ||
| 1648 | (error "Cannot create directory %s: file exists" expanded)) | ||
| 1646 | ;; Find the topmost nonexistent parent dir (variable `new') | 1649 | ;; Find the topmost nonexistent parent dir (variable `new') |
| 1647 | (while (and try (not (file-exists-p try)) (not (equal new try))) | 1650 | (while (and try (not (file-exists-p try)) (not (equal new try))) |
| 1648 | (setq new try | 1651 | (setq new try |
diff --git a/lisp/dired.el b/lisp/dired.el index c4374503a6f..22470ea61e6 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -3627,7 +3627,7 @@ Ask means pop up a menu for the user to select one of copy, move or link." | |||
| 3627 | ;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command | 3627 | ;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command |
| 3628 | ;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown | 3628 | ;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown |
| 3629 | ;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff | 3629 | ;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff |
| 3630 | ;;;;;; dired-diff) "dired-aux" "dired-aux.el" "154cdfbf451aedec60c5012b625ff329") | 3630 | ;;;;;; dired-diff) "dired-aux" "dired-aux.el" "2d805d6766bd7970cd446413b4ed4ce0") |
| 3631 | ;;; Generated autoloads from dired-aux.el | 3631 | ;;; Generated autoloads from dired-aux.el |
| 3632 | 3632 | ||
| 3633 | (autoload 'dired-diff "dired-aux" "\ | 3633 | (autoload 'dired-diff "dired-aux" "\ |
| @@ -3858,6 +3858,7 @@ Not documented | |||
| 3858 | 3858 | ||
| 3859 | (autoload 'dired-create-directory "dired-aux" "\ | 3859 | (autoload 'dired-create-directory "dired-aux" "\ |
| 3860 | Create a directory called DIRECTORY. | 3860 | Create a directory called DIRECTORY. |
| 3861 | If DIRECTORY already exists, signal an error. | ||
| 3861 | 3862 | ||
| 3862 | \(fn DIRECTORY)" t nil) | 3863 | \(fn DIRECTORY)" t nil) |
| 3863 | 3864 | ||
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index 5bd8fd01b1e..b2e20843856 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el | |||
| @@ -1482,9 +1482,8 @@ Returns the stats object." | |||
| 1482 | (let ((print-escape-newlines t) | 1482 | (let ((print-escape-newlines t) |
| 1483 | (print-level 5) | 1483 | (print-level 5) |
| 1484 | (print-length 10)) | 1484 | (print-length 10)) |
| 1485 | (let ((begin (point))) | 1485 | (ert--pp-with-indentation-and-newline |
| 1486 | (ert--pp-with-indentation-and-newline | 1486 | (ert-test-result-with-condition-condition result))) |
| 1487 | (ert-test-result-with-condition-condition result)))) | ||
| 1488 | (goto-char (1- (point-max))) | 1487 | (goto-char (1- (point-max))) |
| 1489 | (assert (looking-at "\n")) | 1488 | (assert (looking-at "\n")) |
| 1490 | (delete-char 1) | 1489 | (delete-char 1) |
| @@ -1603,7 +1602,7 @@ Nothing more than an interactive interface to `ert-make-test-unbound'." | |||
| 1603 | (defun ert-delete-all-tests () | 1602 | (defun ert-delete-all-tests () |
| 1604 | "Make all symbols in `obarray' name no test." | 1603 | "Make all symbols in `obarray' name no test." |
| 1605 | (interactive) | 1604 | (interactive) |
| 1606 | (when (interactive-p) | 1605 | (when (called-interactively-p 'any) |
| 1607 | (unless (y-or-n-p "Delete all tests? ") | 1606 | (unless (y-or-n-p "Delete all tests? ") |
| 1608 | (error "Aborted"))) | 1607 | (error "Aborted"))) |
| 1609 | ;; We can't use `ert-select-tests' here since that gives us only | 1608 | ;; We can't use `ert-select-tests' here since that gives us only |
| @@ -1793,7 +1792,7 @@ EWOC and STATS are arguments for `ert--results-update-stats-display'." | |||
| 1793 | BEGIN and END specify a region in the current buffer." | 1792 | BEGIN and END specify a region in the current buffer." |
| 1794 | (save-excursion | 1793 | (save-excursion |
| 1795 | (save-restriction | 1794 | (save-restriction |
| 1796 | (narrow-to-region begin (point)) | 1795 | (narrow-to-region begin end) |
| 1797 | ;; Inhibit optimization in `debugger-make-xrefs' that would | 1796 | ;; Inhibit optimization in `debugger-make-xrefs' that would |
| 1798 | ;; sometimes insert unrelated backtrace info into our buffer. | 1797 | ;; sometimes insert unrelated backtrace info into our buffer. |
| 1799 | (let ((debugger-previous-backtrace nil)) | 1798 | (let ((debugger-previous-backtrace nil)) |
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 399e0fb2e24..5dc2938fe08 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -319,12 +319,6 @@ Like `package-alist', but maps package name to a second alist. | |||
| 319 | The inner alist is keyed by version.") | 319 | The inner alist is keyed by version.") |
| 320 | (put 'package-obsolete-alist 'risky-local-variable t) | 320 | (put 'package-obsolete-alist 'risky-local-variable t) |
| 321 | 321 | ||
| 322 | (defconst package-subdirectory-regexp | ||
| 323 | "\\`\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\)[0-9]+\\)*\\)\\'" | ||
| 324 | "Regular expression matching the name of a package subdirectory. | ||
| 325 | The first subexpression is the package name. | ||
| 326 | The second subexpression is the version string.") | ||
| 327 | |||
| 328 | (defun package-version-join (vlist) | 322 | (defun package-version-join (vlist) |
| 329 | "Return the version string corresponding to the list VLIST. | 323 | "Return the version string corresponding to the list VLIST. |
| 330 | This is, approximately, the inverse of `version-to-list'. | 324 | This is, approximately, the inverse of `version-to-list'. |
| @@ -357,7 +351,7 @@ This is, approximately, the inverse of `version-to-list'. | |||
| 357 | (defun package-strip-version (dirname) | 351 | (defun package-strip-version (dirname) |
| 358 | "Strip the version from a combined package name and version. | 352 | "Strip the version from a combined package name and version. |
| 359 | E.g., if given \"quux-23.0\", will return \"quux\"" | 353 | E.g., if given \"quux-23.0\", will return \"quux\"" |
| 360 | (if (string-match package-subdirectory-regexp dirname) | 354 | (if (string-match (concat "\\`" package-subdirectory-regexp "\\'") dirname) |
| 361 | (match-string 1 dirname))) | 355 | (match-string 1 dirname))) |
| 362 | 356 | ||
| 363 | (defun package-load-descriptor (dir package) | 357 | (defun package-load-descriptor (dir package) |
| @@ -382,12 +376,13 @@ In each valid package subdirectory, this function loads the | |||
| 382 | description file containing a call to `define-package', which | 376 | description file containing a call to `define-package', which |
| 383 | updates `package-alist' and `package-obsolete-alist'." | 377 | updates `package-alist' and `package-obsolete-alist'." |
| 384 | (let ((all (memq 'all package-load-list)) | 378 | (let ((all (memq 'all package-load-list)) |
| 379 | (regexp (concat "\\`" package-subdirectory-regexp "\\'")) | ||
| 385 | name version force) | 380 | name version force) |
| 386 | (dolist (dir (cons package-user-dir package-directory-list)) | 381 | (dolist (dir (cons package-user-dir package-directory-list)) |
| 387 | (when (file-directory-p dir) | 382 | (when (file-directory-p dir) |
| 388 | (dolist (subdir (directory-files dir)) | 383 | (dolist (subdir (directory-files dir)) |
| 389 | (when (and (file-directory-p (expand-file-name subdir dir)) | 384 | (when (and (file-directory-p (expand-file-name subdir dir)) |
| 390 | (string-match package-subdirectory-regexp subdir)) | 385 | (string-match regexp subdir)) |
| 391 | (setq name (intern (match-string 1 subdir)) | 386 | (setq name (intern (match-string 1 subdir)) |
| 392 | version (match-string 2 subdir) | 387 | version (match-string 2 subdir) |
| 393 | force (assq name package-load-list)) | 388 | force (assq name package-load-list)) |
| @@ -579,30 +574,29 @@ EXTRA-PROPERTIES is currently unused." | |||
| 579 | (package-autoload-ensure-default-file generated-autoload-file)) | 574 | (package-autoload-ensure-default-file generated-autoload-file)) |
| 580 | (update-directory-autoloads pkg-dir))) | 575 | (update-directory-autoloads pkg-dir))) |
| 581 | 576 | ||
| 582 | (defun package-untar-buffer () | 577 | (defvar tar-parse-info) |
| 578 | (declare-function tar-untar-buffer "tar-mode" ()) | ||
| 579 | |||
| 580 | (defun package-untar-buffer (dir) | ||
| 583 | "Untar the current buffer. | 581 | "Untar the current buffer. |
| 584 | This uses `tar-untar-buffer' if it is available. | 582 | This uses `tar-untar-buffer' from Tar mode. All files should |
| 585 | Otherwise it uses an external `tar' program. | 583 | untar into a directory named DIR; otherwise, signal an error." |
| 586 | `default-directory' should be set by the caller." | ||
| 587 | (require 'tar-mode) | 584 | (require 'tar-mode) |
| 588 | (if (fboundp 'tar-untar-buffer) | 585 | (tar-mode) |
| 589 | (progn | 586 | ;; Make sure everything extracts into DIR. |
| 590 | ;; tar-mode messes with narrowing, so we just let it have the | 587 | (let ((regexp (concat "\\`" (regexp-quote dir) "/"))) |
| 591 | ;; whole buffer to play with. | 588 | (dolist (tar-data tar-parse-info) |
| 592 | (delete-region (point-min) (point)) | 589 | (unless (string-match regexp (aref tar-data 2)) |
| 593 | (tar-mode) | 590 | (error "Package does not untar cleanly into directory %s/" dir)))) |
| 594 | (tar-untar-buffer)) | 591 | (tar-untar-buffer)) |
| 595 | ;; FIXME: check the result. | ||
| 596 | (call-process-region (point) (point-max) "tar" nil '(nil nil) nil | ||
| 597 | "xf" "-"))) | ||
| 598 | 592 | ||
| 599 | (defun package-unpack (name version) | 593 | (defun package-unpack (name version) |
| 600 | (let ((pkg-dir (expand-file-name (concat (symbol-name name) "-" version) | 594 | (let* ((dirname (concat (symbol-name name) "-" version)) |
| 601 | package-user-dir))) | 595 | (pkg-dir (expand-file-name dirname package-user-dir))) |
| 602 | (make-directory package-user-dir t) | 596 | (make-directory package-user-dir t) |
| 603 | ;; FIXME: should we delete PKG-DIR if it exists? | 597 | ;; FIXME: should we delete PKG-DIR if it exists? |
| 604 | (let* ((default-directory (file-name-as-directory package-user-dir))) | 598 | (let* ((default-directory (file-name-as-directory package-user-dir))) |
| 605 | (package-untar-buffer) | 599 | (package-untar-buffer dirname) |
| 606 | (package-generate-autoloads (symbol-name name) pkg-dir) | 600 | (package-generate-autoloads (symbol-name name) pkg-dir) |
| 607 | (let ((load-path (cons pkg-dir load-path))) | 601 | (let ((load-path (cons pkg-dir load-path))) |
| 608 | (byte-recompile-directory pkg-dir 0 t))))) | 602 | (byte-recompile-directory pkg-dir 0 t))))) |
| @@ -942,7 +936,8 @@ FILE is the name of the tar file to examine. | |||
| 942 | The return result is a vector like `package-buffer-info'." | 936 | The return result is a vector like `package-buffer-info'." |
| 943 | (let ((default-directory (file-name-directory file)) | 937 | (let ((default-directory (file-name-directory file)) |
| 944 | (file (file-name-nondirectory file))) | 938 | (file (file-name-nondirectory file))) |
| 945 | (unless (string-match "^\\(.+\\)-\\([0-9.]+\\)\\.tar$" file) | 939 | (unless (string-match (concat "\\`" package-subdirectory-regexp "\\.tar\\'") |
| 940 | file) | ||
| 946 | (error "Invalid package name `%s'" file)) | 941 | (error "Invalid package name `%s'" file)) |
| 947 | (let* ((pkg-name (match-string-no-properties 1 file)) | 942 | (let* ((pkg-name (match-string-no-properties 1 file)) |
| 948 | (pkg-version (match-string-no-properties 2 file)) | 943 | (pkg-version (match-string-no-properties 2 file)) |
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 97862afb678..fffe09a84a5 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -567,18 +567,12 @@ You can change the color sort order by customizing `list-colors-sort'." | |||
| 567 | (with-help-window buffer-name | 567 | (with-help-window buffer-name |
| 568 | (with-current-buffer standard-output | 568 | (with-current-buffer standard-output |
| 569 | (erase-buffer) | 569 | (erase-buffer) |
| 570 | (list-colors-print list callback) | ||
| 571 | (set-buffer-modified-p nil) | ||
| 570 | (setq truncate-lines t))) | 572 | (setq truncate-lines t))) |
| 571 | (let ((buf (get-buffer buffer-name)) | 573 | (when callback |
| 572 | (inhibit-read-only t)) | 574 | (pop-to-buffer buffer-name) |
| 573 | ;; Display buffer before generating content, to allow | 575 | (message "Click on a color to select it."))) |
| 574 | ;; `list-colors-print' to get the right window-width. | ||
| 575 | (with-selected-window (or (get-buffer-window buf t) (selected-window)) | ||
| 576 | (with-current-buffer buf | ||
| 577 | (list-colors-print list callback) | ||
| 578 | (set-buffer-modified-p nil))) | ||
| 579 | (when callback | ||
| 580 | (pop-to-buffer buf) | ||
| 581 | (message "Click on a color to select it.")))) | ||
| 582 | 576 | ||
| 583 | (defun list-colors-print (list &optional callback) | 577 | (defun list-colors-print (list &optional callback) |
| 584 | (let ((callback-fn | 578 | (let ((callback-fn |
| @@ -595,30 +589,19 @@ You can change the color sort order by customizing `list-colors-sort'." | |||
| 595 | (let* ((opoint (point)) | 589 | (let* ((opoint (point)) |
| 596 | (color-values (color-values (car color))) | 590 | (color-values (color-values (car color))) |
| 597 | (light-p (>= (apply 'max color-values) | 591 | (light-p (>= (apply 'max color-values) |
| 598 | (* (car (color-values "white")) .5))) | 592 | (* (car (color-values "white")) .5)))) |
| 599 | (max-len (max (- (window-width) 33) 20))) | ||
| 600 | (insert (car color)) | 593 | (insert (car color)) |
| 601 | (indent-to 22) | 594 | (indent-to 22) |
| 602 | (put-text-property opoint (point) 'face `(:background ,(car color))) | 595 | (put-text-property opoint (point) 'face `(:background ,(car color))) |
| 603 | (put-text-property | 596 | (put-text-property |
| 604 | (prog1 (point) | 597 | (prog1 (point) |
| 605 | (insert " ") | 598 | (insert " ") |
| 606 | (if (cdr color) | 599 | ;; Insert all color names. |
| 607 | ;; Insert as many color names as possible, fitting max-len. | 600 | (insert (mapconcat 'identity color ","))) |
| 608 | (let ((names (list (car color))) | ||
| 609 | (others (cdr color)) | ||
| 610 | (len (length (car color))) | ||
| 611 | newlen) | ||
| 612 | (while (and others | ||
| 613 | (< (setq newlen (+ len 2 (length (car others)))) | ||
| 614 | max-len)) | ||
| 615 | (setq len newlen) | ||
| 616 | (push (pop others) names)) | ||
| 617 | (insert (mapconcat 'identity (nreverse names) ", "))) | ||
| 618 | (insert (car color)))) | ||
| 619 | (point) | 601 | (point) |
| 620 | 'face (list :foreground (car color))) | 602 | 'face (list :foreground (car color))) |
| 621 | (indent-to (max (- (window-width) 8) 44)) | 603 | (insert (propertize " " 'display '(space :align-to (- right 9)))) |
| 604 | (insert " ") | ||
| 622 | (insert (propertize | 605 | (insert (propertize |
| 623 | (apply 'format "#%02x%02x%02x" | 606 | (apply 'format "#%02x%02x%02x" |
| 624 | (mapcar (lambda (c) (lsh c -8)) | 607 | (mapcar (lambda (c) (lsh c -8)) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index b22ed7397af..7eca03bd93b 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,33 @@ | |||
| 1 | 2011-03-18 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p. | ||
| 4 | (gnus-buffer-live-p): Check that buffer is not nil. | ||
| 5 | |||
| 6 | 2011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 7 | |||
| 8 | * gnus-art.el: Require mouse, which the build bot seems to say is | ||
| 9 | needed. | ||
| 10 | |||
| 11 | * gravatar.el (gravatar-retrieve-synchronously): Use `url-retrieve' on | ||
| 12 | XEmacs, since it doesn't have url-retrieve-synchronously. | ||
| 13 | |||
| 14 | 2011-03-17 Antoine Levitt <antoine.levitt@gmail.com> | ||
| 15 | |||
| 16 | * gnus-group.el (gnus-group-list-ticked): New function. | ||
| 17 | (gnus-group-make-menu-bar): Provide a menu entry for it. | ||
| 18 | (gnus-group-list-map): Provide a binding for it. | ||
| 19 | |||
| 20 | 2011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 21 | |||
| 22 | * shr.el (shr-visit-file): New command. | ||
| 23 | |||
| 24 | * nnimap.el (nnimap-fetch-inbox): Rewrite slightly last patch. | ||
| 25 | |||
| 26 | 2011-03-17 Bjørn Mork <bjorn@mork.no> | ||
| 27 | |||
| 28 | * nnimap.el (nnimap-fetch-inbox): Don't download bodies on ver4-capable | ||
| 29 | servers. | ||
| 30 | |||
| 1 | 2011-03-16 Julien Danjou <julien@danjou.info> | 31 | 2011-03-16 Julien Danjou <julien@danjou.info> |
| 2 | 32 | ||
| 3 | * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are | 33 | * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index b994a2839bc..7c7e0531926 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -44,6 +44,7 @@ | |||
| 44 | (require 'wid-edit) | 44 | (require 'wid-edit) |
| 45 | (require 'mm-uu) | 45 | (require 'mm-uu) |
| 46 | (require 'message) | 46 | (require 'message) |
| 47 | (require 'mouse) | ||
| 47 | 48 | ||
| 48 | (autoload 'gnus-msg-mail "gnus-msg" nil t) | 49 | (autoload 'gnus-msg-mail "gnus-msg" nil t) |
| 49 | (autoload 'gnus-button-mailto "gnus-msg") | 50 | (autoload 'gnus-button-mailto "gnus-msg") |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index e928811b558..c265538e19c 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -697,7 +697,8 @@ simple manner.") | |||
| 697 | "M" gnus-group-list-all-matching | 697 | "M" gnus-group-list-all-matching |
| 698 | "l" gnus-group-list-level | 698 | "l" gnus-group-list-level |
| 699 | "c" gnus-group-list-cached | 699 | "c" gnus-group-list-cached |
| 700 | "?" gnus-group-list-dormant) | 700 | "?" gnus-group-list-dormant |
| 701 | "!" gnus-group-list-ticked) | ||
| 701 | 702 | ||
| 702 | (gnus-define-keys (gnus-group-list-limit-map "/" gnus-group-list-map) | 703 | (gnus-define-keys (gnus-group-list-limit-map "/" gnus-group-list-map) |
| 703 | "k" gnus-group-list-limit | 704 | "k" gnus-group-list-limit |
| @@ -849,7 +850,8 @@ simple manner.") | |||
| 849 | ["List all groups matching..." gnus-group-list-all-matching t] | 850 | ["List all groups matching..." gnus-group-list-all-matching t] |
| 850 | ["List active file" gnus-group-list-active t] | 851 | ["List active file" gnus-group-list-active t] |
| 851 | ["List groups with cached" gnus-group-list-cached t] | 852 | ["List groups with cached" gnus-group-list-cached t] |
| 852 | ["List groups with dormant" gnus-group-list-dormant t]) | 853 | ["List groups with dormant" gnus-group-list-dormant t] |
| 854 | ["List groups with ticked" gnus-group-list-ticked t]) | ||
| 853 | ("Sort" | 855 | ("Sort" |
| 854 | ["Default sort" gnus-group-sort-groups t] | 856 | ["Default sort" gnus-group-sort-groups t] |
| 855 | ["Sort by method" gnus-group-sort-groups-by-method t] | 857 | ["Sort by method" gnus-group-sort-groups-by-method t] |
| @@ -4536,6 +4538,28 @@ This command may read the active file." | |||
| 4536 | (goto-char (point-min)) | 4538 | (goto-char (point-min)) |
| 4537 | (gnus-group-position-point)) | 4539 | (gnus-group-position-point)) |
| 4538 | 4540 | ||
| 4541 | (defun gnus-group-list-ticked (level &optional lowest) | ||
| 4542 | "List all groups with ticked articles. | ||
| 4543 | If the prefix LEVEL is non-nil, it should be a number that says which | ||
| 4544 | level to cut off listing groups. | ||
| 4545 | If LOWEST, don't list groups with level lower than LOWEST. | ||
| 4546 | |||
| 4547 | This command may read the active file." | ||
| 4548 | (interactive "P") | ||
| 4549 | (when level | ||
| 4550 | (setq level (prefix-numeric-value level))) | ||
| 4551 | (when (or (not level) (>= level gnus-level-zombie)) | ||
| 4552 | (gnus-cache-open)) | ||
| 4553 | (funcall gnus-group-prepare-function | ||
| 4554 | (or level gnus-level-subscribed) | ||
| 4555 | #'(lambda (info) | ||
| 4556 | (let ((marks (gnus-info-marks info))) | ||
| 4557 | (assq 'tick marks))) | ||
| 4558 | lowest | ||
| 4559 | 'ignore) | ||
| 4560 | (goto-char (point-min)) | ||
| 4561 | (gnus-group-position-point)) | ||
| 4562 | |||
| 4539 | (defun gnus-group-listed-groups () | 4563 | (defun gnus-group-listed-groups () |
| 4540 | "Return a list of listed groups." | 4564 | "Return a list of listed groups." |
| 4541 | (let (point groups) | 4565 | (let (point groups) |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 42dbd5948cf..3f66b45aaab 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -672,11 +672,9 @@ If N, return the Nth ancestor instead." | |||
| 672 | (when (string-match "\\(<[^<]+>\\)[ \t]*\\'" references) | 672 | (when (string-match "\\(<[^<]+>\\)[ \t]*\\'" references) |
| 673 | (match-string 1 references)))))) | 673 | (match-string 1 references)))))) |
| 674 | 674 | ||
| 675 | (defun gnus-buffer-live-p (buffer) | 675 | (defsubst gnus-buffer-live-p (buffer) |
| 676 | "Say whether BUFFER is alive or not." | 676 | "Say whether BUFFER is alive or not." |
| 677 | (and buffer | 677 | (and buffer (buffer-live-p (get-buffer buffer)))) |
| 678 | (get-buffer buffer) | ||
| 679 | (buffer-name (get-buffer buffer)))) | ||
| 680 | 678 | ||
| 681 | (defun gnus-horizontal-recenter () | 679 | (defun gnus-horizontal-recenter () |
| 682 | "Recenter the current buffer horizontally." | 680 | "Recenter the current buffer horizontally." |
diff --git a/lisp/gnus/gravatar.el b/lisp/gnus/gravatar.el index 0c97080d847..4b0c9a16283 100644 --- a/lisp/gnus/gravatar.el +++ b/lisp/gnus/gravatar.el | |||
| @@ -129,8 +129,10 @@ You can provide a list of argument to pass to CB in CBARGS." | |||
| 129 | "Retrieve MAIL-ADDRESS gravatar and returns it." | 129 | "Retrieve MAIL-ADDRESS gravatar and returns it." |
| 130 | (let ((url (gravatar-build-url mail-address))) | 130 | (let ((url (gravatar-build-url mail-address))) |
| 131 | (if (gravatar-cache-expired url) | 131 | (if (gravatar-cache-expired url) |
| 132 | (with-current-buffer (url-retrieve-synchronously url) | 132 | (with-current-buffer (if (featurep 'xemacs) |
| 133 | (when gravatar-automatic-caching | 133 | (url-retrieve url) |
| 134 | (url-retrieve-synchronously url)) | ||
| 135 | (when gravatar-automatic-caching | ||
| 134 | (url-store-in-cache (current-buffer))) | 136 | (url-store-in-cache (current-buffer))) |
| 135 | (let ((data (gravatar-data->image))) | 137 | (let ((data (gravatar-data->image))) |
| 136 | (kill-buffer (current-buffer)) | 138 | (kill-buffer (current-buffer)) |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index e0804f81e2e..bcbe7b678d5 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1762,11 +1762,15 @@ textual parts.") | |||
| 1762 | (format "(UID %s%s)" | 1762 | (format "(UID %s%s)" |
| 1763 | (format | 1763 | (format |
| 1764 | (if (nnimap-ver4-p) | 1764 | (if (nnimap-ver4-p) |
| 1765 | "BODY.PEEK[HEADER] BODY.PEEK" | 1765 | "BODY.PEEK" |
| 1766 | "RFC822.PEEK")) | 1766 | "RFC822.PEEK")) |
| 1767 | (if nnimap-split-download-body-default | 1767 | (cond |
| 1768 | "[]" | 1768 | (nnimap-split-download-body-default |
| 1769 | "[1]"))) | 1769 | "[]") |
| 1770 | ((nnimap-ver4-p) | ||
| 1771 | "[HEADER]") | ||
| 1772 | (t | ||
| 1773 | "[1]")))) | ||
| 1770 | t)) | 1774 | t)) |
| 1771 | 1775 | ||
| 1772 | (defun nnimap-split-incoming-mail () | 1776 | (defun nnimap-split-incoming-mail () |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index c9c5bd5ff1c..113137a0046 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -113,6 +113,15 @@ cid: URL as the argument.") | |||
| 113 | 113 | ||
| 114 | ;; Public functions and commands. | 114 | ;; Public functions and commands. |
| 115 | 115 | ||
| 116 | (defun shr-visit-file (file) | ||
| 117 | (interactive "fHTML file name: ") | ||
| 118 | (pop-to-buffer "*html*") | ||
| 119 | (erase-buffer) | ||
| 120 | (shr-insert-document | ||
| 121 | (with-temp-buffer | ||
| 122 | (insert-file-contents file) | ||
| 123 | (libxml-parse-html-region (point-min) (point-max))))) | ||
| 124 | |||
| 116 | ;;;###autoload | 125 | ;;;###autoload |
| 117 | (defun shr-insert-document (dom) | 126 | (defun shr-insert-document (dom) |
| 118 | (setq shr-content-cache nil) | 127 | (setq shr-content-cache nil) |
diff --git a/lisp/ido.el b/lisp/ido.el index 2e67e367a8f..2a5c7cf2f0e 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1983,7 +1983,7 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 1983 | (setq ido-exit nil) | 1983 | (setq ido-exit nil) |
| 1984 | (setq ido-final-text | 1984 | (setq ido-final-text |
| 1985 | (catch 'ido | 1985 | (catch 'ido |
| 1986 | (completing-read | 1986 | (completing-read-default |
| 1987 | (ido-make-prompt item prompt) | 1987 | (ido-make-prompt item prompt) |
| 1988 | '(("dummy" . 1)) nil nil ; table predicate require-match | 1988 | '(("dummy" . 1)) nil nil ; table predicate require-match |
| 1989 | (prog1 ido-text-init (setq ido-text-init nil)) ;initial-contents | 1989 | (prog1 ido-text-init (setq ido-text-init nil)) ;initial-contents |
| @@ -4740,13 +4740,13 @@ See `read-directory-name' for additional parameters." | |||
| 4740 | (concat ido-current-directory filename))))) | 4740 | (concat ido-current-directory filename))))) |
| 4741 | 4741 | ||
| 4742 | ;;;###autoload | 4742 | ;;;###autoload |
| 4743 | (defun ido-completing-read (prompt choices &optional predicate require-match initial-input hist def) | 4743 | (defun ido-completing-read (prompt choices &optional predicate require-match initial-input hist def inherit-input-method) |
| 4744 | "Ido replacement for the built-in `completing-read'. | 4744 | "Ido replacement for the built-in `completing-read'. |
| 4745 | Read a string in the minibuffer with ido-style completion. | 4745 | Read a string in the minibuffer with ido-style completion. |
| 4746 | PROMPT is a string to prompt with; normally it ends in a colon and a space. | 4746 | PROMPT is a string to prompt with; normally it ends in a colon and a space. |
| 4747 | CHOICES is a list of strings which are the possible completions. | 4747 | CHOICES is a list of strings which are the possible completions. |
| 4748 | PREDICATE is currently ignored; it is included to be compatible | 4748 | PREDICATE and INHERIT-INPUT-METHOD is currently ignored; it is included |
| 4749 | with `completing-read'. | 4749 | to be compatible with `completing-read'. |
| 4750 | If REQUIRE-MATCH is non-nil, the user is not allowed to exit unless | 4750 | If REQUIRE-MATCH is non-nil, the user is not allowed to exit unless |
| 4751 | the input is (or completes to) an element of CHOICES or is null. | 4751 | the input is (or completes to) an element of CHOICES or is null. |
| 4752 | If the input is null, `ido-completing-read' returns DEF, or an empty | 4752 | If the input is null, `ido-completing-read' returns DEF, or an empty |
diff --git a/lisp/info.el b/lisp/info.el index bc2062e72b2..fb753659737 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -594,15 +594,15 @@ in `Info-file-supports-index-cookies-list'." | |||
| 594 | (defun info-initialize () | 594 | (defun info-initialize () |
| 595 | "Initialize `Info-directory-list', if that hasn't been done yet." | 595 | "Initialize `Info-directory-list', if that hasn't been done yet." |
| 596 | (unless Info-directory-list | 596 | (unless Info-directory-list |
| 597 | (let ((path (getenv "INFOPATH"))) | 597 | (let ((path (getenv "INFOPATH")) |
| 598 | (sep (regexp-quote path-separator))) | ||
| 598 | (setq Info-directory-list | 599 | (setq Info-directory-list |
| 599 | (prune-directory-list | 600 | (prune-directory-list |
| 600 | (if path | 601 | (if path |
| 601 | (if (string-match ":\\'" path) | 602 | (if (string-match-p (concat sep "\\'") path) |
| 602 | (append (split-string (substring path 0 -1) | 603 | (append (split-string (substring path 0 -1) sep) |
| 603 | (regexp-quote path-separator)) | ||
| 604 | (Info-default-dirs)) | 604 | (Info-default-dirs)) |
| 605 | (split-string path (regexp-quote path-separator))) | 605 | (split-string path sep)) |
| 606 | (Info-default-dirs))))))) | 606 | (Info-default-dirs))))))) |
| 607 | 607 | ||
| 608 | ;;;###autoload | 608 | ;;;###autoload |
diff --git a/lisp/startup.el b/lisp/startup.el index 65b1a013c21..e8e85a41c77 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -392,6 +392,15 @@ Warning Warning!!! Pure space overflow !!!Warning Warning | |||
| 392 | :type 'directory | 392 | :type 'directory |
| 393 | :initialize 'custom-initialize-delay) | 393 | :initialize 'custom-initialize-delay) |
| 394 | 394 | ||
| 395 | (defconst package-subdirectory-regexp | ||
| 396 | "\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\)[0-9]+\\)*\\)" | ||
| 397 | "Regular expression matching the name of a package subdirectory. | ||
| 398 | The first subexpression is the package name. | ||
| 399 | The second subexpression is the version string. | ||
| 400 | |||
| 401 | The regexp should not contain a starting \"\\`\" or a trailing | ||
| 402 | \"\\'\"; those are added automatically by callers.") | ||
| 403 | |||
| 395 | (defun normal-top-level-add-subdirs-to-load-path () | 404 | (defun normal-top-level-add-subdirs-to-load-path () |
| 396 | "Add all subdirectories of current directory to `load-path'. | 405 | "Add all subdirectories of current directory to `load-path'. |
| 397 | More precisely, this uses only the subdirectories whose names | 406 | More precisely, this uses only the subdirectories whose names |
| @@ -1194,9 +1203,9 @@ the `--debug-init' option to view a complete error backtrace." | |||
| 1194 | (when (file-directory-p dir) | 1203 | (when (file-directory-p dir) |
| 1195 | (dolist (subdir (directory-files dir)) | 1204 | (dolist (subdir (directory-files dir)) |
| 1196 | (when (and (file-directory-p (expand-file-name subdir dir)) | 1205 | (when (and (file-directory-p (expand-file-name subdir dir)) |
| 1197 | ;; package-subdirectory-regexp from package.el | 1206 | (string-match |
| 1198 | (string-match "\\`\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\)[0-9]+\\)*\\)\\'" | 1207 | (concat "\\`" package-subdirectory-regexp "\\'") |
| 1199 | subdir)) | 1208 | subdir)) |
| 1200 | (throw 'package-dir-found t))))))) | 1209 | (throw 'package-dir-found t))))))) |
| 1201 | (package-initialize)) | 1210 | (package-initialize)) |
| 1202 | 1211 | ||
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 9ccb37f3a55..72f415a9b94 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -122,8 +122,7 @@ when editing big diffs)." | |||
| 122 | ("\C-m" . diff-goto-source) | 122 | ("\C-m" . diff-goto-source) |
| 123 | ([mouse-2] . diff-goto-source) | 123 | ([mouse-2] . diff-goto-source) |
| 124 | ;; From XEmacs' diff-mode. | 124 | ;; From XEmacs' diff-mode. |
| 125 | ;; Standard M-w is useful, so don't change M-W. | 125 | ("W" . widen) |
| 126 | ;;("W" . widen) | ||
| 127 | ;;("." . diff-goto-source) ;display-buffer | 126 | ;;("." . diff-goto-source) ;display-buffer |
| 128 | ;;("f" . diff-goto-source) ;find-file | 127 | ;;("f" . diff-goto-source) ;find-file |
| 129 | ("o" . diff-goto-source) ;other-window | 128 | ("o" . diff-goto-source) ;other-window |
| @@ -135,17 +134,21 @@ when editing big diffs)." | |||
| 135 | ;; Not useful if you have to metafy them. | 134 | ;; Not useful if you have to metafy them. |
| 136 | ;;(" " . scroll-up) | 135 | ;;(" " . scroll-up) |
| 137 | ;;("\177" . scroll-down) | 136 | ;;("\177" . scroll-down) |
| 138 | ;; Standard M-a is useful, so don't change M-A. | 137 | ("A" . diff-ediff-patch) |
| 139 | ;;("A" . diff-ediff-patch) | 138 | ("r" . diff-restrict-view) |
| 140 | ;; Standard M-r is useful, so don't change M-r or M-R. | 139 | ("R" . diff-reverse-direction)) |
| 141 | ;;("r" . diff-restrict-view) | ||
| 142 | ;;("R" . diff-reverse-direction) | ||
| 143 | ) | ||
| 144 | "Basic keymap for `diff-mode', bound to various prefix keys." | 140 | "Basic keymap for `diff-mode', bound to various prefix keys." |
| 145 | :inherit special-mode-map) | 141 | :inherit special-mode-map) |
| 146 | 142 | ||
| 147 | (easy-mmode-defmap diff-mode-map | 143 | (easy-mmode-defmap diff-mode-map |
| 148 | `(("\e" . ,diff-mode-shared-map) | 144 | `(("\e" . ,(let ((map (make-sparse-keymap))) |
| 145 | ;; We want to inherit most bindings from diff-mode-shared-map, | ||
| 146 | ;; but not all since they may hide useful M-<foo> global | ||
| 147 | ;; bindings when editing. | ||
| 148 | (set-keymap-parent map diff-mode-shared-map) | ||
| 149 | (dolist (key '("A" "r" "R" "g" "q" "W")) | ||
| 150 | (define-key map key nil)) | ||
| 151 | map)) | ||
| 149 | ;; From compilation-minor-mode. | 152 | ;; From compilation-minor-mode. |
| 150 | ("\C-c\C-c" . diff-goto-source) | 153 | ("\C-c\C-c" . diff-goto-source) |
| 151 | ;; By analogy with the global C-x 4 a binding. | 154 | ;; By analogy with the global C-x 4 a binding. |
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el index 601b6b1e597..5435a840ac9 100644 --- a/lisp/vc/emerge.el +++ b/lisp/vc/emerge.el | |||
| @@ -3176,21 +3176,26 @@ See also `auto-save-file-name-p'." | |||
| 3176 | 3176 | ||
| 3177 | ;; Metacharacters that have to be protected from the shell when executing | 3177 | ;; Metacharacters that have to be protected from the shell when executing |
| 3178 | ;; a diff/diff3 command. | 3178 | ;; a diff/diff3 command. |
| 3179 | (defcustom emerge-metachars "[ \t\n!\"#$&'()*;<=>?[\\^`{|~]" | 3179 | (defcustom emerge-metachars |
| 3180 | "Characters that must be quoted with \\ when used in a shell command line. | 3180 | (if (memq system-type '(ms-dos windows-nt)) |
| 3181 | "[ \t\"<>|?*^&=]" | ||
| 3182 | "[ \t\n!\"#$&'()*;<=>?[\\^`{|~]") | ||
| 3183 | "Characters that must be quoted when used in a shell command line. | ||
| 3181 | More precisely, a [...] regexp to match any one such character." | 3184 | More precisely, a [...] regexp to match any one such character." |
| 3182 | :type 'regexp | 3185 | :type 'regexp |
| 3183 | :group 'emerge) | 3186 | :group 'emerge) |
| 3184 | 3187 | ||
| 3185 | ;; Quote metacharacters (using \) when executing a diff/diff3 command. | 3188 | ;; Quote metacharacters (using \) when executing a diff/diff3 command. |
| 3186 | (defun emerge-protect-metachars (s) | 3189 | (defun emerge-protect-metachars (s) |
| 3187 | (let ((limit 0)) | 3190 | (if (memq system-type '(ms-dos windows-nt)) |
| 3188 | (while (string-match emerge-metachars s limit) | 3191 | (shell-quote-argument s) |
| 3189 | (setq s (concat (substring s 0 (match-beginning 0)) | 3192 | (let ((limit 0)) |
| 3190 | "\\" | 3193 | (while (string-match emerge-metachars s limit) |
| 3191 | (substring s (match-beginning 0)))) | 3194 | (setq s (concat (substring s 0 (match-beginning 0)) |
| 3192 | (setq limit (1+ (match-end 0))))) | 3195 | "\\" |
| 3193 | s) | 3196 | (substring s (match-beginning 0)))) |
| 3197 | (setq limit (1+ (match-end 0))))) | ||
| 3198 | s)) | ||
| 3194 | 3199 | ||
| 3195 | (provide 'emerge) | 3200 | (provide 'emerge) |
| 3196 | 3201 | ||
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4 index 7f8b5a79070..af3cae75abb 100644 --- a/m4/gl-comp.m4 +++ b/m4/gl-comp.m4 | |||
| @@ -50,6 +50,7 @@ AC_DEFUN([gl_EARLY], | |||
| 50 | # Code from module stdbool: | 50 | # Code from module stdbool: |
| 51 | # Code from module stddef: | 51 | # Code from module stddef: |
| 52 | # Code from module stdint: | 52 | # Code from module stdint: |
| 53 | # Code from module stdio: | ||
| 53 | # Code from module stdlib: | 54 | # Code from module stdlib: |
| 54 | # Code from module strftime: | 55 | # Code from module strftime: |
| 55 | # Code from module symlink: | 56 | # Code from module symlink: |
| @@ -123,6 +124,8 @@ AC_DEFUN([gl_INIT], | |||
| 123 | gl_STDDEF_H | 124 | gl_STDDEF_H |
| 124 | # Code from module stdint: | 125 | # Code from module stdint: |
| 125 | gl_STDINT_H | 126 | gl_STDINT_H |
| 127 | # Code from module stdio: | ||
| 128 | gl_STDIO_H | ||
| 126 | # Code from module stdlib: | 129 | # Code from module stdlib: |
| 127 | gl_STDLIB_H | 130 | gl_STDLIB_H |
| 128 | # Code from module strftime: | 131 | # Code from module strftime: |
| @@ -308,6 +311,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 308 | lib/stdbool.in.h | 311 | lib/stdbool.in.h |
| 309 | lib/stddef.in.h | 312 | lib/stddef.in.h |
| 310 | lib/stdint.in.h | 313 | lib/stdint.in.h |
| 314 | lib/stdio.in.h | ||
| 311 | lib/stdlib.in.h | 315 | lib/stdlib.in.h |
| 312 | lib/strftime.c | 316 | lib/strftime.c |
| 313 | lib/strftime.h | 317 | lib/strftime.h |
| @@ -336,6 +340,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 336 | m4/stdbool.m4 | 340 | m4/stdbool.m4 |
| 337 | m4/stddef_h.m4 | 341 | m4/stddef_h.m4 |
| 338 | m4/stdint.m4 | 342 | m4/stdint.m4 |
| 343 | m4/stdio_h.m4 | ||
| 339 | m4/stdlib_h.m4 | 344 | m4/stdlib_h.m4 |
| 340 | m4/strftime.m4 | 345 | m4/strftime.m4 |
| 341 | m4/symlink.m4 | 346 | m4/symlink.m4 |
diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 new file mode 100644 index 00000000000..7f3ae56295f --- /dev/null +++ b/m4/stdio_h.m4 | |||
| @@ -0,0 +1,140 @@ | |||
| 1 | # stdio_h.m4 serial 33 | ||
| 2 | dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | ||
| 4 | dnl gives unlimited permission to copy and/or distribute it, | ||
| 5 | dnl with or without modifications, as long as this notice is preserved. | ||
| 6 | |||
| 7 | AC_DEFUN([gl_STDIO_H], | ||
| 8 | [ | ||
| 9 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) | ||
| 10 | AC_REQUIRE([AC_C_INLINE]) | ||
| 11 | gl_NEXT_HEADERS([stdio.h]) | ||
| 12 | dnl No need to create extra modules for these functions. Everyone who uses | ||
| 13 | dnl <stdio.h> likely needs them. | ||
| 14 | GNULIB_FPRINTF=1 | ||
| 15 | GNULIB_PRINTF=1 | ||
| 16 | GNULIB_VFPRINTF=1 | ||
| 17 | GNULIB_VPRINTF=1 | ||
| 18 | GNULIB_FPUTC=1 | ||
| 19 | GNULIB_PUTC=1 | ||
| 20 | GNULIB_PUTCHAR=1 | ||
| 21 | GNULIB_FPUTS=1 | ||
| 22 | GNULIB_PUTS=1 | ||
| 23 | GNULIB_FWRITE=1 | ||
| 24 | dnl This ifdef is just an optimization, to avoid performing a configure | ||
| 25 | dnl check whose result is not used. It does not make the test of | ||
| 26 | dnl GNULIB_STDIO_H_SIGPIPE or GNULIB_SIGPIPE redundant. | ||
| 27 | m4_ifdef([gl_SIGNAL_SIGPIPE], [ | ||
| 28 | gl_SIGNAL_SIGPIPE | ||
| 29 | if test $gl_cv_header_signal_h_SIGPIPE != yes; then | ||
| 30 | REPLACE_STDIO_WRITE_FUNCS=1 | ||
| 31 | AC_LIBOBJ([stdio-write]) | ||
| 32 | fi | ||
| 33 | ]) | ||
| 34 | |||
| 35 | dnl Check for declarations of anything we want to poison if the | ||
| 36 | dnl corresponding gnulib module is not in use, and which is not | ||
| 37 | dnl guaranteed by C89. | ||
| 38 | gl_WARN_ON_USE_PREPARE([[#include <stdio.h> | ||
| 39 | ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat | ||
| 40 | snprintf tmpfile vdprintf vsnprintf]) | ||
| 41 | ]) | ||
| 42 | |||
| 43 | AC_DEFUN([gl_STDIO_MODULE_INDICATOR], | ||
| 44 | [ | ||
| 45 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | ||
| 46 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) | ||
| 47 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) | ||
| 48 | dnl Define it also as a C macro, for the benefit of the unit tests. | ||
| 49 | gl_MODULE_INDICATOR_FOR_TESTS([$1]) | ||
| 50 | ]) | ||
| 51 | |||
| 52 | AC_DEFUN([gl_STDIO_H_DEFAULTS], | ||
| 53 | [ | ||
| 54 | GNULIB_DPRINTF=0; AC_SUBST([GNULIB_DPRINTF]) | ||
| 55 | GNULIB_FCLOSE=0; AC_SUBST([GNULIB_FCLOSE]) | ||
| 56 | GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH]) | ||
| 57 | GNULIB_FOPEN=0; AC_SUBST([GNULIB_FOPEN]) | ||
| 58 | GNULIB_FPRINTF=0; AC_SUBST([GNULIB_FPRINTF]) | ||
| 59 | GNULIB_FPRINTF_POSIX=0; AC_SUBST([GNULIB_FPRINTF_POSIX]) | ||
| 60 | GNULIB_FPURGE=0; AC_SUBST([GNULIB_FPURGE]) | ||
| 61 | GNULIB_FPUTC=0; AC_SUBST([GNULIB_FPUTC]) | ||
| 62 | GNULIB_FPUTS=0; AC_SUBST([GNULIB_FPUTS]) | ||
| 63 | GNULIB_FREOPEN=0; AC_SUBST([GNULIB_FREOPEN]) | ||
| 64 | GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK]) | ||
| 65 | GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO]) | ||
| 66 | GNULIB_FTELL=0; AC_SUBST([GNULIB_FTELL]) | ||
| 67 | GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO]) | ||
| 68 | GNULIB_FWRITE=0; AC_SUBST([GNULIB_FWRITE]) | ||
| 69 | GNULIB_GETDELIM=0; AC_SUBST([GNULIB_GETDELIM]) | ||
| 70 | GNULIB_GETLINE=0; AC_SUBST([GNULIB_GETLINE]) | ||
| 71 | GNULIB_OBSTACK_PRINTF=0; AC_SUBST([GNULIB_OBSTACK_PRINTF]) | ||
| 72 | GNULIB_OBSTACK_PRINTF_POSIX=0; AC_SUBST([GNULIB_OBSTACK_PRINTF_POSIX]) | ||
| 73 | GNULIB_PERROR=0; AC_SUBST([GNULIB_PERROR]) | ||
| 74 | GNULIB_POPEN=0; AC_SUBST([GNULIB_POPEN]) | ||
| 75 | GNULIB_PRINTF=0; AC_SUBST([GNULIB_PRINTF]) | ||
| 76 | GNULIB_PRINTF_POSIX=0; AC_SUBST([GNULIB_PRINTF_POSIX]) | ||
| 77 | GNULIB_PUTC=0; AC_SUBST([GNULIB_PUTC]) | ||
| 78 | GNULIB_PUTCHAR=0; AC_SUBST([GNULIB_PUTCHAR]) | ||
| 79 | GNULIB_PUTS=0; AC_SUBST([GNULIB_PUTS]) | ||
| 80 | GNULIB_REMOVE=0; AC_SUBST([GNULIB_REMOVE]) | ||
| 81 | GNULIB_RENAME=0; AC_SUBST([GNULIB_RENAME]) | ||
| 82 | GNULIB_RENAMEAT=0; AC_SUBST([GNULIB_RENAMEAT]) | ||
| 83 | GNULIB_SNPRINTF=0; AC_SUBST([GNULIB_SNPRINTF]) | ||
| 84 | GNULIB_SPRINTF_POSIX=0; AC_SUBST([GNULIB_SPRINTF_POSIX]) | ||
| 85 | GNULIB_STDIO_H_SIGPIPE=0; AC_SUBST([GNULIB_STDIO_H_SIGPIPE]) | ||
| 86 | GNULIB_TMPFILE=0; AC_SUBST([GNULIB_TMPFILE]) | ||
| 87 | GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF]) | ||
| 88 | GNULIB_VDPRINTF=0; AC_SUBST([GNULIB_VDPRINTF]) | ||
| 89 | GNULIB_VFPRINTF=0; AC_SUBST([GNULIB_VFPRINTF]) | ||
| 90 | GNULIB_VFPRINTF_POSIX=0; AC_SUBST([GNULIB_VFPRINTF_POSIX]) | ||
| 91 | GNULIB_VPRINTF=0; AC_SUBST([GNULIB_VPRINTF]) | ||
| 92 | GNULIB_VPRINTF_POSIX=0; AC_SUBST([GNULIB_VPRINTF_POSIX]) | ||
| 93 | GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF]) | ||
| 94 | GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX]) | ||
| 95 | dnl Assume proper GNU behavior unless another module says otherwise. | ||
| 96 | HAVE_DECL_FPURGE=1; AC_SUBST([HAVE_DECL_FPURGE]) | ||
| 97 | HAVE_DECL_FSEEKO=1; AC_SUBST([HAVE_DECL_FSEEKO]) | ||
| 98 | HAVE_DECL_FTELLO=1; AC_SUBST([HAVE_DECL_FTELLO]) | ||
| 99 | HAVE_DECL_GETDELIM=1; AC_SUBST([HAVE_DECL_GETDELIM]) | ||
| 100 | HAVE_DECL_GETLINE=1; AC_SUBST([HAVE_DECL_GETLINE]) | ||
| 101 | HAVE_DECL_OBSTACK_PRINTF=1; AC_SUBST([HAVE_DECL_OBSTACK_PRINTF]) | ||
| 102 | HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF]) | ||
| 103 | HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF]) | ||
| 104 | HAVE_DPRINTF=1; AC_SUBST([HAVE_DPRINTF]) | ||
| 105 | HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) | ||
| 106 | HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) | ||
| 107 | HAVE_RENAMEAT=1; AC_SUBST([HAVE_RENAMEAT]) | ||
| 108 | HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) | ||
| 109 | HAVE_VDPRINTF=1; AC_SUBST([HAVE_VDPRINTF]) | ||
| 110 | REPLACE_DPRINTF=0; AC_SUBST([REPLACE_DPRINTF]) | ||
| 111 | REPLACE_FCLOSE=0; AC_SUBST([REPLACE_FCLOSE]) | ||
| 112 | REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) | ||
| 113 | REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN]) | ||
| 114 | REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF]) | ||
| 115 | REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE]) | ||
| 116 | REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN]) | ||
| 117 | REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK]) | ||
| 118 | REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO]) | ||
| 119 | REPLACE_FTELL=0; AC_SUBST([REPLACE_FTELL]) | ||
| 120 | REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO]) | ||
| 121 | REPLACE_GETDELIM=0; AC_SUBST([REPLACE_GETDELIM]) | ||
| 122 | REPLACE_GETLINE=0; AC_SUBST([REPLACE_GETLINE]) | ||
| 123 | REPLACE_OBSTACK_PRINTF=0; AC_SUBST([REPLACE_OBSTACK_PRINTF]) | ||
| 124 | REPLACE_PERROR=0; AC_SUBST([REPLACE_PERROR]) | ||
| 125 | REPLACE_POPEN=0; AC_SUBST([REPLACE_POPEN]) | ||
| 126 | REPLACE_PRINTF=0; AC_SUBST([REPLACE_PRINTF]) | ||
| 127 | REPLACE_REMOVE=0; AC_SUBST([REPLACE_REMOVE]) | ||
| 128 | REPLACE_RENAME=0; AC_SUBST([REPLACE_RENAME]) | ||
| 129 | REPLACE_RENAMEAT=0; AC_SUBST([REPLACE_RENAMEAT]) | ||
| 130 | REPLACE_SNPRINTF=0; AC_SUBST([REPLACE_SNPRINTF]) | ||
| 131 | REPLACE_SPRINTF=0; AC_SUBST([REPLACE_SPRINTF]) | ||
| 132 | REPLACE_STDIO_WRITE_FUNCS=0; AC_SUBST([REPLACE_STDIO_WRITE_FUNCS]) | ||
| 133 | REPLACE_TMPFILE=0; AC_SUBST([REPLACE_TMPFILE]) | ||
| 134 | REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF]) | ||
| 135 | REPLACE_VDPRINTF=0; AC_SUBST([REPLACE_VDPRINTF]) | ||
| 136 | REPLACE_VFPRINTF=0; AC_SUBST([REPLACE_VFPRINTF]) | ||
| 137 | REPLACE_VPRINTF=0; AC_SUBST([REPLACE_VPRINTF]) | ||
| 138 | REPLACE_VSNPRINTF=0; AC_SUBST([REPLACE_VSNPRINTF]) | ||
| 139 | REPLACE_VSPRINTF=0; AC_SUBST([REPLACE_VSPRINTF]) | ||
| 140 | ]) | ||
diff --git a/src/ChangeLog b/src/ChangeLog index fdf57152294..26e343ddde4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | * fileio.c (Fcopy_file): Report error if fchown or fchmod fail. | 3 | * fileio.c (Fcopy_file): Report error if fchown or fchmod fail. |
| 4 | 4 | ||
| 5 | 2011-03-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6 | |||
| 7 | * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303). | 5 | * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303). |
| 8 | 6 | ||
| 9 | * process.c (Fmake_network_process): Use socklen_t, not int, | 7 | * process.c (Fmake_network_process): Use socklen_t, not int, |
| @@ -24,8 +22,6 @@ | |||
| 24 | (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros. | 22 | (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros. |
| 25 | (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298). | 23 | (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298). |
| 26 | 24 | ||
| 27 | 2011-03-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 28 | |||
| 29 | Make tparam.h and terminfo.c consistent. | 25 | Make tparam.h and terminfo.c consistent. |
| 30 | * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include | 26 | * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include |
| 31 | tparam.h instead, since it declares them. | 27 | tparam.h instead, since it declares them. |
| @@ -61,8 +57,6 @@ | |||
| 61 | (find_automatic_composition): Mark vars as initialized, | 57 | (find_automatic_composition): Mark vars as initialized, |
| 62 | with a FIXME (Bug#8290). | 58 | with a FIXME (Bug#8290). |
| 63 | 59 | ||
| 64 | 2011-03-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 65 | |||
| 66 | character.h: Rename locals to avoid shadowing. | 60 | character.h: Rename locals to avoid shadowing. |
| 67 | * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE): | 61 | * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE): |
| 68 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE): | 62 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE): |
| @@ -101,6 +95,31 @@ | |||
| 101 | * callproc.c (call_process_cleanup): Now static. | 95 | * callproc.c (call_process_cleanup): Now static. |
| 102 | (relocate_fd): Rename locals to avoid shadowing. | 96 | (relocate_fd): Rename locals to avoid shadowing. |
| 103 | 97 | ||
| 98 | 2011-03-20 Glenn Morris <rgm@gnu.org> | ||
| 99 | |||
| 100 | * config.in: Remove file. | ||
| 101 | |||
| 102 | 2011-03-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 103 | |||
| 104 | * minibuf.c (Vcompleting_read_function): Don't declare, global variables | ||
| 105 | are now in src/globals.h. | ||
| 106 | (syms_of_minibuf): Remove spurious & from previous change. | ||
| 107 | |||
| 108 | 2011-03-20 Leo <sdl.web@gmail.com> | ||
| 109 | |||
| 110 | * minibuf.c (completing-read-function): New variable. | ||
| 111 | (completing-read-default): Rename from completing-read. | ||
| 112 | (completing-read): Call completing-read-function. | ||
| 113 | |||
| 114 | 2011-03-19 Juanma Barranquero <lekktu@gmail.com> | ||
| 115 | |||
| 116 | * xfaces.c (Fx_load_color_file): | ||
| 117 | Read color file from absolute filename (bug#8250). | ||
| 118 | |||
| 119 | 2011-03-19 Juanma Barranquero <lekktu@gmail.com> | ||
| 120 | |||
| 121 | * makefile.w32-in: Update dependencies. | ||
| 122 | |||
| 104 | 2011-03-17 Eli Zaretskii <eliz@gnu.org> | 123 | 2011-03-17 Eli Zaretskii <eliz@gnu.org> |
| 105 | 124 | ||
| 106 | * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h. | 125 | * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h. |
diff --git a/src/makefile.w32-in b/src/makefile.w32-in index 3d882b23d6b..62c40ca1f94 100644 --- a/src/makefile.w32-in +++ b/src/makefile.w32-in | |||
| @@ -221,7 +221,7 @@ GLOBAL_SOURCES = dosfns.c msdos.c \ | |||
| 221 | region-cache.c sound.c atimer.c \ | 221 | region-cache.c sound.c atimer.c \ |
| 222 | doprnt.c intervals.c textprop.c composite.c | 222 | doprnt.c intervals.c textprop.c composite.c |
| 223 | SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ | 223 | SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ |
| 224 | xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o | 224 | xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o |
| 225 | obj = $(GLOBAL_SOURCES:.c=.o) | 225 | obj = $(GLOBAL_SOURCES:.c=.o) |
| 226 | 226 | ||
| 227 | globals.h: gl-stamp | 227 | globals.h: gl-stamp |
| @@ -386,6 +386,7 @@ $(BLD)/alloc.$(O) : \ | |||
| 386 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 386 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 387 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 387 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 388 | $(LISP_H) \ | 388 | $(LISP_H) \ |
| 389 | $(PROCESS_H) \ | ||
| 389 | $(SRC)/atimer.h \ | 390 | $(SRC)/atimer.h \ |
| 390 | $(SRC)/blockinput.h \ | 391 | $(SRC)/blockinput.h \ |
| 391 | $(SRC)/buffer.h \ | 392 | $(SRC)/buffer.h \ |
| @@ -396,7 +397,6 @@ $(BLD)/alloc.$(O) : \ | |||
| 396 | $(SRC)/frame.h \ | 397 | $(SRC)/frame.h \ |
| 397 | $(SRC)/intervals.h \ | 398 | $(SRC)/intervals.h \ |
| 398 | $(SRC)/keyboard.h \ | 399 | $(SRC)/keyboard.h \ |
| 399 | $(PROCESS_H) \ | ||
| 400 | $(SRC)/puresize.h \ | 400 | $(SRC)/puresize.h \ |
| 401 | $(SRC)/syssignal.h \ | 401 | $(SRC)/syssignal.h \ |
| 402 | $(SRC)/systime.h \ | 402 | $(SRC)/systime.h \ |
| @@ -484,8 +484,10 @@ $(BLD)/callproc.$(O) : \ | |||
| 484 | $(CONFIG_H) \ | 484 | $(CONFIG_H) \ |
| 485 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 485 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 486 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | 486 | $(EMACS_ROOT)/nt/inc/sys/file.h \ |
| 487 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ | ||
| 487 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 488 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 488 | $(LISP_H) \ | 489 | $(LISP_H) \ |
| 490 | $(PROCESS_H) \ | ||
| 489 | $(SRC)/atimer.h \ | 491 | $(SRC)/atimer.h \ |
| 490 | $(SRC)/blockinput.h \ | 492 | $(SRC)/blockinput.h \ |
| 491 | $(SRC)/buffer.h \ | 493 | $(SRC)/buffer.h \ |
| @@ -497,7 +499,6 @@ $(BLD)/callproc.$(O) : \ | |||
| 497 | $(SRC)/dispextern.h \ | 499 | $(SRC)/dispextern.h \ |
| 498 | $(SRC)/epaths.h \ | 500 | $(SRC)/epaths.h \ |
| 499 | $(SRC)/frame.h \ | 501 | $(SRC)/frame.h \ |
| 500 | $(PROCESS_H) \ | ||
| 501 | $(SRC)/syssignal.h \ | 502 | $(SRC)/syssignal.h \ |
| 502 | $(SRC)/systime.h \ | 503 | $(SRC)/systime.h \ |
| 503 | $(SRC)/systty.h \ | 504 | $(SRC)/systty.h \ |
| @@ -653,6 +654,7 @@ $(BLD)/dired.$(O) : \ | |||
| 653 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 654 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 654 | $(EMACS_ROOT)/nt/inc/sys/dir.h \ | 655 | $(EMACS_ROOT)/nt/inc/sys/dir.h \ |
| 655 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 656 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 657 | $(EMACS_ROOT)/lib/filemode.h \ | ||
| 656 | $(LISP_H) \ | 658 | $(LISP_H) \ |
| 657 | $(SRC)/atimer.h \ | 659 | $(SRC)/atimer.h \ |
| 658 | $(SRC)/blockinput.h \ | 660 | $(SRC)/blockinput.h \ |
| @@ -662,7 +664,6 @@ $(BLD)/dired.$(O) : \ | |||
| 662 | $(SRC)/coding.h \ | 664 | $(SRC)/coding.h \ |
| 663 | $(SRC)/commands.h \ | 665 | $(SRC)/commands.h \ |
| 664 | $(SRC)/composite.h \ | 666 | $(SRC)/composite.h \ |
| 665 | $(EMACS_ROOT)/lib/filemode.h \ | ||
| 666 | $(SRC)/ndir.h \ | 667 | $(SRC)/ndir.h \ |
| 667 | $(SRC)/regex.h \ | 668 | $(SRC)/regex.h \ |
| 668 | $(SRC)/systime.h | 669 | $(SRC)/systime.h |
| @@ -673,6 +674,7 @@ $(BLD)/dispnew.$(O) : \ | |||
| 673 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 674 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 674 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 675 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 675 | $(LISP_H) \ | 676 | $(LISP_H) \ |
| 677 | $(PROCESS_H) \ | ||
| 676 | $(SRC)/atimer.h \ | 678 | $(SRC)/atimer.h \ |
| 677 | $(SRC)/blockinput.h \ | 679 | $(SRC)/blockinput.h \ |
| 678 | $(SRC)/buffer.h \ | 680 | $(SRC)/buffer.h \ |
| @@ -687,7 +689,6 @@ $(BLD)/dispnew.$(O) : \ | |||
| 687 | $(SRC)/indent.h \ | 689 | $(SRC)/indent.h \ |
| 688 | $(SRC)/intervals.h \ | 690 | $(SRC)/intervals.h \ |
| 689 | $(SRC)/keyboard.h \ | 691 | $(SRC)/keyboard.h \ |
| 690 | $(PROCESS_H) \ | ||
| 691 | $(SRC)/syssignal.h \ | 692 | $(SRC)/syssignal.h \ |
| 692 | $(SRC)/systime.h \ | 693 | $(SRC)/systime.h \ |
| 693 | $(SRC)/termchar.h \ | 694 | $(SRC)/termchar.h \ |
| @@ -726,8 +727,8 @@ $(BLD)/editfns.$(O) : \ | |||
| 726 | $(EMACS_ROOT)/nt/inc/pwd.h \ | 727 | $(EMACS_ROOT)/nt/inc/pwd.h \ |
| 727 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 728 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 728 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 729 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 729 | $(EMACS_ROOT)/lib/strftime.h \ | ||
| 730 | $(EMACS_ROOT)/lib/intprops.h \ | 730 | $(EMACS_ROOT)/lib/intprops.h \ |
| 731 | $(EMACS_ROOT)/lib/strftime.h \ | ||
| 731 | $(LISP_H) \ | 732 | $(LISP_H) \ |
| 732 | $(SRC)/atimer.h \ | 733 | $(SRC)/atimer.h \ |
| 733 | $(SRC)/blockinput.h \ | 734 | $(SRC)/blockinput.h \ |
| @@ -747,8 +748,10 @@ $(BLD)/emacs.$(O) : \ | |||
| 747 | $(CONFIG_H) \ | 748 | $(CONFIG_H) \ |
| 748 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 749 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 749 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | 750 | $(EMACS_ROOT)/nt/inc/sys/file.h \ |
| 751 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ | ||
| 750 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 752 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 751 | $(LISP_H) \ | 753 | $(LISP_H) \ |
| 754 | $(PROCESS_H) \ | ||
| 752 | $(SRC)/atimer.h \ | 755 | $(SRC)/atimer.h \ |
| 753 | $(SRC)/blockinput.h \ | 756 | $(SRC)/blockinput.h \ |
| 754 | $(SRC)/buffer.h \ | 757 | $(SRC)/buffer.h \ |
| @@ -757,15 +760,14 @@ $(BLD)/emacs.$(O) : \ | |||
| 757 | $(SRC)/composite.h \ | 760 | $(SRC)/composite.h \ |
| 758 | $(SRC)/dispextern.h \ | 761 | $(SRC)/dispextern.h \ |
| 759 | $(SRC)/frame.h \ | 762 | $(SRC)/frame.h \ |
| 760 | $(SRC)/gnutls.h \ | ||
| 761 | $(SRC)/intervals.h \ | 763 | $(SRC)/intervals.h \ |
| 762 | $(SRC)/keyboard.h \ | 764 | $(SRC)/keyboard.h \ |
| 763 | $(SRC)/keymap.h \ | 765 | $(SRC)/keymap.h \ |
| 764 | $(PROCESS_H) \ | ||
| 765 | $(SRC)/syssignal.h \ | 766 | $(SRC)/syssignal.h \ |
| 766 | $(SRC)/systime.h \ | 767 | $(SRC)/systime.h \ |
| 767 | $(SRC)/systty.h \ | 768 | $(SRC)/systty.h \ |
| 768 | $(SRC)/termhooks.h \ | 769 | $(SRC)/termhooks.h \ |
| 770 | $(SRC)/unexec.h \ | ||
| 769 | $(SRC)/w32.h \ | 771 | $(SRC)/w32.h \ |
| 770 | $(SRC)/w32gui.h \ | 772 | $(SRC)/w32gui.h \ |
| 771 | $(SRC)/w32heap.h \ | 773 | $(SRC)/w32heap.h \ |
| @@ -837,6 +839,7 @@ $(BLD)/fns.$(O) : \ | |||
| 837 | $(CONFIG_H) \ | 839 | $(CONFIG_H) \ |
| 838 | $(EMACS_ROOT)/nt/inc/langinfo.h \ | 840 | $(EMACS_ROOT)/nt/inc/langinfo.h \ |
| 839 | $(EMACS_ROOT)/nt/inc/nl_types.h \ | 841 | $(EMACS_ROOT)/nt/inc/nl_types.h \ |
| 842 | $(EMACS_ROOT)/nt/inc/stdint.h \ | ||
| 840 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 843 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 841 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 844 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 842 | $(EMACS_ROOT)/lib/md5.h \ | 845 | $(EMACS_ROOT)/lib/md5.h \ |
| @@ -1030,6 +1033,7 @@ $(BLD)/keyboard.$(O) : \ | |||
| 1030 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ | 1033 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ |
| 1031 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1034 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1032 | $(LISP_H) \ | 1035 | $(LISP_H) \ |
| 1036 | $(PROCESS_H) \ | ||
| 1033 | $(SRC)/atimer.h \ | 1037 | $(SRC)/atimer.h \ |
| 1034 | $(SRC)/blockinput.h \ | 1038 | $(SRC)/blockinput.h \ |
| 1035 | $(SRC)/buffer.h \ | 1039 | $(SRC)/buffer.h \ |
| @@ -1044,7 +1048,6 @@ $(BLD)/keyboard.$(O) : \ | |||
| 1044 | $(SRC)/keyboard.h \ | 1048 | $(SRC)/keyboard.h \ |
| 1045 | $(SRC)/keymap.h \ | 1049 | $(SRC)/keymap.h \ |
| 1046 | $(SRC)/macros.h \ | 1050 | $(SRC)/macros.h \ |
| 1047 | $(PROCESS_H) \ | ||
| 1048 | $(SRC)/puresize.h \ | 1051 | $(SRC)/puresize.h \ |
| 1049 | $(SRC)/syntax.h \ | 1052 | $(SRC)/syntax.h \ |
| 1050 | $(SRC)/syssignal.h \ | 1053 | $(SRC)/syssignal.h \ |
| @@ -1182,11 +1185,11 @@ $(BLD)/w32.$(O) : \ | |||
| 1182 | $(EMACS_ROOT)/nt/inc/sys/socket.h \ | 1185 | $(EMACS_ROOT)/nt/inc/sys/socket.h \ |
| 1183 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1186 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1184 | $(LISP_H) \ | 1187 | $(LISP_H) \ |
| 1188 | $(PROCESS_H) \ | ||
| 1185 | $(SRC)/coding.h \ | 1189 | $(SRC)/coding.h \ |
| 1186 | $(SRC)/composite.h \ | 1190 | $(SRC)/composite.h \ |
| 1187 | $(SRC)/dispextern.h \ | 1191 | $(SRC)/dispextern.h \ |
| 1188 | $(SRC)/ndir.h \ | 1192 | $(SRC)/ndir.h \ |
| 1189 | $(PROCESS_H) \ | ||
| 1190 | $(SRC)/systime.h \ | 1193 | $(SRC)/systime.h \ |
| 1191 | $(SRC)/w32.h \ | 1194 | $(SRC)/w32.h \ |
| 1192 | $(SRC)/w32gui.h \ | 1195 | $(SRC)/w32gui.h \ |
| @@ -1225,11 +1228,11 @@ $(BLD)/w32proc.$(O) : \ | |||
| 1225 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | 1228 | $(EMACS_ROOT)/nt/inc/sys/file.h \ |
| 1226 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1229 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1227 | $(LISP_H) \ | 1230 | $(LISP_H) \ |
| 1231 | $(PROCESS_H) \ | ||
| 1228 | $(SRC)/character.h \ | 1232 | $(SRC)/character.h \ |
| 1229 | $(SRC)/coding.h \ | 1233 | $(SRC)/coding.h \ |
| 1230 | $(SRC)/composite.h \ | 1234 | $(SRC)/composite.h \ |
| 1231 | $(SRC)/dispextern.h \ | 1235 | $(SRC)/dispextern.h \ |
| 1232 | $(PROCESS_H) \ | ||
| 1233 | $(SRC)/syssignal.h \ | 1236 | $(SRC)/syssignal.h \ |
| 1234 | $(SRC)/systime.h \ | 1237 | $(SRC)/systime.h \ |
| 1235 | $(SRC)/syswait.h \ | 1238 | $(SRC)/syswait.h \ |
| @@ -1261,6 +1264,7 @@ $(BLD)/print.$(O) : \ | |||
| 1261 | $(EMACS_ROOT)/lib/ftoastr.h \ | 1264 | $(EMACS_ROOT)/lib/ftoastr.h \ |
| 1262 | $(EMACS_ROOT)/lib/intprops.h \ | 1265 | $(EMACS_ROOT)/lib/intprops.h \ |
| 1263 | $(LISP_H) \ | 1266 | $(LISP_H) \ |
| 1267 | $(PROCESS_H) \ | ||
| 1264 | $(SRC)/atimer.h \ | 1268 | $(SRC)/atimer.h \ |
| 1265 | $(SRC)/blockinput.h \ | 1269 | $(SRC)/blockinput.h \ |
| 1266 | $(SRC)/buffer.h \ | 1270 | $(SRC)/buffer.h \ |
| @@ -1274,7 +1278,6 @@ $(BLD)/print.$(O) : \ | |||
| 1274 | $(SRC)/frame.h \ | 1278 | $(SRC)/frame.h \ |
| 1275 | $(SRC)/intervals.h \ | 1279 | $(SRC)/intervals.h \ |
| 1276 | $(SRC)/keyboard.h \ | 1280 | $(SRC)/keyboard.h \ |
| 1277 | $(PROCESS_H) \ | ||
| 1278 | $(SRC)/systime.h \ | 1281 | $(SRC)/systime.h \ |
| 1279 | $(SRC)/termchar.h \ | 1282 | $(SRC)/termchar.h \ |
| 1280 | $(SRC)/termhooks.h \ | 1283 | $(SRC)/termhooks.h \ |
| @@ -1289,9 +1292,11 @@ $(BLD)/process.$(O) : \ | |||
| 1289 | $(EMACS_ROOT)/nt/inc/arpa/inet.h \ | 1292 | $(EMACS_ROOT)/nt/inc/arpa/inet.h \ |
| 1290 | $(EMACS_ROOT)/nt/inc/netinet/in.h \ | 1293 | $(EMACS_ROOT)/nt/inc/netinet/in.h \ |
| 1291 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | 1294 | $(EMACS_ROOT)/nt/inc/sys/file.h \ |
| 1295 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ | ||
| 1292 | $(EMACS_ROOT)/nt/inc/sys/socket.h \ | 1296 | $(EMACS_ROOT)/nt/inc/sys/socket.h \ |
| 1293 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1297 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1294 | $(LISP_H) \ | 1298 | $(LISP_H) \ |
| 1299 | $(PROCESS_H) \ | ||
| 1295 | $(SRC)/atimer.h \ | 1300 | $(SRC)/atimer.h \ |
| 1296 | $(SRC)/blockinput.h \ | 1301 | $(SRC)/blockinput.h \ |
| 1297 | $(SRC)/buffer.h \ | 1302 | $(SRC)/buffer.h \ |
| @@ -1302,7 +1307,6 @@ $(BLD)/process.$(O) : \ | |||
| 1302 | $(SRC)/dispextern.h \ | 1307 | $(SRC)/dispextern.h \ |
| 1303 | $(SRC)/frame.h \ | 1308 | $(SRC)/frame.h \ |
| 1304 | $(SRC)/keyboard.h \ | 1309 | $(SRC)/keyboard.h \ |
| 1305 | $(PROCESS_H) \ | ||
| 1306 | $(SRC)/sysselect.h \ | 1310 | $(SRC)/sysselect.h \ |
| 1307 | $(SRC)/syssignal.h \ | 1311 | $(SRC)/syssignal.h \ |
| 1308 | $(SRC)/systime.h \ | 1312 | $(SRC)/systime.h \ |
| @@ -1415,10 +1419,12 @@ $(BLD)/sysdep.$(O) : \ | |||
| 1415 | $(EMACS_ROOT)/nt/inc/pwd.h \ | 1419 | $(EMACS_ROOT)/nt/inc/pwd.h \ |
| 1416 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 1420 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 1417 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | 1421 | $(EMACS_ROOT)/nt/inc/sys/file.h \ |
| 1422 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ | ||
| 1418 | $(EMACS_ROOT)/nt/inc/sys/socket.h \ | 1423 | $(EMACS_ROOT)/nt/inc/sys/socket.h \ |
| 1419 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1424 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1420 | $(EMACS_ROOT)/lib/ignore-value.h \ | 1425 | $(EMACS_ROOT)/lib/ignore-value.h \ |
| 1421 | $(LISP_H) \ | 1426 | $(LISP_H) \ |
| 1427 | $(PROCESS_H) \ | ||
| 1422 | $(SRC)/atimer.h \ | 1428 | $(SRC)/atimer.h \ |
| 1423 | $(SRC)/blockinput.h \ | 1429 | $(SRC)/blockinput.h \ |
| 1424 | $(SRC)/cm.h \ | 1430 | $(SRC)/cm.h \ |
| @@ -1427,7 +1433,6 @@ $(BLD)/sysdep.$(O) : \ | |||
| 1427 | $(SRC)/dispextern.h \ | 1433 | $(SRC)/dispextern.h \ |
| 1428 | $(SRC)/frame.h \ | 1434 | $(SRC)/frame.h \ |
| 1429 | $(SRC)/keyboard.h \ | 1435 | $(SRC)/keyboard.h \ |
| 1430 | $(PROCESS_H) \ | ||
| 1431 | $(SRC)/sysselect.h \ | 1436 | $(SRC)/sysselect.h \ |
| 1432 | $(SRC)/syssignal.h \ | 1437 | $(SRC)/syssignal.h \ |
| 1433 | $(SRC)/systime.h \ | 1438 | $(SRC)/systime.h \ |
| @@ -1445,6 +1450,7 @@ $(BLD)/term.$(O) : \ | |||
| 1445 | $(CONFIG_H) \ | 1450 | $(CONFIG_H) \ |
| 1446 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 1451 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 1447 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | 1452 | $(EMACS_ROOT)/nt/inc/sys/file.h \ |
| 1453 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ | ||
| 1448 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1454 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1449 | $(LISP_H) \ | 1455 | $(LISP_H) \ |
| 1450 | $(SRC)/atimer.h \ | 1456 | $(SRC)/atimer.h \ |
| @@ -1500,9 +1506,9 @@ $(BLD)/textprop.$(O) : \ | |||
| 1500 | 1506 | ||
| 1501 | $(BLD)/tparam.$(O) : \ | 1507 | $(BLD)/tparam.$(O) : \ |
| 1502 | $(SRC)/tparam.c \ | 1508 | $(SRC)/tparam.c \ |
| 1503 | $(SRC)/tparam.h \ | ||
| 1504 | $(CONFIG_H) \ | 1509 | $(CONFIG_H) \ |
| 1505 | $(LISP_H) | 1510 | $(LISP_H) \ |
| 1511 | $(SRC)/tparam.h | ||
| 1506 | 1512 | ||
| 1507 | $(BLD)/undo.$(O) : \ | 1513 | $(BLD)/undo.$(O) : \ |
| 1508 | $(SRC)/undo.c \ | 1514 | $(SRC)/undo.c \ |
| @@ -1516,8 +1522,8 @@ $(BLD)/undo.$(O) : \ | |||
| 1516 | 1522 | ||
| 1517 | $(BLD)/unexw32.$(O) : \ | 1523 | $(BLD)/unexw32.$(O) : \ |
| 1518 | $(SRC)/unexw32.c \ | 1524 | $(SRC)/unexw32.c \ |
| 1519 | $(SRC)/unexec.h \ | ||
| 1520 | $(CONFIG_H) \ | 1525 | $(CONFIG_H) \ |
| 1526 | $(SRC)/unexec.h \ | ||
| 1521 | $(SRC)/w32heap.h | 1527 | $(SRC)/w32heap.h |
| 1522 | 1528 | ||
| 1523 | $(BLD)/vm-limit.$(O) : \ | 1529 | $(BLD)/vm-limit.$(O) : \ |
| @@ -1557,6 +1563,7 @@ $(BLD)/xdisp.$(O) : \ | |||
| 1557 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 1563 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 1558 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1564 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1559 | $(LISP_H) \ | 1565 | $(LISP_H) \ |
| 1566 | $(PROCESS_H) \ | ||
| 1560 | $(SRC)/atimer.h \ | 1567 | $(SRC)/atimer.h \ |
| 1561 | $(SRC)/blockinput.h \ | 1568 | $(SRC)/blockinput.h \ |
| 1562 | $(SRC)/buffer.h \ | 1569 | $(SRC)/buffer.h \ |
| @@ -1576,7 +1583,6 @@ $(BLD)/xdisp.$(O) : \ | |||
| 1576 | $(SRC)/keyboard.h \ | 1583 | $(SRC)/keyboard.h \ |
| 1577 | $(SRC)/keymap.h \ | 1584 | $(SRC)/keymap.h \ |
| 1578 | $(SRC)/macros.h \ | 1585 | $(SRC)/macros.h \ |
| 1579 | $(PROCESS_H) \ | ||
| 1580 | $(SRC)/region-cache.h \ | 1586 | $(SRC)/region-cache.h \ |
| 1581 | $(SRC)/systime.h \ | 1587 | $(SRC)/systime.h \ |
| 1582 | $(SRC)/termchar.h \ | 1588 | $(SRC)/termchar.h \ |
| @@ -1668,8 +1674,10 @@ $(BLD)/w32term.$(O) : \ | |||
| 1668 | $(SRC)/w32term.c \ | 1674 | $(SRC)/w32term.c \ |
| 1669 | $(CONFIG_H) \ | 1675 | $(CONFIG_H) \ |
| 1670 | $(EMACS_ROOT)/nt/inc/unistd.h \ | 1676 | $(EMACS_ROOT)/nt/inc/unistd.h \ |
| 1677 | $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ | ||
| 1671 | $(EMACS_ROOT)/nt/inc/sys/time.h \ | 1678 | $(EMACS_ROOT)/nt/inc/sys/time.h \ |
| 1672 | $(LISP_H) \ | 1679 | $(LISP_H) \ |
| 1680 | $(PROCESS_H) \ | ||
| 1673 | $(SRC)/atimer.h \ | 1681 | $(SRC)/atimer.h \ |
| 1674 | $(SRC)/blockinput.h \ | 1682 | $(SRC)/blockinput.h \ |
| 1675 | $(SRC)/buffer.h \ | 1683 | $(SRC)/buffer.h \ |
| @@ -1686,7 +1694,6 @@ $(BLD)/w32term.$(O) : \ | |||
| 1686 | $(SRC)/intervals.h \ | 1694 | $(SRC)/intervals.h \ |
| 1687 | $(SRC)/keyboard.h \ | 1695 | $(SRC)/keyboard.h \ |
| 1688 | $(SRC)/keymap.h \ | 1696 | $(SRC)/keymap.h \ |
| 1689 | $(PROCESS_H) \ | ||
| 1690 | $(SRC)/systime.h \ | 1697 | $(SRC)/systime.h \ |
| 1691 | $(SRC)/systty.h \ | 1698 | $(SRC)/systty.h \ |
| 1692 | $(SRC)/termchar.h \ | 1699 | $(SRC)/termchar.h \ |
| @@ -1709,7 +1716,6 @@ $(BLD)/w32select.$(O) : \ | |||
| 1709 | $(SRC)/charset.h \ | 1716 | $(SRC)/charset.h \ |
| 1710 | $(SRC)/coding.h \ | 1717 | $(SRC)/coding.h \ |
| 1711 | $(SRC)/composite.h \ | 1718 | $(SRC)/composite.h \ |
| 1712 | $(SRC)/keyboard.h \ | ||
| 1713 | $(SRC)/systime.h \ | 1719 | $(SRC)/systime.h \ |
| 1714 | $(SRC)/w32gui.h \ | 1720 | $(SRC)/w32gui.h \ |
| 1715 | $(SRC)/w32heap.h \ | 1721 | $(SRC)/w32heap.h \ |
diff --git a/src/minibuf.c b/src/minibuf.c index 8ff861b2403..b6b79be9d3f 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -72,6 +72,7 @@ Lisp_Object Qcompletion_ignore_case; | |||
| 72 | Lisp_Object Qminibuffer_completion_table; | 72 | Lisp_Object Qminibuffer_completion_table; |
| 73 | Lisp_Object Qminibuffer_completion_predicate; | 73 | Lisp_Object Qminibuffer_completion_predicate; |
| 74 | Lisp_Object Qminibuffer_completion_confirm; | 74 | Lisp_Object Qminibuffer_completion_confirm; |
| 75 | Lisp_Object Qcompleting_read_default; | ||
| 75 | Lisp_Object Quser_variable_p; | 76 | Lisp_Object Quser_variable_p; |
| 76 | 77 | ||
| 77 | Lisp_Object Qminibuffer_default; | 78 | Lisp_Object Qminibuffer_default; |
| @@ -1674,7 +1675,27 @@ If INHERIT-INPUT-METHOD is non-nil, the minibuffer inherits | |||
| 1674 | the current input method and the setting of `enable-multibyte-characters'. | 1675 | the current input method and the setting of `enable-multibyte-characters'. |
| 1675 | 1676 | ||
| 1676 | Completion ignores case if the ambient value of | 1677 | Completion ignores case if the ambient value of |
| 1677 | `completion-ignore-case' is non-nil. */) | 1678 | `completion-ignore-case' is non-nil. |
| 1679 | |||
| 1680 | See also `completing-read-function'. */) | ||
| 1681 | (Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method) | ||
| 1682 | { | ||
| 1683 | Lisp_Object args[9]; | ||
| 1684 | args[0] = Vcompleting_read_function; | ||
| 1685 | args[1] = prompt; | ||
| 1686 | args[2] = collection; | ||
| 1687 | args[3] = predicate; | ||
| 1688 | args[4] = require_match; | ||
| 1689 | args[5] = initial_input; | ||
| 1690 | args[6] = hist; | ||
| 1691 | args[7] = def; | ||
| 1692 | args[8] = inherit_input_method; | ||
| 1693 | return Ffuncall (9, args); | ||
| 1694 | } | ||
| 1695 | |||
| 1696 | DEFUN ("completing-read-default", Fcompleting_read_default, Scompleting_read_default, 2, 8, 0, | ||
| 1697 | doc: /* Default method for reading from the minibuffer with completion. | ||
| 1698 | See `completing-read' for the meaning of the arguments. */) | ||
| 1678 | (Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method) | 1699 | (Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method) |
| 1679 | { | 1700 | { |
| 1680 | Lisp_Object val, histvar, histpos, position; | 1701 | Lisp_Object val, histvar, histpos, position; |
| @@ -1972,6 +1993,9 @@ syms_of_minibuf (void) | |||
| 1972 | minibuf_save_list = Qnil; | 1993 | minibuf_save_list = Qnil; |
| 1973 | staticpro (&minibuf_save_list); | 1994 | staticpro (&minibuf_save_list); |
| 1974 | 1995 | ||
| 1996 | Qcompleting_read_default = intern_c_string ("completing-read-default"); | ||
| 1997 | staticpro (&Qcompleting_read_default); | ||
| 1998 | |||
| 1975 | Qcompletion_ignore_case = intern_c_string ("completion-ignore-case"); | 1999 | Qcompletion_ignore_case = intern_c_string ("completion-ignore-case"); |
| 1976 | staticpro (&Qcompletion_ignore_case); | 2000 | staticpro (&Qcompletion_ignore_case); |
| 1977 | 2001 | ||
| @@ -2116,6 +2140,12 @@ If the value is `confirm-after-completion', the user may exit with an | |||
| 2116 | doc: /* Non-nil means completing file names. */); | 2140 | doc: /* Non-nil means completing file names. */); |
| 2117 | Vminibuffer_completing_file_name = Qnil; | 2141 | Vminibuffer_completing_file_name = Qnil; |
| 2118 | 2142 | ||
| 2143 | DEFVAR_LISP ("completing-read-function", | ||
| 2144 | Vcompleting_read_function, | ||
| 2145 | doc: /* The function called by `completing-read' to do the work. | ||
| 2146 | It should accept the same arguments as `completing-read'. */); | ||
| 2147 | Vcompleting_read_function = Qcompleting_read_default; | ||
| 2148 | |||
| 2119 | DEFVAR_LISP ("minibuffer-help-form", Vminibuffer_help_form, | 2149 | DEFVAR_LISP ("minibuffer-help-form", Vminibuffer_help_form, |
| 2120 | doc: /* Value that `help-form' takes on inside the minibuffer. */); | 2150 | doc: /* Value that `help-form' takes on inside the minibuffer. */); |
| 2121 | Vminibuffer_help_form = Qnil; | 2151 | Vminibuffer_help_form = Qnil; |
| @@ -2191,4 +2221,5 @@ properties. */); | |||
| 2191 | defsubr (&Stest_completion); | 2221 | defsubr (&Stest_completion); |
| 2192 | defsubr (&Sassoc_string); | 2222 | defsubr (&Sassoc_string); |
| 2193 | defsubr (&Scompleting_read); | 2223 | defsubr (&Scompleting_read); |
| 2224 | defsubr (&Scompleting_read_default); | ||
| 2194 | } | 2225 | } |
diff --git a/src/xfaces.c b/src/xfaces.c index 50bcab3c6a9..0fc5dd6f8a3 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -6297,7 +6297,7 @@ where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */) | |||
| 6297 | CHECK_STRING (filename); | 6297 | CHECK_STRING (filename); |
| 6298 | abspath = Fexpand_file_name (filename, Qnil); | 6298 | abspath = Fexpand_file_name (filename, Qnil); |
| 6299 | 6299 | ||
| 6300 | fp = fopen (SDATA (filename), "rt"); | 6300 | fp = fopen (SDATA (abspath), "rt"); |
| 6301 | if (fp) | 6301 | if (fp) |
| 6302 | { | 6302 | { |
| 6303 | char buf[512]; | 6303 | char buf[512]; |