diff options
| author | Andreas Schwab | 2001-10-19 12:33:10 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2001-10-19 12:33:10 +0000 |
| commit | 503d2be044b52f0e792dd51e3a31fed5c87447f1 (patch) | |
| tree | fc3a2ebdcba3c47dd58b0ec6054de28a507dc9ea | |
| parent | 96ac8fc97108b142159de3a8432a7a0b2d66d140 (diff) | |
| download | emacs-503d2be044b52f0e792dd51e3a31fed5c87447f1.tar.gz emacs-503d2be044b52f0e792dd51e3a31fed5c87447f1.zip | |
Regenerated.
| -rwxr-xr-x | configure | 12794 |
1 files changed, 8181 insertions, 4613 deletions
| @@ -1,57 +1,155 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | |||
| 3 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.13 | 3 | # Generated by Autoconf 2.52. |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | ||
| 6 | # | 4 | # |
| 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
| 6 | # Free Software Foundation, Inc. | ||
| 7 | # This configure script is free software; the Free Software Foundation | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. | 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | 9 | ||
| 10 | # Defaults: | 10 | # Avoid depending upon Character Ranges. |
| 11 | ac_help= | 11 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
| 13 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
| 14 | as_cr_digits='0123456789' | ||
| 15 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
| 16 | |||
| 17 | # Sed expression to map a string onto a valid variable name. | ||
| 18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
| 19 | |||
| 20 | # Sed expression to map a string onto a valid CPP name. | ||
| 21 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
| 22 | |||
| 23 | # Be Bourne compatible | ||
| 24 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
| 25 | emulate sh | ||
| 26 | NULLCMD=: | ||
| 27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
| 28 | set -o posix | ||
| 29 | fi | ||
| 30 | |||
| 31 | # Name of the executable. | ||
| 32 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
| 33 | |||
| 34 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
| 35 | as_expr=expr | ||
| 36 | else | ||
| 37 | as_expr=false | ||
| 38 | fi | ||
| 39 | |||
| 40 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 41 | echo >conf$$.file | ||
| 42 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
| 43 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
| 44 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
| 45 | if test -f conf$$.exe; then | ||
| 46 | # Don't use ln at all; we don't have any links | ||
| 47 | as_ln_s='cp -p' | ||
| 48 | else | ||
| 49 | as_ln_s='ln -s' | ||
| 50 | fi | ||
| 51 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
| 52 | as_ln_s=ln | ||
| 53 | else | ||
| 54 | as_ln_s='cp -p' | ||
| 55 | fi | ||
| 56 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 57 | |||
| 58 | as_executable_p="test -f" | ||
| 59 | |||
| 60 | # Support unset when possible. | ||
| 61 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
| 62 | as_unset=unset | ||
| 63 | else | ||
| 64 | as_unset=false | ||
| 65 | fi | ||
| 66 | |||
| 67 | # NLS nuisances. | ||
| 68 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
| 69 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
| 70 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
| 71 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
| 72 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
| 73 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
| 74 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
| 75 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
| 76 | |||
| 77 | # IFS | ||
| 78 | # We need space, tab and new line, in precisely that order. | ||
| 79 | as_nl=' | ||
| 80 | ' | ||
| 81 | IFS=" $as_nl" | ||
| 82 | |||
| 83 | # CDPATH. | ||
| 84 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
| 85 | |||
| 86 | # Name of the host. | ||
| 87 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
| 88 | # so uname gets run too. | ||
| 89 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 90 | |||
| 91 | exec 6>&1 | ||
| 92 | |||
| 93 | # | ||
| 94 | # Initializations. | ||
| 95 | # | ||
| 12 | ac_default_prefix=/usr/local | 96 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: | 97 | cross_compiling=no |
| 14 | ac_help="$ac_help | 98 | subdirs= |
| 15 | --without-gcc don't use GCC to compile Emacs if GCC is found" | 99 | MFLAGS= MAKEFLAGS= |
| 16 | ac_help="$ac_help | 100 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 17 | --without-pop don't support POP mail retrieval with movemail" | 101 | |
| 18 | ac_help="$ac_help | 102 | # Maximum number of lines to put in a shell here document. |
| 19 | --with-kerberos support Kerberos-authenticated POP" | 103 | # This variable seems obsolete. It should probably be removed, and |
| 20 | ac_help="$ac_help | 104 | # only ac_max_sed_lines should be used. |
| 21 | --with-kerberos5 support Kerberos version 5 authenticated POP" | 105 | : ${ac_max_here_lines=38} |
| 22 | ac_help="$ac_help | 106 | |
| 23 | --with-hesiod support Hesiod to get the POP server host" | 107 | ac_unique_file="src/lisp.h" |
| 24 | ac_help="$ac_help | 108 | # Factoring default headers for most tests. |
| 25 | --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" | 109 | ac_includes_default="\ |
| 26 | ac_help="$ac_help | 110 | #include <stdio.h> |
| 27 | --with-xpm use -lXpm for displaying XPM images" | 111 | #if HAVE_SYS_TYPES_H |
| 28 | ac_help="$ac_help | 112 | # include <sys/types.h> |
| 29 | --with-jpeg use -ljpeg for displaying JPEG images" | 113 | #endif |
| 30 | ac_help="$ac_help | 114 | #if HAVE_SYS_STAT_H |
| 31 | --with-tiff use -ltiff for displaying TIFF images" | 115 | # include <sys/stat.h> |
| 32 | ac_help="$ac_help | 116 | #endif |
| 33 | --with-gif use -lungif for displaying GIF images" | 117 | #if STDC_HEADERS |
| 34 | ac_help="$ac_help | 118 | # include <stdlib.h> |
| 35 | --with-png use -lpng for displaying PNG images" | 119 | # include <stddef.h> |
| 36 | ac_help="$ac_help | 120 | #else |
| 37 | --without-toolkit-scroll-bars | 121 | # if HAVE_STDLIB_H |
| 38 | don't use Motif or Xaw3d scroll bars" | 122 | # include <stdlib.h> |
| 39 | ac_help="$ac_help | 123 | # endif |
| 40 | --without-xim don't use X11 XIM" | 124 | #endif |
| 41 | ac_help="$ac_help | 125 | #if HAVE_STRING_H |
| 42 | --disable-largefile omit support for large files" | 126 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 43 | ac_help="$ac_help | 127 | # include <memory.h> |
| 44 | --with-x use the X Window System" | 128 | # endif |
| 129 | # include <string.h> | ||
| 130 | #endif | ||
| 131 | #if HAVE_STRINGS_H | ||
| 132 | # include <strings.h> | ||
| 133 | #endif | ||
| 134 | #if HAVE_INTTYPES_H | ||
| 135 | # include <inttypes.h> | ||
| 136 | #else | ||
| 137 | # if HAVE_STDINT_H | ||
| 138 | # include <stdint.h> | ||
| 139 | # endif | ||
| 140 | #endif | ||
| 141 | #if HAVE_UNISTD_H | ||
| 142 | # include <unistd.h> | ||
| 143 | #endif" | ||
| 45 | 144 | ||
| 46 | # Initialize some variables set by options. | 145 | # Initialize some variables set by options. |
| 146 | ac_init_help= | ||
| 147 | ac_init_version=false | ||
| 47 | # The variables have the same names as the options, with | 148 | # The variables have the same names as the options, with |
| 48 | # dashes changed to underlines. | 149 | # dashes changed to underlines. |
| 49 | build=NONE | 150 | cache_file=/dev/null |
| 50 | cache_file=./config.cache | ||
| 51 | exec_prefix=NONE | 151 | exec_prefix=NONE |
| 52 | host=NONE | ||
| 53 | no_create= | 152 | no_create= |
| 54 | nonopt=NONE | ||
| 55 | no_recursion= | 153 | no_recursion= |
| 56 | prefix=NONE | 154 | prefix=NONE |
| 57 | program_prefix=NONE | 155 | program_prefix=NONE |
| @@ -60,10 +158,15 @@ program_transform_name=s,x,x, | |||
| 60 | silent= | 158 | silent= |
| 61 | site= | 159 | site= |
| 62 | srcdir= | 160 | srcdir= |
| 63 | target=NONE | ||
| 64 | verbose= | 161 | verbose= |
| 65 | x_includes=NONE | 162 | x_includes=NONE |
| 66 | x_libraries=NONE | 163 | x_libraries=NONE |
| 164 | |||
| 165 | # Installation directory options. | ||
| 166 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
| 167 | # and all the variables that are supposed to be based on exec_prefix | ||
| 168 | # by default will actually change. | ||
| 169 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
| 67 | bindir='${exec_prefix}/bin' | 170 | bindir='${exec_prefix}/bin' |
| 68 | sbindir='${exec_prefix}/sbin' | 171 | sbindir='${exec_prefix}/sbin' |
| 69 | libexecdir='${exec_prefix}/libexec' | 172 | libexecdir='${exec_prefix}/libexec' |
| @@ -77,17 +180,16 @@ oldincludedir='/usr/include' | |||
| 77 | infodir='${prefix}/info' | 180 | infodir='${prefix}/info' |
| 78 | mandir='${prefix}/man' | 181 | mandir='${prefix}/man' |
| 79 | 182 | ||
| 80 | # Initialize some other variables. | 183 | # Identity of this package. |
| 81 | subdirs= | 184 | PACKAGE_NAME= |
| 82 | MFLAGS= MAKEFLAGS= | 185 | PACKAGE_TARNAME= |
| 83 | SHELL=${CONFIG_SHELL-/bin/sh} | 186 | PACKAGE_VERSION= |
| 84 | # Maximum number of lines to put in a shell here document. | 187 | PACKAGE_STRING= |
| 85 | ac_max_here_lines=12 | 188 | PACKAGE_BUGREPORT= |
| 86 | 189 | ||
| 87 | ac_prev= | 190 | ac_prev= |
| 88 | for ac_option | 191 | for ac_option |
| 89 | do | 192 | do |
| 90 | |||
| 91 | # If the previous option needs an argument, assign it. | 193 | # If the previous option needs an argument, assign it. |
| 92 | if test -n "$ac_prev"; then | 194 | if test -n "$ac_prev"; then |
| 93 | eval "$ac_prev=\$ac_option" | 195 | eval "$ac_prev=\$ac_option" |
| @@ -95,59 +197,59 @@ do | |||
| 95 | continue | 197 | continue |
| 96 | fi | 198 | fi |
| 97 | 199 | ||
| 98 | case "$ac_option" in | 200 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 99 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
| 100 | *) ac_optarg= ;; | ||
| 101 | esac | ||
| 102 | 201 | ||
| 103 | # Accept the important Cygnus configure options, so we can diagnose typos. | 202 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 104 | 203 | ||
| 105 | case "$ac_option" in | 204 | case $ac_option in |
| 106 | 205 | ||
| 107 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 206 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 108 | ac_prev=bindir ;; | 207 | ac_prev=bindir ;; |
| 109 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 208 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 110 | bindir="$ac_optarg" ;; | 209 | bindir=$ac_optarg ;; |
| 111 | 210 | ||
| 112 | -build | --build | --buil | --bui | --bu) | 211 | -build | --build | --buil | --bui | --bu) |
| 113 | ac_prev=build ;; | 212 | ac_prev=build_alias ;; |
| 114 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 213 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 115 | build="$ac_optarg" ;; | 214 | build_alias=$ac_optarg ;; |
| 116 | 215 | ||
| 117 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 216 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 118 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 217 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 119 | ac_prev=cache_file ;; | 218 | ac_prev=cache_file ;; |
| 120 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 219 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 121 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 220 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 122 | cache_file="$ac_optarg" ;; | 221 | cache_file=$ac_optarg ;; |
| 222 | |||
| 223 | --config-cache | -C) | ||
| 224 | cache_file=config.cache ;; | ||
| 123 | 225 | ||
| 124 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 226 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 125 | ac_prev=datadir ;; | 227 | ac_prev=datadir ;; |
| 126 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 228 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 127 | | --da=*) | 229 | | --da=*) |
| 128 | datadir="$ac_optarg" ;; | 230 | datadir=$ac_optarg ;; |
| 129 | 231 | ||
| 130 | -disable-* | --disable-*) | 232 | -disable-* | --disable-*) |
| 131 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 233 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 132 | # Reject names that are not valid shell variable names. | 234 | # Reject names that are not valid shell variable names. |
| 133 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 235 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 134 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 236 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 135 | fi | 237 | { (exit 1); exit 1; }; } |
| 136 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 238 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 137 | eval "enable_${ac_feature}=no" ;; | 239 | eval "enable_$ac_feature=no" ;; |
| 138 | 240 | ||
| 139 | -enable-* | --enable-*) | 241 | -enable-* | --enable-*) |
| 140 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 242 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 141 | # Reject names that are not valid shell variable names. | 243 | # Reject names that are not valid shell variable names. |
| 142 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 244 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 143 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 245 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 144 | fi | 246 | { (exit 1); exit 1; }; } |
| 145 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 247 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 146 | case "$ac_option" in | 248 | case $ac_option in |
| 147 | *=*) ;; | 249 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 148 | *) ac_optarg=yes ;; | 250 | *) ac_optarg=yes ;; |
| 149 | esac | 251 | esac |
| 150 | eval "enable_${ac_feature}='$ac_optarg'" ;; | 252 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 151 | 253 | ||
| 152 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 254 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 153 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 255 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| @@ -156,95 +258,47 @@ do | |||
| 156 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 258 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 157 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 259 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 158 | | --exec=* | --exe=* | --ex=*) | 260 | | --exec=* | --exe=* | --ex=*) |
| 159 | exec_prefix="$ac_optarg" ;; | 261 | exec_prefix=$ac_optarg ;; |
| 160 | 262 | ||
| 161 | -gas | --gas | --ga | --g) | 263 | -gas | --gas | --ga | --g) |
| 162 | # Obsolete; use --with-gas. | 264 | # Obsolete; use --with-gas. |
| 163 | with_gas=yes ;; | 265 | with_gas=yes ;; |
| 164 | 266 | ||
| 165 | -help | --help | --hel | --he) | 267 | -help | --help | --hel | --he | -h) |
| 166 | # Omit some internal or obsolete options to make the list less imposing. | 268 | ac_init_help=long ;; |
| 167 | # This message is too long to be a string in the A/UX 3.1 sh. | 269 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 168 | cat << EOF | 270 | ac_init_help=recursive ;; |
| 169 | Usage: configure [options] [host] | 271 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 170 | Options: [defaults in brackets after descriptions] | 272 | ac_init_help=short ;; |
| 171 | Configuration: | ||
| 172 | --cache-file=FILE cache test results in FILE | ||
| 173 | --help print this message | ||
| 174 | --no-create do not create output files | ||
| 175 | --quiet, --silent do not print \`checking...' messages | ||
| 176 | --version print the version of autoconf that created configure | ||
| 177 | Directory and file names: | ||
| 178 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
| 179 | [$ac_default_prefix] | ||
| 180 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
| 181 | [same as prefix] | ||
| 182 | --bindir=DIR user executables in DIR [EPREFIX/bin] | ||
| 183 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | ||
| 184 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | ||
| 185 | --datadir=DIR read-only architecture-independent data in DIR | ||
| 186 | [PREFIX/share] | ||
| 187 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | ||
| 188 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | ||
| 189 | [PREFIX/com] | ||
| 190 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | ||
| 191 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | ||
| 192 | --includedir=DIR C header files in DIR [PREFIX/include] | ||
| 193 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | ||
| 194 | --infodir=DIR info documentation in DIR [PREFIX/info] | ||
| 195 | --mandir=DIR man documentation in DIR [PREFIX/man] | ||
| 196 | --srcdir=DIR find the sources in DIR [configure dir or ..] | ||
| 197 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
| 198 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
| 199 | --program-transform-name=PROGRAM | ||
| 200 | run sed PROGRAM on installed program names | ||
| 201 | EOF | ||
| 202 | cat << EOF | ||
| 203 | Host type: | ||
| 204 | --build=BUILD configure for building on BUILD [BUILD=HOST] | ||
| 205 | --host=HOST configure for HOST [guessed] | ||
| 206 | --target=TARGET configure for TARGET [TARGET=HOST] | ||
| 207 | Features and packages: | ||
| 208 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
| 209 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
| 210 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
| 211 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
| 212 | --x-includes=DIR X include files are in DIR | ||
| 213 | --x-libraries=DIR X library files are in DIR | ||
| 214 | EOF | ||
| 215 | if test -n "$ac_help"; then | ||
| 216 | echo "--enable and --with options recognized:$ac_help" | ||
| 217 | fi | ||
| 218 | exit 0 ;; | ||
| 219 | 273 | ||
| 220 | -host | --host | --hos | --ho) | 274 | -host | --host | --hos | --ho) |
| 221 | ac_prev=host ;; | 275 | ac_prev=host_alias ;; |
| 222 | -host=* | --host=* | --hos=* | --ho=*) | 276 | -host=* | --host=* | --hos=* | --ho=*) |
| 223 | host="$ac_optarg" ;; | 277 | host_alias=$ac_optarg ;; |
| 224 | 278 | ||
| 225 | -includedir | --includedir | --includedi | --included | --include \ | 279 | -includedir | --includedir | --includedi | --included | --include \ |
| 226 | | --includ | --inclu | --incl | --inc) | 280 | | --includ | --inclu | --incl | --inc) |
| 227 | ac_prev=includedir ;; | 281 | ac_prev=includedir ;; |
| 228 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 282 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 229 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 283 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 230 | includedir="$ac_optarg" ;; | 284 | includedir=$ac_optarg ;; |
| 231 | 285 | ||
| 232 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 286 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 233 | ac_prev=infodir ;; | 287 | ac_prev=infodir ;; |
| 234 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 288 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 235 | infodir="$ac_optarg" ;; | 289 | infodir=$ac_optarg ;; |
| 236 | 290 | ||
| 237 | -libdir | --libdir | --libdi | --libd) | 291 | -libdir | --libdir | --libdi | --libd) |
| 238 | ac_prev=libdir ;; | 292 | ac_prev=libdir ;; |
| 239 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 293 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 240 | libdir="$ac_optarg" ;; | 294 | libdir=$ac_optarg ;; |
| 241 | 295 | ||
| 242 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 296 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 243 | | --libexe | --libex | --libe) | 297 | | --libexe | --libex | --libe) |
| 244 | ac_prev=libexecdir ;; | 298 | ac_prev=libexecdir ;; |
| 245 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 299 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 246 | | --libexe=* | --libex=* | --libe=*) | 300 | | --libexe=* | --libex=* | --libe=*) |
| 247 | libexecdir="$ac_optarg" ;; | 301 | libexecdir=$ac_optarg ;; |
| 248 | 302 | ||
| 249 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 303 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 250 | | --localstate | --localstat | --localsta | --localst \ | 304 | | --localstate | --localstat | --localsta | --localst \ |
| @@ -253,12 +307,12 @@ EOF | |||
| 253 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 307 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 254 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 308 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 255 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 309 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 256 | localstatedir="$ac_optarg" ;; | 310 | localstatedir=$ac_optarg ;; |
| 257 | 311 | ||
| 258 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 312 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 259 | ac_prev=mandir ;; | 313 | ac_prev=mandir ;; |
| 260 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 314 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 261 | mandir="$ac_optarg" ;; | 315 | mandir=$ac_optarg ;; |
| 262 | 316 | ||
| 263 | -nfp | --nfp | --nf) | 317 | -nfp | --nfp | --nf) |
| 264 | # Obsolete; use --without-fp. | 318 | # Obsolete; use --without-fp. |
| @@ -279,26 +333,26 @@ EOF | |||
| 279 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 333 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 280 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 334 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 281 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 335 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 282 | oldincludedir="$ac_optarg" ;; | 336 | oldincludedir=$ac_optarg ;; |
| 283 | 337 | ||
| 284 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 338 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 285 | ac_prev=prefix ;; | 339 | ac_prev=prefix ;; |
| 286 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 340 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 287 | prefix="$ac_optarg" ;; | 341 | prefix=$ac_optarg ;; |
| 288 | 342 | ||
| 289 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 343 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 290 | | --program-pre | --program-pr | --program-p) | 344 | | --program-pre | --program-pr | --program-p) |
| 291 | ac_prev=program_prefix ;; | 345 | ac_prev=program_prefix ;; |
| 292 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 346 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 293 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 347 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 294 | program_prefix="$ac_optarg" ;; | 348 | program_prefix=$ac_optarg ;; |
| 295 | 349 | ||
| 296 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 350 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 297 | | --program-suf | --program-su | --program-s) | 351 | | --program-suf | --program-su | --program-s) |
| 298 | ac_prev=program_suffix ;; | 352 | ac_prev=program_suffix ;; |
| 299 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 353 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 300 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 354 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 301 | program_suffix="$ac_optarg" ;; | 355 | program_suffix=$ac_optarg ;; |
| 302 | 356 | ||
| 303 | -program-transform-name | --program-transform-name \ | 357 | -program-transform-name | --program-transform-name \ |
| 304 | | --program-transform-nam | --program-transform-na \ | 358 | | --program-transform-nam | --program-transform-na \ |
| @@ -315,7 +369,7 @@ EOF | |||
| 315 | | --program-transfo=* | --program-transf=* \ | 369 | | --program-transfo=* | --program-transf=* \ |
| 316 | | --program-trans=* | --program-tran=* \ | 370 | | --program-trans=* | --program-tran=* \ |
| 317 | | --progr-tra=* | --program-tr=* | --program-t=*) | 371 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 318 | program_transform_name="$ac_optarg" ;; | 372 | program_transform_name=$ac_optarg ;; |
| 319 | 373 | ||
| 320 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 374 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 321 | | -silent | --silent | --silen | --sile | --sil) | 375 | | -silent | --silent | --silen | --sile | --sil) |
| @@ -325,7 +379,7 @@ EOF | |||
| 325 | ac_prev=sbindir ;; | 379 | ac_prev=sbindir ;; |
| 326 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 380 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 327 | | --sbi=* | --sb=*) | 381 | | --sbi=* | --sb=*) |
| 328 | sbindir="$ac_optarg" ;; | 382 | sbindir=$ac_optarg ;; |
| 329 | 383 | ||
| 330 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 384 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 331 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 385 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| @@ -336,58 +390,57 @@ EOF | |||
| 336 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 390 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 337 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 391 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 338 | | --sha=* | --sh=*) | 392 | | --sha=* | --sh=*) |
| 339 | sharedstatedir="$ac_optarg" ;; | 393 | sharedstatedir=$ac_optarg ;; |
| 340 | 394 | ||
| 341 | -site | --site | --sit) | 395 | -site | --site | --sit) |
| 342 | ac_prev=site ;; | 396 | ac_prev=site ;; |
| 343 | -site=* | --site=* | --sit=*) | 397 | -site=* | --site=* | --sit=*) |
| 344 | site="$ac_optarg" ;; | 398 | site=$ac_optarg ;; |
| 345 | 399 | ||
| 346 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 400 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 347 | ac_prev=srcdir ;; | 401 | ac_prev=srcdir ;; |
| 348 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 402 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 349 | srcdir="$ac_optarg" ;; | 403 | srcdir=$ac_optarg ;; |
| 350 | 404 | ||
| 351 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 405 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 352 | | --syscon | --sysco | --sysc | --sys | --sy) | 406 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 353 | ac_prev=sysconfdir ;; | 407 | ac_prev=sysconfdir ;; |
| 354 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 408 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 355 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 409 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 356 | sysconfdir="$ac_optarg" ;; | 410 | sysconfdir=$ac_optarg ;; |
| 357 | 411 | ||
| 358 | -target | --target | --targe | --targ | --tar | --ta | --t) | 412 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 359 | ac_prev=target ;; | 413 | ac_prev=target_alias ;; |
| 360 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 414 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 361 | target="$ac_optarg" ;; | 415 | target_alias=$ac_optarg ;; |
| 362 | 416 | ||
| 363 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 417 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 364 | verbose=yes ;; | 418 | verbose=yes ;; |
| 365 | 419 | ||
| 366 | -version | --version | --versio | --versi | --vers) | 420 | -version | --version | --versio | --versi | --vers | -V) |
| 367 | echo "configure generated by autoconf version 2.13" | 421 | ac_init_version=: ;; |
| 368 | exit 0 ;; | ||
| 369 | 422 | ||
| 370 | -with-* | --with-*) | 423 | -with-* | --with-*) |
| 371 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 424 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 372 | # Reject names that are not valid shell variable names. | 425 | # Reject names that are not valid shell variable names. |
| 373 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 426 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 374 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 427 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 375 | fi | 428 | { (exit 1); exit 1; }; } |
| 376 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 429 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 377 | case "$ac_option" in | 430 | case $ac_option in |
| 378 | *=*) ;; | 431 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 379 | *) ac_optarg=yes ;; | 432 | *) ac_optarg=yes ;; |
| 380 | esac | 433 | esac |
| 381 | eval "with_${ac_package}='$ac_optarg'" ;; | 434 | eval "with_$ac_package='$ac_optarg'" ;; |
| 382 | 435 | ||
| 383 | -without-* | --without-*) | 436 | -without-* | --without-*) |
| 384 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 437 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 385 | # Reject names that are not valid shell variable names. | 438 | # Reject names that are not valid shell variable names. |
| 386 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 439 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 387 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 440 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 388 | fi | 441 | { (exit 1); exit 1; }; } |
| 389 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 442 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 390 | eval "with_${ac_package}=no" ;; | 443 | eval "with_$ac_package=no" ;; |
| 391 | 444 | ||
| 392 | --x) | 445 | --x) |
| 393 | # Obsolete; use --with-x. | 446 | # Obsolete; use --with-x. |
| @@ -398,98 +451,98 @@ EOF | |||
| 398 | ac_prev=x_includes ;; | 451 | ac_prev=x_includes ;; |
| 399 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 452 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 400 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 453 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 401 | x_includes="$ac_optarg" ;; | 454 | x_includes=$ac_optarg ;; |
| 402 | 455 | ||
| 403 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 456 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 404 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 457 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 405 | ac_prev=x_libraries ;; | 458 | ac_prev=x_libraries ;; |
| 406 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 459 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 407 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 460 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 408 | x_libraries="$ac_optarg" ;; | 461 | x_libraries=$ac_optarg ;; |
| 409 | 462 | ||
| 410 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 463 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 464 | Try \`$0 --help' for more information." >&2 | ||
| 465 | { (exit 1); exit 1; }; } | ||
| 411 | ;; | 466 | ;; |
| 412 | 467 | ||
| 468 | *=*) | ||
| 469 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
| 470 | # Reject names that are not valid shell variable names. | ||
| 471 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
| 472 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
| 473 | { (exit 1); exit 1; }; } | ||
| 474 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
| 475 | eval "$ac_envvar='$ac_optarg'" | ||
| 476 | export $ac_envvar ;; | ||
| 477 | |||
| 413 | *) | 478 | *) |
| 414 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 479 | # FIXME: should be removed in autoconf 3.0. |
| 415 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | 480 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 416 | fi | 481 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 417 | if test "x$nonopt" != xNONE; then | 482 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 418 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 483 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 419 | fi | ||
| 420 | nonopt="$ac_option" | ||
| 421 | ;; | 484 | ;; |
| 422 | 485 | ||
| 423 | esac | 486 | esac |
| 424 | done | 487 | done |
| 425 | 488 | ||
| 426 | if test -n "$ac_prev"; then | 489 | if test -n "$ac_prev"; then |
| 427 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 490 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 428 | fi | 491 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 429 | 492 | { (exit 1); exit 1; }; } | |
| 430 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
| 431 | |||
| 432 | # File descriptor usage: | ||
| 433 | # 0 standard input | ||
| 434 | # 1 file creation | ||
| 435 | # 2 errors and warnings | ||
| 436 | # 3 some systems may open it to /dev/tty | ||
| 437 | # 4 used on the Kubota Titan | ||
| 438 | # 6 checking for... messages and results | ||
| 439 | # 5 compiler messages saved in config.log | ||
| 440 | if test "$silent" = yes; then | ||
| 441 | exec 6>/dev/null | ||
| 442 | else | ||
| 443 | exec 6>&1 | ||
| 444 | fi | 493 | fi |
| 445 | exec 5>./config.log | ||
| 446 | 494 | ||
| 447 | echo "\ | 495 | # Be sure to have absolute paths. |
| 448 | This file contains any messages produced by compilers while | 496 | for ac_var in exec_prefix prefix |
| 449 | running configure, to aid debugging if configure makes a mistake. | 497 | do |
| 450 | " 1>&5 | 498 | eval ac_val=$`echo $ac_var` |
| 499 | case $ac_val in | ||
| 500 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
| 501 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | ||
| 502 | { (exit 1); exit 1; }; };; | ||
| 503 | esac | ||
| 504 | done | ||
| 451 | 505 | ||
| 452 | # Strip out --no-create and --no-recursion so they do not pile up. | 506 | # Be sure to have absolute paths. |
| 453 | # Also quote any args containing shell metacharacters. | 507 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 454 | ac_configure_args= | 508 | localstatedir libdir includedir oldincludedir infodir mandir |
| 455 | for ac_arg | ||
| 456 | do | 509 | do |
| 457 | case "$ac_arg" in | 510 | eval ac_val=$`echo $ac_var` |
| 458 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 511 | case $ac_val in |
| 459 | | --no-cr | --no-c) ;; | 512 | [\\/$]* | ?:[\\/]* ) ;; |
| 460 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 513 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 461 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 514 | { (exit 1); exit 1; }; };; |
| 462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | ||
| 463 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
| 464 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | ||
| 465 | esac | 515 | esac |
| 466 | done | 516 | done |
| 467 | 517 | ||
| 468 | # NLS nuisances. | 518 | # There might be people who depend on the old broken behavior: `$host' |
| 469 | # Only set these to C if already set. These must not be set unconditionally | 519 | # used to hold the argument of --host etc. |
| 470 | # because not all systems understand e.g. LANG=C (notably SCO). | 520 | build=$build_alias |
| 471 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 521 | host=$host_alias |
| 472 | # Non-C LC_CTYPE values break the ctype check. | 522 | target=$target_alias |
| 473 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | 523 | |
| 474 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 524 | # FIXME: should be removed in autoconf 3.0. |
| 475 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 525 | if test "x$host_alias" != x; then |
| 476 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | 526 | if test "x$build_alias" = x; then |
| 527 | cross_compiling=maybe | ||
| 528 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
| 529 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
| 530 | elif test "x$build_alias" != "x$host_alias"; then | ||
| 531 | cross_compiling=yes | ||
| 532 | fi | ||
| 533 | fi | ||
| 477 | 534 | ||
| 478 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 535 | ac_tool_prefix= |
| 479 | rm -rf conftest* confdefs.h | 536 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 480 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
| 481 | echo > confdefs.h | ||
| 482 | 537 | ||
| 483 | # A filename unique to this package, relative to the directory that | 538 | test "$silent" = yes && exec 6>/dev/null |
| 484 | # configure is in, which we can look for to find out if srcdir is correct. | ||
| 485 | ac_unique_file=src/lisp.h | ||
| 486 | 539 | ||
| 487 | # Find the source files, if location was not specified. | 540 | # Find the source files, if location was not specified. |
| 488 | if test -z "$srcdir"; then | 541 | if test -z "$srcdir"; then |
| 489 | ac_srcdir_defaulted=yes | 542 | ac_srcdir_defaulted=yes |
| 490 | # Try the directory containing this script, then its parent. | 543 | # Try the directory containing this script, then its parent. |
| 491 | ac_prog=$0 | 544 | ac_prog=$0 |
| 492 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 545 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
| 493 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 546 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 494 | srcdir=$ac_confdir | 547 | srcdir=$ac_confdir |
| 495 | if test ! -r $srcdir/$ac_unique_file; then | 548 | if test ! -r $srcdir/$ac_unique_file; then |
| @@ -500,13 +553,327 @@ else | |||
| 500 | fi | 553 | fi |
| 501 | if test ! -r $srcdir/$ac_unique_file; then | 554 | if test ! -r $srcdir/$ac_unique_file; then |
| 502 | if test "$ac_srcdir_defaulted" = yes; then | 555 | if test "$ac_srcdir_defaulted" = yes; then |
| 503 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 556 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
| 557 | { (exit 1); exit 1; }; } | ||
| 504 | else | 558 | else |
| 505 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 559 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
| 560 | { (exit 1); exit 1; }; } | ||
| 506 | fi | 561 | fi |
| 507 | fi | 562 | fi |
| 508 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 563 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 564 | ac_env_build_alias_set=${build_alias+set} | ||
| 565 | ac_env_build_alias_value=$build_alias | ||
| 566 | ac_cv_env_build_alias_set=${build_alias+set} | ||
| 567 | ac_cv_env_build_alias_value=$build_alias | ||
| 568 | ac_env_host_alias_set=${host_alias+set} | ||
| 569 | ac_env_host_alias_value=$host_alias | ||
| 570 | ac_cv_env_host_alias_set=${host_alias+set} | ||
| 571 | ac_cv_env_host_alias_value=$host_alias | ||
| 572 | ac_env_target_alias_set=${target_alias+set} | ||
| 573 | ac_env_target_alias_value=$target_alias | ||
| 574 | ac_cv_env_target_alias_set=${target_alias+set} | ||
| 575 | ac_cv_env_target_alias_value=$target_alias | ||
| 576 | ac_env_CC_set=${CC+set} | ||
| 577 | ac_env_CC_value=$CC | ||
| 578 | ac_cv_env_CC_set=${CC+set} | ||
| 579 | ac_cv_env_CC_value=$CC | ||
| 580 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
| 581 | ac_env_CFLAGS_value=$CFLAGS | ||
| 582 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
| 583 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
| 584 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
| 585 | ac_env_LDFLAGS_value=$LDFLAGS | ||
| 586 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
| 587 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
| 588 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
| 589 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
| 590 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
| 591 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
| 592 | ac_env_CPP_set=${CPP+set} | ||
| 593 | ac_env_CPP_value=$CPP | ||
| 594 | ac_cv_env_CPP_set=${CPP+set} | ||
| 595 | ac_cv_env_CPP_value=$CPP | ||
| 596 | |||
| 597 | # | ||
| 598 | # Report the --help message. | ||
| 599 | # | ||
| 600 | if test "$ac_init_help" = "long"; then | ||
| 601 | # Omit some internal or obsolete options to make the list less imposing. | ||
| 602 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
| 603 | cat <<EOF | ||
| 604 | \`configure' configures this package to adapt to many kinds of systems. | ||
| 605 | |||
| 606 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
| 607 | |||
| 608 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
| 609 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
| 610 | |||
| 611 | Defaults for the options are specified in brackets. | ||
| 612 | |||
| 613 | Configuration: | ||
| 614 | -h, --help display this help and exit | ||
| 615 | --help=short display options specific to this package | ||
| 616 | --help=recursive display the short help of all the included packages | ||
| 617 | -V, --version display version information and exit | ||
| 618 | -q, --quiet, --silent do not print \`checking...' messages | ||
| 619 | --cache-file=FILE cache test results in FILE [disabled] | ||
| 620 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
| 621 | -n, --no-create do not create output files | ||
| 622 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
| 623 | |||
| 624 | EOF | ||
| 625 | |||
| 626 | cat <<EOF | ||
| 627 | Installation directories: | ||
| 628 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
| 629 | [$ac_default_prefix] | ||
| 630 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
| 631 | [PREFIX] | ||
| 632 | |||
| 633 | By default, \`make install' will install all the files in | ||
| 634 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
| 635 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
| 636 | for instance \`--prefix=\$HOME'. | ||
| 637 | |||
| 638 | For better control, use the options below. | ||
| 639 | |||
| 640 | Fine tuning of the installation directories: | ||
| 641 | --bindir=DIR user executables [EPREFIX/bin] | ||
| 642 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
| 643 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
| 644 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
| 645 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
| 646 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
| 647 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
| 648 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
| 649 | --includedir=DIR C header files [PREFIX/include] | ||
| 650 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
| 651 | --infodir=DIR info documentation [PREFIX/info] | ||
| 652 | --mandir=DIR man documentation [PREFIX/man] | ||
| 653 | EOF | ||
| 654 | |||
| 655 | cat <<\EOF | ||
| 656 | |||
| 657 | X features: | ||
| 658 | --x-includes=DIR X include files are in DIR | ||
| 659 | --x-libraries=DIR X library files are in DIR | ||
| 660 | |||
| 661 | System types: | ||
| 662 | --build=BUILD configure for building on BUILD [guessed] | ||
| 663 | --host=HOST build programs to run on HOST [BUILD] | ||
| 664 | EOF | ||
| 665 | fi | ||
| 666 | |||
| 667 | if test -n "$ac_init_help"; then | ||
| 668 | |||
| 669 | cat <<\EOF | ||
| 670 | |||
| 671 | Optional Features: | ||
| 672 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
| 673 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
| 674 | --disable-largefile omit support for large files | ||
| 675 | |||
| 676 | Optional Packages: | ||
| 677 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
| 678 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
| 679 | --without-gcc don't use GCC to compile Emacs if GCC is found | ||
| 680 | --without-pop don't support POP mail retrieval with movemail | ||
| 681 | --with-kerberos support Kerberos-authenticated POP | ||
| 682 | --with-kerberos5 support Kerberos version 5 authenticated POP | ||
| 683 | --with-hesiod support Hesiod to get the POP server host | ||
| 684 | --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) | ||
| 685 | --with-xpm use -lXpm for displaying XPM images | ||
| 686 | --with-jpeg use -ljpeg for displaying JPEG images | ||
| 687 | --with-tiff use -ltiff for displaying TIFF images | ||
| 688 | --with-gif use -lungif for displaying GIF images | ||
| 689 | --with-png use -lpng for displaying PNG images | ||
| 690 | --without-toolkit-scroll-bars | ||
| 691 | don't use Motif or Xaw3d scroll bars | ||
| 692 | --without-xim don't use X11 XIM | ||
| 693 | --with-x use the X Window System | ||
| 694 | |||
| 695 | Some influential environment variables: | ||
| 696 | CC C compiler command | ||
| 697 | CFLAGS C compiler flags | ||
| 698 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
| 699 | nonstandard directory <lib dir> | ||
| 700 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
| 701 | headers in a nonstandard directory <include dir> | ||
| 702 | CPP C preprocessor | ||
| 703 | |||
| 704 | Use these variables to override the choices made by `configure' or to help | ||
| 705 | it to find libraries and programs with nonstandard names/locations. | ||
| 706 | |||
| 707 | EOF | ||
| 708 | fi | ||
| 709 | |||
| 710 | if test "$ac_init_help" = "recursive"; then | ||
| 711 | # If there are subdirs, report their specific --help. | ||
| 712 | ac_popdir=`pwd` | ||
| 713 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | ||
| 714 | cd $ac_subdir | ||
| 715 | # A "../" for each directory in /$ac_subdir. | ||
| 716 | ac_dots=`echo $ac_subdir | | ||
| 717 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | ||
| 718 | |||
| 719 | case $srcdir in | ||
| 720 | .) # No --srcdir option. We are building in place. | ||
| 721 | ac_sub_srcdir=$srcdir ;; | ||
| 722 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
| 723 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | ||
| 724 | *) # Relative path. | ||
| 725 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | ||
| 726 | esac | ||
| 727 | |||
| 728 | # Check for guested configure; otherwise get Cygnus style configure. | ||
| 729 | if test -f $ac_sub_srcdir/configure.gnu; then | ||
| 730 | echo | ||
| 731 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | ||
| 732 | elif test -f $ac_sub_srcdir/configure; then | ||
| 733 | echo | ||
| 734 | $SHELL $ac_sub_srcdir/configure --help=recursive | ||
| 735 | elif test -f $ac_sub_srcdir/configure.ac || | ||
| 736 | test -f $ac_sub_srcdir/configure.in; then | ||
| 737 | echo | ||
| 738 | $ac_configure --help | ||
| 739 | else | ||
| 740 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | ||
| 741 | fi | ||
| 742 | cd $ac_popdir | ||
| 743 | done | ||
| 744 | fi | ||
| 745 | |||
| 746 | test -n "$ac_init_help" && exit 0 | ||
| 747 | if $ac_init_version; then | ||
| 748 | cat <<\EOF | ||
| 749 | |||
| 750 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
| 751 | Free Software Foundation, Inc. | ||
| 752 | This configure script is free software; the Free Software Foundation | ||
| 753 | gives unlimited permission to copy, distribute and modify it. | ||
| 754 | EOF | ||
| 755 | exit 0 | ||
| 756 | fi | ||
| 757 | exec 5>config.log | ||
| 758 | cat >&5 <<EOF | ||
| 759 | This file contains any messages produced by compilers while | ||
| 760 | running configure, to aid debugging if configure makes a mistake. | ||
| 761 | |||
| 762 | It was created by $as_me, which was | ||
| 763 | generated by GNU Autoconf 2.52. Invocation command line was | ||
| 764 | |||
| 765 | $ $0 $@ | ||
| 766 | |||
| 767 | EOF | ||
| 768 | { | ||
| 769 | cat <<_ASUNAME | ||
| 770 | ## ---------- ## | ||
| 771 | ## Platform. ## | ||
| 772 | ## ---------- ## | ||
| 773 | |||
| 774 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 775 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
| 776 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
| 777 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
| 778 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
| 509 | 779 | ||
| 780 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
| 781 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
| 782 | |||
| 783 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
| 784 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
| 785 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
| 786 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
| 787 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
| 788 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
| 789 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
| 790 | |||
| 791 | PATH = $PATH | ||
| 792 | |||
| 793 | _ASUNAME | ||
| 794 | } >&5 | ||
| 795 | |||
| 796 | cat >&5 <<EOF | ||
| 797 | ## ------------ ## | ||
| 798 | ## Core tests. ## | ||
| 799 | ## ------------ ## | ||
| 800 | |||
| 801 | EOF | ||
| 802 | |||
| 803 | # Keep a trace of the command line. | ||
| 804 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
| 805 | # Also quote any args containing shell meta-characters. | ||
| 806 | ac_configure_args= | ||
| 807 | ac_sep= | ||
| 808 | for ac_arg | ||
| 809 | do | ||
| 810 | case $ac_arg in | ||
| 811 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 812 | | --no-cr | --no-c) ;; | ||
| 813 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 814 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
| 815 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
| 816 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | ||
| 817 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
| 818 | ac_sep=" " ;; | ||
| 819 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | ||
| 820 | ac_sep=" " ;; | ||
| 821 | esac | ||
| 822 | # Get rid of the leading space. | ||
| 823 | done | ||
| 824 | |||
| 825 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
| 826 | # config.log. We remove comments because anyway the quotes in there | ||
| 827 | # would cause problems or look ugly. | ||
| 828 | trap 'exit_status=$? | ||
| 829 | # Save into config.log some information that might help in debugging. | ||
| 830 | echo >&5 | ||
| 831 | echo "## ----------------- ##" >&5 | ||
| 832 | echo "## Cache variables. ##" >&5 | ||
| 833 | echo "## ----------------- ##" >&5 | ||
| 834 | echo >&5 | ||
| 835 | # The following way of writing the cache mishandles newlines in values, | ||
| 836 | { | ||
| 837 | (set) 2>&1 | | ||
| 838 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
| 839 | *ac_space=\ *) | ||
| 840 | sed -n \ | ||
| 841 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
| 842 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
| 843 | ;; | ||
| 844 | *) | ||
| 845 | sed -n \ | ||
| 846 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
| 847 | ;; | ||
| 848 | esac; | ||
| 849 | } >&5 | ||
| 850 | sed "/^$/d" confdefs.h >conftest.log | ||
| 851 | if test -s conftest.log; then | ||
| 852 | echo >&5 | ||
| 853 | echo "## ------------ ##" >&5 | ||
| 854 | echo "## confdefs.h. ##" >&5 | ||
| 855 | echo "## ------------ ##" >&5 | ||
| 856 | echo >&5 | ||
| 857 | cat conftest.log >&5 | ||
| 858 | fi | ||
| 859 | (echo; echo) >&5 | ||
| 860 | test "$ac_signal" != 0 && | ||
| 861 | echo "$as_me: caught signal $ac_signal" >&5 | ||
| 862 | echo "$as_me: exit $exit_status" >&5 | ||
| 863 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | ||
| 864 | exit $exit_status | ||
| 865 | ' 0 | ||
| 866 | for ac_signal in 1 2 13 15; do | ||
| 867 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
| 868 | done | ||
| 869 | ac_signal=0 | ||
| 870 | |||
| 871 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
| 872 | rm -rf conftest* confdefs.h | ||
| 873 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
| 874 | echo >confdefs.h | ||
| 875 | |||
| 876 | # Let the site file select an alternate cache file if it wants to. | ||
| 510 | # Prefer explicitly selected file to automatically selected ones. | 877 | # Prefer explicitly selected file to automatically selected ones. |
| 511 | if test -z "$CONFIG_SITE"; then | 878 | if test -z "$CONFIG_SITE"; then |
| 512 | if test "x$prefix" != xNONE; then | 879 | if test "x$prefix" != xNONE; then |
| @@ -517,42 +884,109 @@ if test -z "$CONFIG_SITE"; then | |||
| 517 | fi | 884 | fi |
| 518 | for ac_site_file in $CONFIG_SITE; do | 885 | for ac_site_file in $CONFIG_SITE; do |
| 519 | if test -r "$ac_site_file"; then | 886 | if test -r "$ac_site_file"; then |
| 520 | echo "loading site script $ac_site_file" | 887 | { echo "$as_me:887: loading site script $ac_site_file" >&5 |
| 888 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
| 889 | cat "$ac_site_file" >&5 | ||
| 521 | . "$ac_site_file" | 890 | . "$ac_site_file" |
| 522 | fi | 891 | fi |
| 523 | done | 892 | done |
| 524 | 893 | ||
| 525 | if test -r "$cache_file"; then | 894 | if test -r "$cache_file"; then |
| 526 | echo "loading cache $cache_file" | 895 | # Some versions of bash will fail to source /dev/null (special |
| 527 | . $cache_file | 896 | # files actually), so we avoid doing that. |
| 897 | if test -f "$cache_file"; then | ||
| 898 | { echo "$as_me:898: loading cache $cache_file" >&5 | ||
| 899 | echo "$as_me: loading cache $cache_file" >&6;} | ||
| 900 | case $cache_file in | ||
| 901 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
| 902 | *) . ./$cache_file;; | ||
| 903 | esac | ||
| 904 | fi | ||
| 528 | else | 905 | else |
| 529 | echo "creating cache $cache_file" | 906 | { echo "$as_me:906: creating cache $cache_file" >&5 |
| 530 | > $cache_file | 907 | echo "$as_me: creating cache $cache_file" >&6;} |
| 908 | >$cache_file | ||
| 909 | fi | ||
| 910 | |||
| 911 | # Check that the precious variables saved in the cache have kept the same | ||
| 912 | # value. | ||
| 913 | ac_cache_corrupted=false | ||
| 914 | for ac_var in `(set) 2>&1 | | ||
| 915 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
| 916 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
| 917 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
| 918 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
| 919 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
| 920 | case $ac_old_set,$ac_new_set in | ||
| 921 | set,) | ||
| 922 | { echo "$as_me:922: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
| 923 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
| 924 | ac_cache_corrupted=: ;; | ||
| 925 | ,set) | ||
| 926 | { echo "$as_me:926: error: \`$ac_var' was not set in the previous run" >&5 | ||
| 927 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
| 928 | ac_cache_corrupted=: ;; | ||
| 929 | ,);; | ||
| 930 | *) | ||
| 931 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
| 932 | { echo "$as_me:932: error: \`$ac_var' has changed since the previous run:" >&5 | ||
| 933 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
| 934 | { echo "$as_me:934: former value: $ac_old_val" >&5 | ||
| 935 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
| 936 | { echo "$as_me:936: current value: $ac_new_val" >&5 | ||
| 937 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
| 938 | ac_cache_corrupted=: | ||
| 939 | fi;; | ||
| 940 | esac | ||
| 941 | # Pass precious variables to config.status. It doesn't matter if | ||
| 942 | # we pass some twice (in addition to the command line arguments). | ||
| 943 | if test "$ac_new_set" = set; then | ||
| 944 | case $ac_new_val in | ||
| 945 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
| 946 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | ||
| 947 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
| 948 | ;; | ||
| 949 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | ||
| 950 | ;; | ||
| 951 | esac | ||
| 952 | fi | ||
| 953 | done | ||
| 954 | if $ac_cache_corrupted; then | ||
| 955 | { echo "$as_me:955: error: changes in the environment can compromise the build" >&5 | ||
| 956 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
| 957 | { { echo "$as_me:957: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
| 958 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
| 959 | { (exit 1); exit 1; }; } | ||
| 531 | fi | 960 | fi |
| 532 | 961 | ||
| 533 | ac_ext=c | 962 | ac_ext=c |
| 534 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 535 | ac_cpp='$CPP $CPPFLAGS' | 963 | ac_cpp='$CPP $CPPFLAGS' |
| 536 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 537 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 538 | cross_compiling=$ac_cv_prog_cc_cross | 966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 539 | 967 | ||
| 540 | ac_exeext= | 968 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 541 | ac_objext=o | 969 | *c*,-n*) ECHO_N= ECHO_C=' |
| 542 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 970 | ' ECHO_T=' ' ;; |
| 543 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 971 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 544 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 972 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 545 | ac_n= ac_c=' | 973 | esac |
| 546 | ' ac_t=' ' | 974 | echo "#! $SHELL" >conftest.sh |
| 547 | else | 975 | echo "exit 0" >>conftest.sh |
| 548 | ac_n=-n ac_c= ac_t= | 976 | chmod +x conftest.sh |
| 549 | fi | 977 | if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5 |
| 978 | (PATH=".;."; conftest.sh) 2>&5 | ||
| 979 | ac_status=$? | ||
| 980 | echo "$as_me:980: \$? = $ac_status" >&5 | ||
| 981 | (exit $ac_status); }; then | ||
| 982 | ac_path_separator=';' | ||
| 550 | else | 983 | else |
| 551 | ac_n= ac_c='\c' ac_t= | 984 | ac_path_separator=: |
| 552 | fi | 985 | fi |
| 986 | PATH_SEPARATOR="$ac_path_separator" | ||
| 987 | rm -f conftest.sh | ||
| 553 | 988 | ||
| 554 | 989 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
| 555 | |||
| 556 | 990 | ||
| 557 | lispdir='${datadir}/emacs/${version}/lisp' | 991 | lispdir='${datadir}/emacs/${version}/lisp' |
| 558 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | 992 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ |
| @@ -565,34 +999,34 @@ docdir='${datadir}/emacs/${version}/etc' | |||
| 565 | # Check whether --with-gcc or --without-gcc was given. | 999 | # Check whether --with-gcc or --without-gcc was given. |
| 566 | if test "${with_gcc+set}" = set; then | 1000 | if test "${with_gcc+set}" = set; then |
| 567 | withval="$with_gcc" | 1001 | withval="$with_gcc" |
| 568 | : | 1002 | |
| 569 | fi | 1003 | fi; |
| 570 | 1004 | ||
| 571 | # Check whether --with-pop or --without-pop was given. | 1005 | # Check whether --with-pop or --without-pop was given. |
| 572 | if test "${with_pop+set}" = set; then | 1006 | if test "${with_pop+set}" = set; then |
| 573 | withval="$with_pop" | 1007 | withval="$with_pop" |
| 574 | if test "$withval" = yes; then | 1008 | if test "$withval" = yes; then |
| 575 | cat >> confdefs.h <<\EOF | 1009 | cat >>confdefs.h <<\EOF |
| 576 | #define MAIL_USE_POP 1 | 1010 | #define MAIL_USE_POP 1 |
| 577 | EOF | 1011 | EOF |
| 578 | 1012 | ||
| 579 | else : | 1013 | else : |
| 580 | fi | 1014 | fi |
| 581 | else | 1015 | else |
| 582 | cat >> confdefs.h <<\EOF | 1016 | cat >>confdefs.h <<\EOF |
| 583 | #define MAIL_USE_POP 1 | 1017 | #define MAIL_USE_POP 1 |
| 584 | EOF | 1018 | EOF |
| 585 | 1019 | ||
| 586 | fi | 1020 | fi; |
| 587 | 1021 | ||
| 588 | # Check whether --with-kerberos or --without-kerberos was given. | 1022 | # Check whether --with-kerberos or --without-kerberos was given. |
| 589 | if test "${with_kerberos+set}" = set; then | 1023 | if test "${with_kerberos+set}" = set; then |
| 590 | withval="$with_kerberos" | 1024 | withval="$with_kerberos" |
| 591 | cat >> confdefs.h <<\EOF | 1025 | cat >>confdefs.h <<\EOF |
| 592 | #define KERBEROS 1 | 1026 | #define KERBEROS 1 |
| 593 | EOF | 1027 | EOF |
| 594 | 1028 | ||
| 595 | fi | 1029 | fi; |
| 596 | 1030 | ||
| 597 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | 1031 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
| 598 | if test "${with_kerberos5+set}" = set; then | 1032 | if test "${with_kerberos5+set}" = set; then |
| @@ -600,26 +1034,26 @@ if test "${with_kerberos5+set}" = set; then | |||
| 600 | if test "${with_kerberos5+set}" = set; then | 1034 | if test "${with_kerberos5+set}" = set; then |
| 601 | if test "${with_kerberos+set}" != set; then | 1035 | if test "${with_kerberos+set}" != set; then |
| 602 | with_kerberos=yes | 1036 | with_kerberos=yes |
| 603 | cat >> confdefs.h <<\EOF | 1037 | cat >>confdefs.h <<\EOF |
| 604 | #define KERBEROS 1 | 1038 | #define KERBEROS 1 |
| 605 | EOF | 1039 | EOF |
| 606 | 1040 | ||
| 607 | fi | 1041 | fi |
| 608 | fi | 1042 | fi |
| 609 | cat >> confdefs.h <<\EOF | 1043 | cat >>confdefs.h <<\EOF |
| 610 | #define KERBEROS5 1 | 1044 | #define KERBEROS5 1 |
| 611 | EOF | 1045 | EOF |
| 612 | 1046 | ||
| 613 | fi | 1047 | fi; |
| 614 | 1048 | ||
| 615 | # Check whether --with-hesiod or --without-hesiod was given. | 1049 | # Check whether --with-hesiod or --without-hesiod was given. |
| 616 | if test "${with_hesiod+set}" = set; then | 1050 | if test "${with_hesiod+set}" = set; then |
| 617 | withval="$with_hesiod" | 1051 | withval="$with_hesiod" |
| 618 | cat >> confdefs.h <<\EOF | 1052 | cat >>confdefs.h <<\EOF |
| 619 | #define HESIOD 1 | 1053 | #define HESIOD 1 |
| 620 | EOF | 1054 | EOF |
| 621 | 1055 | ||
| 622 | fi | 1056 | fi; |
| 623 | 1057 | ||
| 624 | # Check whether --with-x-toolkit or --without-x-toolkit was given. | 1058 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
| 625 | if test "${with_x_toolkit+set}" = set; then | 1059 | if test "${with_x_toolkit+set}" = set; then |
| @@ -631,57 +1065,60 @@ if test "${with_x_toolkit+set}" = set; then | |||
| 631 | a | at | ath | athe | athen | athena ) val=athena ;; | 1065 | a | at | ath | athe | athen | athena ) val=athena ;; |
| 632 | m | mo | mot | moti | motif ) val=motif ;; | 1066 | m | mo | mot | moti | motif ) val=motif ;; |
| 633 | * ) | 1067 | * ) |
| 634 | { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\; | 1068 | { { echo "$as_me:1068: error: \`--with-x-toolkit=$withval' is invalid\; |
| 1069 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | ||
| 1070 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 | ||
| 1071 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | ||
| 635 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | 1072 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
| 636 | Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; } | 1073 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
| 1074 | { (exit 1); exit 1; }; } | ||
| 637 | ;; | 1075 | ;; |
| 638 | esac | 1076 | esac |
| 639 | with_x_toolkit=$val | 1077 | with_x_toolkit=$val |
| 640 | 1078 | ||
| 641 | fi | 1079 | fi; |
| 642 | 1080 | ||
| 643 | # Check whether --with-xpm or --without-xpm was given. | 1081 | # Check whether --with-xpm or --without-xpm was given. |
| 644 | if test "${with_xpm+set}" = set; then | 1082 | if test "${with_xpm+set}" = set; then |
| 645 | withval="$with_xpm" | 1083 | withval="$with_xpm" |
| 646 | : | 1084 | |
| 647 | fi | 1085 | fi; |
| 648 | 1086 | ||
| 649 | # Check whether --with-jpeg or --without-jpeg was given. | 1087 | # Check whether --with-jpeg or --without-jpeg was given. |
| 650 | if test "${with_jpeg+set}" = set; then | 1088 | if test "${with_jpeg+set}" = set; then |
| 651 | withval="$with_jpeg" | 1089 | withval="$with_jpeg" |
| 652 | : | 1090 | |
| 653 | fi | 1091 | fi; |
| 654 | 1092 | ||
| 655 | # Check whether --with-tiff or --without-tiff was given. | 1093 | # Check whether --with-tiff or --without-tiff was given. |
| 656 | if test "${with_tiff+set}" = set; then | 1094 | if test "${with_tiff+set}" = set; then |
| 657 | withval="$with_tiff" | 1095 | withval="$with_tiff" |
| 658 | : | 1096 | |
| 659 | fi | 1097 | fi; |
| 660 | 1098 | ||
| 661 | # Check whether --with-gif or --without-gif was given. | 1099 | # Check whether --with-gif or --without-gif was given. |
| 662 | if test "${with_gif+set}" = set; then | 1100 | if test "${with_gif+set}" = set; then |
| 663 | withval="$with_gif" | 1101 | withval="$with_gif" |
| 664 | : | 1102 | |
| 665 | fi | 1103 | fi; |
| 666 | 1104 | ||
| 667 | # Check whether --with-png or --without-png was given. | 1105 | # Check whether --with-png or --without-png was given. |
| 668 | if test "${with_png+set}" = set; then | 1106 | if test "${with_png+set}" = set; then |
| 669 | withval="$with_png" | 1107 | withval="$with_png" |
| 670 | : | 1108 | |
| 671 | fi | 1109 | fi; |
| 672 | 1110 | ||
| 673 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | 1111 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. |
| 674 | if test "${with_toolkit_scroll_bars+set}" = set; then | 1112 | if test "${with_toolkit_scroll_bars+set}" = set; then |
| 675 | withval="$with_toolkit_scroll_bars" | 1113 | withval="$with_toolkit_scroll_bars" |
| 676 | : | 1114 | |
| 677 | fi | 1115 | fi; |
| 678 | 1116 | ||
| 679 | # Check whether --with-xim or --without-xim was given. | 1117 | # Check whether --with-xim or --without-xim was given. |
| 680 | if test "${with_xim+set}" = set; then | 1118 | if test "${with_xim+set}" = set; then |
| 681 | withval="$with_xim" | 1119 | withval="$with_xim" |
| 682 | : | ||
| 683 | fi | ||
| 684 | 1120 | ||
| 1121 | fi; | ||
| 685 | 1122 | ||
| 686 | #### Make srcdir absolute, if it isn't already. It's important to | 1123 | #### Make srcdir absolute, if it isn't already. It's important to |
| 687 | #### avoid running the path through pwd unnecessarily, since pwd can | 1124 | #### avoid running the path through pwd unnecessarily, since pwd can |
| @@ -707,12 +1144,18 @@ esac | |||
| 707 | #### Check if the source directory already has a configured system in it. | 1144 | #### Check if the source directory already has a configured system in it. |
| 708 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | 1145 | if test `pwd` != `(cd ${srcdir} && pwd)` \ |
| 709 | && test -f "${srcdir}/src/config.h" ; then | 1146 | && test -f "${srcdir}/src/config.h" ; then |
| 710 | echo "configure: warning: The directory tree \`${srcdir}' is being used | 1147 | { echo "$as_me:1147: WARNING: The directory tree \`${srcdir}' is being used |
| 711 | as a build directory right now; it has been configured in its own | 1148 | as a build directory right now; it has been configured in its own |
| 712 | right. To configure in another directory as well, you MUST | 1149 | right. To configure in another directory as well, you MUST |
| 713 | use GNU make. If you do not have GNU make, then you must | 1150 | use GNU make. If you do not have GNU make, then you must |
| 714 | now do \`make distclean' in ${srcdir}, | 1151 | now do \`make distclean' in ${srcdir}, |
| 715 | and then run $0 again." 1>&2 | 1152 | and then run $0 again." >&5 |
| 1153 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | ||
| 1154 | as a build directory right now; it has been configured in its own | ||
| 1155 | right. To configure in another directory as well, you MUST | ||
| 1156 | use GNU make. If you do not have GNU make, then you must | ||
| 1157 | now do \`make distclean' in ${srcdir}, | ||
| 1158 | and then run $0 again." >&2;} | ||
| 716 | 1159 | ||
| 717 | extrasub='/^VPATH[ ]*=/c\ | 1160 | extrasub='/^VPATH[ ]*=/c\ |
| 718 | vpath %.c $(srcdir)\ | 1161 | vpath %.c $(srcdir)\ |
| @@ -739,46 +1182,76 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |||
| 739 | ac_aux_dir=$ac_dir | 1182 | ac_aux_dir=$ac_dir |
| 740 | ac_install_sh="$ac_aux_dir/install.sh -c" | 1183 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 741 | break | 1184 | break |
| 1185 | elif test -f $ac_dir/shtool; then | ||
| 1186 | ac_aux_dir=$ac_dir | ||
| 1187 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
| 1188 | break | ||
| 742 | fi | 1189 | fi |
| 743 | done | 1190 | done |
| 744 | if test -z "$ac_aux_dir"; then | 1191 | if test -z "$ac_aux_dir"; then |
| 745 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | 1192 | { { echo "$as_me:1192: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1193 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
| 1194 | { (exit 1); exit 1; }; } | ||
| 746 | fi | 1195 | fi |
| 747 | ac_config_guess=$ac_aux_dir/config.guess | 1196 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 748 | ac_config_sub=$ac_aux_dir/config.sub | 1197 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 749 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 1198 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 750 | |||
| 751 | 1199 | ||
| 752 | # Make sure we can run config.sub. | 1200 | # Make sure we can run config.sub. |
| 753 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | 1201 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 754 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | 1202 | { { echo "$as_me:1202: error: cannot run $ac_config_sub" >&5 |
| 755 | fi | 1203 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 756 | 1204 | { (exit 1); exit 1; }; } | |
| 757 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | 1205 | |
| 758 | echo "configure:759: checking host system type" >&5 | 1206 | echo "$as_me:1206: checking build system type" >&5 |
| 759 | 1207 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
| 760 | host_alias=$host | 1208 | if test "${ac_cv_build+set}" = set; then |
| 761 | case "$host_alias" in | 1209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 762 | NONE) | 1210 | else |
| 763 | case $nonopt in | 1211 | ac_cv_build_alias=$build_alias |
| 764 | NONE) | 1212 | test -z "$ac_cv_build_alias" && |
| 765 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | 1213 | ac_cv_build_alias=`$ac_config_guess` |
| 766 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | 1214 | test -z "$ac_cv_build_alias" && |
| 767 | fi ;; | 1215 | { { echo "$as_me:1215: error: cannot guess build type; you must specify one" >&5 |
| 768 | *) host_alias=$nonopt ;; | 1216 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 769 | esac ;; | 1217 | { (exit 1); exit 1; }; } |
| 770 | esac | 1218 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 771 | 1219 | { { echo "$as_me:1219: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
| 772 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | 1220 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
| 773 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 1221 | { (exit 1); exit 1; }; } |
| 774 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 1222 | |
| 775 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 1223 | fi |
| 776 | echo "$ac_t""$host" 1>&6 | 1224 | echo "$as_me:1224: result: $ac_cv_build" >&5 |
| 1225 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
| 1226 | build=$ac_cv_build | ||
| 1227 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 1228 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 1229 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 1230 | |||
| 1231 | echo "$as_me:1231: checking host system type" >&5 | ||
| 1232 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
| 1233 | if test "${ac_cv_host+set}" = set; then | ||
| 1234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1235 | else | ||
| 1236 | ac_cv_host_alias=$host_alias | ||
| 1237 | test -z "$ac_cv_host_alias" && | ||
| 1238 | ac_cv_host_alias=$ac_cv_build_alias | ||
| 1239 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
| 1240 | { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
| 1241 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
| 1242 | { (exit 1); exit 1; }; } | ||
| 1243 | |||
| 1244 | fi | ||
| 1245 | echo "$as_me:1245: result: $ac_cv_host" >&5 | ||
| 1246 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
| 1247 | host=$ac_cv_host | ||
| 1248 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 1249 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 1250 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 777 | 1251 | ||
| 778 | canonical=$host | 1252 | canonical=$host |
| 779 | configuration=$host_alias | 1253 | configuration=$host_alias |
| 780 | 1254 | ||
| 781 | |||
| 782 | ### If you add support for a new configuration, add code to this | 1255 | ### If you add support for a new configuration, add code to this |
| 783 | ### switch statement to recognize your configuration name and select | 1256 | ### switch statement to recognize your configuration name and select |
| 784 | ### the appropriate operating system and machine description files. | 1257 | ### the appropriate operating system and machine description files. |
| @@ -1635,7 +2108,7 @@ case "${canonical}" in | |||
| 1635 | *-xenix* ) opsys=xenix ;; | 2108 | *-xenix* ) opsys=xenix ;; |
| 1636 | *-linux-gnu* ) opsys=gnu-linux ;; | 2109 | *-linux-gnu* ) opsys=gnu-linux ;; |
| 1637 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | 2110 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; |
| 1638 | *-sco3.2v5* ) opsys=sco5 | 2111 | *-sco3.2v5* ) opsys=sco5 |
| 1639 | NON_GNU_CPP=/lib/cpp | 2112 | NON_GNU_CPP=/lib/cpp |
| 1640 | # Prevent -belf from being passed to $CPP. | 2113 | # Prevent -belf from being passed to $CPP. |
| 1641 | # /lib/cpp does not accept it. | 2114 | # /lib/cpp does not accept it. |
| @@ -1712,16 +2185,17 @@ if test x"${opsys}" = x; then | |||
| 1712 | esac | 2185 | esac |
| 1713 | fi | 2186 | fi |
| 1714 | 2187 | ||
| 1715 | |||
| 1716 | if test $unported = yes; then | 2188 | if test $unported = yes; then |
| 1717 | { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems. | 2189 | { { echo "$as_me:2189: error: Emacs hasn't been ported to \`${canonical}' systems. |
| 1718 | Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; } | 2190 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
| 2191 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | ||
| 2192 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | ||
| 2193 | { (exit 1); exit 1; }; } | ||
| 1719 | fi | 2194 | fi |
| 1720 | 2195 | ||
| 1721 | machfile="m/${machine}.h" | 2196 | machfile="m/${machine}.h" |
| 1722 | opsysfile="s/${opsys}.h" | 2197 | opsysfile="s/${opsys}.h" |
| 1723 | 2198 | ||
| 1724 | |||
| 1725 | #### Choose a compiler. | 2199 | #### Choose a compiler. |
| 1726 | test -n "$CC" && cc_specified=yes | 2200 | test -n "$CC" && cc_specified=yes |
| 1727 | 2201 | ||
| @@ -1731,214 +2205,580 @@ SPECIFIED_CFLAGS="$CFLAGS" | |||
| 1731 | case ${with_gcc} in | 2205 | case ${with_gcc} in |
| 1732 | "yes" ) CC="gcc" GCC=yes ;; | 2206 | "yes" ) CC="gcc" GCC=yes ;; |
| 1733 | "no" ) : ${CC=cc} ;; | 2207 | "no" ) : ${CC=cc} ;; |
| 1734 | * ) # Extract the first word of "gcc", so it can be a program name with args. | 2208 | * ) |
| 2209 | esac | ||
| 2210 | ac_ext=c | ||
| 2211 | ac_cpp='$CPP $CPPFLAGS' | ||
| 2212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2215 | if test -n "$ac_tool_prefix"; then | ||
| 2216 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
| 2217 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
| 2218 | echo "$as_me:2218: checking for $ac_word" >&5 | ||
| 2219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 2220 | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 2221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2222 | else | ||
| 2223 | if test -n "$CC"; then | ||
| 2224 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 2225 | else | ||
| 2226 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
| 2227 | ac_dummy="$PATH" | ||
| 2228 | for ac_dir in $ac_dummy; do | ||
| 2229 | IFS=$ac_save_IFS | ||
| 2230 | test -z "$ac_dir" && ac_dir=. | ||
| 2231 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
| 2232 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
| 2233 | echo "$as_me:2233: found $ac_dir/$ac_word" >&5 | ||
| 2234 | break | ||
| 2235 | done | ||
| 2236 | |||
| 2237 | fi | ||
| 2238 | fi | ||
| 2239 | CC=$ac_cv_prog_CC | ||
| 2240 | if test -n "$CC"; then | ||
| 2241 | echo "$as_me:2241: result: $CC" >&5 | ||
| 2242 | echo "${ECHO_T}$CC" >&6 | ||
| 2243 | else | ||
| 2244 | echo "$as_me:2244: result: no" >&5 | ||
| 2245 | echo "${ECHO_T}no" >&6 | ||
| 2246 | fi | ||
| 2247 | |||
| 2248 | fi | ||
| 2249 | if test -z "$ac_cv_prog_CC"; then | ||
| 2250 | ac_ct_CC=$CC | ||
| 2251 | # Extract the first word of "gcc", so it can be a program name with args. | ||
| 1735 | set dummy gcc; ac_word=$2 | 2252 | set dummy gcc; ac_word=$2 |
| 1736 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2253 | echo "$as_me:2253: checking for $ac_word" >&5 |
| 1737 | echo "configure:1738: checking for $ac_word" >&5 | 2254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1738 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 2255 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1739 | echo $ac_n "(cached) $ac_c" 1>&6 | 2256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2257 | else | ||
| 2258 | if test -n "$ac_ct_CC"; then | ||
| 2259 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 2260 | else | ||
| 2261 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
| 2262 | ac_dummy="$PATH" | ||
| 2263 | for ac_dir in $ac_dummy; do | ||
| 2264 | IFS=$ac_save_IFS | ||
| 2265 | test -z "$ac_dir" && ac_dir=. | ||
| 2266 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
| 2267 | ac_cv_prog_ac_ct_CC="gcc" | ||
| 2268 | echo "$as_me:2268: found $ac_dir/$ac_word" >&5 | ||
| 2269 | break | ||
| 2270 | done | ||
| 2271 | |||
| 2272 | fi | ||
| 2273 | fi | ||
| 2274 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 2275 | if test -n "$ac_ct_CC"; then | ||
| 2276 | echo "$as_me:2276: result: $ac_ct_CC" >&5 | ||
| 2277 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
| 2278 | else | ||
| 2279 | echo "$as_me:2279: result: no" >&5 | ||
| 2280 | echo "${ECHO_T}no" >&6 | ||
| 2281 | fi | ||
| 2282 | |||
| 2283 | CC=$ac_ct_CC | ||
| 2284 | else | ||
| 2285 | CC="$ac_cv_prog_CC" | ||
| 2286 | fi | ||
| 2287 | |||
| 2288 | if test -z "$CC"; then | ||
| 2289 | if test -n "$ac_tool_prefix"; then | ||
| 2290 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
| 2291 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
| 2292 | echo "$as_me:2292: checking for $ac_word" >&5 | ||
| 2293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 2294 | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 2295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1740 | else | 2296 | else |
| 1741 | if test -n "$CC"; then | 2297 | if test -n "$CC"; then |
| 1742 | ac_cv_prog_CC="$CC" # Let the user override the test. | 2298 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1743 | else | 2299 | else |
| 1744 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 2300 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1745 | ac_dummy="$PATH" | 2301 | ac_dummy="$PATH" |
| 1746 | for ac_dir in $ac_dummy; do | 2302 | for ac_dir in $ac_dummy; do |
| 1747 | test -z "$ac_dir" && ac_dir=. | 2303 | IFS=$ac_save_IFS |
| 1748 | if test -f $ac_dir/$ac_word; then | 2304 | test -z "$ac_dir" && ac_dir=. |
| 1749 | ac_cv_prog_CC="gcc" | 2305 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1750 | break | 2306 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1751 | fi | 2307 | echo "$as_me:2307: found $ac_dir/$ac_word" >&5 |
| 1752 | done | 2308 | break |
| 1753 | IFS="$ac_save_ifs" | 2309 | done |
| 2310 | |||
| 1754 | fi | 2311 | fi |
| 1755 | fi | 2312 | fi |
| 1756 | CC="$ac_cv_prog_CC" | 2313 | CC=$ac_cv_prog_CC |
| 1757 | if test -n "$CC"; then | 2314 | if test -n "$CC"; then |
| 1758 | echo "$ac_t""$CC" 1>&6 | 2315 | echo "$as_me:2315: result: $CC" >&5 |
| 2316 | echo "${ECHO_T}$CC" >&6 | ||
| 2317 | else | ||
| 2318 | echo "$as_me:2318: result: no" >&5 | ||
| 2319 | echo "${ECHO_T}no" >&6 | ||
| 2320 | fi | ||
| 2321 | |||
| 2322 | fi | ||
| 2323 | if test -z "$ac_cv_prog_CC"; then | ||
| 2324 | ac_ct_CC=$CC | ||
| 2325 | # Extract the first word of "cc", so it can be a program name with args. | ||
| 2326 | set dummy cc; ac_word=$2 | ||
| 2327 | echo "$as_me:2327: checking for $ac_word" >&5 | ||
| 2328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 2329 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2331 | else | ||
| 2332 | if test -n "$ac_ct_CC"; then | ||
| 2333 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 2334 | else | ||
| 2335 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
| 2336 | ac_dummy="$PATH" | ||
| 2337 | for ac_dir in $ac_dummy; do | ||
| 2338 | IFS=$ac_save_IFS | ||
| 2339 | test -z "$ac_dir" && ac_dir=. | ||
| 2340 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
| 2341 | ac_cv_prog_ac_ct_CC="cc" | ||
| 2342 | echo "$as_me:2342: found $ac_dir/$ac_word" >&5 | ||
| 2343 | break | ||
| 2344 | done | ||
| 2345 | |||
| 2346 | fi | ||
| 2347 | fi | ||
| 2348 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 2349 | if test -n "$ac_ct_CC"; then | ||
| 2350 | echo "$as_me:2350: result: $ac_ct_CC" >&5 | ||
| 2351 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
| 1759 | else | 2352 | else |
| 1760 | echo "$ac_t""no" 1>&6 | 2353 | echo "$as_me:2353: result: no" >&5 |
| 2354 | echo "${ECHO_T}no" >&6 | ||
| 1761 | fi | 2355 | fi |
| 1762 | 2356 | ||
| 2357 | CC=$ac_ct_CC | ||
| 2358 | else | ||
| 2359 | CC="$ac_cv_prog_CC" | ||
| 2360 | fi | ||
| 2361 | |||
| 2362 | fi | ||
| 1763 | if test -z "$CC"; then | 2363 | if test -z "$CC"; then |
| 1764 | # Extract the first word of "cc", so it can be a program name with args. | 2364 | # Extract the first word of "cc", so it can be a program name with args. |
| 1765 | set dummy cc; ac_word=$2 | 2365 | set dummy cc; ac_word=$2 |
| 1766 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2366 | echo "$as_me:2366: checking for $ac_word" >&5 |
| 1767 | echo "configure:1768: checking for $ac_word" >&5 | 2367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1768 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 2368 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1769 | echo $ac_n "(cached) $ac_c" 1>&6 | 2369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1770 | else | 2370 | else |
| 1771 | if test -n "$CC"; then | 2371 | if test -n "$CC"; then |
| 1772 | ac_cv_prog_CC="$CC" # Let the user override the test. | 2372 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1773 | else | 2373 | else |
| 1774 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1775 | ac_prog_rejected=no | 2374 | ac_prog_rejected=no |
| 1776 | ac_dummy="$PATH" | 2375 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1777 | for ac_dir in $ac_dummy; do | 2376 | ac_dummy="$PATH" |
| 1778 | test -z "$ac_dir" && ac_dir=. | 2377 | for ac_dir in $ac_dummy; do |
| 1779 | if test -f $ac_dir/$ac_word; then | 2378 | IFS=$ac_save_IFS |
| 1780 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 2379 | test -z "$ac_dir" && ac_dir=. |
| 1781 | ac_prog_rejected=yes | 2380 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1782 | continue | 2381 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1783 | fi | 2382 | ac_prog_rejected=yes |
| 1784 | ac_cv_prog_CC="cc" | 2383 | continue |
| 1785 | break | 2384 | fi |
| 1786 | fi | 2385 | ac_cv_prog_CC="cc" |
| 1787 | done | 2386 | echo "$as_me:2386: found $ac_dir/$ac_word" >&5 |
| 1788 | IFS="$ac_save_ifs" | 2387 | break |
| 2388 | done | ||
| 2389 | |||
| 1789 | if test $ac_prog_rejected = yes; then | 2390 | if test $ac_prog_rejected = yes; then |
| 1790 | # We found a bogon in the path, so make sure we never use it. | 2391 | # We found a bogon in the path, so make sure we never use it. |
| 1791 | set dummy $ac_cv_prog_CC | 2392 | set dummy $ac_cv_prog_CC |
| 1792 | shift | 2393 | shift |
| 1793 | if test $# -gt 0; then | 2394 | if test $# != 0; then |
| 1794 | # We chose a different compiler from the bogus one. | 2395 | # We chose a different compiler from the bogus one. |
| 1795 | # However, it has the same basename, so the bogon will be chosen | 2396 | # However, it has the same basename, so the bogon will be chosen |
| 1796 | # first if we set CC to just the basename; use the full file name. | 2397 | # first if we set CC to just the basename; use the full file name. |
| 1797 | shift | 2398 | shift |
| 1798 | set dummy "$ac_dir/$ac_word" "$@" | 2399 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
| 1799 | shift | 2400 | shift |
| 1800 | ac_cv_prog_CC="$@" | 2401 | ac_cv_prog_CC="$@" |
| 1801 | fi | 2402 | fi |
| 1802 | fi | 2403 | fi |
| 1803 | fi | 2404 | fi |
| 1804 | fi | 2405 | fi |
| 1805 | CC="$ac_cv_prog_CC" | 2406 | CC=$ac_cv_prog_CC |
| 1806 | if test -n "$CC"; then | 2407 | if test -n "$CC"; then |
| 1807 | echo "$ac_t""$CC" 1>&6 | 2408 | echo "$as_me:2408: result: $CC" >&5 |
| 2409 | echo "${ECHO_T}$CC" >&6 | ||
| 1808 | else | 2410 | else |
| 1809 | echo "$ac_t""no" 1>&6 | 2411 | echo "$as_me:2411: result: no" >&5 |
| 2412 | echo "${ECHO_T}no" >&6 | ||
| 1810 | fi | 2413 | fi |
| 1811 | 2414 | ||
| 1812 | if test -z "$CC"; then | 2415 | fi |
| 1813 | case "`uname -s`" in | 2416 | if test -z "$CC"; then |
| 1814 | *win32* | *WIN32*) | 2417 | if test -n "$ac_tool_prefix"; then |
| 1815 | # Extract the first word of "cl", so it can be a program name with args. | 2418 | for ac_prog in cl |
| 1816 | set dummy cl; ac_word=$2 | 2419 | do |
| 1817 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2420 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1818 | echo "configure:1819: checking for $ac_word" >&5 | 2421 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1819 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 2422 | echo "$as_me:2422: checking for $ac_word" >&5 |
| 1820 | echo $ac_n "(cached) $ac_c" 1>&6 | 2423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2424 | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 2425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1821 | else | 2426 | else |
| 1822 | if test -n "$CC"; then | 2427 | if test -n "$CC"; then |
| 1823 | ac_cv_prog_CC="$CC" # Let the user override the test. | 2428 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1824 | else | 2429 | else |
| 1825 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 2430 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1826 | ac_dummy="$PATH" | 2431 | ac_dummy="$PATH" |
| 1827 | for ac_dir in $ac_dummy; do | 2432 | for ac_dir in $ac_dummy; do |
| 1828 | test -z "$ac_dir" && ac_dir=. | 2433 | IFS=$ac_save_IFS |
| 1829 | if test -f $ac_dir/$ac_word; then | 2434 | test -z "$ac_dir" && ac_dir=. |
| 1830 | ac_cv_prog_CC="cl" | 2435 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1831 | break | 2436 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1832 | fi | 2437 | echo "$as_me:2437: found $ac_dir/$ac_word" >&5 |
| 1833 | done | 2438 | break |
| 1834 | IFS="$ac_save_ifs" | 2439 | done |
| 2440 | |||
| 1835 | fi | 2441 | fi |
| 1836 | fi | 2442 | fi |
| 1837 | CC="$ac_cv_prog_CC" | 2443 | CC=$ac_cv_prog_CC |
| 1838 | if test -n "$CC"; then | 2444 | if test -n "$CC"; then |
| 1839 | echo "$ac_t""$CC" 1>&6 | 2445 | echo "$as_me:2445: result: $CC" >&5 |
| 2446 | echo "${ECHO_T}$CC" >&6 | ||
| 1840 | else | 2447 | else |
| 1841 | echo "$ac_t""no" 1>&6 | 2448 | echo "$as_me:2448: result: no" >&5 |
| 2449 | echo "${ECHO_T}no" >&6 | ||
| 1842 | fi | 2450 | fi |
| 1843 | ;; | 2451 | |
| 1844 | esac | 2452 | test -n "$CC" && break |
| 1845 | fi | 2453 | done |
| 1846 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | ||
| 1847 | fi | 2454 | fi |
| 2455 | if test -z "$CC"; then | ||
| 2456 | ac_ct_CC=$CC | ||
| 2457 | for ac_prog in cl | ||
| 2458 | do | ||
| 2459 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 2460 | set dummy $ac_prog; ac_word=$2 | ||
| 2461 | echo "$as_me:2461: checking for $ac_word" >&5 | ||
| 2462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 2463 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2465 | else | ||
| 2466 | if test -n "$ac_ct_CC"; then | ||
| 2467 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 2468 | else | ||
| 2469 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
| 2470 | ac_dummy="$PATH" | ||
| 2471 | for ac_dir in $ac_dummy; do | ||
| 2472 | IFS=$ac_save_IFS | ||
| 2473 | test -z "$ac_dir" && ac_dir=. | ||
| 2474 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
| 2475 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
| 2476 | echo "$as_me:2476: found $ac_dir/$ac_word" >&5 | ||
| 2477 | break | ||
| 2478 | done | ||
| 1848 | 2479 | ||
| 1849 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 2480 | fi |
| 1850 | echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 2481 | fi |
| 2482 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 2483 | if test -n "$ac_ct_CC"; then | ||
| 2484 | echo "$as_me:2484: result: $ac_ct_CC" >&5 | ||
| 2485 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
| 2486 | else | ||
| 2487 | echo "$as_me:2487: result: no" >&5 | ||
| 2488 | echo "${ECHO_T}no" >&6 | ||
| 2489 | fi | ||
| 1851 | 2490 | ||
| 1852 | ac_ext=c | 2491 | test -n "$ac_ct_CC" && break |
| 1853 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 2492 | done |
| 1854 | ac_cpp='$CPP $CPPFLAGS' | ||
| 1855 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 1856 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 1857 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 1858 | 2493 | ||
| 1859 | cat > conftest.$ac_ext << EOF | 2494 | CC=$ac_ct_CC |
| 2495 | fi | ||
| 2496 | |||
| 2497 | fi | ||
| 2498 | |||
| 2499 | test -z "$CC" && { { echo "$as_me:2499: error: no acceptable cc found in \$PATH" >&5 | ||
| 2500 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | ||
| 2501 | { (exit 1); exit 1; }; } | ||
| 2502 | |||
| 2503 | # Provide some information about the compiler. | ||
| 2504 | echo "$as_me:2504:" \ | ||
| 2505 | "checking for C compiler version" >&5 | ||
| 2506 | ac_compiler=`set X $ac_compile; echo $2` | ||
| 2507 | { (eval echo "$as_me:2507: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
| 2508 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
| 2509 | ac_status=$? | ||
| 2510 | echo "$as_me:2510: \$? = $ac_status" >&5 | ||
| 2511 | (exit $ac_status); } | ||
| 2512 | { (eval echo "$as_me:2512: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
| 2513 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
| 2514 | ac_status=$? | ||
| 2515 | echo "$as_me:2515: \$? = $ac_status" >&5 | ||
| 2516 | (exit $ac_status); } | ||
| 2517 | { (eval echo "$as_me:2517: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
| 2518 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
| 2519 | ac_status=$? | ||
| 2520 | echo "$as_me:2520: \$? = $ac_status" >&5 | ||
| 2521 | (exit $ac_status); } | ||
| 1860 | 2522 | ||
| 1861 | #line 1862 "configure" | 2523 | cat >conftest.$ac_ext <<_ACEOF |
| 2524 | #line 2524 "configure" | ||
| 1862 | #include "confdefs.h" | 2525 | #include "confdefs.h" |
| 1863 | 2526 | ||
| 1864 | main(){return(0);} | 2527 | int |
| 1865 | EOF | 2528 | main () |
| 1866 | if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2529 | { |
| 1867 | ac_cv_prog_cc_works=yes | 2530 | |
| 1868 | # If we can't run a trivial program, we are probably using a cross compiler. | 2531 | ; |
| 1869 | if (./conftest; exit) 2>/dev/null; then | 2532 | return 0; |
| 1870 | ac_cv_prog_cc_cross=no | 2533 | } |
| 2534 | _ACEOF | ||
| 2535 | ac_clean_files_save=$ac_clean_files | ||
| 2536 | ac_clean_files="$ac_clean_files a.out a.exe" | ||
| 2537 | # Try to create an executable without -o first, disregard a.out. | ||
| 2538 | # It will help us diagnose broken compilers, and finding out an intuition | ||
| 2539 | # of exeext. | ||
| 2540 | echo "$as_me:2540: checking for C compiler default output" >&5 | ||
| 2541 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
| 2542 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
| 2543 | if { (eval echo "$as_me:2543: \"$ac_link_default\"") >&5 | ||
| 2544 | (eval $ac_link_default) 2>&5 | ||
| 2545 | ac_status=$? | ||
| 2546 | echo "$as_me:2546: \$? = $ac_status" >&5 | ||
| 2547 | (exit $ac_status); }; then | ||
| 2548 | # Find the output, starting from the most likely. This scheme is | ||
| 2549 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
| 2550 | # resort. | ||
| 2551 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | ||
| 2552 | ls a.out conftest 2>/dev/null; | ||
| 2553 | ls a.* conftest.* 2>/dev/null`; do | ||
| 2554 | case $ac_file in | ||
| 2555 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
| 2556 | a.out ) # We found the default executable, but exeext='' is most | ||
| 2557 | # certainly right. | ||
| 2558 | break;; | ||
| 2559 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
| 2560 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | ||
| 2561 | export ac_cv_exeext | ||
| 2562 | break;; | ||
| 2563 | * ) break;; | ||
| 2564 | esac | ||
| 2565 | done | ||
| 2566 | else | ||
| 2567 | echo "$as_me: failed program was:" >&5 | ||
| 2568 | cat conftest.$ac_ext >&5 | ||
| 2569 | { { echo "$as_me:2569: error: C compiler cannot create executables" >&5 | ||
| 2570 | echo "$as_me: error: C compiler cannot create executables" >&2;} | ||
| 2571 | { (exit 77); exit 77; }; } | ||
| 2572 | fi | ||
| 2573 | |||
| 2574 | ac_exeext=$ac_cv_exeext | ||
| 2575 | echo "$as_me:2575: result: $ac_file" >&5 | ||
| 2576 | echo "${ECHO_T}$ac_file" >&6 | ||
| 2577 | |||
| 2578 | # Check the compiler produces executables we can run. If not, either | ||
| 2579 | # the compiler is broken, or we cross compile. | ||
| 2580 | echo "$as_me:2580: checking whether the C compiler works" >&5 | ||
| 2581 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
| 2582 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
| 2583 | # If not cross compiling, check that we can run a simple program. | ||
| 2584 | if test "$cross_compiling" != yes; then | ||
| 2585 | if { ac_try='./$ac_file' | ||
| 2586 | { (eval echo "$as_me:2586: \"$ac_try\"") >&5 | ||
| 2587 | (eval $ac_try) 2>&5 | ||
| 2588 | ac_status=$? | ||
| 2589 | echo "$as_me:2589: \$? = $ac_status" >&5 | ||
| 2590 | (exit $ac_status); }; }; then | ||
| 2591 | cross_compiling=no | ||
| 1871 | else | 2592 | else |
| 1872 | ac_cv_prog_cc_cross=yes | 2593 | if test "$cross_compiling" = maybe; then |
| 2594 | cross_compiling=yes | ||
| 2595 | else | ||
| 2596 | { { echo "$as_me:2596: error: cannot run C compiled programs. | ||
| 2597 | If you meant to cross compile, use \`--host'." >&5 | ||
| 2598 | echo "$as_me: error: cannot run C compiled programs. | ||
| 2599 | If you meant to cross compile, use \`--host'." >&2;} | ||
| 2600 | { (exit 1); exit 1; }; } | ||
| 2601 | fi | ||
| 1873 | fi | 2602 | fi |
| 2603 | fi | ||
| 2604 | echo "$as_me:2604: result: yes" >&5 | ||
| 2605 | echo "${ECHO_T}yes" >&6 | ||
| 2606 | |||
| 2607 | rm -f a.out a.exe conftest$ac_cv_exeext | ||
| 2608 | ac_clean_files=$ac_clean_files_save | ||
| 2609 | # Check the compiler produces executables we can run. If not, either | ||
| 2610 | # the compiler is broken, or we cross compile. | ||
| 2611 | echo "$as_me:2611: checking whether we are cross compiling" >&5 | ||
| 2612 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
| 2613 | echo "$as_me:2613: result: $cross_compiling" >&5 | ||
| 2614 | echo "${ECHO_T}$cross_compiling" >&6 | ||
| 2615 | |||
| 2616 | echo "$as_me:2616: checking for executable suffix" >&5 | ||
| 2617 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | ||
| 2618 | if { (eval echo "$as_me:2618: \"$ac_link\"") >&5 | ||
| 2619 | (eval $ac_link) 2>&5 | ||
| 2620 | ac_status=$? | ||
| 2621 | echo "$as_me:2621: \$? = $ac_status" >&5 | ||
| 2622 | (exit $ac_status); }; then | ||
| 2623 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
| 2624 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
| 2625 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
| 2626 | # `rm'. | ||
| 2627 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | ||
| 2628 | case $ac_file in | ||
| 2629 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
| 2630 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
| 2631 | export ac_cv_exeext | ||
| 2632 | break;; | ||
| 2633 | * ) break;; | ||
| 2634 | esac | ||
| 2635 | done | ||
| 1874 | else | 2636 | else |
| 1875 | echo "configure: failed program was:" >&5 | 2637 | { { echo "$as_me:2637: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| 1876 | cat conftest.$ac_ext >&5 | 2638 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
| 1877 | ac_cv_prog_cc_works=no | 2639 | { (exit 1); exit 1; }; } |
| 1878 | fi | 2640 | fi |
| 1879 | rm -fr conftest* | ||
| 1880 | ac_ext=c | ||
| 1881 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 1882 | ac_cpp='$CPP $CPPFLAGS' | ||
| 1883 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 1884 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 1885 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 1886 | 2641 | ||
| 1887 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 2642 | rm -f conftest$ac_cv_exeext |
| 1888 | if test $ac_cv_prog_cc_works = no; then | 2643 | echo "$as_me:2643: result: $ac_cv_exeext" >&5 |
| 1889 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 2644 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1890 | fi | ||
| 1891 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | ||
| 1892 | echo "configure:1893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | ||
| 1893 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | ||
| 1894 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 1895 | 2645 | ||
| 1896 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 2646 | rm -f conftest.$ac_ext |
| 1897 | echo "configure:1898: checking whether we are using GNU C" >&5 | 2647 | EXEEXT=$ac_cv_exeext |
| 1898 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 2648 | ac_exeext=$EXEEXT |
| 1899 | echo $ac_n "(cached) $ac_c" 1>&6 | 2649 | echo "$as_me:2649: checking for object suffix" >&5 |
| 1900 | else | 2650 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
| 1901 | cat > conftest.c <<EOF | 2651 | if test "${ac_cv_objext+set}" = set; then |
| 1902 | #ifdef __GNUC__ | 2652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1903 | yes; | ||
| 1904 | #endif | ||
| 1905 | EOF | ||
| 1906 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | ||
| 1907 | ac_cv_prog_gcc=yes | ||
| 1908 | else | 2653 | else |
| 1909 | ac_cv_prog_gcc=no | 2654 | cat >conftest.$ac_ext <<_ACEOF |
| 1910 | fi | 2655 | #line 2655 "configure" |
| 1911 | fi | 2656 | #include "confdefs.h" |
| 1912 | 2657 | ||
| 1913 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 2658 | int |
| 2659 | main () | ||
| 2660 | { | ||
| 1914 | 2661 | ||
| 1915 | if test $ac_cv_prog_gcc = yes; then | 2662 | ; |
| 1916 | GCC=yes | 2663 | return 0; |
| 2664 | } | ||
| 2665 | _ACEOF | ||
| 2666 | rm -f conftest.o conftest.obj | ||
| 2667 | if { (eval echo "$as_me:2667: \"$ac_compile\"") >&5 | ||
| 2668 | (eval $ac_compile) 2>&5 | ||
| 2669 | ac_status=$? | ||
| 2670 | echo "$as_me:2670: \$? = $ac_status" >&5 | ||
| 2671 | (exit $ac_status); }; then | ||
| 2672 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
| 2673 | case $ac_file in | ||
| 2674 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
| 2675 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
| 2676 | break;; | ||
| 2677 | esac | ||
| 2678 | done | ||
| 1917 | else | 2679 | else |
| 1918 | GCC= | 2680 | echo "$as_me: failed program was:" >&5 |
| 2681 | cat conftest.$ac_ext >&5 | ||
| 2682 | { { echo "$as_me:2682: error: cannot compute OBJEXT: cannot compile" >&5 | ||
| 2683 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | ||
| 2684 | { (exit 1); exit 1; }; } | ||
| 1919 | fi | 2685 | fi |
| 1920 | 2686 | ||
| 1921 | ac_test_CFLAGS="${CFLAGS+set}" | 2687 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1922 | ac_save_CFLAGS="$CFLAGS" | 2688 | fi |
| 1923 | CFLAGS= | 2689 | echo "$as_me:2689: result: $ac_cv_objext" >&5 |
| 1924 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 2690 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1925 | echo "configure:1926: checking whether ${CC-cc} accepts -g" >&5 | 2691 | OBJEXT=$ac_cv_objext |
| 1926 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 2692 | ac_objext=$OBJEXT |
| 1927 | echo $ac_n "(cached) $ac_c" 1>&6 | 2693 | echo "$as_me:2693: checking whether we are using the GNU C compiler" >&5 |
| 2694 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
| 2695 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
| 2696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1928 | else | 2697 | else |
| 1929 | echo 'void f(){}' > conftest.c | 2698 | cat >conftest.$ac_ext <<_ACEOF |
| 1930 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 2699 | #line 2699 "configure" |
| 2700 | #include "confdefs.h" | ||
| 2701 | |||
| 2702 | int | ||
| 2703 | main () | ||
| 2704 | { | ||
| 2705 | #ifndef __GNUC__ | ||
| 2706 | choke me | ||
| 2707 | #endif | ||
| 2708 | |||
| 2709 | ; | ||
| 2710 | return 0; | ||
| 2711 | } | ||
| 2712 | _ACEOF | ||
| 2713 | rm -f conftest.$ac_objext | ||
| 2714 | if { (eval echo "$as_me:2714: \"$ac_compile\"") >&5 | ||
| 2715 | (eval $ac_compile) 2>&5 | ||
| 2716 | ac_status=$? | ||
| 2717 | echo "$as_me:2717: \$? = $ac_status" >&5 | ||
| 2718 | (exit $ac_status); } && | ||
| 2719 | { ac_try='test -s conftest.$ac_objext' | ||
| 2720 | { (eval echo "$as_me:2720: \"$ac_try\"") >&5 | ||
| 2721 | (eval $ac_try) 2>&5 | ||
| 2722 | ac_status=$? | ||
| 2723 | echo "$as_me:2723: \$? = $ac_status" >&5 | ||
| 2724 | (exit $ac_status); }; }; then | ||
| 2725 | ac_compiler_gnu=yes | ||
| 2726 | else | ||
| 2727 | echo "$as_me: failed program was:" >&5 | ||
| 2728 | cat conftest.$ac_ext >&5 | ||
| 2729 | ac_compiler_gnu=no | ||
| 2730 | fi | ||
| 2731 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 2732 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
| 2733 | |||
| 2734 | fi | ||
| 2735 | echo "$as_me:2735: result: $ac_cv_c_compiler_gnu" >&5 | ||
| 2736 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
| 2737 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
| 2738 | ac_test_CFLAGS=${CFLAGS+set} | ||
| 2739 | ac_save_CFLAGS=$CFLAGS | ||
| 2740 | CFLAGS="-g" | ||
| 2741 | echo "$as_me:2741: checking whether $CC accepts -g" >&5 | ||
| 2742 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
| 2743 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
| 2744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2745 | else | ||
| 2746 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2747 | #line 2747 "configure" | ||
| 2748 | #include "confdefs.h" | ||
| 2749 | |||
| 2750 | int | ||
| 2751 | main () | ||
| 2752 | { | ||
| 2753 | |||
| 2754 | ; | ||
| 2755 | return 0; | ||
| 2756 | } | ||
| 2757 | _ACEOF | ||
| 2758 | rm -f conftest.$ac_objext | ||
| 2759 | if { (eval echo "$as_me:2759: \"$ac_compile\"") >&5 | ||
| 2760 | (eval $ac_compile) 2>&5 | ||
| 2761 | ac_status=$? | ||
| 2762 | echo "$as_me:2762: \$? = $ac_status" >&5 | ||
| 2763 | (exit $ac_status); } && | ||
| 2764 | { ac_try='test -s conftest.$ac_objext' | ||
| 2765 | { (eval echo "$as_me:2765: \"$ac_try\"") >&5 | ||
| 2766 | (eval $ac_try) 2>&5 | ||
| 2767 | ac_status=$? | ||
| 2768 | echo "$as_me:2768: \$? = $ac_status" >&5 | ||
| 2769 | (exit $ac_status); }; }; then | ||
| 1931 | ac_cv_prog_cc_g=yes | 2770 | ac_cv_prog_cc_g=yes |
| 1932 | else | 2771 | else |
| 1933 | ac_cv_prog_cc_g=no | 2772 | echo "$as_me: failed program was:" >&5 |
| 2773 | cat conftest.$ac_ext >&5 | ||
| 2774 | ac_cv_prog_cc_g=no | ||
| 1934 | fi | 2775 | fi |
| 1935 | rm -f conftest* | 2776 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1936 | |||
| 1937 | fi | 2777 | fi |
| 1938 | 2778 | echo "$as_me:2778: result: $ac_cv_prog_cc_g" >&5 | |
| 1939 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 2779 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 1940 | if test "$ac_test_CFLAGS" = set; then | 2780 | if test "$ac_test_CFLAGS" = set; then |
| 1941 | CFLAGS="$ac_save_CFLAGS" | 2781 | CFLAGS=$ac_save_CFLAGS |
| 1942 | elif test $ac_cv_prog_cc_g = yes; then | 2782 | elif test $ac_cv_prog_cc_g = yes; then |
| 1943 | if test "$GCC" = yes; then | 2783 | if test "$GCC" = yes; then |
| 1944 | CFLAGS="-g -O2" | 2784 | CFLAGS="-g -O2" |
| @@ -1952,8 +2792,116 @@ else | |||
| 1952 | CFLAGS= | 2792 | CFLAGS= |
| 1953 | fi | 2793 | fi |
| 1954 | fi | 2794 | fi |
| 2795 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
| 2796 | # in C++ we need to declare it. In case someone uses the same compiler | ||
| 2797 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
| 2798 | # the declaration of exit, since it's the most demanding environment. | ||
| 2799 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2800 | #ifndef __cplusplus | ||
| 2801 | choke me | ||
| 2802 | #endif | ||
| 2803 | _ACEOF | ||
| 2804 | rm -f conftest.$ac_objext | ||
| 2805 | if { (eval echo "$as_me:2805: \"$ac_compile\"") >&5 | ||
| 2806 | (eval $ac_compile) 2>&5 | ||
| 2807 | ac_status=$? | ||
| 2808 | echo "$as_me:2808: \$? = $ac_status" >&5 | ||
| 2809 | (exit $ac_status); } && | ||
| 2810 | { ac_try='test -s conftest.$ac_objext' | ||
| 2811 | { (eval echo "$as_me:2811: \"$ac_try\"") >&5 | ||
| 2812 | (eval $ac_try) 2>&5 | ||
| 2813 | ac_status=$? | ||
| 2814 | echo "$as_me:2814: \$? = $ac_status" >&5 | ||
| 2815 | (exit $ac_status); }; }; then | ||
| 2816 | for ac_declaration in \ | ||
| 2817 | ''\ | ||
| 2818 | '#include <stdlib.h>' \ | ||
| 2819 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
| 2820 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
| 2821 | 'extern "C" void exit (int) throw ();' \ | ||
| 2822 | 'extern "C" void exit (int);' \ | ||
| 2823 | 'void exit (int);' | ||
| 2824 | do | ||
| 2825 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2826 | #line 2826 "configure" | ||
| 2827 | #include "confdefs.h" | ||
| 2828 | #include <stdlib.h> | ||
| 2829 | $ac_declaration | ||
| 2830 | int | ||
| 2831 | main () | ||
| 2832 | { | ||
| 2833 | exit (42); | ||
| 2834 | ; | ||
| 2835 | return 0; | ||
| 2836 | } | ||
| 2837 | _ACEOF | ||
| 2838 | rm -f conftest.$ac_objext | ||
| 2839 | if { (eval echo "$as_me:2839: \"$ac_compile\"") >&5 | ||
| 2840 | (eval $ac_compile) 2>&5 | ||
| 2841 | ac_status=$? | ||
| 2842 | echo "$as_me:2842: \$? = $ac_status" >&5 | ||
| 2843 | (exit $ac_status); } && | ||
| 2844 | { ac_try='test -s conftest.$ac_objext' | ||
| 2845 | { (eval echo "$as_me:2845: \"$ac_try\"") >&5 | ||
| 2846 | (eval $ac_try) 2>&5 | ||
| 2847 | ac_status=$? | ||
| 2848 | echo "$as_me:2848: \$? = $ac_status" >&5 | ||
| 2849 | (exit $ac_status); }; }; then | ||
| 2850 | : | ||
| 2851 | else | ||
| 2852 | echo "$as_me: failed program was:" >&5 | ||
| 2853 | cat conftest.$ac_ext >&5 | ||
| 2854 | continue | ||
| 2855 | fi | ||
| 2856 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 2857 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2858 | #line 2858 "configure" | ||
| 2859 | #include "confdefs.h" | ||
| 2860 | $ac_declaration | ||
| 2861 | int | ||
| 2862 | main () | ||
| 2863 | { | ||
| 2864 | exit (42); | ||
| 2865 | ; | ||
| 2866 | return 0; | ||
| 2867 | } | ||
| 2868 | _ACEOF | ||
| 2869 | rm -f conftest.$ac_objext | ||
| 2870 | if { (eval echo "$as_me:2870: \"$ac_compile\"") >&5 | ||
| 2871 | (eval $ac_compile) 2>&5 | ||
| 2872 | ac_status=$? | ||
| 2873 | echo "$as_me:2873: \$? = $ac_status" >&5 | ||
| 2874 | (exit $ac_status); } && | ||
| 2875 | { ac_try='test -s conftest.$ac_objext' | ||
| 2876 | { (eval echo "$as_me:2876: \"$ac_try\"") >&5 | ||
| 2877 | (eval $ac_try) 2>&5 | ||
| 2878 | ac_status=$? | ||
| 2879 | echo "$as_me:2879: \$? = $ac_status" >&5 | ||
| 2880 | (exit $ac_status); }; }; then | ||
| 2881 | break | ||
| 2882 | else | ||
| 2883 | echo "$as_me: failed program was:" >&5 | ||
| 2884 | cat conftest.$ac_ext >&5 | ||
| 2885 | fi | ||
| 2886 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 2887 | done | ||
| 2888 | rm -f conftest* | ||
| 2889 | if test -n "$ac_declaration"; then | ||
| 2890 | echo '#ifdef __cplusplus' >>confdefs.h | ||
| 2891 | echo $ac_declaration >>confdefs.h | ||
| 2892 | echo '#endif' >>confdefs.h | ||
| 2893 | fi | ||
| 1955 | 2894 | ||
| 1956 | esac | 2895 | else |
| 2896 | echo "$as_me: failed program was:" >&5 | ||
| 2897 | cat conftest.$ac_ext >&5 | ||
| 2898 | fi | ||
| 2899 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 2900 | ac_ext=c | ||
| 2901 | ac_cpp='$CPP $CPPFLAGS' | ||
| 2902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 1957 | 2905 | ||
| 1958 | # On Suns, sometimes $CPP names a directory. | 2906 | # On Suns, sometimes $CPP names a directory. |
| 1959 | if test -n "$CPP" && test -d "$CPP"; then | 2907 | if test -n "$CPP" && test -d "$CPP"; then |
| @@ -2001,106 +2949,216 @@ fi | |||
| 2001 | #### should make an entry in src/config.h, don't forget to add an | 2949 | #### should make an entry in src/config.h, don't forget to add an |
| 2002 | #### #undef clause to src/config.h.in for autoconf to modify. | 2950 | #### #undef clause to src/config.h.in for autoconf to modify. |
| 2003 | 2951 | ||
| 2004 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 2952 | echo "$as_me:2952: checking whether ln -s works" >&5 |
| 2005 | echo "configure:2006: checking whether ln -s works" >&5 | 2953 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2006 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 2954 | LN_S=$as_ln_s |
| 2007 | echo $ac_n "(cached) $ac_c" 1>&6 | 2955 | if test "$LN_S" = "ln -s"; then |
| 2956 | echo "$as_me:2956: result: yes" >&5 | ||
| 2957 | echo "${ECHO_T}yes" >&6 | ||
| 2008 | else | 2958 | else |
| 2009 | rm -f conftestdata | 2959 | echo "$as_me:2959: result: no, using $LN_S" >&5 |
| 2010 | if ln -s X conftestdata 2>/dev/null | 2960 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2011 | then | ||
| 2012 | rm -f conftestdata | ||
| 2013 | ac_cv_prog_LN_S="ln -s" | ||
| 2014 | else | ||
| 2015 | ac_cv_prog_LN_S=ln | ||
| 2016 | fi | ||
| 2017 | fi | ||
| 2018 | LN_S="$ac_cv_prog_LN_S" | ||
| 2019 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | ||
| 2020 | echo "$ac_t""yes" 1>&6 | ||
| 2021 | else | ||
| 2022 | echo "$ac_t""no" 1>&6 | ||
| 2023 | fi | 2961 | fi |
| 2024 | 2962 | ||
| 2025 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 2963 | ac_ext=c |
| 2026 | echo "configure:2027: checking how to run the C preprocessor" >&5 | 2964 | ac_cpp='$CPP $CPPFLAGS' |
| 2965 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2966 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2967 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2968 | echo "$as_me:2968: checking how to run the C preprocessor" >&5 | ||
| 2969 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
| 2027 | # On Suns, sometimes $CPP names a directory. | 2970 | # On Suns, sometimes $CPP names a directory. |
| 2028 | if test -n "$CPP" && test -d "$CPP"; then | 2971 | if test -n "$CPP" && test -d "$CPP"; then |
| 2029 | CPP= | 2972 | CPP= |
| 2030 | fi | 2973 | fi |
| 2031 | if test -z "$CPP"; then | 2974 | if test -z "$CPP"; then |
| 2032 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 2975 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2033 | echo $ac_n "(cached) $ac_c" 1>&6 | 2976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2034 | else | 2977 | else |
| 2035 | # This must be in double quotes, not single quotes, because CPP may get | 2978 | # Double quotes because CPP needs to be expanded |
| 2036 | # substituted into the Makefile and "${CC-cc}" will confuse make. | 2979 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2037 | CPP="${CC-cc} -E" | 2980 | do |
| 2981 | ac_preproc_ok=false | ||
| 2982 | for ac_c_preproc_warn_flag in '' yes | ||
| 2983 | do | ||
| 2984 | # Use a header file that comes with gcc, so configuring glibc | ||
| 2985 | # with a fresh cross-compiler works. | ||
| 2038 | # On the NeXT, cc -E runs the code through the compiler's parser, | 2986 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2039 | # not just through cpp. | 2987 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2040 | cat > conftest.$ac_ext <<EOF | 2988 | cat >conftest.$ac_ext <<_ACEOF |
| 2041 | #line 2042 "configure" | 2989 | #line 2989 "configure" |
| 2042 | #include "confdefs.h" | 2990 | #include "confdefs.h" |
| 2043 | #include <assert.h> | 2991 | #include <assert.h> |
| 2044 | Syntax Error | 2992 | Syntax error |
| 2045 | EOF | 2993 | _ACEOF |
| 2046 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2994 | if { (eval echo "$as_me:2994: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2047 | { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2048 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2996 | ac_status=$? |
| 2049 | if test -z "$ac_err"; then | 2997 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2998 | rm -f conftest.er1 | ||
| 2999 | cat conftest.err >&5 | ||
| 3000 | echo "$as_me:3000: \$? = $ac_status" >&5 | ||
| 3001 | (exit $ac_status); } >/dev/null; then | ||
| 3002 | if test -s conftest.err; then | ||
| 3003 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3004 | else | ||
| 3005 | ac_cpp_err= | ||
| 3006 | fi | ||
| 3007 | else | ||
| 3008 | ac_cpp_err=yes | ||
| 3009 | fi | ||
| 3010 | if test -z "$ac_cpp_err"; then | ||
| 2050 | : | 3011 | : |
| 2051 | else | 3012 | else |
| 2052 | echo "$ac_err" >&5 | 3013 | echo "$as_me: failed program was:" >&5 |
| 2053 | echo "configure: failed program was:" >&5 | ||
| 2054 | cat conftest.$ac_ext >&5 | 3014 | cat conftest.$ac_ext >&5 |
| 2055 | rm -rf conftest* | 3015 | # Broken: fails on valid input. |
| 2056 | CPP="${CC-cc} -E -traditional-cpp" | 3016 | continue |
| 2057 | cat > conftest.$ac_ext <<EOF | 3017 | fi |
| 2058 | #line 2059 "configure" | 3018 | rm -f conftest.err conftest.$ac_ext |
| 2059 | #include "confdefs.h" | 3019 | |
| 2060 | #include <assert.h> | 3020 | # OK, works on sane cases. Now check whether non-existent headers |
| 2061 | Syntax Error | 3021 | # can be detected and how. |
| 2062 | EOF | 3022 | cat >conftest.$ac_ext <<_ACEOF |
| 2063 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3023 | #line 3023 "configure" |
| 2064 | { (eval echo configure:2065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3024 | #include "confdefs.h" |
| 2065 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3025 | #include <ac_nonexistent.h> |
| 2066 | if test -z "$ac_err"; then | 3026 | _ACEOF |
| 2067 | : | 3027 | if { (eval echo "$as_me:3027: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3028 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 3029 | ac_status=$? | ||
| 3030 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
| 3031 | rm -f conftest.er1 | ||
| 3032 | cat conftest.err >&5 | ||
| 3033 | echo "$as_me:3033: \$? = $ac_status" >&5 | ||
| 3034 | (exit $ac_status); } >/dev/null; then | ||
| 3035 | if test -s conftest.err; then | ||
| 3036 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3037 | else | ||
| 3038 | ac_cpp_err= | ||
| 3039 | fi | ||
| 3040 | else | ||
| 3041 | ac_cpp_err=yes | ||
| 3042 | fi | ||
| 3043 | if test -z "$ac_cpp_err"; then | ||
| 3044 | # Broken: success on invalid input. | ||
| 3045 | continue | ||
| 2068 | else | 3046 | else |
| 2069 | echo "$ac_err" >&5 | 3047 | echo "$as_me: failed program was:" >&5 |
| 2070 | echo "configure: failed program was:" >&5 | ||
| 2071 | cat conftest.$ac_ext >&5 | 3048 | cat conftest.$ac_ext >&5 |
| 2072 | rm -rf conftest* | 3049 | # Passes both tests. |
| 2073 | CPP="${CC-cc} -nologo -E" | 3050 | ac_preproc_ok=: |
| 2074 | cat > conftest.$ac_ext <<EOF | 3051 | break |
| 2075 | #line 2076 "configure" | 3052 | fi |
| 3053 | rm -f conftest.err conftest.$ac_ext | ||
| 3054 | |||
| 3055 | done | ||
| 3056 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3057 | rm -f conftest.err conftest.$ac_ext | ||
| 3058 | if $ac_preproc_ok; then | ||
| 3059 | break | ||
| 3060 | fi | ||
| 3061 | |||
| 3062 | done | ||
| 3063 | ac_cv_prog_CPP=$CPP | ||
| 3064 | |||
| 3065 | fi | ||
| 3066 | CPP=$ac_cv_prog_CPP | ||
| 3067 | else | ||
| 3068 | ac_cv_prog_CPP=$CPP | ||
| 3069 | fi | ||
| 3070 | echo "$as_me:3070: result: $CPP" >&5 | ||
| 3071 | echo "${ECHO_T}$CPP" >&6 | ||
| 3072 | ac_preproc_ok=false | ||
| 3073 | for ac_c_preproc_warn_flag in '' yes | ||
| 3074 | do | ||
| 3075 | # Use a header file that comes with gcc, so configuring glibc | ||
| 3076 | # with a fresh cross-compiler works. | ||
| 3077 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 3078 | # not just through cpp. "Syntax error" is here to catch this case. | ||
| 3079 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3080 | #line 3080 "configure" | ||
| 2076 | #include "confdefs.h" | 3081 | #include "confdefs.h" |
| 2077 | #include <assert.h> | 3082 | #include <assert.h> |
| 2078 | Syntax Error | 3083 | Syntax error |
| 2079 | EOF | 3084 | _ACEOF |
| 2080 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3085 | if { (eval echo "$as_me:3085: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2081 | { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2082 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3087 | ac_status=$? |
| 2083 | if test -z "$ac_err"; then | 3088 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3089 | rm -f conftest.er1 | ||
| 3090 | cat conftest.err >&5 | ||
| 3091 | echo "$as_me:3091: \$? = $ac_status" >&5 | ||
| 3092 | (exit $ac_status); } >/dev/null; then | ||
| 3093 | if test -s conftest.err; then | ||
| 3094 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3095 | else | ||
| 3096 | ac_cpp_err= | ||
| 3097 | fi | ||
| 3098 | else | ||
| 3099 | ac_cpp_err=yes | ||
| 3100 | fi | ||
| 3101 | if test -z "$ac_cpp_err"; then | ||
| 2084 | : | 3102 | : |
| 2085 | else | 3103 | else |
| 2086 | echo "$ac_err" >&5 | 3104 | echo "$as_me: failed program was:" >&5 |
| 2087 | echo "configure: failed program was:" >&5 | ||
| 2088 | cat conftest.$ac_ext >&5 | 3105 | cat conftest.$ac_ext >&5 |
| 2089 | rm -rf conftest* | 3106 | # Broken: fails on valid input. |
| 2090 | CPP=/lib/cpp | 3107 | continue |
| 2091 | fi | 3108 | fi |
| 2092 | rm -f conftest* | 3109 | rm -f conftest.err conftest.$ac_ext |
| 2093 | fi | 3110 | |
| 2094 | rm -f conftest* | 3111 | # OK, works on sane cases. Now check whether non-existent headers |
| 3112 | # can be detected and how. | ||
| 3113 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3114 | #line 3114 "configure" | ||
| 3115 | #include "confdefs.h" | ||
| 3116 | #include <ac_nonexistent.h> | ||
| 3117 | _ACEOF | ||
| 3118 | if { (eval echo "$as_me:3118: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 3119 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 3120 | ac_status=$? | ||
| 3121 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
| 3122 | rm -f conftest.er1 | ||
| 3123 | cat conftest.err >&5 | ||
| 3124 | echo "$as_me:3124: \$? = $ac_status" >&5 | ||
| 3125 | (exit $ac_status); } >/dev/null; then | ||
| 3126 | if test -s conftest.err; then | ||
| 3127 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3128 | else | ||
| 3129 | ac_cpp_err= | ||
| 3130 | fi | ||
| 3131 | else | ||
| 3132 | ac_cpp_err=yes | ||
| 2095 | fi | 3133 | fi |
| 2096 | rm -f conftest* | 3134 | if test -z "$ac_cpp_err"; then |
| 2097 | ac_cv_prog_CPP="$CPP" | 3135 | # Broken: success on invalid input. |
| 3136 | continue | ||
| 3137 | else | ||
| 3138 | echo "$as_me: failed program was:" >&5 | ||
| 3139 | cat conftest.$ac_ext >&5 | ||
| 3140 | # Passes both tests. | ||
| 3141 | ac_preproc_ok=: | ||
| 3142 | break | ||
| 2098 | fi | 3143 | fi |
| 2099 | CPP="$ac_cv_prog_CPP" | 3144 | rm -f conftest.err conftest.$ac_ext |
| 3145 | |||
| 3146 | done | ||
| 3147 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3148 | rm -f conftest.err conftest.$ac_ext | ||
| 3149 | if $ac_preproc_ok; then | ||
| 3150 | : | ||
| 2100 | else | 3151 | else |
| 2101 | ac_cv_prog_CPP="$CPP" | 3152 | { { echo "$as_me:3152: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 3153 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | ||
| 3154 | { (exit 1); exit 1; }; } | ||
| 2102 | fi | 3155 | fi |
| 2103 | echo "$ac_t""$CPP" 1>&6 | 3156 | |
| 3157 | ac_ext=c | ||
| 3158 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2104 | 3162 | ||
| 2105 | # Find a good install program. We prefer a C program (faster), | 3163 | # Find a good install program. We prefer a C program (faster), |
| 2106 | # so one script is as good as another. But avoid the broken or | 3164 | # so one script is as good as another. But avoid the broken or |
| @@ -2109,31 +3167,39 @@ echo "$ac_t""$CPP" 1>&6 | |||
| 2109 | # SunOS /usr/etc/install | 3167 | # SunOS /usr/etc/install |
| 2110 | # IRIX /sbin/install | 3168 | # IRIX /sbin/install |
| 2111 | # AIX /bin/install | 3169 | # AIX /bin/install |
| 3170 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
| 2112 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 3171 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2113 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 3172 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2114 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 3173 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2115 | # ./install, which can be erroneously created by make from ./install.sh. | 3174 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2116 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 3175 | echo "$as_me:3175: checking for a BSD compatible install" >&5 |
| 2117 | echo "configure:2118: checking for a BSD compatible install" >&5 | 3176 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
| 2118 | if test -z "$INSTALL"; then | 3177 | if test -z "$INSTALL"; then |
| 2119 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 3178 | if test "${ac_cv_path_install+set}" = set; then |
| 2120 | echo $ac_n "(cached) $ac_c" 1>&6 | 3179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2121 | else | 3180 | else |
| 2122 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | 3181 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2123 | for ac_dir in $PATH; do | 3182 | for ac_dir in $PATH; do |
| 3183 | IFS=$ac_save_IFS | ||
| 2124 | # Account for people who put trailing slashes in PATH elements. | 3184 | # Account for people who put trailing slashes in PATH elements. |
| 2125 | case "$ac_dir/" in | 3185 | case $ac_dir/ in |
| 2126 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 3186 | / | ./ | .// | /cC/* \ |
| 3187 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | ||
| 3188 | | /usr/ucb/* ) ;; | ||
| 2127 | *) | 3189 | *) |
| 2128 | # OSF1 and SCO ODT 3.0 have their own names for install. | 3190 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2129 | # Don't use installbsd from OSF since it installs stuff as root | 3191 | # Don't use installbsd from OSF since it installs stuff as root |
| 2130 | # by default. | 3192 | # by default. |
| 2131 | for ac_prog in ginstall scoinst install; do | 3193 | for ac_prog in ginstall scoinst install; do |
| 2132 | if test -f $ac_dir/$ac_prog; then | 3194 | if $as_executable_p "$ac_dir/$ac_prog"; then |
| 2133 | if test $ac_prog = install && | 3195 | if test $ac_prog = install && |
| 2134 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 3196 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 2135 | # AIX install. It has an incompatible calling convention. | 3197 | # AIX install. It has an incompatible calling convention. |
| 2136 | : | 3198 | : |
| 3199 | elif test $ac_prog = install && | ||
| 3200 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | ||
| 3201 | # program-specific install script used by HP pwplus--don't use. | ||
| 3202 | : | ||
| 2137 | else | 3203 | else |
| 2138 | ac_cv_path_install="$ac_dir/$ac_prog -c" | 3204 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 2139 | break 2 | 3205 | break 2 |
| @@ -2143,130 +3209,176 @@ else | |||
| 2143 | ;; | 3209 | ;; |
| 2144 | esac | 3210 | esac |
| 2145 | done | 3211 | done |
| 2146 | IFS="$ac_save_IFS" | ||
| 2147 | 3212 | ||
| 2148 | fi | 3213 | fi |
| 2149 | if test "${ac_cv_path_install+set}" = set; then | 3214 | if test "${ac_cv_path_install+set}" = set; then |
| 2150 | INSTALL="$ac_cv_path_install" | 3215 | INSTALL=$ac_cv_path_install |
| 2151 | else | 3216 | else |
| 2152 | # As a last resort, use the slow shell script. We don't cache a | 3217 | # As a last resort, use the slow shell script. We don't cache a |
| 2153 | # path for INSTALL within a source directory, because that will | 3218 | # path for INSTALL within a source directory, because that will |
| 2154 | # break other packages using the cache if that directory is | 3219 | # break other packages using the cache if that directory is |
| 2155 | # removed, or if the path is relative. | 3220 | # removed, or if the path is relative. |
| 2156 | INSTALL="$ac_install_sh" | 3221 | INSTALL=$ac_install_sh |
| 2157 | fi | 3222 | fi |
| 2158 | fi | 3223 | fi |
| 2159 | echo "$ac_t""$INSTALL" 1>&6 | 3224 | echo "$as_me:3224: result: $INSTALL" >&5 |
| 3225 | echo "${ECHO_T}$INSTALL" >&6 | ||
| 2160 | 3226 | ||
| 2161 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 3227 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2162 | # It thinks the first close brace ends the variable substitution. | 3228 | # It thinks the first close brace ends the variable substitution. |
| 2163 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 3229 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2164 | 3230 | ||
| 2165 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 3231 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2166 | 3232 | ||
| 2167 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 3233 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2168 | 3234 | ||
| 2169 | for ac_prog in 'bison -y' byacc | 3235 | for ac_prog in 'bison -y' byacc |
| 2170 | do | 3236 | do |
| 2171 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 3237 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2172 | set dummy $ac_prog; ac_word=$2 | 3238 | set dummy $ac_prog; ac_word=$2 |
| 2173 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 3239 | echo "$as_me:3239: checking for $ac_word" >&5 |
| 2174 | echo "configure:2175: checking for $ac_word" >&5 | 3240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2175 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | 3241 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 2176 | echo $ac_n "(cached) $ac_c" 1>&6 | 3242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2177 | else | 3243 | else |
| 2178 | if test -n "$YACC"; then | 3244 | if test -n "$YACC"; then |
| 2179 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | 3245 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 2180 | else | 3246 | else |
| 2181 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 3247 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2182 | ac_dummy="$PATH" | 3248 | ac_dummy="$PATH" |
| 2183 | for ac_dir in $ac_dummy; do | 3249 | for ac_dir in $ac_dummy; do |
| 2184 | test -z "$ac_dir" && ac_dir=. | 3250 | IFS=$ac_save_IFS |
| 2185 | if test -f $ac_dir/$ac_word; then | 3251 | test -z "$ac_dir" && ac_dir=. |
| 2186 | ac_cv_prog_YACC="$ac_prog" | 3252 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2187 | break | 3253 | ac_cv_prog_YACC="$ac_prog" |
| 2188 | fi | 3254 | echo "$as_me:3254: found $ac_dir/$ac_word" >&5 |
| 2189 | done | 3255 | break |
| 2190 | IFS="$ac_save_ifs" | 3256 | done |
| 3257 | |||
| 2191 | fi | 3258 | fi |
| 2192 | fi | 3259 | fi |
| 2193 | YACC="$ac_cv_prog_YACC" | 3260 | YACC=$ac_cv_prog_YACC |
| 2194 | if test -n "$YACC"; then | 3261 | if test -n "$YACC"; then |
| 2195 | echo "$ac_t""$YACC" 1>&6 | 3262 | echo "$as_me:3262: result: $YACC" >&5 |
| 3263 | echo "${ECHO_T}$YACC" >&6 | ||
| 2196 | else | 3264 | else |
| 2197 | echo "$ac_t""no" 1>&6 | 3265 | echo "$as_me:3265: result: no" >&5 |
| 3266 | echo "${ECHO_T}no" >&6 | ||
| 2198 | fi | 3267 | fi |
| 2199 | 3268 | ||
| 2200 | test -n "$YACC" && break | 3269 | test -n "$YACC" && break |
| 2201 | done | 3270 | done |
| 2202 | test -n "$YACC" || YACC="yacc" | 3271 | test -n "$YACC" || YACC="yacc" |
| 2203 | 3272 | ||
| 2204 | if test "x$RANLIB" = x; then | 3273 | if test "x$RANLIB" = x; then |
| 2205 | # Extract the first word of "ranlib", so it can be a program name with args. | 3274 | if test -n "$ac_tool_prefix"; then |
| 2206 | set dummy ranlib; ac_word=$2 | 3275 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2207 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 3276 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2208 | echo "configure:2209: checking for $ac_word" >&5 | 3277 | echo "$as_me:3277: checking for $ac_word" >&5 |
| 2209 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 3278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2210 | echo $ac_n "(cached) $ac_c" 1>&6 | 3279 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2211 | else | 3281 | else |
| 2212 | if test -n "$RANLIB"; then | 3282 | if test -n "$RANLIB"; then |
| 2213 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 3283 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2214 | else | 3284 | else |
| 2215 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 3285 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2216 | ac_dummy="$PATH" | 3286 | ac_dummy="$PATH" |
| 2217 | for ac_dir in $ac_dummy; do | 3287 | for ac_dir in $ac_dummy; do |
| 2218 | test -z "$ac_dir" && ac_dir=. | 3288 | IFS=$ac_save_IFS |
| 2219 | if test -f $ac_dir/$ac_word; then | 3289 | test -z "$ac_dir" && ac_dir=. |
| 2220 | ac_cv_prog_RANLIB="ranlib" | 3290 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2221 | break | 3291 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2222 | fi | 3292 | echo "$as_me:3292: found $ac_dir/$ac_word" >&5 |
| 2223 | done | 3293 | break |
| 2224 | IFS="$ac_save_ifs" | 3294 | done |
| 2225 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 3295 | |
| 2226 | fi | 3296 | fi |
| 2227 | fi | 3297 | fi |
| 2228 | RANLIB="$ac_cv_prog_RANLIB" | 3298 | RANLIB=$ac_cv_prog_RANLIB |
| 2229 | if test -n "$RANLIB"; then | 3299 | if test -n "$RANLIB"; then |
| 2230 | echo "$ac_t""$RANLIB" 1>&6 | 3300 | echo "$as_me:3300: result: $RANLIB" >&5 |
| 3301 | echo "${ECHO_T}$RANLIB" >&6 | ||
| 2231 | else | 3302 | else |
| 2232 | echo "$ac_t""no" 1>&6 | 3303 | echo "$as_me:3303: result: no" >&5 |
| 3304 | echo "${ECHO_T}no" >&6 | ||
| 2233 | fi | 3305 | fi |
| 2234 | 3306 | ||
| 2235 | fi | 3307 | fi |
| 3308 | if test -z "$ac_cv_prog_RANLIB"; then | ||
| 3309 | ac_ct_RANLIB=$RANLIB | ||
| 3310 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
| 3311 | set dummy ranlib; ac_word=$2 | ||
| 3312 | echo "$as_me:3312: checking for $ac_word" >&5 | ||
| 3313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 3314 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
| 3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3316 | else | ||
| 3317 | if test -n "$ac_ct_RANLIB"; then | ||
| 3318 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
| 3319 | else | ||
| 3320 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
| 3321 | ac_dummy="$PATH" | ||
| 3322 | for ac_dir in $ac_dummy; do | ||
| 3323 | IFS=$ac_save_IFS | ||
| 3324 | test -z "$ac_dir" && ac_dir=. | ||
| 3325 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
| 3326 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
| 3327 | echo "$as_me:3327: found $ac_dir/$ac_word" >&5 | ||
| 3328 | break | ||
| 3329 | done | ||
| 2236 | 3330 | ||
| 2237 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 3331 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 2238 | echo "configure:2239: checking for AIX" >&5 | 3332 | fi |
| 2239 | cat > conftest.$ac_ext <<EOF | 3333 | fi |
| 2240 | #line 2241 "configure" | 3334 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3335 | if test -n "$ac_ct_RANLIB"; then | ||
| 3336 | echo "$as_me:3336: result: $ac_ct_RANLIB" >&5 | ||
| 3337 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
| 3338 | else | ||
| 3339 | echo "$as_me:3339: result: no" >&5 | ||
| 3340 | echo "${ECHO_T}no" >&6 | ||
| 3341 | fi | ||
| 3342 | |||
| 3343 | RANLIB=$ac_ct_RANLIB | ||
| 3344 | else | ||
| 3345 | RANLIB="$ac_cv_prog_RANLIB" | ||
| 3346 | fi | ||
| 3347 | |||
| 3348 | fi | ||
| 3349 | |||
| 3350 | echo "$as_me:3350: checking for AIX" >&5 | ||
| 3351 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | ||
| 3352 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3353 | #line 3353 "configure" | ||
| 2241 | #include "confdefs.h" | 3354 | #include "confdefs.h" |
| 2242 | #ifdef _AIX | 3355 | #ifdef _AIX |
| 2243 | yes | 3356 | yes |
| 2244 | #endif | 3357 | #endif |
| 2245 | 3358 | ||
| 2246 | EOF | 3359 | _ACEOF |
| 2247 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 3360 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2248 | egrep "yes" >/dev/null 2>&1; then | 3361 | egrep "yes" >/dev/null 2>&1; then |
| 2249 | rm -rf conftest* | 3362 | echo "$as_me:3362: result: yes" >&5 |
| 2250 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 3363 | echo "${ECHO_T}yes" >&6 |
| 3364 | cat >>confdefs.h <<\EOF | ||
| 2251 | #define _ALL_SOURCE 1 | 3365 | #define _ALL_SOURCE 1 |
| 2252 | EOF | 3366 | EOF |
| 2253 | 3367 | ||
| 2254 | else | 3368 | else |
| 2255 | rm -rf conftest* | 3369 | echo "$as_me:3369: result: no" >&5 |
| 2256 | echo "$ac_t""no" 1>&6 | 3370 | echo "${ECHO_T}no" >&6 |
| 2257 | fi | 3371 | fi |
| 2258 | rm -f conftest* | 3372 | rm -f conftest* |
| 2259 | 3373 | ||
| 2260 | |||
| 2261 | |||
| 2262 | #### Extract some information from the operating system and machine files. | 3374 | #### Extract some information from the operating system and machine files. |
| 2263 | 3375 | ||
| 2264 | echo "checking the machine- and system-dependent files to find out | 3376 | { echo "$as_me:3376: checking the machine- and system-dependent files to find out |
| 2265 | - which libraries the lib-src programs will want, and | 3377 | - which libraries the lib-src programs will want, and |
| 2266 | - whether the GNU malloc routines are usable" 1>&6 | 3378 | - whether the GNU malloc routines are usable..." >&5 |
| 2267 | echo "configure:2268: checking the machine- and system-dependent files to find out | 3379 | echo "$as_me: checking the machine- and system-dependent files to find out |
| 2268 | - which libraries the lib-src programs will want, and | 3380 | - which libraries the lib-src programs will want, and |
| 2269 | - whether the GNU malloc routines are usable" >&5 | 3381 | - whether the GNU malloc routines are usable..." >&6;} |
| 2270 | 3382 | ||
| 2271 | ### First figure out CFLAGS (which we use for running the compiler here) | 3383 | ### First figure out CFLAGS (which we use for running the compiler here) |
| 2272 | ### and REAL_CFLAGS (which we use for real compilation). | 3384 | ### and REAL_CFLAGS (which we use for real compilation). |
| @@ -2355,7 +3467,7 @@ configure___ use_mmap_for_buffers=no | |||
| 2355 | 3467 | ||
| 2356 | #ifndef LD_SWITCH_X_SITE_AUX | 3468 | #ifndef LD_SWITCH_X_SITE_AUX |
| 2357 | #define LD_SWITCH_X_SITE_AUX | 3469 | #define LD_SWITCH_X_SITE_AUX |
| 2358 | #endif | 3470 | #endif |
| 2359 | 3471 | ||
| 2360 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | 3472 | configure___ ld_switch_system=LD_SWITCH_SYSTEM |
| 2361 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | 3473 | configure___ ld_switch_machine=LD_SWITCH_MACHINE |
| @@ -2404,343 +3516,496 @@ else | |||
| 2404 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | 3516 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" |
| 2405 | fi | 3517 | fi |
| 2406 | 3518 | ||
| 2407 | 3519 | # Check whether --enable-largefile or --disable-largefile was given. | |
| 2408 | # Check whether --enable-largefile or --disable-largefile was given. | ||
| 2409 | if test "${enable_largefile+set}" = set; then | 3520 | if test "${enable_largefile+set}" = set; then |
| 2410 | enableval="$enable_largefile" | 3521 | enableval="$enable_largefile" |
| 2411 | : | ||
| 2412 | fi | ||
| 2413 | 3522 | ||
| 2414 | if test "$enable_largefile" != no; then | 3523 | fi; |
| 3524 | if test "$enable_largefile" != no; then | ||
| 2415 | 3525 | ||
| 2416 | echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | 3526 | echo "$as_me:3526: checking for special C compiler options needed for large files" >&5 |
| 2417 | echo "configure:2418: checking for special C compiler options needed for large files" >&5 | 3527 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
| 2418 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then | 3528 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
| 2419 | echo $ac_n "(cached) $ac_c" 1>&6 | 3529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2420 | else | 3530 | else |
| 2421 | ac_cv_sys_largefile_CC=no | 3531 | ac_cv_sys_largefile_CC=no |
| 2422 | if test "$GCC" != yes; then | 3532 | if test "$GCC" != yes; then |
| 2423 | # IRIX 6.2 and later do not support large files by default, | 3533 | ac_save_CC=$CC |
| 2424 | # so use the C compiler's -n32 option if that helps. | 3534 | while :; do |
| 2425 | cat > conftest.$ac_ext <<EOF | 3535 | # IRIX 6.2 and later do not support large files by default, |
| 2426 | #line 2427 "configure" | 3536 | # so use the C compiler's -n32 option if that helps. |
| 3537 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3538 | #line 3538 "configure" | ||
| 2427 | #include "confdefs.h" | 3539 | #include "confdefs.h" |
| 2428 | #include <sys/types.h> | 3540 | #include <sys/types.h> |
| 2429 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 3541 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 2430 | 3542 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 2431 | int main() { | 3543 | since some C++ compilers masquerading as C compilers |
| 2432 | 3544 | incorrectly reject 9223372036854775807. */ | |
| 2433 | ; return 0; } | 3545 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 2434 | EOF | 3546 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 2435 | if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3547 | && LARGE_OFF_T % 2147483647 == 1) |
| 2436 | : | 3548 | ? 1 : -1]; |
| 2437 | else | 3549 | int |
| 2438 | echo "configure: failed program was:" >&5 | 3550 | main () |
| 2439 | cat conftest.$ac_ext >&5 | 3551 | { |
| 2440 | rm -rf conftest* | ||
| 2441 | ac_save_CC="$CC" | ||
| 2442 | CC="$CC -n32" | ||
| 2443 | cat > conftest.$ac_ext <<EOF | ||
| 2444 | #line 2445 "configure" | ||
| 2445 | #include "confdefs.h" | ||
| 2446 | #include <sys/types.h> | ||
| 2447 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | ||
| 2448 | |||
| 2449 | int main() { | ||
| 2450 | 3552 | ||
| 2451 | ; return 0; } | 3553 | ; |
| 2452 | EOF | 3554 | return 0; |
| 2453 | if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3555 | } |
| 2454 | rm -rf conftest* | 3556 | _ACEOF |
| 2455 | ac_cv_sys_largefile_CC=' -n32' | 3557 | rm -f conftest.$ac_objext |
| 3558 | if { (eval echo "$as_me:3558: \"$ac_compile\"") >&5 | ||
| 3559 | (eval $ac_compile) 2>&5 | ||
| 3560 | ac_status=$? | ||
| 3561 | echo "$as_me:3561: \$? = $ac_status" >&5 | ||
| 3562 | (exit $ac_status); } && | ||
| 3563 | { ac_try='test -s conftest.$ac_objext' | ||
| 3564 | { (eval echo "$as_me:3564: \"$ac_try\"") >&5 | ||
| 3565 | (eval $ac_try) 2>&5 | ||
| 3566 | ac_status=$? | ||
| 3567 | echo "$as_me:3567: \$? = $ac_status" >&5 | ||
| 3568 | (exit $ac_status); }; }; then | ||
| 3569 | break | ||
| 2456 | else | 3570 | else |
| 2457 | echo "configure: failed program was:" >&5 | 3571 | echo "$as_me: failed program was:" >&5 |
| 2458 | cat conftest.$ac_ext >&5 | 3572 | cat conftest.$ac_ext >&5 |
| 2459 | fi | 3573 | fi |
| 2460 | rm -f conftest* | 3574 | rm -f conftest.$ac_objext |
| 2461 | CC="$ac_save_CC" | 3575 | CC="$CC -n32" |
| 2462 | fi | 3576 | rm -f conftest.$ac_objext |
| 2463 | rm -f conftest* | 3577 | if { (eval echo "$as_me:3577: \"$ac_compile\"") >&5 |
| 2464 | fi | 3578 | (eval $ac_compile) 2>&5 |
| 3579 | ac_status=$? | ||
| 3580 | echo "$as_me:3580: \$? = $ac_status" >&5 | ||
| 3581 | (exit $ac_status); } && | ||
| 3582 | { ac_try='test -s conftest.$ac_objext' | ||
| 3583 | { (eval echo "$as_me:3583: \"$ac_try\"") >&5 | ||
| 3584 | (eval $ac_try) 2>&5 | ||
| 3585 | ac_status=$? | ||
| 3586 | echo "$as_me:3586: \$? = $ac_status" >&5 | ||
| 3587 | (exit $ac_status); }; }; then | ||
| 3588 | ac_cv_sys_largefile_CC=' -n32'; break | ||
| 3589 | else | ||
| 3590 | echo "$as_me: failed program was:" >&5 | ||
| 3591 | cat conftest.$ac_ext >&5 | ||
| 3592 | fi | ||
| 3593 | rm -f conftest.$ac_objext | ||
| 3594 | break | ||
| 3595 | done | ||
| 3596 | CC=$ac_save_CC | ||
| 3597 | rm -f conftest.$ac_ext | ||
| 3598 | fi | ||
| 2465 | fi | 3599 | fi |
| 3600 | echo "$as_me:3600: result: $ac_cv_sys_largefile_CC" >&5 | ||
| 3601 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
| 3602 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
| 3603 | CC=$CC$ac_cv_sys_largefile_CC | ||
| 3604 | fi | ||
| 2466 | 3605 | ||
| 2467 | echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 | 3606 | echo "$as_me:3606: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 2468 | if test "$ac_cv_sys_largefile_CC" != no; then | 3607 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
| 2469 | CC="$CC$ac_cv_sys_largefile_CC" | 3608 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
| 2470 | fi | 3609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2471 | |||
| 2472 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | ||
| 2473 | echo "configure:2474: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
| 2474 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | ||
| 2475 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2476 | else | 3610 | else |
| 3611 | while :; do | ||
| 2477 | ac_cv_sys_file_offset_bits=no | 3612 | ac_cv_sys_file_offset_bits=no |
| 2478 | cat > conftest.$ac_ext <<EOF | 3613 | cat >conftest.$ac_ext <<_ACEOF |
| 2479 | #line 2480 "configure" | 3614 | #line 3614 "configure" |
| 2480 | #include "confdefs.h" | 3615 | #include "confdefs.h" |
| 2481 | #include <sys/types.h> | 3616 | #include <sys/types.h> |
| 2482 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 3617 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 2483 | 3618 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 2484 | int main() { | 3619 | since some C++ compilers masquerading as C compilers |
| 3620 | incorrectly reject 9223372036854775807. */ | ||
| 3621 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 3622 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 3623 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 3624 | ? 1 : -1]; | ||
| 3625 | int | ||
| 3626 | main () | ||
| 3627 | { | ||
| 2485 | 3628 | ||
| 2486 | ; return 0; } | 3629 | ; |
| 2487 | EOF | 3630 | return 0; |
| 2488 | if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3631 | } |
| 2489 | : | 3632 | _ACEOF |
| 3633 | rm -f conftest.$ac_objext | ||
| 3634 | if { (eval echo "$as_me:3634: \"$ac_compile\"") >&5 | ||
| 3635 | (eval $ac_compile) 2>&5 | ||
| 3636 | ac_status=$? | ||
| 3637 | echo "$as_me:3637: \$? = $ac_status" >&5 | ||
| 3638 | (exit $ac_status); } && | ||
| 3639 | { ac_try='test -s conftest.$ac_objext' | ||
| 3640 | { (eval echo "$as_me:3640: \"$ac_try\"") >&5 | ||
| 3641 | (eval $ac_try) 2>&5 | ||
| 3642 | ac_status=$? | ||
| 3643 | echo "$as_me:3643: \$? = $ac_status" >&5 | ||
| 3644 | (exit $ac_status); }; }; then | ||
| 3645 | break | ||
| 2490 | else | 3646 | else |
| 2491 | echo "configure: failed program was:" >&5 | 3647 | echo "$as_me: failed program was:" >&5 |
| 2492 | cat conftest.$ac_ext >&5 | 3648 | cat conftest.$ac_ext >&5 |
| 2493 | rm -rf conftest* | 3649 | fi |
| 2494 | cat > conftest.$ac_ext <<EOF | 3650 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2495 | #line 2496 "configure" | 3651 | cat >conftest.$ac_ext <<_ACEOF |
| 3652 | #line 3652 "configure" | ||
| 2496 | #include "confdefs.h" | 3653 | #include "confdefs.h" |
| 2497 | #define _FILE_OFFSET_BITS 64 | 3654 | #define _FILE_OFFSET_BITS 64 |
| 2498 | #include <sys/types.h> | 3655 | #include <sys/types.h> |
| 2499 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 3656 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 2500 | 3657 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 2501 | 3658 | since some C++ compilers masquerading as C compilers | |
| 2502 | int main() { | 3659 | incorrectly reject 9223372036854775807. */ |
| 3660 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 3661 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 3662 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 3663 | ? 1 : -1]; | ||
| 3664 | int | ||
| 3665 | main () | ||
| 3666 | { | ||
| 2503 | 3667 | ||
| 2504 | ; return 0; } | 3668 | ; |
| 2505 | EOF | 3669 | return 0; |
| 2506 | if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3670 | } |
| 2507 | rm -rf conftest* | 3671 | _ACEOF |
| 2508 | ac_cv_sys_file_offset_bits=64 | 3672 | rm -f conftest.$ac_objext |
| 2509 | else | 3673 | if { (eval echo "$as_me:3673: \"$ac_compile\"") >&5 |
| 2510 | echo "configure: failed program was:" >&5 | 3674 | (eval $ac_compile) 2>&5 |
| 2511 | cat conftest.$ac_ext >&5 | 3675 | ac_status=$? |
| 2512 | fi | 3676 | echo "$as_me:3676: \$? = $ac_status" >&5 |
| 2513 | rm -f conftest* | 3677 | (exit $ac_status); } && |
| 2514 | fi | 3678 | { ac_try='test -s conftest.$ac_objext' |
| 2515 | rm -f conftest* | 3679 | { (eval echo "$as_me:3679: \"$ac_try\"") >&5 |
| 3680 | (eval $ac_try) 2>&5 | ||
| 3681 | ac_status=$? | ||
| 3682 | echo "$as_me:3682: \$? = $ac_status" >&5 | ||
| 3683 | (exit $ac_status); }; }; then | ||
| 3684 | ac_cv_sys_file_offset_bits=64; break | ||
| 3685 | else | ||
| 3686 | echo "$as_me: failed program was:" >&5 | ||
| 3687 | cat conftest.$ac_ext >&5 | ||
| 3688 | fi | ||
| 3689 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 3690 | break | ||
| 3691 | done | ||
| 2516 | fi | 3692 | fi |
| 3693 | echo "$as_me:3693: result: $ac_cv_sys_file_offset_bits" >&5 | ||
| 3694 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
| 3695 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
| 2517 | 3696 | ||
| 2518 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | 3697 | cat >>confdefs.h <<EOF |
| 2519 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
| 2520 | cat >> confdefs.h <<EOF | ||
| 2521 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 3698 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 2522 | EOF | 3699 | EOF |
| 2523 | 3700 | ||
| 2524 | fi | 3701 | fi |
| 2525 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | 3702 | rm -f conftest* |
| 2526 | echo "configure:2527: checking for _LARGE_FILES value needed for large files" >&5 | 3703 | echo "$as_me:3703: checking for _LARGE_FILES value needed for large files" >&5 |
| 2527 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | 3704 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
| 2528 | echo $ac_n "(cached) $ac_c" 1>&6 | 3705 | if test "${ac_cv_sys_large_files+set}" = set; then |
| 3706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2529 | else | 3707 | else |
| 3708 | while :; do | ||
| 2530 | ac_cv_sys_large_files=no | 3709 | ac_cv_sys_large_files=no |
| 2531 | cat > conftest.$ac_ext <<EOF | 3710 | cat >conftest.$ac_ext <<_ACEOF |
| 2532 | #line 2533 "configure" | 3711 | #line 3711 "configure" |
| 2533 | #include "confdefs.h" | 3712 | #include "confdefs.h" |
| 3713 | #include <sys/types.h> | ||
| 3714 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
| 3715 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
| 3716 | since some C++ compilers masquerading as C compilers | ||
| 3717 | incorrectly reject 9223372036854775807. */ | ||
| 3718 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 3719 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 3720 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 3721 | ? 1 : -1]; | ||
| 3722 | int | ||
| 3723 | main () | ||
| 3724 | { | ||
| 2534 | 3725 | ||
| 2535 | int main() { | 3726 | ; |
| 2536 | 3727 | return 0; | |
| 2537 | ; return 0; } | 3728 | } |
| 2538 | EOF | 3729 | _ACEOF |
| 2539 | if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3730 | rm -f conftest.$ac_objext |
| 2540 | : | 3731 | if { (eval echo "$as_me:3731: \"$ac_compile\"") >&5 |
| 3732 | (eval $ac_compile) 2>&5 | ||
| 3733 | ac_status=$? | ||
| 3734 | echo "$as_me:3734: \$? = $ac_status" >&5 | ||
| 3735 | (exit $ac_status); } && | ||
| 3736 | { ac_try='test -s conftest.$ac_objext' | ||
| 3737 | { (eval echo "$as_me:3737: \"$ac_try\"") >&5 | ||
| 3738 | (eval $ac_try) 2>&5 | ||
| 3739 | ac_status=$? | ||
| 3740 | echo "$as_me:3740: \$? = $ac_status" >&5 | ||
| 3741 | (exit $ac_status); }; }; then | ||
| 3742 | break | ||
| 2541 | else | 3743 | else |
| 2542 | echo "configure: failed program was:" >&5 | 3744 | echo "$as_me: failed program was:" >&5 |
| 2543 | cat conftest.$ac_ext >&5 | 3745 | cat conftest.$ac_ext >&5 |
| 2544 | rm -rf conftest* | 3746 | fi |
| 2545 | cat > conftest.$ac_ext <<EOF | 3747 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2546 | #line 2547 "configure" | 3748 | cat >conftest.$ac_ext <<_ACEOF |
| 3749 | #line 3749 "configure" | ||
| 2547 | #include "confdefs.h" | 3750 | #include "confdefs.h" |
| 2548 | #define _LARGE_FILES 1 | 3751 | #define _LARGE_FILES 1 |
| 3752 | #include <sys/types.h> | ||
| 3753 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
| 3754 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
| 3755 | since some C++ compilers masquerading as C compilers | ||
| 3756 | incorrectly reject 9223372036854775807. */ | ||
| 3757 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
| 3758 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
| 3759 | && LARGE_OFF_T % 2147483647 == 1) | ||
| 3760 | ? 1 : -1]; | ||
| 3761 | int | ||
| 3762 | main () | ||
| 3763 | { | ||
| 2549 | 3764 | ||
| 2550 | 3765 | ; | |
| 2551 | int main() { | 3766 | return 0; |
| 2552 | 3767 | } | |
| 2553 | ; return 0; } | 3768 | _ACEOF |
| 2554 | EOF | 3769 | rm -f conftest.$ac_objext |
| 2555 | if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3770 | if { (eval echo "$as_me:3770: \"$ac_compile\"") >&5 |
| 2556 | rm -rf conftest* | 3771 | (eval $ac_compile) 2>&5 |
| 2557 | ac_cv_sys_large_files=1 | 3772 | ac_status=$? |
| 2558 | else | 3773 | echo "$as_me:3773: \$? = $ac_status" >&5 |
| 2559 | echo "configure: failed program was:" >&5 | 3774 | (exit $ac_status); } && |
| 2560 | cat conftest.$ac_ext >&5 | 3775 | { ac_try='test -s conftest.$ac_objext' |
| 2561 | fi | 3776 | { (eval echo "$as_me:3776: \"$ac_try\"") >&5 |
| 2562 | rm -f conftest* | 3777 | (eval $ac_try) 2>&5 |
| 2563 | fi | 3778 | ac_status=$? |
| 2564 | rm -f conftest* | 3779 | echo "$as_me:3779: \$? = $ac_status" >&5 |
| 3780 | (exit $ac_status); }; }; then | ||
| 3781 | ac_cv_sys_large_files=1; break | ||
| 3782 | else | ||
| 3783 | echo "$as_me: failed program was:" >&5 | ||
| 3784 | cat conftest.$ac_ext >&5 | ||
| 3785 | fi | ||
| 3786 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 3787 | break | ||
| 3788 | done | ||
| 2565 | fi | 3789 | fi |
| 3790 | echo "$as_me:3790: result: $ac_cv_sys_large_files" >&5 | ||
| 3791 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
| 3792 | if test "$ac_cv_sys_large_files" != no; then | ||
| 2566 | 3793 | ||
| 2567 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | 3794 | cat >>confdefs.h <<EOF |
| 2568 | if test "$ac_cv_sys_large_files" != no; then | ||
| 2569 | cat >> confdefs.h <<EOF | ||
| 2570 | #define _LARGE_FILES $ac_cv_sys_large_files | 3795 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 2571 | EOF | 3796 | EOF |
| 2572 | 3797 | ||
| 2573 | fi | 3798 | fi |
| 2574 | fi | 3799 | rm -f conftest* |
| 2575 | 3800 | fi | |
| 2576 | 3801 | ||
| 2577 | # Sound support for GNU/Linux and the free BSDs. | 3802 | # Sound support for GNU/Linux and the free BSDs. |
| 2578 | for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h | 3803 | |
| 3804 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | ||
| 2579 | do | 3805 | do |
| 2580 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 3806 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2581 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 3807 | echo "$as_me:3807: checking for $ac_header" >&5 |
| 2582 | echo "configure:2583: checking for $ac_hdr" >&5 | 3808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2583 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 3809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2584 | echo $ac_n "(cached) $ac_c" 1>&6 | 3810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2585 | else | 3811 | else |
| 2586 | cat > conftest.$ac_ext <<EOF | 3812 | cat >conftest.$ac_ext <<_ACEOF |
| 2587 | #line 2588 "configure" | 3813 | #line 3813 "configure" |
| 2588 | #include "confdefs.h" | 3814 | #include "confdefs.h" |
| 2589 | #include <$ac_hdr> | 3815 | #include <$ac_header> |
| 2590 | EOF | 3816 | _ACEOF |
| 2591 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3817 | if { (eval echo "$as_me:3817: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2592 | { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2593 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3819 | ac_status=$? |
| 2594 | if test -z "$ac_err"; then | 3820 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2595 | rm -rf conftest* | 3821 | rm -f conftest.er1 |
| 2596 | eval "ac_cv_header_$ac_safe=yes" | 3822 | cat conftest.err >&5 |
| 2597 | else | 3823 | echo "$as_me:3823: \$? = $ac_status" >&5 |
| 2598 | echo "$ac_err" >&5 | 3824 | (exit $ac_status); } >/dev/null; then |
| 2599 | echo "configure: failed program was:" >&5 | 3825 | if test -s conftest.err; then |
| 3826 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3827 | else | ||
| 3828 | ac_cpp_err= | ||
| 3829 | fi | ||
| 3830 | else | ||
| 3831 | ac_cpp_err=yes | ||
| 3832 | fi | ||
| 3833 | if test -z "$ac_cpp_err"; then | ||
| 3834 | eval "$as_ac_Header=yes" | ||
| 3835 | else | ||
| 3836 | echo "$as_me: failed program was:" >&5 | ||
| 2600 | cat conftest.$ac_ext >&5 | 3837 | cat conftest.$ac_ext >&5 |
| 2601 | rm -rf conftest* | 3838 | eval "$as_ac_Header=no" |
| 2602 | eval "ac_cv_header_$ac_safe=no" | ||
| 2603 | fi | 3839 | fi |
| 2604 | rm -f conftest* | 3840 | rm -f conftest.err conftest.$ac_ext |
| 2605 | fi | 3841 | fi |
| 2606 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 3842 | echo "$as_me:3842: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2607 | echo "$ac_t""yes" 1>&6 | 3843 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2608 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 3844 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2609 | cat >> confdefs.h <<EOF | 3845 | cat >>confdefs.h <<EOF |
| 2610 | #define $ac_tr_hdr 1 | 3846 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2611 | EOF | 3847 | EOF |
| 2612 | 3848 | ||
| 2613 | else | ||
| 2614 | echo "$ac_t""no" 1>&6 | ||
| 2615 | fi | 3849 | fi |
| 2616 | done | 3850 | done |
| 2617 | 3851 | ||
| 2618 | # Emulation library used on NetBSD. | 3852 | # Emulation library used on NetBSD. |
| 2619 | echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 | 3853 | echo "$as_me:3853: checking for _oss_ioctl in -lossaudio" >&5 |
| 2620 | echo "configure:2621: checking for _oss_ioctl in -lossaudio" >&5 | 3854 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 2621 | ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` | 3855 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 2622 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2623 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2624 | else | 3857 | else |
| 2625 | ac_save_LIBS="$LIBS" | 3858 | ac_check_lib_save_LIBS=$LIBS |
| 2626 | LIBS="-lossaudio $LIBS" | 3859 | LIBS="-lossaudio $LIBS" |
| 2627 | cat > conftest.$ac_ext <<EOF | 3860 | cat >conftest.$ac_ext <<_ACEOF |
| 2628 | #line 2629 "configure" | 3861 | #line 3861 "configure" |
| 2629 | #include "confdefs.h" | 3862 | #include "confdefs.h" |
| 3863 | |||
| 2630 | /* Override any gcc2 internal prototype to avoid an error. */ | 3864 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3865 | #ifdef __cplusplus | ||
| 3866 | extern "C" | ||
| 3867 | #endif | ||
| 2631 | /* We use char because int might match the return type of a gcc2 | 3868 | /* We use char because int might match the return type of a gcc2 |
| 2632 | builtin and then its argument prototype would still apply. */ | 3869 | builtin and then its argument prototype would still apply. */ |
| 2633 | char _oss_ioctl(); | 3870 | char _oss_ioctl (); |
| 2634 | 3871 | int | |
| 2635 | int main() { | 3872 | main () |
| 2636 | _oss_ioctl() | 3873 | { |
| 2637 | ; return 0; } | 3874 | _oss_ioctl (); |
| 2638 | EOF | 3875 | ; |
| 2639 | if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3876 | return 0; |
| 2640 | rm -rf conftest* | 3877 | } |
| 2641 | eval "ac_cv_lib_$ac_lib_var=yes" | 3878 | _ACEOF |
| 2642 | else | 3879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2643 | echo "configure: failed program was:" >&5 | 3880 | if { (eval echo "$as_me:3880: \"$ac_link\"") >&5 |
| 2644 | cat conftest.$ac_ext >&5 | 3881 | (eval $ac_link) 2>&5 |
| 2645 | rm -rf conftest* | 3882 | ac_status=$? |
| 2646 | eval "ac_cv_lib_$ac_lib_var=no" | 3883 | echo "$as_me:3883: \$? = $ac_status" >&5 |
| 2647 | fi | 3884 | (exit $ac_status); } && |
| 2648 | rm -f conftest* | 3885 | { ac_try='test -s conftest$ac_exeext' |
| 2649 | LIBS="$ac_save_LIBS" | 3886 | { (eval echo "$as_me:3886: \"$ac_try\"") >&5 |
| 2650 | 3887 | (eval $ac_try) 2>&5 | |
| 2651 | fi | 3888 | ac_status=$? |
| 2652 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 3889 | echo "$as_me:3889: \$? = $ac_status" >&5 |
| 2653 | echo "$ac_t""yes" 1>&6 | 3890 | (exit $ac_status); }; }; then |
| 3891 | ac_cv_lib_ossaudio__oss_ioctl=yes | ||
| 3892 | else | ||
| 3893 | echo "$as_me: failed program was:" >&5 | ||
| 3894 | cat conftest.$ac_ext >&5 | ||
| 3895 | ac_cv_lib_ossaudio__oss_ioctl=no | ||
| 3896 | fi | ||
| 3897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 3898 | LIBS=$ac_check_lib_save_LIBS | ||
| 3899 | fi | ||
| 3900 | echo "$as_me:3900: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | ||
| 3901 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 | ||
| 3902 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | ||
| 2654 | LIBSOUND=-lossaudio | 3903 | LIBSOUND=-lossaudio |
| 2655 | else | 3904 | else |
| 2656 | echo "$ac_t""no" 1>&6 | 3905 | LIBSOUND= |
| 2657 | LIBSOUND= | ||
| 2658 | fi | 3906 | fi |
| 2659 | 3907 | ||
| 2660 | 3908 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |
| 2661 | |||
| 2662 | for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | ||
| 2663 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 3909 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 2664 | termcap.h stdio_ext.h fcntl.h term.h strings.h | 3910 | termcap.h stdio_ext.h fcntl.h term.h strings.h |
| 2665 | do | 3911 | do |
| 2666 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 3912 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2667 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 3913 | echo "$as_me:3913: checking for $ac_header" >&5 |
| 2668 | echo "configure:2669: checking for $ac_hdr" >&5 | 3914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2669 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 3915 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2670 | echo $ac_n "(cached) $ac_c" 1>&6 | 3916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2671 | else | 3917 | else |
| 2672 | cat > conftest.$ac_ext <<EOF | 3918 | cat >conftest.$ac_ext <<_ACEOF |
| 2673 | #line 2674 "configure" | 3919 | #line 3919 "configure" |
| 2674 | #include "confdefs.h" | 3920 | #include "confdefs.h" |
| 2675 | #include <$ac_hdr> | 3921 | #include <$ac_header> |
| 2676 | EOF | 3922 | _ACEOF |
| 2677 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3923 | if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2678 | { (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2679 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3925 | ac_status=$? |
| 2680 | if test -z "$ac_err"; then | 3926 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2681 | rm -rf conftest* | 3927 | rm -f conftest.er1 |
| 2682 | eval "ac_cv_header_$ac_safe=yes" | 3928 | cat conftest.err >&5 |
| 2683 | else | 3929 | echo "$as_me:3929: \$? = $ac_status" >&5 |
| 2684 | echo "$ac_err" >&5 | 3930 | (exit $ac_status); } >/dev/null; then |
| 2685 | echo "configure: failed program was:" >&5 | 3931 | if test -s conftest.err; then |
| 3932 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3933 | else | ||
| 3934 | ac_cpp_err= | ||
| 3935 | fi | ||
| 3936 | else | ||
| 3937 | ac_cpp_err=yes | ||
| 3938 | fi | ||
| 3939 | if test -z "$ac_cpp_err"; then | ||
| 3940 | eval "$as_ac_Header=yes" | ||
| 3941 | else | ||
| 3942 | echo "$as_me: failed program was:" >&5 | ||
| 2686 | cat conftest.$ac_ext >&5 | 3943 | cat conftest.$ac_ext >&5 |
| 2687 | rm -rf conftest* | 3944 | eval "$as_ac_Header=no" |
| 2688 | eval "ac_cv_header_$ac_safe=no" | ||
| 2689 | fi | 3945 | fi |
| 2690 | rm -f conftest* | 3946 | rm -f conftest.err conftest.$ac_ext |
| 2691 | fi | 3947 | fi |
| 2692 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 3948 | echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2693 | echo "$ac_t""yes" 1>&6 | 3949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2694 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 3950 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2695 | cat >> confdefs.h <<EOF | 3951 | cat >>confdefs.h <<EOF |
| 2696 | #define $ac_tr_hdr 1 | 3952 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2697 | EOF | 3953 | EOF |
| 2698 | 3954 | ||
| 2699 | else | ||
| 2700 | echo "$ac_t""no" 1>&6 | ||
| 2701 | fi | 3955 | fi |
| 2702 | done | 3956 | done |
| 2703 | 3957 | ||
| 2704 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 3958 | echo "$as_me:3958: checking for ANSI C header files" >&5 |
| 2705 | echo "configure:2706: checking for ANSI C header files" >&5 | 3959 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2706 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 3960 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2707 | echo $ac_n "(cached) $ac_c" 1>&6 | 3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2708 | else | 3962 | else |
| 2709 | cat > conftest.$ac_ext <<EOF | 3963 | cat >conftest.$ac_ext <<_ACEOF |
| 2710 | #line 2711 "configure" | 3964 | #line 3964 "configure" |
| 2711 | #include "confdefs.h" | 3965 | #include "confdefs.h" |
| 2712 | #include <stdlib.h> | 3966 | #include <stdlib.h> |
| 2713 | #include <stdarg.h> | 3967 | #include <stdarg.h> |
| 2714 | #include <string.h> | 3968 | #include <string.h> |
| 2715 | #include <float.h> | 3969 | #include <float.h> |
| 2716 | EOF | 3970 | |
| 2717 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3971 | _ACEOF |
| 2718 | { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3972 | if { (eval echo "$as_me:3972: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2719 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3973 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2720 | if test -z "$ac_err"; then | 3974 | ac_status=$? |
| 2721 | rm -rf conftest* | 3975 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3976 | rm -f conftest.er1 | ||
| 3977 | cat conftest.err >&5 | ||
| 3978 | echo "$as_me:3978: \$? = $ac_status" >&5 | ||
| 3979 | (exit $ac_status); } >/dev/null; then | ||
| 3980 | if test -s conftest.err; then | ||
| 3981 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3982 | else | ||
| 3983 | ac_cpp_err= | ||
| 3984 | fi | ||
| 3985 | else | ||
| 3986 | ac_cpp_err=yes | ||
| 3987 | fi | ||
| 3988 | if test -z "$ac_cpp_err"; then | ||
| 2722 | ac_cv_header_stdc=yes | 3989 | ac_cv_header_stdc=yes |
| 2723 | else | 3990 | else |
| 2724 | echo "$ac_err" >&5 | 3991 | echo "$as_me: failed program was:" >&5 |
| 2725 | echo "configure: failed program was:" >&5 | ||
| 2726 | cat conftest.$ac_ext >&5 | 3992 | cat conftest.$ac_ext >&5 |
| 2727 | rm -rf conftest* | ||
| 2728 | ac_cv_header_stdc=no | 3993 | ac_cv_header_stdc=no |
| 2729 | fi | 3994 | fi |
| 2730 | rm -f conftest* | 3995 | rm -f conftest.err conftest.$ac_ext |
| 2731 | 3996 | ||
| 2732 | if test $ac_cv_header_stdc = yes; then | 3997 | if test $ac_cv_header_stdc = yes; then |
| 2733 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 3998 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2734 | cat > conftest.$ac_ext <<EOF | 3999 | cat >conftest.$ac_ext <<_ACEOF |
| 2735 | #line 2736 "configure" | 4000 | #line 4000 "configure" |
| 2736 | #include "confdefs.h" | 4001 | #include "confdefs.h" |
| 2737 | #include <string.h> | 4002 | #include <string.h> |
| 2738 | EOF | 4003 | |
| 4004 | _ACEOF | ||
| 2739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 4005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2740 | egrep "memchr" >/dev/null 2>&1; then | 4006 | egrep "memchr" >/dev/null 2>&1; then |
| 2741 | : | 4007 | : |
| 2742 | else | 4008 | else |
| 2743 | rm -rf conftest* | ||
| 2744 | ac_cv_header_stdc=no | 4009 | ac_cv_header_stdc=no |
| 2745 | fi | 4010 | fi |
| 2746 | rm -f conftest* | 4011 | rm -f conftest* |
| @@ -2749,16 +4014,16 @@ fi | |||
| 2749 | 4014 | ||
| 2750 | if test $ac_cv_header_stdc = yes; then | 4015 | if test $ac_cv_header_stdc = yes; then |
| 2751 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 4016 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2752 | cat > conftest.$ac_ext <<EOF | 4017 | cat >conftest.$ac_ext <<_ACEOF |
| 2753 | #line 2754 "configure" | 4018 | #line 4018 "configure" |
| 2754 | #include "confdefs.h" | 4019 | #include "confdefs.h" |
| 2755 | #include <stdlib.h> | 4020 | #include <stdlib.h> |
| 2756 | EOF | 4021 | |
| 4022 | _ACEOF | ||
| 2757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 4023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2758 | egrep "free" >/dev/null 2>&1; then | 4024 | egrep "free" >/dev/null 2>&1; then |
| 2759 | : | 4025 | : |
| 2760 | else | 4026 | else |
| 2761 | rm -rf conftest* | ||
| 2762 | ac_cv_header_stdc=no | 4027 | ac_cv_header_stdc=no |
| 2763 | fi | 4028 | fi |
| 2764 | rm -f conftest* | 4029 | rm -f conftest* |
| @@ -2767,167 +4032,235 @@ fi | |||
| 2767 | 4032 | ||
| 2768 | if test $ac_cv_header_stdc = yes; then | 4033 | if test $ac_cv_header_stdc = yes; then |
| 2769 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 4034 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2770 | if test "$cross_compiling" = yes; then | 4035 | if test "$cross_compiling" = yes; then |
| 2771 | : | 4036 | : |
| 2772 | else | 4037 | else |
| 2773 | cat > conftest.$ac_ext <<EOF | 4038 | cat >conftest.$ac_ext <<_ACEOF |
| 2774 | #line 2775 "configure" | 4039 | #line 4039 "configure" |
| 2775 | #include "confdefs.h" | 4040 | #include "confdefs.h" |
| 2776 | #include <ctype.h> | 4041 | #include <ctype.h> |
| 2777 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 4042 | #if ((' ' & 0x0FF) == 0x020) |
| 2778 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 4043 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2779 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 4044 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2780 | int main () { int i; for (i = 0; i < 256; i++) | 4045 | #else |
| 2781 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 4046 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2782 | exit (0); } | 4047 | || ('j' <= (c) && (c) <= 'r') \ |
| 4048 | || ('s' <= (c) && (c) <= 'z')) | ||
| 4049 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
| 4050 | #endif | ||
| 2783 | 4051 | ||
| 2784 | EOF | 4052 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2785 | if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 4053 | int |
| 2786 | then | 4054 | main () |
| 4055 | { | ||
| 4056 | int i; | ||
| 4057 | for (i = 0; i < 256; i++) | ||
| 4058 | if (XOR (islower (i), ISLOWER (i)) | ||
| 4059 | || toupper (i) != TOUPPER (i)) | ||
| 4060 | exit(2); | ||
| 4061 | exit (0); | ||
| 4062 | } | ||
| 4063 | _ACEOF | ||
| 4064 | rm -f conftest$ac_exeext | ||
| 4065 | if { (eval echo "$as_me:4065: \"$ac_link\"") >&5 | ||
| 4066 | (eval $ac_link) 2>&5 | ||
| 4067 | ac_status=$? | ||
| 4068 | echo "$as_me:4068: \$? = $ac_status" >&5 | ||
| 4069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 4070 | { (eval echo "$as_me:4070: \"$ac_try\"") >&5 | ||
| 4071 | (eval $ac_try) 2>&5 | ||
| 4072 | ac_status=$? | ||
| 4073 | echo "$as_me:4073: \$? = $ac_status" >&5 | ||
| 4074 | (exit $ac_status); }; }; then | ||
| 2787 | : | 4075 | : |
| 2788 | else | 4076 | else |
| 2789 | echo "configure: failed program was:" >&5 | 4077 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2790 | cat conftest.$ac_ext >&5 | 4078 | echo "$as_me: failed program was:" >&5 |
| 2791 | rm -fr conftest* | 4079 | cat conftest.$ac_ext >&5 |
| 2792 | ac_cv_header_stdc=no | 4080 | ac_cv_header_stdc=no |
| 2793 | fi | 4081 | fi |
| 2794 | rm -fr conftest* | 4082 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2795 | fi | 4083 | fi |
| 2796 | |||
| 2797 | fi | 4084 | fi |
| 2798 | fi | 4085 | fi |
| 2799 | 4086 | echo "$as_me:4086: result: $ac_cv_header_stdc" >&5 | |
| 2800 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 4087 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2801 | if test $ac_cv_header_stdc = yes; then | 4088 | if test $ac_cv_header_stdc = yes; then |
| 2802 | cat >> confdefs.h <<\EOF | 4089 | |
| 4090 | cat >>confdefs.h <<\EOF | ||
| 2803 | #define STDC_HEADERS 1 | 4091 | #define STDC_HEADERS 1 |
| 2804 | EOF | 4092 | EOF |
| 2805 | 4093 | ||
| 2806 | fi | 4094 | fi |
| 2807 | 4095 | ||
| 2808 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 4096 | echo "$as_me:4096: checking whether time.h and sys/time.h may both be included" >&5 |
| 2809 | echo "configure:2810: checking whether time.h and sys/time.h may both be included" >&5 | 4097 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 2810 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 4098 | if test "${ac_cv_header_time+set}" = set; then |
| 2811 | echo $ac_n "(cached) $ac_c" 1>&6 | 4099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2812 | else | 4100 | else |
| 2813 | cat > conftest.$ac_ext <<EOF | 4101 | cat >conftest.$ac_ext <<_ACEOF |
| 2814 | #line 2815 "configure" | 4102 | #line 4102 "configure" |
| 2815 | #include "confdefs.h" | 4103 | #include "confdefs.h" |
| 2816 | #include <sys/types.h> | 4104 | #include <sys/types.h> |
| 2817 | #include <sys/time.h> | 4105 | #include <sys/time.h> |
| 2818 | #include <time.h> | 4106 | #include <time.h> |
| 2819 | int main() { | 4107 | |
| 2820 | struct tm *tp; | 4108 | int |
| 2821 | ; return 0; } | 4109 | main () |
| 2822 | EOF | 4110 | { |
| 2823 | if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4111 | if ((struct tm *) 0) |
| 2824 | rm -rf conftest* | 4112 | return 0; |
| 4113 | ; | ||
| 4114 | return 0; | ||
| 4115 | } | ||
| 4116 | _ACEOF | ||
| 4117 | rm -f conftest.$ac_objext | ||
| 4118 | if { (eval echo "$as_me:4118: \"$ac_compile\"") >&5 | ||
| 4119 | (eval $ac_compile) 2>&5 | ||
| 4120 | ac_status=$? | ||
| 4121 | echo "$as_me:4121: \$? = $ac_status" >&5 | ||
| 4122 | (exit $ac_status); } && | ||
| 4123 | { ac_try='test -s conftest.$ac_objext' | ||
| 4124 | { (eval echo "$as_me:4124: \"$ac_try\"") >&5 | ||
| 4125 | (eval $ac_try) 2>&5 | ||
| 4126 | ac_status=$? | ||
| 4127 | echo "$as_me:4127: \$? = $ac_status" >&5 | ||
| 4128 | (exit $ac_status); }; }; then | ||
| 2825 | ac_cv_header_time=yes | 4129 | ac_cv_header_time=yes |
| 2826 | else | 4130 | else |
| 2827 | echo "configure: failed program was:" >&5 | 4131 | echo "$as_me: failed program was:" >&5 |
| 2828 | cat conftest.$ac_ext >&5 | 4132 | cat conftest.$ac_ext >&5 |
| 2829 | rm -rf conftest* | 4133 | ac_cv_header_time=no |
| 2830 | ac_cv_header_time=no | ||
| 2831 | fi | 4134 | fi |
| 2832 | rm -f conftest* | 4135 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2833 | fi | 4136 | fi |
| 2834 | 4137 | echo "$as_me:4137: result: $ac_cv_header_time" >&5 | |
| 2835 | echo "$ac_t""$ac_cv_header_time" 1>&6 | 4138 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 2836 | if test $ac_cv_header_time = yes; then | 4139 | if test $ac_cv_header_time = yes; then |
| 2837 | cat >> confdefs.h <<\EOF | 4140 | |
| 4141 | cat >>confdefs.h <<\EOF | ||
| 2838 | #define TIME_WITH_SYS_TIME 1 | 4142 | #define TIME_WITH_SYS_TIME 1 |
| 2839 | EOF | 4143 | EOF |
| 2840 | 4144 | ||
| 2841 | fi | 4145 | fi |
| 2842 | 4146 | ||
| 2843 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 4147 | echo "$as_me:4147: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
| 2844 | echo "configure:2845: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 4148 | echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
| 2845 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then | 4149 | if test "${ac_cv_decl_sys_siglist+set}" = set; then |
| 2846 | echo $ac_n "(cached) $ac_c" 1>&6 | 4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2847 | else | 4151 | else |
| 2848 | cat > conftest.$ac_ext <<EOF | 4152 | cat >conftest.$ac_ext <<_ACEOF |
| 2849 | #line 2850 "configure" | 4153 | #line 4153 "configure" |
| 2850 | #include "confdefs.h" | 4154 | #include "confdefs.h" |
| 2851 | #include <sys/types.h> | 4155 | #include <sys/types.h> |
| 2852 | #include <signal.h> | 4156 | #include <signal.h> |
| 2853 | /* NetBSD declares sys_siglist in unistd.h. */ | 4157 | /* NetBSD declares sys_siglist in unistd.h. */ |
| 2854 | #ifdef HAVE_UNISTD_H | 4158 | #if HAVE_UNISTD_H |
| 2855 | #include <unistd.h> | 4159 | # include <unistd.h> |
| 2856 | #endif | 4160 | #endif |
| 2857 | int main() { | 4161 | |
| 4162 | int | ||
| 4163 | main () | ||
| 4164 | { | ||
| 2858 | char *msg = *(sys_siglist + 1); | 4165 | char *msg = *(sys_siglist + 1); |
| 2859 | ; return 0; } | 4166 | ; |
| 2860 | EOF | 4167 | return 0; |
| 2861 | if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4168 | } |
| 2862 | rm -rf conftest* | 4169 | _ACEOF |
| 4170 | rm -f conftest.$ac_objext | ||
| 4171 | if { (eval echo "$as_me:4171: \"$ac_compile\"") >&5 | ||
| 4172 | (eval $ac_compile) 2>&5 | ||
| 4173 | ac_status=$? | ||
| 4174 | echo "$as_me:4174: \$? = $ac_status" >&5 | ||
| 4175 | (exit $ac_status); } && | ||
| 4176 | { ac_try='test -s conftest.$ac_objext' | ||
| 4177 | { (eval echo "$as_me:4177: \"$ac_try\"") >&5 | ||
| 4178 | (eval $ac_try) 2>&5 | ||
| 4179 | ac_status=$? | ||
| 4180 | echo "$as_me:4180: \$? = $ac_status" >&5 | ||
| 4181 | (exit $ac_status); }; }; then | ||
| 2863 | ac_cv_decl_sys_siglist=yes | 4182 | ac_cv_decl_sys_siglist=yes |
| 2864 | else | 4183 | else |
| 2865 | echo "configure: failed program was:" >&5 | 4184 | echo "$as_me: failed program was:" >&5 |
| 2866 | cat conftest.$ac_ext >&5 | 4185 | cat conftest.$ac_ext >&5 |
| 2867 | rm -rf conftest* | 4186 | ac_cv_decl_sys_siglist=no |
| 2868 | ac_cv_decl_sys_siglist=no | ||
| 2869 | fi | 4187 | fi |
| 2870 | rm -f conftest* | 4188 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2871 | fi | 4189 | fi |
| 2872 | 4190 | echo "$as_me:4190: result: $ac_cv_decl_sys_siglist" >&5 | |
| 2873 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | 4191 | echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
| 2874 | if test $ac_cv_decl_sys_siglist = yes; then | 4192 | if test $ac_cv_decl_sys_siglist = yes; then |
| 2875 | cat >> confdefs.h <<\EOF | 4193 | |
| 4194 | cat >>confdefs.h <<\EOF | ||
| 2876 | #define SYS_SIGLIST_DECLARED 1 | 4195 | #define SYS_SIGLIST_DECLARED 1 |
| 2877 | EOF | 4196 | EOF |
| 2878 | 4197 | ||
| 2879 | fi | 4198 | fi |
| 2880 | 4199 | ||
| 2881 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | 4200 | echo "$as_me:4200: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 2882 | echo "configure:2883: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 4201 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 2883 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then | 4202 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 2884 | echo $ac_n "(cached) $ac_c" 1>&6 | 4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2885 | else | 4204 | else |
| 2886 | cat > conftest.$ac_ext <<EOF | 4205 | cat >conftest.$ac_ext <<_ACEOF |
| 2887 | #line 2888 "configure" | 4206 | #line 4206 "configure" |
| 2888 | #include "confdefs.h" | 4207 | #include "confdefs.h" |
| 2889 | #include <sys/types.h> | 4208 | #include <sys/types.h> |
| 2890 | #include <sys/wait.h> | 4209 | #include <sys/wait.h> |
| 2891 | #ifndef WEXITSTATUS | 4210 | #ifndef WEXITSTATUS |
| 2892 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 4211 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 2893 | #endif | 4212 | #endif |
| 2894 | #ifndef WIFEXITED | 4213 | #ifndef WIFEXITED |
| 2895 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 4214 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 2896 | #endif | 4215 | #endif |
| 2897 | int main() { | 4216 | |
| 2898 | int s; | 4217 | int |
| 2899 | wait (&s); | 4218 | main () |
| 2900 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 4219 | { |
| 2901 | ; return 0; } | 4220 | int s; |
| 2902 | EOF | 4221 | wait (&s); |
| 2903 | if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4222 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 2904 | rm -rf conftest* | 4223 | ; |
| 4224 | return 0; | ||
| 4225 | } | ||
| 4226 | _ACEOF | ||
| 4227 | rm -f conftest.$ac_objext | ||
| 4228 | if { (eval echo "$as_me:4228: \"$ac_compile\"") >&5 | ||
| 4229 | (eval $ac_compile) 2>&5 | ||
| 4230 | ac_status=$? | ||
| 4231 | echo "$as_me:4231: \$? = $ac_status" >&5 | ||
| 4232 | (exit $ac_status); } && | ||
| 4233 | { ac_try='test -s conftest.$ac_objext' | ||
| 4234 | { (eval echo "$as_me:4234: \"$ac_try\"") >&5 | ||
| 4235 | (eval $ac_try) 2>&5 | ||
| 4236 | ac_status=$? | ||
| 4237 | echo "$as_me:4237: \$? = $ac_status" >&5 | ||
| 4238 | (exit $ac_status); }; }; then | ||
| 2905 | ac_cv_header_sys_wait_h=yes | 4239 | ac_cv_header_sys_wait_h=yes |
| 2906 | else | 4240 | else |
| 2907 | echo "configure: failed program was:" >&5 | 4241 | echo "$as_me: failed program was:" >&5 |
| 2908 | cat conftest.$ac_ext >&5 | 4242 | cat conftest.$ac_ext >&5 |
| 2909 | rm -rf conftest* | 4243 | ac_cv_header_sys_wait_h=no |
| 2910 | ac_cv_header_sys_wait_h=no | ||
| 2911 | fi | 4244 | fi |
| 2912 | rm -f conftest* | 4245 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2913 | fi | 4246 | fi |
| 2914 | 4247 | echo "$as_me:4247: result: $ac_cv_header_sys_wait_h" >&5 | |
| 2915 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | 4248 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 2916 | if test $ac_cv_header_sys_wait_h = yes; then | 4249 | if test $ac_cv_header_sys_wait_h = yes; then |
| 2917 | cat >> confdefs.h <<\EOF | 4250 | |
| 4251 | cat >>confdefs.h <<\EOF | ||
| 2918 | #define HAVE_SYS_WAIT_H 1 | 4252 | #define HAVE_SYS_WAIT_H 1 |
| 2919 | EOF | 4253 | EOF |
| 2920 | 4254 | ||
| 2921 | fi | 4255 | fi |
| 2922 | 4256 | ||
| 2923 | 4257 | echo "$as_me:4257: checking for struct utimbuf" >&5 | |
| 2924 | echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 4258 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
| 2925 | echo "configure:2926: checking for struct utimbuf" >&5 | 4259 | if test "${emacs_cv_struct_utimbuf+set}" = set; then |
| 2926 | if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then | 4260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2927 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2928 | else | 4261 | else |
| 2929 | cat > conftest.$ac_ext <<EOF | 4262 | cat >conftest.$ac_ext <<_ACEOF |
| 2930 | #line 2931 "configure" | 4263 | #line 4263 "configure" |
| 2931 | #include "confdefs.h" | 4264 | #include "confdefs.h" |
| 2932 | #ifdef TIME_WITH_SYS_TIME | 4265 | #ifdef TIME_WITH_SYS_TIME |
| 2933 | #include <sys/time.h> | 4266 | #include <sys/time.h> |
| @@ -2942,42 +4275,55 @@ else | |||
| 2942 | #ifdef HAVE_UTIME_H | 4275 | #ifdef HAVE_UTIME_H |
| 2943 | #include <utime.h> | 4276 | #include <utime.h> |
| 2944 | #endif | 4277 | #endif |
| 2945 | int main() { | 4278 | int |
| 4279 | main () | ||
| 4280 | { | ||
| 2946 | static struct utimbuf x; x.actime = x.modtime; | 4281 | static struct utimbuf x; x.actime = x.modtime; |
| 2947 | ; return 0; } | 4282 | ; |
| 2948 | EOF | 4283 | return 0; |
| 2949 | if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4284 | } |
| 2950 | rm -rf conftest* | 4285 | _ACEOF |
| 4286 | rm -f conftest.$ac_objext | ||
| 4287 | if { (eval echo "$as_me:4287: \"$ac_compile\"") >&5 | ||
| 4288 | (eval $ac_compile) 2>&5 | ||
| 4289 | ac_status=$? | ||
| 4290 | echo "$as_me:4290: \$? = $ac_status" >&5 | ||
| 4291 | (exit $ac_status); } && | ||
| 4292 | { ac_try='test -s conftest.$ac_objext' | ||
| 4293 | { (eval echo "$as_me:4293: \"$ac_try\"") >&5 | ||
| 4294 | (eval $ac_try) 2>&5 | ||
| 4295 | ac_status=$? | ||
| 4296 | echo "$as_me:4296: \$? = $ac_status" >&5 | ||
| 4297 | (exit $ac_status); }; }; then | ||
| 2951 | emacs_cv_struct_utimbuf=yes | 4298 | emacs_cv_struct_utimbuf=yes |
| 2952 | else | 4299 | else |
| 2953 | echo "configure: failed program was:" >&5 | 4300 | echo "$as_me: failed program was:" >&5 |
| 2954 | cat conftest.$ac_ext >&5 | 4301 | cat conftest.$ac_ext >&5 |
| 2955 | rm -rf conftest* | 4302 | emacs_cv_struct_utimbuf=no |
| 2956 | emacs_cv_struct_utimbuf=no | ||
| 2957 | fi | 4303 | fi |
| 2958 | rm -f conftest* | 4304 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2959 | fi | 4305 | fi |
| 2960 | 4306 | echo "$as_me:4306: result: $emacs_cv_struct_utimbuf" >&5 | |
| 2961 | echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6 | 4307 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
| 2962 | if test $emacs_cv_struct_utimbuf = yes; then | 4308 | if test $emacs_cv_struct_utimbuf = yes; then |
| 2963 | cat >> confdefs.h <<\EOF | 4309 | cat >>confdefs.h <<\EOF |
| 2964 | #define HAVE_STRUCT_UTIMBUF 1 | 4310 | #define HAVE_STRUCT_UTIMBUF 1 |
| 2965 | EOF | 4311 | EOF |
| 2966 | 4312 | ||
| 2967 | fi | 4313 | fi |
| 2968 | 4314 | ||
| 2969 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 4315 | echo "$as_me:4315: checking return type of signal handlers" >&5 |
| 2970 | echo "configure:2971: checking return type of signal handlers" >&5 | 4316 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 2971 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 4317 | if test "${ac_cv_type_signal+set}" = set; then |
| 2972 | echo $ac_n "(cached) $ac_c" 1>&6 | 4318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2973 | else | 4319 | else |
| 2974 | cat > conftest.$ac_ext <<EOF | 4320 | cat >conftest.$ac_ext <<_ACEOF |
| 2975 | #line 2976 "configure" | 4321 | #line 4321 "configure" |
| 2976 | #include "confdefs.h" | 4322 | #include "confdefs.h" |
| 2977 | #include <sys/types.h> | 4323 | #include <sys/types.h> |
| 2978 | #include <signal.h> | 4324 | #include <signal.h> |
| 2979 | #ifdef signal | 4325 | #ifdef signal |
| 2980 | #undef signal | 4326 | # undef signal |
| 2981 | #endif | 4327 | #endif |
| 2982 | #ifdef __cplusplus | 4328 | #ifdef __cplusplus |
| 2983 | extern "C" void (*signal (int, void (*)(int)))(int); | 4329 | extern "C" void (*signal (int, void (*)(int)))(int); |
| @@ -2985,67 +4331,94 @@ extern "C" void (*signal (int, void (*)(int)))(int); | |||
| 2985 | void (*signal ()) (); | 4331 | void (*signal ()) (); |
| 2986 | #endif | 4332 | #endif |
| 2987 | 4333 | ||
| 2988 | int main() { | 4334 | int |
| 4335 | main () | ||
| 4336 | { | ||
| 2989 | int i; | 4337 | int i; |
| 2990 | ; return 0; } | 4338 | ; |
| 2991 | EOF | 4339 | return 0; |
| 2992 | if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4340 | } |
| 2993 | rm -rf conftest* | 4341 | _ACEOF |
| 4342 | rm -f conftest.$ac_objext | ||
| 4343 | if { (eval echo "$as_me:4343: \"$ac_compile\"") >&5 | ||
| 4344 | (eval $ac_compile) 2>&5 | ||
| 4345 | ac_status=$? | ||
| 4346 | echo "$as_me:4346: \$? = $ac_status" >&5 | ||
| 4347 | (exit $ac_status); } && | ||
| 4348 | { ac_try='test -s conftest.$ac_objext' | ||
| 4349 | { (eval echo "$as_me:4349: \"$ac_try\"") >&5 | ||
| 4350 | (eval $ac_try) 2>&5 | ||
| 4351 | ac_status=$? | ||
| 4352 | echo "$as_me:4352: \$? = $ac_status" >&5 | ||
| 4353 | (exit $ac_status); }; }; then | ||
| 2994 | ac_cv_type_signal=void | 4354 | ac_cv_type_signal=void |
| 2995 | else | 4355 | else |
| 2996 | echo "configure: failed program was:" >&5 | 4356 | echo "$as_me: failed program was:" >&5 |
| 2997 | cat conftest.$ac_ext >&5 | 4357 | cat conftest.$ac_ext >&5 |
| 2998 | rm -rf conftest* | 4358 | ac_cv_type_signal=int |
| 2999 | ac_cv_type_signal=int | ||
| 3000 | fi | 4359 | fi |
| 3001 | rm -f conftest* | 4360 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3002 | fi | 4361 | fi |
| 4362 | echo "$as_me:4362: result: $ac_cv_type_signal" >&5 | ||
| 4363 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | ||
| 3003 | 4364 | ||
| 3004 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | 4365 | cat >>confdefs.h <<EOF |
| 3005 | cat >> confdefs.h <<EOF | ||
| 3006 | #define RETSIGTYPE $ac_cv_type_signal | 4366 | #define RETSIGTYPE $ac_cv_type_signal |
| 3007 | EOF | 4367 | EOF |
| 3008 | 4368 | ||
| 3009 | 4369 | echo "$as_me:4369: checking for speed_t" >&5 | |
| 3010 | 4370 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 | |
| 3011 | echo $ac_n "checking for speed_t""... $ac_c" 1>&6 | 4371 | if test "${emacs_cv_speed_t+set}" = set; then |
| 3012 | echo "configure:3013: checking for speed_t" >&5 | 4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3013 | if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then | ||
| 3014 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3015 | else | 4373 | else |
| 3016 | cat > conftest.$ac_ext <<EOF | 4374 | cat >conftest.$ac_ext <<_ACEOF |
| 3017 | #line 3018 "configure" | 4375 | #line 4375 "configure" |
| 3018 | #include "confdefs.h" | 4376 | #include "confdefs.h" |
| 3019 | #include <termios.h> | 4377 | #include <termios.h> |
| 3020 | int main() { | 4378 | int |
| 4379 | main () | ||
| 4380 | { | ||
| 3021 | speed_t x = 1; | 4381 | speed_t x = 1; |
| 3022 | ; return 0; } | 4382 | ; |
| 3023 | EOF | 4383 | return 0; |
| 3024 | if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4384 | } |
| 3025 | rm -rf conftest* | 4385 | _ACEOF |
| 4386 | rm -f conftest.$ac_objext | ||
| 4387 | if { (eval echo "$as_me:4387: \"$ac_compile\"") >&5 | ||
| 4388 | (eval $ac_compile) 2>&5 | ||
| 4389 | ac_status=$? | ||
| 4390 | echo "$as_me:4390: \$? = $ac_status" >&5 | ||
| 4391 | (exit $ac_status); } && | ||
| 4392 | { ac_try='test -s conftest.$ac_objext' | ||
| 4393 | { (eval echo "$as_me:4393: \"$ac_try\"") >&5 | ||
| 4394 | (eval $ac_try) 2>&5 | ||
| 4395 | ac_status=$? | ||
| 4396 | echo "$as_me:4396: \$? = $ac_status" >&5 | ||
| 4397 | (exit $ac_status); }; }; then | ||
| 3026 | emacs_cv_speed_t=yes | 4398 | emacs_cv_speed_t=yes |
| 3027 | else | 4399 | else |
| 3028 | echo "configure: failed program was:" >&5 | 4400 | echo "$as_me: failed program was:" >&5 |
| 3029 | cat conftest.$ac_ext >&5 | 4401 | cat conftest.$ac_ext >&5 |
| 4402 | emacs_cv_speed_t=no | ||
| 3030 | fi | 4403 | fi |
| 3031 | rm -f conftest* | 4404 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3032 | fi | 4405 | fi |
| 3033 | 4406 | echo "$as_me:4406: result: $emacs_cv_speed_t" >&5 | |
| 3034 | echo "$ac_t""$emacs_cv_speed_t" 1>&6 | 4407 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
| 3035 | if test $emacs_cv_speed_t = yes; then | 4408 | if test $emacs_cv_speed_t = yes; then |
| 3036 | cat >> confdefs.h <<\EOF | 4409 | cat >>confdefs.h <<\EOF |
| 3037 | #define HAVE_SPEED_T 1 | 4410 | #define HAVE_SPEED_T 1 |
| 3038 | EOF | 4411 | EOF |
| 3039 | 4412 | ||
| 3040 | fi | 4413 | fi |
| 3041 | 4414 | ||
| 3042 | echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 4415 | echo "$as_me:4415: checking for struct timeval" >&5 |
| 3043 | echo "configure:3044: checking for struct timeval" >&5 | 4416 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
| 3044 | if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then | 4417 | if test "${emacs_cv_struct_timeval+set}" = set; then |
| 3045 | echo $ac_n "(cached) $ac_c" 1>&6 | 4418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3046 | else | 4419 | else |
| 3047 | cat > conftest.$ac_ext <<EOF | 4420 | cat >conftest.$ac_ext <<_ACEOF |
| 3048 | #line 3049 "configure" | 4421 | #line 4421 "configure" |
| 3049 | #include "confdefs.h" | 4422 | #include "confdefs.h" |
| 3050 | #ifdef TIME_WITH_SYS_TIME | 4423 | #ifdef TIME_WITH_SYS_TIME |
| 3051 | #include <sys/time.h> | 4424 | #include <sys/time.h> |
| @@ -3057,222 +4430,305 @@ else | |||
| 3057 | #include <time.h> | 4430 | #include <time.h> |
| 3058 | #endif | 4431 | #endif |
| 3059 | #endif | 4432 | #endif |
| 3060 | int main() { | 4433 | int |
| 4434 | main () | ||
| 4435 | { | ||
| 3061 | static struct timeval x; x.tv_sec = x.tv_usec; | 4436 | static struct timeval x; x.tv_sec = x.tv_usec; |
| 3062 | ; return 0; } | 4437 | ; |
| 3063 | EOF | 4438 | return 0; |
| 3064 | if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4439 | } |
| 3065 | rm -rf conftest* | 4440 | _ACEOF |
| 4441 | rm -f conftest.$ac_objext | ||
| 4442 | if { (eval echo "$as_me:4442: \"$ac_compile\"") >&5 | ||
| 4443 | (eval $ac_compile) 2>&5 | ||
| 4444 | ac_status=$? | ||
| 4445 | echo "$as_me:4445: \$? = $ac_status" >&5 | ||
| 4446 | (exit $ac_status); } && | ||
| 4447 | { ac_try='test -s conftest.$ac_objext' | ||
| 4448 | { (eval echo "$as_me:4448: \"$ac_try\"") >&5 | ||
| 4449 | (eval $ac_try) 2>&5 | ||
| 4450 | ac_status=$? | ||
| 4451 | echo "$as_me:4451: \$? = $ac_status" >&5 | ||
| 4452 | (exit $ac_status); }; }; then | ||
| 3066 | emacs_cv_struct_timeval=yes | 4453 | emacs_cv_struct_timeval=yes |
| 3067 | else | 4454 | else |
| 3068 | echo "configure: failed program was:" >&5 | 4455 | echo "$as_me: failed program was:" >&5 |
| 3069 | cat conftest.$ac_ext >&5 | 4456 | cat conftest.$ac_ext >&5 |
| 3070 | rm -rf conftest* | 4457 | emacs_cv_struct_timeval=no |
| 3071 | emacs_cv_struct_timeval=no | ||
| 3072 | fi | 4458 | fi |
| 3073 | rm -f conftest* | 4459 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3074 | fi | 4460 | fi |
| 3075 | 4461 | echo "$as_me:4461: result: $emacs_cv_struct_timeval" >&5 | |
| 3076 | echo "$ac_t""$emacs_cv_struct_timeval" 1>&6 | 4462 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
| 3077 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | 4463 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
| 3078 | if test $emacs_cv_struct_timeval = yes; then | 4464 | if test $emacs_cv_struct_timeval = yes; then |
| 3079 | cat >> confdefs.h <<\EOF | 4465 | cat >>confdefs.h <<\EOF |
| 3080 | #define HAVE_TIMEVAL 1 | 4466 | #define HAVE_TIMEVAL 1 |
| 3081 | EOF | 4467 | EOF |
| 3082 | 4468 | ||
| 3083 | fi | 4469 | fi |
| 3084 | 4470 | ||
| 3085 | echo $ac_n "checking for struct exception""... $ac_c" 1>&6 | 4471 | echo "$as_me:4471: checking for struct exception" >&5 |
| 3086 | echo "configure:3087: checking for struct exception" >&5 | 4472 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
| 3087 | if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then | 4473 | if test "${emacs_cv_struct_exception+set}" = set; then |
| 3088 | echo $ac_n "(cached) $ac_c" 1>&6 | 4474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3089 | else | 4475 | else |
| 3090 | cat > conftest.$ac_ext <<EOF | 4476 | cat >conftest.$ac_ext <<_ACEOF |
| 3091 | #line 3092 "configure" | 4477 | #line 4477 "configure" |
| 3092 | #include "confdefs.h" | 4478 | #include "confdefs.h" |
| 3093 | #include <math.h> | 4479 | #include <math.h> |
| 3094 | int main() { | 4480 | int |
| 4481 | main () | ||
| 4482 | { | ||
| 3095 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | 4483 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
| 3096 | ; return 0; } | 4484 | ; |
| 3097 | EOF | 4485 | return 0; |
| 3098 | if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4486 | } |
| 3099 | rm -rf conftest* | 4487 | _ACEOF |
| 4488 | rm -f conftest.$ac_objext | ||
| 4489 | if { (eval echo "$as_me:4489: \"$ac_compile\"") >&5 | ||
| 4490 | (eval $ac_compile) 2>&5 | ||
| 4491 | ac_status=$? | ||
| 4492 | echo "$as_me:4492: \$? = $ac_status" >&5 | ||
| 4493 | (exit $ac_status); } && | ||
| 4494 | { ac_try='test -s conftest.$ac_objext' | ||
| 4495 | { (eval echo "$as_me:4495: \"$ac_try\"") >&5 | ||
| 4496 | (eval $ac_try) 2>&5 | ||
| 4497 | ac_status=$? | ||
| 4498 | echo "$as_me:4498: \$? = $ac_status" >&5 | ||
| 4499 | (exit $ac_status); }; }; then | ||
| 3100 | emacs_cv_struct_exception=yes | 4500 | emacs_cv_struct_exception=yes |
| 3101 | else | 4501 | else |
| 3102 | echo "configure: failed program was:" >&5 | 4502 | echo "$as_me: failed program was:" >&5 |
| 3103 | cat conftest.$ac_ext >&5 | 4503 | cat conftest.$ac_ext >&5 |
| 3104 | rm -rf conftest* | 4504 | emacs_cv_struct_exception=no |
| 3105 | emacs_cv_struct_exception=no | ||
| 3106 | fi | 4505 | fi |
| 3107 | rm -f conftest* | 4506 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3108 | fi | 4507 | fi |
| 3109 | 4508 | echo "$as_me:4508: result: $emacs_cv_struct_exception" >&5 | |
| 3110 | echo "$ac_t""$emacs_cv_struct_exception" 1>&6 | 4509 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
| 3111 | HAVE_EXCEPTION=$emacs_cv_struct_exception | 4510 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
| 3112 | if test $emacs_cv_struct_exception != yes; then | 4511 | if test $emacs_cv_struct_exception != yes; then |
| 3113 | cat >> confdefs.h <<\EOF | 4512 | cat >>confdefs.h <<\EOF |
| 3114 | #define NO_MATHERR 1 | 4513 | #define NO_MATHERR 1 |
| 3115 | EOF | 4514 | EOF |
| 3116 | 4515 | ||
| 3117 | fi | 4516 | fi |
| 3118 | 4517 | ||
| 3119 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 4518 | echo "$as_me:4518: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 3120 | echo "configure:3121: checking whether struct tm is in sys/time.h or time.h" >&5 | 4519 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 3121 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 4520 | if test "${ac_cv_struct_tm+set}" = set; then |
| 3122 | echo $ac_n "(cached) $ac_c" 1>&6 | 4521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3123 | else | 4522 | else |
| 3124 | cat > conftest.$ac_ext <<EOF | 4523 | cat >conftest.$ac_ext <<_ACEOF |
| 3125 | #line 3126 "configure" | 4524 | #line 4524 "configure" |
| 3126 | #include "confdefs.h" | 4525 | #include "confdefs.h" |
| 3127 | #include <sys/types.h> | 4526 | #include <sys/types.h> |
| 3128 | #include <time.h> | 4527 | #include <time.h> |
| 3129 | int main() { | 4528 | |
| 4529 | int | ||
| 4530 | main () | ||
| 4531 | { | ||
| 3130 | struct tm *tp; tp->tm_sec; | 4532 | struct tm *tp; tp->tm_sec; |
| 3131 | ; return 0; } | 4533 | ; |
| 3132 | EOF | 4534 | return 0; |
| 3133 | if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4535 | } |
| 3134 | rm -rf conftest* | 4536 | _ACEOF |
| 4537 | rm -f conftest.$ac_objext | ||
| 4538 | if { (eval echo "$as_me:4538: \"$ac_compile\"") >&5 | ||
| 4539 | (eval $ac_compile) 2>&5 | ||
| 4540 | ac_status=$? | ||
| 4541 | echo "$as_me:4541: \$? = $ac_status" >&5 | ||
| 4542 | (exit $ac_status); } && | ||
| 4543 | { ac_try='test -s conftest.$ac_objext' | ||
| 4544 | { (eval echo "$as_me:4544: \"$ac_try\"") >&5 | ||
| 4545 | (eval $ac_try) 2>&5 | ||
| 4546 | ac_status=$? | ||
| 4547 | echo "$as_me:4547: \$? = $ac_status" >&5 | ||
| 4548 | (exit $ac_status); }; }; then | ||
| 3135 | ac_cv_struct_tm=time.h | 4549 | ac_cv_struct_tm=time.h |
| 3136 | else | 4550 | else |
| 3137 | echo "configure: failed program was:" >&5 | 4551 | echo "$as_me: failed program was:" >&5 |
| 3138 | cat conftest.$ac_ext >&5 | 4552 | cat conftest.$ac_ext >&5 |
| 3139 | rm -rf conftest* | 4553 | ac_cv_struct_tm=sys/time.h |
| 3140 | ac_cv_struct_tm=sys/time.h | ||
| 3141 | fi | 4554 | fi |
| 3142 | rm -f conftest* | 4555 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3143 | fi | 4556 | fi |
| 3144 | 4557 | echo "$as_me:4557: result: $ac_cv_struct_tm" >&5 | |
| 3145 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | 4558 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 3146 | if test $ac_cv_struct_tm = sys/time.h; then | 4559 | if test $ac_cv_struct_tm = sys/time.h; then |
| 3147 | cat >> confdefs.h <<\EOF | 4560 | |
| 4561 | cat >>confdefs.h <<\EOF | ||
| 3148 | #define TM_IN_SYS_TIME 1 | 4562 | #define TM_IN_SYS_TIME 1 |
| 3149 | EOF | 4563 | EOF |
| 3150 | 4564 | ||
| 3151 | fi | 4565 | fi |
| 3152 | 4566 | ||
| 3153 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 4567 | echo "$as_me:4567: checking for struct tm.tm_zone" >&5 |
| 3154 | echo "configure:3155: checking for tm_zone in struct tm" >&5 | 4568 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 3155 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 4569 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 3156 | echo $ac_n "(cached) $ac_c" 1>&6 | 4570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3157 | else | 4571 | else |
| 3158 | cat > conftest.$ac_ext <<EOF | 4572 | cat >conftest.$ac_ext <<_ACEOF |
| 3159 | #line 3160 "configure" | 4573 | #line 4573 "configure" |
| 3160 | #include "confdefs.h" | 4574 | #include "confdefs.h" |
| 3161 | #include <sys/types.h> | 4575 | #include <sys/types.h> |
| 3162 | #include <$ac_cv_struct_tm> | 4576 | #include <$ac_cv_struct_tm> |
| 3163 | int main() { | 4577 | |
| 3164 | struct tm tm; tm.tm_zone; | 4578 | int |
| 3165 | ; return 0; } | 4579 | main () |
| 3166 | EOF | 4580 | { |
| 3167 | if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4581 | static struct tm ac_aggr; |
| 3168 | rm -rf conftest* | 4582 | if (ac_aggr.tm_zone) |
| 3169 | ac_cv_struct_tm_zone=yes | 4583 | return 0; |
| 4584 | ; | ||
| 4585 | return 0; | ||
| 4586 | } | ||
| 4587 | _ACEOF | ||
| 4588 | rm -f conftest.$ac_objext | ||
| 4589 | if { (eval echo "$as_me:4589: \"$ac_compile\"") >&5 | ||
| 4590 | (eval $ac_compile) 2>&5 | ||
| 4591 | ac_status=$? | ||
| 4592 | echo "$as_me:4592: \$? = $ac_status" >&5 | ||
| 4593 | (exit $ac_status); } && | ||
| 4594 | { ac_try='test -s conftest.$ac_objext' | ||
| 4595 | { (eval echo "$as_me:4595: \"$ac_try\"") >&5 | ||
| 4596 | (eval $ac_try) 2>&5 | ||
| 4597 | ac_status=$? | ||
| 4598 | echo "$as_me:4598: \$? = $ac_status" >&5 | ||
| 4599 | (exit $ac_status); }; }; then | ||
| 4600 | ac_cv_member_struct_tm_tm_zone=yes | ||
| 3170 | else | 4601 | else |
| 3171 | echo "configure: failed program was:" >&5 | 4602 | echo "$as_me: failed program was:" >&5 |
| 3172 | cat conftest.$ac_ext >&5 | 4603 | cat conftest.$ac_ext >&5 |
| 3173 | rm -rf conftest* | 4604 | ac_cv_member_struct_tm_tm_zone=no |
| 3174 | ac_cv_struct_tm_zone=no | ||
| 3175 | fi | 4605 | fi |
| 3176 | rm -f conftest* | 4606 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3177 | fi | 4607 | fi |
| 4608 | echo "$as_me:4608: result: $ac_cv_member_struct_tm_tm_zone" >&5 | ||
| 4609 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | ||
| 4610 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | ||
| 4611 | |||
| 4612 | cat >>confdefs.h <<EOF | ||
| 4613 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||
| 4614 | EOF | ||
| 3178 | 4615 | ||
| 3179 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | 4616 | fi |
| 3180 | if test "$ac_cv_struct_tm_zone" = yes; then | 4617 | |
| 3181 | cat >> confdefs.h <<\EOF | 4618 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 4619 | |||
| 4620 | cat >>confdefs.h <<\EOF | ||
| 3182 | #define HAVE_TM_ZONE 1 | 4621 | #define HAVE_TM_ZONE 1 |
| 3183 | EOF | 4622 | EOF |
| 3184 | 4623 | ||
| 3185 | else | 4624 | else |
| 3186 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 4625 | echo "$as_me:4625: checking for tzname" >&5 |
| 3187 | echo "configure:3188: checking for tzname" >&5 | 4626 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 3188 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 4627 | if test "${ac_cv_var_tzname+set}" = set; then |
| 3189 | echo $ac_n "(cached) $ac_c" 1>&6 | 4628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3190 | else | 4629 | else |
| 3191 | cat > conftest.$ac_ext <<EOF | 4630 | cat >conftest.$ac_ext <<_ACEOF |
| 3192 | #line 3193 "configure" | 4631 | #line 4631 "configure" |
| 3193 | #include "confdefs.h" | 4632 | #include "confdefs.h" |
| 3194 | #include <time.h> | 4633 | #include <time.h> |
| 3195 | #ifndef tzname /* For SGI. */ | 4634 | #ifndef tzname /* For SGI. */ |
| 3196 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 4635 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 3197 | #endif | 4636 | #endif |
| 3198 | int main() { | 4637 | |
| 4638 | int | ||
| 4639 | main () | ||
| 4640 | { | ||
| 3199 | atoi(*tzname); | 4641 | atoi(*tzname); |
| 3200 | ; return 0; } | 4642 | ; |
| 3201 | EOF | 4643 | return 0; |
| 3202 | if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4644 | } |
| 3203 | rm -rf conftest* | 4645 | _ACEOF |
| 4646 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 4647 | if { (eval echo "$as_me:4647: \"$ac_link\"") >&5 | ||
| 4648 | (eval $ac_link) 2>&5 | ||
| 4649 | ac_status=$? | ||
| 4650 | echo "$as_me:4650: \$? = $ac_status" >&5 | ||
| 4651 | (exit $ac_status); } && | ||
| 4652 | { ac_try='test -s conftest$ac_exeext' | ||
| 4653 | { (eval echo "$as_me:4653: \"$ac_try\"") >&5 | ||
| 4654 | (eval $ac_try) 2>&5 | ||
| 4655 | ac_status=$? | ||
| 4656 | echo "$as_me:4656: \$? = $ac_status" >&5 | ||
| 4657 | (exit $ac_status); }; }; then | ||
| 3204 | ac_cv_var_tzname=yes | 4658 | ac_cv_var_tzname=yes |
| 3205 | else | 4659 | else |
| 3206 | echo "configure: failed program was:" >&5 | 4660 | echo "$as_me: failed program was:" >&5 |
| 3207 | cat conftest.$ac_ext >&5 | 4661 | cat conftest.$ac_ext >&5 |
| 3208 | rm -rf conftest* | 4662 | ac_cv_var_tzname=no |
| 3209 | ac_cv_var_tzname=no | ||
| 3210 | fi | 4663 | fi |
| 3211 | rm -f conftest* | 4664 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3212 | fi | 4665 | fi |
| 3213 | 4666 | echo "$as_me:4666: result: $ac_cv_var_tzname" >&5 | |
| 3214 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | 4667 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 3215 | if test $ac_cv_var_tzname = yes; then | 4668 | if test $ac_cv_var_tzname = yes; then |
| 3216 | cat >> confdefs.h <<\EOF | 4669 | |
| 4670 | cat >>confdefs.h <<\EOF | ||
| 3217 | #define HAVE_TZNAME 1 | 4671 | #define HAVE_TZNAME 1 |
| 3218 | EOF | 4672 | EOF |
| 3219 | 4673 | ||
| 3220 | fi | 4674 | fi |
| 3221 | fi | 4675 | fi |
| 3222 | 4676 | ||
| 3223 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | 4677 | echo "$as_me:4677: checking for tm_gmtoff in struct tm" >&5 |
| 3224 | echo "configure:3225: checking for tm_gmtoff in struct tm" >&5 | 4678 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 |
| 3225 | if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then | 4679 | if test "${emacs_cv_tm_gmtoff+set}" = set; then |
| 3226 | echo $ac_n "(cached) $ac_c" 1>&6 | 4680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3227 | else | 4681 | else |
| 3228 | cat > conftest.$ac_ext <<EOF | 4682 | cat >conftest.$ac_ext <<_ACEOF |
| 3229 | #line 3230 "configure" | 4683 | #line 4683 "configure" |
| 3230 | #include "confdefs.h" | 4684 | #include "confdefs.h" |
| 3231 | #include <time.h> | 4685 | #include <time.h> |
| 3232 | int main() { | 4686 | int |
| 4687 | main () | ||
| 4688 | { | ||
| 3233 | struct tm t; t.tm_gmtoff = 0 | 4689 | struct tm t; t.tm_gmtoff = 0 |
| 3234 | ; return 0; } | 4690 | ; |
| 3235 | EOF | 4691 | return 0; |
| 3236 | if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4692 | } |
| 3237 | rm -rf conftest* | 4693 | _ACEOF |
| 4694 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 4695 | if { (eval echo "$as_me:4695: \"$ac_link\"") >&5 | ||
| 4696 | (eval $ac_link) 2>&5 | ||
| 4697 | ac_status=$? | ||
| 4698 | echo "$as_me:4698: \$? = $ac_status" >&5 | ||
| 4699 | (exit $ac_status); } && | ||
| 4700 | { ac_try='test -s conftest$ac_exeext' | ||
| 4701 | { (eval echo "$as_me:4701: \"$ac_try\"") >&5 | ||
| 4702 | (eval $ac_try) 2>&5 | ||
| 4703 | ac_status=$? | ||
| 4704 | echo "$as_me:4704: \$? = $ac_status" >&5 | ||
| 4705 | (exit $ac_status); }; }; then | ||
| 3238 | emacs_cv_tm_gmtoff=yes | 4706 | emacs_cv_tm_gmtoff=yes |
| 3239 | else | 4707 | else |
| 3240 | echo "configure: failed program was:" >&5 | 4708 | echo "$as_me: failed program was:" >&5 |
| 3241 | cat conftest.$ac_ext >&5 | 4709 | cat conftest.$ac_ext >&5 |
| 3242 | rm -rf conftest* | 4710 | emacs_cv_tm_gmtoff=no |
| 3243 | emacs_cv_tm_gmtoff=no | ||
| 3244 | fi | 4711 | fi |
| 3245 | rm -f conftest* | 4712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3246 | fi | 4713 | fi |
| 3247 | 4714 | echo "$as_me:4714: result: $emacs_cv_tm_gmtoff" >&5 | |
| 3248 | echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6 | 4715 | echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6 |
| 3249 | if test $emacs_cv_tm_gmtoff = yes; then | 4716 | if test $emacs_cv_tm_gmtoff = yes; then |
| 3250 | cat >> confdefs.h <<\EOF | 4717 | cat >>confdefs.h <<\EOF |
| 3251 | #define HAVE_TM_GMTOFF 1 | 4718 | #define HAVE_TM_GMTOFF 1 |
| 3252 | EOF | 4719 | EOF |
| 3253 | 4720 | ||
| 3254 | fi | 4721 | fi |
| 3255 | 4722 | ||
| 3256 | 4723 | echo "$as_me:4723: checking for $CC option to accept ANSI C" >&5 | |
| 3257 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | 4724 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3258 | echo "configure:3259: checking for ${CC-cc} option to accept ANSI C" >&5 | 4725 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3259 | if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then | 4726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3260 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3261 | else | 4727 | else |
| 3262 | ac_cv_prog_cc_stdc=no | 4728 | ac_cv_prog_cc_stdc=no |
| 3263 | ac_save_CC="$CC" | 4729 | ac_save_CC=$CC |
| 3264 | # Don't try gcc -ansi; that turns off useful extensions and | 4730 | cat >conftest.$ac_ext <<_ACEOF |
| 3265 | # breaks some systems' header files. | 4731 | #line 4731 "configure" |
| 3266 | # AIX -qlanglvl=ansi | ||
| 3267 | # Ultrix and OSF/1 -std1 | ||
| 3268 | # HP-UX 10.20 and later -Ae | ||
| 3269 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
| 3270 | # SVR4 -Xc -D__EXTENSIONS__ | ||
| 3271 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
| 3272 | do | ||
| 3273 | CC="$ac_save_CC $ac_arg" | ||
| 3274 | cat > conftest.$ac_ext <<EOF | ||
| 3275 | #line 3276 "configure" | ||
| 3276 | #include "confdefs.h" | 4732 | #include "confdefs.h" |
| 3277 | #include <stdarg.h> | 4733 | #include <stdarg.h> |
| 3278 | #include <stdio.h> | 4734 | #include <stdio.h> |
| @@ -3302,223 +4758,300 @@ struct s2 {int (*f) (double a);}; | |||
| 3302 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 4758 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3303 | int argc; | 4759 | int argc; |
| 3304 | char **argv; | 4760 | char **argv; |
| 3305 | int main() { | 4761 | int |
| 4762 | main () | ||
| 4763 | { | ||
| 3306 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | 4764 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3307 | ; return 0; } | 4765 | ; |
| 3308 | EOF | 4766 | return 0; |
| 3309 | if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4767 | } |
| 3310 | rm -rf conftest* | 4768 | _ACEOF |
| 3311 | ac_cv_prog_cc_stdc="$ac_arg"; break | 4769 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3312 | else | 4770 | # breaks some systems' header files. |
| 3313 | echo "configure: failed program was:" >&5 | 4771 | # AIX -qlanglvl=ansi |
| 3314 | cat conftest.$ac_ext >&5 | 4772 | # Ultrix and OSF/1 -std1 |
| 3315 | fi | 4773 | # HP-UX 10.20 and later -Ae |
| 3316 | rm -f conftest* | 4774 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 4775 | # SVR4 -Xc -D__EXTENSIONS__ | ||
| 4776 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
| 4777 | do | ||
| 4778 | CC="$ac_save_CC $ac_arg" | ||
| 4779 | rm -f conftest.$ac_objext | ||
| 4780 | if { (eval echo "$as_me:4780: \"$ac_compile\"") >&5 | ||
| 4781 | (eval $ac_compile) 2>&5 | ||
| 4782 | ac_status=$? | ||
| 4783 | echo "$as_me:4783: \$? = $ac_status" >&5 | ||
| 4784 | (exit $ac_status); } && | ||
| 4785 | { ac_try='test -s conftest.$ac_objext' | ||
| 4786 | { (eval echo "$as_me:4786: \"$ac_try\"") >&5 | ||
| 4787 | (eval $ac_try) 2>&5 | ||
| 4788 | ac_status=$? | ||
| 4789 | echo "$as_me:4789: \$? = $ac_status" >&5 | ||
| 4790 | (exit $ac_status); }; }; then | ||
| 4791 | ac_cv_prog_cc_stdc=$ac_arg | ||
| 4792 | break | ||
| 4793 | else | ||
| 4794 | echo "$as_me: failed program was:" >&5 | ||
| 4795 | cat conftest.$ac_ext >&5 | ||
| 4796 | fi | ||
| 4797 | rm -f conftest.$ac_objext | ||
| 3317 | done | 4798 | done |
| 3318 | CC="$ac_save_CC" | 4799 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 4800 | CC=$ac_save_CC | ||
| 3319 | 4801 | ||
| 3320 | fi | 4802 | fi |
| 3321 | 4803 | ||
| 3322 | case "x$ac_cv_prog_cc_stdc" in | 4804 | case "x$ac_cv_prog_cc_stdc" in |
| 3323 | x|xno) | 4805 | x|xno) |
| 3324 | echo "$ac_t""none needed" 1>&6 ;; | 4806 | echo "$as_me:4806: result: none needed" >&5 |
| 4807 | echo "${ECHO_T}none needed" >&6 ;; | ||
| 3325 | *) | 4808 | *) |
| 3326 | echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | 4809 | echo "$as_me:4809: result: $ac_cv_prog_cc_stdc" >&5 |
| 4810 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
| 3327 | CC="$CC $ac_cv_prog_cc_stdc" ;; | 4811 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3328 | esac | 4812 | esac |
| 3329 | 4813 | ||
| 3330 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | 4814 | echo "$as_me:4814: checking for function prototypes" >&5 |
| 3331 | echo "configure:3332: checking for function prototypes" >&5 | 4815 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
| 3332 | if test "$ac_cv_prog_cc_stdc" != no; then | 4816 | if test "$ac_cv_prog_cc_stdc" != no; then |
| 3333 | echo "$ac_t""yes" 1>&6 | 4817 | echo "$as_me:4817: result: yes" >&5 |
| 3334 | cat >> confdefs.h <<\EOF | 4818 | echo "${ECHO_T}yes" >&6 |
| 4819 | |||
| 4820 | cat >>confdefs.h <<\EOF | ||
| 3335 | #define PROTOTYPES 1 | 4821 | #define PROTOTYPES 1 |
| 3336 | EOF | 4822 | EOF |
| 3337 | 4823 | ||
| 3338 | else | 4824 | else |
| 3339 | echo "$ac_t""no" 1>&6 | 4825 | echo "$as_me:4825: result: no" >&5 |
| 4826 | echo "${ECHO_T}no" >&6 | ||
| 3340 | fi | 4827 | fi |
| 3341 | 4828 | ||
| 3342 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 4829 | echo "$as_me:4829: checking for working volatile" >&5 |
| 3343 | echo "configure:3344: checking for working volatile" >&5 | 4830 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 3344 | if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then | 4831 | if test "${ac_cv_c_volatile+set}" = set; then |
| 3345 | echo $ac_n "(cached) $ac_c" 1>&6 | 4832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3346 | else | 4833 | else |
| 3347 | cat > conftest.$ac_ext <<EOF | 4834 | cat >conftest.$ac_ext <<_ACEOF |
| 3348 | #line 3349 "configure" | 4835 | #line 4835 "configure" |
| 3349 | #include "confdefs.h" | 4836 | #include "confdefs.h" |
| 3350 | 4837 | ||
| 3351 | int main() { | 4838 | int |
| 4839 | main () | ||
| 4840 | { | ||
| 3352 | 4841 | ||
| 3353 | volatile int x; | 4842 | volatile int x; |
| 3354 | int * volatile y; | 4843 | int * volatile y; |
| 3355 | ; return 0; } | 4844 | ; |
| 3356 | EOF | 4845 | return 0; |
| 3357 | if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4846 | } |
| 3358 | rm -rf conftest* | 4847 | _ACEOF |
| 4848 | rm -f conftest.$ac_objext | ||
| 4849 | if { (eval echo "$as_me:4849: \"$ac_compile\"") >&5 | ||
| 4850 | (eval $ac_compile) 2>&5 | ||
| 4851 | ac_status=$? | ||
| 4852 | echo "$as_me:4852: \$? = $ac_status" >&5 | ||
| 4853 | (exit $ac_status); } && | ||
| 4854 | { ac_try='test -s conftest.$ac_objext' | ||
| 4855 | { (eval echo "$as_me:4855: \"$ac_try\"") >&5 | ||
| 4856 | (eval $ac_try) 2>&5 | ||
| 4857 | ac_status=$? | ||
| 4858 | echo "$as_me:4858: \$? = $ac_status" >&5 | ||
| 4859 | (exit $ac_status); }; }; then | ||
| 3359 | ac_cv_c_volatile=yes | 4860 | ac_cv_c_volatile=yes |
| 3360 | else | 4861 | else |
| 3361 | echo "configure: failed program was:" >&5 | 4862 | echo "$as_me: failed program was:" >&5 |
| 3362 | cat conftest.$ac_ext >&5 | 4863 | cat conftest.$ac_ext >&5 |
| 3363 | rm -rf conftest* | 4864 | ac_cv_c_volatile=no |
| 3364 | ac_cv_c_volatile=no | ||
| 3365 | fi | 4865 | fi |
| 3366 | rm -f conftest* | 4866 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3367 | fi | 4867 | fi |
| 3368 | 4868 | echo "$as_me:4868: result: $ac_cv_c_volatile" >&5 | |
| 3369 | echo "$ac_t""$ac_cv_c_volatile" 1>&6 | 4869 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
| 3370 | if test $ac_cv_c_volatile = no; then | 4870 | if test $ac_cv_c_volatile = no; then |
| 3371 | cat >> confdefs.h <<\EOF | 4871 | |
| 3372 | #define volatile | 4872 | cat >>confdefs.h <<\EOF |
| 4873 | #define volatile | ||
| 3373 | EOF | 4874 | EOF |
| 3374 | 4875 | ||
| 3375 | fi | 4876 | fi |
| 3376 | 4877 | ||
| 3377 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 4878 | echo "$as_me:4878: checking for an ANSI C-conforming const" >&5 |
| 3378 | echo "configure:3379: checking for working const" >&5 | 4879 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 3379 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 4880 | if test "${ac_cv_c_const+set}" = set; then |
| 3380 | echo $ac_n "(cached) $ac_c" 1>&6 | 4881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3381 | else | 4882 | else |
| 3382 | cat > conftest.$ac_ext <<EOF | 4883 | cat >conftest.$ac_ext <<_ACEOF |
| 3383 | #line 3384 "configure" | 4884 | #line 4884 "configure" |
| 3384 | #include "confdefs.h" | 4885 | #include "confdefs.h" |
| 3385 | 4886 | ||
| 3386 | int main() { | 4887 | int |
| 3387 | 4888 | main () | |
| 3388 | /* Ultrix mips cc rejects this. */ | 4889 | { |
| 3389 | typedef int charset[2]; const charset x; | 4890 | /* FIXME: Include the comments suggested by Paul. */ |
| 3390 | /* SunOS 4.1.1 cc rejects this. */ | 4891 | #ifndef __cplusplus |
| 3391 | char const *const *ccp; | 4892 | /* Ultrix mips cc rejects this. */ |
| 3392 | char **p; | 4893 | typedef int charset[2]; |
| 3393 | /* NEC SVR4.0.2 mips cc rejects this. */ | 4894 | const charset x; |
| 3394 | struct point {int x, y;}; | 4895 | /* SunOS 4.1.1 cc rejects this. */ |
| 3395 | static struct point const zero = {0,0}; | 4896 | char const *const *ccp; |
| 3396 | /* AIX XL C 1.02.0.0 rejects this. | 4897 | char **p; |
| 3397 | It does not let you subtract one const X* pointer from another in an arm | 4898 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3398 | of an if-expression whose if-part is not a constant expression */ | 4899 | struct point {int x, y;}; |
| 3399 | const char *g = "string"; | 4900 | static struct point const zero = {0,0}; |
| 3400 | ccp = &g + (g ? g-g : 0); | 4901 | /* AIX XL C 1.02.0.0 rejects this. |
| 3401 | /* HPUX 7.0 cc rejects these. */ | 4902 | It does not let you subtract one const X* pointer from another in |
| 3402 | ++ccp; | 4903 | an arm of an if-expression whose if-part is not a constant |
| 3403 | p = (char**) ccp; | 4904 | expression */ |
| 3404 | ccp = (char const *const *) p; | 4905 | const char *g = "string"; |
| 3405 | { /* SCO 3.2v4 cc rejects this. */ | 4906 | ccp = &g + (g ? g-g : 0); |
| 3406 | char *t; | 4907 | /* HPUX 7.0 cc rejects these. */ |
| 3407 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 4908 | ++ccp; |
| 4909 | p = (char**) ccp; | ||
| 4910 | ccp = (char const *const *) p; | ||
| 4911 | { /* SCO 3.2v4 cc rejects this. */ | ||
| 4912 | char *t; | ||
| 4913 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
| 4914 | |||
| 4915 | *t++ = 0; | ||
| 4916 | } | ||
| 4917 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
| 4918 | int x[] = {25, 17}; | ||
| 4919 | const int *foo = &x[0]; | ||
| 4920 | ++foo; | ||
| 4921 | } | ||
| 4922 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
| 4923 | typedef const int *iptr; | ||
| 4924 | iptr p = 0; | ||
| 4925 | ++p; | ||
| 4926 | } | ||
| 4927 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
| 4928 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
| 4929 | struct s { int j; const int *ap[3]; }; | ||
| 4930 | struct s *b; b->j = 5; | ||
| 4931 | } | ||
| 4932 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
| 4933 | const int foo = 10; | ||
| 4934 | } | ||
| 4935 | #endif | ||
| 3408 | 4936 | ||
| 3409 | *t++ = 0; | 4937 | ; |
| 3410 | } | 4938 | return 0; |
| 3411 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
| 3412 | int x[] = {25, 17}; | ||
| 3413 | const int *foo = &x[0]; | ||
| 3414 | ++foo; | ||
| 3415 | } | ||
| 3416 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
| 3417 | typedef const int *iptr; | ||
| 3418 | iptr p = 0; | ||
| 3419 | ++p; | ||
| 3420 | } | 4939 | } |
| 3421 | { /* AIX XL C 1.02.0.0 rejects this saying | 4940 | _ACEOF |
| 3422 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 4941 | rm -f conftest.$ac_objext |
| 3423 | struct s { int j; const int *ap[3]; }; | 4942 | if { (eval echo "$as_me:4942: \"$ac_compile\"") >&5 |
| 3424 | struct s *b; b->j = 5; | 4943 | (eval $ac_compile) 2>&5 |
| 3425 | } | 4944 | ac_status=$? |
| 3426 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 4945 | echo "$as_me:4945: \$? = $ac_status" >&5 |
| 3427 | const int foo = 10; | 4946 | (exit $ac_status); } && |
| 3428 | } | 4947 | { ac_try='test -s conftest.$ac_objext' |
| 3429 | 4948 | { (eval echo "$as_me:4948: \"$ac_try\"") >&5 | |
| 3430 | ; return 0; } | 4949 | (eval $ac_try) 2>&5 |
| 3431 | EOF | 4950 | ac_status=$? |
| 3432 | if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4951 | echo "$as_me:4951: \$? = $ac_status" >&5 |
| 3433 | rm -rf conftest* | 4952 | (exit $ac_status); }; }; then |
| 3434 | ac_cv_c_const=yes | 4953 | ac_cv_c_const=yes |
| 3435 | else | 4954 | else |
| 3436 | echo "configure: failed program was:" >&5 | 4955 | echo "$as_me: failed program was:" >&5 |
| 3437 | cat conftest.$ac_ext >&5 | 4956 | cat conftest.$ac_ext >&5 |
| 3438 | rm -rf conftest* | 4957 | ac_cv_c_const=no |
| 3439 | ac_cv_c_const=no | ||
| 3440 | fi | 4958 | fi |
| 3441 | rm -f conftest* | 4959 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3442 | fi | 4960 | fi |
| 3443 | 4961 | echo "$as_me:4961: result: $ac_cv_c_const" >&5 | |
| 3444 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 4962 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 3445 | if test $ac_cv_c_const = no; then | 4963 | if test $ac_cv_c_const = no; then |
| 3446 | cat >> confdefs.h <<\EOF | 4964 | |
| 3447 | #define const | 4965 | cat >>confdefs.h <<\EOF |
| 4966 | #define const | ||
| 3448 | EOF | 4967 | EOF |
| 3449 | 4968 | ||
| 3450 | fi | 4969 | fi |
| 3451 | 4970 | ||
| 3452 | echo $ac_n "checking for void * support""... $ac_c" 1>&6 | 4971 | echo "$as_me:4971: checking for void * support" >&5 |
| 3453 | echo "configure:3454: checking for void * support" >&5 | 4972 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
| 3454 | if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then | 4973 | if test "${emacs_cv_void_star+set}" = set; then |
| 3455 | echo $ac_n "(cached) $ac_c" 1>&6 | 4974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3456 | else | 4975 | else |
| 3457 | cat > conftest.$ac_ext <<EOF | 4976 | cat >conftest.$ac_ext <<_ACEOF |
| 3458 | #line 3459 "configure" | 4977 | #line 4977 "configure" |
| 3459 | #include "confdefs.h" | 4978 | #include "confdefs.h" |
| 3460 | 4979 | ||
| 3461 | int main() { | 4980 | int |
| 4981 | main () | ||
| 4982 | { | ||
| 3462 | void * foo; | 4983 | void * foo; |
| 3463 | ; return 0; } | 4984 | ; |
| 3464 | EOF | 4985 | return 0; |
| 3465 | if { (eval echo configure:3466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4986 | } |
| 3466 | rm -rf conftest* | 4987 | _ACEOF |
| 4988 | rm -f conftest.$ac_objext | ||
| 4989 | if { (eval echo "$as_me:4989: \"$ac_compile\"") >&5 | ||
| 4990 | (eval $ac_compile) 2>&5 | ||
| 4991 | ac_status=$? | ||
| 4992 | echo "$as_me:4992: \$? = $ac_status" >&5 | ||
| 4993 | (exit $ac_status); } && | ||
| 4994 | { ac_try='test -s conftest.$ac_objext' | ||
| 4995 | { (eval echo "$as_me:4995: \"$ac_try\"") >&5 | ||
| 4996 | (eval $ac_try) 2>&5 | ||
| 4997 | ac_status=$? | ||
| 4998 | echo "$as_me:4998: \$? = $ac_status" >&5 | ||
| 4999 | (exit $ac_status); }; }; then | ||
| 3467 | emacs_cv_void_star=yes | 5000 | emacs_cv_void_star=yes |
| 3468 | else | 5001 | else |
| 3469 | echo "configure: failed program was:" >&5 | 5002 | echo "$as_me: failed program was:" >&5 |
| 3470 | cat conftest.$ac_ext >&5 | 5003 | cat conftest.$ac_ext >&5 |
| 3471 | rm -rf conftest* | 5004 | emacs_cv_void_star=no |
| 3472 | emacs_cv_void_star=no | ||
| 3473 | fi | 5005 | fi |
| 3474 | rm -f conftest* | 5006 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3475 | fi | 5007 | fi |
| 3476 | 5008 | echo "$as_me:5008: result: $emacs_cv_void_star" >&5 | |
| 3477 | echo "$ac_t""$emacs_cv_void_star" 1>&6 | 5009 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
| 3478 | if test $emacs_cv_void_star = yes; then | 5010 | if test $emacs_cv_void_star = yes; then |
| 3479 | cat >> confdefs.h <<\EOF | 5011 | cat >>confdefs.h <<\EOF |
| 3480 | #define POINTER_TYPE void | 5012 | #define POINTER_TYPE void |
| 3481 | EOF | 5013 | EOF |
| 3482 | 5014 | ||
| 3483 | else | 5015 | else |
| 3484 | cat >> confdefs.h <<\EOF | 5016 | cat >>confdefs.h <<\EOF |
| 3485 | #define POINTER_TYPE char | 5017 | #define POINTER_TYPE char |
| 3486 | EOF | 5018 | EOF |
| 3487 | 5019 | ||
| 3488 | fi | 5020 | fi |
| 3489 | 5021 | ||
| 3490 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 5022 | echo "$as_me:5022: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 3491 | echo "configure:3492: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 5023 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 3492 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 5024 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 3493 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 5025 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 3494 | echo $ac_n "(cached) $ac_c" 1>&6 | 5026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3495 | else | 5027 | else |
| 3496 | cat > conftestmake <<\EOF | 5028 | cat >conftest.make <<\EOF |
| 3497 | all: | 5029 | all: |
| 3498 | @echo 'ac_maketemp="${MAKE}"' | 5030 | @echo 'ac_maketemp="${MAKE}"' |
| 3499 | EOF | 5031 | EOF |
| 3500 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 5032 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3501 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 5033 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 3502 | if test -n "$ac_maketemp"; then | 5034 | if test -n "$ac_maketemp"; then |
| 3503 | eval ac_cv_prog_make_${ac_make}_set=yes | 5035 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 3504 | else | 5036 | else |
| 3505 | eval ac_cv_prog_make_${ac_make}_set=no | 5037 | eval ac_cv_prog_make_${ac_make}_set=no |
| 3506 | fi | 5038 | fi |
| 3507 | rm -f conftestmake | 5039 | rm -f conftest.make |
| 3508 | fi | 5040 | fi |
| 3509 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 5041 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 3510 | echo "$ac_t""yes" 1>&6 | 5042 | echo "$as_me:5042: result: yes" >&5 |
| 5043 | echo "${ECHO_T}yes" >&6 | ||
| 3511 | SET_MAKE= | 5044 | SET_MAKE= |
| 3512 | else | 5045 | else |
| 3513 | echo "$ac_t""no" 1>&6 | 5046 | echo "$as_me:5046: result: no" >&5 |
| 5047 | echo "${ECHO_T}no" >&6 | ||
| 3514 | SET_MAKE="MAKE=${MAKE-make}" | 5048 | SET_MAKE="MAKE=${MAKE-make}" |
| 3515 | fi | 5049 | fi |
| 3516 | 5050 | ||
| 3517 | 5051 | echo "$as_me:5051: checking for long file names" >&5 | |
| 3518 | echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 5052 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
| 3519 | echo "configure:3520: checking for long file names" >&5 | 5053 | if test "${ac_cv_sys_long_file_names+set}" = set; then |
| 3520 | if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then | 5054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3521 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3522 | else | 5055 | else |
| 3523 | ac_cv_sys_long_file_names=yes | 5056 | ac_cv_sys_long_file_names=yes |
| 3524 | # Test for long file names in all the places we know might matter: | 5057 | # Test for long file names in all the places we know might matter: |
| @@ -3532,49 +5065,48 @@ else | |||
| 3532 | # /var/tmp likewise | 5065 | # /var/tmp likewise |
| 3533 | # /usr/tmp likewise | 5066 | # /usr/tmp likewise |
| 3534 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | 5067 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then |
| 3535 | ac_tmpdirs="$TMPDIR" | 5068 | ac_tmpdirs=$TMPDIR |
| 3536 | else | 5069 | else |
| 3537 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | 5070 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' |
| 3538 | fi | 5071 | fi |
| 3539 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | 5072 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do |
| 3540 | test -d $ac_dir || continue | 5073 | test -d $ac_dir || continue |
| 3541 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | 5074 | test -w $ac_dir || continue # It is less confusing to not echo anything here. |
| 3542 | (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | 5075 | ac_xdir=$ac_dir/cf$$ |
| 3543 | (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | 5076 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue |
| 3544 | val=`cat $ac_dir/conftest9012345 2>/dev/null` | 5077 | ac_tf1=$ac_xdir/conftest9012345 |
| 3545 | if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | 5078 | ac_tf2=$ac_xdir/conftest9012346 |
| 5079 | (echo 1 >$ac_tf1) 2>/dev/null | ||
| 5080 | (echo 2 >$ac_tf2) 2>/dev/null | ||
| 5081 | ac_val=`cat $ac_tf1 2>/dev/null` | ||
| 5082 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | ||
| 3546 | ac_cv_sys_long_file_names=no | 5083 | ac_cv_sys_long_file_names=no |
| 3547 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | 5084 | rm -rf $ac_xdir 2>/dev/null |
| 3548 | break | 5085 | break |
| 3549 | fi | 5086 | fi |
| 3550 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | 5087 | rm -rf $ac_xdir 2>/dev/null |
| 3551 | done | 5088 | done |
| 3552 | fi | 5089 | fi |
| 3553 | 5090 | echo "$as_me:5090: result: $ac_cv_sys_long_file_names" >&5 | |
| 3554 | echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | 5091 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
| 3555 | if test $ac_cv_sys_long_file_names = yes; then | 5092 | if test $ac_cv_sys_long_file_names = yes; then |
| 3556 | cat >> confdefs.h <<\EOF | 5093 | |
| 5094 | cat >>confdefs.h <<\EOF | ||
| 3557 | #define HAVE_LONG_FILE_NAMES 1 | 5095 | #define HAVE_LONG_FILE_NAMES 1 |
| 3558 | EOF | 5096 | EOF |
| 3559 | 5097 | ||
| 3560 | fi | 5098 | fi |
| 3561 | 5099 | ||
| 3562 | |||
| 3563 | #### Choose a window system. | 5100 | #### Choose a window system. |
| 3564 | 5101 | ||
| 3565 | # If we find X, set shell vars x_includes and x_libraries to the | 5102 | echo "$as_me:5102: checking for X" >&5 |
| 3566 | # paths, otherwise set no_x=yes. | 5103 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 3567 | # Uses ac_ vars as temps to allow command line to override cache and checks. | ||
| 3568 | # --without-x overrides everything else, but does not touch the cache. | ||
| 3569 | echo $ac_n "checking for X""... $ac_c" 1>&6 | ||
| 3570 | echo "configure:3571: checking for X" >&5 | ||
| 3571 | 5104 | ||
| 3572 | # Check whether --with-x or --without-x was given. | 5105 | # Check whether --with-x or --without-x was given. |
| 3573 | if test "${with_x+set}" = set; then | 5106 | if test "${with_x+set}" = set; then |
| 3574 | withval="$with_x" | 5107 | withval="$with_x" |
| 3575 | : | ||
| 3576 | fi | ||
| 3577 | 5108 | ||
| 5109 | fi; | ||
| 3578 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 5110 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 3579 | if test "x$with_x" = xno; then | 5111 | if test "x$with_x" = xno; then |
| 3580 | # The user explicitly disabled X. | 5112 | # The user explicitly disabled X. |
| @@ -3584,16 +5116,16 @@ else | |||
| 3584 | # Both variables are already set. | 5116 | # Both variables are already set. |
| 3585 | have_x=yes | 5117 | have_x=yes |
| 3586 | else | 5118 | else |
| 3587 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | 5119 | if test "${ac_cv_have_x+set}" = set; then |
| 3588 | echo $ac_n "(cached) $ac_c" 1>&6 | 5120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3589 | else | 5121 | else |
| 3590 | # One or both of the vars are not set, and there is no cached value. | 5122 | # One or both of the vars are not set, and there is no cached value. |
| 3591 | ac_x_includes=NO ac_x_libraries=NO | 5123 | ac_x_includes=no ac_x_libraries=no |
| 3592 | rm -fr conftestdir | 5124 | rm -fr conftest.dir |
| 3593 | if mkdir conftestdir; then | 5125 | if mkdir conftest.dir; then |
| 3594 | cd conftestdir | 5126 | cd conftest.dir |
| 3595 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | 5127 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 3596 | cat > Imakefile <<'EOF' | 5128 | cat >Imakefile <<'EOF' |
| 3597 | acfindx: | 5129 | acfindx: |
| 3598 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | 5130 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 3599 | EOF | 5131 | EOF |
| @@ -3603,174 +5135,155 @@ EOF | |||
| 3603 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 5135 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3604 | for ac_extension in a so sl; do | 5136 | for ac_extension in a so sl; do |
| 3605 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | 5137 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 3606 | test -f $ac_im_libdir/libX11.$ac_extension; then | 5138 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 3607 | ac_im_usrlibdir=$ac_im_libdir; break | 5139 | ac_im_usrlibdir=$ac_im_libdir; break |
| 3608 | fi | 5140 | fi |
| 3609 | done | 5141 | done |
| 3610 | # Screen out bogus values from the imake configuration. They are | 5142 | # Screen out bogus values from the imake configuration. They are |
| 3611 | # bogus both because they are the default anyway, and because | 5143 | # bogus both because they are the default anyway, and because |
| 3612 | # using them would break gcc on systems where it needs fixed includes. | 5144 | # using them would break gcc on systems where it needs fixed includes. |
| 3613 | case "$ac_im_incroot" in | 5145 | case $ac_im_incroot in |
| 3614 | /usr/include) ;; | 5146 | /usr/include) ;; |
| 3615 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | 5147 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 3616 | esac | 5148 | esac |
| 3617 | case "$ac_im_usrlibdir" in | 5149 | case $ac_im_usrlibdir in |
| 3618 | /usr/lib | /lib) ;; | 5150 | /usr/lib | /lib) ;; |
| 3619 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | 5151 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 3620 | esac | 5152 | esac |
| 3621 | fi | 5153 | fi |
| 3622 | cd .. | 5154 | cd .. |
| 3623 | rm -fr conftestdir | 5155 | rm -fr conftest.dir |
| 3624 | fi | 5156 | fi |
| 3625 | 5157 | ||
| 3626 | if test "$ac_x_includes" = NO; then | 5158 | # Standard set of common directories for X headers. |
| 3627 | # Guess where to find include files, by looking for this one X11 .h file. | 5159 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3628 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 5160 | ac_x_header_dirs=' |
| 3629 | 5161 | /usr/X11/include | |
| 5162 | /usr/X11R6/include | ||
| 5163 | /usr/X11R5/include | ||
| 5164 | /usr/X11R4/include | ||
| 5165 | |||
| 5166 | /usr/include/X11 | ||
| 5167 | /usr/include/X11R6 | ||
| 5168 | /usr/include/X11R5 | ||
| 5169 | /usr/include/X11R4 | ||
| 5170 | |||
| 5171 | /usr/local/X11/include | ||
| 5172 | /usr/local/X11R6/include | ||
| 5173 | /usr/local/X11R5/include | ||
| 5174 | /usr/local/X11R4/include | ||
| 5175 | |||
| 5176 | /usr/local/include/X11 | ||
| 5177 | /usr/local/include/X11R6 | ||
| 5178 | /usr/local/include/X11R5 | ||
| 5179 | /usr/local/include/X11R4 | ||
| 5180 | |||
| 5181 | /usr/X386/include | ||
| 5182 | /usr/x386/include | ||
| 5183 | /usr/XFree86/include/X11 | ||
| 5184 | |||
| 5185 | /usr/include | ||
| 5186 | /usr/local/include | ||
| 5187 | /usr/unsupported/include | ||
| 5188 | /usr/athena/include | ||
| 5189 | /usr/local/x11r5/include | ||
| 5190 | /usr/lpp/Xamples/include | ||
| 5191 | |||
| 5192 | /usr/openwin/include | ||
| 5193 | /usr/openwin/share/include' | ||
| 5194 | |||
| 5195 | if test "$ac_x_includes" = no; then | ||
| 5196 | # Guess where to find include files, by looking for Intrinsic.h. | ||
| 3630 | # First, try using that file with no special directory specified. | 5197 | # First, try using that file with no special directory specified. |
| 3631 | cat > conftest.$ac_ext <<EOF | 5198 | cat >conftest.$ac_ext <<_ACEOF |
| 3632 | #line 3633 "configure" | 5199 | #line 5199 "configure" |
| 3633 | #include "confdefs.h" | 5200 | #include "confdefs.h" |
| 3634 | #include <$x_direct_test_include> | 5201 | #include <X11/Intrinsic.h> |
| 3635 | EOF | 5202 | _ACEOF |
| 3636 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5203 | if { (eval echo "$as_me:5203: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3637 | { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5204 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3638 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5205 | ac_status=$? |
| 3639 | if test -z "$ac_err"; then | 5206 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3640 | rm -rf conftest* | 5207 | rm -f conftest.er1 |
| 5208 | cat conftest.err >&5 | ||
| 5209 | echo "$as_me:5209: \$? = $ac_status" >&5 | ||
| 5210 | (exit $ac_status); } >/dev/null; then | ||
| 5211 | if test -s conftest.err; then | ||
| 5212 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 5213 | else | ||
| 5214 | ac_cpp_err= | ||
| 5215 | fi | ||
| 5216 | else | ||
| 5217 | ac_cpp_err=yes | ||
| 5218 | fi | ||
| 5219 | if test -z "$ac_cpp_err"; then | ||
| 3641 | # We can compile using X headers with no special include directory. | 5220 | # We can compile using X headers with no special include directory. |
| 3642 | ac_x_includes= | 5221 | ac_x_includes= |
| 3643 | else | 5222 | else |
| 3644 | echo "$ac_err" >&5 | 5223 | echo "$as_me: failed program was:" >&5 |
| 3645 | echo "configure: failed program was:" >&5 | ||
| 3646 | cat conftest.$ac_ext >&5 | 5224 | cat conftest.$ac_ext >&5 |
| 3647 | rm -rf conftest* | 5225 | for ac_dir in $ac_x_header_dirs; do |
| 3648 | # Look for the header file in a standard set of common directories. | 5226 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 3649 | # Check X11 before X11Rn because it is often a symlink to the current release. | 5227 | ac_x_includes=$ac_dir |
| 3650 | for ac_dir in \ | 5228 | break |
| 3651 | /usr/X11/include \ | 5229 | fi |
| 3652 | /usr/X11R6/include \ | 5230 | done |
| 3653 | /usr/X11R5/include \ | ||
| 3654 | /usr/X11R4/include \ | ||
| 3655 | \ | ||
| 3656 | /usr/include/X11 \ | ||
| 3657 | /usr/include/X11R6 \ | ||
| 3658 | /usr/include/X11R5 \ | ||
| 3659 | /usr/include/X11R4 \ | ||
| 3660 | \ | ||
| 3661 | /usr/local/X11/include \ | ||
| 3662 | /usr/local/X11R6/include \ | ||
| 3663 | /usr/local/X11R5/include \ | ||
| 3664 | /usr/local/X11R4/include \ | ||
| 3665 | \ | ||
| 3666 | /usr/local/include/X11 \ | ||
| 3667 | /usr/local/include/X11R6 \ | ||
| 3668 | /usr/local/include/X11R5 \ | ||
| 3669 | /usr/local/include/X11R4 \ | ||
| 3670 | \ | ||
| 3671 | /usr/X386/include \ | ||
| 3672 | /usr/x386/include \ | ||
| 3673 | /usr/XFree86/include/X11 \ | ||
| 3674 | \ | ||
| 3675 | /usr/include \ | ||
| 3676 | /usr/local/include \ | ||
| 3677 | /usr/unsupported/include \ | ||
| 3678 | /usr/athena/include \ | ||
| 3679 | /usr/local/x11r5/include \ | ||
| 3680 | /usr/lpp/Xamples/include \ | ||
| 3681 | \ | ||
| 3682 | /usr/openwin/include \ | ||
| 3683 | /usr/openwin/share/include \ | ||
| 3684 | ; \ | ||
| 3685 | do | ||
| 3686 | if test -r "$ac_dir/$x_direct_test_include"; then | ||
| 3687 | ac_x_includes=$ac_dir | ||
| 3688 | break | ||
| 3689 | fi | ||
| 3690 | done | ||
| 3691 | fi | 5231 | fi |
| 3692 | rm -f conftest* | 5232 | rm -f conftest.err conftest.$ac_ext |
| 3693 | fi # $ac_x_includes = NO | 5233 | fi # $ac_x_includes = no |
| 3694 | 5234 | ||
| 3695 | if test "$ac_x_libraries" = NO; then | 5235 | if test "$ac_x_libraries" = no; then |
| 3696 | # Check for the libraries. | 5236 | # Check for the libraries. |
| 3697 | |||
| 3698 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | ||
| 3699 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | ||
| 3700 | |||
| 3701 | # See if we find them without any special options. | 5237 | # See if we find them without any special options. |
| 3702 | # Don't add to $LIBS permanently. | 5238 | # Don't add to $LIBS permanently. |
| 3703 | ac_save_LIBS="$LIBS" | 5239 | ac_save_LIBS=$LIBS |
| 3704 | LIBS="-l$x_direct_test_library $LIBS" | 5240 | LIBS="-lXt $LIBS" |
| 3705 | cat > conftest.$ac_ext <<EOF | 5241 | cat >conftest.$ac_ext <<_ACEOF |
| 3706 | #line 3707 "configure" | 5242 | #line 5242 "configure" |
| 3707 | #include "confdefs.h" | 5243 | #include "confdefs.h" |
| 3708 | 5244 | #include <X11/Intrinsic.h> | |
| 3709 | int main() { | 5245 | int |
| 3710 | ${x_direct_test_function}() | 5246 | main () |
| 3711 | ; return 0; } | 5247 | { |
| 3712 | EOF | 5248 | XtMalloc (0) |
| 3713 | if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5249 | ; |
| 3714 | rm -rf conftest* | 5250 | return 0; |
| 3715 | LIBS="$ac_save_LIBS" | 5251 | } |
| 5252 | _ACEOF | ||
| 5253 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 5254 | if { (eval echo "$as_me:5254: \"$ac_link\"") >&5 | ||
| 5255 | (eval $ac_link) 2>&5 | ||
| 5256 | ac_status=$? | ||
| 5257 | echo "$as_me:5257: \$? = $ac_status" >&5 | ||
| 5258 | (exit $ac_status); } && | ||
| 5259 | { ac_try='test -s conftest$ac_exeext' | ||
| 5260 | { (eval echo "$as_me:5260: \"$ac_try\"") >&5 | ||
| 5261 | (eval $ac_try) 2>&5 | ||
| 5262 | ac_status=$? | ||
| 5263 | echo "$as_me:5263: \$? = $ac_status" >&5 | ||
| 5264 | (exit $ac_status); }; }; then | ||
| 5265 | LIBS=$ac_save_LIBS | ||
| 3716 | # We can link X programs with no special library path. | 5266 | # We can link X programs with no special library path. |
| 3717 | ac_x_libraries= | 5267 | ac_x_libraries= |
| 3718 | else | 5268 | else |
| 3719 | echo "configure: failed program was:" >&5 | 5269 | echo "$as_me: failed program was:" >&5 |
| 3720 | cat conftest.$ac_ext >&5 | 5270 | cat conftest.$ac_ext >&5 |
| 3721 | rm -rf conftest* | 5271 | LIBS=$ac_save_LIBS |
| 3722 | LIBS="$ac_save_LIBS" | 5272 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 3723 | # First see if replacing the include by lib works. | ||
| 3724 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
| 3725 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | ||
| 3726 | /usr/X11/lib \ | ||
| 3727 | /usr/X11R6/lib \ | ||
| 3728 | /usr/X11R5/lib \ | ||
| 3729 | /usr/X11R4/lib \ | ||
| 3730 | \ | ||
| 3731 | /usr/lib/X11 \ | ||
| 3732 | /usr/lib/X11R6 \ | ||
| 3733 | /usr/lib/X11R5 \ | ||
| 3734 | /usr/lib/X11R4 \ | ||
| 3735 | \ | ||
| 3736 | /usr/local/X11/lib \ | ||
| 3737 | /usr/local/X11R6/lib \ | ||
| 3738 | /usr/local/X11R5/lib \ | ||
| 3739 | /usr/local/X11R4/lib \ | ||
| 3740 | \ | ||
| 3741 | /usr/local/lib/X11 \ | ||
| 3742 | /usr/local/lib/X11R6 \ | ||
| 3743 | /usr/local/lib/X11R5 \ | ||
| 3744 | /usr/local/lib/X11R4 \ | ||
| 3745 | \ | ||
| 3746 | /usr/X386/lib \ | ||
| 3747 | /usr/x386/lib \ | ||
| 3748 | /usr/XFree86/lib/X11 \ | ||
| 3749 | \ | ||
| 3750 | /usr/lib \ | ||
| 3751 | /usr/local/lib \ | ||
| 3752 | /usr/unsupported/lib \ | ||
| 3753 | /usr/athena/lib \ | ||
| 3754 | /usr/local/x11r5/lib \ | ||
| 3755 | /usr/lpp/Xamples/lib \ | ||
| 3756 | /lib/usr/lib/X11 \ | ||
| 3757 | \ | ||
| 3758 | /usr/openwin/lib \ | ||
| 3759 | /usr/openwin/share/lib \ | ||
| 3760 | ; \ | ||
| 3761 | do | 5273 | do |
| 5274 | # Don't even attempt the hair of trying to link an X program! | ||
| 3762 | for ac_extension in a so sl; do | 5275 | for ac_extension in a so sl; do |
| 3763 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | 5276 | if test -r $ac_dir/libXt.$ac_extension; then |
| 3764 | ac_x_libraries=$ac_dir | 5277 | ac_x_libraries=$ac_dir |
| 3765 | break 2 | 5278 | break 2 |
| 3766 | fi | 5279 | fi |
| 3767 | done | 5280 | done |
| 3768 | done | 5281 | done |
| 3769 | fi | 5282 | fi |
| 3770 | rm -f conftest* | 5283 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3771 | fi # $ac_x_libraries = NO | 5284 | fi # $ac_x_libraries = no |
| 3772 | 5285 | ||
| 3773 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | 5286 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 3774 | # Didn't find X anywhere. Cache the known absence of X. | 5287 | # Didn't find X anywhere. Cache the known absence of X. |
| 3775 | ac_cv_have_x="have_x=no" | 5288 | ac_cv_have_x="have_x=no" |
| 3776 | else | 5289 | else |
| @@ -3779,12 +5292,14 @@ else | |||
| 3779 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | 5292 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 3780 | fi | 5293 | fi |
| 3781 | fi | 5294 | fi |
| 5295 | |||
| 3782 | fi | 5296 | fi |
| 3783 | eval "$ac_cv_have_x" | 5297 | eval "$ac_cv_have_x" |
| 3784 | fi # $with_x != no | 5298 | fi # $with_x != no |
| 3785 | 5299 | ||
| 3786 | if test "$have_x" != yes; then | 5300 | if test "$have_x" != yes; then |
| 3787 | echo "$ac_t""$have_x" 1>&6 | 5301 | echo "$as_me:5301: result: $have_x" >&5 |
| 5302 | echo "${ECHO_T}$have_x" >&6 | ||
| 3788 | no_x=yes | 5303 | no_x=yes |
| 3789 | else | 5304 | else |
| 3790 | # If each of the values was on the command line, it overrides each guess. | 5305 | # If each of the values was on the command line, it overrides each guess. |
| @@ -3793,7 +5308,8 @@ else | |||
| 3793 | # Update the cache value to reflect the command line values. | 5308 | # Update the cache value to reflect the command line values. |
| 3794 | ac_cv_have_x="have_x=yes \ | 5309 | ac_cv_have_x="have_x=yes \ |
| 3795 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | 5310 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 3796 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | 5311 | echo "$as_me:5311: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5312 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | ||
| 3797 | fi | 5313 | fi |
| 3798 | 5314 | ||
| 3799 | if test "$no_x" = yes; then | 5315 | if test "$no_x" = yes; then |
| @@ -3866,7 +5382,7 @@ HAVE_MENUS=no | |||
| 3866 | case ${HAVE_X11} in | 5382 | case ${HAVE_X11} in |
| 3867 | yes ) HAVE_MENUS=yes ;; | 5383 | yes ) HAVE_MENUS=yes ;; |
| 3868 | esac | 5384 | esac |
| 3869 | 5385 | ||
| 3870 | if test "${opsys}" = "hpux9"; then | 5386 | if test "${opsys}" = "hpux9"; then |
| 3871 | case "${x_libraries}" in | 5387 | case "${x_libraries}" in |
| 3872 | *X11R4* ) | 5388 | *X11R4* ) |
| @@ -3890,130 +5406,173 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |||
| 3890 | # Assume not, until told otherwise. | 5406 | # Assume not, until told otherwise. |
| 3891 | GNU_MALLOC=yes | 5407 | GNU_MALLOC=yes |
| 3892 | doug_lea_malloc=yes | 5408 | doug_lea_malloc=yes |
| 3893 | echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 5409 | echo "$as_me:5409: checking for malloc_get_state" >&5 |
| 3894 | echo "configure:3895: checking for malloc_get_state" >&5 | 5410 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
| 3895 | if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then | 5411 | if test "${ac_cv_func_malloc_get_state+set}" = set; then |
| 3896 | echo $ac_n "(cached) $ac_c" 1>&6 | 5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3897 | else | 5413 | else |
| 3898 | cat > conftest.$ac_ext <<EOF | 5414 | cat >conftest.$ac_ext <<_ACEOF |
| 3899 | #line 3900 "configure" | 5415 | #line 5415 "configure" |
| 3900 | #include "confdefs.h" | 5416 | #include "confdefs.h" |
| 3901 | /* System header to define __stub macros and hopefully few prototypes, | 5417 | /* System header to define __stub macros and hopefully few prototypes, |
| 3902 | which can conflict with char malloc_get_state(); below. */ | 5418 | which can conflict with char malloc_get_state (); below. */ |
| 3903 | #include <assert.h> | 5419 | #include <assert.h> |
| 3904 | /* Override any gcc2 internal prototype to avoid an error. */ | 5420 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5421 | #ifdef __cplusplus | ||
| 5422 | extern "C" | ||
| 5423 | #endif | ||
| 3905 | /* We use char because int might match the return type of a gcc2 | 5424 | /* We use char because int might match the return type of a gcc2 |
| 3906 | builtin and then its argument prototype would still apply. */ | 5425 | builtin and then its argument prototype would still apply. */ |
| 3907 | char malloc_get_state(); | 5426 | char malloc_get_state (); |
| 3908 | 5427 | char (*f) (); | |
| 3909 | int main() { | ||
| 3910 | 5428 | ||
| 5429 | int | ||
| 5430 | main () | ||
| 5431 | { | ||
| 3911 | /* The GNU C library defines this for functions which it implements | 5432 | /* The GNU C library defines this for functions which it implements |
| 3912 | to always fail with ENOSYS. Some functions are actually named | 5433 | to always fail with ENOSYS. Some functions are actually named |
| 3913 | something starting with __ and the normal name is an alias. */ | 5434 | something starting with __ and the normal name is an alias. */ |
| 3914 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | 5435 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) |
| 3915 | choke me | 5436 | choke me |
| 3916 | #else | 5437 | #else |
| 3917 | malloc_get_state(); | 5438 | f = malloc_get_state; |
| 3918 | #endif | 5439 | #endif |
| 3919 | 5440 | ||
| 3920 | ; return 0; } | 5441 | ; |
| 3921 | EOF | 5442 | return 0; |
| 3922 | if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5443 | } |
| 3923 | rm -rf conftest* | 5444 | _ACEOF |
| 3924 | eval "ac_cv_func_malloc_get_state=yes" | 5445 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3925 | else | 5446 | if { (eval echo "$as_me:5446: \"$ac_link\"") >&5 |
| 3926 | echo "configure: failed program was:" >&5 | 5447 | (eval $ac_link) 2>&5 |
| 3927 | cat conftest.$ac_ext >&5 | 5448 | ac_status=$? |
| 3928 | rm -rf conftest* | 5449 | echo "$as_me:5449: \$? = $ac_status" >&5 |
| 3929 | eval "ac_cv_func_malloc_get_state=no" | 5450 | (exit $ac_status); } && |
| 3930 | fi | 5451 | { ac_try='test -s conftest$ac_exeext' |
| 3931 | rm -f conftest* | 5452 | { (eval echo "$as_me:5452: \"$ac_try\"") >&5 |
| 3932 | fi | 5453 | (eval $ac_try) 2>&5 |
| 3933 | 5454 | ac_status=$? | |
| 3934 | if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then | 5455 | echo "$as_me:5455: \$? = $ac_status" >&5 |
| 3935 | echo "$ac_t""yes" 1>&6 | 5456 | (exit $ac_status); }; }; then |
| 5457 | ac_cv_func_malloc_get_state=yes | ||
| 5458 | else | ||
| 5459 | echo "$as_me: failed program was:" >&5 | ||
| 5460 | cat conftest.$ac_ext >&5 | ||
| 5461 | ac_cv_func_malloc_get_state=no | ||
| 5462 | fi | ||
| 5463 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 5464 | fi | ||
| 5465 | echo "$as_me:5465: result: $ac_cv_func_malloc_get_state" >&5 | ||
| 5466 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 | ||
| 5467 | if test $ac_cv_func_malloc_get_state = yes; then | ||
| 3936 | : | 5468 | : |
| 3937 | else | 5469 | else |
| 3938 | echo "$ac_t""no" 1>&6 | 5470 | doug_lea_malloc=no |
| 3939 | doug_lea_malloc=no | ||
| 3940 | fi | 5471 | fi |
| 3941 | 5472 | ||
| 3942 | echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 5473 | echo "$as_me:5473: checking for malloc_set_state" >&5 |
| 3943 | echo "configure:3944: checking for malloc_set_state" >&5 | 5474 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
| 3944 | if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then | 5475 | if test "${ac_cv_func_malloc_set_state+set}" = set; then |
| 3945 | echo $ac_n "(cached) $ac_c" 1>&6 | 5476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3946 | else | 5477 | else |
| 3947 | cat > conftest.$ac_ext <<EOF | 5478 | cat >conftest.$ac_ext <<_ACEOF |
| 3948 | #line 3949 "configure" | 5479 | #line 5479 "configure" |
| 3949 | #include "confdefs.h" | 5480 | #include "confdefs.h" |
| 3950 | /* System header to define __stub macros and hopefully few prototypes, | 5481 | /* System header to define __stub macros and hopefully few prototypes, |
| 3951 | which can conflict with char malloc_set_state(); below. */ | 5482 | which can conflict with char malloc_set_state (); below. */ |
| 3952 | #include <assert.h> | 5483 | #include <assert.h> |
| 3953 | /* Override any gcc2 internal prototype to avoid an error. */ | 5484 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5485 | #ifdef __cplusplus | ||
| 5486 | extern "C" | ||
| 5487 | #endif | ||
| 3954 | /* We use char because int might match the return type of a gcc2 | 5488 | /* We use char because int might match the return type of a gcc2 |
| 3955 | builtin and then its argument prototype would still apply. */ | 5489 | builtin and then its argument prototype would still apply. */ |
| 3956 | char malloc_set_state(); | 5490 | char malloc_set_state (); |
| 3957 | 5491 | char (*f) (); | |
| 3958 | int main() { | ||
| 3959 | 5492 | ||
| 5493 | int | ||
| 5494 | main () | ||
| 5495 | { | ||
| 3960 | /* The GNU C library defines this for functions which it implements | 5496 | /* The GNU C library defines this for functions which it implements |
| 3961 | to always fail with ENOSYS. Some functions are actually named | 5497 | to always fail with ENOSYS. Some functions are actually named |
| 3962 | something starting with __ and the normal name is an alias. */ | 5498 | something starting with __ and the normal name is an alias. */ |
| 3963 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | 5499 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) |
| 3964 | choke me | 5500 | choke me |
| 3965 | #else | 5501 | #else |
| 3966 | malloc_set_state(); | 5502 | f = malloc_set_state; |
| 3967 | #endif | 5503 | #endif |
| 3968 | 5504 | ||
| 3969 | ; return 0; } | 5505 | ; |
| 3970 | EOF | 5506 | return 0; |
| 3971 | if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5507 | } |
| 3972 | rm -rf conftest* | 5508 | _ACEOF |
| 3973 | eval "ac_cv_func_malloc_set_state=yes" | 5509 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3974 | else | 5510 | if { (eval echo "$as_me:5510: \"$ac_link\"") >&5 |
| 3975 | echo "configure: failed program was:" >&5 | 5511 | (eval $ac_link) 2>&5 |
| 3976 | cat conftest.$ac_ext >&5 | 5512 | ac_status=$? |
| 3977 | rm -rf conftest* | 5513 | echo "$as_me:5513: \$? = $ac_status" >&5 |
| 3978 | eval "ac_cv_func_malloc_set_state=no" | 5514 | (exit $ac_status); } && |
| 3979 | fi | 5515 | { ac_try='test -s conftest$ac_exeext' |
| 3980 | rm -f conftest* | 5516 | { (eval echo "$as_me:5516: \"$ac_try\"") >&5 |
| 3981 | fi | 5517 | (eval $ac_try) 2>&5 |
| 3982 | 5518 | ac_status=$? | |
| 3983 | if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | 5519 | echo "$as_me:5519: \$? = $ac_status" >&5 |
| 3984 | echo "$ac_t""yes" 1>&6 | 5520 | (exit $ac_status); }; }; then |
| 5521 | ac_cv_func_malloc_set_state=yes | ||
| 5522 | else | ||
| 5523 | echo "$as_me: failed program was:" >&5 | ||
| 5524 | cat conftest.$ac_ext >&5 | ||
| 5525 | ac_cv_func_malloc_set_state=no | ||
| 5526 | fi | ||
| 5527 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 5528 | fi | ||
| 5529 | echo "$as_me:5529: result: $ac_cv_func_malloc_set_state" >&5 | ||
| 5530 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 | ||
| 5531 | if test $ac_cv_func_malloc_set_state = yes; then | ||
| 3985 | : | 5532 | : |
| 3986 | else | 5533 | else |
| 3987 | echo "$ac_t""no" 1>&6 | 5534 | doug_lea_malloc=no |
| 3988 | doug_lea_malloc=no | ||
| 3989 | fi | 5535 | fi |
| 3990 | 5536 | ||
| 3991 | echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 5537 | echo "$as_me:5537: checking whether __after_morecore_hook exists" >&5 |
| 3992 | echo "configure:3993: checking whether __after_morecore_hook exists" >&5 | 5538 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
| 3993 | if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then | 5539 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then |
| 3994 | echo $ac_n "(cached) $ac_c" 1>&6 | 5540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3995 | else | 5541 | else |
| 3996 | cat > conftest.$ac_ext <<EOF | 5542 | cat >conftest.$ac_ext <<_ACEOF |
| 3997 | #line 3998 "configure" | 5543 | #line 5543 "configure" |
| 3998 | #include "confdefs.h" | 5544 | #include "confdefs.h" |
| 3999 | extern void (* __after_morecore_hook)(); | 5545 | extern void (* __after_morecore_hook)(); |
| 4000 | int main() { | 5546 | int |
| 5547 | main () | ||
| 5548 | { | ||
| 4001 | __after_morecore_hook = 0 | 5549 | __after_morecore_hook = 0 |
| 4002 | ; return 0; } | 5550 | ; |
| 4003 | EOF | 5551 | return 0; |
| 4004 | if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5552 | } |
| 4005 | rm -rf conftest* | 5553 | _ACEOF |
| 5554 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 5555 | if { (eval echo "$as_me:5555: \"$ac_link\"") >&5 | ||
| 5556 | (eval $ac_link) 2>&5 | ||
| 5557 | ac_status=$? | ||
| 5558 | echo "$as_me:5558: \$? = $ac_status" >&5 | ||
| 5559 | (exit $ac_status); } && | ||
| 5560 | { ac_try='test -s conftest$ac_exeext' | ||
| 5561 | { (eval echo "$as_me:5561: \"$ac_try\"") >&5 | ||
| 5562 | (eval $ac_try) 2>&5 | ||
| 5563 | ac_status=$? | ||
| 5564 | echo "$as_me:5564: \$? = $ac_status" >&5 | ||
| 5565 | (exit $ac_status); }; }; then | ||
| 4006 | emacs_cv_var___after_morecore_hook=yes | 5566 | emacs_cv_var___after_morecore_hook=yes |
| 4007 | else | 5567 | else |
| 4008 | echo "configure: failed program was:" >&5 | 5568 | echo "$as_me: failed program was:" >&5 |
| 4009 | cat conftest.$ac_ext >&5 | 5569 | cat conftest.$ac_ext >&5 |
| 4010 | rm -rf conftest* | 5570 | emacs_cv_var___after_morecore_hook=no |
| 4011 | emacs_cv_var___after_morecore_hook=no | ||
| 4012 | fi | 5571 | fi |
| 4013 | rm -f conftest* | 5572 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4014 | fi | 5573 | fi |
| 4015 | 5574 | echo "$as_me:5574: result: $emacs_cv_var___after_morecore_hook" >&5 | |
| 4016 | echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 | 5575 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
| 4017 | if test $emacs_cv_var___after_morecore_hook = no; then | 5576 | if test $emacs_cv_var___after_morecore_hook = no; then |
| 4018 | doug_lea_malloc=no | 5577 | doug_lea_malloc=no |
| 4019 | fi | 5578 | fi |
| @@ -4027,7 +5586,7 @@ if test "$doug_lea_malloc" = "yes" ; then | |||
| 4027 | GNU_MALLOC_reason=" | 5586 | GNU_MALLOC_reason=" |
| 4028 | (Using Doug Lea's new malloc from the GNU C Library.)" | 5587 | (Using Doug Lea's new malloc from the GNU C Library.)" |
| 4029 | fi | 5588 | fi |
| 4030 | cat >> confdefs.h <<\EOF | 5589 | cat >>confdefs.h <<\EOF |
| 4031 | #define DOUG_LEA_MALLOC 1 | 5590 | #define DOUG_LEA_MALLOC 1 |
| 4032 | EOF | 5591 | EOF |
| 4033 | 5592 | ||
| @@ -4037,113 +5596,182 @@ if test x"${REL_ALLOC}" = x; then | |||
| 4037 | REL_ALLOC=${GNU_MALLOC} | 5596 | REL_ALLOC=${GNU_MALLOC} |
| 4038 | fi | 5597 | fi |
| 4039 | 5598 | ||
| 5599 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
| 5600 | |||
| 5601 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
| 5602 | inttypes.h stdint.h unistd.h | ||
| 5603 | do | ||
| 5604 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 5605 | echo "$as_me:5605: checking for $ac_header" >&5 | ||
| 5606 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
| 5607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
| 5608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 5609 | else | ||
| 5610 | cat >conftest.$ac_ext <<_ACEOF | ||
| 5611 | #line 5611 "configure" | ||
| 5612 | #include "confdefs.h" | ||
| 5613 | $ac_includes_default | ||
| 5614 | #include <$ac_header> | ||
| 5615 | _ACEOF | ||
| 5616 | rm -f conftest.$ac_objext | ||
| 5617 | if { (eval echo "$as_me:5617: \"$ac_compile\"") >&5 | ||
| 5618 | (eval $ac_compile) 2>&5 | ||
| 5619 | ac_status=$? | ||
| 5620 | echo "$as_me:5620: \$? = $ac_status" >&5 | ||
| 5621 | (exit $ac_status); } && | ||
| 5622 | { ac_try='test -s conftest.$ac_objext' | ||
| 5623 | { (eval echo "$as_me:5623: \"$ac_try\"") >&5 | ||
| 5624 | (eval $ac_try) 2>&5 | ||
| 5625 | ac_status=$? | ||
| 5626 | echo "$as_me:5626: \$? = $ac_status" >&5 | ||
| 5627 | (exit $ac_status); }; }; then | ||
| 5628 | eval "$as_ac_Header=yes" | ||
| 5629 | else | ||
| 5630 | echo "$as_me: failed program was:" >&5 | ||
| 5631 | cat conftest.$ac_ext >&5 | ||
| 5632 | eval "$as_ac_Header=no" | ||
| 5633 | fi | ||
| 5634 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 5635 | fi | ||
| 5636 | echo "$as_me:5636: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
| 5637 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
| 5638 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
| 5639 | cat >>confdefs.h <<EOF | ||
| 5640 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 5641 | EOF | ||
| 5642 | |||
| 5643 | fi | ||
| 5644 | done | ||
| 4040 | 5645 | ||
| 4041 | for ac_hdr in stdlib.h unistd.h sys/stat.h | 5646 | for ac_header in stdlib.h unistd.h |
| 4042 | do | 5647 | do |
| 4043 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5648 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4044 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5649 | echo "$as_me:5649: checking for $ac_header" >&5 |
| 4045 | echo "configure:4046: checking for $ac_hdr" >&5 | 5650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4046 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4047 | echo $ac_n "(cached) $ac_c" 1>&6 | 5652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4048 | else | 5653 | else |
| 4049 | cat > conftest.$ac_ext <<EOF | 5654 | cat >conftest.$ac_ext <<_ACEOF |
| 4050 | #line 4051 "configure" | 5655 | #line 5655 "configure" |
| 4051 | #include "confdefs.h" | 5656 | #include "confdefs.h" |
| 4052 | #include <$ac_hdr> | 5657 | #include <$ac_header> |
| 4053 | EOF | 5658 | _ACEOF |
| 4054 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5659 | if { (eval echo "$as_me:5659: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4055 | { (eval echo configure:4056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4056 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5661 | ac_status=$? |
| 4057 | if test -z "$ac_err"; then | 5662 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4058 | rm -rf conftest* | 5663 | rm -f conftest.er1 |
| 4059 | eval "ac_cv_header_$ac_safe=yes" | 5664 | cat conftest.err >&5 |
| 4060 | else | 5665 | echo "$as_me:5665: \$? = $ac_status" >&5 |
| 4061 | echo "$ac_err" >&5 | 5666 | (exit $ac_status); } >/dev/null; then |
| 4062 | echo "configure: failed program was:" >&5 | 5667 | if test -s conftest.err; then |
| 5668 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 5669 | else | ||
| 5670 | ac_cpp_err= | ||
| 5671 | fi | ||
| 5672 | else | ||
| 5673 | ac_cpp_err=yes | ||
| 5674 | fi | ||
| 5675 | if test -z "$ac_cpp_err"; then | ||
| 5676 | eval "$as_ac_Header=yes" | ||
| 5677 | else | ||
| 5678 | echo "$as_me: failed program was:" >&5 | ||
| 4063 | cat conftest.$ac_ext >&5 | 5679 | cat conftest.$ac_ext >&5 |
| 4064 | rm -rf conftest* | 5680 | eval "$as_ac_Header=no" |
| 4065 | eval "ac_cv_header_$ac_safe=no" | ||
| 4066 | fi | 5681 | fi |
| 4067 | rm -f conftest* | 5682 | rm -f conftest.err conftest.$ac_ext |
| 4068 | fi | 5683 | fi |
| 4069 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5684 | echo "$as_me:5684: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4070 | echo "$ac_t""yes" 1>&6 | 5685 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4071 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 5686 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4072 | cat >> confdefs.h <<EOF | 5687 | cat >>confdefs.h <<EOF |
| 4073 | #define $ac_tr_hdr 1 | 5688 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4074 | EOF | 5689 | EOF |
| 4075 | 5690 | ||
| 4076 | else | ||
| 4077 | echo "$ac_t""no" 1>&6 | ||
| 4078 | fi | 5691 | fi |
| 4079 | done | 5692 | done |
| 4080 | 5693 | ||
| 4081 | for ac_func in getpagesize | 5694 | for ac_func in getpagesize |
| 4082 | do | 5695 | do |
| 4083 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5696 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4084 | echo "configure:4085: checking for $ac_func" >&5 | 5697 | echo "$as_me:5697: checking for $ac_func" >&5 |
| 4085 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5698 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4086 | echo $ac_n "(cached) $ac_c" 1>&6 | 5699 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 4087 | else | 5701 | else |
| 4088 | cat > conftest.$ac_ext <<EOF | 5702 | cat >conftest.$ac_ext <<_ACEOF |
| 4089 | #line 4090 "configure" | 5703 | #line 5703 "configure" |
| 4090 | #include "confdefs.h" | 5704 | #include "confdefs.h" |
| 4091 | /* System header to define __stub macros and hopefully few prototypes, | 5705 | /* System header to define __stub macros and hopefully few prototypes, |
| 4092 | which can conflict with char $ac_func(); below. */ | 5706 | which can conflict with char $ac_func (); below. */ |
| 4093 | #include <assert.h> | 5707 | #include <assert.h> |
| 4094 | /* Override any gcc2 internal prototype to avoid an error. */ | 5708 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5709 | #ifdef __cplusplus | ||
| 5710 | extern "C" | ||
| 5711 | #endif | ||
| 4095 | /* We use char because int might match the return type of a gcc2 | 5712 | /* We use char because int might match the return type of a gcc2 |
| 4096 | builtin and then its argument prototype would still apply. */ | 5713 | builtin and then its argument prototype would still apply. */ |
| 4097 | char $ac_func(); | 5714 | char $ac_func (); |
| 4098 | 5715 | char (*f) (); | |
| 4099 | int main() { | ||
| 4100 | 5716 | ||
| 5717 | int | ||
| 5718 | main () | ||
| 5719 | { | ||
| 4101 | /* The GNU C library defines this for functions which it implements | 5720 | /* The GNU C library defines this for functions which it implements |
| 4102 | to always fail with ENOSYS. Some functions are actually named | 5721 | to always fail with ENOSYS. Some functions are actually named |
| 4103 | something starting with __ and the normal name is an alias. */ | 5722 | something starting with __ and the normal name is an alias. */ |
| 4104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 5723 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4105 | choke me | 5724 | choke me |
| 4106 | #else | 5725 | #else |
| 4107 | $ac_func(); | 5726 | f = $ac_func; |
| 4108 | #endif | 5727 | #endif |
| 4109 | 5728 | ||
| 4110 | ; return 0; } | 5729 | ; |
| 5730 | return 0; | ||
| 5731 | } | ||
| 5732 | _ACEOF | ||
| 5733 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 5734 | if { (eval echo "$as_me:5734: \"$ac_link\"") >&5 | ||
| 5735 | (eval $ac_link) 2>&5 | ||
| 5736 | ac_status=$? | ||
| 5737 | echo "$as_me:5737: \$? = $ac_status" >&5 | ||
| 5738 | (exit $ac_status); } && | ||
| 5739 | { ac_try='test -s conftest$ac_exeext' | ||
| 5740 | { (eval echo "$as_me:5740: \"$ac_try\"") >&5 | ||
| 5741 | (eval $ac_try) 2>&5 | ||
| 5742 | ac_status=$? | ||
| 5743 | echo "$as_me:5743: \$? = $ac_status" >&5 | ||
| 5744 | (exit $ac_status); }; }; then | ||
| 5745 | eval "$as_ac_var=yes" | ||
| 5746 | else | ||
| 5747 | echo "$as_me: failed program was:" >&5 | ||
| 5748 | cat conftest.$ac_ext >&5 | ||
| 5749 | eval "$as_ac_var=no" | ||
| 5750 | fi | ||
| 5751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 5752 | fi | ||
| 5753 | echo "$as_me:5753: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 5754 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 5755 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 5756 | cat >>confdefs.h <<EOF | ||
| 5757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 4111 | EOF | 5758 | EOF |
| 4112 | if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4113 | rm -rf conftest* | ||
| 4114 | eval "ac_cv_func_$ac_func=yes" | ||
| 4115 | else | ||
| 4116 | echo "configure: failed program was:" >&5 | ||
| 4117 | cat conftest.$ac_ext >&5 | ||
| 4118 | rm -rf conftest* | ||
| 4119 | eval "ac_cv_func_$ac_func=no" | ||
| 4120 | fi | ||
| 4121 | rm -f conftest* | ||
| 4122 | fi | ||
| 4123 | 5759 | ||
| 4124 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 4125 | echo "$ac_t""yes" 1>&6 | ||
| 4126 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 4127 | cat >> confdefs.h <<EOF | ||
| 4128 | #define $ac_tr_func 1 | ||
| 4129 | EOF | ||
| 4130 | |||
| 4131 | else | ||
| 4132 | echo "$ac_t""no" 1>&6 | ||
| 4133 | fi | 5760 | fi |
| 4134 | done | 5761 | done |
| 4135 | 5762 | ||
| 4136 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 5763 | echo "$as_me:5763: checking for working mmap" >&5 |
| 4137 | echo "configure:4138: checking for working mmap" >&5 | 5764 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 4138 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | 5765 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 4139 | echo $ac_n "(cached) $ac_c" 1>&6 | 5766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4140 | else | 5767 | else |
| 4141 | if test "$cross_compiling" = yes; then | 5768 | if test "$cross_compiling" = yes; then |
| 4142 | ac_cv_func_mmap_fixed_mapped=no | 5769 | ac_cv_func_mmap_fixed_mapped=no |
| 4143 | else | 5770 | else |
| 4144 | cat > conftest.$ac_ext <<EOF | 5771 | cat >conftest.$ac_ext <<_ACEOF |
| 4145 | #line 4146 "configure" | 5772 | #line 5772 "configure" |
| 4146 | #include "confdefs.h" | 5773 | #include "confdefs.h" |
| 5774 | $ac_includes_default | ||
| 4147 | /* Thanks to Mike Haertel and Jim Avera for this test. | 5775 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 4148 | Here is a matrix of mmap possibilities: | 5776 | Here is a matrix of mmap possibilities: |
| 4149 | mmap private not fixed | 5777 | mmap private not fixed |
| @@ -4165,21 +5793,13 @@ else | |||
| 4165 | The main things grep needs to know about mmap are: | 5793 | The main things grep needs to know about mmap are: |
| 4166 | * does it exist and is it safe to write into the mmap'd area | 5794 | * does it exist and is it safe to write into the mmap'd area |
| 4167 | * how to use it (BSD variants) */ | 5795 | * how to use it (BSD variants) */ |
| 4168 | #include <sys/types.h> | 5796 | |
| 4169 | #include <fcntl.h> | 5797 | #include <fcntl.h> |
| 4170 | #include <sys/mman.h> | 5798 | #include <sys/mman.h> |
| 4171 | 5799 | ||
| 4172 | #if STDC_HEADERS || HAVE_STDLIB_H | 5800 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 4173 | # include <stdlib.h> | ||
| 4174 | #else | ||
| 4175 | char *malloc (); | 5801 | char *malloc (); |
| 4176 | #endif | 5802 | #endif |
| 4177 | #if HAVE_UNISTD_H | ||
| 4178 | # include <unistd.h> | ||
| 4179 | #endif | ||
| 4180 | #if HAVE_SYS_STAT_H | ||
| 4181 | # include <sys/stat.h> | ||
| 4182 | #endif | ||
| 4183 | 5803 | ||
| 4184 | /* This mess was copied from the GNU getpagesize.h. */ | 5804 | /* This mess was copied from the GNU getpagesize.h. */ |
| 4185 | #if !HAVE_GETPAGESIZE | 5805 | #if !HAVE_GETPAGESIZE |
| @@ -4234,7 +5854,7 @@ main () | |||
| 4234 | for (i = 0; i < pagesize; ++i) | 5854 | for (i = 0; i < pagesize; ++i) |
| 4235 | *(data + i) = rand (); | 5855 | *(data + i) = rand (); |
| 4236 | umask (0); | 5856 | umask (0); |
| 4237 | fd = creat ("conftestmmap", 0600); | 5857 | fd = creat ("conftest.mmap", 0600); |
| 4238 | if (fd < 0) | 5858 | if (fd < 0) |
| 4239 | exit (1); | 5859 | exit (1); |
| 4240 | if (write (fd, data, pagesize) != pagesize) | 5860 | if (write (fd, data, pagesize) != pagesize) |
| @@ -4244,7 +5864,7 @@ main () | |||
| 4244 | /* Next, try to mmap the file at a fixed address which already has | 5864 | /* Next, try to mmap the file at a fixed address which already has |
| 4245 | something else allocated at it. If we can, also make sure that | 5865 | something else allocated at it. If we can, also make sure that |
| 4246 | we see the same garbage. */ | 5866 | we see the same garbage. */ |
| 4247 | fd = open ("conftestmmap", O_RDWR); | 5867 | fd = open ("conftest.mmap", O_RDWR); |
| 4248 | if (fd < 0) | 5868 | if (fd < 0) |
| 4249 | exit (1); | 5869 | exit (1); |
| 4250 | data2 = (char *) malloc (2 * pagesize); | 5870 | data2 = (char *) malloc (2 * pagesize); |
| @@ -4272,31 +5892,40 @@ main () | |||
| 4272 | if (*(data + i) != *(data3 + i)) | 5892 | if (*(data + i) != *(data3 + i)) |
| 4273 | exit (1); | 5893 | exit (1); |
| 4274 | close (fd); | 5894 | close (fd); |
| 4275 | unlink ("conftestmmap"); | ||
| 4276 | exit (0); | 5895 | exit (0); |
| 4277 | } | 5896 | } |
| 4278 | EOF | 5897 | _ACEOF |
| 4279 | if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5898 | rm -f conftest$ac_exeext |
| 4280 | then | 5899 | if { (eval echo "$as_me:5899: \"$ac_link\"") >&5 |
| 5900 | (eval $ac_link) 2>&5 | ||
| 5901 | ac_status=$? | ||
| 5902 | echo "$as_me:5902: \$? = $ac_status" >&5 | ||
| 5903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 5904 | { (eval echo "$as_me:5904: \"$ac_try\"") >&5 | ||
| 5905 | (eval $ac_try) 2>&5 | ||
| 5906 | ac_status=$? | ||
| 5907 | echo "$as_me:5907: \$? = $ac_status" >&5 | ||
| 5908 | (exit $ac_status); }; }; then | ||
| 4281 | ac_cv_func_mmap_fixed_mapped=yes | 5909 | ac_cv_func_mmap_fixed_mapped=yes |
| 4282 | else | 5910 | else |
| 4283 | echo "configure: failed program was:" >&5 | 5911 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4284 | cat conftest.$ac_ext >&5 | 5912 | echo "$as_me: failed program was:" >&5 |
| 4285 | rm -fr conftest* | 5913 | cat conftest.$ac_ext >&5 |
| 4286 | ac_cv_func_mmap_fixed_mapped=no | 5914 | ac_cv_func_mmap_fixed_mapped=no |
| 4287 | fi | 5915 | fi |
| 4288 | rm -fr conftest* | 5916 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4289 | fi | 5917 | fi |
| 4290 | |||
| 4291 | fi | 5918 | fi |
| 4292 | 5919 | echo "$as_me:5919: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
| 4293 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | 5920 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 4294 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 5921 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 4295 | cat >> confdefs.h <<\EOF | 5922 | |
| 5923 | cat >>confdefs.h <<\EOF | ||
| 4296 | #define HAVE_MMAP 1 | 5924 | #define HAVE_MMAP 1 |
| 4297 | EOF | 5925 | EOF |
| 4298 | 5926 | ||
| 4299 | fi | 5927 | fi |
| 5928 | rm -f conftest.mmap | ||
| 4300 | 5929 | ||
| 4301 | if test $use_mmap_for_buffers = yes; then | 5930 | if test $use_mmap_for_buffers = yes; then |
| 4302 | REL_ALLOC=no | 5931 | REL_ALLOC=no |
| @@ -4304,148 +5933,178 @@ fi | |||
| 4304 | 5933 | ||
| 4305 | LIBS="$libsrc_libs $LIBS" | 5934 | LIBS="$libsrc_libs $LIBS" |
| 4306 | 5935 | ||
| 4307 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 5936 | echo "$as_me:5936: checking for dnet_ntoa in -ldnet" >&5 |
| 4308 | echo "configure:4309: checking for dnet_ntoa in -ldnet" >&5 | 5937 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 4309 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 5938 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 4310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4311 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4312 | else | 5940 | else |
| 4313 | ac_save_LIBS="$LIBS" | 5941 | ac_check_lib_save_LIBS=$LIBS |
| 4314 | LIBS="-ldnet $LIBS" | 5942 | LIBS="-ldnet $LIBS" |
| 4315 | cat > conftest.$ac_ext <<EOF | 5943 | cat >conftest.$ac_ext <<_ACEOF |
| 4316 | #line 4317 "configure" | 5944 | #line 5944 "configure" |
| 4317 | #include "confdefs.h" | 5945 | #include "confdefs.h" |
| 5946 | |||
| 4318 | /* Override any gcc2 internal prototype to avoid an error. */ | 5947 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5948 | #ifdef __cplusplus | ||
| 5949 | extern "C" | ||
| 5950 | #endif | ||
| 4319 | /* We use char because int might match the return type of a gcc2 | 5951 | /* We use char because int might match the return type of a gcc2 |
| 4320 | builtin and then its argument prototype would still apply. */ | 5952 | builtin and then its argument prototype would still apply. */ |
| 4321 | char dnet_ntoa(); | 5953 | char dnet_ntoa (); |
| 4322 | 5954 | int | |
| 4323 | int main() { | 5955 | main () |
| 4324 | dnet_ntoa() | 5956 | { |
| 4325 | ; return 0; } | 5957 | dnet_ntoa (); |
| 4326 | EOF | 5958 | ; |
| 4327 | if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5959 | return 0; |
| 4328 | rm -rf conftest* | 5960 | } |
| 4329 | eval "ac_cv_lib_$ac_lib_var=yes" | 5961 | _ACEOF |
| 4330 | else | 5962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4331 | echo "configure: failed program was:" >&5 | 5963 | if { (eval echo "$as_me:5963: \"$ac_link\"") >&5 |
| 4332 | cat conftest.$ac_ext >&5 | 5964 | (eval $ac_link) 2>&5 |
| 4333 | rm -rf conftest* | 5965 | ac_status=$? |
| 4334 | eval "ac_cv_lib_$ac_lib_var=no" | 5966 | echo "$as_me:5966: \$? = $ac_status" >&5 |
| 4335 | fi | 5967 | (exit $ac_status); } && |
| 4336 | rm -f conftest* | 5968 | { ac_try='test -s conftest$ac_exeext' |
| 4337 | LIBS="$ac_save_LIBS" | 5969 | { (eval echo "$as_me:5969: \"$ac_try\"") >&5 |
| 4338 | 5970 | (eval $ac_try) 2>&5 | |
| 4339 | fi | 5971 | ac_status=$? |
| 4340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5972 | echo "$as_me:5972: \$? = $ac_status" >&5 |
| 4341 | echo "$ac_t""yes" 1>&6 | 5973 | (exit $ac_status); }; }; then |
| 4342 | ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 5974 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 4343 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 5975 | else |
| 4344 | cat >> confdefs.h <<EOF | 5976 | echo "$as_me: failed program was:" >&5 |
| 4345 | #define $ac_tr_lib 1 | 5977 | cat conftest.$ac_ext >&5 |
| 5978 | ac_cv_lib_dnet_dnet_ntoa=no | ||
| 5979 | fi | ||
| 5980 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 5981 | LIBS=$ac_check_lib_save_LIBS | ||
| 5982 | fi | ||
| 5983 | echo "$as_me:5983: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
| 5984 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | ||
| 5985 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | ||
| 5986 | cat >>confdefs.h <<EOF | ||
| 5987 | #define HAVE_LIBDNET 1 | ||
| 4346 | EOF | 5988 | EOF |
| 4347 | 5989 | ||
| 4348 | LIBS="-ldnet $LIBS" | 5990 | LIBS="-ldnet $LIBS" |
| 4349 | 5991 | ||
| 4350 | else | ||
| 4351 | echo "$ac_t""no" 1>&6 | ||
| 4352 | fi | 5992 | fi |
| 4353 | 5993 | ||
| 4354 | 5994 | echo "$as_me:5994: checking for main in -lXbsd" >&5 | |
| 4355 | echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 5995 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
| 4356 | echo "configure:4357: checking for main in -lXbsd" >&5 | 5996 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then |
| 4357 | ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 5997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4358 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 4359 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4360 | else | 5998 | else |
| 4361 | ac_save_LIBS="$LIBS" | 5999 | ac_check_lib_save_LIBS=$LIBS |
| 4362 | LIBS="-lXbsd $LIBS" | 6000 | LIBS="-lXbsd $LIBS" |
| 4363 | cat > conftest.$ac_ext <<EOF | 6001 | cat >conftest.$ac_ext <<_ACEOF |
| 4364 | #line 4365 "configure" | 6002 | #line 6002 "configure" |
| 4365 | #include "confdefs.h" | 6003 | #include "confdefs.h" |
| 4366 | 6004 | ||
| 4367 | int main() { | 6005 | int |
| 4368 | main() | 6006 | main () |
| 4369 | ; return 0; } | 6007 | { |
| 4370 | EOF | 6008 | main (); |
| 4371 | if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6009 | ; |
| 4372 | rm -rf conftest* | 6010 | return 0; |
| 4373 | eval "ac_cv_lib_$ac_lib_var=yes" | 6011 | } |
| 4374 | else | 6012 | _ACEOF |
| 4375 | echo "configure: failed program was:" >&5 | 6013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4376 | cat conftest.$ac_ext >&5 | 6014 | if { (eval echo "$as_me:6014: \"$ac_link\"") >&5 |
| 4377 | rm -rf conftest* | 6015 | (eval $ac_link) 2>&5 |
| 4378 | eval "ac_cv_lib_$ac_lib_var=no" | 6016 | ac_status=$? |
| 4379 | fi | 6017 | echo "$as_me:6017: \$? = $ac_status" >&5 |
| 4380 | rm -f conftest* | 6018 | (exit $ac_status); } && |
| 4381 | LIBS="$ac_save_LIBS" | 6019 | { ac_try='test -s conftest$ac_exeext' |
| 4382 | 6020 | { (eval echo "$as_me:6020: \"$ac_try\"") >&5 | |
| 4383 | fi | 6021 | (eval $ac_try) 2>&5 |
| 4384 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6022 | ac_status=$? |
| 4385 | echo "$ac_t""yes" 1>&6 | 6023 | echo "$as_me:6023: \$? = $ac_status" >&5 |
| 6024 | (exit $ac_status); }; }; then | ||
| 6025 | ac_cv_lib_Xbsd_main=yes | ||
| 6026 | else | ||
| 6027 | echo "$as_me: failed program was:" >&5 | ||
| 6028 | cat conftest.$ac_ext >&5 | ||
| 6029 | ac_cv_lib_Xbsd_main=no | ||
| 6030 | fi | ||
| 6031 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 6032 | LIBS=$ac_check_lib_save_LIBS | ||
| 6033 | fi | ||
| 6034 | echo "$as_me:6034: result: $ac_cv_lib_Xbsd_main" >&5 | ||
| 6035 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 | ||
| 6036 | if test $ac_cv_lib_Xbsd_main = yes; then | ||
| 4386 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | 6037 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
| 4387 | else | ||
| 4388 | echo "$ac_t""no" 1>&6 | ||
| 4389 | fi | 6038 | fi |
| 4390 | 6039 | ||
| 4391 | 6040 | echo "$as_me:6040: checking for cma_open in -lpthreads" >&5 | |
| 4392 | echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | 6041 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
| 4393 | echo "configure:4394: checking for cma_open in -lpthreads" >&5 | 6042 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then |
| 4394 | ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | 6043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4395 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 4396 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4397 | else | 6044 | else |
| 4398 | ac_save_LIBS="$LIBS" | 6045 | ac_check_lib_save_LIBS=$LIBS |
| 4399 | LIBS="-lpthreads $LIBS" | 6046 | LIBS="-lpthreads $LIBS" |
| 4400 | cat > conftest.$ac_ext <<EOF | 6047 | cat >conftest.$ac_ext <<_ACEOF |
| 4401 | #line 4402 "configure" | 6048 | #line 6048 "configure" |
| 4402 | #include "confdefs.h" | 6049 | #include "confdefs.h" |
| 6050 | |||
| 4403 | /* Override any gcc2 internal prototype to avoid an error. */ | 6051 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6052 | #ifdef __cplusplus | ||
| 6053 | extern "C" | ||
| 6054 | #endif | ||
| 4404 | /* We use char because int might match the return type of a gcc2 | 6055 | /* We use char because int might match the return type of a gcc2 |
| 4405 | builtin and then its argument prototype would still apply. */ | 6056 | builtin and then its argument prototype would still apply. */ |
| 4406 | char cma_open(); | 6057 | char cma_open (); |
| 4407 | 6058 | int | |
| 4408 | int main() { | 6059 | main () |
| 4409 | cma_open() | 6060 | { |
| 4410 | ; return 0; } | 6061 | cma_open (); |
| 4411 | EOF | 6062 | ; |
| 4412 | if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6063 | return 0; |
| 4413 | rm -rf conftest* | 6064 | } |
| 4414 | eval "ac_cv_lib_$ac_lib_var=yes" | 6065 | _ACEOF |
| 4415 | else | 6066 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4416 | echo "configure: failed program was:" >&5 | 6067 | if { (eval echo "$as_me:6067: \"$ac_link\"") >&5 |
| 4417 | cat conftest.$ac_ext >&5 | 6068 | (eval $ac_link) 2>&5 |
| 4418 | rm -rf conftest* | 6069 | ac_status=$? |
| 4419 | eval "ac_cv_lib_$ac_lib_var=no" | 6070 | echo "$as_me:6070: \$? = $ac_status" >&5 |
| 4420 | fi | 6071 | (exit $ac_status); } && |
| 4421 | rm -f conftest* | 6072 | { ac_try='test -s conftest$ac_exeext' |
| 4422 | LIBS="$ac_save_LIBS" | 6073 | { (eval echo "$as_me:6073: \"$ac_try\"") >&5 |
| 4423 | 6074 | (eval $ac_try) 2>&5 | |
| 4424 | fi | 6075 | ac_status=$? |
| 4425 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6076 | echo "$as_me:6076: \$? = $ac_status" >&5 |
| 4426 | echo "$ac_t""yes" 1>&6 | 6077 | (exit $ac_status); }; }; then |
| 4427 | ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 6078 | ac_cv_lib_pthreads_cma_open=yes |
| 4428 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 6079 | else |
| 4429 | cat >> confdefs.h <<EOF | 6080 | echo "$as_me: failed program was:" >&5 |
| 4430 | #define $ac_tr_lib 1 | 6081 | cat conftest.$ac_ext >&5 |
| 6082 | ac_cv_lib_pthreads_cma_open=no | ||
| 6083 | fi | ||
| 6084 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 6085 | LIBS=$ac_check_lib_save_LIBS | ||
| 6086 | fi | ||
| 6087 | echo "$as_me:6087: result: $ac_cv_lib_pthreads_cma_open" >&5 | ||
| 6088 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 | ||
| 6089 | if test $ac_cv_lib_pthreads_cma_open = yes; then | ||
| 6090 | cat >>confdefs.h <<EOF | ||
| 6091 | #define HAVE_LIBPTHREADS 1 | ||
| 4431 | EOF | 6092 | EOF |
| 4432 | 6093 | ||
| 4433 | LIBS="-lpthreads $LIBS" | 6094 | LIBS="-lpthreads $LIBS" |
| 4434 | 6095 | ||
| 4435 | else | ||
| 4436 | echo "$ac_t""no" 1>&6 | ||
| 4437 | fi | 6096 | fi |
| 4438 | 6097 | ||
| 4439 | 6098 | echo "$as_me:6098: checking for XFree86 in /usr/X386" >&5 | |
| 4440 | echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | 6099 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
| 4441 | echo "configure:4442: checking for XFree86 in /usr/X386" >&5 | ||
| 4442 | if test -d /usr/X386/include; then | 6100 | if test -d /usr/X386/include; then |
| 4443 | HAVE_XFREE386=yes | 6101 | HAVE_XFREE386=yes |
| 4444 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | 6102 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
| 4445 | else | 6103 | else |
| 4446 | HAVE_XFREE386=no | 6104 | HAVE_XFREE386=no |
| 4447 | fi | 6105 | fi |
| 4448 | echo "$ac_t""$HAVE_XFREE386" 1>&6 | 6106 | echo "$as_me:6106: result: $HAVE_XFREE386" >&5 |
| 6107 | echo "${ECHO_T}$HAVE_XFREE386" >&6 | ||
| 4449 | 6108 | ||
| 4450 | # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | 6109 | # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used |
| 4451 | # for the tests that follow. We set it back to REAL_CFLAGS later on. | 6110 | # for the tests that follow. We set it back to REAL_CFLAGS later on. |
| @@ -4469,26 +6128,39 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 4469 | fi | 6128 | fi |
| 4470 | 6129 | ||
| 4471 | if test "${opsys}" = "gnu-linux"; then | 6130 | if test "${opsys}" = "gnu-linux"; then |
| 4472 | echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | 6131 | echo "$as_me:6131: checking whether X on GNU/Linux needs -b to link" >&5 |
| 4473 | echo "configure:4474: checking whether X on GNU/Linux needs -b to link" >&5 | 6132 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
| 4474 | cat > conftest.$ac_ext <<EOF | 6133 | cat >conftest.$ac_ext <<_ACEOF |
| 4475 | #line 4476 "configure" | 6134 | #line 6134 "configure" |
| 4476 | #include "confdefs.h" | 6135 | #include "confdefs.h" |
| 4477 | 6136 | ||
| 4478 | int main() { | 6137 | int |
| 6138 | main () | ||
| 6139 | { | ||
| 4479 | XOpenDisplay ("foo"); | 6140 | XOpenDisplay ("foo"); |
| 4480 | ; return 0; } | 6141 | ; |
| 4481 | EOF | 6142 | return 0; |
| 4482 | if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6143 | } |
| 4483 | rm -rf conftest* | 6144 | _ACEOF |
| 6145 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6146 | if { (eval echo "$as_me:6146: \"$ac_link\"") >&5 | ||
| 6147 | (eval $ac_link) 2>&5 | ||
| 6148 | ac_status=$? | ||
| 6149 | echo "$as_me:6149: \$? = $ac_status" >&5 | ||
| 6150 | (exit $ac_status); } && | ||
| 6151 | { ac_try='test -s conftest$ac_exeext' | ||
| 6152 | { (eval echo "$as_me:6152: \"$ac_try\"") >&5 | ||
| 6153 | (eval $ac_try) 2>&5 | ||
| 6154 | ac_status=$? | ||
| 6155 | echo "$as_me:6155: \$? = $ac_status" >&5 | ||
| 6156 | (exit $ac_status); }; }; then | ||
| 4484 | xlinux_first_failure=no | 6157 | xlinux_first_failure=no |
| 4485 | else | 6158 | else |
| 4486 | echo "configure: failed program was:" >&5 | 6159 | echo "$as_me: failed program was:" >&5 |
| 4487 | cat conftest.$ac_ext >&5 | 6160 | cat conftest.$ac_ext >&5 |
| 4488 | rm -rf conftest* | 6161 | xlinux_first_failure=yes |
| 4489 | xlinux_first_failure=yes | ||
| 4490 | fi | 6162 | fi |
| 4491 | rm -f conftest* | 6163 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4492 | if test "${xlinux_first_failure}" = "yes"; then | 6164 | if test "${xlinux_first_failure}" = "yes"; then |
| 4493 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | 6165 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" |
| 4494 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | 6166 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" |
| @@ -4498,24 +6170,37 @@ rm -f conftest* | |||
| 4498 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 6170 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
| 4499 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 6171 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
| 4500 | LIBS="$LIBS -b i486-linuxaout" | 6172 | LIBS="$LIBS -b i486-linuxaout" |
| 4501 | cat > conftest.$ac_ext <<EOF | 6173 | cat >conftest.$ac_ext <<_ACEOF |
| 4502 | #line 4503 "configure" | 6174 | #line 6174 "configure" |
| 4503 | #include "confdefs.h" | 6175 | #include "confdefs.h" |
| 4504 | 6176 | ||
| 4505 | int main() { | 6177 | int |
| 6178 | main () | ||
| 6179 | { | ||
| 4506 | XOpenDisplay ("foo"); | 6180 | XOpenDisplay ("foo"); |
| 4507 | ; return 0; } | 6181 | ; |
| 4508 | EOF | 6182 | return 0; |
| 4509 | if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6183 | } |
| 4510 | rm -rf conftest* | 6184 | _ACEOF |
| 6185 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6186 | if { (eval echo "$as_me:6186: \"$ac_link\"") >&5 | ||
| 6187 | (eval $ac_link) 2>&5 | ||
| 6188 | ac_status=$? | ||
| 6189 | echo "$as_me:6189: \$? = $ac_status" >&5 | ||
| 6190 | (exit $ac_status); } && | ||
| 6191 | { ac_try='test -s conftest$ac_exeext' | ||
| 6192 | { (eval echo "$as_me:6192: \"$ac_try\"") >&5 | ||
| 6193 | (eval $ac_try) 2>&5 | ||
| 6194 | ac_status=$? | ||
| 6195 | echo "$as_me:6195: \$? = $ac_status" >&5 | ||
| 6196 | (exit $ac_status); }; }; then | ||
| 4511 | xlinux_second_failure=no | 6197 | xlinux_second_failure=no |
| 4512 | else | 6198 | else |
| 4513 | echo "configure: failed program was:" >&5 | 6199 | echo "$as_me: failed program was:" >&5 |
| 4514 | cat conftest.$ac_ext >&5 | 6200 | cat conftest.$ac_ext >&5 |
| 4515 | rm -rf conftest* | 6201 | xlinux_second_failure=yes |
| 4516 | xlinux_second_failure=yes | ||
| 4517 | fi | 6202 | fi |
| 4518 | rm -f conftest* | 6203 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4519 | if test "${xlinux_second_failure}" = "yes"; then | 6204 | if test "${xlinux_second_failure}" = "yes"; then |
| 4520 | # If we get the same failure with -b, there is no use adding -b. | 6205 | # If we get the same failure with -b, there is no use adding -b. |
| 4521 | # So take it out. This plays safe. | 6206 | # So take it out. This plays safe. |
| @@ -4523,220 +6208,296 @@ rm -f conftest* | |||
| 4523 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | 6208 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" |
| 4524 | CPPFLAGS="$OLD_CPPFLAGS" | 6209 | CPPFLAGS="$OLD_CPPFLAGS" |
| 4525 | LIBS="$OLD_LIBS" | 6210 | LIBS="$OLD_LIBS" |
| 4526 | echo "$ac_t""no" 1>&6 | 6211 | echo "$as_me:6211: result: no" >&5 |
| 6212 | echo "${ECHO_T}no" >&6 | ||
| 4527 | else | 6213 | else |
| 4528 | echo "$ac_t""yes" 1>&6 | 6214 | echo "$as_me:6214: result: yes" >&5 |
| 6215 | echo "${ECHO_T}yes" >&6 | ||
| 4529 | fi | 6216 | fi |
| 4530 | else | 6217 | else |
| 4531 | echo "$ac_t""no" 1>&6 | 6218 | echo "$as_me:6218: result: no" >&5 |
| 6219 | echo "${ECHO_T}no" >&6 | ||
| 4532 | fi | 6220 | fi |
| 4533 | fi | 6221 | fi |
| 4534 | 6222 | ||
| 4535 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | 6223 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
| 4536 | # header files included from there. | 6224 | # header files included from there. |
| 4537 | echo $ac_n "checking for Xkb""... $ac_c" 1>&6 | 6225 | echo "$as_me:6225: checking for Xkb" >&5 |
| 4538 | echo "configure:4539: checking for Xkb" >&5 | 6226 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
| 4539 | cat > conftest.$ac_ext <<EOF | 6227 | cat >conftest.$ac_ext <<_ACEOF |
| 4540 | #line 4541 "configure" | 6228 | #line 6228 "configure" |
| 4541 | #include "confdefs.h" | 6229 | #include "confdefs.h" |
| 4542 | #include <X11/Xlib.h> | 6230 | #include <X11/Xlib.h> |
| 4543 | #include <X11/XKBlib.h> | 6231 | #include <X11/XKBlib.h> |
| 4544 | int main() { | 6232 | int |
| 6233 | main () | ||
| 6234 | { | ||
| 4545 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | 6235 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
| 4546 | ; return 0; } | 6236 | ; |
| 4547 | EOF | 6237 | return 0; |
| 4548 | if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6238 | } |
| 4549 | rm -rf conftest* | 6239 | _ACEOF |
| 6240 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6241 | if { (eval echo "$as_me:6241: \"$ac_link\"") >&5 | ||
| 6242 | (eval $ac_link) 2>&5 | ||
| 6243 | ac_status=$? | ||
| 6244 | echo "$as_me:6244: \$? = $ac_status" >&5 | ||
| 6245 | (exit $ac_status); } && | ||
| 6246 | { ac_try='test -s conftest$ac_exeext' | ||
| 6247 | { (eval echo "$as_me:6247: \"$ac_try\"") >&5 | ||
| 6248 | (eval $ac_try) 2>&5 | ||
| 6249 | ac_status=$? | ||
| 6250 | echo "$as_me:6250: \$? = $ac_status" >&5 | ||
| 6251 | (exit $ac_status); }; }; then | ||
| 4550 | emacs_xkb=yes | 6252 | emacs_xkb=yes |
| 4551 | else | 6253 | else |
| 4552 | echo "configure: failed program was:" >&5 | 6254 | echo "$as_me: failed program was:" >&5 |
| 4553 | cat conftest.$ac_ext >&5 | 6255 | cat conftest.$ac_ext >&5 |
| 4554 | rm -rf conftest* | 6256 | emacs_xkb=no |
| 4555 | emacs_xkb=no | ||
| 4556 | fi | 6257 | fi |
| 4557 | rm -f conftest* | 6258 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4558 | echo "$ac_t""$emacs_xkb" 1>&6 | 6259 | echo "$as_me:6259: result: $emacs_xkb" >&5 |
| 6260 | echo "${ECHO_T}$emacs_xkb" >&6 | ||
| 4559 | if test $emacs_xkb = yes; then | 6261 | if test $emacs_xkb = yes; then |
| 4560 | cat >> confdefs.h <<\EOF | 6262 | cat >>confdefs.h <<\EOF |
| 4561 | #define HAVE_XKBGETKEYBOARD 1 | 6263 | #define HAVE_XKBGETKEYBOARD 1 |
| 4562 | EOF | 6264 | EOF |
| 4563 | 6265 | ||
| 4564 | fi | 6266 | fi |
| 4565 | 6267 | ||
| 4566 | for ac_func in XrmSetDatabase XScreenResourceString \ | 6268 | for ac_func in XrmSetDatabase XScreenResourceString \ |
| 4567 | XScreenNumberOfScreen XSetWMProtocols | 6269 | XScreenNumberOfScreen XSetWMProtocols |
| 4568 | do | 6270 | do |
| 4569 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4570 | echo "configure:4571: checking for $ac_func" >&5 | 6272 | echo "$as_me:6272: checking for $ac_func" >&5 |
| 4571 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4572 | echo $ac_n "(cached) $ac_c" 1>&6 | 6274 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 4573 | else | 6276 | else |
| 4574 | cat > conftest.$ac_ext <<EOF | 6277 | cat >conftest.$ac_ext <<_ACEOF |
| 4575 | #line 4576 "configure" | 6278 | #line 6278 "configure" |
| 4576 | #include "confdefs.h" | 6279 | #include "confdefs.h" |
| 4577 | /* System header to define __stub macros and hopefully few prototypes, | 6280 | /* System header to define __stub macros and hopefully few prototypes, |
| 4578 | which can conflict with char $ac_func(); below. */ | 6281 | which can conflict with char $ac_func (); below. */ |
| 4579 | #include <assert.h> | 6282 | #include <assert.h> |
| 4580 | /* Override any gcc2 internal prototype to avoid an error. */ | 6283 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6284 | #ifdef __cplusplus | ||
| 6285 | extern "C" | ||
| 6286 | #endif | ||
| 4581 | /* We use char because int might match the return type of a gcc2 | 6287 | /* We use char because int might match the return type of a gcc2 |
| 4582 | builtin and then its argument prototype would still apply. */ | 6288 | builtin and then its argument prototype would still apply. */ |
| 4583 | char $ac_func(); | 6289 | char $ac_func (); |
| 4584 | 6290 | char (*f) (); | |
| 4585 | int main() { | ||
| 4586 | 6291 | ||
| 6292 | int | ||
| 6293 | main () | ||
| 6294 | { | ||
| 4587 | /* The GNU C library defines this for functions which it implements | 6295 | /* The GNU C library defines this for functions which it implements |
| 4588 | to always fail with ENOSYS. Some functions are actually named | 6296 | to always fail with ENOSYS. Some functions are actually named |
| 4589 | something starting with __ and the normal name is an alias. */ | 6297 | something starting with __ and the normal name is an alias. */ |
| 4590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 6298 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4591 | choke me | 6299 | choke me |
| 4592 | #else | 6300 | #else |
| 4593 | $ac_func(); | 6301 | f = $ac_func; |
| 4594 | #endif | 6302 | #endif |
| 4595 | 6303 | ||
| 4596 | ; return 0; } | 6304 | ; |
| 6305 | return 0; | ||
| 6306 | } | ||
| 6307 | _ACEOF | ||
| 6308 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6309 | if { (eval echo "$as_me:6309: \"$ac_link\"") >&5 | ||
| 6310 | (eval $ac_link) 2>&5 | ||
| 6311 | ac_status=$? | ||
| 6312 | echo "$as_me:6312: \$? = $ac_status" >&5 | ||
| 6313 | (exit $ac_status); } && | ||
| 6314 | { ac_try='test -s conftest$ac_exeext' | ||
| 6315 | { (eval echo "$as_me:6315: \"$ac_try\"") >&5 | ||
| 6316 | (eval $ac_try) 2>&5 | ||
| 6317 | ac_status=$? | ||
| 6318 | echo "$as_me:6318: \$? = $ac_status" >&5 | ||
| 6319 | (exit $ac_status); }; }; then | ||
| 6320 | eval "$as_ac_var=yes" | ||
| 6321 | else | ||
| 6322 | echo "$as_me: failed program was:" >&5 | ||
| 6323 | cat conftest.$ac_ext >&5 | ||
| 6324 | eval "$as_ac_var=no" | ||
| 6325 | fi | ||
| 6326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 6327 | fi | ||
| 6328 | echo "$as_me:6328: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 6329 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 6330 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 6331 | cat >>confdefs.h <<EOF | ||
| 6332 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 4597 | EOF | 6333 | EOF |
| 4598 | if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4599 | rm -rf conftest* | ||
| 4600 | eval "ac_cv_func_$ac_func=yes" | ||
| 4601 | else | ||
| 4602 | echo "configure: failed program was:" >&5 | ||
| 4603 | cat conftest.$ac_ext >&5 | ||
| 4604 | rm -rf conftest* | ||
| 4605 | eval "ac_cv_func_$ac_func=no" | ||
| 4606 | fi | ||
| 4607 | rm -f conftest* | ||
| 4608 | fi | ||
| 4609 | 6334 | ||
| 4610 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 4611 | echo "$ac_t""yes" 1>&6 | ||
| 4612 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 4613 | cat >> confdefs.h <<EOF | ||
| 4614 | #define $ac_tr_func 1 | ||
| 4615 | EOF | ||
| 4616 | |||
| 4617 | else | ||
| 4618 | echo "$ac_t""no" 1>&6 | ||
| 4619 | fi | 6335 | fi |
| 4620 | done | 6336 | done |
| 4621 | 6337 | ||
| 4622 | fi | 6338 | fi |
| 4623 | 6339 | ||
| 4624 | if test "${window_system}" = "x11"; then | 6340 | if test "${window_system}" = "x11"; then |
| 4625 | echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 6341 | echo "$as_me:6341: checking X11 version 6" >&5 |
| 4626 | echo "configure:4627: checking X11 version 6" >&5 | 6342 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
| 4627 | if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 6343 | if test "${emacs_cv_x11_version_6+set}" = set; then |
| 4628 | echo $ac_n "(cached) $ac_c" 1>&6 | 6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4629 | else | 6345 | else |
| 4630 | cat > conftest.$ac_ext <<EOF | 6346 | cat >conftest.$ac_ext <<_ACEOF |
| 4631 | #line 4632 "configure" | 6347 | #line 6347 "configure" |
| 4632 | #include "confdefs.h" | 6348 | #include "confdefs.h" |
| 4633 | #include <X11/Xlib.h> | 6349 | #include <X11/Xlib.h> |
| 4634 | int main() { | 6350 | int |
| 6351 | main () | ||
| 6352 | { | ||
| 4635 | #if XlibSpecificationRelease < 6 | 6353 | #if XlibSpecificationRelease < 6 |
| 4636 | fail; | 6354 | fail; |
| 4637 | #endif | 6355 | #endif |
| 4638 | 6356 | ||
| 4639 | ; return 0; } | 6357 | ; |
| 4640 | EOF | 6358 | return 0; |
| 4641 | if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6359 | } |
| 4642 | rm -rf conftest* | 6360 | _ACEOF |
| 6361 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6362 | if { (eval echo "$as_me:6362: \"$ac_link\"") >&5 | ||
| 6363 | (eval $ac_link) 2>&5 | ||
| 6364 | ac_status=$? | ||
| 6365 | echo "$as_me:6365: \$? = $ac_status" >&5 | ||
| 6366 | (exit $ac_status); } && | ||
| 6367 | { ac_try='test -s conftest$ac_exeext' | ||
| 6368 | { (eval echo "$as_me:6368: \"$ac_try\"") >&5 | ||
| 6369 | (eval $ac_try) 2>&5 | ||
| 6370 | ac_status=$? | ||
| 6371 | echo "$as_me:6371: \$? = $ac_status" >&5 | ||
| 6372 | (exit $ac_status); }; }; then | ||
| 4643 | emacs_cv_x11_version_6=yes | 6373 | emacs_cv_x11_version_6=yes |
| 4644 | else | 6374 | else |
| 4645 | echo "configure: failed program was:" >&5 | 6375 | echo "$as_me: failed program was:" >&5 |
| 4646 | cat conftest.$ac_ext >&5 | 6376 | cat conftest.$ac_ext >&5 |
| 4647 | rm -rf conftest* | 6377 | emacs_cv_x11_version_6=no |
| 4648 | emacs_cv_x11_version_6=no | ||
| 4649 | fi | 6378 | fi |
| 4650 | rm -f conftest* | 6379 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4651 | fi | 6380 | fi |
| 4652 | 6381 | ||
| 4653 | if test $emacs_cv_x11_version_6 = yes; then | 6382 | if test $emacs_cv_x11_version_6 = yes; then |
| 4654 | echo "$ac_t""6 or newer" 1>&6 | 6383 | echo "$as_me:6383: result: 6 or newer" >&5 |
| 4655 | cat >> confdefs.h <<\EOF | 6384 | echo "${ECHO_T}6 or newer" >&6 |
| 6385 | cat >>confdefs.h <<\EOF | ||
| 4656 | #define HAVE_X11R6 1 | 6386 | #define HAVE_X11R6 1 |
| 4657 | EOF | 6387 | EOF |
| 4658 | 6388 | ||
| 4659 | else | 6389 | else |
| 4660 | echo "$ac_t""before 6" 1>&6 | 6390 | echo "$as_me:6390: result: before 6" >&5 |
| 6391 | echo "${ECHO_T}before 6" >&6 | ||
| 4661 | fi | 6392 | fi |
| 4662 | fi | 6393 | fi |
| 4663 | 6394 | ||
| 4664 | if test "${window_system}" = "x11"; then | 6395 | if test "${window_system}" = "x11"; then |
| 4665 | echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 6396 | echo "$as_me:6396: checking X11 version 5" >&5 |
| 4666 | echo "configure:4667: checking X11 version 5" >&5 | 6397 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
| 4667 | if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 6398 | if test "${emacs_cv_x11_version_5+set}" = set; then |
| 4668 | echo $ac_n "(cached) $ac_c" 1>&6 | 6399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4669 | else | 6400 | else |
| 4670 | cat > conftest.$ac_ext <<EOF | 6401 | cat >conftest.$ac_ext <<_ACEOF |
| 4671 | #line 4672 "configure" | 6402 | #line 6402 "configure" |
| 4672 | #include "confdefs.h" | 6403 | #include "confdefs.h" |
| 4673 | #include <X11/Xlib.h> | 6404 | #include <X11/Xlib.h> |
| 4674 | int main() { | 6405 | int |
| 6406 | main () | ||
| 6407 | { | ||
| 4675 | #if XlibSpecificationRelease < 5 | 6408 | #if XlibSpecificationRelease < 5 |
| 4676 | fail; | 6409 | fail; |
| 4677 | #endif | 6410 | #endif |
| 4678 | 6411 | ||
| 4679 | ; return 0; } | 6412 | ; |
| 4680 | EOF | 6413 | return 0; |
| 4681 | if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6414 | } |
| 4682 | rm -rf conftest* | 6415 | _ACEOF |
| 6416 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6417 | if { (eval echo "$as_me:6417: \"$ac_link\"") >&5 | ||
| 6418 | (eval $ac_link) 2>&5 | ||
| 6419 | ac_status=$? | ||
| 6420 | echo "$as_me:6420: \$? = $ac_status" >&5 | ||
| 6421 | (exit $ac_status); } && | ||
| 6422 | { ac_try='test -s conftest$ac_exeext' | ||
| 6423 | { (eval echo "$as_me:6423: \"$ac_try\"") >&5 | ||
| 6424 | (eval $ac_try) 2>&5 | ||
| 6425 | ac_status=$? | ||
| 6426 | echo "$as_me:6426: \$? = $ac_status" >&5 | ||
| 6427 | (exit $ac_status); }; }; then | ||
| 4683 | emacs_cv_x11_version_5=yes | 6428 | emacs_cv_x11_version_5=yes |
| 4684 | else | 6429 | else |
| 4685 | echo "configure: failed program was:" >&5 | 6430 | echo "$as_me: failed program was:" >&5 |
| 4686 | cat conftest.$ac_ext >&5 | 6431 | cat conftest.$ac_ext >&5 |
| 4687 | rm -rf conftest* | 6432 | emacs_cv_x11_version_5=no |
| 4688 | emacs_cv_x11_version_5=no | ||
| 4689 | fi | 6433 | fi |
| 4690 | rm -f conftest* | 6434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4691 | fi | 6435 | fi |
| 4692 | 6436 | ||
| 4693 | if test $emacs_cv_x11_version_5 = yes; then | 6437 | if test $emacs_cv_x11_version_5 = yes; then |
| 4694 | echo "$ac_t""5 or newer" 1>&6 | 6438 | echo "$as_me:6438: result: 5 or newer" >&5 |
| 6439 | echo "${ECHO_T}5 or newer" >&6 | ||
| 4695 | HAVE_X11R5=yes | 6440 | HAVE_X11R5=yes |
| 4696 | cat >> confdefs.h <<\EOF | 6441 | cat >>confdefs.h <<\EOF |
| 4697 | #define HAVE_X11R5 1 | 6442 | #define HAVE_X11R5 1 |
| 4698 | EOF | 6443 | EOF |
| 4699 | 6444 | ||
| 4700 | else | 6445 | else |
| 4701 | HAVE_X11R5=no | 6446 | HAVE_X11R5=no |
| 4702 | echo "$ac_t""before 5" 1>&6 | 6447 | echo "$as_me:6447: result: before 5" >&5 |
| 6448 | echo "${ECHO_T}before 5" >&6 | ||
| 4703 | fi | 6449 | fi |
| 4704 | fi | 6450 | fi |
| 4705 | 6451 | ||
| 4706 | if test x"${USE_X_TOOLKIT}" = xmaybe; then | 6452 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
| 4707 | if test x"${HAVE_X11R5}" = xyes; then | 6453 | if test x"${HAVE_X11R5}" = xyes; then |
| 4708 | echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 6454 | echo "$as_me:6454: checking X11 version 5 with Xaw" >&5 |
| 4709 | echo "configure:4710: checking X11 version 5 with Xaw" >&5 | 6455 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
| 4710 | if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 6456 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then |
| 4711 | echo $ac_n "(cached) $ac_c" 1>&6 | 6457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4712 | else | 6458 | else |
| 4713 | cat > conftest.$ac_ext <<EOF | 6459 | cat >conftest.$ac_ext <<_ACEOF |
| 4714 | #line 4715 "configure" | 6460 | #line 6460 "configure" |
| 4715 | #include "confdefs.h" | 6461 | #include "confdefs.h" |
| 4716 | 6462 | ||
| 4717 | #include <X11/Intrinsic.h> | 6463 | #include <X11/Intrinsic.h> |
| 4718 | #include <X11/Xaw/Simple.h> | 6464 | #include <X11/Xaw/Simple.h> |
| 4719 | int main() { | 6465 | int |
| 6466 | main () | ||
| 6467 | { | ||
| 4720 | 6468 | ||
| 4721 | ; return 0; } | 6469 | ; |
| 4722 | EOF | 6470 | return 0; |
| 4723 | if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6471 | } |
| 4724 | rm -rf conftest* | 6472 | _ACEOF |
| 6473 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6474 | if { (eval echo "$as_me:6474: \"$ac_link\"") >&5 | ||
| 6475 | (eval $ac_link) 2>&5 | ||
| 6476 | ac_status=$? | ||
| 6477 | echo "$as_me:6477: \$? = $ac_status" >&5 | ||
| 6478 | (exit $ac_status); } && | ||
| 6479 | { ac_try='test -s conftest$ac_exeext' | ||
| 6480 | { (eval echo "$as_me:6480: \"$ac_try\"") >&5 | ||
| 6481 | (eval $ac_try) 2>&5 | ||
| 6482 | ac_status=$? | ||
| 6483 | echo "$as_me:6483: \$? = $ac_status" >&5 | ||
| 6484 | (exit $ac_status); }; }; then | ||
| 4725 | emacs_cv_x11_version_5_with_xaw=yes | 6485 | emacs_cv_x11_version_5_with_xaw=yes |
| 4726 | else | 6486 | else |
| 4727 | echo "configure: failed program was:" >&5 | 6487 | echo "$as_me: failed program was:" >&5 |
| 4728 | cat conftest.$ac_ext >&5 | 6488 | cat conftest.$ac_ext >&5 |
| 4729 | rm -rf conftest* | 6489 | emacs_cv_x11_version_5_with_xaw=no |
| 4730 | emacs_cv_x11_version_5_with_xaw=no | ||
| 4731 | fi | 6490 | fi |
| 4732 | rm -f conftest* | 6491 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4733 | fi | 6492 | fi |
| 4734 | 6493 | ||
| 4735 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | 6494 | if test $emacs_cv_x11_version_5_with_xaw = yes; then |
| 4736 | echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 | 6495 | echo "$as_me:6495: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
| 6496 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 | ||
| 4737 | USE_X_TOOLKIT=LUCID | 6497 | USE_X_TOOLKIT=LUCID |
| 4738 | else | 6498 | else |
| 4739 | echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 | 6499 | echo "$as_me:6499: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
| 6500 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 | ||
| 4740 | USE_X_TOOLKIT=none | 6501 | USE_X_TOOLKIT=none |
| 4741 | fi | 6502 | fi |
| 4742 | else | 6503 | else |
| @@ -4747,43 +6508,58 @@ fi | |||
| 4747 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 6508 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
| 4748 | 6509 | ||
| 4749 | if test "${USE_X_TOOLKIT}" != "none"; then | 6510 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 4750 | echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 6511 | echo "$as_me:6511: checking X11 toolkit version" >&5 |
| 4751 | echo "configure:4752: checking X11 toolkit version" >&5 | 6512 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
| 4752 | if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 6513 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then |
| 4753 | echo $ac_n "(cached) $ac_c" 1>&6 | 6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4754 | else | 6515 | else |
| 4755 | cat > conftest.$ac_ext <<EOF | 6516 | cat >conftest.$ac_ext <<_ACEOF |
| 4756 | #line 4757 "configure" | 6517 | #line 6517 "configure" |
| 4757 | #include "confdefs.h" | 6518 | #include "confdefs.h" |
| 4758 | #include <X11/Intrinsic.h> | 6519 | #include <X11/Intrinsic.h> |
| 4759 | int main() { | 6520 | int |
| 6521 | main () | ||
| 6522 | { | ||
| 4760 | #if XtSpecificationRelease < 6 | 6523 | #if XtSpecificationRelease < 6 |
| 4761 | fail; | 6524 | fail; |
| 4762 | #endif | 6525 | #endif |
| 4763 | 6526 | ||
| 4764 | ; return 0; } | 6527 | ; |
| 4765 | EOF | 6528 | return 0; |
| 4766 | if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6529 | } |
| 4767 | rm -rf conftest* | 6530 | _ACEOF |
| 6531 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 6532 | if { (eval echo "$as_me:6532: \"$ac_link\"") >&5 | ||
| 6533 | (eval $ac_link) 2>&5 | ||
| 6534 | ac_status=$? | ||
| 6535 | echo "$as_me:6535: \$? = $ac_status" >&5 | ||
| 6536 | (exit $ac_status); } && | ||
| 6537 | { ac_try='test -s conftest$ac_exeext' | ||
| 6538 | { (eval echo "$as_me:6538: \"$ac_try\"") >&5 | ||
| 6539 | (eval $ac_try) 2>&5 | ||
| 6540 | ac_status=$? | ||
| 6541 | echo "$as_me:6541: \$? = $ac_status" >&5 | ||
| 6542 | (exit $ac_status); }; }; then | ||
| 4768 | emacs_cv_x11_toolkit_version_6=yes | 6543 | emacs_cv_x11_toolkit_version_6=yes |
| 4769 | else | 6544 | else |
| 4770 | echo "configure: failed program was:" >&5 | 6545 | echo "$as_me: failed program was:" >&5 |
| 4771 | cat conftest.$ac_ext >&5 | 6546 | cat conftest.$ac_ext >&5 |
| 4772 | rm -rf conftest* | 6547 | emacs_cv_x11_toolkit_version_6=no |
| 4773 | emacs_cv_x11_toolkit_version_6=no | ||
| 4774 | fi | 6548 | fi |
| 4775 | rm -f conftest* | 6549 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4776 | fi | 6550 | fi |
| 4777 | 6551 | ||
| 4778 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | 6552 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
| 4779 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | 6553 | if test $emacs_cv_x11_toolkit_version_6 = yes; then |
| 4780 | echo "$ac_t""6 or newer" 1>&6 | 6554 | echo "$as_me:6554: result: 6 or newer" >&5 |
| 4781 | cat >> confdefs.h <<\EOF | 6555 | echo "${ECHO_T}6 or newer" >&6 |
| 6556 | cat >>confdefs.h <<\EOF | ||
| 4782 | #define HAVE_X11XTR6 1 | 6557 | #define HAVE_X11XTR6 1 |
| 4783 | EOF | 6558 | EOF |
| 4784 | 6559 | ||
| 4785 | else | 6560 | else |
| 4786 | echo "$ac_t""before 6" 1>&6 | 6561 | echo "$as_me:6561: result: before 6" >&5 |
| 6562 | echo "${ECHO_T}before 6" >&6 | ||
| 4787 | fi | 6563 | fi |
| 4788 | 6564 | ||
| 4789 | OLDLIBS="$LIBS" | 6565 | OLDLIBS="$LIBS" |
| @@ -4792,51 +6568,63 @@ EOF | |||
| 4792 | else | 6568 | else |
| 4793 | LIBS="-lXt $LIBS" | 6569 | LIBS="-lXt $LIBS" |
| 4794 | fi | 6570 | fi |
| 4795 | echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 6571 | |
| 4796 | echo "configure:4797: checking for XmuConvertStandardSelection in -lXmu" >&5 | 6572 | echo "$as_me:6572: checking for XmuConvertStandardSelection in -lXmu" >&5 |
| 4797 | ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 6573 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
| 4798 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6574 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then |
| 4799 | echo $ac_n "(cached) $ac_c" 1>&6 | 6575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4800 | else | 6576 | else |
| 4801 | ac_save_LIBS="$LIBS" | 6577 | ac_check_lib_save_LIBS=$LIBS |
| 4802 | LIBS="-lXmu $LIBS" | 6578 | LIBS="-lXmu $LIBS" |
| 4803 | cat > conftest.$ac_ext <<EOF | 6579 | cat >conftest.$ac_ext <<_ACEOF |
| 4804 | #line 4805 "configure" | 6580 | #line 6580 "configure" |
| 4805 | #include "confdefs.h" | 6581 | #include "confdefs.h" |
| 6582 | |||
| 4806 | /* Override any gcc2 internal prototype to avoid an error. */ | 6583 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6584 | #ifdef __cplusplus | ||
| 6585 | extern "C" | ||
| 6586 | #endif | ||
| 4807 | /* We use char because int might match the return type of a gcc2 | 6587 | /* We use char because int might match the return type of a gcc2 |
| 4808 | builtin and then its argument prototype would still apply. */ | 6588 | builtin and then its argument prototype would still apply. */ |
| 4809 | char XmuConvertStandardSelection(); | 6589 | char XmuConvertStandardSelection (); |
| 4810 | 6590 | int | |
| 4811 | int main() { | 6591 | main () |
| 4812 | XmuConvertStandardSelection() | 6592 | { |
| 4813 | ; return 0; } | 6593 | XmuConvertStandardSelection (); |
| 4814 | EOF | 6594 | ; |
| 4815 | if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6595 | return 0; |
| 4816 | rm -rf conftest* | 6596 | } |
| 4817 | eval "ac_cv_lib_$ac_lib_var=yes" | 6597 | _ACEOF |
| 4818 | else | 6598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4819 | echo "configure: failed program was:" >&5 | 6599 | if { (eval echo "$as_me:6599: \"$ac_link\"") >&5 |
| 4820 | cat conftest.$ac_ext >&5 | 6600 | (eval $ac_link) 2>&5 |
| 4821 | rm -rf conftest* | 6601 | ac_status=$? |
| 4822 | eval "ac_cv_lib_$ac_lib_var=no" | 6602 | echo "$as_me:6602: \$? = $ac_status" >&5 |
| 4823 | fi | 6603 | (exit $ac_status); } && |
| 4824 | rm -f conftest* | 6604 | { ac_try='test -s conftest$ac_exeext' |
| 4825 | LIBS="$ac_save_LIBS" | 6605 | { (eval echo "$as_me:6605: \"$ac_try\"") >&5 |
| 4826 | 6606 | (eval $ac_try) 2>&5 | |
| 4827 | fi | 6607 | ac_status=$? |
| 4828 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6608 | echo "$as_me:6608: \$? = $ac_status" >&5 |
| 4829 | echo "$ac_t""yes" 1>&6 | 6609 | (exit $ac_status); }; }; then |
| 4830 | ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 6610 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
| 4831 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 6611 | else |
| 4832 | cat >> confdefs.h <<EOF | 6612 | echo "$as_me: failed program was:" >&5 |
| 4833 | #define $ac_tr_lib 1 | 6613 | cat conftest.$ac_ext >&5 |
| 6614 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no | ||
| 6615 | fi | ||
| 6616 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 6617 | LIBS=$ac_check_lib_save_LIBS | ||
| 6618 | fi | ||
| 6619 | echo "$as_me:6619: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 | ||
| 6620 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 | ||
| 6621 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | ||
| 6622 | cat >>confdefs.h <<EOF | ||
| 6623 | #define HAVE_LIBXMU 1 | ||
| 4834 | EOF | 6624 | EOF |
| 4835 | 6625 | ||
| 4836 | LIBS="-lXmu $LIBS" | 6626 | LIBS="-lXmu $LIBS" |
| 4837 | 6627 | ||
| 4838 | else | ||
| 4839 | echo "$ac_t""no" 1>&6 | ||
| 4840 | fi | 6628 | fi |
| 4841 | 6629 | ||
| 4842 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | 6630 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
| @@ -4845,140 +6633,178 @@ fi | |||
| 4845 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | 6633 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
| 4846 | if test "${HAVE_X11}" = "yes"; then | 6634 | if test "${HAVE_X11}" = "yes"; then |
| 4847 | if test "${USE_X_TOOLKIT}" != "none"; then | 6635 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 4848 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 | 6636 | |
| 4849 | echo "configure:4850: checking for XShapeQueryExtension in -lXext" >&5 | 6637 | echo "$as_me:6637: checking for XShapeQueryExtension in -lXext" >&5 |
| 4850 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` | 6638 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 4851 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6639 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 4852 | echo $ac_n "(cached) $ac_c" 1>&6 | 6640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4853 | else | 6641 | else |
| 4854 | ac_save_LIBS="$LIBS" | 6642 | ac_check_lib_save_LIBS=$LIBS |
| 4855 | LIBS="-lXext $LIBS" | 6643 | LIBS="-lXext $LIBS" |
| 4856 | cat > conftest.$ac_ext <<EOF | 6644 | cat >conftest.$ac_ext <<_ACEOF |
| 4857 | #line 4858 "configure" | 6645 | #line 6645 "configure" |
| 4858 | #include "confdefs.h" | 6646 | #include "confdefs.h" |
| 6647 | |||
| 4859 | /* Override any gcc2 internal prototype to avoid an error. */ | 6648 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6649 | #ifdef __cplusplus | ||
| 6650 | extern "C" | ||
| 6651 | #endif | ||
| 4860 | /* We use char because int might match the return type of a gcc2 | 6652 | /* We use char because int might match the return type of a gcc2 |
| 4861 | builtin and then its argument prototype would still apply. */ | 6653 | builtin and then its argument prototype would still apply. */ |
| 4862 | char XShapeQueryExtension(); | 6654 | char XShapeQueryExtension (); |
| 4863 | 6655 | int | |
| 4864 | int main() { | 6656 | main () |
| 4865 | XShapeQueryExtension() | 6657 | { |
| 4866 | ; return 0; } | 6658 | XShapeQueryExtension (); |
| 4867 | EOF | 6659 | ; |
| 4868 | if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6660 | return 0; |
| 4869 | rm -rf conftest* | 6661 | } |
| 4870 | eval "ac_cv_lib_$ac_lib_var=yes" | 6662 | _ACEOF |
| 4871 | else | 6663 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4872 | echo "configure: failed program was:" >&5 | 6664 | if { (eval echo "$as_me:6664: \"$ac_link\"") >&5 |
| 4873 | cat conftest.$ac_ext >&5 | 6665 | (eval $ac_link) 2>&5 |
| 4874 | rm -rf conftest* | 6666 | ac_status=$? |
| 4875 | eval "ac_cv_lib_$ac_lib_var=no" | 6667 | echo "$as_me:6667: \$? = $ac_status" >&5 |
| 4876 | fi | 6668 | (exit $ac_status); } && |
| 4877 | rm -f conftest* | 6669 | { ac_try='test -s conftest$ac_exeext' |
| 4878 | LIBS="$ac_save_LIBS" | 6670 | { (eval echo "$as_me:6670: \"$ac_try\"") >&5 |
| 4879 | 6671 | (eval $ac_try) 2>&5 | |
| 4880 | fi | 6672 | ac_status=$? |
| 4881 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6673 | echo "$as_me:6673: \$? = $ac_status" >&5 |
| 4882 | echo "$ac_t""yes" 1>&6 | 6674 | (exit $ac_status); }; }; then |
| 4883 | ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 6675 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
| 4884 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 6676 | else |
| 4885 | cat >> confdefs.h <<EOF | 6677 | echo "$as_me: failed program was:" >&5 |
| 4886 | #define $ac_tr_lib 1 | 6678 | cat conftest.$ac_ext >&5 |
| 6679 | ac_cv_lib_Xext_XShapeQueryExtension=no | ||
| 6680 | fi | ||
| 6681 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 6682 | LIBS=$ac_check_lib_save_LIBS | ||
| 6683 | fi | ||
| 6684 | echo "$as_me:6684: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | ||
| 6685 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | ||
| 6686 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | ||
| 6687 | cat >>confdefs.h <<EOF | ||
| 6688 | #define HAVE_LIBXEXT 1 | ||
| 4887 | EOF | 6689 | EOF |
| 4888 | 6690 | ||
| 4889 | LIBS="-lXext $LIBS" | 6691 | LIBS="-lXext $LIBS" |
| 4890 | 6692 | ||
| 4891 | else | ||
| 4892 | echo "$ac_t""no" 1>&6 | ||
| 4893 | fi | 6693 | fi |
| 4894 | 6694 | ||
| 4895 | fi | 6695 | fi |
| 4896 | fi | 6696 | fi |
| 4897 | 6697 | ||
| 4898 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 6698 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 4899 | echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 6699 | echo "$as_me:6699: checking for Motif version 2.1" >&5 |
| 4900 | echo "configure:4901: checking for Motif version 2.1" >&5 | 6700 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
| 4901 | if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 6701 | if test "${emacs_cv_motif_version_2_1+set}" = set; then |
| 4902 | echo $ac_n "(cached) $ac_c" 1>&6 | 6702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4903 | else | 6703 | else |
| 4904 | cat > conftest.$ac_ext <<EOF | 6704 | cat >conftest.$ac_ext <<_ACEOF |
| 4905 | #line 4906 "configure" | 6705 | #line 6705 "configure" |
| 4906 | #include "confdefs.h" | 6706 | #include "confdefs.h" |
| 4907 | #include <Xm/Xm.h> | 6707 | #include <Xm/Xm.h> |
| 4908 | int main() { | 6708 | int |
| 6709 | main () | ||
| 6710 | { | ||
| 4909 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 6711 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
| 4910 | int x = 5; | 6712 | int x = 5; |
| 4911 | #else | 6713 | #else |
| 4912 | Motif version prior to 2.1. | 6714 | Motif version prior to 2.1. |
| 4913 | #endif | 6715 | #endif |
| 4914 | ; return 0; } | 6716 | ; |
| 4915 | EOF | 6717 | return 0; |
| 4916 | if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6718 | } |
| 4917 | rm -rf conftest* | 6719 | _ACEOF |
| 6720 | rm -f conftest.$ac_objext | ||
| 6721 | if { (eval echo "$as_me:6721: \"$ac_compile\"") >&5 | ||
| 6722 | (eval $ac_compile) 2>&5 | ||
| 6723 | ac_status=$? | ||
| 6724 | echo "$as_me:6724: \$? = $ac_status" >&5 | ||
| 6725 | (exit $ac_status); } && | ||
| 6726 | { ac_try='test -s conftest.$ac_objext' | ||
| 6727 | { (eval echo "$as_me:6727: \"$ac_try\"") >&5 | ||
| 6728 | (eval $ac_try) 2>&5 | ||
| 6729 | ac_status=$? | ||
| 6730 | echo "$as_me:6730: \$? = $ac_status" >&5 | ||
| 6731 | (exit $ac_status); }; }; then | ||
| 4918 | emacs_cv_motif_version_2_1=yes | 6732 | emacs_cv_motif_version_2_1=yes |
| 4919 | else | 6733 | else |
| 4920 | echo "configure: failed program was:" >&5 | 6734 | echo "$as_me: failed program was:" >&5 |
| 4921 | cat conftest.$ac_ext >&5 | 6735 | cat conftest.$ac_ext >&5 |
| 4922 | rm -rf conftest* | 6736 | emacs_cv_motif_version_2_1=no |
| 4923 | emacs_cv_motif_version_2_1=no | ||
| 4924 | fi | 6737 | fi |
| 4925 | rm -f conftest* | 6738 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4926 | fi | 6739 | fi |
| 4927 | 6740 | echo "$as_me:6740: result: $emacs_cv_motif_version_2_1" >&5 | |
| 4928 | echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 | 6741 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
| 4929 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | 6742 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
| 4930 | if test $emacs_cv_motif_version_2_1 = yes; then | 6743 | if test $emacs_cv_motif_version_2_1 = yes; then |
| 4931 | HAVE_LIBXP=no | 6744 | HAVE_LIBXP=no |
| 4932 | cat >> confdefs.h <<\EOF | 6745 | cat >>confdefs.h <<\EOF |
| 4933 | #define HAVE_MOTIF_2_1 1 | 6746 | #define HAVE_MOTIF_2_1 1 |
| 4934 | EOF | 6747 | EOF |
| 4935 | 6748 | ||
| 4936 | echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 6749 | echo "$as_me:6749: checking for XpCreateContext in -lXp" >&5 |
| 4937 | echo "configure:4938: checking for XpCreateContext in -lXp" >&5 | 6750 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
| 4938 | ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 6751 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then |
| 4939 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4940 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4941 | else | 6753 | else |
| 4942 | ac_save_LIBS="$LIBS" | 6754 | ac_check_lib_save_LIBS=$LIBS |
| 4943 | LIBS="-lXp $LIBS" | 6755 | LIBS="-lXp $LIBS" |
| 4944 | cat > conftest.$ac_ext <<EOF | 6756 | cat >conftest.$ac_ext <<_ACEOF |
| 4945 | #line 4946 "configure" | 6757 | #line 6757 "configure" |
| 4946 | #include "confdefs.h" | 6758 | #include "confdefs.h" |
| 6759 | |||
| 4947 | /* Override any gcc2 internal prototype to avoid an error. */ | 6760 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6761 | #ifdef __cplusplus | ||
| 6762 | extern "C" | ||
| 6763 | #endif | ||
| 4948 | /* We use char because int might match the return type of a gcc2 | 6764 | /* We use char because int might match the return type of a gcc2 |
| 4949 | builtin and then its argument prototype would still apply. */ | 6765 | builtin and then its argument prototype would still apply. */ |
| 4950 | char XpCreateContext(); | 6766 | char XpCreateContext (); |
| 4951 | 6767 | int | |
| 4952 | int main() { | 6768 | main () |
| 4953 | XpCreateContext() | 6769 | { |
| 4954 | ; return 0; } | 6770 | XpCreateContext (); |
| 4955 | EOF | 6771 | ; |
| 4956 | if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6772 | return 0; |
| 4957 | rm -rf conftest* | 6773 | } |
| 4958 | eval "ac_cv_lib_$ac_lib_var=yes" | 6774 | _ACEOF |
| 4959 | else | 6775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4960 | echo "configure: failed program was:" >&5 | 6776 | if { (eval echo "$as_me:6776: \"$ac_link\"") >&5 |
| 4961 | cat conftest.$ac_ext >&5 | 6777 | (eval $ac_link) 2>&5 |
| 4962 | rm -rf conftest* | 6778 | ac_status=$? |
| 4963 | eval "ac_cv_lib_$ac_lib_var=no" | 6779 | echo "$as_me:6779: \$? = $ac_status" >&5 |
| 4964 | fi | 6780 | (exit $ac_status); } && |
| 4965 | rm -f conftest* | 6781 | { ac_try='test -s conftest$ac_exeext' |
| 4966 | LIBS="$ac_save_LIBS" | 6782 | { (eval echo "$as_me:6782: \"$ac_try\"") >&5 |
| 4967 | 6783 | (eval $ac_try) 2>&5 | |
| 4968 | fi | 6784 | ac_status=$? |
| 4969 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6785 | echo "$as_me:6785: \$? = $ac_status" >&5 |
| 4970 | echo "$ac_t""yes" 1>&6 | 6786 | (exit $ac_status); }; }; then |
| 6787 | ac_cv_lib_Xp_XpCreateContext=yes | ||
| 6788 | else | ||
| 6789 | echo "$as_me: failed program was:" >&5 | ||
| 6790 | cat conftest.$ac_ext >&5 | ||
| 6791 | ac_cv_lib_Xp_XpCreateContext=no | ||
| 6792 | fi | ||
| 6793 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 6794 | LIBS=$ac_check_lib_save_LIBS | ||
| 6795 | fi | ||
| 6796 | echo "$as_me:6796: result: $ac_cv_lib_Xp_XpCreateContext" >&5 | ||
| 6797 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 | ||
| 6798 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | ||
| 4971 | HAVE_LIBXP=yes | 6799 | HAVE_LIBXP=yes |
| 4972 | else | ||
| 4973 | echo "$ac_t""no" 1>&6 | ||
| 4974 | fi | 6800 | fi |
| 4975 | 6801 | ||
| 4976 | if test ${HAVE_LIBXP} = yes; then | 6802 | if test ${HAVE_LIBXP} = yes; then |
| 4977 | cat >> confdefs.h <<\EOF | 6803 | cat >>confdefs.h <<\EOF |
| 4978 | #define HAVE_LIBXP 1 | 6804 | #define HAVE_LIBXP 1 |
| 4979 | EOF | 6805 | EOF |
| 4980 | 6806 | ||
| 4981 | fi | 6807 | fi |
| 4982 | fi | 6808 | fi |
| 4983 | fi | 6809 | fi |
| 4984 | 6810 | ||
| @@ -4986,100 +6812,120 @@ fi | |||
| 4986 | HAVE_XAW3D=no | 6812 | HAVE_XAW3D=no |
| 4987 | if test "${HAVE_X11}" = "yes"; then | 6813 | if test "${HAVE_X11}" = "yes"; then |
| 4988 | if test "${USE_X_TOOLKIT}" != "none"; then | 6814 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 4989 | ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 6815 | echo "$as_me:6815: checking for X11/Xaw3d/Scrollbar.h" >&5 |
| 4990 | echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 6816 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
| 4991 | echo "configure:4992: checking for X11/Xaw3d/Scrollbar.h" >&5 | 6817 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then |
| 4992 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4993 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4994 | else | 6819 | else |
| 4995 | cat > conftest.$ac_ext <<EOF | 6820 | cat >conftest.$ac_ext <<_ACEOF |
| 4996 | #line 4997 "configure" | 6821 | #line 6821 "configure" |
| 4997 | #include "confdefs.h" | 6822 | #include "confdefs.h" |
| 4998 | #include <X11/Xaw3d/Scrollbar.h> | 6823 | #include <X11/Xaw3d/Scrollbar.h> |
| 4999 | EOF | 6824 | _ACEOF |
| 5000 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6825 | if { (eval echo "$as_me:6825: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5001 | { (eval echo configure:5002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6826 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5002 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6827 | ac_status=$? |
| 5003 | if test -z "$ac_err"; then | 6828 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5004 | rm -rf conftest* | 6829 | rm -f conftest.er1 |
| 5005 | eval "ac_cv_header_$ac_safe=yes" | 6830 | cat conftest.err >&5 |
| 6831 | echo "$as_me:6831: \$? = $ac_status" >&5 | ||
| 6832 | (exit $ac_status); } >/dev/null; then | ||
| 6833 | if test -s conftest.err; then | ||
| 6834 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 6835 | else | ||
| 6836 | ac_cpp_err= | ||
| 6837 | fi | ||
| 5006 | else | 6838 | else |
| 5007 | echo "$ac_err" >&5 | 6839 | ac_cpp_err=yes |
| 5008 | echo "configure: failed program was:" >&5 | 6840 | fi |
| 6841 | if test -z "$ac_cpp_err"; then | ||
| 6842 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes | ||
| 6843 | else | ||
| 6844 | echo "$as_me: failed program was:" >&5 | ||
| 5009 | cat conftest.$ac_ext >&5 | 6845 | cat conftest.$ac_ext >&5 |
| 5010 | rm -rf conftest* | 6846 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
| 5011 | eval "ac_cv_header_$ac_safe=no" | ||
| 5012 | fi | 6847 | fi |
| 5013 | rm -f conftest* | 6848 | rm -f conftest.err conftest.$ac_ext |
| 5014 | fi | 6849 | fi |
| 5015 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 6850 | echo "$as_me:6850: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
| 5016 | echo "$ac_t""yes" 1>&6 | 6851 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
| 5017 | echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 6852 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
| 5018 | echo "configure:5019: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 6853 | echo "$as_me:6853: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
| 5019 | ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 6854 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
| 5020 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6855 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then |
| 5021 | echo $ac_n "(cached) $ac_c" 1>&6 | 6856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5022 | else | 6857 | else |
| 5023 | ac_save_LIBS="$LIBS" | 6858 | ac_check_lib_save_LIBS=$LIBS |
| 5024 | LIBS="-lXaw3d $LIBS" | 6859 | LIBS="-lXaw3d $LIBS" |
| 5025 | cat > conftest.$ac_ext <<EOF | 6860 | cat >conftest.$ac_ext <<_ACEOF |
| 5026 | #line 5027 "configure" | 6861 | #line 6861 "configure" |
| 5027 | #include "confdefs.h" | 6862 | #include "confdefs.h" |
| 6863 | |||
| 5028 | /* Override any gcc2 internal prototype to avoid an error. */ | 6864 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6865 | #ifdef __cplusplus | ||
| 6866 | extern "C" | ||
| 6867 | #endif | ||
| 5029 | /* We use char because int might match the return type of a gcc2 | 6868 | /* We use char because int might match the return type of a gcc2 |
| 5030 | builtin and then its argument prototype would still apply. */ | 6869 | builtin and then its argument prototype would still apply. */ |
| 5031 | char XawScrollbarSetThumb(); | 6870 | char XawScrollbarSetThumb (); |
| 5032 | 6871 | int | |
| 5033 | int main() { | 6872 | main () |
| 5034 | XawScrollbarSetThumb() | 6873 | { |
| 5035 | ; return 0; } | 6874 | XawScrollbarSetThumb (); |
| 5036 | EOF | 6875 | ; |
| 5037 | if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6876 | return 0; |
| 5038 | rm -rf conftest* | 6877 | } |
| 5039 | eval "ac_cv_lib_$ac_lib_var=yes" | 6878 | _ACEOF |
| 5040 | else | 6879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5041 | echo "configure: failed program was:" >&5 | 6880 | if { (eval echo "$as_me:6880: \"$ac_link\"") >&5 |
| 5042 | cat conftest.$ac_ext >&5 | 6881 | (eval $ac_link) 2>&5 |
| 5043 | rm -rf conftest* | 6882 | ac_status=$? |
| 5044 | eval "ac_cv_lib_$ac_lib_var=no" | 6883 | echo "$as_me:6883: \$? = $ac_status" >&5 |
| 5045 | fi | 6884 | (exit $ac_status); } && |
| 5046 | rm -f conftest* | 6885 | { ac_try='test -s conftest$ac_exeext' |
| 5047 | LIBS="$ac_save_LIBS" | 6886 | { (eval echo "$as_me:6886: \"$ac_try\"") >&5 |
| 5048 | 6887 | (eval $ac_try) 2>&5 | |
| 5049 | fi | 6888 | ac_status=$? |
| 5050 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6889 | echo "$as_me:6889: \$? = $ac_status" >&5 |
| 5051 | echo "$ac_t""yes" 1>&6 | 6890 | (exit $ac_status); }; }; then |
| 6891 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | ||
| 6892 | else | ||
| 6893 | echo "$as_me: failed program was:" >&5 | ||
| 6894 | cat conftest.$ac_ext >&5 | ||
| 6895 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | ||
| 6896 | fi | ||
| 6897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 6898 | LIBS=$ac_check_lib_save_LIBS | ||
| 6899 | fi | ||
| 6900 | echo "$as_me:6900: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 | ||
| 6901 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 | ||
| 6902 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | ||
| 5052 | HAVE_XAW3D=yes | 6903 | HAVE_XAW3D=yes |
| 5053 | else | ||
| 5054 | echo "$ac_t""no" 1>&6 | ||
| 5055 | fi | 6904 | fi |
| 5056 | 6905 | ||
| 5057 | else | ||
| 5058 | echo "$ac_t""no" 1>&6 | ||
| 5059 | fi | 6906 | fi |
| 5060 | 6907 | ||
| 5061 | if test "${HAVE_XAW3D}" = "yes"; then | 6908 | if test "${HAVE_XAW3D}" = "yes"; then |
| 5062 | cat >> confdefs.h <<\EOF | 6909 | cat >>confdefs.h <<\EOF |
| 5063 | #define HAVE_XAW3D 1 | 6910 | #define HAVE_XAW3D 1 |
| 5064 | EOF | 6911 | EOF |
| 5065 | 6912 | ||
| 5066 | fi | 6913 | fi |
| 5067 | fi | 6914 | fi |
| 5068 | fi | 6915 | fi |
| 5069 | |||
| 5070 | 6916 | ||
| 5071 | USE_TOOLKIT_SCROLL_BARS=no | 6917 | USE_TOOLKIT_SCROLL_BARS=no |
| 5072 | if test "${with_toolkit_scroll_bars}" != "no"; then | 6918 | if test "${with_toolkit_scroll_bars}" != "no"; then |
| 5073 | if test "${USE_X_TOOLKIT}" != "none"; then | 6919 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 5074 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 6920 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 5075 | cat >> confdefs.h <<\EOF | 6921 | cat >>confdefs.h <<\EOF |
| 5076 | #define USE_TOOLKIT_SCROLL_BARS 1 | 6922 | #define USE_TOOLKIT_SCROLL_BARS 1 |
| 5077 | EOF | 6923 | EOF |
| 5078 | 6924 | ||
| 5079 | HAVE_XAW3D=no | 6925 | HAVE_XAW3D=no |
| 5080 | USE_TOOLKIT_SCROLL_BARS=yes | 6926 | USE_TOOLKIT_SCROLL_BARS=yes |
| 5081 | elif test "${HAVE_XAW3D}" = "yes"; then | 6927 | elif test "${HAVE_XAW3D}" = "yes"; then |
| 5082 | cat >> confdefs.h <<\EOF | 6928 | cat >>confdefs.h <<\EOF |
| 5083 | #define USE_TOOLKIT_SCROLL_BARS 1 | 6929 | #define USE_TOOLKIT_SCROLL_BARS 1 |
| 5084 | EOF | 6930 | EOF |
| 5085 | 6931 | ||
| @@ -5088,9 +6934,8 @@ EOF | |||
| 5088 | fi | 6934 | fi |
| 5089 | fi | 6935 | fi |
| 5090 | 6936 | ||
| 5091 | |||
| 5092 | if test "${with_xim}" != "no"; then | 6937 | if test "${with_xim}" != "no"; then |
| 5093 | cat >> confdefs.h <<\EOF | 6938 | cat >>confdefs.h <<\EOF |
| 5094 | #define USE_XIM 1 | 6939 | #define USE_XIM 1 |
| 5095 | EOF | 6940 | EOF |
| 5096 | 6941 | ||
| @@ -5100,458 +6945,562 @@ fi | |||
| 5100 | HAVE_XPM=no | 6945 | HAVE_XPM=no |
| 5101 | if test "${HAVE_X11}" = "yes"; then | 6946 | if test "${HAVE_X11}" = "yes"; then |
| 5102 | if test "${with_xpm}" != "no"; then | 6947 | if test "${with_xpm}" != "no"; then |
| 5103 | ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 6948 | echo "$as_me:6948: checking for X11/xpm.h" >&5 |
| 5104 | echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 6949 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
| 5105 | echo "configure:5106: checking for X11/xpm.h" >&5 | 6950 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
| 5106 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5107 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5108 | else | 6952 | else |
| 5109 | cat > conftest.$ac_ext <<EOF | 6953 | cat >conftest.$ac_ext <<_ACEOF |
| 5110 | #line 5111 "configure" | 6954 | #line 6954 "configure" |
| 5111 | #include "confdefs.h" | 6955 | #include "confdefs.h" |
| 5112 | #include <X11/xpm.h> | 6956 | #include <X11/xpm.h> |
| 5113 | EOF | 6957 | _ACEOF |
| 5114 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6958 | if { (eval echo "$as_me:6958: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5115 | { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5116 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6960 | ac_status=$? |
| 5117 | if test -z "$ac_err"; then | 6961 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5118 | rm -rf conftest* | 6962 | rm -f conftest.er1 |
| 5119 | eval "ac_cv_header_$ac_safe=yes" | 6963 | cat conftest.err >&5 |
| 6964 | echo "$as_me:6964: \$? = $ac_status" >&5 | ||
| 6965 | (exit $ac_status); } >/dev/null; then | ||
| 6966 | if test -s conftest.err; then | ||
| 6967 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 6968 | else | ||
| 6969 | ac_cpp_err= | ||
| 6970 | fi | ||
| 6971 | else | ||
| 6972 | ac_cpp_err=yes | ||
| 6973 | fi | ||
| 6974 | if test -z "$ac_cpp_err"; then | ||
| 6975 | ac_cv_header_X11_xpm_h=yes | ||
| 5120 | else | 6976 | else |
| 5121 | echo "$ac_err" >&5 | 6977 | echo "$as_me: failed program was:" >&5 |
| 5122 | echo "configure: failed program was:" >&5 | ||
| 5123 | cat conftest.$ac_ext >&5 | 6978 | cat conftest.$ac_ext >&5 |
| 5124 | rm -rf conftest* | 6979 | ac_cv_header_X11_xpm_h=no |
| 5125 | eval "ac_cv_header_$ac_safe=no" | ||
| 5126 | fi | 6980 | fi |
| 5127 | rm -f conftest* | 6981 | rm -f conftest.err conftest.$ac_ext |
| 5128 | fi | 6982 | fi |
| 5129 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 6983 | echo "$as_me:6983: result: $ac_cv_header_X11_xpm_h" >&5 |
| 5130 | echo "$ac_t""yes" 1>&6 | 6984 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
| 5131 | echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 6985 | if test $ac_cv_header_X11_xpm_h = yes; then |
| 5132 | echo "configure:5133: checking for XpmReadFileToPixmap in -lXpm" >&5 | 6986 | echo "$as_me:6986: checking for XpmReadFileToPixmap in -lXpm" >&5 |
| 5133 | ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 6987 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
| 5134 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6988 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then |
| 5135 | echo $ac_n "(cached) $ac_c" 1>&6 | 6989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5136 | else | 6990 | else |
| 5137 | ac_save_LIBS="$LIBS" | 6991 | ac_check_lib_save_LIBS=$LIBS |
| 5138 | LIBS="-lXpm -lX11 $LIBS" | 6992 | LIBS="-lXpm -lX11 $LIBS" |
| 5139 | cat > conftest.$ac_ext <<EOF | 6993 | cat >conftest.$ac_ext <<_ACEOF |
| 5140 | #line 5141 "configure" | 6994 | #line 6994 "configure" |
| 5141 | #include "confdefs.h" | 6995 | #include "confdefs.h" |
| 6996 | |||
| 5142 | /* Override any gcc2 internal prototype to avoid an error. */ | 6997 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6998 | #ifdef __cplusplus | ||
| 6999 | extern "C" | ||
| 7000 | #endif | ||
| 5143 | /* We use char because int might match the return type of a gcc2 | 7001 | /* We use char because int might match the return type of a gcc2 |
| 5144 | builtin and then its argument prototype would still apply. */ | 7002 | builtin and then its argument prototype would still apply. */ |
| 5145 | char XpmReadFileToPixmap(); | 7003 | char XpmReadFileToPixmap (); |
| 5146 | 7004 | int | |
| 5147 | int main() { | 7005 | main () |
| 5148 | XpmReadFileToPixmap() | 7006 | { |
| 5149 | ; return 0; } | 7007 | XpmReadFileToPixmap (); |
| 5150 | EOF | 7008 | ; |
| 5151 | if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7009 | return 0; |
| 5152 | rm -rf conftest* | 7010 | } |
| 5153 | eval "ac_cv_lib_$ac_lib_var=yes" | 7011 | _ACEOF |
| 5154 | else | 7012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5155 | echo "configure: failed program was:" >&5 | 7013 | if { (eval echo "$as_me:7013: \"$ac_link\"") >&5 |
| 5156 | cat conftest.$ac_ext >&5 | 7014 | (eval $ac_link) 2>&5 |
| 5157 | rm -rf conftest* | 7015 | ac_status=$? |
| 5158 | eval "ac_cv_lib_$ac_lib_var=no" | 7016 | echo "$as_me:7016: \$? = $ac_status" >&5 |
| 5159 | fi | 7017 | (exit $ac_status); } && |
| 5160 | rm -f conftest* | 7018 | { ac_try='test -s conftest$ac_exeext' |
| 5161 | LIBS="$ac_save_LIBS" | 7019 | { (eval echo "$as_me:7019: \"$ac_try\"") >&5 |
| 5162 | 7020 | (eval $ac_try) 2>&5 | |
| 5163 | fi | 7021 | ac_status=$? |
| 5164 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 7022 | echo "$as_me:7022: \$? = $ac_status" >&5 |
| 5165 | echo "$ac_t""yes" 1>&6 | 7023 | (exit $ac_status); }; }; then |
| 7024 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | ||
| 7025 | else | ||
| 7026 | echo "$as_me: failed program was:" >&5 | ||
| 7027 | cat conftest.$ac_ext >&5 | ||
| 7028 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no | ||
| 7029 | fi | ||
| 7030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7031 | LIBS=$ac_check_lib_save_LIBS | ||
| 7032 | fi | ||
| 7033 | echo "$as_me:7033: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 | ||
| 7034 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 | ||
| 7035 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | ||
| 5166 | HAVE_XPM=yes | 7036 | HAVE_XPM=yes |
| 5167 | else | ||
| 5168 | echo "$ac_t""no" 1>&6 | ||
| 5169 | fi | 7037 | fi |
| 5170 | 7038 | ||
| 5171 | else | ||
| 5172 | echo "$ac_t""no" 1>&6 | ||
| 5173 | fi | 7039 | fi |
| 5174 | 7040 | ||
| 5175 | if test "${HAVE_XPM}" = "yes"; then | 7041 | if test "${HAVE_XPM}" = "yes"; then |
| 5176 | echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 | 7042 | echo "$as_me:7042: checking for XpmReturnAllocPixels preprocessor define" >&5 |
| 5177 | echo "configure:5178: checking for XpmReturnAllocPixels preprocessor define" >&5 | 7043 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
| 5178 | cat > conftest.$ac_ext <<EOF | 7044 | cat >conftest.$ac_ext <<_ACEOF |
| 5179 | #line 5180 "configure" | 7045 | #line 7045 "configure" |
| 5180 | #include "confdefs.h" | 7046 | #include "confdefs.h" |
| 5181 | #include "X11/xpm.h" | 7047 | #include "X11/xpm.h" |
| 5182 | #ifndef XpmReturnAllocPixels | 7048 | #ifndef XpmReturnAllocPixels |
| 5183 | no_return_alloc_pixels | 7049 | no_return_alloc_pixels |
| 5184 | #endif | 7050 | #endif |
| 5185 | 7051 | ||
| 5186 | EOF | 7052 | _ACEOF |
| 5187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 7053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5188 | egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | 7054 | egrep "no_return_alloc_pixels" >/dev/null 2>&1; then |
| 5189 | rm -rf conftest* | ||
| 5190 | HAVE_XPM=no | 7055 | HAVE_XPM=no |
| 5191 | else | 7056 | else |
| 5192 | rm -rf conftest* | ||
| 5193 | HAVE_XPM=yes | 7057 | HAVE_XPM=yes |
| 5194 | fi | 7058 | fi |
| 5195 | rm -f conftest* | 7059 | rm -f conftest* |
| 5196 | 7060 | ||
| 5197 | |||
| 5198 | if test "${HAVE_XPM}" = "yes"; then | 7061 | if test "${HAVE_XPM}" = "yes"; then |
| 5199 | echo "$ac_t""yes" 1>&6 | 7062 | echo "$as_me:7062: result: yes" >&5 |
| 7063 | echo "${ECHO_T}yes" >&6 | ||
| 5200 | else | 7064 | else |
| 5201 | echo "$ac_t""no" 1>&6 | 7065 | echo "$as_me:7065: result: no" >&5 |
| 7066 | echo "${ECHO_T}no" >&6 | ||
| 5202 | fi | 7067 | fi |
| 5203 | fi | 7068 | fi |
| 5204 | fi | 7069 | fi |
| 5205 | 7070 | ||
| 5206 | if test "${HAVE_XPM}" = "yes"; then | 7071 | if test "${HAVE_XPM}" = "yes"; then |
| 5207 | cat >> confdefs.h <<\EOF | 7072 | cat >>confdefs.h <<\EOF |
| 5208 | #define HAVE_XPM 1 | 7073 | #define HAVE_XPM 1 |
| 5209 | EOF | 7074 | EOF |
| 5210 | 7075 | ||
| 5211 | fi | 7076 | fi |
| 5212 | fi | 7077 | fi |
| 5213 | 7078 | ||
| 5214 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | 7079 | ### Use -ljpeg if available, unless `--with-jpeg=no'. |
| 5215 | HAVE_JPEG=no | 7080 | HAVE_JPEG=no |
| 5216 | if test "${HAVE_X11}" = "yes"; then | 7081 | if test "${HAVE_X11}" = "yes"; then |
| 5217 | if test "${with_jpeg}" != "no"; then | 7082 | if test "${with_jpeg}" != "no"; then |
| 5218 | ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 7083 | echo "$as_me:7083: checking for jerror.h" >&5 |
| 5219 | echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 7084 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
| 5220 | echo "configure:5221: checking for jerror.h" >&5 | 7085 | if test "${ac_cv_header_jerror_h+set}" = set; then |
| 5221 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5222 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5223 | else | 7087 | else |
| 5224 | cat > conftest.$ac_ext <<EOF | 7088 | cat >conftest.$ac_ext <<_ACEOF |
| 5225 | #line 5226 "configure" | 7089 | #line 7089 "configure" |
| 5226 | #include "confdefs.h" | 7090 | #include "confdefs.h" |
| 5227 | #include <jerror.h> | 7091 | #include <jerror.h> |
| 5228 | EOF | 7092 | _ACEOF |
| 5229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7093 | if { (eval echo "$as_me:7093: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5230 | { (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7094 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7095 | ac_status=$? |
| 5232 | if test -z "$ac_err"; then | 7096 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5233 | rm -rf conftest* | 7097 | rm -f conftest.er1 |
| 5234 | eval "ac_cv_header_$ac_safe=yes" | 7098 | cat conftest.err >&5 |
| 7099 | echo "$as_me:7099: \$? = $ac_status" >&5 | ||
| 7100 | (exit $ac_status); } >/dev/null; then | ||
| 7101 | if test -s conftest.err; then | ||
| 7102 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 7103 | else | ||
| 7104 | ac_cpp_err= | ||
| 7105 | fi | ||
| 7106 | else | ||
| 7107 | ac_cpp_err=yes | ||
| 7108 | fi | ||
| 7109 | if test -z "$ac_cpp_err"; then | ||
| 7110 | ac_cv_header_jerror_h=yes | ||
| 5235 | else | 7111 | else |
| 5236 | echo "$ac_err" >&5 | 7112 | echo "$as_me: failed program was:" >&5 |
| 5237 | echo "configure: failed program was:" >&5 | ||
| 5238 | cat conftest.$ac_ext >&5 | 7113 | cat conftest.$ac_ext >&5 |
| 5239 | rm -rf conftest* | 7114 | ac_cv_header_jerror_h=no |
| 5240 | eval "ac_cv_header_$ac_safe=no" | ||
| 5241 | fi | 7115 | fi |
| 5242 | rm -f conftest* | 7116 | rm -f conftest.err conftest.$ac_ext |
| 5243 | fi | 7117 | fi |
| 5244 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 7118 | echo "$as_me:7118: result: $ac_cv_header_jerror_h" >&5 |
| 5245 | echo "$ac_t""yes" 1>&6 | 7119 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
| 5246 | echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 7120 | if test $ac_cv_header_jerror_h = yes; then |
| 5247 | echo "configure:5248: checking for jpeg_destroy_compress in -ljpeg" >&5 | 7121 | echo "$as_me:7121: checking for jpeg_destroy_compress in -ljpeg" >&5 |
| 5248 | ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 7122 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
| 5249 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7123 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then |
| 5250 | echo $ac_n "(cached) $ac_c" 1>&6 | 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5251 | else | 7125 | else |
| 5252 | ac_save_LIBS="$LIBS" | 7126 | ac_check_lib_save_LIBS=$LIBS |
| 5253 | LIBS="-ljpeg $LIBS" | 7127 | LIBS="-ljpeg $LIBS" |
| 5254 | cat > conftest.$ac_ext <<EOF | 7128 | cat >conftest.$ac_ext <<_ACEOF |
| 5255 | #line 5256 "configure" | 7129 | #line 7129 "configure" |
| 5256 | #include "confdefs.h" | 7130 | #include "confdefs.h" |
| 7131 | |||
| 5257 | /* Override any gcc2 internal prototype to avoid an error. */ | 7132 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7133 | #ifdef __cplusplus | ||
| 7134 | extern "C" | ||
| 7135 | #endif | ||
| 5258 | /* We use char because int might match the return type of a gcc2 | 7136 | /* We use char because int might match the return type of a gcc2 |
| 5259 | builtin and then its argument prototype would still apply. */ | 7137 | builtin and then its argument prototype would still apply. */ |
| 5260 | char jpeg_destroy_compress(); | 7138 | char jpeg_destroy_compress (); |
| 5261 | 7139 | int | |
| 5262 | int main() { | 7140 | main () |
| 5263 | jpeg_destroy_compress() | 7141 | { |
| 5264 | ; return 0; } | 7142 | jpeg_destroy_compress (); |
| 5265 | EOF | 7143 | ; |
| 5266 | if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7144 | return 0; |
| 5267 | rm -rf conftest* | 7145 | } |
| 5268 | eval "ac_cv_lib_$ac_lib_var=yes" | 7146 | _ACEOF |
| 5269 | else | 7147 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5270 | echo "configure: failed program was:" >&5 | 7148 | if { (eval echo "$as_me:7148: \"$ac_link\"") >&5 |
| 5271 | cat conftest.$ac_ext >&5 | 7149 | (eval $ac_link) 2>&5 |
| 5272 | rm -rf conftest* | 7150 | ac_status=$? |
| 5273 | eval "ac_cv_lib_$ac_lib_var=no" | 7151 | echo "$as_me:7151: \$? = $ac_status" >&5 |
| 5274 | fi | 7152 | (exit $ac_status); } && |
| 5275 | rm -f conftest* | 7153 | { ac_try='test -s conftest$ac_exeext' |
| 5276 | LIBS="$ac_save_LIBS" | 7154 | { (eval echo "$as_me:7154: \"$ac_try\"") >&5 |
| 5277 | 7155 | (eval $ac_try) 2>&5 | |
| 5278 | fi | 7156 | ac_status=$? |
| 5279 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 7157 | echo "$as_me:7157: \$? = $ac_status" >&5 |
| 5280 | echo "$ac_t""yes" 1>&6 | 7158 | (exit $ac_status); }; }; then |
| 7159 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes | ||
| 7160 | else | ||
| 7161 | echo "$as_me: failed program was:" >&5 | ||
| 7162 | cat conftest.$ac_ext >&5 | ||
| 7163 | ac_cv_lib_jpeg_jpeg_destroy_compress=no | ||
| 7164 | fi | ||
| 7165 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7166 | LIBS=$ac_check_lib_save_LIBS | ||
| 7167 | fi | ||
| 7168 | echo "$as_me:7168: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 | ||
| 7169 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 | ||
| 7170 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | ||
| 5281 | HAVE_JPEG=yes | 7171 | HAVE_JPEG=yes |
| 5282 | else | ||
| 5283 | echo "$ac_t""no" 1>&6 | ||
| 5284 | fi | 7172 | fi |
| 5285 | 7173 | ||
| 5286 | else | ||
| 5287 | echo "$ac_t""no" 1>&6 | ||
| 5288 | fi | 7174 | fi |
| 5289 | 7175 | ||
| 5290 | fi | 7176 | fi |
| 5291 | 7177 | ||
| 5292 | if test "${HAVE_JPEG}" = "yes"; then | 7178 | if test "${HAVE_JPEG}" = "yes"; then |
| 5293 | cat >> confdefs.h <<\EOF | 7179 | cat >>confdefs.h <<\EOF |
| 5294 | #define HAVE_JPEG 1 | 7180 | #define HAVE_JPEG 1 |
| 5295 | EOF | 7181 | EOF |
| 5296 | 7182 | ||
| 5297 | fi | 7183 | fi |
| 5298 | fi | 7184 | fi |
| 5299 | 7185 | ||
| 5300 | ### Use -lpng if available, unless `--with-png=no'. | 7186 | ### Use -lpng if available, unless `--with-png=no'. |
| 5301 | HAVE_PNG=no | 7187 | HAVE_PNG=no |
| 5302 | if test "${HAVE_X11}" = "yes"; then | 7188 | if test "${HAVE_X11}" = "yes"; then |
| 5303 | if test "${with_png}" != "no"; then | 7189 | if test "${with_png}" != "no"; then |
| 5304 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 7190 | echo "$as_me:7190: checking for png.h" >&5 |
| 5305 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 7191 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
| 5306 | echo "configure:5307: checking for png.h" >&5 | 7192 | if test "${ac_cv_header_png_h+set}" = set; then |
| 5307 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5308 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5309 | else | 7194 | else |
| 5310 | cat > conftest.$ac_ext <<EOF | 7195 | cat >conftest.$ac_ext <<_ACEOF |
| 5311 | #line 5312 "configure" | 7196 | #line 7196 "configure" |
| 5312 | #include "confdefs.h" | 7197 | #include "confdefs.h" |
| 5313 | #include <png.h> | 7198 | #include <png.h> |
| 5314 | EOF | 7199 | _ACEOF |
| 5315 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7200 | if { (eval echo "$as_me:7200: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5316 | { (eval echo configure:5317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5317 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7202 | ac_status=$? |
| 5318 | if test -z "$ac_err"; then | 7203 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5319 | rm -rf conftest* | 7204 | rm -f conftest.er1 |
| 5320 | eval "ac_cv_header_$ac_safe=yes" | 7205 | cat conftest.err >&5 |
| 7206 | echo "$as_me:7206: \$? = $ac_status" >&5 | ||
| 7207 | (exit $ac_status); } >/dev/null; then | ||
| 7208 | if test -s conftest.err; then | ||
| 7209 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 7210 | else | ||
| 7211 | ac_cpp_err= | ||
| 7212 | fi | ||
| 5321 | else | 7213 | else |
| 5322 | echo "$ac_err" >&5 | 7214 | ac_cpp_err=yes |
| 5323 | echo "configure: failed program was:" >&5 | 7215 | fi |
| 7216 | if test -z "$ac_cpp_err"; then | ||
| 7217 | ac_cv_header_png_h=yes | ||
| 7218 | else | ||
| 7219 | echo "$as_me: failed program was:" >&5 | ||
| 5324 | cat conftest.$ac_ext >&5 | 7220 | cat conftest.$ac_ext >&5 |
| 5325 | rm -rf conftest* | 7221 | ac_cv_header_png_h=no |
| 5326 | eval "ac_cv_header_$ac_safe=no" | ||
| 5327 | fi | 7222 | fi |
| 5328 | rm -f conftest* | 7223 | rm -f conftest.err conftest.$ac_ext |
| 5329 | fi | 7224 | fi |
| 5330 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 7225 | echo "$as_me:7225: result: $ac_cv_header_png_h" >&5 |
| 5331 | echo "$ac_t""yes" 1>&6 | 7226 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
| 5332 | echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 | 7227 | if test $ac_cv_header_png_h = yes; then |
| 5333 | echo "configure:5334: checking for png_get_channels in -lpng" >&5 | 7228 | echo "$as_me:7228: checking for png_get_channels in -lpng" >&5 |
| 5334 | ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` | 7229 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
| 5335 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7230 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then |
| 5336 | echo $ac_n "(cached) $ac_c" 1>&6 | 7231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5337 | else | 7232 | else |
| 5338 | ac_save_LIBS="$LIBS" | 7233 | ac_check_lib_save_LIBS=$LIBS |
| 5339 | LIBS="-lpng -lz -lm $LIBS" | 7234 | LIBS="-lpng -lz -lm $LIBS" |
| 5340 | cat > conftest.$ac_ext <<EOF | 7235 | cat >conftest.$ac_ext <<_ACEOF |
| 5341 | #line 5342 "configure" | 7236 | #line 7236 "configure" |
| 5342 | #include "confdefs.h" | 7237 | #include "confdefs.h" |
| 7238 | |||
| 5343 | /* Override any gcc2 internal prototype to avoid an error. */ | 7239 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7240 | #ifdef __cplusplus | ||
| 7241 | extern "C" | ||
| 7242 | #endif | ||
| 5344 | /* We use char because int might match the return type of a gcc2 | 7243 | /* We use char because int might match the return type of a gcc2 |
| 5345 | builtin and then its argument prototype would still apply. */ | 7244 | builtin and then its argument prototype would still apply. */ |
| 5346 | char png_get_channels(); | 7245 | char png_get_channels (); |
| 5347 | 7246 | int | |
| 5348 | int main() { | 7247 | main () |
| 5349 | png_get_channels() | 7248 | { |
| 5350 | ; return 0; } | 7249 | png_get_channels (); |
| 5351 | EOF | 7250 | ; |
| 5352 | if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7251 | return 0; |
| 5353 | rm -rf conftest* | 7252 | } |
| 5354 | eval "ac_cv_lib_$ac_lib_var=yes" | 7253 | _ACEOF |
| 5355 | else | 7254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5356 | echo "configure: failed program was:" >&5 | 7255 | if { (eval echo "$as_me:7255: \"$ac_link\"") >&5 |
| 5357 | cat conftest.$ac_ext >&5 | 7256 | (eval $ac_link) 2>&5 |
| 5358 | rm -rf conftest* | 7257 | ac_status=$? |
| 5359 | eval "ac_cv_lib_$ac_lib_var=no" | 7258 | echo "$as_me:7258: \$? = $ac_status" >&5 |
| 5360 | fi | 7259 | (exit $ac_status); } && |
| 5361 | rm -f conftest* | 7260 | { ac_try='test -s conftest$ac_exeext' |
| 5362 | LIBS="$ac_save_LIBS" | 7261 | { (eval echo "$as_me:7261: \"$ac_try\"") >&5 |
| 5363 | 7262 | (eval $ac_try) 2>&5 | |
| 5364 | fi | 7263 | ac_status=$? |
| 5365 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 7264 | echo "$as_me:7264: \$? = $ac_status" >&5 |
| 5366 | echo "$ac_t""yes" 1>&6 | 7265 | (exit $ac_status); }; }; then |
| 7266 | ac_cv_lib_png_png_get_channels=yes | ||
| 7267 | else | ||
| 7268 | echo "$as_me: failed program was:" >&5 | ||
| 7269 | cat conftest.$ac_ext >&5 | ||
| 7270 | ac_cv_lib_png_png_get_channels=no | ||
| 7271 | fi | ||
| 7272 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7273 | LIBS=$ac_check_lib_save_LIBS | ||
| 7274 | fi | ||
| 7275 | echo "$as_me:7275: result: $ac_cv_lib_png_png_get_channels" >&5 | ||
| 7276 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 | ||
| 7277 | if test $ac_cv_lib_png_png_get_channels = yes; then | ||
| 5367 | HAVE_PNG=yes | 7278 | HAVE_PNG=yes |
| 5368 | else | ||
| 5369 | echo "$ac_t""no" 1>&6 | ||
| 5370 | fi | 7279 | fi |
| 5371 | 7280 | ||
| 5372 | else | ||
| 5373 | echo "$ac_t""no" 1>&6 | ||
| 5374 | fi | 7281 | fi |
| 5375 | 7282 | ||
| 5376 | fi | 7283 | fi |
| 5377 | 7284 | ||
| 5378 | if test "${HAVE_PNG}" = "yes"; then | 7285 | if test "${HAVE_PNG}" = "yes"; then |
| 5379 | cat >> confdefs.h <<\EOF | 7286 | cat >>confdefs.h <<\EOF |
| 5380 | #define HAVE_PNG 1 | 7287 | #define HAVE_PNG 1 |
| 5381 | EOF | 7288 | EOF |
| 5382 | 7289 | ||
| 5383 | fi | 7290 | fi |
| 5384 | fi | 7291 | fi |
| 5385 | 7292 | ||
| 5386 | ### Use -ltiff if available, unless `--with-tiff=no'. | 7293 | ### Use -ltiff if available, unless `--with-tiff=no'. |
| 5387 | HAVE_TIFF=no | 7294 | HAVE_TIFF=no |
| 5388 | if test "${HAVE_X11}" = "yes"; then | 7295 | if test "${HAVE_X11}" = "yes"; then |
| 5389 | if test "${with_tiff}" != "no"; then | 7296 | if test "${with_tiff}" != "no"; then |
| 5390 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 7297 | echo "$as_me:7297: checking for tiffio.h" >&5 |
| 5391 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 7298 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
| 5392 | echo "configure:5393: checking for tiffio.h" >&5 | 7299 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
| 5393 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5394 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5395 | else | 7301 | else |
| 5396 | cat > conftest.$ac_ext <<EOF | 7302 | cat >conftest.$ac_ext <<_ACEOF |
| 5397 | #line 5398 "configure" | 7303 | #line 7303 "configure" |
| 5398 | #include "confdefs.h" | 7304 | #include "confdefs.h" |
| 5399 | #include <tiffio.h> | 7305 | #include <tiffio.h> |
| 5400 | EOF | 7306 | _ACEOF |
| 5401 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7307 | if { (eval echo "$as_me:7307: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5402 | { (eval echo configure:5403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7308 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5403 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7309 | ac_status=$? |
| 5404 | if test -z "$ac_err"; then | 7310 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5405 | rm -rf conftest* | 7311 | rm -f conftest.er1 |
| 5406 | eval "ac_cv_header_$ac_safe=yes" | 7312 | cat conftest.err >&5 |
| 7313 | echo "$as_me:7313: \$? = $ac_status" >&5 | ||
| 7314 | (exit $ac_status); } >/dev/null; then | ||
| 7315 | if test -s conftest.err; then | ||
| 7316 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 7317 | else | ||
| 7318 | ac_cpp_err= | ||
| 7319 | fi | ||
| 5407 | else | 7320 | else |
| 5408 | echo "$ac_err" >&5 | 7321 | ac_cpp_err=yes |
| 5409 | echo "configure: failed program was:" >&5 | 7322 | fi |
| 7323 | if test -z "$ac_cpp_err"; then | ||
| 7324 | ac_cv_header_tiffio_h=yes | ||
| 7325 | else | ||
| 7326 | echo "$as_me: failed program was:" >&5 | ||
| 5410 | cat conftest.$ac_ext >&5 | 7327 | cat conftest.$ac_ext >&5 |
| 5411 | rm -rf conftest* | 7328 | ac_cv_header_tiffio_h=no |
| 5412 | eval "ac_cv_header_$ac_safe=no" | ||
| 5413 | fi | 7329 | fi |
| 5414 | rm -f conftest* | 7330 | rm -f conftest.err conftest.$ac_ext |
| 5415 | fi | 7331 | fi |
| 5416 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 7332 | echo "$as_me:7332: result: $ac_cv_header_tiffio_h" >&5 |
| 5417 | echo "$ac_t""yes" 1>&6 | 7333 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
| 7334 | if test $ac_cv_header_tiffio_h = yes; then | ||
| 5418 | tifflibs="-lz -lm" | 7335 | tifflibs="-lz -lm" |
| 5419 | # At least one tiff package requires the jpeg library. | 7336 | # At least one tiff package requires the jpeg library. |
| 5420 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 7337 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
| 5421 | echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 7338 | echo "$as_me:7338: checking for TIFFGetVersion in -ltiff" >&5 |
| 5422 | echo "configure:5423: checking for TIFFGetVersion in -ltiff" >&5 | 7339 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
| 5423 | ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 7340 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then |
| 5424 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5425 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5426 | else | 7342 | else |
| 5427 | ac_save_LIBS="$LIBS" | 7343 | ac_check_lib_save_LIBS=$LIBS |
| 5428 | LIBS="-ltiff $tifflibs $LIBS" | 7344 | LIBS="-ltiff $tifflibs $LIBS" |
| 5429 | cat > conftest.$ac_ext <<EOF | 7345 | cat >conftest.$ac_ext <<_ACEOF |
| 5430 | #line 5431 "configure" | 7346 | #line 7346 "configure" |
| 5431 | #include "confdefs.h" | 7347 | #include "confdefs.h" |
| 7348 | |||
| 5432 | /* Override any gcc2 internal prototype to avoid an error. */ | 7349 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7350 | #ifdef __cplusplus | ||
| 7351 | extern "C" | ||
| 7352 | #endif | ||
| 5433 | /* We use char because int might match the return type of a gcc2 | 7353 | /* We use char because int might match the return type of a gcc2 |
| 5434 | builtin and then its argument prototype would still apply. */ | 7354 | builtin and then its argument prototype would still apply. */ |
| 5435 | char TIFFGetVersion(); | 7355 | char TIFFGetVersion (); |
| 5436 | 7356 | int | |
| 5437 | int main() { | 7357 | main () |
| 5438 | TIFFGetVersion() | 7358 | { |
| 5439 | ; return 0; } | 7359 | TIFFGetVersion (); |
| 5440 | EOF | 7360 | ; |
| 5441 | if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7361 | return 0; |
| 5442 | rm -rf conftest* | 7362 | } |
| 5443 | eval "ac_cv_lib_$ac_lib_var=yes" | 7363 | _ACEOF |
| 5444 | else | 7364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5445 | echo "configure: failed program was:" >&5 | 7365 | if { (eval echo "$as_me:7365: \"$ac_link\"") >&5 |
| 5446 | cat conftest.$ac_ext >&5 | 7366 | (eval $ac_link) 2>&5 |
| 5447 | rm -rf conftest* | 7367 | ac_status=$? |
| 5448 | eval "ac_cv_lib_$ac_lib_var=no" | 7368 | echo "$as_me:7368: \$? = $ac_status" >&5 |
| 5449 | fi | 7369 | (exit $ac_status); } && |
| 5450 | rm -f conftest* | 7370 | { ac_try='test -s conftest$ac_exeext' |
| 5451 | LIBS="$ac_save_LIBS" | 7371 | { (eval echo "$as_me:7371: \"$ac_try\"") >&5 |
| 5452 | 7372 | (eval $ac_try) 2>&5 | |
| 5453 | fi | 7373 | ac_status=$? |
| 5454 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 7374 | echo "$as_me:7374: \$? = $ac_status" >&5 |
| 5455 | echo "$ac_t""yes" 1>&6 | 7375 | (exit $ac_status); }; }; then |
| 7376 | ac_cv_lib_tiff_TIFFGetVersion=yes | ||
| 7377 | else | ||
| 7378 | echo "$as_me: failed program was:" >&5 | ||
| 7379 | cat conftest.$ac_ext >&5 | ||
| 7380 | ac_cv_lib_tiff_TIFFGetVersion=no | ||
| 7381 | fi | ||
| 7382 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7383 | LIBS=$ac_check_lib_save_LIBS | ||
| 7384 | fi | ||
| 7385 | echo "$as_me:7385: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 | ||
| 7386 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 | ||
| 7387 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | ||
| 5456 | HAVE_TIFF=yes | 7388 | HAVE_TIFF=yes |
| 5457 | else | ||
| 5458 | echo "$ac_t""no" 1>&6 | ||
| 5459 | fi | 7389 | fi |
| 5460 | 7390 | ||
| 5461 | else | ||
| 5462 | echo "$ac_t""no" 1>&6 | ||
| 5463 | fi | 7391 | fi |
| 5464 | 7392 | ||
| 5465 | fi | 7393 | fi |
| 5466 | 7394 | ||
| 5467 | if test "${HAVE_TIFF}" = "yes"; then | 7395 | if test "${HAVE_TIFF}" = "yes"; then |
| 5468 | cat >> confdefs.h <<\EOF | 7396 | cat >>confdefs.h <<\EOF |
| 5469 | #define HAVE_TIFF 1 | 7397 | #define HAVE_TIFF 1 |
| 5470 | EOF | 7398 | EOF |
| 5471 | 7399 | ||
| 5472 | fi | 7400 | fi |
| 5473 | fi | 7401 | fi |
| 5474 | 7402 | ||
| 5475 | ### Use -lgif if available, unless `--with-gif=no'. | 7403 | ### Use -lgif if available, unless `--with-gif=no'. |
| 5476 | HAVE_GIF=no | 7404 | HAVE_GIF=no |
| 5477 | if test "${HAVE_X11}" = "yes"; then | 7405 | if test "${HAVE_X11}" = "yes"; then |
| 5478 | if test "${with_gif}" != "no"; then | 7406 | if test "${with_gif}" != "no"; then |
| 5479 | ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 7407 | echo "$as_me:7407: checking for gif_lib.h" >&5 |
| 5480 | echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 7408 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
| 5481 | echo "configure:5482: checking for gif_lib.h" >&5 | 7409 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
| 5482 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5483 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5484 | else | 7411 | else |
| 5485 | cat > conftest.$ac_ext <<EOF | 7412 | cat >conftest.$ac_ext <<_ACEOF |
| 5486 | #line 5487 "configure" | 7413 | #line 7413 "configure" |
| 5487 | #include "confdefs.h" | 7414 | #include "confdefs.h" |
| 5488 | #include <gif_lib.h> | 7415 | #include <gif_lib.h> |
| 5489 | EOF | 7416 | _ACEOF |
| 5490 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7417 | if { (eval echo "$as_me:7417: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5491 | { (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5492 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7419 | ac_status=$? |
| 5493 | if test -z "$ac_err"; then | 7420 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5494 | rm -rf conftest* | 7421 | rm -f conftest.er1 |
| 5495 | eval "ac_cv_header_$ac_safe=yes" | 7422 | cat conftest.err >&5 |
| 7423 | echo "$as_me:7423: \$? = $ac_status" >&5 | ||
| 7424 | (exit $ac_status); } >/dev/null; then | ||
| 7425 | if test -s conftest.err; then | ||
| 7426 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 7427 | else | ||
| 7428 | ac_cpp_err= | ||
| 7429 | fi | ||
| 7430 | else | ||
| 7431 | ac_cpp_err=yes | ||
| 7432 | fi | ||
| 7433 | if test -z "$ac_cpp_err"; then | ||
| 7434 | ac_cv_header_gif_lib_h=yes | ||
| 5496 | else | 7435 | else |
| 5497 | echo "$ac_err" >&5 | 7436 | echo "$as_me: failed program was:" >&5 |
| 5498 | echo "configure: failed program was:" >&5 | ||
| 5499 | cat conftest.$ac_ext >&5 | 7437 | cat conftest.$ac_ext >&5 |
| 5500 | rm -rf conftest* | 7438 | ac_cv_header_gif_lib_h=no |
| 5501 | eval "ac_cv_header_$ac_safe=no" | ||
| 5502 | fi | 7439 | fi |
| 5503 | rm -f conftest* | 7440 | rm -f conftest.err conftest.$ac_ext |
| 5504 | fi | 7441 | fi |
| 5505 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 7442 | echo "$as_me:7442: result: $ac_cv_header_gif_lib_h" >&5 |
| 5506 | echo "$ac_t""yes" 1>&6 | 7443 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
| 5507 | echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 7444 | if test $ac_cv_header_gif_lib_h = yes; then |
| 5508 | echo "configure:5509: checking for DGifOpen in -lungif" >&5 | 7445 | echo "$as_me:7445: checking for DGifOpen in -lungif" >&5 |
| 5509 | ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 7446 | echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6 |
| 5510 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7447 | if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then |
| 5511 | echo $ac_n "(cached) $ac_c" 1>&6 | 7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5512 | else | 7449 | else |
| 5513 | ac_save_LIBS="$LIBS" | 7450 | ac_check_lib_save_LIBS=$LIBS |
| 5514 | LIBS="-lungif $LIBS" | 7451 | LIBS="-lungif $LIBS" |
| 5515 | cat > conftest.$ac_ext <<EOF | 7452 | cat >conftest.$ac_ext <<_ACEOF |
| 5516 | #line 5517 "configure" | 7453 | #line 7453 "configure" |
| 5517 | #include "confdefs.h" | 7454 | #include "confdefs.h" |
| 7455 | |||
| 5518 | /* Override any gcc2 internal prototype to avoid an error. */ | 7456 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7457 | #ifdef __cplusplus | ||
| 7458 | extern "C" | ||
| 7459 | #endif | ||
| 5519 | /* We use char because int might match the return type of a gcc2 | 7460 | /* We use char because int might match the return type of a gcc2 |
| 5520 | builtin and then its argument prototype would still apply. */ | 7461 | builtin and then its argument prototype would still apply. */ |
| 5521 | char DGifOpen(); | 7462 | char DGifOpen (); |
| 5522 | 7463 | int | |
| 5523 | int main() { | 7464 | main () |
| 5524 | DGifOpen() | 7465 | { |
| 5525 | ; return 0; } | 7466 | DGifOpen (); |
| 5526 | EOF | 7467 | ; |
| 5527 | if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7468 | return 0; |
| 5528 | rm -rf conftest* | 7469 | } |
| 5529 | eval "ac_cv_lib_$ac_lib_var=yes" | 7470 | _ACEOF |
| 5530 | else | 7471 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5531 | echo "configure: failed program was:" >&5 | 7472 | if { (eval echo "$as_me:7472: \"$ac_link\"") >&5 |
| 5532 | cat conftest.$ac_ext >&5 | 7473 | (eval $ac_link) 2>&5 |
| 5533 | rm -rf conftest* | 7474 | ac_status=$? |
| 5534 | eval "ac_cv_lib_$ac_lib_var=no" | 7475 | echo "$as_me:7475: \$? = $ac_status" >&5 |
| 5535 | fi | 7476 | (exit $ac_status); } && |
| 5536 | rm -f conftest* | 7477 | { ac_try='test -s conftest$ac_exeext' |
| 5537 | LIBS="$ac_save_LIBS" | 7478 | { (eval echo "$as_me:7478: \"$ac_try\"") >&5 |
| 5538 | 7479 | (eval $ac_try) 2>&5 | |
| 5539 | fi | 7480 | ac_status=$? |
| 5540 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 7481 | echo "$as_me:7481: \$? = $ac_status" >&5 |
| 5541 | echo "$ac_t""yes" 1>&6 | 7482 | (exit $ac_status); }; }; then |
| 7483 | ac_cv_lib_ungif_DGifOpen=yes | ||
| 7484 | else | ||
| 7485 | echo "$as_me: failed program was:" >&5 | ||
| 7486 | cat conftest.$ac_ext >&5 | ||
| 7487 | ac_cv_lib_ungif_DGifOpen=no | ||
| 7488 | fi | ||
| 7489 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7490 | LIBS=$ac_check_lib_save_LIBS | ||
| 7491 | fi | ||
| 7492 | echo "$as_me:7492: result: $ac_cv_lib_ungif_DGifOpen" >&5 | ||
| 7493 | echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6 | ||
| 7494 | if test $ac_cv_lib_ungif_DGifOpen = yes; then | ||
| 5542 | HAVE_GIF=yes | 7495 | HAVE_GIF=yes |
| 5543 | else | ||
| 5544 | echo "$ac_t""no" 1>&6 | ||
| 5545 | fi | 7496 | fi |
| 5546 | 7497 | ||
| 5547 | else | ||
| 5548 | echo "$ac_t""no" 1>&6 | ||
| 5549 | fi | 7498 | fi |
| 5550 | 7499 | ||
| 5551 | fi | 7500 | fi |
| 5552 | 7501 | ||
| 5553 | if test "${HAVE_GIF}" = "yes"; then | 7502 | if test "${HAVE_GIF}" = "yes"; then |
| 5554 | cat >> confdefs.h <<\EOF | 7503 | cat >>confdefs.h <<\EOF |
| 5555 | #define HAVE_GIF 1 | 7504 | #define HAVE_GIF 1 |
| 5556 | EOF | 7505 | EOF |
| 5557 | 7506 | ||
| @@ -5559,34 +7508,47 @@ EOF | |||
| 5559 | fi | 7508 | fi |
| 5560 | 7509 | ||
| 5561 | # If netdb.h doesn't declare h_errno, we must declare it by hand. | 7510 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
| 5562 | echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 7511 | echo "$as_me:7511: checking whether netdb declares h_errno" >&5 |
| 5563 | echo "configure:5564: checking whether netdb declares h_errno" >&5 | 7512 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
| 5564 | if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 7513 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then |
| 5565 | echo $ac_n "(cached) $ac_c" 1>&6 | 7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5566 | else | 7515 | else |
| 5567 | cat > conftest.$ac_ext <<EOF | 7516 | cat >conftest.$ac_ext <<_ACEOF |
| 5568 | #line 5569 "configure" | 7517 | #line 7517 "configure" |
| 5569 | #include "confdefs.h" | 7518 | #include "confdefs.h" |
| 5570 | #include <netdb.h> | 7519 | #include <netdb.h> |
| 5571 | int main() { | 7520 | int |
| 7521 | main () | ||
| 7522 | { | ||
| 5572 | return h_errno; | 7523 | return h_errno; |
| 5573 | ; return 0; } | 7524 | ; |
| 5574 | EOF | 7525 | return 0; |
| 5575 | if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7526 | } |
| 5576 | rm -rf conftest* | 7527 | _ACEOF |
| 7528 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 7529 | if { (eval echo "$as_me:7529: \"$ac_link\"") >&5 | ||
| 7530 | (eval $ac_link) 2>&5 | ||
| 7531 | ac_status=$? | ||
| 7532 | echo "$as_me:7532: \$? = $ac_status" >&5 | ||
| 7533 | (exit $ac_status); } && | ||
| 7534 | { ac_try='test -s conftest$ac_exeext' | ||
| 7535 | { (eval echo "$as_me:7535: \"$ac_try\"") >&5 | ||
| 7536 | (eval $ac_try) 2>&5 | ||
| 7537 | ac_status=$? | ||
| 7538 | echo "$as_me:7538: \$? = $ac_status" >&5 | ||
| 7539 | (exit $ac_status); }; }; then | ||
| 5577 | emacs_cv_netdb_declares_h_errno=yes | 7540 | emacs_cv_netdb_declares_h_errno=yes |
| 5578 | else | 7541 | else |
| 5579 | echo "configure: failed program was:" >&5 | 7542 | echo "$as_me: failed program was:" >&5 |
| 5580 | cat conftest.$ac_ext >&5 | 7543 | cat conftest.$ac_ext >&5 |
| 5581 | rm -rf conftest* | 7544 | emacs_cv_netdb_declares_h_errno=no |
| 5582 | emacs_cv_netdb_declares_h_errno=no | ||
| 5583 | fi | 7545 | fi |
| 5584 | rm -f conftest* | 7546 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5585 | fi | 7547 | fi |
| 5586 | 7548 | echo "$as_me:7548: result: $emacs_cv_netdb_declares_h_errno" >&5 | |
| 5587 | echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 | 7549 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
| 5588 | if test $emacs_cv_netdb_declares_h_errno = yes; then | 7550 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
| 5589 | cat >> confdefs.h <<\EOF | 7551 | cat >>confdefs.h <<\EOF |
| 5590 | #define HAVE_H_ERRNO 1 | 7552 | #define HAVE_H_ERRNO 1 |
| 5591 | EOF | 7553 | EOF |
| 5592 | 7554 | ||
| @@ -5594,48 +7556,61 @@ fi | |||
| 5594 | 7556 | ||
| 5595 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 7557 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5596 | # for constant arguments. Useless! | 7558 | # for constant arguments. Useless! |
| 5597 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 7559 | echo "$as_me:7559: checking for working alloca.h" >&5 |
| 5598 | echo "configure:5599: checking for working alloca.h" >&5 | 7560 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 5599 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 7561 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5600 | echo $ac_n "(cached) $ac_c" 1>&6 | 7562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5601 | else | 7563 | else |
| 5602 | cat > conftest.$ac_ext <<EOF | 7564 | cat >conftest.$ac_ext <<_ACEOF |
| 5603 | #line 5604 "configure" | 7565 | #line 7565 "configure" |
| 5604 | #include "confdefs.h" | 7566 | #include "confdefs.h" |
| 5605 | #include <alloca.h> | 7567 | #include <alloca.h> |
| 5606 | int main() { | 7568 | int |
| 5607 | char *p = alloca(2 * sizeof(int)); | 7569 | main () |
| 5608 | ; return 0; } | 7570 | { |
| 5609 | EOF | 7571 | char *p = (char *) alloca (2 * sizeof (int)); |
| 5610 | if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7572 | ; |
| 5611 | rm -rf conftest* | 7573 | return 0; |
| 5612 | ac_cv_header_alloca_h=yes | 7574 | } |
| 5613 | else | 7575 | _ACEOF |
| 5614 | echo "configure: failed program was:" >&5 | 7576 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5615 | cat conftest.$ac_ext >&5 | 7577 | if { (eval echo "$as_me:7577: \"$ac_link\"") >&5 |
| 5616 | rm -rf conftest* | 7578 | (eval $ac_link) 2>&5 |
| 5617 | ac_cv_header_alloca_h=no | 7579 | ac_status=$? |
| 5618 | fi | 7580 | echo "$as_me:7580: \$? = $ac_status" >&5 |
| 5619 | rm -f conftest* | 7581 | (exit $ac_status); } && |
| 5620 | fi | 7582 | { ac_try='test -s conftest$ac_exeext' |
| 5621 | 7583 | { (eval echo "$as_me:7583: \"$ac_try\"") >&5 | |
| 5622 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | 7584 | (eval $ac_try) 2>&5 |
| 5623 | if test $ac_cv_header_alloca_h = yes; then | 7585 | ac_status=$? |
| 5624 | cat >> confdefs.h <<\EOF | 7586 | echo "$as_me:7586: \$? = $ac_status" >&5 |
| 7587 | (exit $ac_status); }; }; then | ||
| 7588 | ac_cv_working_alloca_h=yes | ||
| 7589 | else | ||
| 7590 | echo "$as_me: failed program was:" >&5 | ||
| 7591 | cat conftest.$ac_ext >&5 | ||
| 7592 | ac_cv_working_alloca_h=no | ||
| 7593 | fi | ||
| 7594 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7595 | fi | ||
| 7596 | echo "$as_me:7596: result: $ac_cv_working_alloca_h" >&5 | ||
| 7597 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | ||
| 7598 | if test $ac_cv_working_alloca_h = yes; then | ||
| 7599 | |||
| 7600 | cat >>confdefs.h <<\EOF | ||
| 5625 | #define HAVE_ALLOCA_H 1 | 7601 | #define HAVE_ALLOCA_H 1 |
| 5626 | EOF | 7602 | EOF |
| 5627 | 7603 | ||
| 5628 | fi | 7604 | fi |
| 5629 | 7605 | ||
| 5630 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 7606 | echo "$as_me:7606: checking for alloca" >&5 |
| 5631 | echo "configure:5632: checking for alloca" >&5 | 7607 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 5632 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 7608 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 5633 | echo $ac_n "(cached) $ac_c" 1>&6 | 7609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5634 | else | 7610 | else |
| 5635 | cat > conftest.$ac_ext <<EOF | 7611 | cat >conftest.$ac_ext <<_ACEOF |
| 5636 | #line 5637 "configure" | 7612 | #line 7612 "configure" |
| 5637 | #include "confdefs.h" | 7613 | #include "confdefs.h" |
| 5638 | |||
| 5639 | #ifdef __GNUC__ | 7614 | #ifdef __GNUC__ |
| 5640 | # define alloca __builtin_alloca | 7615 | # define alloca __builtin_alloca |
| 5641 | #else | 7616 | #else |
| @@ -5657,48 +7632,62 @@ char *alloca (); | |||
| 5657 | # endif | 7632 | # endif |
| 5658 | #endif | 7633 | #endif |
| 5659 | 7634 | ||
| 5660 | int main() { | 7635 | int |
| 5661 | char *p = (char *) alloca(1); | 7636 | main () |
| 5662 | ; return 0; } | 7637 | { |
| 5663 | EOF | 7638 | char *p = (char *) alloca (1); |
| 5664 | if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7639 | ; |
| 5665 | rm -rf conftest* | 7640 | return 0; |
| 7641 | } | ||
| 7642 | _ACEOF | ||
| 7643 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 7644 | if { (eval echo "$as_me:7644: \"$ac_link\"") >&5 | ||
| 7645 | (eval $ac_link) 2>&5 | ||
| 7646 | ac_status=$? | ||
| 7647 | echo "$as_me:7647: \$? = $ac_status" >&5 | ||
| 7648 | (exit $ac_status); } && | ||
| 7649 | { ac_try='test -s conftest$ac_exeext' | ||
| 7650 | { (eval echo "$as_me:7650: \"$ac_try\"") >&5 | ||
| 7651 | (eval $ac_try) 2>&5 | ||
| 7652 | ac_status=$? | ||
| 7653 | echo "$as_me:7653: \$? = $ac_status" >&5 | ||
| 7654 | (exit $ac_status); }; }; then | ||
| 5666 | ac_cv_func_alloca_works=yes | 7655 | ac_cv_func_alloca_works=yes |
| 5667 | else | 7656 | else |
| 5668 | echo "configure: failed program was:" >&5 | 7657 | echo "$as_me: failed program was:" >&5 |
| 5669 | cat conftest.$ac_ext >&5 | 7658 | cat conftest.$ac_ext >&5 |
| 5670 | rm -rf conftest* | 7659 | ac_cv_func_alloca_works=no |
| 5671 | ac_cv_func_alloca_works=no | ||
| 5672 | fi | 7660 | fi |
| 5673 | rm -f conftest* | 7661 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5674 | fi | 7662 | fi |
| 7663 | echo "$as_me:7663: result: $ac_cv_func_alloca_works" >&5 | ||
| 7664 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | ||
| 5675 | 7665 | ||
| 5676 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | ||
| 5677 | if test $ac_cv_func_alloca_works = yes; then | 7666 | if test $ac_cv_func_alloca_works = yes; then |
| 5678 | cat >> confdefs.h <<\EOF | 7667 | |
| 7668 | cat >>confdefs.h <<\EOF | ||
| 5679 | #define HAVE_ALLOCA 1 | 7669 | #define HAVE_ALLOCA 1 |
| 5680 | EOF | 7670 | EOF |
| 5681 | 7671 | ||
| 5682 | fi | 7672 | else |
| 5683 | |||
| 5684 | if test $ac_cv_func_alloca_works = no; then | ||
| 5685 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 7673 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5686 | # that cause trouble. Some versions do not even contain alloca or | 7674 | # that cause trouble. Some versions do not even contain alloca or |
| 5687 | # contain a buggy version. If you still want to use their alloca, | 7675 | # contain a buggy version. If you still want to use their alloca, |
| 5688 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 7676 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5689 | ALLOCA=alloca.${ac_objext} | 7677 | |
| 5690 | cat >> confdefs.h <<\EOF | 7678 | ALLOCA=alloca.$ac_objext |
| 7679 | |||
| 7680 | cat >>confdefs.h <<\EOF | ||
| 5691 | #define C_ALLOCA 1 | 7681 | #define C_ALLOCA 1 |
| 5692 | EOF | 7682 | EOF |
| 5693 | 7683 | ||
| 5694 | 7684 | echo "$as_me:7684: checking whether \`alloca.c' needs Cray hooks" >&5 | |
| 5695 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 7685 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 5696 | echo "configure:5697: checking whether alloca needs Cray hooks" >&5 | 7686 | if test "${ac_cv_os_cray+set}" = set; then |
| 5697 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 7687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5698 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5699 | else | 7688 | else |
| 5700 | cat > conftest.$ac_ext <<EOF | 7689 | cat >conftest.$ac_ext <<_ACEOF |
| 5701 | #line 5702 "configure" | 7690 | #line 7690 "configure" |
| 5702 | #include "confdefs.h" | 7691 | #include "confdefs.h" |
| 5703 | #if defined(CRAY) && ! defined(CRAY2) | 7692 | #if defined(CRAY) && ! defined(CRAY2) |
| 5704 | webecray | 7693 | webecray |
| @@ -5706,88 +7695,103 @@ webecray | |||
| 5706 | wenotbecray | 7695 | wenotbecray |
| 5707 | #endif | 7696 | #endif |
| 5708 | 7697 | ||
| 5709 | EOF | 7698 | _ACEOF |
| 5710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 7699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5711 | egrep "webecray" >/dev/null 2>&1; then | 7700 | egrep "webecray" >/dev/null 2>&1; then |
| 5712 | rm -rf conftest* | ||
| 5713 | ac_cv_os_cray=yes | 7701 | ac_cv_os_cray=yes |
| 5714 | else | 7702 | else |
| 5715 | rm -rf conftest* | ||
| 5716 | ac_cv_os_cray=no | 7703 | ac_cv_os_cray=no |
| 5717 | fi | 7704 | fi |
| 5718 | rm -f conftest* | 7705 | rm -f conftest* |
| 5719 | 7706 | ||
| 5720 | fi | 7707 | fi |
| 5721 | 7708 | echo "$as_me:7708: result: $ac_cv_os_cray" >&5 | |
| 5722 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | 7709 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 5723 | if test $ac_cv_os_cray = yes; then | 7710 | if test $ac_cv_os_cray = yes; then |
| 5724 | for ac_func in _getb67 GETB67 getb67; do | 7711 | for ac_func in _getb67 GETB67 getb67; do |
| 5725 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7712 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5726 | echo "configure:5727: checking for $ac_func" >&5 | 7713 | echo "$as_me:7713: checking for $ac_func" >&5 |
| 5727 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7714 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5728 | echo $ac_n "(cached) $ac_c" 1>&6 | 7715 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 5729 | else | 7717 | else |
| 5730 | cat > conftest.$ac_ext <<EOF | 7718 | cat >conftest.$ac_ext <<_ACEOF |
| 5731 | #line 5732 "configure" | 7719 | #line 7719 "configure" |
| 5732 | #include "confdefs.h" | 7720 | #include "confdefs.h" |
| 5733 | /* System header to define __stub macros and hopefully few prototypes, | 7721 | /* System header to define __stub macros and hopefully few prototypes, |
| 5734 | which can conflict with char $ac_func(); below. */ | 7722 | which can conflict with char $ac_func (); below. */ |
| 5735 | #include <assert.h> | 7723 | #include <assert.h> |
| 5736 | /* Override any gcc2 internal prototype to avoid an error. */ | 7724 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7725 | #ifdef __cplusplus | ||
| 7726 | extern "C" | ||
| 7727 | #endif | ||
| 5737 | /* We use char because int might match the return type of a gcc2 | 7728 | /* We use char because int might match the return type of a gcc2 |
| 5738 | builtin and then its argument prototype would still apply. */ | 7729 | builtin and then its argument prototype would still apply. */ |
| 5739 | char $ac_func(); | 7730 | char $ac_func (); |
| 5740 | 7731 | char (*f) (); | |
| 5741 | int main() { | ||
| 5742 | 7732 | ||
| 7733 | int | ||
| 7734 | main () | ||
| 7735 | { | ||
| 5743 | /* The GNU C library defines this for functions which it implements | 7736 | /* The GNU C library defines this for functions which it implements |
| 5744 | to always fail with ENOSYS. Some functions are actually named | 7737 | to always fail with ENOSYS. Some functions are actually named |
| 5745 | something starting with __ and the normal name is an alias. */ | 7738 | something starting with __ and the normal name is an alias. */ |
| 5746 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 7739 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5747 | choke me | 7740 | choke me |
| 5748 | #else | 7741 | #else |
| 5749 | $ac_func(); | 7742 | f = $ac_func; |
| 5750 | #endif | 7743 | #endif |
| 5751 | 7744 | ||
| 5752 | ; return 0; } | 7745 | ; |
| 5753 | EOF | 7746 | return 0; |
| 5754 | if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7747 | } |
| 5755 | rm -rf conftest* | 7748 | _ACEOF |
| 5756 | eval "ac_cv_func_$ac_func=yes" | 7749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5757 | else | 7750 | if { (eval echo "$as_me:7750: \"$ac_link\"") >&5 |
| 5758 | echo "configure: failed program was:" >&5 | 7751 | (eval $ac_link) 2>&5 |
| 5759 | cat conftest.$ac_ext >&5 | 7752 | ac_status=$? |
| 5760 | rm -rf conftest* | 7753 | echo "$as_me:7753: \$? = $ac_status" >&5 |
| 5761 | eval "ac_cv_func_$ac_func=no" | 7754 | (exit $ac_status); } && |
| 5762 | fi | 7755 | { ac_try='test -s conftest$ac_exeext' |
| 5763 | rm -f conftest* | 7756 | { (eval echo "$as_me:7756: \"$ac_try\"") >&5 |
| 5764 | fi | 7757 | (eval $ac_try) 2>&5 |
| 5765 | 7758 | ac_status=$? | |
| 5766 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 7759 | echo "$as_me:7759: \$? = $ac_status" >&5 |
| 5767 | echo "$ac_t""yes" 1>&6 | 7760 | (exit $ac_status); }; }; then |
| 5768 | cat >> confdefs.h <<EOF | 7761 | eval "$as_ac_var=yes" |
| 7762 | else | ||
| 7763 | echo "$as_me: failed program was:" >&5 | ||
| 7764 | cat conftest.$ac_ext >&5 | ||
| 7765 | eval "$as_ac_var=no" | ||
| 7766 | fi | ||
| 7767 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7768 | fi | ||
| 7769 | echo "$as_me:7769: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 7770 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 7771 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 7772 | |||
| 7773 | cat >>confdefs.h <<EOF | ||
| 5769 | #define CRAY_STACKSEG_END $ac_func | 7774 | #define CRAY_STACKSEG_END $ac_func |
| 5770 | EOF | 7775 | EOF |
| 5771 | 7776 | ||
| 5772 | break | 7777 | break |
| 5773 | else | ||
| 5774 | echo "$ac_t""no" 1>&6 | ||
| 5775 | fi | 7778 | fi |
| 5776 | 7779 | ||
| 5777 | done | 7780 | done |
| 5778 | fi | 7781 | fi |
| 5779 | 7782 | ||
| 5780 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 7783 | echo "$as_me:7783: checking stack direction for C alloca" >&5 |
| 5781 | echo "configure:5782: checking stack direction for C alloca" >&5 | 7784 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 5782 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 7785 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 5783 | echo $ac_n "(cached) $ac_c" 1>&6 | 7786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5784 | else | 7787 | else |
| 5785 | if test "$cross_compiling" = yes; then | 7788 | if test "$cross_compiling" = yes; then |
| 5786 | ac_cv_c_stack_direction=0 | 7789 | ac_cv_c_stack_direction=0 |
| 5787 | else | 7790 | else |
| 5788 | cat > conftest.$ac_ext <<EOF | 7791 | cat >conftest.$ac_ext <<_ACEOF |
| 5789 | #line 5790 "configure" | 7792 | #line 7792 "configure" |
| 5790 | #include "confdefs.h" | 7793 | #include "confdefs.h" |
| 7794 | int | ||
| 5791 | find_stack_direction () | 7795 | find_stack_direction () |
| 5792 | { | 7796 | { |
| 5793 | static char *addr = 0; | 7797 | static char *addr = 0; |
| @@ -5800,176 +7804,220 @@ find_stack_direction () | |||
| 5800 | else | 7804 | else |
| 5801 | return (&dummy > addr) ? 1 : -1; | 7805 | return (&dummy > addr) ? 1 : -1; |
| 5802 | } | 7806 | } |
| 7807 | |||
| 7808 | int | ||
| 5803 | main () | 7809 | main () |
| 5804 | { | 7810 | { |
| 5805 | exit (find_stack_direction() < 0); | 7811 | exit (find_stack_direction () < 0); |
| 5806 | } | 7812 | } |
| 5807 | EOF | 7813 | _ACEOF |
| 5808 | if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7814 | rm -f conftest$ac_exeext |
| 5809 | then | 7815 | if { (eval echo "$as_me:7815: \"$ac_link\"") >&5 |
| 7816 | (eval $ac_link) 2>&5 | ||
| 7817 | ac_status=$? | ||
| 7818 | echo "$as_me:7818: \$? = $ac_status" >&5 | ||
| 7819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 7820 | { (eval echo "$as_me:7820: \"$ac_try\"") >&5 | ||
| 7821 | (eval $ac_try) 2>&5 | ||
| 7822 | ac_status=$? | ||
| 7823 | echo "$as_me:7823: \$? = $ac_status" >&5 | ||
| 7824 | (exit $ac_status); }; }; then | ||
| 5810 | ac_cv_c_stack_direction=1 | 7825 | ac_cv_c_stack_direction=1 |
| 5811 | else | 7826 | else |
| 5812 | echo "configure: failed program was:" >&5 | 7827 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5813 | cat conftest.$ac_ext >&5 | 7828 | echo "$as_me: failed program was:" >&5 |
| 5814 | rm -fr conftest* | 7829 | cat conftest.$ac_ext >&5 |
| 5815 | ac_cv_c_stack_direction=-1 | 7830 | ac_cv_c_stack_direction=-1 |
| 5816 | fi | 7831 | fi |
| 5817 | rm -fr conftest* | 7832 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5818 | fi | 7833 | fi |
| 5819 | |||
| 5820 | fi | 7834 | fi |
| 7835 | echo "$as_me:7835: result: $ac_cv_c_stack_direction" >&5 | ||
| 7836 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | ||
| 5821 | 7837 | ||
| 5822 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | 7838 | cat >>confdefs.h <<EOF |
| 5823 | cat >> confdefs.h <<EOF | ||
| 5824 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 7839 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 5825 | EOF | 7840 | EOF |
| 5826 | 7841 | ||
| 5827 | fi | 7842 | fi |
| 5828 | 7843 | ||
| 5829 | |||
| 5830 | # fmod, logb, and frexp are found in -lm on most systems. | 7844 | # fmod, logb, and frexp are found in -lm on most systems. |
| 5831 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 7845 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
| 5832 | echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 7846 | |
| 5833 | echo "configure:5834: checking for sqrt in -lm" >&5 | 7847 | echo "$as_me:7847: checking for sqrt in -lm" >&5 |
| 5834 | ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 7848 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 5835 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7849 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 5836 | echo $ac_n "(cached) $ac_c" 1>&6 | 7850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5837 | else | 7851 | else |
| 5838 | ac_save_LIBS="$LIBS" | 7852 | ac_check_lib_save_LIBS=$LIBS |
| 5839 | LIBS="-lm $LIBS" | 7853 | LIBS="-lm $LIBS" |
| 5840 | cat > conftest.$ac_ext <<EOF | 7854 | cat >conftest.$ac_ext <<_ACEOF |
| 5841 | #line 5842 "configure" | 7855 | #line 7855 "configure" |
| 5842 | #include "confdefs.h" | 7856 | #include "confdefs.h" |
| 7857 | |||
| 5843 | /* Override any gcc2 internal prototype to avoid an error. */ | 7858 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7859 | #ifdef __cplusplus | ||
| 7860 | extern "C" | ||
| 7861 | #endif | ||
| 5844 | /* We use char because int might match the return type of a gcc2 | 7862 | /* We use char because int might match the return type of a gcc2 |
| 5845 | builtin and then its argument prototype would still apply. */ | 7863 | builtin and then its argument prototype would still apply. */ |
| 5846 | char sqrt(); | 7864 | char sqrt (); |
| 5847 | 7865 | int | |
| 5848 | int main() { | 7866 | main () |
| 5849 | sqrt() | 7867 | { |
| 5850 | ; return 0; } | 7868 | sqrt (); |
| 5851 | EOF | 7869 | ; |
| 5852 | if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7870 | return 0; |
| 5853 | rm -rf conftest* | 7871 | } |
| 5854 | eval "ac_cv_lib_$ac_lib_var=yes" | 7872 | _ACEOF |
| 5855 | else | 7873 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5856 | echo "configure: failed program was:" >&5 | 7874 | if { (eval echo "$as_me:7874: \"$ac_link\"") >&5 |
| 5857 | cat conftest.$ac_ext >&5 | 7875 | (eval $ac_link) 2>&5 |
| 5858 | rm -rf conftest* | 7876 | ac_status=$? |
| 5859 | eval "ac_cv_lib_$ac_lib_var=no" | 7877 | echo "$as_me:7877: \$? = $ac_status" >&5 |
| 5860 | fi | 7878 | (exit $ac_status); } && |
| 5861 | rm -f conftest* | 7879 | { ac_try='test -s conftest$ac_exeext' |
| 5862 | LIBS="$ac_save_LIBS" | 7880 | { (eval echo "$as_me:7880: \"$ac_try\"") >&5 |
| 5863 | 7881 | (eval $ac_try) 2>&5 | |
| 5864 | fi | 7882 | ac_status=$? |
| 5865 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 7883 | echo "$as_me:7883: \$? = $ac_status" >&5 |
| 5866 | echo "$ac_t""yes" 1>&6 | 7884 | (exit $ac_status); }; }; then |
| 5867 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 7885 | ac_cv_lib_m_sqrt=yes |
| 5868 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 7886 | else |
| 5869 | cat >> confdefs.h <<EOF | 7887 | echo "$as_me: failed program was:" >&5 |
| 5870 | #define $ac_tr_lib 1 | 7888 | cat conftest.$ac_ext >&5 |
| 7889 | ac_cv_lib_m_sqrt=no | ||
| 7890 | fi | ||
| 7891 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7892 | LIBS=$ac_check_lib_save_LIBS | ||
| 7893 | fi | ||
| 7894 | echo "$as_me:7894: result: $ac_cv_lib_m_sqrt" >&5 | ||
| 7895 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 | ||
| 7896 | if test $ac_cv_lib_m_sqrt = yes; then | ||
| 7897 | cat >>confdefs.h <<EOF | ||
| 7898 | #define HAVE_LIBM 1 | ||
| 5871 | EOF | 7899 | EOF |
| 5872 | 7900 | ||
| 5873 | LIBS="-lm $LIBS" | 7901 | LIBS="-lm $LIBS" |
| 5874 | 7902 | ||
| 5875 | else | ||
| 5876 | echo "$ac_t""no" 1>&6 | ||
| 5877 | fi | 7903 | fi |
| 5878 | 7904 | ||
| 5879 | |||
| 5880 | # Check for mail-locking functions in a "mail" library | 7905 | # Check for mail-locking functions in a "mail" library |
| 5881 | echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 7906 | |
| 5882 | echo "configure:5883: checking for maillock in -lmail" >&5 | 7907 | echo "$as_me:7907: checking for maillock in -lmail" >&5 |
| 5883 | ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 7908 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
| 5884 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7909 | if test "${ac_cv_lib_mail_maillock+set}" = set; then |
| 5885 | echo $ac_n "(cached) $ac_c" 1>&6 | 7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5886 | else | 7911 | else |
| 5887 | ac_save_LIBS="$LIBS" | 7912 | ac_check_lib_save_LIBS=$LIBS |
| 5888 | LIBS="-lmail $LIBS" | 7913 | LIBS="-lmail $LIBS" |
| 5889 | cat > conftest.$ac_ext <<EOF | 7914 | cat >conftest.$ac_ext <<_ACEOF |
| 5890 | #line 5891 "configure" | 7915 | #line 7915 "configure" |
| 5891 | #include "confdefs.h" | 7916 | #include "confdefs.h" |
| 7917 | |||
| 5892 | /* Override any gcc2 internal prototype to avoid an error. */ | 7918 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7919 | #ifdef __cplusplus | ||
| 7920 | extern "C" | ||
| 7921 | #endif | ||
| 5893 | /* We use char because int might match the return type of a gcc2 | 7922 | /* We use char because int might match the return type of a gcc2 |
| 5894 | builtin and then its argument prototype would still apply. */ | 7923 | builtin and then its argument prototype would still apply. */ |
| 5895 | char maillock(); | 7924 | char maillock (); |
| 5896 | 7925 | int | |
| 5897 | int main() { | 7926 | main () |
| 5898 | maillock() | 7927 | { |
| 5899 | ; return 0; } | 7928 | maillock (); |
| 5900 | EOF | 7929 | ; |
| 5901 | if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7930 | return 0; |
| 5902 | rm -rf conftest* | 7931 | } |
| 5903 | eval "ac_cv_lib_$ac_lib_var=yes" | 7932 | _ACEOF |
| 5904 | else | 7933 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5905 | echo "configure: failed program was:" >&5 | 7934 | if { (eval echo "$as_me:7934: \"$ac_link\"") >&5 |
| 5906 | cat conftest.$ac_ext >&5 | 7935 | (eval $ac_link) 2>&5 |
| 5907 | rm -rf conftest* | 7936 | ac_status=$? |
| 5908 | eval "ac_cv_lib_$ac_lib_var=no" | 7937 | echo "$as_me:7937: \$? = $ac_status" >&5 |
| 5909 | fi | 7938 | (exit $ac_status); } && |
| 5910 | rm -f conftest* | 7939 | { ac_try='test -s conftest$ac_exeext' |
| 5911 | LIBS="$ac_save_LIBS" | 7940 | { (eval echo "$as_me:7940: \"$ac_try\"") >&5 |
| 5912 | 7941 | (eval $ac_try) 2>&5 | |
| 5913 | fi | 7942 | ac_status=$? |
| 5914 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 7943 | echo "$as_me:7943: \$? = $ac_status" >&5 |
| 5915 | echo "$ac_t""yes" 1>&6 | 7944 | (exit $ac_status); }; }; then |
| 5916 | ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 7945 | ac_cv_lib_mail_maillock=yes |
| 5917 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 7946 | else |
| 5918 | cat >> confdefs.h <<EOF | 7947 | echo "$as_me: failed program was:" >&5 |
| 5919 | #define $ac_tr_lib 1 | 7948 | cat conftest.$ac_ext >&5 |
| 7949 | ac_cv_lib_mail_maillock=no | ||
| 7950 | fi | ||
| 7951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 7952 | LIBS=$ac_check_lib_save_LIBS | ||
| 7953 | fi | ||
| 7954 | echo "$as_me:7954: result: $ac_cv_lib_mail_maillock" >&5 | ||
| 7955 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 | ||
| 7956 | if test $ac_cv_lib_mail_maillock = yes; then | ||
| 7957 | cat >>confdefs.h <<EOF | ||
| 7958 | #define HAVE_LIBMAIL 1 | ||
| 5920 | EOF | 7959 | EOF |
| 5921 | 7960 | ||
| 5922 | LIBS="-lmail $LIBS" | 7961 | LIBS="-lmail $LIBS" |
| 5923 | 7962 | ||
| 5924 | else | ||
| 5925 | echo "$ac_t""no" 1>&6 | ||
| 5926 | fi | 7963 | fi |
| 5927 | 7964 | ||
| 5928 | echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 7965 | echo "$as_me:7965: checking for maillock in -llockfile" >&5 |
| 5929 | echo "configure:5930: checking for maillock in -llockfile" >&5 | 7966 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
| 5930 | ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 7967 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then |
| 5931 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5932 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5933 | else | 7969 | else |
| 5934 | ac_save_LIBS="$LIBS" | 7970 | ac_check_lib_save_LIBS=$LIBS |
| 5935 | LIBS="-llockfile $LIBS" | 7971 | LIBS="-llockfile $LIBS" |
| 5936 | cat > conftest.$ac_ext <<EOF | 7972 | cat >conftest.$ac_ext <<_ACEOF |
| 5937 | #line 5938 "configure" | 7973 | #line 7973 "configure" |
| 5938 | #include "confdefs.h" | 7974 | #include "confdefs.h" |
| 7975 | |||
| 5939 | /* Override any gcc2 internal prototype to avoid an error. */ | 7976 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7977 | #ifdef __cplusplus | ||
| 7978 | extern "C" | ||
| 7979 | #endif | ||
| 5940 | /* We use char because int might match the return type of a gcc2 | 7980 | /* We use char because int might match the return type of a gcc2 |
| 5941 | builtin and then its argument prototype would still apply. */ | 7981 | builtin and then its argument prototype would still apply. */ |
| 5942 | char maillock(); | 7982 | char maillock (); |
| 5943 | 7983 | int | |
| 5944 | int main() { | 7984 | main () |
| 5945 | maillock() | 7985 | { |
| 5946 | ; return 0; } | 7986 | maillock (); |
| 5947 | EOF | 7987 | ; |
| 5948 | if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7988 | return 0; |
| 5949 | rm -rf conftest* | 7989 | } |
| 5950 | eval "ac_cv_lib_$ac_lib_var=yes" | 7990 | _ACEOF |
| 5951 | else | 7991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5952 | echo "configure: failed program was:" >&5 | 7992 | if { (eval echo "$as_me:7992: \"$ac_link\"") >&5 |
| 5953 | cat conftest.$ac_ext >&5 | 7993 | (eval $ac_link) 2>&5 |
| 5954 | rm -rf conftest* | 7994 | ac_status=$? |
| 5955 | eval "ac_cv_lib_$ac_lib_var=no" | 7995 | echo "$as_me:7995: \$? = $ac_status" >&5 |
| 5956 | fi | 7996 | (exit $ac_status); } && |
| 5957 | rm -f conftest* | 7997 | { ac_try='test -s conftest$ac_exeext' |
| 5958 | LIBS="$ac_save_LIBS" | 7998 | { (eval echo "$as_me:7998: \"$ac_try\"") >&5 |
| 5959 | 7999 | (eval $ac_try) 2>&5 | |
| 5960 | fi | 8000 | ac_status=$? |
| 5961 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8001 | echo "$as_me:8001: \$? = $ac_status" >&5 |
| 5962 | echo "$ac_t""yes" 1>&6 | 8002 | (exit $ac_status); }; }; then |
| 5963 | ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 8003 | ac_cv_lib_lockfile_maillock=yes |
| 5964 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 8004 | else |
| 5965 | cat >> confdefs.h <<EOF | 8005 | echo "$as_me: failed program was:" >&5 |
| 5966 | #define $ac_tr_lib 1 | 8006 | cat conftest.$ac_ext >&5 |
| 8007 | ac_cv_lib_lockfile_maillock=no | ||
| 8008 | fi | ||
| 8009 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8010 | LIBS=$ac_check_lib_save_LIBS | ||
| 8011 | fi | ||
| 8012 | echo "$as_me:8012: result: $ac_cv_lib_lockfile_maillock" >&5 | ||
| 8013 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 | ||
| 8014 | if test $ac_cv_lib_lockfile_maillock = yes; then | ||
| 8015 | cat >>confdefs.h <<EOF | ||
| 8016 | #define HAVE_LIBLOCKFILE 1 | ||
| 5967 | EOF | 8017 | EOF |
| 5968 | 8018 | ||
| 5969 | LIBS="-llockfile $LIBS" | 8019 | LIBS="-llockfile $LIBS" |
| 5970 | 8020 | ||
| 5971 | else | ||
| 5972 | echo "$ac_t""no" 1>&6 | ||
| 5973 | fi | 8021 | fi |
| 5974 | 8022 | ||
| 5975 | # If we have the shared liblockfile, assume we must use it for mail | 8023 | # If we have the shared liblockfile, assume we must use it for mail |
| @@ -5978,141 +8026,170 @@ fi | |||
| 5978 | if test "$ac_cv_lib_lockfile_maillock" = no; then | 8026 | if test "$ac_cv_lib_lockfile_maillock" = no; then |
| 5979 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | 8027 | # Extract the first word of "liblockfile.so", so it can be a program name with args. |
| 5980 | set dummy liblockfile.so; ac_word=$2 | 8028 | set dummy liblockfile.so; ac_word=$2 |
| 5981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 8029 | echo "$as_me:8029: checking for $ac_word" >&5 |
| 5982 | echo "configure:5983: checking for $ac_word" >&5 | 8030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5983 | if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 8031 | if test "${ac_cv_prog_liblockfile+set}" = set; then |
| 5984 | echo $ac_n "(cached) $ac_c" 1>&6 | 8032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5985 | else | 8033 | else |
| 5986 | if test -n "$liblockfile"; then | 8034 | if test -n "$liblockfile"; then |
| 5987 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 8035 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
| 5988 | else | 8036 | else |
| 5989 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 8037 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 5990 | ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | 8038 | ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
| 5991 | for ac_dir in $ac_dummy; do | 8039 | for ac_dir in $ac_dummy; do |
| 5992 | test -z "$ac_dir" && ac_dir=. | 8040 | IFS=$ac_save_IFS |
| 5993 | if test -f $ac_dir/$ac_word; then | 8041 | test -z "$ac_dir" && ac_dir=. |
| 5994 | ac_cv_prog_liblockfile="yes" | 8042 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 5995 | break | 8043 | ac_cv_prog_liblockfile="yes" |
| 5996 | fi | 8044 | echo "$as_me:8044: found $ac_dir/$ac_word" >&5 |
| 5997 | done | 8045 | break |
| 5998 | IFS="$ac_save_ifs" | 8046 | done |
| 8047 | |||
| 5999 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | 8048 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
| 6000 | fi | 8049 | fi |
| 6001 | fi | 8050 | fi |
| 6002 | liblockfile="$ac_cv_prog_liblockfile" | 8051 | liblockfile=$ac_cv_prog_liblockfile |
| 6003 | if test -n "$liblockfile"; then | 8052 | if test -n "$liblockfile"; then |
| 6004 | echo "$ac_t""$liblockfile" 1>&6 | 8053 | echo "$as_me:8053: result: $liblockfile" >&5 |
| 8054 | echo "${ECHO_T}$liblockfile" >&6 | ||
| 6005 | else | 8055 | else |
| 6006 | echo "$ac_t""no" 1>&6 | 8056 | echo "$as_me:8056: result: no" >&5 |
| 8057 | echo "${ECHO_T}no" >&6 | ||
| 6007 | fi | 8058 | fi |
| 6008 | 8059 | ||
| 6009 | if test $ac_cv_prog_liblockfile = yes; then | 8060 | if test $ac_cv_prog_liblockfile = yes; then |
| 6010 | { echo "configure: error: Shared liblockfile found but can't link against it. | 8061 | { { echo "$as_me:8061: error: Shared liblockfile found but can't link against it. |
| 8062 | This probably means that movemail could lose mail. | ||
| 8063 | There may be a \`development' package to install containing liblockfile." >&5 | ||
| 8064 | echo "$as_me: error: Shared liblockfile found but can't link against it. | ||
| 6011 | This probably means that movemail could lose mail. | 8065 | This probably means that movemail could lose mail. |
| 6012 | There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } | 8066 | There may be a \`development' package to install containing liblockfile." >&2;} |
| 6013 | else cat >> confdefs.h <<\EOF | 8067 | { (exit 1); exit 1; }; } |
| 8068 | else cat >>confdefs.h <<\EOF | ||
| 6014 | #define LIBMAIL -llockfile | 8069 | #define LIBMAIL -llockfile |
| 6015 | EOF | 8070 | EOF |
| 6016 | 8071 | ||
| 6017 | fi | 8072 | fi |
| 6018 | else : | 8073 | else : |
| 6019 | fi | 8074 | fi |
| 8075 | |||
| 6020 | for ac_func in touchlock | 8076 | for ac_func in touchlock |
| 6021 | do | 8077 | do |
| 6022 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8078 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6023 | echo "configure:6024: checking for $ac_func" >&5 | 8079 | echo "$as_me:8079: checking for $ac_func" >&5 |
| 6024 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 8080 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6025 | echo $ac_n "(cached) $ac_c" 1>&6 | 8081 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6026 | else | 8083 | else |
| 6027 | cat > conftest.$ac_ext <<EOF | 8084 | cat >conftest.$ac_ext <<_ACEOF |
| 6028 | #line 6029 "configure" | 8085 | #line 8085 "configure" |
| 6029 | #include "confdefs.h" | 8086 | #include "confdefs.h" |
| 6030 | /* System header to define __stub macros and hopefully few prototypes, | 8087 | /* System header to define __stub macros and hopefully few prototypes, |
| 6031 | which can conflict with char $ac_func(); below. */ | 8088 | which can conflict with char $ac_func (); below. */ |
| 6032 | #include <assert.h> | 8089 | #include <assert.h> |
| 6033 | /* Override any gcc2 internal prototype to avoid an error. */ | 8090 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8091 | #ifdef __cplusplus | ||
| 8092 | extern "C" | ||
| 8093 | #endif | ||
| 6034 | /* We use char because int might match the return type of a gcc2 | 8094 | /* We use char because int might match the return type of a gcc2 |
| 6035 | builtin and then its argument prototype would still apply. */ | 8095 | builtin and then its argument prototype would still apply. */ |
| 6036 | char $ac_func(); | 8096 | char $ac_func (); |
| 6037 | 8097 | char (*f) (); | |
| 6038 | int main() { | ||
| 6039 | 8098 | ||
| 8099 | int | ||
| 8100 | main () | ||
| 8101 | { | ||
| 6040 | /* The GNU C library defines this for functions which it implements | 8102 | /* The GNU C library defines this for functions which it implements |
| 6041 | to always fail with ENOSYS. Some functions are actually named | 8103 | to always fail with ENOSYS. Some functions are actually named |
| 6042 | something starting with __ and the normal name is an alias. */ | 8104 | something starting with __ and the normal name is an alias. */ |
| 6043 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 8105 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6044 | choke me | 8106 | choke me |
| 6045 | #else | 8107 | #else |
| 6046 | $ac_func(); | 8108 | f = $ac_func; |
| 6047 | #endif | 8109 | #endif |
| 6048 | 8110 | ||
| 6049 | ; return 0; } | 8111 | ; |
| 8112 | return 0; | ||
| 8113 | } | ||
| 8114 | _ACEOF | ||
| 8115 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8116 | if { (eval echo "$as_me:8116: \"$ac_link\"") >&5 | ||
| 8117 | (eval $ac_link) 2>&5 | ||
| 8118 | ac_status=$? | ||
| 8119 | echo "$as_me:8119: \$? = $ac_status" >&5 | ||
| 8120 | (exit $ac_status); } && | ||
| 8121 | { ac_try='test -s conftest$ac_exeext' | ||
| 8122 | { (eval echo "$as_me:8122: \"$ac_try\"") >&5 | ||
| 8123 | (eval $ac_try) 2>&5 | ||
| 8124 | ac_status=$? | ||
| 8125 | echo "$as_me:8125: \$? = $ac_status" >&5 | ||
| 8126 | (exit $ac_status); }; }; then | ||
| 8127 | eval "$as_ac_var=yes" | ||
| 8128 | else | ||
| 8129 | echo "$as_me: failed program was:" >&5 | ||
| 8130 | cat conftest.$ac_ext >&5 | ||
| 8131 | eval "$as_ac_var=no" | ||
| 8132 | fi | ||
| 8133 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8134 | fi | ||
| 8135 | echo "$as_me:8135: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 8136 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 8137 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 8138 | cat >>confdefs.h <<EOF | ||
| 8139 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 6050 | EOF | 8140 | EOF |
| 6051 | if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6052 | rm -rf conftest* | ||
| 6053 | eval "ac_cv_func_$ac_func=yes" | ||
| 6054 | else | ||
| 6055 | echo "configure: failed program was:" >&5 | ||
| 6056 | cat conftest.$ac_ext >&5 | ||
| 6057 | rm -rf conftest* | ||
| 6058 | eval "ac_cv_func_$ac_func=no" | ||
| 6059 | fi | ||
| 6060 | rm -f conftest* | ||
| 6061 | fi | ||
| 6062 | 8141 | ||
| 6063 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 6064 | echo "$ac_t""yes" 1>&6 | ||
| 6065 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 6066 | cat >> confdefs.h <<EOF | ||
| 6067 | #define $ac_tr_func 1 | ||
| 6068 | EOF | ||
| 6069 | |||
| 6070 | else | ||
| 6071 | echo "$ac_t""no" 1>&6 | ||
| 6072 | fi | 8142 | fi |
| 6073 | done | 8143 | done |
| 6074 | 8144 | ||
| 6075 | for ac_hdr in maillock.h | 8145 | for ac_header in maillock.h |
| 6076 | do | 8146 | do |
| 6077 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 8147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6078 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 8148 | echo "$as_me:8148: checking for $ac_header" >&5 |
| 6079 | echo "configure:6080: checking for $ac_hdr" >&5 | 8149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6080 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6081 | echo $ac_n "(cached) $ac_c" 1>&6 | 8151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6082 | else | 8152 | else |
| 6083 | cat > conftest.$ac_ext <<EOF | 8153 | cat >conftest.$ac_ext <<_ACEOF |
| 6084 | #line 6085 "configure" | 8154 | #line 8154 "configure" |
| 6085 | #include "confdefs.h" | 8155 | #include "confdefs.h" |
| 6086 | #include <$ac_hdr> | 8156 | #include <$ac_header> |
| 6087 | EOF | 8157 | _ACEOF |
| 6088 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8158 | if { (eval echo "$as_me:8158: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6089 | { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6090 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8160 | ac_status=$? |
| 6091 | if test -z "$ac_err"; then | 8161 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6092 | rm -rf conftest* | 8162 | rm -f conftest.er1 |
| 6093 | eval "ac_cv_header_$ac_safe=yes" | 8163 | cat conftest.err >&5 |
| 6094 | else | 8164 | echo "$as_me:8164: \$? = $ac_status" >&5 |
| 6095 | echo "$ac_err" >&5 | 8165 | (exit $ac_status); } >/dev/null; then |
| 6096 | echo "configure: failed program was:" >&5 | 8166 | if test -s conftest.err; then |
| 8167 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 8168 | else | ||
| 8169 | ac_cpp_err= | ||
| 8170 | fi | ||
| 8171 | else | ||
| 8172 | ac_cpp_err=yes | ||
| 8173 | fi | ||
| 8174 | if test -z "$ac_cpp_err"; then | ||
| 8175 | eval "$as_ac_Header=yes" | ||
| 8176 | else | ||
| 8177 | echo "$as_me: failed program was:" >&5 | ||
| 6097 | cat conftest.$ac_ext >&5 | 8178 | cat conftest.$ac_ext >&5 |
| 6098 | rm -rf conftest* | 8179 | eval "$as_ac_Header=no" |
| 6099 | eval "ac_cv_header_$ac_safe=no" | ||
| 6100 | fi | 8180 | fi |
| 6101 | rm -f conftest* | 8181 | rm -f conftest.err conftest.$ac_ext |
| 6102 | fi | 8182 | fi |
| 6103 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 8183 | echo "$as_me:8183: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6104 | echo "$ac_t""yes" 1>&6 | 8184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6105 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 8185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6106 | cat >> confdefs.h <<EOF | 8186 | cat >>confdefs.h <<EOF |
| 6107 | #define $ac_tr_hdr 1 | 8187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6108 | EOF | 8188 | EOF |
| 6109 | 8189 | ||
| 6110 | else | ||
| 6111 | echo "$ac_t""no" 1>&6 | ||
| 6112 | fi | 8190 | fi |
| 6113 | done | 8191 | done |
| 6114 | 8192 | ||
| 6115 | |||
| 6116 | for ac_func in gethostname getdomainname dup2 \ | 8193 | for ac_func in gethostname getdomainname dup2 \ |
| 6117 | rename closedir mkdir rmdir sysinfo \ | 8194 | rename closedir mkdir rmdir sysinfo \ |
| 6118 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 8195 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
| @@ -6121,168 +8198,202 @@ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | |||
| 6121 | __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ | 8198 | __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ |
| 6122 | gai_strerror mkstemp | 8199 | gai_strerror mkstemp |
| 6123 | do | 8200 | do |
| 6124 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8201 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6125 | echo "configure:6126: checking for $ac_func" >&5 | 8202 | echo "$as_me:8202: checking for $ac_func" >&5 |
| 6126 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 8203 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6127 | echo $ac_n "(cached) $ac_c" 1>&6 | 8204 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6128 | else | 8206 | else |
| 6129 | cat > conftest.$ac_ext <<EOF | 8207 | cat >conftest.$ac_ext <<_ACEOF |
| 6130 | #line 6131 "configure" | 8208 | #line 8208 "configure" |
| 6131 | #include "confdefs.h" | 8209 | #include "confdefs.h" |
| 6132 | /* System header to define __stub macros and hopefully few prototypes, | 8210 | /* System header to define __stub macros and hopefully few prototypes, |
| 6133 | which can conflict with char $ac_func(); below. */ | 8211 | which can conflict with char $ac_func (); below. */ |
| 6134 | #include <assert.h> | 8212 | #include <assert.h> |
| 6135 | /* Override any gcc2 internal prototype to avoid an error. */ | 8213 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8214 | #ifdef __cplusplus | ||
| 8215 | extern "C" | ||
| 8216 | #endif | ||
| 6136 | /* We use char because int might match the return type of a gcc2 | 8217 | /* We use char because int might match the return type of a gcc2 |
| 6137 | builtin and then its argument prototype would still apply. */ | 8218 | builtin and then its argument prototype would still apply. */ |
| 6138 | char $ac_func(); | 8219 | char $ac_func (); |
| 6139 | 8220 | char (*f) (); | |
| 6140 | int main() { | ||
| 6141 | 8221 | ||
| 8222 | int | ||
| 8223 | main () | ||
| 8224 | { | ||
| 6142 | /* The GNU C library defines this for functions which it implements | 8225 | /* The GNU C library defines this for functions which it implements |
| 6143 | to always fail with ENOSYS. Some functions are actually named | 8226 | to always fail with ENOSYS. Some functions are actually named |
| 6144 | something starting with __ and the normal name is an alias. */ | 8227 | something starting with __ and the normal name is an alias. */ |
| 6145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 8228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6146 | choke me | 8229 | choke me |
| 6147 | #else | 8230 | #else |
| 6148 | $ac_func(); | 8231 | f = $ac_func; |
| 6149 | #endif | 8232 | #endif |
| 6150 | 8233 | ||
| 6151 | ; return 0; } | 8234 | ; |
| 8235 | return 0; | ||
| 8236 | } | ||
| 8237 | _ACEOF | ||
| 8238 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8239 | if { (eval echo "$as_me:8239: \"$ac_link\"") >&5 | ||
| 8240 | (eval $ac_link) 2>&5 | ||
| 8241 | ac_status=$? | ||
| 8242 | echo "$as_me:8242: \$? = $ac_status" >&5 | ||
| 8243 | (exit $ac_status); } && | ||
| 8244 | { ac_try='test -s conftest$ac_exeext' | ||
| 8245 | { (eval echo "$as_me:8245: \"$ac_try\"") >&5 | ||
| 8246 | (eval $ac_try) 2>&5 | ||
| 8247 | ac_status=$? | ||
| 8248 | echo "$as_me:8248: \$? = $ac_status" >&5 | ||
| 8249 | (exit $ac_status); }; }; then | ||
| 8250 | eval "$as_ac_var=yes" | ||
| 8251 | else | ||
| 8252 | echo "$as_me: failed program was:" >&5 | ||
| 8253 | cat conftest.$ac_ext >&5 | ||
| 8254 | eval "$as_ac_var=no" | ||
| 8255 | fi | ||
| 8256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8257 | fi | ||
| 8258 | echo "$as_me:8258: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 8259 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 8260 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 8261 | cat >>confdefs.h <<EOF | ||
| 8262 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 6152 | EOF | 8263 | EOF |
| 6153 | if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6154 | rm -rf conftest* | ||
| 6155 | eval "ac_cv_func_$ac_func=yes" | ||
| 6156 | else | ||
| 6157 | echo "configure: failed program was:" >&5 | ||
| 6158 | cat conftest.$ac_ext >&5 | ||
| 6159 | rm -rf conftest* | ||
| 6160 | eval "ac_cv_func_$ac_func=no" | ||
| 6161 | fi | ||
| 6162 | rm -f conftest* | ||
| 6163 | fi | ||
| 6164 | 8264 | ||
| 6165 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 6166 | echo "$ac_t""yes" 1>&6 | ||
| 6167 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 6168 | cat >> confdefs.h <<EOF | ||
| 6169 | #define $ac_tr_func 1 | ||
| 6170 | EOF | ||
| 6171 | |||
| 6172 | else | ||
| 6173 | echo "$ac_t""no" 1>&6 | ||
| 6174 | fi | 8265 | fi |
| 6175 | done | 8266 | done |
| 6176 | 8267 | ||
| 6177 | 8268 | for ac_header in sys/time.h unistd.h | |
| 6178 | for ac_hdr in sys/time.h unistd.h | ||
| 6179 | do | 8269 | do |
| 6180 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 8270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6181 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 8271 | echo "$as_me:8271: checking for $ac_header" >&5 |
| 6182 | echo "configure:6183: checking for $ac_hdr" >&5 | 8272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6183 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6184 | echo $ac_n "(cached) $ac_c" 1>&6 | 8274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6185 | else | 8275 | else |
| 6186 | cat > conftest.$ac_ext <<EOF | 8276 | cat >conftest.$ac_ext <<_ACEOF |
| 6187 | #line 6188 "configure" | 8277 | #line 8277 "configure" |
| 6188 | #include "confdefs.h" | 8278 | #include "confdefs.h" |
| 6189 | #include <$ac_hdr> | 8279 | #include <$ac_header> |
| 6190 | EOF | 8280 | _ACEOF |
| 6191 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8281 | if { (eval echo "$as_me:8281: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6192 | { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6193 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8283 | ac_status=$? |
| 6194 | if test -z "$ac_err"; then | 8284 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6195 | rm -rf conftest* | 8285 | rm -f conftest.er1 |
| 6196 | eval "ac_cv_header_$ac_safe=yes" | 8286 | cat conftest.err >&5 |
| 6197 | else | 8287 | echo "$as_me:8287: \$? = $ac_status" >&5 |
| 6198 | echo "$ac_err" >&5 | 8288 | (exit $ac_status); } >/dev/null; then |
| 6199 | echo "configure: failed program was:" >&5 | 8289 | if test -s conftest.err; then |
| 8290 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 8291 | else | ||
| 8292 | ac_cpp_err= | ||
| 8293 | fi | ||
| 8294 | else | ||
| 8295 | ac_cpp_err=yes | ||
| 8296 | fi | ||
| 8297 | if test -z "$ac_cpp_err"; then | ||
| 8298 | eval "$as_ac_Header=yes" | ||
| 8299 | else | ||
| 8300 | echo "$as_me: failed program was:" >&5 | ||
| 6200 | cat conftest.$ac_ext >&5 | 8301 | cat conftest.$ac_ext >&5 |
| 6201 | rm -rf conftest* | 8302 | eval "$as_ac_Header=no" |
| 6202 | eval "ac_cv_header_$ac_safe=no" | ||
| 6203 | fi | 8303 | fi |
| 6204 | rm -f conftest* | 8304 | rm -f conftest.err conftest.$ac_ext |
| 6205 | fi | 8305 | fi |
| 6206 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 8306 | echo "$as_me:8306: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6207 | echo "$ac_t""yes" 1>&6 | 8307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6208 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 8308 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6209 | cat >> confdefs.h <<EOF | 8309 | cat >>confdefs.h <<EOF |
| 6210 | #define $ac_tr_hdr 1 | 8310 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6211 | EOF | 8311 | EOF |
| 6212 | 8312 | ||
| 6213 | else | ||
| 6214 | echo "$ac_t""no" 1>&6 | ||
| 6215 | fi | 8313 | fi |
| 6216 | done | 8314 | done |
| 6217 | 8315 | ||
| 6218 | for ac_func in alarm | 8316 | for ac_func in alarm |
| 6219 | do | 8317 | do |
| 6220 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8318 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6221 | echo "configure:6222: checking for $ac_func" >&5 | 8319 | echo "$as_me:8319: checking for $ac_func" >&5 |
| 6222 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 8320 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6223 | echo $ac_n "(cached) $ac_c" 1>&6 | 8321 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6224 | else | 8323 | else |
| 6225 | cat > conftest.$ac_ext <<EOF | 8324 | cat >conftest.$ac_ext <<_ACEOF |
| 6226 | #line 6227 "configure" | 8325 | #line 8325 "configure" |
| 6227 | #include "confdefs.h" | 8326 | #include "confdefs.h" |
| 6228 | /* System header to define __stub macros and hopefully few prototypes, | 8327 | /* System header to define __stub macros and hopefully few prototypes, |
| 6229 | which can conflict with char $ac_func(); below. */ | 8328 | which can conflict with char $ac_func (); below. */ |
| 6230 | #include <assert.h> | 8329 | #include <assert.h> |
| 6231 | /* Override any gcc2 internal prototype to avoid an error. */ | 8330 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8331 | #ifdef __cplusplus | ||
| 8332 | extern "C" | ||
| 8333 | #endif | ||
| 6232 | /* We use char because int might match the return type of a gcc2 | 8334 | /* We use char because int might match the return type of a gcc2 |
| 6233 | builtin and then its argument prototype would still apply. */ | 8335 | builtin and then its argument prototype would still apply. */ |
| 6234 | char $ac_func(); | 8336 | char $ac_func (); |
| 6235 | 8337 | char (*f) (); | |
| 6236 | int main() { | ||
| 6237 | 8338 | ||
| 8339 | int | ||
| 8340 | main () | ||
| 8341 | { | ||
| 6238 | /* The GNU C library defines this for functions which it implements | 8342 | /* The GNU C library defines this for functions which it implements |
| 6239 | to always fail with ENOSYS. Some functions are actually named | 8343 | to always fail with ENOSYS. Some functions are actually named |
| 6240 | something starting with __ and the normal name is an alias. */ | 8344 | something starting with __ and the normal name is an alias. */ |
| 6241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 8345 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6242 | choke me | 8346 | choke me |
| 6243 | #else | 8347 | #else |
| 6244 | $ac_func(); | 8348 | f = $ac_func; |
| 6245 | #endif | 8349 | #endif |
| 6246 | 8350 | ||
| 6247 | ; return 0; } | 8351 | ; |
| 8352 | return 0; | ||
| 8353 | } | ||
| 8354 | _ACEOF | ||
| 8355 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8356 | if { (eval echo "$as_me:8356: \"$ac_link\"") >&5 | ||
| 8357 | (eval $ac_link) 2>&5 | ||
| 8358 | ac_status=$? | ||
| 8359 | echo "$as_me:8359: \$? = $ac_status" >&5 | ||
| 8360 | (exit $ac_status); } && | ||
| 8361 | { ac_try='test -s conftest$ac_exeext' | ||
| 8362 | { (eval echo "$as_me:8362: \"$ac_try\"") >&5 | ||
| 8363 | (eval $ac_try) 2>&5 | ||
| 8364 | ac_status=$? | ||
| 8365 | echo "$as_me:8365: \$? = $ac_status" >&5 | ||
| 8366 | (exit $ac_status); }; }; then | ||
| 8367 | eval "$as_ac_var=yes" | ||
| 8368 | else | ||
| 8369 | echo "$as_me: failed program was:" >&5 | ||
| 8370 | cat conftest.$ac_ext >&5 | ||
| 8371 | eval "$as_ac_var=no" | ||
| 8372 | fi | ||
| 8373 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8374 | fi | ||
| 8375 | echo "$as_me:8375: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 8376 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 8377 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 8378 | cat >>confdefs.h <<EOF | ||
| 8379 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 6248 | EOF | 8380 | EOF |
| 6249 | if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6250 | rm -rf conftest* | ||
| 6251 | eval "ac_cv_func_$ac_func=yes" | ||
| 6252 | else | ||
| 6253 | echo "configure: failed program was:" >&5 | ||
| 6254 | cat conftest.$ac_ext >&5 | ||
| 6255 | rm -rf conftest* | ||
| 6256 | eval "ac_cv_func_$ac_func=no" | ||
| 6257 | fi | ||
| 6258 | rm -f conftest* | ||
| 6259 | fi | ||
| 6260 | 8381 | ||
| 6261 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 6262 | echo "$ac_t""yes" 1>&6 | ||
| 6263 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 6264 | cat >> confdefs.h <<EOF | ||
| 6265 | #define $ac_tr_func 1 | ||
| 6266 | EOF | ||
| 6267 | |||
| 6268 | else | ||
| 6269 | echo "$ac_t""no" 1>&6 | ||
| 6270 | fi | 8382 | fi |
| 6271 | done | 8383 | done |
| 6272 | 8384 | ||
| 6273 | echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 8385 | echo "$as_me:8385: checking for working mktime" >&5 |
| 6274 | echo "configure:6275: checking for working mktime" >&5 | 8386 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
| 6275 | if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 8387 | if test "${ac_cv_func_working_mktime+set}" = set; then |
| 6276 | echo $ac_n "(cached) $ac_c" 1>&6 | 8388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6277 | else | 8389 | else |
| 6278 | if test "$cross_compiling" = yes; then | 8390 | if test "$cross_compiling" = yes; then |
| 6279 | ac_cv_func_working_mktime=no | 8391 | ac_cv_func_working_mktime=no |
| 6280 | else | 8392 | else |
| 6281 | cat > conftest.$ac_ext <<EOF | 8393 | cat >conftest.$ac_ext <<_ACEOF |
| 6282 | #line 6283 "configure" | 8394 | #line 8394 "configure" |
| 6283 | #include "confdefs.h" | 8395 | #include "confdefs.h" |
| 6284 | /* Test program from Paul Eggert (eggert@twinsun.com) | 8396 | /* Test program from Paul Eggert and Tony Leneis. */ |
| 6285 | and Tony Leneis (tony@plaza.ds.adp.com). */ | ||
| 6286 | #if TIME_WITH_SYS_TIME | 8397 | #if TIME_WITH_SYS_TIME |
| 6287 | # include <sys/time.h> | 8398 | # include <sys/time.h> |
| 6288 | # include <time.h> | 8399 | # include <time.h> |
| @@ -6319,7 +8430,7 @@ static const char *const tz_strings[] = { | |||
| 6319 | static void | 8430 | static void |
| 6320 | spring_forward_gap () | 8431 | spring_forward_gap () |
| 6321 | { | 8432 | { |
| 6322 | /* glibc (up to about 1998-10-07) failed this test) */ | 8433 | /* glibc (up to about 1998-10-07) failed this test. */ |
| 6323 | struct tm tm; | 8434 | struct tm tm; |
| 6324 | 8435 | ||
| 6325 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | 8436 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| @@ -6427,28 +8538,36 @@ main () | |||
| 6427 | spring_forward_gap (); | 8538 | spring_forward_gap (); |
| 6428 | exit (0); | 8539 | exit (0); |
| 6429 | } | 8540 | } |
| 6430 | EOF | 8541 | _ACEOF |
| 6431 | if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8542 | rm -f conftest$ac_exeext |
| 6432 | then | 8543 | if { (eval echo "$as_me:8543: \"$ac_link\"") >&5 |
| 8544 | (eval $ac_link) 2>&5 | ||
| 8545 | ac_status=$? | ||
| 8546 | echo "$as_me:8546: \$? = $ac_status" >&5 | ||
| 8547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 8548 | { (eval echo "$as_me:8548: \"$ac_try\"") >&5 | ||
| 8549 | (eval $ac_try) 2>&5 | ||
| 8550 | ac_status=$? | ||
| 8551 | echo "$as_me:8551: \$? = $ac_status" >&5 | ||
| 8552 | (exit $ac_status); }; }; then | ||
| 6433 | ac_cv_func_working_mktime=yes | 8553 | ac_cv_func_working_mktime=yes |
| 6434 | else | 8554 | else |
| 6435 | echo "configure: failed program was:" >&5 | 8555 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6436 | cat conftest.$ac_ext >&5 | 8556 | echo "$as_me: failed program was:" >&5 |
| 6437 | rm -fr conftest* | 8557 | cat conftest.$ac_ext >&5 |
| 6438 | ac_cv_func_working_mktime=no | 8558 | ac_cv_func_working_mktime=no |
| 6439 | fi | 8559 | fi |
| 6440 | rm -fr conftest* | 8560 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6441 | fi | 8561 | fi |
| 6442 | |||
| 6443 | fi | 8562 | fi |
| 6444 | 8563 | echo "$as_me:8563: result: $ac_cv_func_working_mktime" >&5 | |
| 6445 | echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 | 8564 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
| 6446 | if test $ac_cv_func_working_mktime = no; then | 8565 | if test $ac_cv_func_working_mktime = no; then |
| 6447 | LIBOBJS="$LIBOBJS mktime.${ac_objext}" | 8566 | LIBOBJS="$LIBOBJS mktime.$ac_objext" |
| 6448 | fi | 8567 | fi |
| 6449 | 8568 | ||
| 6450 | if test "$ac_cv_func_working_mktime" = no; then | 8569 | if test "$ac_cv_func_working_mktime" = no; then |
| 6451 | cat >> confdefs.h <<\EOF | 8570 | cat >>confdefs.h <<\EOF |
| 6452 | #define BROKEN_MKTIME 1 | 8571 | #define BROKEN_MKTIME 1 |
| 6453 | EOF | 8572 | EOF |
| 6454 | 8573 | ||
| @@ -6456,564 +8575,1024 @@ fi | |||
| 6456 | 8575 | ||
| 6457 | ac_have_func=no # yes means we've found a way to get the load average. | 8576 | ac_have_func=no # yes means we've found a way to get the load average. |
| 6458 | 8577 | ||
| 6459 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | 8578 | ac_save_LIBS=$LIBS |
| 6460 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | 8579 | |
| 6461 | # to get the right answer into the cache. | 8580 | # Check for getloadavg, but be sure not to touch the cache variable. |
| 6462 | echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | 8581 | (echo "$as_me:8581: checking for getloadavg" >&5 |
| 6463 | echo "configure:6464: checking for elf_begin in -lelf" >&5 | 8582 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
| 6464 | ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | 8583 | if test "${ac_cv_func_getloadavg+set}" = set; then |
| 6465 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 8584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6466 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6467 | else | 8585 | else |
| 6468 | ac_save_LIBS="$LIBS" | 8586 | cat >conftest.$ac_ext <<_ACEOF |
| 6469 | LIBS="-lelf $LIBS" | 8587 | #line 8587 "configure" |
| 6470 | cat > conftest.$ac_ext <<EOF | ||
| 6471 | #line 6472 "configure" | ||
| 6472 | #include "confdefs.h" | 8588 | #include "confdefs.h" |
| 8589 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 8590 | which can conflict with char getloadavg (); below. */ | ||
| 8591 | #include <assert.h> | ||
| 6473 | /* Override any gcc2 internal prototype to avoid an error. */ | 8592 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8593 | #ifdef __cplusplus | ||
| 8594 | extern "C" | ||
| 8595 | #endif | ||
| 6474 | /* We use char because int might match the return type of a gcc2 | 8596 | /* We use char because int might match the return type of a gcc2 |
| 6475 | builtin and then its argument prototype would still apply. */ | 8597 | builtin and then its argument prototype would still apply. */ |
| 6476 | char elf_begin(); | 8598 | char getloadavg (); |
| 8599 | char (*f) (); | ||
| 6477 | 8600 | ||
| 6478 | int main() { | 8601 | int |
| 6479 | elf_begin() | 8602 | main () |
| 6480 | ; return 0; } | 8603 | { |
| 6481 | EOF | 8604 | /* The GNU C library defines this for functions which it implements |
| 6482 | if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8605 | to always fail with ENOSYS. Some functions are actually named |
| 6483 | rm -rf conftest* | 8606 | something starting with __ and the normal name is an alias. */ |
| 6484 | eval "ac_cv_lib_$ac_lib_var=yes" | 8607 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) |
| 6485 | else | 8608 | choke me |
| 6486 | echo "configure: failed program was:" >&5 | 8609 | #else |
| 6487 | cat conftest.$ac_ext >&5 | 8610 | f = getloadavg; |
| 6488 | rm -rf conftest* | 8611 | #endif |
| 6489 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 6490 | fi | ||
| 6491 | rm -f conftest* | ||
| 6492 | LIBS="$ac_save_LIBS" | ||
| 6493 | 8612 | ||
| 6494 | fi | 8613 | ; |
| 6495 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8614 | return 0; |
| 6496 | echo "$ac_t""yes" 1>&6 | 8615 | } |
| 6497 | LIBS="-lelf $LIBS" | 8616 | _ACEOF |
| 8617 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8618 | if { (eval echo "$as_me:8618: \"$ac_link\"") >&5 | ||
| 8619 | (eval $ac_link) 2>&5 | ||
| 8620 | ac_status=$? | ||
| 8621 | echo "$as_me:8621: \$? = $ac_status" >&5 | ||
| 8622 | (exit $ac_status); } && | ||
| 8623 | { ac_try='test -s conftest$ac_exeext' | ||
| 8624 | { (eval echo "$as_me:8624: \"$ac_try\"") >&5 | ||
| 8625 | (eval $ac_try) 2>&5 | ||
| 8626 | ac_status=$? | ||
| 8627 | echo "$as_me:8627: \$? = $ac_status" >&5 | ||
| 8628 | (exit $ac_status); }; }; then | ||
| 8629 | ac_cv_func_getloadavg=yes | ||
| 8630 | else | ||
| 8631 | echo "$as_me: failed program was:" >&5 | ||
| 8632 | cat conftest.$ac_ext >&5 | ||
| 8633 | ac_cv_func_getloadavg=no | ||
| 8634 | fi | ||
| 8635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8636 | fi | ||
| 8637 | echo "$as_me:8637: result: $ac_cv_func_getloadavg" >&5 | ||
| 8638 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 | ||
| 8639 | if test $ac_cv_func_getloadavg = yes; then | ||
| 8640 | exit 0 | ||
| 6498 | else | 8641 | else |
| 6499 | echo "$ac_t""no" 1>&6 | 8642 | exit 1 |
| 6500 | fi | 8643 | fi |
| 8644 | ) && ac_have_func=yes | ||
| 8645 | |||
| 8646 | # On HPUX9, an unprivileged user can get load averages through this function. | ||
| 6501 | 8647 | ||
| 6502 | echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | 8648 | for ac_func in pstat_getdynamic |
| 6503 | echo "configure:6504: checking for kvm_open in -lkvm" >&5 | 8649 | do |
| 6504 | ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | 8650 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6505 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 8651 | echo "$as_me:8651: checking for $ac_func" >&5 |
| 6506 | echo $ac_n "(cached) $ac_c" 1>&6 | 8652 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8653 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
| 8654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6507 | else | 8655 | else |
| 6508 | ac_save_LIBS="$LIBS" | 8656 | cat >conftest.$ac_ext <<_ACEOF |
| 6509 | LIBS="-lkvm $LIBS" | 8657 | #line 8657 "configure" |
| 6510 | cat > conftest.$ac_ext <<EOF | ||
| 6511 | #line 6512 "configure" | ||
| 6512 | #include "confdefs.h" | 8658 | #include "confdefs.h" |
| 8659 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 8660 | which can conflict with char $ac_func (); below. */ | ||
| 8661 | #include <assert.h> | ||
| 6513 | /* Override any gcc2 internal prototype to avoid an error. */ | 8662 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8663 | #ifdef __cplusplus | ||
| 8664 | extern "C" | ||
| 8665 | #endif | ||
| 6514 | /* We use char because int might match the return type of a gcc2 | 8666 | /* We use char because int might match the return type of a gcc2 |
| 6515 | builtin and then its argument prototype would still apply. */ | 8667 | builtin and then its argument prototype would still apply. */ |
| 6516 | char kvm_open(); | 8668 | char $ac_func (); |
| 8669 | char (*f) (); | ||
| 8670 | |||
| 8671 | int | ||
| 8672 | main () | ||
| 8673 | { | ||
| 8674 | /* The GNU C library defines this for functions which it implements | ||
| 8675 | to always fail with ENOSYS. Some functions are actually named | ||
| 8676 | something starting with __ and the normal name is an alias. */ | ||
| 8677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 8678 | choke me | ||
| 8679 | #else | ||
| 8680 | f = $ac_func; | ||
| 8681 | #endif | ||
| 6517 | 8682 | ||
| 6518 | int main() { | 8683 | ; |
| 6519 | kvm_open() | 8684 | return 0; |
| 6520 | ; return 0; } | 8685 | } |
| 8686 | _ACEOF | ||
| 8687 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8688 | if { (eval echo "$as_me:8688: \"$ac_link\"") >&5 | ||
| 8689 | (eval $ac_link) 2>&5 | ||
| 8690 | ac_status=$? | ||
| 8691 | echo "$as_me:8691: \$? = $ac_status" >&5 | ||
| 8692 | (exit $ac_status); } && | ||
| 8693 | { ac_try='test -s conftest$ac_exeext' | ||
| 8694 | { (eval echo "$as_me:8694: \"$ac_try\"") >&5 | ||
| 8695 | (eval $ac_try) 2>&5 | ||
| 8696 | ac_status=$? | ||
| 8697 | echo "$as_me:8697: \$? = $ac_status" >&5 | ||
| 8698 | (exit $ac_status); }; }; then | ||
| 8699 | eval "$as_ac_var=yes" | ||
| 8700 | else | ||
| 8701 | echo "$as_me: failed program was:" >&5 | ||
| 8702 | cat conftest.$ac_ext >&5 | ||
| 8703 | eval "$as_ac_var=no" | ||
| 8704 | fi | ||
| 8705 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8706 | fi | ||
| 8707 | echo "$as_me:8707: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 8708 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 8709 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 8710 | cat >>confdefs.h <<EOF | ||
| 8711 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 6521 | EOF | 8712 | EOF |
| 6522 | if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8713 | |
| 6523 | rm -rf conftest* | 8714 | fi |
| 6524 | eval "ac_cv_lib_$ac_lib_var=yes" | 8715 | done |
| 8716 | |||
| 8717 | # Solaris has libkstat which does not require root. | ||
| 8718 | |||
| 8719 | echo "$as_me:8719: checking for kstat_open in -lkstat" >&5 | ||
| 8720 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 | ||
| 8721 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | ||
| 8722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6525 | else | 8723 | else |
| 6526 | echo "configure: failed program was:" >&5 | 8724 | ac_check_lib_save_LIBS=$LIBS |
| 6527 | cat conftest.$ac_ext >&5 | 8725 | LIBS="-lkstat $LIBS" |
| 6528 | rm -rf conftest* | 8726 | cat >conftest.$ac_ext <<_ACEOF |
| 6529 | eval "ac_cv_lib_$ac_lib_var=no" | 8727 | #line 8727 "configure" |
| 8728 | #include "confdefs.h" | ||
| 8729 | |||
| 8730 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 8731 | #ifdef __cplusplus | ||
| 8732 | extern "C" | ||
| 8733 | #endif | ||
| 8734 | /* We use char because int might match the return type of a gcc2 | ||
| 8735 | builtin and then its argument prototype would still apply. */ | ||
| 8736 | char kstat_open (); | ||
| 8737 | int | ||
| 8738 | main () | ||
| 8739 | { | ||
| 8740 | kstat_open (); | ||
| 8741 | ; | ||
| 8742 | return 0; | ||
| 8743 | } | ||
| 8744 | _ACEOF | ||
| 8745 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8746 | if { (eval echo "$as_me:8746: \"$ac_link\"") >&5 | ||
| 8747 | (eval $ac_link) 2>&5 | ||
| 8748 | ac_status=$? | ||
| 8749 | echo "$as_me:8749: \$? = $ac_status" >&5 | ||
| 8750 | (exit $ac_status); } && | ||
| 8751 | { ac_try='test -s conftest$ac_exeext' | ||
| 8752 | { (eval echo "$as_me:8752: \"$ac_try\"") >&5 | ||
| 8753 | (eval $ac_try) 2>&5 | ||
| 8754 | ac_status=$? | ||
| 8755 | echo "$as_me:8755: \$? = $ac_status" >&5 | ||
| 8756 | (exit $ac_status); }; }; then | ||
| 8757 | ac_cv_lib_kstat_kstat_open=yes | ||
| 8758 | else | ||
| 8759 | echo "$as_me: failed program was:" >&5 | ||
| 8760 | cat conftest.$ac_ext >&5 | ||
| 8761 | ac_cv_lib_kstat_kstat_open=no | ||
| 6530 | fi | 8762 | fi |
| 6531 | rm -f conftest* | 8763 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6532 | LIBS="$ac_save_LIBS" | 8764 | LIBS=$ac_check_lib_save_LIBS |
| 8765 | fi | ||
| 8766 | echo "$as_me:8766: result: $ac_cv_lib_kstat_kstat_open" >&5 | ||
| 8767 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 | ||
| 8768 | if test $ac_cv_lib_kstat_kstat_open = yes; then | ||
| 8769 | cat >>confdefs.h <<EOF | ||
| 8770 | #define HAVE_LIBKSTAT 1 | ||
| 8771 | EOF | ||
| 8772 | |||
| 8773 | LIBS="-lkstat $LIBS" | ||
| 6533 | 8774 | ||
| 6534 | fi | 8775 | fi |
| 6535 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8776 | |
| 6536 | echo "$ac_t""yes" 1>&6 | 8777 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
| 6537 | LIBS="-lkvm $LIBS" | 8778 | |
| 8779 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | ||
| 8780 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | ||
| 8781 | # to get the right answer into the cache. | ||
| 8782 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | ||
| 8783 | if test $ac_have_func = no; then | ||
| 8784 | echo "$as_me:8784: checking for elf_begin in -lelf" >&5 | ||
| 8785 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | ||
| 8786 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | ||
| 8787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6538 | else | 8788 | else |
| 6539 | echo "$ac_t""no" 1>&6 | 8789 | ac_check_lib_save_LIBS=$LIBS |
| 8790 | LIBS="-lelf $LIBS" | ||
| 8791 | cat >conftest.$ac_ext <<_ACEOF | ||
| 8792 | #line 8792 "configure" | ||
| 8793 | #include "confdefs.h" | ||
| 8794 | |||
| 8795 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 8796 | #ifdef __cplusplus | ||
| 8797 | extern "C" | ||
| 8798 | #endif | ||
| 8799 | /* We use char because int might match the return type of a gcc2 | ||
| 8800 | builtin and then its argument prototype would still apply. */ | ||
| 8801 | char elf_begin (); | ||
| 8802 | int | ||
| 8803 | main () | ||
| 8804 | { | ||
| 8805 | elf_begin (); | ||
| 8806 | ; | ||
| 8807 | return 0; | ||
| 8808 | } | ||
| 8809 | _ACEOF | ||
| 8810 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8811 | if { (eval echo "$as_me:8811: \"$ac_link\"") >&5 | ||
| 8812 | (eval $ac_link) 2>&5 | ||
| 8813 | ac_status=$? | ||
| 8814 | echo "$as_me:8814: \$? = $ac_status" >&5 | ||
| 8815 | (exit $ac_status); } && | ||
| 8816 | { ac_try='test -s conftest$ac_exeext' | ||
| 8817 | { (eval echo "$as_me:8817: \"$ac_try\"") >&5 | ||
| 8818 | (eval $ac_try) 2>&5 | ||
| 8819 | ac_status=$? | ||
| 8820 | echo "$as_me:8820: \$? = $ac_status" >&5 | ||
| 8821 | (exit $ac_status); }; }; then | ||
| 8822 | ac_cv_lib_elf_elf_begin=yes | ||
| 8823 | else | ||
| 8824 | echo "$as_me: failed program was:" >&5 | ||
| 8825 | cat conftest.$ac_ext >&5 | ||
| 8826 | ac_cv_lib_elf_elf_begin=no | ||
| 8827 | fi | ||
| 8828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8829 | LIBS=$ac_check_lib_save_LIBS | ||
| 8830 | fi | ||
| 8831 | echo "$as_me:8831: result: $ac_cv_lib_elf_elf_begin" >&5 | ||
| 8832 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | ||
| 8833 | if test $ac_cv_lib_elf_elf_begin = yes; then | ||
| 8834 | LIBS="-lelf $LIBS" | ||
| 6540 | fi | 8835 | fi |
| 6541 | 8836 | ||
| 6542 | # Check for the 4.4BSD definition of getloadavg. | 8837 | fi |
| 6543 | echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | 8838 | if test $ac_have_func = no; then |
| 6544 | echo "configure:6545: checking for getloadavg in -lutil" >&5 | 8839 | echo "$as_me:8839: checking for kvm_open in -lkvm" >&5 |
| 6545 | ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | 8840 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
| 6546 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 8841 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then |
| 6547 | echo $ac_n "(cached) $ac_c" 1>&6 | 8842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6548 | else | 8843 | else |
| 6549 | ac_save_LIBS="$LIBS" | 8844 | ac_check_lib_save_LIBS=$LIBS |
| 6550 | LIBS="-lutil $LIBS" | 8845 | LIBS="-lkvm $LIBS" |
| 6551 | cat > conftest.$ac_ext <<EOF | 8846 | cat >conftest.$ac_ext <<_ACEOF |
| 6552 | #line 6553 "configure" | 8847 | #line 8847 "configure" |
| 6553 | #include "confdefs.h" | 8848 | #include "confdefs.h" |
| 8849 | |||
| 6554 | /* Override any gcc2 internal prototype to avoid an error. */ | 8850 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8851 | #ifdef __cplusplus | ||
| 8852 | extern "C" | ||
| 8853 | #endif | ||
| 6555 | /* We use char because int might match the return type of a gcc2 | 8854 | /* We use char because int might match the return type of a gcc2 |
| 6556 | builtin and then its argument prototype would still apply. */ | 8855 | builtin and then its argument prototype would still apply. */ |
| 6557 | char getloadavg(); | 8856 | char kvm_open (); |
| 8857 | int | ||
| 8858 | main () | ||
| 8859 | { | ||
| 8860 | kvm_open (); | ||
| 8861 | ; | ||
| 8862 | return 0; | ||
| 8863 | } | ||
| 8864 | _ACEOF | ||
| 8865 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8866 | if { (eval echo "$as_me:8866: \"$ac_link\"") >&5 | ||
| 8867 | (eval $ac_link) 2>&5 | ||
| 8868 | ac_status=$? | ||
| 8869 | echo "$as_me:8869: \$? = $ac_status" >&5 | ||
| 8870 | (exit $ac_status); } && | ||
| 8871 | { ac_try='test -s conftest$ac_exeext' | ||
| 8872 | { (eval echo "$as_me:8872: \"$ac_try\"") >&5 | ||
| 8873 | (eval $ac_try) 2>&5 | ||
| 8874 | ac_status=$? | ||
| 8875 | echo "$as_me:8875: \$? = $ac_status" >&5 | ||
| 8876 | (exit $ac_status); }; }; then | ||
| 8877 | ac_cv_lib_kvm_kvm_open=yes | ||
| 8878 | else | ||
| 8879 | echo "$as_me: failed program was:" >&5 | ||
| 8880 | cat conftest.$ac_ext >&5 | ||
| 8881 | ac_cv_lib_kvm_kvm_open=no | ||
| 8882 | fi | ||
| 8883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8884 | LIBS=$ac_check_lib_save_LIBS | ||
| 8885 | fi | ||
| 8886 | echo "$as_me:8886: result: $ac_cv_lib_kvm_kvm_open" >&5 | ||
| 8887 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 | ||
| 8888 | if test $ac_cv_lib_kvm_kvm_open = yes; then | ||
| 8889 | LIBS="-lkvm $LIBS" | ||
| 8890 | fi | ||
| 6558 | 8891 | ||
| 6559 | int main() { | 8892 | # Check for the 4.4BSD definition of getloadavg. |
| 6560 | getloadavg() | 8893 | echo "$as_me:8893: checking for getloadavg in -lutil" >&5 |
| 6561 | ; return 0; } | 8894 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
| 6562 | EOF | 8895 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then |
| 6563 | if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6564 | rm -rf conftest* | ||
| 6565 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 6566 | else | 8897 | else |
| 6567 | echo "configure: failed program was:" >&5 | 8898 | ac_check_lib_save_LIBS=$LIBS |
| 6568 | cat conftest.$ac_ext >&5 | 8899 | LIBS="-lutil $LIBS" |
| 6569 | rm -rf conftest* | 8900 | cat >conftest.$ac_ext <<_ACEOF |
| 6570 | eval "ac_cv_lib_$ac_lib_var=no" | 8901 | #line 8901 "configure" |
| 6571 | fi | 8902 | #include "confdefs.h" |
| 6572 | rm -f conftest* | ||
| 6573 | LIBS="$ac_save_LIBS" | ||
| 6574 | 8903 | ||
| 6575 | fi | 8904 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6576 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8905 | #ifdef __cplusplus |
| 6577 | echo "$ac_t""yes" 1>&6 | 8906 | extern "C" |
| 8907 | #endif | ||
| 8908 | /* We use char because int might match the return type of a gcc2 | ||
| 8909 | builtin and then its argument prototype would still apply. */ | ||
| 8910 | char getloadavg (); | ||
| 8911 | int | ||
| 8912 | main () | ||
| 8913 | { | ||
| 8914 | getloadavg (); | ||
| 8915 | ; | ||
| 8916 | return 0; | ||
| 8917 | } | ||
| 8918 | _ACEOF | ||
| 8919 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 8920 | if { (eval echo "$as_me:8920: \"$ac_link\"") >&5 | ||
| 8921 | (eval $ac_link) 2>&5 | ||
| 8922 | ac_status=$? | ||
| 8923 | echo "$as_me:8923: \$? = $ac_status" >&5 | ||
| 8924 | (exit $ac_status); } && | ||
| 8925 | { ac_try='test -s conftest$ac_exeext' | ||
| 8926 | { (eval echo "$as_me:8926: \"$ac_try\"") >&5 | ||
| 8927 | (eval $ac_try) 2>&5 | ||
| 8928 | ac_status=$? | ||
| 8929 | echo "$as_me:8929: \$? = $ac_status" >&5 | ||
| 8930 | (exit $ac_status); }; }; then | ||
| 8931 | ac_cv_lib_util_getloadavg=yes | ||
| 8932 | else | ||
| 8933 | echo "$as_me: failed program was:" >&5 | ||
| 8934 | cat conftest.$ac_ext >&5 | ||
| 8935 | ac_cv_lib_util_getloadavg=no | ||
| 8936 | fi | ||
| 8937 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8938 | LIBS=$ac_check_lib_save_LIBS | ||
| 8939 | fi | ||
| 8940 | echo "$as_me:8940: result: $ac_cv_lib_util_getloadavg" >&5 | ||
| 8941 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 | ||
| 8942 | if test $ac_cv_lib_util_getloadavg = yes; then | ||
| 6578 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | 8943 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
| 6579 | else | ||
| 6580 | echo "$ac_t""no" 1>&6 | ||
| 6581 | fi | 8944 | fi |
| 6582 | 8945 | ||
| 8946 | fi | ||
| 6583 | 8947 | ||
| 6584 | if test $ac_have_func = no; then | 8948 | if test $ac_have_func = no; then |
| 6585 | # There is a commonly available library for RS/6000 AIX. | 8949 | # There is a commonly available library for RS/6000 AIX. |
| 6586 | # Since it is not a standard part of AIX, it might be installed locally. | 8950 | # Since it is not a standard part of AIX, it might be installed locally. |
| 6587 | ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | 8951 | ac_getloadavg_LIBS=$LIBS |
| 6588 | echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | 8952 | LIBS="-L/usr/local/lib $LIBS" |
| 6589 | echo "configure:6590: checking for getloadavg in -lgetloadavg" >&5 | 8953 | echo "$as_me:8953: checking for getloadavg in -lgetloadavg" >&5 |
| 6590 | ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | 8954 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
| 6591 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 8955 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then |
| 6592 | echo $ac_n "(cached) $ac_c" 1>&6 | 8956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6593 | else | 8957 | else |
| 6594 | ac_save_LIBS="$LIBS" | 8958 | ac_check_lib_save_LIBS=$LIBS |
| 6595 | LIBS="-lgetloadavg $LIBS" | 8959 | LIBS="-lgetloadavg $LIBS" |
| 6596 | cat > conftest.$ac_ext <<EOF | 8960 | cat >conftest.$ac_ext <<_ACEOF |
| 6597 | #line 6598 "configure" | 8961 | #line 8961 "configure" |
| 6598 | #include "confdefs.h" | 8962 | #include "confdefs.h" |
| 8963 | |||
| 6599 | /* Override any gcc2 internal prototype to avoid an error. */ | 8964 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8965 | #ifdef __cplusplus | ||
| 8966 | extern "C" | ||
| 8967 | #endif | ||
| 6600 | /* We use char because int might match the return type of a gcc2 | 8968 | /* We use char because int might match the return type of a gcc2 |
| 6601 | builtin and then its argument prototype would still apply. */ | 8969 | builtin and then its argument prototype would still apply. */ |
| 6602 | char getloadavg(); | 8970 | char getloadavg (); |
| 6603 | 8971 | int | |
| 6604 | int main() { | 8972 | main () |
| 6605 | getloadavg() | 8973 | { |
| 6606 | ; return 0; } | 8974 | getloadavg (); |
| 6607 | EOF | 8975 | ; |
| 6608 | if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8976 | return 0; |
| 6609 | rm -rf conftest* | 8977 | } |
| 6610 | eval "ac_cv_lib_$ac_lib_var=yes" | 8978 | _ACEOF |
| 6611 | else | 8979 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6612 | echo "configure: failed program was:" >&5 | 8980 | if { (eval echo "$as_me:8980: \"$ac_link\"") >&5 |
| 6613 | cat conftest.$ac_ext >&5 | 8981 | (eval $ac_link) 2>&5 |
| 6614 | rm -rf conftest* | 8982 | ac_status=$? |
| 6615 | eval "ac_cv_lib_$ac_lib_var=no" | 8983 | echo "$as_me:8983: \$? = $ac_status" >&5 |
| 6616 | fi | 8984 | (exit $ac_status); } && |
| 6617 | rm -f conftest* | 8985 | { ac_try='test -s conftest$ac_exeext' |
| 6618 | LIBS="$ac_save_LIBS" | 8986 | { (eval echo "$as_me:8986: \"$ac_try\"") >&5 |
| 6619 | 8987 | (eval $ac_try) 2>&5 | |
| 6620 | fi | 8988 | ac_status=$? |
| 6621 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8989 | echo "$as_me:8989: \$? = $ac_status" >&5 |
| 6622 | echo "$ac_t""yes" 1>&6 | 8990 | (exit $ac_status); }; }; then |
| 8991 | ac_cv_lib_getloadavg_getloadavg=yes | ||
| 8992 | else | ||
| 8993 | echo "$as_me: failed program was:" >&5 | ||
| 8994 | cat conftest.$ac_ext >&5 | ||
| 8995 | ac_cv_lib_getloadavg_getloadavg=no | ||
| 8996 | fi | ||
| 8997 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 8998 | LIBS=$ac_check_lib_save_LIBS | ||
| 8999 | fi | ||
| 9000 | echo "$as_me:9000: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | ||
| 9001 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 | ||
| 9002 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | ||
| 6623 | LIBS="-lgetloadavg $LIBS" | 9003 | LIBS="-lgetloadavg $LIBS" |
| 6624 | else | 9004 | else |
| 6625 | echo "$ac_t""no" 1>&6 | 9005 | LIBS=$ac_getloadavg_LIBS |
| 6626 | LIBS="$ac_getloadavg_LIBS" | ||
| 6627 | fi | 9006 | fi |
| 6628 | 9007 | ||
| 6629 | fi | 9008 | fi |
| 6630 | 9009 | ||
| 6631 | # Make sure it is really in the library, if we think we found it. | 9010 | # Make sure it is really in the library, if we think we found it, |
| 9011 | # otherwise set up the replacement function. | ||
| 9012 | |||
| 6632 | for ac_func in getloadavg | 9013 | for ac_func in getloadavg |
| 6633 | do | 9014 | do |
| 6634 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 9015 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6635 | echo "configure:6636: checking for $ac_func" >&5 | 9016 | echo "$as_me:9016: checking for $ac_func" >&5 |
| 6636 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 9017 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6637 | echo $ac_n "(cached) $ac_c" 1>&6 | 9018 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6638 | else | 9020 | else |
| 6639 | cat > conftest.$ac_ext <<EOF | 9021 | cat >conftest.$ac_ext <<_ACEOF |
| 6640 | #line 6641 "configure" | 9022 | #line 9022 "configure" |
| 6641 | #include "confdefs.h" | 9023 | #include "confdefs.h" |
| 6642 | /* System header to define __stub macros and hopefully few prototypes, | 9024 | /* System header to define __stub macros and hopefully few prototypes, |
| 6643 | which can conflict with char $ac_func(); below. */ | 9025 | which can conflict with char $ac_func (); below. */ |
| 6644 | #include <assert.h> | 9026 | #include <assert.h> |
| 6645 | /* Override any gcc2 internal prototype to avoid an error. */ | 9027 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9028 | #ifdef __cplusplus | ||
| 9029 | extern "C" | ||
| 9030 | #endif | ||
| 6646 | /* We use char because int might match the return type of a gcc2 | 9031 | /* We use char because int might match the return type of a gcc2 |
| 6647 | builtin and then its argument prototype would still apply. */ | 9032 | builtin and then its argument prototype would still apply. */ |
| 6648 | char $ac_func(); | 9033 | char $ac_func (); |
| 6649 | 9034 | char (*f) (); | |
| 6650 | int main() { | ||
| 6651 | 9035 | ||
| 9036 | int | ||
| 9037 | main () | ||
| 9038 | { | ||
| 6652 | /* The GNU C library defines this for functions which it implements | 9039 | /* The GNU C library defines this for functions which it implements |
| 6653 | to always fail with ENOSYS. Some functions are actually named | 9040 | to always fail with ENOSYS. Some functions are actually named |
| 6654 | something starting with __ and the normal name is an alias. */ | 9041 | something starting with __ and the normal name is an alias. */ |
| 6655 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 9042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6656 | choke me | 9043 | choke me |
| 6657 | #else | 9044 | #else |
| 6658 | $ac_func(); | 9045 | f = $ac_func; |
| 6659 | #endif | 9046 | #endif |
| 6660 | 9047 | ||
| 6661 | ; return 0; } | 9048 | ; |
| 6662 | EOF | 9049 | return 0; |
| 6663 | if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9050 | } |
| 6664 | rm -rf conftest* | 9051 | _ACEOF |
| 6665 | eval "ac_cv_func_$ac_func=yes" | 9052 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9053 | if { (eval echo "$as_me:9053: \"$ac_link\"") >&5 | ||
| 9054 | (eval $ac_link) 2>&5 | ||
| 9055 | ac_status=$? | ||
| 9056 | echo "$as_me:9056: \$? = $ac_status" >&5 | ||
| 9057 | (exit $ac_status); } && | ||
| 9058 | { ac_try='test -s conftest$ac_exeext' | ||
| 9059 | { (eval echo "$as_me:9059: \"$ac_try\"") >&5 | ||
| 9060 | (eval $ac_try) 2>&5 | ||
| 9061 | ac_status=$? | ||
| 9062 | echo "$as_me:9062: \$? = $ac_status" >&5 | ||
| 9063 | (exit $ac_status); }; }; then | ||
| 9064 | eval "$as_ac_var=yes" | ||
| 6666 | else | 9065 | else |
| 6667 | echo "configure: failed program was:" >&5 | 9066 | echo "$as_me: failed program was:" >&5 |
| 6668 | cat conftest.$ac_ext >&5 | 9067 | cat conftest.$ac_ext >&5 |
| 6669 | rm -rf conftest* | 9068 | eval "$as_ac_var=no" |
| 6670 | eval "ac_cv_func_$ac_func=no" | ||
| 6671 | fi | 9069 | fi |
| 6672 | rm -f conftest* | 9070 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6673 | fi | 9071 | fi |
| 6674 | 9072 | echo "$as_me:9072: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
| 6675 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 9073 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6676 | echo "$ac_t""yes" 1>&6 | 9074 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6677 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 9075 | cat >>confdefs.h <<EOF |
| 6678 | cat >> confdefs.h <<EOF | 9076 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6679 | #define $ac_tr_func 1 | ||
| 6680 | EOF | 9077 | EOF |
| 6681 | |||
| 6682 | else | ||
| 6683 | echo "$ac_t""no" 1>&6 | ||
| 6684 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | ||
| 6685 | fi | ||
| 6686 | done | ||
| 6687 | |||
| 6688 | 9078 | ||
| 9079 | else | ||
| 9080 | LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | ||
| 6689 | 9081 | ||
| 6690 | if test $ac_cv_func_getloadavg = yes; then | 9082 | cat >>confdefs.h <<\EOF |
| 6691 | cat >> confdefs.h <<\EOF | 9083 | #define C_GETLOADAVG 1 |
| 6692 | #define HAVE_GETLOADAVG 1 | ||
| 6693 | EOF | 9084 | EOF |
| 6694 | 9085 | ||
| 6695 | ac_have_func=yes | 9086 | # Figure out what our getloadavg.c needs. |
| 6696 | else | 9087 | ac_have_func=no |
| 6697 | # Figure out what our getloadavg.c needs. | 9088 | echo "$as_me:9088: checking for sys/dg_sys_info.h" >&5 |
| 6698 | ac_have_func=no | 9089 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
| 6699 | ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | 9090 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
| 6700 | echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | 9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6701 | echo "configure:6702: checking for sys/dg_sys_info.h" >&5 | ||
| 6702 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
| 6703 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6704 | else | 9092 | else |
| 6705 | cat > conftest.$ac_ext <<EOF | 9093 | cat >conftest.$ac_ext <<_ACEOF |
| 6706 | #line 6707 "configure" | 9094 | #line 9094 "configure" |
| 6707 | #include "confdefs.h" | 9095 | #include "confdefs.h" |
| 6708 | #include <sys/dg_sys_info.h> | 9096 | #include <sys/dg_sys_info.h> |
| 6709 | EOF | 9097 | _ACEOF |
| 6710 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9098 | if { (eval echo "$as_me:9098: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6711 | { (eval echo configure:6712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9099 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6712 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9100 | ac_status=$? |
| 6713 | if test -z "$ac_err"; then | 9101 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6714 | rm -rf conftest* | 9102 | rm -f conftest.er1 |
| 6715 | eval "ac_cv_header_$ac_safe=yes" | 9103 | cat conftest.err >&5 |
| 9104 | echo "$as_me:9104: \$? = $ac_status" >&5 | ||
| 9105 | (exit $ac_status); } >/dev/null; then | ||
| 9106 | if test -s conftest.err; then | ||
| 9107 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 9108 | else | ||
| 9109 | ac_cpp_err= | ||
| 9110 | fi | ||
| 9111 | else | ||
| 9112 | ac_cpp_err=yes | ||
| 9113 | fi | ||
| 9114 | if test -z "$ac_cpp_err"; then | ||
| 9115 | ac_cv_header_sys_dg_sys_info_h=yes | ||
| 6716 | else | 9116 | else |
| 6717 | echo "$ac_err" >&5 | 9117 | echo "$as_me: failed program was:" >&5 |
| 6718 | echo "configure: failed program was:" >&5 | ||
| 6719 | cat conftest.$ac_ext >&5 | 9118 | cat conftest.$ac_ext >&5 |
| 6720 | rm -rf conftest* | 9119 | ac_cv_header_sys_dg_sys_info_h=no |
| 6721 | eval "ac_cv_header_$ac_safe=no" | ||
| 6722 | fi | 9120 | fi |
| 6723 | rm -f conftest* | 9121 | rm -f conftest.err conftest.$ac_ext |
| 6724 | fi | 9122 | fi |
| 6725 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9123 | echo "$as_me:9123: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
| 6726 | echo "$ac_t""yes" 1>&6 | 9124 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
| 6727 | ac_have_func=yes; cat >> confdefs.h <<\EOF | 9125 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
| 9126 | ac_have_func=yes | ||
| 9127 | |||
| 9128 | cat >>confdefs.h <<\EOF | ||
| 6728 | #define DGUX 1 | 9129 | #define DGUX 1 |
| 6729 | EOF | 9130 | EOF |
| 6730 | 9131 | ||
| 6731 | echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | 9132 | echo "$as_me:9132: checking for dg_sys_info in -ldgc" >&5 |
| 6732 | echo "configure:6733: checking for dg_sys_info in -ldgc" >&5 | 9133 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
| 6733 | ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | 9134 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then |
| 6734 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6735 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6736 | else | 9136 | else |
| 6737 | ac_save_LIBS="$LIBS" | 9137 | ac_check_lib_save_LIBS=$LIBS |
| 6738 | LIBS="-ldgc $LIBS" | 9138 | LIBS="-ldgc $LIBS" |
| 6739 | cat > conftest.$ac_ext <<EOF | 9139 | cat >conftest.$ac_ext <<_ACEOF |
| 6740 | #line 6741 "configure" | 9140 | #line 9140 "configure" |
| 6741 | #include "confdefs.h" | 9141 | #include "confdefs.h" |
| 9142 | |||
| 6742 | /* Override any gcc2 internal prototype to avoid an error. */ | 9143 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9144 | #ifdef __cplusplus | ||
| 9145 | extern "C" | ||
| 9146 | #endif | ||
| 6743 | /* We use char because int might match the return type of a gcc2 | 9147 | /* We use char because int might match the return type of a gcc2 |
| 6744 | builtin and then its argument prototype would still apply. */ | 9148 | builtin and then its argument prototype would still apply. */ |
| 6745 | char dg_sys_info(); | 9149 | char dg_sys_info (); |
| 6746 | 9150 | int | |
| 6747 | int main() { | 9151 | main () |
| 6748 | dg_sys_info() | 9152 | { |
| 6749 | ; return 0; } | 9153 | dg_sys_info (); |
| 9154 | ; | ||
| 9155 | return 0; | ||
| 9156 | } | ||
| 9157 | _ACEOF | ||
| 9158 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 9159 | if { (eval echo "$as_me:9159: \"$ac_link\"") >&5 | ||
| 9160 | (eval $ac_link) 2>&5 | ||
| 9161 | ac_status=$? | ||
| 9162 | echo "$as_me:9162: \$? = $ac_status" >&5 | ||
| 9163 | (exit $ac_status); } && | ||
| 9164 | { ac_try='test -s conftest$ac_exeext' | ||
| 9165 | { (eval echo "$as_me:9165: \"$ac_try\"") >&5 | ||
| 9166 | (eval $ac_try) 2>&5 | ||
| 9167 | ac_status=$? | ||
| 9168 | echo "$as_me:9168: \$? = $ac_status" >&5 | ||
| 9169 | (exit $ac_status); }; }; then | ||
| 9170 | ac_cv_lib_dgc_dg_sys_info=yes | ||
| 9171 | else | ||
| 9172 | echo "$as_me: failed program was:" >&5 | ||
| 9173 | cat conftest.$ac_ext >&5 | ||
| 9174 | ac_cv_lib_dgc_dg_sys_info=no | ||
| 9175 | fi | ||
| 9176 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 9177 | LIBS=$ac_check_lib_save_LIBS | ||
| 9178 | fi | ||
| 9179 | echo "$as_me:9179: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | ||
| 9180 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 | ||
| 9181 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | ||
| 9182 | cat >>confdefs.h <<EOF | ||
| 9183 | #define HAVE_LIBDGC 1 | ||
| 6750 | EOF | 9184 | EOF |
| 6751 | if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9185 | |
| 6752 | rm -rf conftest* | 9186 | LIBS="-ldgc $LIBS" |
| 6753 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 6754 | else | ||
| 6755 | echo "configure: failed program was:" >&5 | ||
| 6756 | cat conftest.$ac_ext >&5 | ||
| 6757 | rm -rf conftest* | ||
| 6758 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 6759 | fi | ||
| 6760 | rm -f conftest* | ||
| 6761 | LIBS="$ac_save_LIBS" | ||
| 6762 | 9187 | ||
| 6763 | fi | 9188 | fi |
| 6764 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 6765 | echo "$ac_t""yes" 1>&6 | ||
| 6766 | ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 6767 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 6768 | cat >> confdefs.h <<EOF | ||
| 6769 | #define $ac_tr_lib 1 | ||
| 6770 | EOF | ||
| 6771 | 9189 | ||
| 6772 | LIBS="-ldgc $LIBS" | 9190 | fi |
| 6773 | 9191 | ||
| 9192 | echo "$as_me:9192: checking for locale.h" >&5 | ||
| 9193 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | ||
| 9194 | if test "${ac_cv_header_locale_h+set}" = set; then | ||
| 9195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 9196 | else | ||
| 9197 | cat >conftest.$ac_ext <<_ACEOF | ||
| 9198 | #line 9198 "configure" | ||
| 9199 | #include "confdefs.h" | ||
| 9200 | #include <locale.h> | ||
| 9201 | _ACEOF | ||
| 9202 | if { (eval echo "$as_me:9202: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 9203 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 9204 | ac_status=$? | ||
| 9205 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
| 9206 | rm -f conftest.er1 | ||
| 9207 | cat conftest.err >&5 | ||
| 9208 | echo "$as_me:9208: \$? = $ac_status" >&5 | ||
| 9209 | (exit $ac_status); } >/dev/null; then | ||
| 9210 | if test -s conftest.err; then | ||
| 9211 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 9212 | else | ||
| 9213 | ac_cpp_err= | ||
| 9214 | fi | ||
| 9215 | else | ||
| 9216 | ac_cpp_err=yes | ||
| 9217 | fi | ||
| 9218 | if test -z "$ac_cpp_err"; then | ||
| 9219 | ac_cv_header_locale_h=yes | ||
| 6774 | else | 9220 | else |
| 6775 | echo "$ac_t""no" 1>&6 | 9221 | echo "$as_me: failed program was:" >&5 |
| 9222 | cat conftest.$ac_ext >&5 | ||
| 9223 | ac_cv_header_locale_h=no | ||
| 9224 | fi | ||
| 9225 | rm -f conftest.err conftest.$ac_ext | ||
| 6776 | fi | 9226 | fi |
| 9227 | echo "$as_me:9227: result: $ac_cv_header_locale_h" >&5 | ||
| 9228 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | ||
| 6777 | 9229 | ||
| 9230 | for ac_func in setlocale | ||
| 9231 | do | ||
| 9232 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
| 9233 | echo "$as_me:9233: checking for $ac_func" >&5 | ||
| 9234 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
| 9235 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
| 9236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 6778 | else | 9237 | else |
| 6779 | echo "$ac_t""no" 1>&6 | 9238 | cat >conftest.$ac_ext <<_ACEOF |
| 9239 | #line 9239 "configure" | ||
| 9240 | #include "confdefs.h" | ||
| 9241 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 9242 | which can conflict with char $ac_func (); below. */ | ||
| 9243 | #include <assert.h> | ||
| 9244 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 9245 | #ifdef __cplusplus | ||
| 9246 | extern "C" | ||
| 9247 | #endif | ||
| 9248 | /* We use char because int might match the return type of a gcc2 | ||
| 9249 | builtin and then its argument prototype would still apply. */ | ||
| 9250 | char $ac_func (); | ||
| 9251 | char (*f) (); | ||
| 9252 | |||
| 9253 | int | ||
| 9254 | main () | ||
| 9255 | { | ||
| 9256 | /* The GNU C library defines this for functions which it implements | ||
| 9257 | to always fail with ENOSYS. Some functions are actually named | ||
| 9258 | something starting with __ and the normal name is an alias. */ | ||
| 9259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 9260 | choke me | ||
| 9261 | #else | ||
| 9262 | f = $ac_func; | ||
| 9263 | #endif | ||
| 9264 | |||
| 9265 | ; | ||
| 9266 | return 0; | ||
| 9267 | } | ||
| 9268 | _ACEOF | ||
| 9269 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 9270 | if { (eval echo "$as_me:9270: \"$ac_link\"") >&5 | ||
| 9271 | (eval $ac_link) 2>&5 | ||
| 9272 | ac_status=$? | ||
| 9273 | echo "$as_me:9273: \$? = $ac_status" >&5 | ||
| 9274 | (exit $ac_status); } && | ||
| 9275 | { ac_try='test -s conftest$ac_exeext' | ||
| 9276 | { (eval echo "$as_me:9276: \"$ac_try\"") >&5 | ||
| 9277 | (eval $ac_try) 2>&5 | ||
| 9278 | ac_status=$? | ||
| 9279 | echo "$as_me:9279: \$? = $ac_status" >&5 | ||
| 9280 | (exit $ac_status); }; }; then | ||
| 9281 | eval "$as_ac_var=yes" | ||
| 9282 | else | ||
| 9283 | echo "$as_me: failed program was:" >&5 | ||
| 9284 | cat conftest.$ac_ext >&5 | ||
| 9285 | eval "$as_ac_var=no" | ||
| 9286 | fi | ||
| 9287 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 9288 | fi | ||
| 9289 | echo "$as_me:9289: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 9290 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 9291 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 9292 | cat >>confdefs.h <<EOF | ||
| 9293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 9294 | EOF | ||
| 9295 | |||
| 6780 | fi | 9296 | fi |
| 9297 | done | ||
| 6781 | 9298 | ||
| 9299 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | ||
| 9300 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | ||
| 9301 | # Irix 4.0.5F has the header but not the library. | ||
| 9302 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | ||
| 9303 | ac_have_func=yes | ||
| 6782 | 9304 | ||
| 6783 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | 9305 | cat >>confdefs.h <<\EOF |
| 6784 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | ||
| 6785 | # Irix 4.0.5F has the header but not the library. | ||
| 6786 | if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then | ||
| 6787 | ac_have_func=yes; cat >> confdefs.h <<\EOF | ||
| 6788 | #define SVR4 1 | 9306 | #define SVR4 1 |
| 6789 | EOF | 9307 | EOF |
| 6790 | 9308 | ||
| 6791 | fi | 9309 | fi |
| 6792 | 9310 | ||
| 6793 | if test $ac_have_func = no; then | 9311 | if test $ac_have_func = no; then |
| 6794 | ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | 9312 | echo "$as_me:9312: checking for inq_stats/cpustats.h" >&5 |
| 6795 | echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | 9313 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
| 6796 | echo "configure:6797: checking for inq_stats/cpustats.h" >&5 | 9314 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
| 6797 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6798 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6799 | else | 9316 | else |
| 6800 | cat > conftest.$ac_ext <<EOF | 9317 | cat >conftest.$ac_ext <<_ACEOF |
| 6801 | #line 6802 "configure" | 9318 | #line 9318 "configure" |
| 6802 | #include "confdefs.h" | 9319 | #include "confdefs.h" |
| 6803 | #include <inq_stats/cpustats.h> | 9320 | #include <inq_stats/cpustats.h> |
| 6804 | EOF | 9321 | _ACEOF |
| 6805 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9322 | if { (eval echo "$as_me:9322: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6806 | { (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9323 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6807 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9324 | ac_status=$? |
| 6808 | if test -z "$ac_err"; then | 9325 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6809 | rm -rf conftest* | 9326 | rm -f conftest.er1 |
| 6810 | eval "ac_cv_header_$ac_safe=yes" | 9327 | cat conftest.err >&5 |
| 9328 | echo "$as_me:9328: \$? = $ac_status" >&5 | ||
| 9329 | (exit $ac_status); } >/dev/null; then | ||
| 9330 | if test -s conftest.err; then | ||
| 9331 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 9332 | else | ||
| 9333 | ac_cpp_err= | ||
| 9334 | fi | ||
| 6811 | else | 9335 | else |
| 6812 | echo "$ac_err" >&5 | 9336 | ac_cpp_err=yes |
| 6813 | echo "configure: failed program was:" >&5 | 9337 | fi |
| 9338 | if test -z "$ac_cpp_err"; then | ||
| 9339 | ac_cv_header_inq_stats_cpustats_h=yes | ||
| 9340 | else | ||
| 9341 | echo "$as_me: failed program was:" >&5 | ||
| 6814 | cat conftest.$ac_ext >&5 | 9342 | cat conftest.$ac_ext >&5 |
| 6815 | rm -rf conftest* | 9343 | ac_cv_header_inq_stats_cpustats_h=no |
| 6816 | eval "ac_cv_header_$ac_safe=no" | ||
| 6817 | fi | 9344 | fi |
| 6818 | rm -f conftest* | 9345 | rm -f conftest.err conftest.$ac_ext |
| 6819 | fi | 9346 | fi |
| 6820 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9347 | echo "$as_me:9347: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
| 6821 | echo "$ac_t""yes" 1>&6 | 9348 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
| 6822 | ac_have_func=yes; cat >> confdefs.h <<\EOF | 9349 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
| 9350 | ac_have_func=yes | ||
| 9351 | |||
| 9352 | cat >>confdefs.h <<\EOF | ||
| 6823 | #define UMAX 1 | 9353 | #define UMAX 1 |
| 6824 | EOF | 9354 | EOF |
| 6825 | 9355 | ||
| 6826 | cat >> confdefs.h <<\EOF | 9356 | cat >>confdefs.h <<\EOF |
| 6827 | #define UMAX4_3 1 | 9357 | #define UMAX4_3 1 |
| 6828 | EOF | 9358 | EOF |
| 6829 | 9359 | ||
| 6830 | else | ||
| 6831 | echo "$ac_t""no" 1>&6 | ||
| 6832 | fi | 9360 | fi |
| 6833 | 9361 | ||
| 6834 | fi | 9362 | fi |
| 6835 | 9363 | ||
| 6836 | if test $ac_have_func = no; then | 9364 | if test $ac_have_func = no; then |
| 6837 | ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | 9365 | echo "$as_me:9365: checking for sys/cpustats.h" >&5 |
| 6838 | echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | 9366 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
| 6839 | echo "configure:6840: checking for sys/cpustats.h" >&5 | 9367 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
| 6840 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6841 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6842 | else | 9369 | else |
| 6843 | cat > conftest.$ac_ext <<EOF | 9370 | cat >conftest.$ac_ext <<_ACEOF |
| 6844 | #line 6845 "configure" | 9371 | #line 9371 "configure" |
| 6845 | #include "confdefs.h" | 9372 | #include "confdefs.h" |
| 6846 | #include <sys/cpustats.h> | 9373 | #include <sys/cpustats.h> |
| 6847 | EOF | 9374 | _ACEOF |
| 6848 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9375 | if { (eval echo "$as_me:9375: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6849 | { (eval echo configure:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9376 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6850 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9377 | ac_status=$? |
| 6851 | if test -z "$ac_err"; then | 9378 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6852 | rm -rf conftest* | 9379 | rm -f conftest.er1 |
| 6853 | eval "ac_cv_header_$ac_safe=yes" | 9380 | cat conftest.err >&5 |
| 9381 | echo "$as_me:9381: \$? = $ac_status" >&5 | ||
| 9382 | (exit $ac_status); } >/dev/null; then | ||
| 9383 | if test -s conftest.err; then | ||
| 9384 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 9385 | else | ||
| 9386 | ac_cpp_err= | ||
| 9387 | fi | ||
| 9388 | else | ||
| 9389 | ac_cpp_err=yes | ||
| 9390 | fi | ||
| 9391 | if test -z "$ac_cpp_err"; then | ||
| 9392 | ac_cv_header_sys_cpustats_h=yes | ||
| 6854 | else | 9393 | else |
| 6855 | echo "$ac_err" >&5 | 9394 | echo "$as_me: failed program was:" >&5 |
| 6856 | echo "configure: failed program was:" >&5 | ||
| 6857 | cat conftest.$ac_ext >&5 | 9395 | cat conftest.$ac_ext >&5 |
| 6858 | rm -rf conftest* | 9396 | ac_cv_header_sys_cpustats_h=no |
| 6859 | eval "ac_cv_header_$ac_safe=no" | ||
| 6860 | fi | 9397 | fi |
| 6861 | rm -f conftest* | 9398 | rm -f conftest.err conftest.$ac_ext |
| 6862 | fi | 9399 | fi |
| 6863 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9400 | echo "$as_me:9400: result: $ac_cv_header_sys_cpustats_h" >&5 |
| 6864 | echo "$ac_t""yes" 1>&6 | 9401 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
| 6865 | ac_have_func=yes; cat >> confdefs.h <<\EOF | 9402 | if test $ac_cv_header_sys_cpustats_h = yes; then |
| 9403 | ac_have_func=yes; cat >>confdefs.h <<\EOF | ||
| 6866 | #define UMAX 1 | 9404 | #define UMAX 1 |
| 6867 | EOF | 9405 | EOF |
| 6868 | 9406 | ||
| 6869 | else | ||
| 6870 | echo "$ac_t""no" 1>&6 | ||
| 6871 | fi | 9407 | fi |
| 6872 | 9408 | ||
| 6873 | fi | 9409 | fi |
| 6874 | 9410 | ||
| 6875 | if test $ac_have_func = no; then | 9411 | if test $ac_have_func = no; then |
| 6876 | for ac_hdr in mach/mach.h | 9412 | |
| 9413 | for ac_header in mach/mach.h | ||
| 6877 | do | 9414 | do |
| 6878 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 9415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6879 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 9416 | echo "$as_me:9416: checking for $ac_header" >&5 |
| 6880 | echo "configure:6881: checking for $ac_hdr" >&5 | 9417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6881 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6882 | echo $ac_n "(cached) $ac_c" 1>&6 | 9419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6883 | else | 9420 | else |
| 6884 | cat > conftest.$ac_ext <<EOF | 9421 | cat >conftest.$ac_ext <<_ACEOF |
| 6885 | #line 6886 "configure" | 9422 | #line 9422 "configure" |
| 6886 | #include "confdefs.h" | 9423 | #include "confdefs.h" |
| 6887 | #include <$ac_hdr> | 9424 | #include <$ac_header> |
| 6888 | EOF | 9425 | _ACEOF |
| 6889 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9426 | if { (eval echo "$as_me:9426: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6890 | { (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9427 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6891 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 9428 | ac_status=$? |
| 6892 | if test -z "$ac_err"; then | 9429 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6893 | rm -rf conftest* | 9430 | rm -f conftest.er1 |
| 6894 | eval "ac_cv_header_$ac_safe=yes" | 9431 | cat conftest.err >&5 |
| 6895 | else | 9432 | echo "$as_me:9432: \$? = $ac_status" >&5 |
| 6896 | echo "$ac_err" >&5 | 9433 | (exit $ac_status); } >/dev/null; then |
| 6897 | echo "configure: failed program was:" >&5 | 9434 | if test -s conftest.err; then |
| 9435 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 9436 | else | ||
| 9437 | ac_cpp_err= | ||
| 9438 | fi | ||
| 9439 | else | ||
| 9440 | ac_cpp_err=yes | ||
| 9441 | fi | ||
| 9442 | if test -z "$ac_cpp_err"; then | ||
| 9443 | eval "$as_ac_Header=yes" | ||
| 9444 | else | ||
| 9445 | echo "$as_me: failed program was:" >&5 | ||
| 6898 | cat conftest.$ac_ext >&5 | 9446 | cat conftest.$ac_ext >&5 |
| 6899 | rm -rf conftest* | 9447 | eval "$as_ac_Header=no" |
| 6900 | eval "ac_cv_header_$ac_safe=no" | ||
| 6901 | fi | 9448 | fi |
| 6902 | rm -f conftest* | 9449 | rm -f conftest.err conftest.$ac_ext |
| 6903 | fi | 9450 | fi |
| 6904 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9451 | echo "$as_me:9451: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6905 | echo "$ac_t""yes" 1>&6 | 9452 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6906 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 9453 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6907 | cat >> confdefs.h <<EOF | 9454 | cat >>confdefs.h <<EOF |
| 6908 | #define $ac_tr_hdr 1 | 9455 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6909 | EOF | 9456 | EOF |
| 6910 | 9457 | ||
| 6911 | else | ||
| 6912 | echo "$ac_t""no" 1>&6 | ||
| 6913 | fi | 9458 | fi |
| 6914 | done | 9459 | done |
| 6915 | 9460 | ||
| 6916 | fi | 9461 | fi |
| 6917 | 9462 | ||
| 6918 | ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 9463 | for ac_header in nlist.h |
| 6919 | echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 9464 | do |
| 6920 | echo "configure:6921: checking for nlist.h" >&5 | 9465 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6921 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 9466 | echo "$as_me:9466: checking for $ac_header" >&5 |
| 6922 | echo $ac_n "(cached) $ac_c" 1>&6 | 9467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
| 9469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 9470 | else | ||
| 9471 | cat >conftest.$ac_ext <<_ACEOF | ||
| 9472 | #line 9472 "configure" | ||
| 9473 | #include "confdefs.h" | ||
| 9474 | #include <$ac_header> | ||
| 9475 | _ACEOF | ||
| 9476 | if { (eval echo "$as_me:9476: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 9477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 9478 | ac_status=$? | ||
| 9479 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
| 9480 | rm -f conftest.er1 | ||
| 9481 | cat conftest.err >&5 | ||
| 9482 | echo "$as_me:9482: \$? = $ac_status" >&5 | ||
| 9483 | (exit $ac_status); } >/dev/null; then | ||
| 9484 | if test -s conftest.err; then | ||
| 9485 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 9486 | else | ||
| 9487 | ac_cpp_err= | ||
| 9488 | fi | ||
| 6923 | else | 9489 | else |
| 6924 | cat > conftest.$ac_ext <<EOF | 9490 | ac_cpp_err=yes |
| 6925 | #line 6926 "configure" | 9491 | fi |
| 6926 | #include "confdefs.h" | 9492 | if test -z "$ac_cpp_err"; then |
| 6927 | #include <nlist.h> | 9493 | eval "$as_ac_Header=yes" |
| 6928 | EOF | ||
| 6929 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 6930 | { (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 6931 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 6932 | if test -z "$ac_err"; then | ||
| 6933 | rm -rf conftest* | ||
| 6934 | eval "ac_cv_header_$ac_safe=yes" | ||
| 6935 | else | 9494 | else |
| 6936 | echo "$ac_err" >&5 | 9495 | echo "$as_me: failed program was:" >&5 |
| 6937 | echo "configure: failed program was:" >&5 | ||
| 6938 | cat conftest.$ac_ext >&5 | 9496 | cat conftest.$ac_ext >&5 |
| 6939 | rm -rf conftest* | 9497 | eval "$as_ac_Header=no" |
| 6940 | eval "ac_cv_header_$ac_safe=no" | ||
| 6941 | fi | 9498 | fi |
| 6942 | rm -f conftest* | 9499 | rm -f conftest.err conftest.$ac_ext |
| 6943 | fi | 9500 | fi |
| 6944 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9501 | echo "$as_me:9501: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6945 | echo "$ac_t""yes" 1>&6 | 9502 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6946 | cat >> confdefs.h <<\EOF | 9503 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6947 | #define NLIST_STRUCT 1 | 9504 | cat >>confdefs.h <<EOF |
| 9505 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 6948 | EOF | 9506 | EOF |
| 6949 | 9507 | echo "$as_me:9507: checking for struct nlist.n_un.n_name" >&5 | |
| 6950 | echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | 9508 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
| 6951 | echo "configure:6952: checking for n_un in struct nlist" >&5 | 9509 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then |
| 6952 | if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | 9510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6953 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6954 | else | 9511 | else |
| 6955 | cat > conftest.$ac_ext <<EOF | 9512 | cat >conftest.$ac_ext <<_ACEOF |
| 6956 | #line 6957 "configure" | 9513 | #line 9513 "configure" |
| 6957 | #include "confdefs.h" | 9514 | #include "confdefs.h" |
| 6958 | #include <nlist.h> | 9515 | #include <nlist.h> |
| 6959 | int main() { | ||
| 6960 | struct nlist n; n.n_un.n_name = 0; | ||
| 6961 | ; return 0; } | ||
| 6962 | EOF | ||
| 6963 | if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6964 | rm -rf conftest* | ||
| 6965 | ac_cv_struct_nlist_n_un=yes | ||
| 6966 | else | ||
| 6967 | echo "configure: failed program was:" >&5 | ||
| 6968 | cat conftest.$ac_ext >&5 | ||
| 6969 | rm -rf conftest* | ||
| 6970 | ac_cv_struct_nlist_n_un=no | ||
| 6971 | fi | ||
| 6972 | rm -f conftest* | ||
| 6973 | fi | ||
| 6974 | 9516 | ||
| 6975 | echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 | 9517 | int |
| 6976 | if test $ac_cv_struct_nlist_n_un = yes; then | 9518 | main () |
| 6977 | cat >> confdefs.h <<\EOF | 9519 | { |
| 9520 | static struct nlist ac_aggr; | ||
| 9521 | if (ac_aggr.n_un.n_name) | ||
| 9522 | return 0; | ||
| 9523 | ; | ||
| 9524 | return 0; | ||
| 9525 | } | ||
| 9526 | _ACEOF | ||
| 9527 | rm -f conftest.$ac_objext | ||
| 9528 | if { (eval echo "$as_me:9528: \"$ac_compile\"") >&5 | ||
| 9529 | (eval $ac_compile) 2>&5 | ||
| 9530 | ac_status=$? | ||
| 9531 | echo "$as_me:9531: \$? = $ac_status" >&5 | ||
| 9532 | (exit $ac_status); } && | ||
| 9533 | { ac_try='test -s conftest.$ac_objext' | ||
| 9534 | { (eval echo "$as_me:9534: \"$ac_try\"") >&5 | ||
| 9535 | (eval $ac_try) 2>&5 | ||
| 9536 | ac_status=$? | ||
| 9537 | echo "$as_me:9537: \$? = $ac_status" >&5 | ||
| 9538 | (exit $ac_status); }; }; then | ||
| 9539 | ac_cv_member_struct_nlist_n_un_n_name=yes | ||
| 9540 | else | ||
| 9541 | echo "$as_me: failed program was:" >&5 | ||
| 9542 | cat conftest.$ac_ext >&5 | ||
| 9543 | ac_cv_member_struct_nlist_n_un_n_name=no | ||
| 9544 | fi | ||
| 9545 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 9546 | fi | ||
| 9547 | echo "$as_me:9547: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | ||
| 9548 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 | ||
| 9549 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | ||
| 9550 | |||
| 9551 | cat >>confdefs.h <<EOF | ||
| 9552 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | ||
| 9553 | EOF | ||
| 9554 | |||
| 9555 | cat >>confdefs.h <<\EOF | ||
| 6978 | #define NLIST_NAME_UNION 1 | 9556 | #define NLIST_NAME_UNION 1 |
| 6979 | EOF | 9557 | EOF |
| 6980 | 9558 | ||
| 6981 | fi | ||
| 6982 | |||
| 6983 | else | ||
| 6984 | echo "$ac_t""no" 1>&6 | ||
| 6985 | fi | 9559 | fi |
| 6986 | fi # Do not have getloadavg in system libraries. | 9560 | |
| 9561 | fi | ||
| 9562 | done | ||
| 9563 | |||
| 9564 | fi | ||
| 9565 | done | ||
| 6987 | 9566 | ||
| 6988 | # Some definitions of getloadavg require that the program be installed setgid. | 9567 | # Some definitions of getloadavg require that the program be installed setgid. |
| 6989 | echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | 9568 | echo "$as_me:9568: checking whether getloadavg requires setgid" >&5 |
| 6990 | echo "configure:6991: checking whether getloadavg requires setgid" >&5 | 9569 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
| 6991 | if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | 9570 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then |
| 6992 | echo $ac_n "(cached) $ac_c" 1>&6 | 9571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6993 | else | 9572 | else |
| 6994 | cat > conftest.$ac_ext <<EOF | 9573 | cat >conftest.$ac_ext <<_ACEOF |
| 6995 | #line 6996 "configure" | 9574 | #line 9574 "configure" |
| 6996 | #include "confdefs.h" | 9575 | #include "confdefs.h" |
| 6997 | #include "$srcdir/getloadavg.c" | 9576 | #include "$srcdir/getloadavg.c" |
| 6998 | #ifdef LDAV_PRIVILEGED | 9577 | #ifdef LDAV_PRIVILEGED |
| 6999 | Yowza Am I SETGID yet | 9578 | Yowza Am I SETGID yet |
| 7000 | #endif | 9579 | #endif |
| 7001 | EOF | 9580 | _ACEOF |
| 7002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 9581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7003 | egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | 9582 | egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
| 7004 | rm -rf conftest* | ||
| 7005 | ac_cv_func_getloadavg_setgid=yes | 9583 | ac_cv_func_getloadavg_setgid=yes |
| 7006 | else | 9584 | else |
| 7007 | rm -rf conftest* | ||
| 7008 | ac_cv_func_getloadavg_setgid=no | 9585 | ac_cv_func_getloadavg_setgid=no |
| 7009 | fi | 9586 | fi |
| 7010 | rm -f conftest* | 9587 | rm -f conftest* |
| 7011 | 9588 | ||
| 7012 | fi | 9589 | fi |
| 7013 | 9590 | echo "$as_me:9590: result: $ac_cv_func_getloadavg_setgid" >&5 | |
| 7014 | echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 | 9591 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
| 7015 | if test $ac_cv_func_getloadavg_setgid = yes; then | 9592 | if test $ac_cv_func_getloadavg_setgid = yes; then |
| 7016 | NEED_SETGID=true; cat >> confdefs.h <<\EOF | 9593 | NEED_SETGID=true |
| 9594 | |||
| 9595 | cat >>confdefs.h <<\EOF | ||
| 7017 | #define GETLOADAVG_PRIVILEGED 1 | 9596 | #define GETLOADAVG_PRIVILEGED 1 |
| 7018 | EOF | 9597 | EOF |
| 7019 | 9598 | ||
| @@ -7022,12 +9601,12 @@ else | |||
| 7022 | fi | 9601 | fi |
| 7023 | 9602 | ||
| 7024 | if test $ac_cv_func_getloadavg_setgid = yes; then | 9603 | if test $ac_cv_func_getloadavg_setgid = yes; then |
| 7025 | echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | 9604 | echo "$as_me:9604: checking group of /dev/kmem" >&5 |
| 7026 | echo "configure:7027: checking group of /dev/kmem" >&5 | 9605 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
| 7027 | if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | 9606 | if test "${ac_cv_group_kmem+set}" = set; then |
| 7028 | echo $ac_n "(cached) $ac_c" 1>&6 | 9607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7029 | else | 9608 | else |
| 7030 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 9609 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
| 7031 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 9610 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
| 7032 | # If we got an error (system does not support symlinks), try without -L. | 9611 | # If we got an error (system does not support symlinks), try without -L. |
| 7033 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | 9612 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` |
| @@ -7037,638 +9616,823 @@ else | |||
| 7037 | / /s/.* //;p;'` | 9616 | / /s/.* //;p;'` |
| 7038 | 9617 | ||
| 7039 | fi | 9618 | fi |
| 7040 | 9619 | echo "$as_me:9619: result: $ac_cv_group_kmem" >&5 | |
| 7041 | echo "$ac_t""$ac_cv_group_kmem" 1>&6 | 9620 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
| 7042 | KMEM_GROUP=$ac_cv_group_kmem | 9621 | KMEM_GROUP=$ac_cv_group_kmem |
| 7043 | fi | 9622 | fi |
| 9623 | if test "x$ac_save_LIBS" = x; then | ||
| 9624 | GETLOADAVG_LIBS=$LIBS | ||
| 9625 | else | ||
| 9626 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | ||
| 9627 | fi | ||
| 9628 | LIBS=$ac_save_LIBS | ||
| 7044 | 9629 | ||
| 7045 | 9630 | echo "$as_me:9630: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
| 7046 | echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 9631 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
| 7047 | echo "configure:7048: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 9632 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
| 7048 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 9633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7049 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7050 | else | 9634 | else |
| 9635 | while :; do | ||
| 7051 | ac_cv_sys_largefile_source=no | 9636 | ac_cv_sys_largefile_source=no |
| 7052 | cat > conftest.$ac_ext <<EOF | 9637 | cat >conftest.$ac_ext <<_ACEOF |
| 7053 | #line 7054 "configure" | 9638 | #line 9638 "configure" |
| 7054 | #include "confdefs.h" | 9639 | #include "confdefs.h" |
| 7055 | #include <stdio.h> | 9640 | #include <stdio.h> |
| 7056 | int main() { | 9641 | int |
| 9642 | main () | ||
| 9643 | { | ||
| 7057 | return !fseeko; | 9644 | return !fseeko; |
| 7058 | ; return 0; } | 9645 | ; |
| 7059 | EOF | 9646 | return 0; |
| 7060 | if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 9647 | } |
| 7061 | : | 9648 | _ACEOF |
| 9649 | rm -f conftest.$ac_objext | ||
| 9650 | if { (eval echo "$as_me:9650: \"$ac_compile\"") >&5 | ||
| 9651 | (eval $ac_compile) 2>&5 | ||
| 9652 | ac_status=$? | ||
| 9653 | echo "$as_me:9653: \$? = $ac_status" >&5 | ||
| 9654 | (exit $ac_status); } && | ||
| 9655 | { ac_try='test -s conftest.$ac_objext' | ||
| 9656 | { (eval echo "$as_me:9656: \"$ac_try\"") >&5 | ||
| 9657 | (eval $ac_try) 2>&5 | ||
| 9658 | ac_status=$? | ||
| 9659 | echo "$as_me:9659: \$? = $ac_status" >&5 | ||
| 9660 | (exit $ac_status); }; }; then | ||
| 9661 | break | ||
| 7062 | else | 9662 | else |
| 7063 | echo "configure: failed program was:" >&5 | 9663 | echo "$as_me: failed program was:" >&5 |
| 7064 | cat conftest.$ac_ext >&5 | 9664 | cat conftest.$ac_ext >&5 |
| 7065 | rm -rf conftest* | 9665 | fi |
| 7066 | cat > conftest.$ac_ext <<EOF | 9666 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7067 | #line 7068 "configure" | 9667 | cat >conftest.$ac_ext <<_ACEOF |
| 9668 | #line 9668 "configure" | ||
| 7068 | #include "confdefs.h" | 9669 | #include "confdefs.h" |
| 7069 | #define _LARGEFILE_SOURCE 1 | 9670 | #define _LARGEFILE_SOURCE 1 |
| 7070 | #include <stdio.h> | 9671 | #include <stdio.h> |
| 7071 | 9672 | int | |
| 7072 | int main() { | 9673 | main () |
| 9674 | { | ||
| 7073 | return !fseeko; | 9675 | return !fseeko; |
| 7074 | ; return 0; } | 9676 | ; |
| 7075 | EOF | 9677 | return 0; |
| 7076 | if { (eval echo configure:7077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 9678 | } |
| 7077 | rm -rf conftest* | 9679 | _ACEOF |
| 7078 | ac_cv_sys_largefile_source=1 | 9680 | rm -f conftest.$ac_objext |
| 7079 | else | 9681 | if { (eval echo "$as_me:9681: \"$ac_compile\"") >&5 |
| 7080 | echo "configure: failed program was:" >&5 | 9682 | (eval $ac_compile) 2>&5 |
| 7081 | cat conftest.$ac_ext >&5 | 9683 | ac_status=$? |
| 7082 | fi | 9684 | echo "$as_me:9684: \$? = $ac_status" >&5 |
| 7083 | rm -f conftest* | 9685 | (exit $ac_status); } && |
| 7084 | fi | 9686 | { ac_try='test -s conftest.$ac_objext' |
| 7085 | rm -f conftest* | 9687 | { (eval echo "$as_me:9687: \"$ac_try\"") >&5 |
| 9688 | (eval $ac_try) 2>&5 | ||
| 9689 | ac_status=$? | ||
| 9690 | echo "$as_me:9690: \$? = $ac_status" >&5 | ||
| 9691 | (exit $ac_status); }; }; then | ||
| 9692 | ac_cv_sys_largefile_source=1; break | ||
| 9693 | else | ||
| 9694 | echo "$as_me: failed program was:" >&5 | ||
| 9695 | cat conftest.$ac_ext >&5 | ||
| 9696 | fi | ||
| 9697 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 9698 | break | ||
| 9699 | done | ||
| 7086 | fi | 9700 | fi |
| 9701 | echo "$as_me:9701: result: $ac_cv_sys_largefile_source" >&5 | ||
| 9702 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | ||
| 9703 | if test "$ac_cv_sys_largefile_source" != no; then | ||
| 7087 | 9704 | ||
| 7088 | echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 | 9705 | cat >>confdefs.h <<EOF |
| 7089 | if test "$ac_cv_sys_largefile_source" != no; then | ||
| 7090 | cat >> confdefs.h <<EOF | ||
| 7091 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 9706 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 7092 | EOF | 9707 | EOF |
| 7093 | 9708 | ||
| 7094 | fi | 9709 | fi |
| 7095 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 9710 | rm -f conftest* |
| 7096 | # in glibc 2.1.3, but that breaks too many other things. | ||
| 7097 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | ||
| 7098 | 9711 | ||
| 7099 | echo $ac_n "checking for fseeko""... $ac_c" 1>&6 | 9712 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 7100 | echo "configure:7101: checking for fseeko" >&5 | 9713 | # in glibc 2.1.3, but that breaks too many other things. |
| 7101 | if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then | 9714 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 7102 | echo $ac_n "(cached) $ac_c" 1>&6 | 9715 | echo "$as_me:9715: checking for fseeko" >&5 |
| 9716 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | ||
| 9717 | if test "${ac_cv_func_fseeko+set}" = set; then | ||
| 9718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 7103 | else | 9719 | else |
| 7104 | ac_cv_func_fseeko=no | 9720 | cat >conftest.$ac_ext <<_ACEOF |
| 7105 | cat > conftest.$ac_ext <<EOF | 9721 | #line 9721 "configure" |
| 7106 | #line 7107 "configure" | ||
| 7107 | #include "confdefs.h" | 9722 | #include "confdefs.h" |
| 7108 | #include <stdio.h> | 9723 | #include <stdio.h> |
| 7109 | int main() { | 9724 | int |
| 9725 | main () | ||
| 9726 | { | ||
| 7110 | return fseeko && fseeko (stdin, 0, 0); | 9727 | return fseeko && fseeko (stdin, 0, 0); |
| 7111 | ; return 0; } | 9728 | ; |
| 7112 | EOF | 9729 | return 0; |
| 7113 | if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9730 | } |
| 7114 | rm -rf conftest* | 9731 | _ACEOF |
| 9732 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 9733 | if { (eval echo "$as_me:9733: \"$ac_link\"") >&5 | ||
| 9734 | (eval $ac_link) 2>&5 | ||
| 9735 | ac_status=$? | ||
| 9736 | echo "$as_me:9736: \$? = $ac_status" >&5 | ||
| 9737 | (exit $ac_status); } && | ||
| 9738 | { ac_try='test -s conftest$ac_exeext' | ||
| 9739 | { (eval echo "$as_me:9739: \"$ac_try\"") >&5 | ||
| 9740 | (eval $ac_try) 2>&5 | ||
| 9741 | ac_status=$? | ||
| 9742 | echo "$as_me:9742: \$? = $ac_status" >&5 | ||
| 9743 | (exit $ac_status); }; }; then | ||
| 7115 | ac_cv_func_fseeko=yes | 9744 | ac_cv_func_fseeko=yes |
| 7116 | else | 9745 | else |
| 7117 | echo "configure: failed program was:" >&5 | 9746 | echo "$as_me: failed program was:" >&5 |
| 7118 | cat conftest.$ac_ext >&5 | 9747 | cat conftest.$ac_ext >&5 |
| 9748 | ac_cv_func_fseeko=no | ||
| 7119 | fi | 9749 | fi |
| 7120 | rm -f conftest* | 9750 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7121 | fi | 9751 | fi |
| 9752 | echo "$as_me:9752: result: $ac_cv_func_fseeko" >&5 | ||
| 9753 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | ||
| 9754 | if test $ac_cv_func_fseeko = yes; then | ||
| 7122 | 9755 | ||
| 7123 | echo "$ac_t""$ac_cv_func_fseeko" 1>&6 | 9756 | cat >>confdefs.h <<\EOF |
| 7124 | if test $ac_cv_func_fseeko != no; then | ||
| 7125 | cat >> confdefs.h <<\EOF | ||
| 7126 | #define HAVE_FSEEKO 1 | 9757 | #define HAVE_FSEEKO 1 |
| 7127 | EOF | 9758 | EOF |
| 7128 | 9759 | ||
| 7129 | fi | 9760 | fi |
| 7130 | 9761 | ||
| 7131 | # UNIX98 PTYs. | 9762 | # UNIX98 PTYs. |
| 9763 | |||
| 7132 | for ac_func in grantpt | 9764 | for ac_func in grantpt |
| 7133 | do | 9765 | do |
| 7134 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 9766 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7135 | echo "configure:7136: checking for $ac_func" >&5 | 9767 | echo "$as_me:9767: checking for $ac_func" >&5 |
| 7136 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 9768 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7137 | echo $ac_n "(cached) $ac_c" 1>&6 | 9769 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 7138 | else | 9771 | else |
| 7139 | cat > conftest.$ac_ext <<EOF | 9772 | cat >conftest.$ac_ext <<_ACEOF |
| 7140 | #line 7141 "configure" | 9773 | #line 9773 "configure" |
| 7141 | #include "confdefs.h" | 9774 | #include "confdefs.h" |
| 7142 | /* System header to define __stub macros and hopefully few prototypes, | 9775 | /* System header to define __stub macros and hopefully few prototypes, |
| 7143 | which can conflict with char $ac_func(); below. */ | 9776 | which can conflict with char $ac_func (); below. */ |
| 7144 | #include <assert.h> | 9777 | #include <assert.h> |
| 7145 | /* Override any gcc2 internal prototype to avoid an error. */ | 9778 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9779 | #ifdef __cplusplus | ||
| 9780 | extern "C" | ||
| 9781 | #endif | ||
| 7146 | /* We use char because int might match the return type of a gcc2 | 9782 | /* We use char because int might match the return type of a gcc2 |
| 7147 | builtin and then its argument prototype would still apply. */ | 9783 | builtin and then its argument prototype would still apply. */ |
| 7148 | char $ac_func(); | 9784 | char $ac_func (); |
| 7149 | 9785 | char (*f) (); | |
| 7150 | int main() { | ||
| 7151 | 9786 | ||
| 9787 | int | ||
| 9788 | main () | ||
| 9789 | { | ||
| 7152 | /* The GNU C library defines this for functions which it implements | 9790 | /* The GNU C library defines this for functions which it implements |
| 7153 | to always fail with ENOSYS. Some functions are actually named | 9791 | to always fail with ENOSYS. Some functions are actually named |
| 7154 | something starting with __ and the normal name is an alias. */ | 9792 | something starting with __ and the normal name is an alias. */ |
| 7155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 9793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7156 | choke me | 9794 | choke me |
| 7157 | #else | 9795 | #else |
| 7158 | $ac_func(); | 9796 | f = $ac_func; |
| 7159 | #endif | 9797 | #endif |
| 7160 | 9798 | ||
| 7161 | ; return 0; } | 9799 | ; |
| 9800 | return 0; | ||
| 9801 | } | ||
| 9802 | _ACEOF | ||
| 9803 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 9804 | if { (eval echo "$as_me:9804: \"$ac_link\"") >&5 | ||
| 9805 | (eval $ac_link) 2>&5 | ||
| 9806 | ac_status=$? | ||
| 9807 | echo "$as_me:9807: \$? = $ac_status" >&5 | ||
| 9808 | (exit $ac_status); } && | ||
| 9809 | { ac_try='test -s conftest$ac_exeext' | ||
| 9810 | { (eval echo "$as_me:9810: \"$ac_try\"") >&5 | ||
| 9811 | (eval $ac_try) 2>&5 | ||
| 9812 | ac_status=$? | ||
| 9813 | echo "$as_me:9813: \$? = $ac_status" >&5 | ||
| 9814 | (exit $ac_status); }; }; then | ||
| 9815 | eval "$as_ac_var=yes" | ||
| 9816 | else | ||
| 9817 | echo "$as_me: failed program was:" >&5 | ||
| 9818 | cat conftest.$ac_ext >&5 | ||
| 9819 | eval "$as_ac_var=no" | ||
| 9820 | fi | ||
| 9821 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 9822 | fi | ||
| 9823 | echo "$as_me:9823: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 9824 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 9825 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 9826 | cat >>confdefs.h <<EOF | ||
| 9827 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 7162 | EOF | 9828 | EOF |
| 7163 | if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 7164 | rm -rf conftest* | ||
| 7165 | eval "ac_cv_func_$ac_func=yes" | ||
| 7166 | else | ||
| 7167 | echo "configure: failed program was:" >&5 | ||
| 7168 | cat conftest.$ac_ext >&5 | ||
| 7169 | rm -rf conftest* | ||
| 7170 | eval "ac_cv_func_$ac_func=no" | ||
| 7171 | fi | ||
| 7172 | rm -f conftest* | ||
| 7173 | fi | ||
| 7174 | 9829 | ||
| 7175 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 7176 | echo "$ac_t""yes" 1>&6 | ||
| 7177 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 7178 | cat >> confdefs.h <<EOF | ||
| 7179 | #define $ac_tr_func 1 | ||
| 7180 | EOF | ||
| 7181 | |||
| 7182 | else | ||
| 7183 | echo "$ac_t""no" 1>&6 | ||
| 7184 | fi | 9830 | fi |
| 7185 | done | 9831 | done |
| 7186 | 9832 | ||
| 7187 | |||
| 7188 | # PTY-related GNU extensions. | 9833 | # PTY-related GNU extensions. |
| 9834 | |||
| 7189 | for ac_func in getpt | 9835 | for ac_func in getpt |
| 7190 | do | 9836 | do |
| 7191 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 9837 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7192 | echo "configure:7193: checking for $ac_func" >&5 | 9838 | echo "$as_me:9838: checking for $ac_func" >&5 |
| 7193 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 9839 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7194 | echo $ac_n "(cached) $ac_c" 1>&6 | 9840 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 7195 | else | 9842 | else |
| 7196 | cat > conftest.$ac_ext <<EOF | 9843 | cat >conftest.$ac_ext <<_ACEOF |
| 7197 | #line 7198 "configure" | 9844 | #line 9844 "configure" |
| 7198 | #include "confdefs.h" | 9845 | #include "confdefs.h" |
| 7199 | /* System header to define __stub macros and hopefully few prototypes, | 9846 | /* System header to define __stub macros and hopefully few prototypes, |
| 7200 | which can conflict with char $ac_func(); below. */ | 9847 | which can conflict with char $ac_func (); below. */ |
| 7201 | #include <assert.h> | 9848 | #include <assert.h> |
| 7202 | /* Override any gcc2 internal prototype to avoid an error. */ | 9849 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9850 | #ifdef __cplusplus | ||
| 9851 | extern "C" | ||
| 9852 | #endif | ||
| 7203 | /* We use char because int might match the return type of a gcc2 | 9853 | /* We use char because int might match the return type of a gcc2 |
| 7204 | builtin and then its argument prototype would still apply. */ | 9854 | builtin and then its argument prototype would still apply. */ |
| 7205 | char $ac_func(); | 9855 | char $ac_func (); |
| 7206 | 9856 | char (*f) (); | |
| 7207 | int main() { | ||
| 7208 | 9857 | ||
| 9858 | int | ||
| 9859 | main () | ||
| 9860 | { | ||
| 7209 | /* The GNU C library defines this for functions which it implements | 9861 | /* The GNU C library defines this for functions which it implements |
| 7210 | to always fail with ENOSYS. Some functions are actually named | 9862 | to always fail with ENOSYS. Some functions are actually named |
| 7211 | something starting with __ and the normal name is an alias. */ | 9863 | something starting with __ and the normal name is an alias. */ |
| 7212 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 9864 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7213 | choke me | 9865 | choke me |
| 7214 | #else | 9866 | #else |
| 7215 | $ac_func(); | 9867 | f = $ac_func; |
| 7216 | #endif | 9868 | #endif |
| 7217 | 9869 | ||
| 7218 | ; return 0; } | 9870 | ; |
| 9871 | return 0; | ||
| 9872 | } | ||
| 9873 | _ACEOF | ||
| 9874 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 9875 | if { (eval echo "$as_me:9875: \"$ac_link\"") >&5 | ||
| 9876 | (eval $ac_link) 2>&5 | ||
| 9877 | ac_status=$? | ||
| 9878 | echo "$as_me:9878: \$? = $ac_status" >&5 | ||
| 9879 | (exit $ac_status); } && | ||
| 9880 | { ac_try='test -s conftest$ac_exeext' | ||
| 9881 | { (eval echo "$as_me:9881: \"$ac_try\"") >&5 | ||
| 9882 | (eval $ac_try) 2>&5 | ||
| 9883 | ac_status=$? | ||
| 9884 | echo "$as_me:9884: \$? = $ac_status" >&5 | ||
| 9885 | (exit $ac_status); }; }; then | ||
| 9886 | eval "$as_ac_var=yes" | ||
| 9887 | else | ||
| 9888 | echo "$as_me: failed program was:" >&5 | ||
| 9889 | cat conftest.$ac_ext >&5 | ||
| 9890 | eval "$as_ac_var=no" | ||
| 9891 | fi | ||
| 9892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 9893 | fi | ||
| 9894 | echo "$as_me:9894: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 9895 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 9896 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 9897 | cat >>confdefs.h <<EOF | ||
| 9898 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 7219 | EOF | 9899 | EOF |
| 7220 | if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 7221 | rm -rf conftest* | ||
| 7222 | eval "ac_cv_func_$ac_func=yes" | ||
| 7223 | else | ||
| 7224 | echo "configure: failed program was:" >&5 | ||
| 7225 | cat conftest.$ac_ext >&5 | ||
| 7226 | rm -rf conftest* | ||
| 7227 | eval "ac_cv_func_$ac_func=no" | ||
| 7228 | fi | ||
| 7229 | rm -f conftest* | ||
| 7230 | fi | ||
| 7231 | 9900 | ||
| 7232 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 7233 | echo "$ac_t""yes" 1>&6 | ||
| 7234 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 7235 | cat >> confdefs.h <<EOF | ||
| 7236 | #define $ac_tr_func 1 | ||
| 7237 | EOF | ||
| 7238 | |||
| 7239 | else | ||
| 7240 | echo "$ac_t""no" 1>&6 | ||
| 7241 | fi | 9901 | fi |
| 7242 | done | 9902 | done |
| 7243 | 9903 | ||
| 7244 | |||
| 7245 | # Check this now, so that we will NOT find the above functions in ncurses. | 9904 | # Check this now, so that we will NOT find the above functions in ncurses. |
| 7246 | # That is because we have not set up to link ncurses in lib-src. | 9905 | # That is because we have not set up to link ncurses in lib-src. |
| 7247 | # It's better to believe a function is not available | 9906 | # It's better to believe a function is not available |
| 7248 | # than to expect to find it in ncurses. | 9907 | # than to expect to find it in ncurses. |
| 7249 | echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 9908 | |
| 7250 | echo "configure:7251: checking for tparm in -lncurses" >&5 | 9909 | echo "$as_me:9909: checking for tparm in -lncurses" >&5 |
| 7251 | ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 9910 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
| 7252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9911 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then |
| 7253 | echo $ac_n "(cached) $ac_c" 1>&6 | 9912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7254 | else | 9913 | else |
| 7255 | ac_save_LIBS="$LIBS" | 9914 | ac_check_lib_save_LIBS=$LIBS |
| 7256 | LIBS="-lncurses $LIBS" | 9915 | LIBS="-lncurses $LIBS" |
| 7257 | cat > conftest.$ac_ext <<EOF | 9916 | cat >conftest.$ac_ext <<_ACEOF |
| 7258 | #line 7259 "configure" | 9917 | #line 9917 "configure" |
| 7259 | #include "confdefs.h" | 9918 | #include "confdefs.h" |
| 9919 | |||
| 7260 | /* Override any gcc2 internal prototype to avoid an error. */ | 9920 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9921 | #ifdef __cplusplus | ||
| 9922 | extern "C" | ||
| 9923 | #endif | ||
| 7261 | /* We use char because int might match the return type of a gcc2 | 9924 | /* We use char because int might match the return type of a gcc2 |
| 7262 | builtin and then its argument prototype would still apply. */ | 9925 | builtin and then its argument prototype would still apply. */ |
| 7263 | char tparm(); | 9926 | char tparm (); |
| 7264 | 9927 | int | |
| 7265 | int main() { | 9928 | main () |
| 7266 | tparm() | 9929 | { |
| 7267 | ; return 0; } | 9930 | tparm (); |
| 7268 | EOF | 9931 | ; |
| 7269 | if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9932 | return 0; |
| 7270 | rm -rf conftest* | 9933 | } |
| 7271 | eval "ac_cv_lib_$ac_lib_var=yes" | 9934 | _ACEOF |
| 7272 | else | 9935 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7273 | echo "configure: failed program was:" >&5 | 9936 | if { (eval echo "$as_me:9936: \"$ac_link\"") >&5 |
| 7274 | cat conftest.$ac_ext >&5 | 9937 | (eval $ac_link) 2>&5 |
| 7275 | rm -rf conftest* | 9938 | ac_status=$? |
| 7276 | eval "ac_cv_lib_$ac_lib_var=no" | 9939 | echo "$as_me:9939: \$? = $ac_status" >&5 |
| 7277 | fi | 9940 | (exit $ac_status); } && |
| 7278 | rm -f conftest* | 9941 | { ac_try='test -s conftest$ac_exeext' |
| 7279 | LIBS="$ac_save_LIBS" | 9942 | { (eval echo "$as_me:9942: \"$ac_try\"") >&5 |
| 7280 | 9943 | (eval $ac_try) 2>&5 | |
| 7281 | fi | 9944 | ac_status=$? |
| 7282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 9945 | echo "$as_me:9945: \$? = $ac_status" >&5 |
| 7283 | echo "$ac_t""yes" 1>&6 | 9946 | (exit $ac_status); }; }; then |
| 7284 | ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 9947 | ac_cv_lib_ncurses_tparm=yes |
| 7285 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 9948 | else |
| 7286 | cat >> confdefs.h <<EOF | 9949 | echo "$as_me: failed program was:" >&5 |
| 7287 | #define $ac_tr_lib 1 | 9950 | cat conftest.$ac_ext >&5 |
| 9951 | ac_cv_lib_ncurses_tparm=no | ||
| 9952 | fi | ||
| 9953 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 9954 | LIBS=$ac_check_lib_save_LIBS | ||
| 9955 | fi | ||
| 9956 | echo "$as_me:9956: result: $ac_cv_lib_ncurses_tparm" >&5 | ||
| 9957 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 | ||
| 9958 | if test $ac_cv_lib_ncurses_tparm = yes; then | ||
| 9959 | cat >>confdefs.h <<EOF | ||
| 9960 | #define HAVE_LIBNCURSES 1 | ||
| 7288 | EOF | 9961 | EOF |
| 7289 | 9962 | ||
| 7290 | LIBS="-lncurses $LIBS" | 9963 | LIBS="-lncurses $LIBS" |
| 7291 | 9964 | ||
| 7292 | else | ||
| 7293 | echo "$ac_t""no" 1>&6 | ||
| 7294 | fi | 9965 | fi |
| 7295 | 9966 | ||
| 7296 | |||
| 7297 | # These tell us which Kerberos-related libraries to use. | 9967 | # These tell us which Kerberos-related libraries to use. |
| 7298 | if test "${with_kerberos+set}" = set; then | 9968 | if test "${with_kerberos+set}" = set; then |
| 7299 | echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 9969 | |
| 7300 | echo "configure:7301: checking for com_err in -lcom_err" >&5 | 9970 | echo "$as_me:9970: checking for com_err in -lcom_err" >&5 |
| 7301 | ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 9971 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
| 7302 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 9972 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then |
| 7303 | echo $ac_n "(cached) $ac_c" 1>&6 | 9973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7304 | else | 9974 | else |
| 7305 | ac_save_LIBS="$LIBS" | 9975 | ac_check_lib_save_LIBS=$LIBS |
| 7306 | LIBS="-lcom_err $LIBS" | 9976 | LIBS="-lcom_err $LIBS" |
| 7307 | cat > conftest.$ac_ext <<EOF | 9977 | cat >conftest.$ac_ext <<_ACEOF |
| 7308 | #line 7309 "configure" | 9978 | #line 9978 "configure" |
| 7309 | #include "confdefs.h" | 9979 | #include "confdefs.h" |
| 9980 | |||
| 7310 | /* Override any gcc2 internal prototype to avoid an error. */ | 9981 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9982 | #ifdef __cplusplus | ||
| 9983 | extern "C" | ||
| 9984 | #endif | ||
| 7311 | /* We use char because int might match the return type of a gcc2 | 9985 | /* We use char because int might match the return type of a gcc2 |
| 7312 | builtin and then its argument prototype would still apply. */ | 9986 | builtin and then its argument prototype would still apply. */ |
| 7313 | char com_err(); | 9987 | char com_err (); |
| 7314 | 9988 | int | |
| 7315 | int main() { | 9989 | main () |
| 7316 | com_err() | 9990 | { |
| 7317 | ; return 0; } | 9991 | com_err (); |
| 7318 | EOF | 9992 | ; |
| 7319 | if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 9993 | return 0; |
| 7320 | rm -rf conftest* | 9994 | } |
| 7321 | eval "ac_cv_lib_$ac_lib_var=yes" | 9995 | _ACEOF |
| 7322 | else | 9996 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7323 | echo "configure: failed program was:" >&5 | 9997 | if { (eval echo "$as_me:9997: \"$ac_link\"") >&5 |
| 7324 | cat conftest.$ac_ext >&5 | 9998 | (eval $ac_link) 2>&5 |
| 7325 | rm -rf conftest* | 9999 | ac_status=$? |
| 7326 | eval "ac_cv_lib_$ac_lib_var=no" | 10000 | echo "$as_me:10000: \$? = $ac_status" >&5 |
| 7327 | fi | 10001 | (exit $ac_status); } && |
| 7328 | rm -f conftest* | 10002 | { ac_try='test -s conftest$ac_exeext' |
| 7329 | LIBS="$ac_save_LIBS" | 10003 | { (eval echo "$as_me:10003: \"$ac_try\"") >&5 |
| 7330 | 10004 | (eval $ac_try) 2>&5 | |
| 7331 | fi | 10005 | ac_status=$? |
| 7332 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10006 | echo "$as_me:10006: \$? = $ac_status" >&5 |
| 7333 | echo "$ac_t""yes" 1>&6 | 10007 | (exit $ac_status); }; }; then |
| 7334 | ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10008 | ac_cv_lib_com_err_com_err=yes |
| 7335 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10009 | else |
| 7336 | cat >> confdefs.h <<EOF | 10010 | echo "$as_me: failed program was:" >&5 |
| 7337 | #define $ac_tr_lib 1 | 10011 | cat conftest.$ac_ext >&5 |
| 10012 | ac_cv_lib_com_err_com_err=no | ||
| 10013 | fi | ||
| 10014 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10015 | LIBS=$ac_check_lib_save_LIBS | ||
| 10016 | fi | ||
| 10017 | echo "$as_me:10017: result: $ac_cv_lib_com_err_com_err" >&5 | ||
| 10018 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 | ||
| 10019 | if test $ac_cv_lib_com_err_com_err = yes; then | ||
| 10020 | cat >>confdefs.h <<EOF | ||
| 10021 | #define HAVE_LIBCOM_ERR 1 | ||
| 7338 | EOF | 10022 | EOF |
| 7339 | 10023 | ||
| 7340 | LIBS="-lcom_err $LIBS" | 10024 | LIBS="-lcom_err $LIBS" |
| 7341 | 10025 | ||
| 7342 | else | ||
| 7343 | echo "$ac_t""no" 1>&6 | ||
| 7344 | fi | 10026 | fi |
| 7345 | 10027 | ||
| 7346 | echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 10028 | echo "$as_me:10028: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
| 7347 | echo "configure:7348: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 10029 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
| 7348 | ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 10030 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then |
| 7349 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7350 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7351 | else | 10032 | else |
| 7352 | ac_save_LIBS="$LIBS" | 10033 | ac_check_lib_save_LIBS=$LIBS |
| 7353 | LIBS="-lk5crypto $LIBS" | 10034 | LIBS="-lk5crypto $LIBS" |
| 7354 | cat > conftest.$ac_ext <<EOF | 10035 | cat >conftest.$ac_ext <<_ACEOF |
| 7355 | #line 7356 "configure" | 10036 | #line 10036 "configure" |
| 7356 | #include "confdefs.h" | 10037 | #include "confdefs.h" |
| 10038 | |||
| 7357 | /* Override any gcc2 internal prototype to avoid an error. */ | 10039 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10040 | #ifdef __cplusplus | ||
| 10041 | extern "C" | ||
| 10042 | #endif | ||
| 7358 | /* We use char because int might match the return type of a gcc2 | 10043 | /* We use char because int might match the return type of a gcc2 |
| 7359 | builtin and then its argument prototype would still apply. */ | 10044 | builtin and then its argument prototype would still apply. */ |
| 7360 | char mit_des_cbc_encrypt(); | 10045 | char mit_des_cbc_encrypt (); |
| 7361 | 10046 | int | |
| 7362 | int main() { | 10047 | main () |
| 7363 | mit_des_cbc_encrypt() | 10048 | { |
| 7364 | ; return 0; } | 10049 | mit_des_cbc_encrypt (); |
| 7365 | EOF | 10050 | ; |
| 7366 | if { (eval echo configure:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10051 | return 0; |
| 7367 | rm -rf conftest* | 10052 | } |
| 7368 | eval "ac_cv_lib_$ac_lib_var=yes" | 10053 | _ACEOF |
| 7369 | else | 10054 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7370 | echo "configure: failed program was:" >&5 | 10055 | if { (eval echo "$as_me:10055: \"$ac_link\"") >&5 |
| 7371 | cat conftest.$ac_ext >&5 | 10056 | (eval $ac_link) 2>&5 |
| 7372 | rm -rf conftest* | 10057 | ac_status=$? |
| 7373 | eval "ac_cv_lib_$ac_lib_var=no" | 10058 | echo "$as_me:10058: \$? = $ac_status" >&5 |
| 7374 | fi | 10059 | (exit $ac_status); } && |
| 7375 | rm -f conftest* | 10060 | { ac_try='test -s conftest$ac_exeext' |
| 7376 | LIBS="$ac_save_LIBS" | 10061 | { (eval echo "$as_me:10061: \"$ac_try\"") >&5 |
| 7377 | 10062 | (eval $ac_try) 2>&5 | |
| 7378 | fi | 10063 | ac_status=$? |
| 7379 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10064 | echo "$as_me:10064: \$? = $ac_status" >&5 |
| 7380 | echo "$ac_t""yes" 1>&6 | 10065 | (exit $ac_status); }; }; then |
| 7381 | ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10066 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
| 7382 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10067 | else |
| 7383 | cat >> confdefs.h <<EOF | 10068 | echo "$as_me: failed program was:" >&5 |
| 7384 | #define $ac_tr_lib 1 | 10069 | cat conftest.$ac_ext >&5 |
| 10070 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | ||
| 10071 | fi | ||
| 10072 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10073 | LIBS=$ac_check_lib_save_LIBS | ||
| 10074 | fi | ||
| 10075 | echo "$as_me:10075: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 | ||
| 10076 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 | ||
| 10077 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | ||
| 10078 | cat >>confdefs.h <<EOF | ||
| 10079 | #define HAVE_LIBK5CRYPTO 1 | ||
| 7385 | EOF | 10080 | EOF |
| 7386 | 10081 | ||
| 7387 | LIBS="-lk5crypto $LIBS" | 10082 | LIBS="-lk5crypto $LIBS" |
| 7388 | 10083 | ||
| 7389 | else | ||
| 7390 | echo "$ac_t""no" 1>&6 | ||
| 7391 | fi | 10084 | fi |
| 7392 | 10085 | ||
| 7393 | echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 10086 | echo "$as_me:10086: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
| 7394 | echo "configure:7395: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 10087 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
| 7395 | ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 10088 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then |
| 7396 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7397 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7398 | else | 10090 | else |
| 7399 | ac_save_LIBS="$LIBS" | 10091 | ac_check_lib_save_LIBS=$LIBS |
| 7400 | LIBS="-lcrypto $LIBS" | 10092 | LIBS="-lcrypto $LIBS" |
| 7401 | cat > conftest.$ac_ext <<EOF | 10093 | cat >conftest.$ac_ext <<_ACEOF |
| 7402 | #line 7403 "configure" | 10094 | #line 10094 "configure" |
| 7403 | #include "confdefs.h" | 10095 | #include "confdefs.h" |
| 10096 | |||
| 7404 | /* Override any gcc2 internal prototype to avoid an error. */ | 10097 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10098 | #ifdef __cplusplus | ||
| 10099 | extern "C" | ||
| 10100 | #endif | ||
| 7405 | /* We use char because int might match the return type of a gcc2 | 10101 | /* We use char because int might match the return type of a gcc2 |
| 7406 | builtin and then its argument prototype would still apply. */ | 10102 | builtin and then its argument prototype would still apply. */ |
| 7407 | char mit_des_cbc_encrypt(); | 10103 | char mit_des_cbc_encrypt (); |
| 7408 | 10104 | int | |
| 7409 | int main() { | 10105 | main () |
| 7410 | mit_des_cbc_encrypt() | 10106 | { |
| 7411 | ; return 0; } | 10107 | mit_des_cbc_encrypt (); |
| 7412 | EOF | 10108 | ; |
| 7413 | if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10109 | return 0; |
| 7414 | rm -rf conftest* | 10110 | } |
| 7415 | eval "ac_cv_lib_$ac_lib_var=yes" | 10111 | _ACEOF |
| 7416 | else | 10112 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7417 | echo "configure: failed program was:" >&5 | 10113 | if { (eval echo "$as_me:10113: \"$ac_link\"") >&5 |
| 7418 | cat conftest.$ac_ext >&5 | 10114 | (eval $ac_link) 2>&5 |
| 7419 | rm -rf conftest* | 10115 | ac_status=$? |
| 7420 | eval "ac_cv_lib_$ac_lib_var=no" | 10116 | echo "$as_me:10116: \$? = $ac_status" >&5 |
| 7421 | fi | 10117 | (exit $ac_status); } && |
| 7422 | rm -f conftest* | 10118 | { ac_try='test -s conftest$ac_exeext' |
| 7423 | LIBS="$ac_save_LIBS" | 10119 | { (eval echo "$as_me:10119: \"$ac_try\"") >&5 |
| 7424 | 10120 | (eval $ac_try) 2>&5 | |
| 7425 | fi | 10121 | ac_status=$? |
| 7426 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10122 | echo "$as_me:10122: \$? = $ac_status" >&5 |
| 7427 | echo "$ac_t""yes" 1>&6 | 10123 | (exit $ac_status); }; }; then |
| 7428 | ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10124 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
| 7429 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10125 | else |
| 7430 | cat >> confdefs.h <<EOF | 10126 | echo "$as_me: failed program was:" >&5 |
| 7431 | #define $ac_tr_lib 1 | 10127 | cat conftest.$ac_ext >&5 |
| 10128 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no | ||
| 10129 | fi | ||
| 10130 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10131 | LIBS=$ac_check_lib_save_LIBS | ||
| 10132 | fi | ||
| 10133 | echo "$as_me:10133: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 | ||
| 10134 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 | ||
| 10135 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | ||
| 10136 | cat >>confdefs.h <<EOF | ||
| 10137 | #define HAVE_LIBCRYPTO 1 | ||
| 7432 | EOF | 10138 | EOF |
| 7433 | 10139 | ||
| 7434 | LIBS="-lcrypto $LIBS" | 10140 | LIBS="-lcrypto $LIBS" |
| 7435 | 10141 | ||
| 7436 | else | ||
| 7437 | echo "$ac_t""no" 1>&6 | ||
| 7438 | fi | 10142 | fi |
| 7439 | 10143 | ||
| 7440 | echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 10144 | echo "$as_me:10144: checking for krb5_init_context in -lkrb5" >&5 |
| 7441 | echo "configure:7442: checking for krb5_init_context in -lkrb5" >&5 | 10145 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
| 7442 | ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 10146 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then |
| 7443 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7444 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7445 | else | 10148 | else |
| 7446 | ac_save_LIBS="$LIBS" | 10149 | ac_check_lib_save_LIBS=$LIBS |
| 7447 | LIBS="-lkrb5 $LIBS" | 10150 | LIBS="-lkrb5 $LIBS" |
| 7448 | cat > conftest.$ac_ext <<EOF | 10151 | cat >conftest.$ac_ext <<_ACEOF |
| 7449 | #line 7450 "configure" | 10152 | #line 10152 "configure" |
| 7450 | #include "confdefs.h" | 10153 | #include "confdefs.h" |
| 10154 | |||
| 7451 | /* Override any gcc2 internal prototype to avoid an error. */ | 10155 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10156 | #ifdef __cplusplus | ||
| 10157 | extern "C" | ||
| 10158 | #endif | ||
| 7452 | /* We use char because int might match the return type of a gcc2 | 10159 | /* We use char because int might match the return type of a gcc2 |
| 7453 | builtin and then its argument prototype would still apply. */ | 10160 | builtin and then its argument prototype would still apply. */ |
| 7454 | char krb5_init_context(); | 10161 | char krb5_init_context (); |
| 7455 | 10162 | int | |
| 7456 | int main() { | 10163 | main () |
| 7457 | krb5_init_context() | 10164 | { |
| 7458 | ; return 0; } | 10165 | krb5_init_context (); |
| 7459 | EOF | 10166 | ; |
| 7460 | if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10167 | return 0; |
| 7461 | rm -rf conftest* | 10168 | } |
| 7462 | eval "ac_cv_lib_$ac_lib_var=yes" | 10169 | _ACEOF |
| 7463 | else | 10170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7464 | echo "configure: failed program was:" >&5 | 10171 | if { (eval echo "$as_me:10171: \"$ac_link\"") >&5 |
| 7465 | cat conftest.$ac_ext >&5 | 10172 | (eval $ac_link) 2>&5 |
| 7466 | rm -rf conftest* | 10173 | ac_status=$? |
| 7467 | eval "ac_cv_lib_$ac_lib_var=no" | 10174 | echo "$as_me:10174: \$? = $ac_status" >&5 |
| 7468 | fi | 10175 | (exit $ac_status); } && |
| 7469 | rm -f conftest* | 10176 | { ac_try='test -s conftest$ac_exeext' |
| 7470 | LIBS="$ac_save_LIBS" | 10177 | { (eval echo "$as_me:10177: \"$ac_try\"") >&5 |
| 7471 | 10178 | (eval $ac_try) 2>&5 | |
| 7472 | fi | 10179 | ac_status=$? |
| 7473 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10180 | echo "$as_me:10180: \$? = $ac_status" >&5 |
| 7474 | echo "$ac_t""yes" 1>&6 | 10181 | (exit $ac_status); }; }; then |
| 7475 | ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10182 | ac_cv_lib_krb5_krb5_init_context=yes |
| 7476 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10183 | else |
| 7477 | cat >> confdefs.h <<EOF | 10184 | echo "$as_me: failed program was:" >&5 |
| 7478 | #define $ac_tr_lib 1 | 10185 | cat conftest.$ac_ext >&5 |
| 10186 | ac_cv_lib_krb5_krb5_init_context=no | ||
| 10187 | fi | ||
| 10188 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10189 | LIBS=$ac_check_lib_save_LIBS | ||
| 10190 | fi | ||
| 10191 | echo "$as_me:10191: result: $ac_cv_lib_krb5_krb5_init_context" >&5 | ||
| 10192 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 | ||
| 10193 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | ||
| 10194 | cat >>confdefs.h <<EOF | ||
| 10195 | #define HAVE_LIBKRB5 1 | ||
| 7479 | EOF | 10196 | EOF |
| 7480 | 10197 | ||
| 7481 | LIBS="-lkrb5 $LIBS" | 10198 | LIBS="-lkrb5 $LIBS" |
| 7482 | 10199 | ||
| 7483 | else | ||
| 7484 | echo "$ac_t""no" 1>&6 | ||
| 7485 | fi | 10200 | fi |
| 7486 | 10201 | ||
| 7487 | if test "${with_kerberos5+set}" != set; then | 10202 | if test "${with_kerberos5+set}" != set; then |
| 7488 | echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 10203 | |
| 7489 | echo "configure:7490: checking for des_cbc_encrypt in -ldes425" >&5 | 10204 | echo "$as_me:10204: checking for des_cbc_encrypt in -ldes425" >&5 |
| 7490 | ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 10205 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
| 7491 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10206 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then |
| 7492 | echo $ac_n "(cached) $ac_c" 1>&6 | 10207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7493 | else | 10208 | else |
| 7494 | ac_save_LIBS="$LIBS" | 10209 | ac_check_lib_save_LIBS=$LIBS |
| 7495 | LIBS="-ldes425 $LIBS" | 10210 | LIBS="-ldes425 $LIBS" |
| 7496 | cat > conftest.$ac_ext <<EOF | 10211 | cat >conftest.$ac_ext <<_ACEOF |
| 7497 | #line 7498 "configure" | 10212 | #line 10212 "configure" |
| 7498 | #include "confdefs.h" | 10213 | #include "confdefs.h" |
| 10214 | |||
| 7499 | /* Override any gcc2 internal prototype to avoid an error. */ | 10215 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10216 | #ifdef __cplusplus | ||
| 10217 | extern "C" | ||
| 10218 | #endif | ||
| 7500 | /* We use char because int might match the return type of a gcc2 | 10219 | /* We use char because int might match the return type of a gcc2 |
| 7501 | builtin and then its argument prototype would still apply. */ | 10220 | builtin and then its argument prototype would still apply. */ |
| 7502 | char des_cbc_encrypt(); | 10221 | char des_cbc_encrypt (); |
| 7503 | 10222 | int | |
| 7504 | int main() { | 10223 | main () |
| 7505 | des_cbc_encrypt() | 10224 | { |
| 7506 | ; return 0; } | 10225 | des_cbc_encrypt (); |
| 7507 | EOF | 10226 | ; |
| 7508 | if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10227 | return 0; |
| 7509 | rm -rf conftest* | 10228 | } |
| 7510 | eval "ac_cv_lib_$ac_lib_var=yes" | 10229 | _ACEOF |
| 7511 | else | 10230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7512 | echo "configure: failed program was:" >&5 | 10231 | if { (eval echo "$as_me:10231: \"$ac_link\"") >&5 |
| 7513 | cat conftest.$ac_ext >&5 | 10232 | (eval $ac_link) 2>&5 |
| 7514 | rm -rf conftest* | 10233 | ac_status=$? |
| 7515 | eval "ac_cv_lib_$ac_lib_var=no" | 10234 | echo "$as_me:10234: \$? = $ac_status" >&5 |
| 7516 | fi | 10235 | (exit $ac_status); } && |
| 7517 | rm -f conftest* | 10236 | { ac_try='test -s conftest$ac_exeext' |
| 7518 | LIBS="$ac_save_LIBS" | 10237 | { (eval echo "$as_me:10237: \"$ac_try\"") >&5 |
| 7519 | 10238 | (eval $ac_try) 2>&5 | |
| 7520 | fi | 10239 | ac_status=$? |
| 7521 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10240 | echo "$as_me:10240: \$? = $ac_status" >&5 |
| 7522 | echo "$ac_t""yes" 1>&6 | 10241 | (exit $ac_status); }; }; then |
| 7523 | ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10242 | ac_cv_lib_des425_des_cbc_encrypt=yes |
| 7524 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10243 | else |
| 7525 | cat >> confdefs.h <<EOF | 10244 | echo "$as_me: failed program was:" >&5 |
| 7526 | #define $ac_tr_lib 1 | 10245 | cat conftest.$ac_ext >&5 |
| 10246 | ac_cv_lib_des425_des_cbc_encrypt=no | ||
| 10247 | fi | ||
| 10248 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10249 | LIBS=$ac_check_lib_save_LIBS | ||
| 10250 | fi | ||
| 10251 | echo "$as_me:10251: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | ||
| 10252 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 | ||
| 10253 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | ||
| 10254 | cat >>confdefs.h <<EOF | ||
| 10255 | #define HAVE_LIBDES425 1 | ||
| 7527 | EOF | 10256 | EOF |
| 7528 | 10257 | ||
| 7529 | LIBS="-ldes425 $LIBS" | 10258 | LIBS="-ldes425 $LIBS" |
| 7530 | 10259 | ||
| 7531 | else | 10260 | else |
| 7532 | echo "$ac_t""no" 1>&6 | 10261 | |
| 7533 | echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 10262 | echo "$as_me:10262: checking for des_cbc_encrypt in -ldes" >&5 |
| 7534 | echo "configure:7535: checking for des_cbc_encrypt in -ldes" >&5 | 10263 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
| 7535 | ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 10264 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then |
| 7536 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7537 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7538 | else | 10266 | else |
| 7539 | ac_save_LIBS="$LIBS" | 10267 | ac_check_lib_save_LIBS=$LIBS |
| 7540 | LIBS="-ldes $LIBS" | 10268 | LIBS="-ldes $LIBS" |
| 7541 | cat > conftest.$ac_ext <<EOF | 10269 | cat >conftest.$ac_ext <<_ACEOF |
| 7542 | #line 7543 "configure" | 10270 | #line 10270 "configure" |
| 7543 | #include "confdefs.h" | 10271 | #include "confdefs.h" |
| 10272 | |||
| 7544 | /* Override any gcc2 internal prototype to avoid an error. */ | 10273 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10274 | #ifdef __cplusplus | ||
| 10275 | extern "C" | ||
| 10276 | #endif | ||
| 7545 | /* We use char because int might match the return type of a gcc2 | 10277 | /* We use char because int might match the return type of a gcc2 |
| 7546 | builtin and then its argument prototype would still apply. */ | 10278 | builtin and then its argument prototype would still apply. */ |
| 7547 | char des_cbc_encrypt(); | 10279 | char des_cbc_encrypt (); |
| 7548 | 10280 | int | |
| 7549 | int main() { | 10281 | main () |
| 7550 | des_cbc_encrypt() | 10282 | { |
| 7551 | ; return 0; } | 10283 | des_cbc_encrypt (); |
| 7552 | EOF | 10284 | ; |
| 7553 | if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10285 | return 0; |
| 7554 | rm -rf conftest* | 10286 | } |
| 7555 | eval "ac_cv_lib_$ac_lib_var=yes" | 10287 | _ACEOF |
| 7556 | else | 10288 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7557 | echo "configure: failed program was:" >&5 | 10289 | if { (eval echo "$as_me:10289: \"$ac_link\"") >&5 |
| 7558 | cat conftest.$ac_ext >&5 | 10290 | (eval $ac_link) 2>&5 |
| 7559 | rm -rf conftest* | 10291 | ac_status=$? |
| 7560 | eval "ac_cv_lib_$ac_lib_var=no" | 10292 | echo "$as_me:10292: \$? = $ac_status" >&5 |
| 7561 | fi | 10293 | (exit $ac_status); } && |
| 7562 | rm -f conftest* | 10294 | { ac_try='test -s conftest$ac_exeext' |
| 7563 | LIBS="$ac_save_LIBS" | 10295 | { (eval echo "$as_me:10295: \"$ac_try\"") >&5 |
| 7564 | 10296 | (eval $ac_try) 2>&5 | |
| 7565 | fi | 10297 | ac_status=$? |
| 7566 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10298 | echo "$as_me:10298: \$? = $ac_status" >&5 |
| 7567 | echo "$ac_t""yes" 1>&6 | 10299 | (exit $ac_status); }; }; then |
| 7568 | ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \ | 10300 | ac_cv_lib_des_des_cbc_encrypt=yes |
| 7569 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10301 | else |
| 7570 | cat >> confdefs.h <<EOF | 10302 | echo "$as_me: failed program was:" >&5 |
| 7571 | #define $ac_tr_lib 1 | 10303 | cat conftest.$ac_ext >&5 |
| 10304 | ac_cv_lib_des_des_cbc_encrypt=no | ||
| 10305 | fi | ||
| 10306 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10307 | LIBS=$ac_check_lib_save_LIBS | ||
| 10308 | fi | ||
| 10309 | echo "$as_me:10309: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
| 10310 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 | ||
| 10311 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
| 10312 | cat >>confdefs.h <<EOF | ||
| 10313 | #define HAVE_LIBDES 1 | ||
| 7572 | EOF | 10314 | EOF |
| 7573 | 10315 | ||
| 7574 | LIBS="-ldes $LIBS" | 10316 | LIBS="-ldes $LIBS" |
| 7575 | 10317 | ||
| 7576 | else | ||
| 7577 | echo "$ac_t""no" 1>&6 | ||
| 7578 | fi | 10318 | fi |
| 7579 | 10319 | ||
| 7580 | fi | 10320 | fi |
| 7581 | 10321 | ||
| 7582 | echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 10322 | echo "$as_me:10322: checking for krb_get_cred in -lkrb4" >&5 |
| 7583 | echo "configure:7584: checking for krb_get_cred in -lkrb4" >&5 | 10323 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
| 7584 | ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 10324 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then |
| 7585 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7586 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7587 | else | 10326 | else |
| 7588 | ac_save_LIBS="$LIBS" | 10327 | ac_check_lib_save_LIBS=$LIBS |
| 7589 | LIBS="-lkrb4 $LIBS" | 10328 | LIBS="-lkrb4 $LIBS" |
| 7590 | cat > conftest.$ac_ext <<EOF | 10329 | cat >conftest.$ac_ext <<_ACEOF |
| 7591 | #line 7592 "configure" | 10330 | #line 10330 "configure" |
| 7592 | #include "confdefs.h" | 10331 | #include "confdefs.h" |
| 10332 | |||
| 7593 | /* Override any gcc2 internal prototype to avoid an error. */ | 10333 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10334 | #ifdef __cplusplus | ||
| 10335 | extern "C" | ||
| 10336 | #endif | ||
| 7594 | /* We use char because int might match the return type of a gcc2 | 10337 | /* We use char because int might match the return type of a gcc2 |
| 7595 | builtin and then its argument prototype would still apply. */ | 10338 | builtin and then its argument prototype would still apply. */ |
| 7596 | char krb_get_cred(); | 10339 | char krb_get_cred (); |
| 7597 | 10340 | int | |
| 7598 | int main() { | 10341 | main () |
| 7599 | krb_get_cred() | 10342 | { |
| 7600 | ; return 0; } | 10343 | krb_get_cred (); |
| 7601 | EOF | 10344 | ; |
| 7602 | if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10345 | return 0; |
| 7603 | rm -rf conftest* | 10346 | } |
| 7604 | eval "ac_cv_lib_$ac_lib_var=yes" | 10347 | _ACEOF |
| 7605 | else | 10348 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7606 | echo "configure: failed program was:" >&5 | 10349 | if { (eval echo "$as_me:10349: \"$ac_link\"") >&5 |
| 7607 | cat conftest.$ac_ext >&5 | 10350 | (eval $ac_link) 2>&5 |
| 7608 | rm -rf conftest* | 10351 | ac_status=$? |
| 7609 | eval "ac_cv_lib_$ac_lib_var=no" | 10352 | echo "$as_me:10352: \$? = $ac_status" >&5 |
| 7610 | fi | 10353 | (exit $ac_status); } && |
| 7611 | rm -f conftest* | 10354 | { ac_try='test -s conftest$ac_exeext' |
| 7612 | LIBS="$ac_save_LIBS" | 10355 | { (eval echo "$as_me:10355: \"$ac_try\"") >&5 |
| 7613 | 10356 | (eval $ac_try) 2>&5 | |
| 7614 | fi | 10357 | ac_status=$? |
| 7615 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10358 | echo "$as_me:10358: \$? = $ac_status" >&5 |
| 7616 | echo "$ac_t""yes" 1>&6 | 10359 | (exit $ac_status); }; }; then |
| 7617 | ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10360 | ac_cv_lib_krb4_krb_get_cred=yes |
| 7618 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10361 | else |
| 7619 | cat >> confdefs.h <<EOF | 10362 | echo "$as_me: failed program was:" >&5 |
| 7620 | #define $ac_tr_lib 1 | 10363 | cat conftest.$ac_ext >&5 |
| 10364 | ac_cv_lib_krb4_krb_get_cred=no | ||
| 10365 | fi | ||
| 10366 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10367 | LIBS=$ac_check_lib_save_LIBS | ||
| 10368 | fi | ||
| 10369 | echo "$as_me:10369: result: $ac_cv_lib_krb4_krb_get_cred" >&5 | ||
| 10370 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 | ||
| 10371 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | ||
| 10372 | cat >>confdefs.h <<EOF | ||
| 10373 | #define HAVE_LIBKRB4 1 | ||
| 7621 | EOF | 10374 | EOF |
| 7622 | 10375 | ||
| 7623 | LIBS="-lkrb4 $LIBS" | 10376 | LIBS="-lkrb4 $LIBS" |
| 7624 | 10377 | ||
| 7625 | else | 10378 | else |
| 7626 | echo "$ac_t""no" 1>&6 | 10379 | |
| 7627 | echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 10380 | echo "$as_me:10380: checking for krb_get_cred in -lkrb" >&5 |
| 7628 | echo "configure:7629: checking for krb_get_cred in -lkrb" >&5 | 10381 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
| 7629 | ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 10382 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then |
| 7630 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7631 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7632 | else | 10384 | else |
| 7633 | ac_save_LIBS="$LIBS" | 10385 | ac_check_lib_save_LIBS=$LIBS |
| 7634 | LIBS="-lkrb $LIBS" | 10386 | LIBS="-lkrb $LIBS" |
| 7635 | cat > conftest.$ac_ext <<EOF | 10387 | cat >conftest.$ac_ext <<_ACEOF |
| 7636 | #line 7637 "configure" | 10388 | #line 10388 "configure" |
| 7637 | #include "confdefs.h" | 10389 | #include "confdefs.h" |
| 10390 | |||
| 7638 | /* Override any gcc2 internal prototype to avoid an error. */ | 10391 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10392 | #ifdef __cplusplus | ||
| 10393 | extern "C" | ||
| 10394 | #endif | ||
| 7639 | /* We use char because int might match the return type of a gcc2 | 10395 | /* We use char because int might match the return type of a gcc2 |
| 7640 | builtin and then its argument prototype would still apply. */ | 10396 | builtin and then its argument prototype would still apply. */ |
| 7641 | char krb_get_cred(); | 10397 | char krb_get_cred (); |
| 7642 | 10398 | int | |
| 7643 | int main() { | 10399 | main () |
| 7644 | krb_get_cred() | 10400 | { |
| 7645 | ; return 0; } | 10401 | krb_get_cred (); |
| 7646 | EOF | 10402 | ; |
| 7647 | if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10403 | return 0; |
| 7648 | rm -rf conftest* | 10404 | } |
| 7649 | eval "ac_cv_lib_$ac_lib_var=yes" | 10405 | _ACEOF |
| 7650 | else | 10406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7651 | echo "configure: failed program was:" >&5 | 10407 | if { (eval echo "$as_me:10407: \"$ac_link\"") >&5 |
| 7652 | cat conftest.$ac_ext >&5 | 10408 | (eval $ac_link) 2>&5 |
| 7653 | rm -rf conftest* | 10409 | ac_status=$? |
| 7654 | eval "ac_cv_lib_$ac_lib_var=no" | 10410 | echo "$as_me:10410: \$? = $ac_status" >&5 |
| 7655 | fi | 10411 | (exit $ac_status); } && |
| 7656 | rm -f conftest* | 10412 | { ac_try='test -s conftest$ac_exeext' |
| 7657 | LIBS="$ac_save_LIBS" | 10413 | { (eval echo "$as_me:10413: \"$ac_try\"") >&5 |
| 7658 | 10414 | (eval $ac_try) 2>&5 | |
| 7659 | fi | 10415 | ac_status=$? |
| 7660 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10416 | echo "$as_me:10416: \$? = $ac_status" >&5 |
| 7661 | echo "$ac_t""yes" 1>&6 | 10417 | (exit $ac_status); }; }; then |
| 7662 | ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \ | 10418 | ac_cv_lib_krb_krb_get_cred=yes |
| 7663 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10419 | else |
| 7664 | cat >> confdefs.h <<EOF | 10420 | echo "$as_me: failed program was:" >&5 |
| 7665 | #define $ac_tr_lib 1 | 10421 | cat conftest.$ac_ext >&5 |
| 10422 | ac_cv_lib_krb_krb_get_cred=no | ||
| 10423 | fi | ||
| 10424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10425 | LIBS=$ac_check_lib_save_LIBS | ||
| 10426 | fi | ||
| 10427 | echo "$as_me:10427: result: $ac_cv_lib_krb_krb_get_cred" >&5 | ||
| 10428 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 | ||
| 10429 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | ||
| 10430 | cat >>confdefs.h <<EOF | ||
| 10431 | #define HAVE_LIBKRB 1 | ||
| 7666 | EOF | 10432 | EOF |
| 7667 | 10433 | ||
| 7668 | LIBS="-lkrb $LIBS" | 10434 | LIBS="-lkrb $LIBS" |
| 7669 | 10435 | ||
| 7670 | else | ||
| 7671 | echo "$ac_t""no" 1>&6 | ||
| 7672 | fi | 10436 | fi |
| 7673 | 10437 | ||
| 7674 | fi | 10438 | fi |
| @@ -7676,158 +10440,196 @@ fi | |||
| 7676 | fi | 10440 | fi |
| 7677 | 10441 | ||
| 7678 | if test "${with_kerberos5+set}" = set; then | 10442 | if test "${with_kerberos5+set}" = set; then |
| 7679 | for ac_hdr in krb5.h | 10443 | |
| 10444 | for ac_header in krb5.h | ||
| 7680 | do | 10445 | do |
| 7681 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10446 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7682 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10447 | echo "$as_me:10447: checking for $ac_header" >&5 |
| 7683 | echo "configure:7684: checking for $ac_hdr" >&5 | 10448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7684 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10449 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7685 | echo $ac_n "(cached) $ac_c" 1>&6 | 10450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7686 | else | 10451 | else |
| 7687 | cat > conftest.$ac_ext <<EOF | 10452 | cat >conftest.$ac_ext <<_ACEOF |
| 7688 | #line 7689 "configure" | 10453 | #line 10453 "configure" |
| 7689 | #include "confdefs.h" | 10454 | #include "confdefs.h" |
| 7690 | #include <$ac_hdr> | 10455 | #include <$ac_header> |
| 7691 | EOF | 10456 | _ACEOF |
| 7692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10457 | if { (eval echo "$as_me:10457: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7693 | { (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10458 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10459 | ac_status=$? |
| 7695 | if test -z "$ac_err"; then | 10460 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7696 | rm -rf conftest* | 10461 | rm -f conftest.er1 |
| 7697 | eval "ac_cv_header_$ac_safe=yes" | 10462 | cat conftest.err >&5 |
| 7698 | else | 10463 | echo "$as_me:10463: \$? = $ac_status" >&5 |
| 7699 | echo "$ac_err" >&5 | 10464 | (exit $ac_status); } >/dev/null; then |
| 7700 | echo "configure: failed program was:" >&5 | 10465 | if test -s conftest.err; then |
| 10466 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10467 | else | ||
| 10468 | ac_cpp_err= | ||
| 10469 | fi | ||
| 10470 | else | ||
| 10471 | ac_cpp_err=yes | ||
| 10472 | fi | ||
| 10473 | if test -z "$ac_cpp_err"; then | ||
| 10474 | eval "$as_ac_Header=yes" | ||
| 10475 | else | ||
| 10476 | echo "$as_me: failed program was:" >&5 | ||
| 7701 | cat conftest.$ac_ext >&5 | 10477 | cat conftest.$ac_ext >&5 |
| 7702 | rm -rf conftest* | 10478 | eval "$as_ac_Header=no" |
| 7703 | eval "ac_cv_header_$ac_safe=no" | ||
| 7704 | fi | 10479 | fi |
| 7705 | rm -f conftest* | 10480 | rm -f conftest.err conftest.$ac_ext |
| 7706 | fi | 10481 | fi |
| 7707 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10482 | echo "$as_me:10482: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7708 | echo "$ac_t""yes" 1>&6 | 10483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7709 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7710 | cat >> confdefs.h <<EOF | 10485 | cat >>confdefs.h <<EOF |
| 7711 | #define $ac_tr_hdr 1 | 10486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7712 | EOF | 10487 | EOF |
| 7713 | 10488 | ||
| 7714 | else | ||
| 7715 | echo "$ac_t""no" 1>&6 | ||
| 7716 | fi | 10489 | fi |
| 7717 | done | 10490 | done |
| 7718 | 10491 | ||
| 7719 | else | 10492 | else |
| 7720 | for ac_hdr in des.h | 10493 | |
| 10494 | for ac_header in des.h | ||
| 7721 | do | 10495 | do |
| 7722 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7723 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10497 | echo "$as_me:10497: checking for $ac_header" >&5 |
| 7724 | echo "configure:7725: checking for $ac_hdr" >&5 | 10498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7725 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7726 | echo $ac_n "(cached) $ac_c" 1>&6 | 10500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7727 | else | 10501 | else |
| 7728 | cat > conftest.$ac_ext <<EOF | 10502 | cat >conftest.$ac_ext <<_ACEOF |
| 7729 | #line 7730 "configure" | 10503 | #line 10503 "configure" |
| 7730 | #include "confdefs.h" | 10504 | #include "confdefs.h" |
| 7731 | #include <$ac_hdr> | 10505 | #include <$ac_header> |
| 7732 | EOF | 10506 | _ACEOF |
| 7733 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10507 | if { (eval echo "$as_me:10507: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7734 | { (eval echo configure:7735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7735 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10509 | ac_status=$? |
| 7736 | if test -z "$ac_err"; then | 10510 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7737 | rm -rf conftest* | 10511 | rm -f conftest.er1 |
| 7738 | eval "ac_cv_header_$ac_safe=yes" | 10512 | cat conftest.err >&5 |
| 7739 | else | 10513 | echo "$as_me:10513: \$? = $ac_status" >&5 |
| 7740 | echo "$ac_err" >&5 | 10514 | (exit $ac_status); } >/dev/null; then |
| 7741 | echo "configure: failed program was:" >&5 | 10515 | if test -s conftest.err; then |
| 10516 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10517 | else | ||
| 10518 | ac_cpp_err= | ||
| 10519 | fi | ||
| 10520 | else | ||
| 10521 | ac_cpp_err=yes | ||
| 10522 | fi | ||
| 10523 | if test -z "$ac_cpp_err"; then | ||
| 10524 | eval "$as_ac_Header=yes" | ||
| 10525 | else | ||
| 10526 | echo "$as_me: failed program was:" >&5 | ||
| 7742 | cat conftest.$ac_ext >&5 | 10527 | cat conftest.$ac_ext >&5 |
| 7743 | rm -rf conftest* | 10528 | eval "$as_ac_Header=no" |
| 7744 | eval "ac_cv_header_$ac_safe=no" | ||
| 7745 | fi | 10529 | fi |
| 7746 | rm -f conftest* | 10530 | rm -f conftest.err conftest.$ac_ext |
| 7747 | fi | 10531 | fi |
| 7748 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10532 | echo "$as_me:10532: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7749 | echo "$ac_t""yes" 1>&6 | 10533 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7750 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10534 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7751 | cat >> confdefs.h <<EOF | 10535 | cat >>confdefs.h <<EOF |
| 7752 | #define $ac_tr_hdr 1 | 10536 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7753 | EOF | 10537 | EOF |
| 7754 | 10538 | ||
| 7755 | else | 10539 | else |
| 7756 | echo "$ac_t""no" 1>&6 | 10540 | |
| 7757 | for ac_hdr in kerberosIV/des.h | 10541 | for ac_header in kerberosIV/des.h |
| 7758 | do | 10542 | do |
| 7759 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7760 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10544 | echo "$as_me:10544: checking for $ac_header" >&5 |
| 7761 | echo "configure:7762: checking for $ac_hdr" >&5 | 10545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7762 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7763 | echo $ac_n "(cached) $ac_c" 1>&6 | 10547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7764 | else | 10548 | else |
| 7765 | cat > conftest.$ac_ext <<EOF | 10549 | cat >conftest.$ac_ext <<_ACEOF |
| 7766 | #line 7767 "configure" | 10550 | #line 10550 "configure" |
| 7767 | #include "confdefs.h" | 10551 | #include "confdefs.h" |
| 7768 | #include <$ac_hdr> | 10552 | #include <$ac_header> |
| 7769 | EOF | 10553 | _ACEOF |
| 7770 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10554 | if { (eval echo "$as_me:10554: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7771 | { (eval echo configure:7772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7772 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10556 | ac_status=$? |
| 7773 | if test -z "$ac_err"; then | 10557 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7774 | rm -rf conftest* | 10558 | rm -f conftest.er1 |
| 7775 | eval "ac_cv_header_$ac_safe=yes" | 10559 | cat conftest.err >&5 |
| 7776 | else | 10560 | echo "$as_me:10560: \$? = $ac_status" >&5 |
| 7777 | echo "$ac_err" >&5 | 10561 | (exit $ac_status); } >/dev/null; then |
| 7778 | echo "configure: failed program was:" >&5 | 10562 | if test -s conftest.err; then |
| 10563 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10564 | else | ||
| 10565 | ac_cpp_err= | ||
| 10566 | fi | ||
| 10567 | else | ||
| 10568 | ac_cpp_err=yes | ||
| 10569 | fi | ||
| 10570 | if test -z "$ac_cpp_err"; then | ||
| 10571 | eval "$as_ac_Header=yes" | ||
| 10572 | else | ||
| 10573 | echo "$as_me: failed program was:" >&5 | ||
| 7779 | cat conftest.$ac_ext >&5 | 10574 | cat conftest.$ac_ext >&5 |
| 7780 | rm -rf conftest* | 10575 | eval "$as_ac_Header=no" |
| 7781 | eval "ac_cv_header_$ac_safe=no" | ||
| 7782 | fi | 10576 | fi |
| 7783 | rm -f conftest* | 10577 | rm -f conftest.err conftest.$ac_ext |
| 7784 | fi | 10578 | fi |
| 7785 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10579 | echo "$as_me:10579: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7786 | echo "$ac_t""yes" 1>&6 | 10580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7787 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7788 | cat >> confdefs.h <<EOF | 10582 | cat >>confdefs.h <<EOF |
| 7789 | #define $ac_tr_hdr 1 | 10583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7790 | EOF | 10584 | EOF |
| 7791 | 10585 | ||
| 7792 | else | 10586 | else |
| 7793 | echo "$ac_t""no" 1>&6 | 10587 | |
| 7794 | for ac_hdr in kerberos/des.h | 10588 | for ac_header in kerberos/des.h |
| 7795 | do | 10589 | do |
| 7796 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10590 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7797 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10591 | echo "$as_me:10591: checking for $ac_header" >&5 |
| 7798 | echo "configure:7799: checking for $ac_hdr" >&5 | 10592 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7799 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10593 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7800 | echo $ac_n "(cached) $ac_c" 1>&6 | 10594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7801 | else | 10595 | else |
| 7802 | cat > conftest.$ac_ext <<EOF | 10596 | cat >conftest.$ac_ext <<_ACEOF |
| 7803 | #line 7804 "configure" | 10597 | #line 10597 "configure" |
| 7804 | #include "confdefs.h" | 10598 | #include "confdefs.h" |
| 7805 | #include <$ac_hdr> | 10599 | #include <$ac_header> |
| 7806 | EOF | 10600 | _ACEOF |
| 7807 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10601 | if { (eval echo "$as_me:10601: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7808 | { (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10602 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7809 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10603 | ac_status=$? |
| 7810 | if test -z "$ac_err"; then | 10604 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7811 | rm -rf conftest* | 10605 | rm -f conftest.er1 |
| 7812 | eval "ac_cv_header_$ac_safe=yes" | 10606 | cat conftest.err >&5 |
| 7813 | else | 10607 | echo "$as_me:10607: \$? = $ac_status" >&5 |
| 7814 | echo "$ac_err" >&5 | 10608 | (exit $ac_status); } >/dev/null; then |
| 7815 | echo "configure: failed program was:" >&5 | 10609 | if test -s conftest.err; then |
| 10610 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10611 | else | ||
| 10612 | ac_cpp_err= | ||
| 10613 | fi | ||
| 10614 | else | ||
| 10615 | ac_cpp_err=yes | ||
| 10616 | fi | ||
| 10617 | if test -z "$ac_cpp_err"; then | ||
| 10618 | eval "$as_ac_Header=yes" | ||
| 10619 | else | ||
| 10620 | echo "$as_me: failed program was:" >&5 | ||
| 7816 | cat conftest.$ac_ext >&5 | 10621 | cat conftest.$ac_ext >&5 |
| 7817 | rm -rf conftest* | 10622 | eval "$as_ac_Header=no" |
| 7818 | eval "ac_cv_header_$ac_safe=no" | ||
| 7819 | fi | 10623 | fi |
| 7820 | rm -f conftest* | 10624 | rm -f conftest.err conftest.$ac_ext |
| 7821 | fi | 10625 | fi |
| 7822 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10626 | echo "$as_me:10626: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7823 | echo "$ac_t""yes" 1>&6 | 10627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7824 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7825 | cat >> confdefs.h <<EOF | 10629 | cat >>confdefs.h <<EOF |
| 7826 | #define $ac_tr_hdr 1 | 10630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7827 | EOF | 10631 | EOF |
| 7828 | 10632 | ||
| 7829 | else | ||
| 7830 | echo "$ac_t""no" 1>&6 | ||
| 7831 | fi | 10633 | fi |
| 7832 | done | 10634 | done |
| 7833 | 10635 | ||
| @@ -7837,117 +10639,145 @@ done | |||
| 7837 | fi | 10639 | fi |
| 7838 | done | 10640 | done |
| 7839 | 10641 | ||
| 7840 | for ac_hdr in krb.h | 10642 | for ac_header in krb.h |
| 7841 | do | 10643 | do |
| 7842 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10644 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7843 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10645 | echo "$as_me:10645: checking for $ac_header" >&5 |
| 7844 | echo "configure:7845: checking for $ac_hdr" >&5 | 10646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7845 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7846 | echo $ac_n "(cached) $ac_c" 1>&6 | 10648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7847 | else | 10649 | else |
| 7848 | cat > conftest.$ac_ext <<EOF | 10650 | cat >conftest.$ac_ext <<_ACEOF |
| 7849 | #line 7850 "configure" | 10651 | #line 10651 "configure" |
| 7850 | #include "confdefs.h" | 10652 | #include "confdefs.h" |
| 7851 | #include <$ac_hdr> | 10653 | #include <$ac_header> |
| 7852 | EOF | 10654 | _ACEOF |
| 7853 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10655 | if { (eval echo "$as_me:10655: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7854 | { (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10656 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7855 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10657 | ac_status=$? |
| 7856 | if test -z "$ac_err"; then | 10658 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7857 | rm -rf conftest* | 10659 | rm -f conftest.er1 |
| 7858 | eval "ac_cv_header_$ac_safe=yes" | 10660 | cat conftest.err >&5 |
| 7859 | else | 10661 | echo "$as_me:10661: \$? = $ac_status" >&5 |
| 7860 | echo "$ac_err" >&5 | 10662 | (exit $ac_status); } >/dev/null; then |
| 7861 | echo "configure: failed program was:" >&5 | 10663 | if test -s conftest.err; then |
| 10664 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10665 | else | ||
| 10666 | ac_cpp_err= | ||
| 10667 | fi | ||
| 10668 | else | ||
| 10669 | ac_cpp_err=yes | ||
| 10670 | fi | ||
| 10671 | if test -z "$ac_cpp_err"; then | ||
| 10672 | eval "$as_ac_Header=yes" | ||
| 10673 | else | ||
| 10674 | echo "$as_me: failed program was:" >&5 | ||
| 7862 | cat conftest.$ac_ext >&5 | 10675 | cat conftest.$ac_ext >&5 |
| 7863 | rm -rf conftest* | 10676 | eval "$as_ac_Header=no" |
| 7864 | eval "ac_cv_header_$ac_safe=no" | ||
| 7865 | fi | 10677 | fi |
| 7866 | rm -f conftest* | 10678 | rm -f conftest.err conftest.$ac_ext |
| 7867 | fi | 10679 | fi |
| 7868 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10680 | echo "$as_me:10680: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7869 | echo "$ac_t""yes" 1>&6 | 10681 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7870 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10682 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7871 | cat >> confdefs.h <<EOF | 10683 | cat >>confdefs.h <<EOF |
| 7872 | #define $ac_tr_hdr 1 | 10684 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7873 | EOF | 10685 | EOF |
| 7874 | 10686 | ||
| 7875 | else | 10687 | else |
| 7876 | echo "$ac_t""no" 1>&6 | 10688 | |
| 7877 | for ac_hdr in kerberosIV/krb.h | 10689 | for ac_header in kerberosIV/krb.h |
| 7878 | do | 10690 | do |
| 7879 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10691 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7880 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10692 | echo "$as_me:10692: checking for $ac_header" >&5 |
| 7881 | echo "configure:7882: checking for $ac_hdr" >&5 | 10693 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7882 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10694 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7883 | echo $ac_n "(cached) $ac_c" 1>&6 | 10695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7884 | else | 10696 | else |
| 7885 | cat > conftest.$ac_ext <<EOF | 10697 | cat >conftest.$ac_ext <<_ACEOF |
| 7886 | #line 7887 "configure" | 10698 | #line 10698 "configure" |
| 7887 | #include "confdefs.h" | 10699 | #include "confdefs.h" |
| 7888 | #include <$ac_hdr> | 10700 | #include <$ac_header> |
| 7889 | EOF | 10701 | _ACEOF |
| 7890 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10702 | if { (eval echo "$as_me:10702: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7891 | { (eval echo configure:7892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10703 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7892 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10704 | ac_status=$? |
| 7893 | if test -z "$ac_err"; then | 10705 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7894 | rm -rf conftest* | 10706 | rm -f conftest.er1 |
| 7895 | eval "ac_cv_header_$ac_safe=yes" | 10707 | cat conftest.err >&5 |
| 7896 | else | 10708 | echo "$as_me:10708: \$? = $ac_status" >&5 |
| 7897 | echo "$ac_err" >&5 | 10709 | (exit $ac_status); } >/dev/null; then |
| 7898 | echo "configure: failed program was:" >&5 | 10710 | if test -s conftest.err; then |
| 10711 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10712 | else | ||
| 10713 | ac_cpp_err= | ||
| 10714 | fi | ||
| 10715 | else | ||
| 10716 | ac_cpp_err=yes | ||
| 10717 | fi | ||
| 10718 | if test -z "$ac_cpp_err"; then | ||
| 10719 | eval "$as_ac_Header=yes" | ||
| 10720 | else | ||
| 10721 | echo "$as_me: failed program was:" >&5 | ||
| 7899 | cat conftest.$ac_ext >&5 | 10722 | cat conftest.$ac_ext >&5 |
| 7900 | rm -rf conftest* | 10723 | eval "$as_ac_Header=no" |
| 7901 | eval "ac_cv_header_$ac_safe=no" | ||
| 7902 | fi | 10724 | fi |
| 7903 | rm -f conftest* | 10725 | rm -f conftest.err conftest.$ac_ext |
| 7904 | fi | 10726 | fi |
| 7905 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10727 | echo "$as_me:10727: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7906 | echo "$ac_t""yes" 1>&6 | 10728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7907 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10729 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7908 | cat >> confdefs.h <<EOF | 10730 | cat >>confdefs.h <<EOF |
| 7909 | #define $ac_tr_hdr 1 | 10731 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7910 | EOF | 10732 | EOF |
| 7911 | 10733 | ||
| 7912 | else | 10734 | else |
| 7913 | echo "$ac_t""no" 1>&6 | 10735 | |
| 7914 | for ac_hdr in kerberos/krb.h | 10736 | for ac_header in kerberos/krb.h |
| 7915 | do | 10737 | do |
| 7916 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10738 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7917 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10739 | echo "$as_me:10739: checking for $ac_header" >&5 |
| 7918 | echo "configure:7919: checking for $ac_hdr" >&5 | 10740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7919 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7920 | echo $ac_n "(cached) $ac_c" 1>&6 | 10742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7921 | else | 10743 | else |
| 7922 | cat > conftest.$ac_ext <<EOF | 10744 | cat >conftest.$ac_ext <<_ACEOF |
| 7923 | #line 7924 "configure" | 10745 | #line 10745 "configure" |
| 7924 | #include "confdefs.h" | 10746 | #include "confdefs.h" |
| 7925 | #include <$ac_hdr> | 10747 | #include <$ac_header> |
| 7926 | EOF | 10748 | _ACEOF |
| 7927 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10749 | if { (eval echo "$as_me:10749: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7928 | { (eval echo configure:7929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10750 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7929 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10751 | ac_status=$? |
| 7930 | if test -z "$ac_err"; then | 10752 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7931 | rm -rf conftest* | 10753 | rm -f conftest.er1 |
| 7932 | eval "ac_cv_header_$ac_safe=yes" | 10754 | cat conftest.err >&5 |
| 7933 | else | 10755 | echo "$as_me:10755: \$? = $ac_status" >&5 |
| 7934 | echo "$ac_err" >&5 | 10756 | (exit $ac_status); } >/dev/null; then |
| 7935 | echo "configure: failed program was:" >&5 | 10757 | if test -s conftest.err; then |
| 10758 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10759 | else | ||
| 10760 | ac_cpp_err= | ||
| 10761 | fi | ||
| 10762 | else | ||
| 10763 | ac_cpp_err=yes | ||
| 10764 | fi | ||
| 10765 | if test -z "$ac_cpp_err"; then | ||
| 10766 | eval "$as_ac_Header=yes" | ||
| 10767 | else | ||
| 10768 | echo "$as_me: failed program was:" >&5 | ||
| 7936 | cat conftest.$ac_ext >&5 | 10769 | cat conftest.$ac_ext >&5 |
| 7937 | rm -rf conftest* | 10770 | eval "$as_ac_Header=no" |
| 7938 | eval "ac_cv_header_$ac_safe=no" | ||
| 7939 | fi | 10771 | fi |
| 7940 | rm -f conftest* | 10772 | rm -f conftest.err conftest.$ac_ext |
| 7941 | fi | 10773 | fi |
| 7942 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10774 | echo "$as_me:10774: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7943 | echo "$ac_t""yes" 1>&6 | 10775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7944 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10776 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7945 | cat >> confdefs.h <<EOF | 10777 | cat >>confdefs.h <<EOF |
| 7946 | #define $ac_tr_hdr 1 | 10778 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7947 | EOF | 10779 | EOF |
| 7948 | 10780 | ||
| 7949 | else | ||
| 7950 | echo "$ac_t""no" 1>&6 | ||
| 7951 | fi | 10781 | fi |
| 7952 | done | 10782 | done |
| 7953 | 10783 | ||
| @@ -7958,43 +10788,52 @@ fi | |||
| 7958 | done | 10788 | done |
| 7959 | 10789 | ||
| 7960 | fi | 10790 | fi |
| 7961 | for ac_hdr in com_err.h | 10791 | |
| 10792 | for ac_header in com_err.h | ||
| 7962 | do | 10793 | do |
| 7963 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10794 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7964 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10795 | echo "$as_me:10795: checking for $ac_header" >&5 |
| 7965 | echo "configure:7966: checking for $ac_hdr" >&5 | 10796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7966 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 10797 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7967 | echo $ac_n "(cached) $ac_c" 1>&6 | 10798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7968 | else | 10799 | else |
| 7969 | cat > conftest.$ac_ext <<EOF | 10800 | cat >conftest.$ac_ext <<_ACEOF |
| 7970 | #line 7971 "configure" | 10801 | #line 10801 "configure" |
| 7971 | #include "confdefs.h" | 10802 | #include "confdefs.h" |
| 7972 | #include <$ac_hdr> | 10803 | #include <$ac_header> |
| 7973 | EOF | 10804 | _ACEOF |
| 7974 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10805 | if { (eval echo "$as_me:10805: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7975 | { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10806 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7976 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 10807 | ac_status=$? |
| 7977 | if test -z "$ac_err"; then | 10808 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7978 | rm -rf conftest* | 10809 | rm -f conftest.er1 |
| 7979 | eval "ac_cv_header_$ac_safe=yes" | 10810 | cat conftest.err >&5 |
| 7980 | else | 10811 | echo "$as_me:10811: \$? = $ac_status" >&5 |
| 7981 | echo "$ac_err" >&5 | 10812 | (exit $ac_status); } >/dev/null; then |
| 7982 | echo "configure: failed program was:" >&5 | 10813 | if test -s conftest.err; then |
| 10814 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 10815 | else | ||
| 10816 | ac_cpp_err= | ||
| 10817 | fi | ||
| 10818 | else | ||
| 10819 | ac_cpp_err=yes | ||
| 10820 | fi | ||
| 10821 | if test -z "$ac_cpp_err"; then | ||
| 10822 | eval "$as_ac_Header=yes" | ||
| 10823 | else | ||
| 10824 | echo "$as_me: failed program was:" >&5 | ||
| 7983 | cat conftest.$ac_ext >&5 | 10825 | cat conftest.$ac_ext >&5 |
| 7984 | rm -rf conftest* | 10826 | eval "$as_ac_Header=no" |
| 7985 | eval "ac_cv_header_$ac_safe=no" | ||
| 7986 | fi | 10827 | fi |
| 7987 | rm -f conftest* | 10828 | rm -f conftest.err conftest.$ac_ext |
| 7988 | fi | 10829 | fi |
| 7989 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10830 | echo "$as_me:10830: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7990 | echo "$ac_t""yes" 1>&6 | 10831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7991 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7992 | cat >> confdefs.h <<EOF | 10833 | cat >>confdefs.h <<EOF |
| 7993 | #define $ac_tr_hdr 1 | 10834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7994 | EOF | 10835 | EOF |
| 7995 | 10836 | ||
| 7996 | else | ||
| 7997 | echo "$ac_t""no" 1>&6 | ||
| 7998 | fi | 10837 | fi |
| 7999 | done | 10838 | done |
| 8000 | 10839 | ||
| @@ -8002,66 +10841,77 @@ fi | |||
| 8002 | 10841 | ||
| 8003 | # Solaris requires -lintl if you want strerror (which calls dgettext) | 10842 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
| 8004 | # to return localized messages. | 10843 | # to return localized messages. |
| 8005 | echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 10844 | |
| 8006 | echo "configure:8007: checking for dgettext in -lintl" >&5 | 10845 | echo "$as_me:10845: checking for dgettext in -lintl" >&5 |
| 8007 | ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 10846 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
| 8008 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 10847 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
| 8009 | echo $ac_n "(cached) $ac_c" 1>&6 | 10848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8010 | else | 10849 | else |
| 8011 | ac_save_LIBS="$LIBS" | 10850 | ac_check_lib_save_LIBS=$LIBS |
| 8012 | LIBS="-lintl $LIBS" | 10851 | LIBS="-lintl $LIBS" |
| 8013 | cat > conftest.$ac_ext <<EOF | 10852 | cat >conftest.$ac_ext <<_ACEOF |
| 8014 | #line 8015 "configure" | 10853 | #line 10853 "configure" |
| 8015 | #include "confdefs.h" | 10854 | #include "confdefs.h" |
| 10855 | |||
| 8016 | /* Override any gcc2 internal prototype to avoid an error. */ | 10856 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10857 | #ifdef __cplusplus | ||
| 10858 | extern "C" | ||
| 10859 | #endif | ||
| 8017 | /* We use char because int might match the return type of a gcc2 | 10860 | /* We use char because int might match the return type of a gcc2 |
| 8018 | builtin and then its argument prototype would still apply. */ | 10861 | builtin and then its argument prototype would still apply. */ |
| 8019 | char dgettext(); | 10862 | char dgettext (); |
| 8020 | 10863 | int | |
| 8021 | int main() { | 10864 | main () |
| 8022 | dgettext() | 10865 | { |
| 8023 | ; return 0; } | 10866 | dgettext (); |
| 8024 | EOF | 10867 | ; |
| 8025 | if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 10868 | return 0; |
| 8026 | rm -rf conftest* | 10869 | } |
| 8027 | eval "ac_cv_lib_$ac_lib_var=yes" | 10870 | _ACEOF |
| 8028 | else | 10871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8029 | echo "configure: failed program was:" >&5 | 10872 | if { (eval echo "$as_me:10872: \"$ac_link\"") >&5 |
| 8030 | cat conftest.$ac_ext >&5 | 10873 | (eval $ac_link) 2>&5 |
| 8031 | rm -rf conftest* | 10874 | ac_status=$? |
| 8032 | eval "ac_cv_lib_$ac_lib_var=no" | 10875 | echo "$as_me:10875: \$? = $ac_status" >&5 |
| 8033 | fi | 10876 | (exit $ac_status); } && |
| 8034 | rm -f conftest* | 10877 | { ac_try='test -s conftest$ac_exeext' |
| 8035 | LIBS="$ac_save_LIBS" | 10878 | { (eval echo "$as_me:10878: \"$ac_try\"") >&5 |
| 8036 | 10879 | (eval $ac_try) 2>&5 | |
| 8037 | fi | 10880 | ac_status=$? |
| 8038 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 10881 | echo "$as_me:10881: \$? = $ac_status" >&5 |
| 8039 | echo "$ac_t""yes" 1>&6 | 10882 | (exit $ac_status); }; }; then |
| 8040 | ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 10883 | ac_cv_lib_intl_dgettext=yes |
| 8041 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 10884 | else |
| 8042 | cat >> confdefs.h <<EOF | 10885 | echo "$as_me: failed program was:" >&5 |
| 8043 | #define $ac_tr_lib 1 | 10886 | cat conftest.$ac_ext >&5 |
| 10887 | ac_cv_lib_intl_dgettext=no | ||
| 10888 | fi | ||
| 10889 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 10890 | LIBS=$ac_check_lib_save_LIBS | ||
| 10891 | fi | ||
| 10892 | echo "$as_me:10892: result: $ac_cv_lib_intl_dgettext" >&5 | ||
| 10893 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 | ||
| 10894 | if test $ac_cv_lib_intl_dgettext = yes; then | ||
| 10895 | cat >>confdefs.h <<EOF | ||
| 10896 | #define HAVE_LIBINTL 1 | ||
| 8044 | EOF | 10897 | EOF |
| 8045 | 10898 | ||
| 8046 | LIBS="-lintl $LIBS" | 10899 | LIBS="-lintl $LIBS" |
| 8047 | 10900 | ||
| 8048 | else | ||
| 8049 | echo "$ac_t""no" 1>&6 | ||
| 8050 | fi | 10901 | fi |
| 8051 | 10902 | ||
| 8052 | 10903 | echo "$as_me:10903: checking whether localtime caches TZ" >&5 | |
| 8053 | echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 10904 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
| 8054 | echo "configure:8055: checking whether localtime caches TZ" >&5 | 10905 | if test "${emacs_cv_localtime_cache+set}" = set; then |
| 8055 | if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 10906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8056 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 8057 | else | 10907 | else |
| 8058 | if test x$ac_cv_func_tzset = xyes; then | 10908 | if test x$ac_cv_func_tzset = xyes; then |
| 8059 | if test "$cross_compiling" = yes; then | 10909 | if test "$cross_compiling" = yes; then |
| 8060 | # If we have tzset, assume the worst when cross-compiling. | 10910 | # If we have tzset, assume the worst when cross-compiling. |
| 8061 | emacs_cv_localtime_cache=yes | 10911 | emacs_cv_localtime_cache=yes |
| 8062 | else | 10912 | else |
| 8063 | cat > conftest.$ac_ext <<EOF | 10913 | cat >conftest.$ac_ext <<_ACEOF |
| 8064 | #line 8065 "configure" | 10914 | #line 10914 "configure" |
| 8065 | #include "confdefs.h" | 10915 | #include "confdefs.h" |
| 8066 | #include <time.h> | 10916 | #include <time.h> |
| 8067 | extern char **environ; | 10917 | extern char **environ; |
| @@ -8092,96 +10942,120 @@ main() | |||
| 8092 | exit (1); | 10942 | exit (1); |
| 8093 | exit (0); | 10943 | exit (0); |
| 8094 | } | 10944 | } |
| 8095 | EOF | 10945 | _ACEOF |
| 8096 | if { (eval echo configure:8097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 10946 | rm -f conftest$ac_exeext |
| 8097 | then | 10947 | if { (eval echo "$as_me:10947: \"$ac_link\"") >&5 |
| 10948 | (eval $ac_link) 2>&5 | ||
| 10949 | ac_status=$? | ||
| 10950 | echo "$as_me:10950: \$? = $ac_status" >&5 | ||
| 10951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 10952 | { (eval echo "$as_me:10952: \"$ac_try\"") >&5 | ||
| 10953 | (eval $ac_try) 2>&5 | ||
| 10954 | ac_status=$? | ||
| 10955 | echo "$as_me:10955: \$? = $ac_status" >&5 | ||
| 10956 | (exit $ac_status); }; }; then | ||
| 8098 | emacs_cv_localtime_cache=no | 10957 | emacs_cv_localtime_cache=no |
| 8099 | else | 10958 | else |
| 8100 | echo "configure: failed program was:" >&5 | 10959 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8101 | cat conftest.$ac_ext >&5 | 10960 | echo "$as_me: failed program was:" >&5 |
| 8102 | rm -fr conftest* | 10961 | cat conftest.$ac_ext >&5 |
| 8103 | emacs_cv_localtime_cache=yes | 10962 | emacs_cv_localtime_cache=yes |
| 8104 | fi | 10963 | fi |
| 8105 | rm -fr conftest* | 10964 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8106 | fi | 10965 | fi |
| 8107 | |||
| 8108 | else | 10966 | else |
| 8109 | # If we lack tzset, report that localtime does not cache TZ, | 10967 | # If we lack tzset, report that localtime does not cache TZ, |
| 8110 | # since we can't invalidate the cache if we don't have tzset. | 10968 | # since we can't invalidate the cache if we don't have tzset. |
| 8111 | emacs_cv_localtime_cache=no | 10969 | emacs_cv_localtime_cache=no |
| 8112 | fi | 10970 | fi |
| 8113 | fi | 10971 | fi |
| 8114 | echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | 10972 | echo "$as_me:10972: result: $emacs_cv_localtime_cache" >&5 |
| 10973 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 | ||
| 8115 | if test $emacs_cv_localtime_cache = yes; then | 10974 | if test $emacs_cv_localtime_cache = yes; then |
| 8116 | cat >> confdefs.h <<\EOF | 10975 | cat >>confdefs.h <<\EOF |
| 8117 | #define LOCALTIME_CACHE 1 | 10976 | #define LOCALTIME_CACHE 1 |
| 8118 | EOF | 10977 | EOF |
| 8119 | 10978 | ||
| 8120 | fi | 10979 | fi |
| 8121 | 10980 | ||
| 8122 | if test "x$HAVE_TIMEVAL" = xyes; then | 10981 | if test "x$HAVE_TIMEVAL" = xyes; then |
| 8123 | for ac_func in gettimeofday | 10982 | |
| 10983 | for ac_func in gettimeofday | ||
| 8124 | do | 10984 | do |
| 8125 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 10985 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8126 | echo "configure:8127: checking for $ac_func" >&5 | 10986 | echo "$as_me:10986: checking for $ac_func" >&5 |
| 8127 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 10987 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8128 | echo $ac_n "(cached) $ac_c" 1>&6 | 10988 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 8129 | else | 10990 | else |
| 8130 | cat > conftest.$ac_ext <<EOF | 10991 | cat >conftest.$ac_ext <<_ACEOF |
| 8131 | #line 8132 "configure" | 10992 | #line 10992 "configure" |
| 8132 | #include "confdefs.h" | 10993 | #include "confdefs.h" |
| 8133 | /* System header to define __stub macros and hopefully few prototypes, | 10994 | /* System header to define __stub macros and hopefully few prototypes, |
| 8134 | which can conflict with char $ac_func(); below. */ | 10995 | which can conflict with char $ac_func (); below. */ |
| 8135 | #include <assert.h> | 10996 | #include <assert.h> |
| 8136 | /* Override any gcc2 internal prototype to avoid an error. */ | 10997 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10998 | #ifdef __cplusplus | ||
| 10999 | extern "C" | ||
| 11000 | #endif | ||
| 8137 | /* We use char because int might match the return type of a gcc2 | 11001 | /* We use char because int might match the return type of a gcc2 |
| 8138 | builtin and then its argument prototype would still apply. */ | 11002 | builtin and then its argument prototype would still apply. */ |
| 8139 | char $ac_func(); | 11003 | char $ac_func (); |
| 8140 | 11004 | char (*f) (); | |
| 8141 | int main() { | ||
| 8142 | 11005 | ||
| 11006 | int | ||
| 11007 | main () | ||
| 11008 | { | ||
| 8143 | /* The GNU C library defines this for functions which it implements | 11009 | /* The GNU C library defines this for functions which it implements |
| 8144 | to always fail with ENOSYS. Some functions are actually named | 11010 | to always fail with ENOSYS. Some functions are actually named |
| 8145 | something starting with __ and the normal name is an alias. */ | 11011 | something starting with __ and the normal name is an alias. */ |
| 8146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 11012 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8147 | choke me | 11013 | choke me |
| 8148 | #else | 11014 | #else |
| 8149 | $ac_func(); | 11015 | f = $ac_func; |
| 8150 | #endif | 11016 | #endif |
| 8151 | 11017 | ||
| 8152 | ; return 0; } | 11018 | ; |
| 11019 | return 0; | ||
| 11020 | } | ||
| 11021 | _ACEOF | ||
| 11022 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 11023 | if { (eval echo "$as_me:11023: \"$ac_link\"") >&5 | ||
| 11024 | (eval $ac_link) 2>&5 | ||
| 11025 | ac_status=$? | ||
| 11026 | echo "$as_me:11026: \$? = $ac_status" >&5 | ||
| 11027 | (exit $ac_status); } && | ||
| 11028 | { ac_try='test -s conftest$ac_exeext' | ||
| 11029 | { (eval echo "$as_me:11029: \"$ac_try\"") >&5 | ||
| 11030 | (eval $ac_try) 2>&5 | ||
| 11031 | ac_status=$? | ||
| 11032 | echo "$as_me:11032: \$? = $ac_status" >&5 | ||
| 11033 | (exit $ac_status); }; }; then | ||
| 11034 | eval "$as_ac_var=yes" | ||
| 11035 | else | ||
| 11036 | echo "$as_me: failed program was:" >&5 | ||
| 11037 | cat conftest.$ac_ext >&5 | ||
| 11038 | eval "$as_ac_var=no" | ||
| 11039 | fi | ||
| 11040 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 11041 | fi | ||
| 11042 | echo "$as_me:11042: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 11043 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 11044 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 11045 | cat >>confdefs.h <<EOF | ||
| 11046 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 8153 | EOF | 11047 | EOF |
| 8154 | if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 8155 | rm -rf conftest* | ||
| 8156 | eval "ac_cv_func_$ac_func=yes" | ||
| 8157 | else | ||
| 8158 | echo "configure: failed program was:" >&5 | ||
| 8159 | cat conftest.$ac_ext >&5 | ||
| 8160 | rm -rf conftest* | ||
| 8161 | eval "ac_cv_func_$ac_func=no" | ||
| 8162 | fi | ||
| 8163 | rm -f conftest* | ||
| 8164 | fi | ||
| 8165 | 11048 | ||
| 8166 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 8167 | echo "$ac_t""yes" 1>&6 | ||
| 8168 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 8169 | cat >> confdefs.h <<EOF | ||
| 8170 | #define $ac_tr_func 1 | ||
| 8171 | EOF | ||
| 8172 | |||
| 8173 | else | ||
| 8174 | echo "$ac_t""no" 1>&6 | ||
| 8175 | fi | 11049 | fi |
| 8176 | done | 11050 | done |
| 8177 | 11051 | ||
| 8178 | echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 11052 | echo "$as_me:11052: checking whether gettimeofday can accept two arguments" >&5 |
| 8179 | echo "configure:8180: checking whether gettimeofday can accept two arguments" >&5 | 11053 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
| 8180 | if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 11054 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then |
| 8181 | echo $ac_n "(cached) $ac_c" 1>&6 | 11055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8182 | else | 11056 | else |
| 8183 | cat > conftest.$ac_ext <<EOF | 11057 | cat >conftest.$ac_ext <<_ACEOF |
| 8184 | #line 8185 "configure" | 11058 | #line 11058 "configure" |
| 8185 | #include "confdefs.h" | 11059 | #include "confdefs.h" |
| 8186 | 11060 | ||
| 8187 | #ifdef TIME_WITH_SYS_TIME | 11061 | #ifdef TIME_WITH_SYS_TIME |
| @@ -8194,26 +11068,39 @@ else | |||
| 8194 | #include <time.h> | 11068 | #include <time.h> |
| 8195 | #endif | 11069 | #endif |
| 8196 | #endif | 11070 | #endif |
| 8197 | int main() { | 11071 | int |
| 11072 | main () | ||
| 11073 | { | ||
| 8198 | struct timeval time; | 11074 | struct timeval time; |
| 8199 | gettimeofday (&time, 0); | 11075 | gettimeofday (&time, 0); |
| 8200 | ; return 0; } | 11076 | ; |
| 8201 | EOF | 11077 | return 0; |
| 8202 | if { (eval echo configure:8203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11078 | } |
| 8203 | rm -rf conftest* | 11079 | _ACEOF |
| 11080 | rm -f conftest.$ac_objext | ||
| 11081 | if { (eval echo "$as_me:11081: \"$ac_compile\"") >&5 | ||
| 11082 | (eval $ac_compile) 2>&5 | ||
| 11083 | ac_status=$? | ||
| 11084 | echo "$as_me:11084: \$? = $ac_status" >&5 | ||
| 11085 | (exit $ac_status); } && | ||
| 11086 | { ac_try='test -s conftest.$ac_objext' | ||
| 11087 | { (eval echo "$as_me:11087: \"$ac_try\"") >&5 | ||
| 11088 | (eval $ac_try) 2>&5 | ||
| 11089 | ac_status=$? | ||
| 11090 | echo "$as_me:11090: \$? = $ac_status" >&5 | ||
| 11091 | (exit $ac_status); }; }; then | ||
| 8204 | emacs_cv_gettimeofday_two_arguments=yes | 11092 | emacs_cv_gettimeofday_two_arguments=yes |
| 8205 | else | 11093 | else |
| 8206 | echo "configure: failed program was:" >&5 | 11094 | echo "$as_me: failed program was:" >&5 |
| 8207 | cat conftest.$ac_ext >&5 | 11095 | cat conftest.$ac_ext >&5 |
| 8208 | rm -rf conftest* | 11096 | emacs_cv_gettimeofday_two_arguments=no |
| 8209 | emacs_cv_gettimeofday_two_arguments=no | ||
| 8210 | fi | 11097 | fi |
| 8211 | rm -f conftest* | 11098 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8212 | fi | 11099 | fi |
| 8213 | 11100 | echo "$as_me:11100: result: $emacs_cv_gettimeofday_two_arguments" >&5 | |
| 8214 | echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | 11101 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
| 8215 | if test $emacs_cv_gettimeofday_two_arguments = no; then | 11102 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
| 8216 | cat >> confdefs.h <<\EOF | 11103 | cat >>confdefs.h <<\EOF |
| 8217 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | 11104 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
| 8218 | EOF | 11105 | EOF |
| 8219 | 11106 | ||
| @@ -8221,26 +11108,40 @@ EOF | |||
| 8221 | fi | 11108 | fi |
| 8222 | 11109 | ||
| 8223 | if test "$ac_cv_func_gettimeofday" = yes; then | 11110 | if test "$ac_cv_func_gettimeofday" = yes; then |
| 8224 | echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | 11111 | echo "$as_me:11111: checking for struct timezone" >&5 |
| 8225 | echo "configure:8226: checking for struct timezone" >&5 | 11112 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
| 8226 | if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then | 11113 | if test "${emacs_cv_struct_timezone+set}" = set; then |
| 8227 | echo $ac_n "(cached) $ac_c" 1>&6 | 11114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8228 | else | 11115 | else |
| 8229 | cat > conftest.$ac_ext <<EOF | 11116 | cat >conftest.$ac_ext <<_ACEOF |
| 8230 | #line 8231 "configure" | 11117 | #line 11117 "configure" |
| 8231 | #include "confdefs.h" | 11118 | #include "confdefs.h" |
| 8232 | #include <sys/time.h> | 11119 | #include <sys/time.h> |
| 8233 | int main() { | 11120 | int |
| 11121 | main () | ||
| 11122 | { | ||
| 8234 | struct timezone tz; | 11123 | struct timezone tz; |
| 8235 | ; return 0; } | 11124 | ; |
| 8236 | EOF | 11125 | return 0; |
| 8237 | if { (eval echo configure:8238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11126 | } |
| 8238 | rm -rf conftest* | 11127 | _ACEOF |
| 11128 | rm -f conftest.$ac_objext | ||
| 11129 | if { (eval echo "$as_me:11129: \"$ac_compile\"") >&5 | ||
| 11130 | (eval $ac_compile) 2>&5 | ||
| 11131 | ac_status=$? | ||
| 11132 | echo "$as_me:11132: \$? = $ac_status" >&5 | ||
| 11133 | (exit $ac_status); } && | ||
| 11134 | { ac_try='test -s conftest.$ac_objext' | ||
| 11135 | { (eval echo "$as_me:11135: \"$ac_try\"") >&5 | ||
| 11136 | (eval $ac_try) 2>&5 | ||
| 11137 | ac_status=$? | ||
| 11138 | echo "$as_me:11138: \$? = $ac_status" >&5 | ||
| 11139 | (exit $ac_status); }; }; then | ||
| 8239 | if test "$cross_compiling" = yes; then | 11140 | if test "$cross_compiling" = yes; then |
| 8240 | emacs_cv_struct_timezone=yes | 11141 | emacs_cv_struct_timezone=yes |
| 8241 | else | 11142 | else |
| 8242 | cat > conftest.$ac_ext <<EOF | 11143 | cat >conftest.$ac_ext <<_ACEOF |
| 8243 | #line 8244 "configure" | 11144 | #line 11144 "configure" |
| 8244 | #include "confdefs.h" | 11145 | #include "confdefs.h" |
| 8245 | 11146 | ||
| 8246 | #ifdef TIME_WITH_SYS_TIME | 11147 | #ifdef TIME_WITH_SYS_TIME |
| @@ -8258,327 +11159,485 @@ main () { | |||
| 8258 | struct timezone dummy; | 11159 | struct timezone dummy; |
| 8259 | exit (gettimeofday (&time, &dummy)); | 11160 | exit (gettimeofday (&time, &dummy)); |
| 8260 | } | 11161 | } |
| 8261 | EOF | 11162 | _ACEOF |
| 8262 | if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 11163 | rm -f conftest$ac_exeext |
| 8263 | then | 11164 | if { (eval echo "$as_me:11164: \"$ac_link\"") >&5 |
| 11165 | (eval $ac_link) 2>&5 | ||
| 11166 | ac_status=$? | ||
| 11167 | echo "$as_me:11167: \$? = $ac_status" >&5 | ||
| 11168 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 11169 | { (eval echo "$as_me:11169: \"$ac_try\"") >&5 | ||
| 11170 | (eval $ac_try) 2>&5 | ||
| 11171 | ac_status=$? | ||
| 11172 | echo "$as_me:11172: \$? = $ac_status" >&5 | ||
| 11173 | (exit $ac_status); }; }; then | ||
| 8264 | emacs_cv_struct_timezone=yes | 11174 | emacs_cv_struct_timezone=yes |
| 8265 | else | 11175 | else |
| 8266 | echo "configure: failed program was:" >&5 | 11176 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8267 | cat conftest.$ac_ext >&5 | 11177 | echo "$as_me: failed program was:" >&5 |
| 8268 | rm -fr conftest* | 11178 | cat conftest.$ac_ext >&5 |
| 8269 | emacs_cv_struct_timezone=no | 11179 | emacs_cv_struct_timezone=no |
| 8270 | fi | 11180 | fi |
| 8271 | rm -fr conftest* | 11181 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8272 | fi | 11182 | fi |
| 8273 | |||
| 8274 | else | 11183 | else |
| 8275 | echo "configure: failed program was:" >&5 | 11184 | echo "$as_me: failed program was:" >&5 |
| 8276 | cat conftest.$ac_ext >&5 | 11185 | cat conftest.$ac_ext >&5 |
| 8277 | rm -rf conftest* | 11186 | emacs_cv_struct_timezone=no |
| 8278 | emacs_cv_struct_timezone=no | ||
| 8279 | fi | 11187 | fi |
| 8280 | rm -f conftest* | 11188 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8281 | fi | 11189 | fi |
| 8282 | 11190 | echo "$as_me:11190: result: $emacs_cv_struct_timezone" >&5 | |
| 8283 | echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | 11191 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
| 8284 | fi | 11192 | fi |
| 8285 | 11193 | ||
| 8286 | ok_so_far=yes | 11194 | ok_so_far=yes |
| 8287 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | 11195 | echo "$as_me:11195: checking for socket" >&5 |
| 8288 | echo "configure:8289: checking for socket" >&5 | 11196 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
| 8289 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 11197 | if test "${ac_cv_func_socket+set}" = set; then |
| 8290 | echo $ac_n "(cached) $ac_c" 1>&6 | 11198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8291 | else | 11199 | else |
| 8292 | cat > conftest.$ac_ext <<EOF | 11200 | cat >conftest.$ac_ext <<_ACEOF |
| 8293 | #line 8294 "configure" | 11201 | #line 11201 "configure" |
| 8294 | #include "confdefs.h" | 11202 | #include "confdefs.h" |
| 8295 | /* System header to define __stub macros and hopefully few prototypes, | 11203 | /* System header to define __stub macros and hopefully few prototypes, |
| 8296 | which can conflict with char socket(); below. */ | 11204 | which can conflict with char socket (); below. */ |
| 8297 | #include <assert.h> | 11205 | #include <assert.h> |
| 8298 | /* Override any gcc2 internal prototype to avoid an error. */ | 11206 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11207 | #ifdef __cplusplus | ||
| 11208 | extern "C" | ||
| 11209 | #endif | ||
| 8299 | /* We use char because int might match the return type of a gcc2 | 11210 | /* We use char because int might match the return type of a gcc2 |
| 8300 | builtin and then its argument prototype would still apply. */ | 11211 | builtin and then its argument prototype would still apply. */ |
| 8301 | char socket(); | 11212 | char socket (); |
| 8302 | 11213 | char (*f) (); | |
| 8303 | int main() { | ||
| 8304 | 11214 | ||
| 11215 | int | ||
| 11216 | main () | ||
| 11217 | { | ||
| 8305 | /* The GNU C library defines this for functions which it implements | 11218 | /* The GNU C library defines this for functions which it implements |
| 8306 | to always fail with ENOSYS. Some functions are actually named | 11219 | to always fail with ENOSYS. Some functions are actually named |
| 8307 | something starting with __ and the normal name is an alias. */ | 11220 | something starting with __ and the normal name is an alias. */ |
| 8308 | #if defined (__stub_socket) || defined (__stub___socket) | 11221 | #if defined (__stub_socket) || defined (__stub___socket) |
| 8309 | choke me | 11222 | choke me |
| 8310 | #else | 11223 | #else |
| 8311 | socket(); | 11224 | f = socket; |
| 8312 | #endif | 11225 | #endif |
| 8313 | 11226 | ||
| 8314 | ; return 0; } | 11227 | ; |
| 8315 | EOF | 11228 | return 0; |
| 8316 | if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11229 | } |
| 8317 | rm -rf conftest* | 11230 | _ACEOF |
| 8318 | eval "ac_cv_func_socket=yes" | 11231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8319 | else | 11232 | if { (eval echo "$as_me:11232: \"$ac_link\"") >&5 |
| 8320 | echo "configure: failed program was:" >&5 | 11233 | (eval $ac_link) 2>&5 |
| 8321 | cat conftest.$ac_ext >&5 | 11234 | ac_status=$? |
| 8322 | rm -rf conftest* | 11235 | echo "$as_me:11235: \$? = $ac_status" >&5 |
| 8323 | eval "ac_cv_func_socket=no" | 11236 | (exit $ac_status); } && |
| 8324 | fi | 11237 | { ac_try='test -s conftest$ac_exeext' |
| 8325 | rm -f conftest* | 11238 | { (eval echo "$as_me:11238: \"$ac_try\"") >&5 |
| 8326 | fi | 11239 | (eval $ac_try) 2>&5 |
| 8327 | 11240 | ac_status=$? | |
| 8328 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | 11241 | echo "$as_me:11241: \$? = $ac_status" >&5 |
| 8329 | echo "$ac_t""yes" 1>&6 | 11242 | (exit $ac_status); }; }; then |
| 11243 | ac_cv_func_socket=yes | ||
| 11244 | else | ||
| 11245 | echo "$as_me: failed program was:" >&5 | ||
| 11246 | cat conftest.$ac_ext >&5 | ||
| 11247 | ac_cv_func_socket=no | ||
| 11248 | fi | ||
| 11249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 11250 | fi | ||
| 11251 | echo "$as_me:11251: result: $ac_cv_func_socket" >&5 | ||
| 11252 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | ||
| 11253 | if test $ac_cv_func_socket = yes; then | ||
| 8330 | : | 11254 | : |
| 8331 | else | 11255 | else |
| 8332 | echo "$ac_t""no" 1>&6 | 11256 | ok_so_far=no |
| 8333 | ok_so_far=no | ||
| 8334 | fi | 11257 | fi |
| 8335 | 11258 | ||
| 8336 | if test $ok_so_far = yes; then | 11259 | if test $ok_so_far = yes; then |
| 8337 | ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 11260 | echo "$as_me:11260: checking for netinet/in.h" >&5 |
| 8338 | echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 11261 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 8339 | echo "configure:8340: checking for netinet/in.h" >&5 | 11262 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 8340 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 11263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8341 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 8342 | else | 11264 | else |
| 8343 | cat > conftest.$ac_ext <<EOF | 11265 | cat >conftest.$ac_ext <<_ACEOF |
| 8344 | #line 8345 "configure" | 11266 | #line 11266 "configure" |
| 8345 | #include "confdefs.h" | 11267 | #include "confdefs.h" |
| 8346 | #include <netinet/in.h> | 11268 | #include <netinet/in.h> |
| 8347 | EOF | 11269 | _ACEOF |
| 8348 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11270 | if { (eval echo "$as_me:11270: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8349 | { (eval echo configure:8350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11271 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8350 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11272 | ac_status=$? |
| 8351 | if test -z "$ac_err"; then | 11273 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8352 | rm -rf conftest* | 11274 | rm -f conftest.er1 |
| 8353 | eval "ac_cv_header_$ac_safe=yes" | 11275 | cat conftest.err >&5 |
| 11276 | echo "$as_me:11276: \$? = $ac_status" >&5 | ||
| 11277 | (exit $ac_status); } >/dev/null; then | ||
| 11278 | if test -s conftest.err; then | ||
| 11279 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 11280 | else | ||
| 11281 | ac_cpp_err= | ||
| 11282 | fi | ||
| 11283 | else | ||
| 11284 | ac_cpp_err=yes | ||
| 11285 | fi | ||
| 11286 | if test -z "$ac_cpp_err"; then | ||
| 11287 | ac_cv_header_netinet_in_h=yes | ||
| 8354 | else | 11288 | else |
| 8355 | echo "$ac_err" >&5 | 11289 | echo "$as_me: failed program was:" >&5 |
| 8356 | echo "configure: failed program was:" >&5 | ||
| 8357 | cat conftest.$ac_ext >&5 | 11290 | cat conftest.$ac_ext >&5 |
| 8358 | rm -rf conftest* | 11291 | ac_cv_header_netinet_in_h=no |
| 8359 | eval "ac_cv_header_$ac_safe=no" | ||
| 8360 | fi | 11292 | fi |
| 8361 | rm -f conftest* | 11293 | rm -f conftest.err conftest.$ac_ext |
| 8362 | fi | 11294 | fi |
| 8363 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 11295 | echo "$as_me:11295: result: $ac_cv_header_netinet_in_h" >&5 |
| 8364 | echo "$ac_t""yes" 1>&6 | 11296 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 11297 | if test $ac_cv_header_netinet_in_h = yes; then | ||
| 8365 | : | 11298 | : |
| 8366 | else | 11299 | else |
| 8367 | echo "$ac_t""no" 1>&6 | 11300 | ok_so_far=no |
| 8368 | ok_so_far=no | ||
| 8369 | fi | 11301 | fi |
| 8370 | 11302 | ||
| 8371 | fi | 11303 | fi |
| 8372 | if test $ok_so_far = yes; then | 11304 | if test $ok_so_far = yes; then |
| 8373 | ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 11305 | echo "$as_me:11305: checking for arpa/inet.h" >&5 |
| 8374 | echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 11306 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 8375 | echo "configure:8376: checking for arpa/inet.h" >&5 | 11307 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 8376 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 11308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8377 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 8378 | else | 11309 | else |
| 8379 | cat > conftest.$ac_ext <<EOF | 11310 | cat >conftest.$ac_ext <<_ACEOF |
| 8380 | #line 8381 "configure" | 11311 | #line 11311 "configure" |
| 8381 | #include "confdefs.h" | 11312 | #include "confdefs.h" |
| 8382 | #include <arpa/inet.h> | 11313 | #include <arpa/inet.h> |
| 8383 | EOF | 11314 | _ACEOF |
| 8384 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11315 | if { (eval echo "$as_me:11315: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8385 | { (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11316 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8386 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11317 | ac_status=$? |
| 8387 | if test -z "$ac_err"; then | 11318 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8388 | rm -rf conftest* | 11319 | rm -f conftest.er1 |
| 8389 | eval "ac_cv_header_$ac_safe=yes" | 11320 | cat conftest.err >&5 |
| 11321 | echo "$as_me:11321: \$? = $ac_status" >&5 | ||
| 11322 | (exit $ac_status); } >/dev/null; then | ||
| 11323 | if test -s conftest.err; then | ||
| 11324 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 11325 | else | ||
| 11326 | ac_cpp_err= | ||
| 11327 | fi | ||
| 8390 | else | 11328 | else |
| 8391 | echo "$ac_err" >&5 | 11329 | ac_cpp_err=yes |
| 8392 | echo "configure: failed program was:" >&5 | 11330 | fi |
| 11331 | if test -z "$ac_cpp_err"; then | ||
| 11332 | ac_cv_header_arpa_inet_h=yes | ||
| 11333 | else | ||
| 11334 | echo "$as_me: failed program was:" >&5 | ||
| 8393 | cat conftest.$ac_ext >&5 | 11335 | cat conftest.$ac_ext >&5 |
| 8394 | rm -rf conftest* | 11336 | ac_cv_header_arpa_inet_h=no |
| 8395 | eval "ac_cv_header_$ac_safe=no" | ||
| 8396 | fi | 11337 | fi |
| 8397 | rm -f conftest* | 11338 | rm -f conftest.err conftest.$ac_ext |
| 8398 | fi | 11339 | fi |
| 8399 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 11340 | echo "$as_me:11340: result: $ac_cv_header_arpa_inet_h" >&5 |
| 8400 | echo "$ac_t""yes" 1>&6 | 11341 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 11342 | if test $ac_cv_header_arpa_inet_h = yes; then | ||
| 8401 | : | 11343 | : |
| 8402 | else | 11344 | else |
| 8403 | echo "$ac_t""no" 1>&6 | 11345 | ok_so_far=no |
| 8404 | ok_so_far=no | ||
| 8405 | fi | 11346 | fi |
| 8406 | 11347 | ||
| 8407 | fi | 11348 | fi |
| 8408 | if test $ok_so_far = yes; then | 11349 | if test $ok_so_far = yes; then |
| 8409 | cat >> confdefs.h <<\EOF | 11350 | cat >>confdefs.h <<\EOF |
| 8410 | #define HAVE_INET_SOCKETS 1 | 11351 | #define HAVE_INET_SOCKETS 1 |
| 8411 | EOF | 11352 | EOF |
| 8412 | 11353 | ||
| 8413 | fi | 11354 | fi |
| 8414 | 11355 | ||
| 8415 | if test -f /usr/lpp/X11/bin/smt.exp; then | 11356 | if test -f /usr/lpp/X11/bin/smt.exp; then |
| 8416 | cat >> confdefs.h <<\EOF | 11357 | cat >>confdefs.h <<\EOF |
| 8417 | #define HAVE_AIX_SMT_EXP 1 | 11358 | #define HAVE_AIX_SMT_EXP 1 |
| 8418 | EOF | 11359 | EOF |
| 8419 | 11360 | ||
| 8420 | fi | 11361 | fi |
| 8421 | 11362 | ||
| 8422 | echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 11363 | echo "$as_me:11363: checking whether system supports dynamic ptys" >&5 |
| 8423 | echo "configure:8424: checking whether system supports dynamic ptys" >&5 | 11364 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
| 8424 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 11365 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
| 8425 | echo "$ac_t""yes" 1>&6 | 11366 | echo "$as_me:11366: result: yes" >&5 |
| 8426 | cat >> confdefs.h <<\EOF | 11367 | echo "${ECHO_T}yes" >&6 |
| 11368 | cat >>confdefs.h <<\EOF | ||
| 8427 | #define HAVE_DEV_PTMX 1 | 11369 | #define HAVE_DEV_PTMX 1 |
| 8428 | EOF | 11370 | EOF |
| 8429 | 11371 | ||
| 8430 | else | 11372 | else |
| 8431 | echo "$ac_t""no" 1>&6 | 11373 | echo "$as_me:11373: result: no" >&5 |
| 11374 | echo "${ECHO_T}no" >&6 | ||
| 8432 | fi | 11375 | fi |
| 8433 | 11376 | ||
| 8434 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 11377 | echo "$as_me:11377: checking for pid_t" >&5 |
| 8435 | echo "configure:8436: checking for pid_t" >&5 | 11378 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 8436 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 11379 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 8437 | echo $ac_n "(cached) $ac_c" 1>&6 | 11380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8438 | else | 11381 | else |
| 8439 | cat > conftest.$ac_ext <<EOF | 11382 | cat >conftest.$ac_ext <<_ACEOF |
| 8440 | #line 8441 "configure" | 11383 | #line 11383 "configure" |
| 8441 | #include "confdefs.h" | 11384 | #include "confdefs.h" |
| 8442 | #include <sys/types.h> | 11385 | $ac_includes_default |
| 8443 | #if STDC_HEADERS | 11386 | int |
| 8444 | #include <stdlib.h> | 11387 | main () |
| 8445 | #include <stddef.h> | 11388 | { |
| 8446 | #endif | 11389 | if ((pid_t *) 0) |
| 8447 | EOF | 11390 | return 0; |
| 8448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11391 | if (sizeof (pid_t)) |
| 8449 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 11392 | return 0; |
| 8450 | rm -rf conftest* | 11393 | ; |
| 11394 | return 0; | ||
| 11395 | } | ||
| 11396 | _ACEOF | ||
| 11397 | rm -f conftest.$ac_objext | ||
| 11398 | if { (eval echo "$as_me:11398: \"$ac_compile\"") >&5 | ||
| 11399 | (eval $ac_compile) 2>&5 | ||
| 11400 | ac_status=$? | ||
| 11401 | echo "$as_me:11401: \$? = $ac_status" >&5 | ||
| 11402 | (exit $ac_status); } && | ||
| 11403 | { ac_try='test -s conftest.$ac_objext' | ||
| 11404 | { (eval echo "$as_me:11404: \"$ac_try\"") >&5 | ||
| 11405 | (eval $ac_try) 2>&5 | ||
| 11406 | ac_status=$? | ||
| 11407 | echo "$as_me:11407: \$? = $ac_status" >&5 | ||
| 11408 | (exit $ac_status); }; }; then | ||
| 8451 | ac_cv_type_pid_t=yes | 11409 | ac_cv_type_pid_t=yes |
| 8452 | else | 11410 | else |
| 8453 | rm -rf conftest* | 11411 | echo "$as_me: failed program was:" >&5 |
| 8454 | ac_cv_type_pid_t=no | 11412 | cat conftest.$ac_ext >&5 |
| 11413 | ac_cv_type_pid_t=no | ||
| 8455 | fi | 11414 | fi |
| 8456 | rm -f conftest* | 11415 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8457 | |||
| 8458 | fi | 11416 | fi |
| 8459 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | 11417 | echo "$as_me:11417: result: $ac_cv_type_pid_t" >&5 |
| 8460 | if test $ac_cv_type_pid_t = no; then | 11418 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 8461 | cat >> confdefs.h <<\EOF | 11419 | if test $ac_cv_type_pid_t = yes; then |
| 11420 | : | ||
| 11421 | else | ||
| 11422 | |||
| 11423 | cat >>confdefs.h <<EOF | ||
| 8462 | #define pid_t int | 11424 | #define pid_t int |
| 8463 | EOF | 11425 | EOF |
| 8464 | 11426 | ||
| 8465 | fi | 11427 | fi |
| 8466 | 11428 | ||
| 8467 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 11429 | for ac_header in unistd.h vfork.h |
| 8468 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 11430 | do |
| 8469 | echo "configure:8470: checking for vfork.h" >&5 | 11431 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8470 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 11432 | echo "$as_me:11432: checking for $ac_header" >&5 |
| 8471 | echo $ac_n "(cached) $ac_c" 1>&6 | 11433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
| 11435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 11436 | else | ||
| 11437 | cat >conftest.$ac_ext <<_ACEOF | ||
| 11438 | #line 11438 "configure" | ||
| 11439 | #include "confdefs.h" | ||
| 11440 | #include <$ac_header> | ||
| 11441 | _ACEOF | ||
| 11442 | if { (eval echo "$as_me:11442: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 11443 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 11444 | ac_status=$? | ||
| 11445 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
| 11446 | rm -f conftest.er1 | ||
| 11447 | cat conftest.err >&5 | ||
| 11448 | echo "$as_me:11448: \$? = $ac_status" >&5 | ||
| 11449 | (exit $ac_status); } >/dev/null; then | ||
| 11450 | if test -s conftest.err; then | ||
| 11451 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 11452 | else | ||
| 11453 | ac_cpp_err= | ||
| 11454 | fi | ||
| 8472 | else | 11455 | else |
| 8473 | cat > conftest.$ac_ext <<EOF | 11456 | ac_cpp_err=yes |
| 8474 | #line 8475 "configure" | 11457 | fi |
| 8475 | #include "confdefs.h" | 11458 | if test -z "$ac_cpp_err"; then |
| 8476 | #include <vfork.h> | 11459 | eval "$as_ac_Header=yes" |
| 8477 | EOF | ||
| 8478 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 8479 | { (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 8480 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 8481 | if test -z "$ac_err"; then | ||
| 8482 | rm -rf conftest* | ||
| 8483 | eval "ac_cv_header_$ac_safe=yes" | ||
| 8484 | else | 11460 | else |
| 8485 | echo "$ac_err" >&5 | 11461 | echo "$as_me: failed program was:" >&5 |
| 8486 | echo "configure: failed program was:" >&5 | ||
| 8487 | cat conftest.$ac_ext >&5 | 11462 | cat conftest.$ac_ext >&5 |
| 8488 | rm -rf conftest* | 11463 | eval "$as_ac_Header=no" |
| 8489 | eval "ac_cv_header_$ac_safe=no" | ||
| 8490 | fi | 11464 | fi |
| 8491 | rm -f conftest* | 11465 | rm -f conftest.err conftest.$ac_ext |
| 8492 | fi | 11466 | fi |
| 8493 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 11467 | echo "$as_me:11467: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8494 | echo "$ac_t""yes" 1>&6 | 11468 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8495 | cat >> confdefs.h <<\EOF | 11469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8496 | #define HAVE_VFORK_H 1 | 11470 | cat >>confdefs.h <<EOF |
| 11471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 8497 | EOF | 11472 | EOF |
| 8498 | 11473 | ||
| 8499 | else | ||
| 8500 | echo "$ac_t""no" 1>&6 | ||
| 8501 | fi | 11474 | fi |
| 11475 | done | ||
| 8502 | 11476 | ||
| 8503 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 11477 | for ac_func in fork vfork |
| 8504 | echo "configure:8505: checking for working vfork" >&5 | 11478 | do |
| 8505 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 11479 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8506 | echo $ac_n "(cached) $ac_c" 1>&6 | 11480 | echo "$as_me:11480: checking for $ac_func" >&5 |
| 8507 | else | 11481 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8508 | if test "$cross_compiling" = yes; then | 11482 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8509 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 11483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8510 | echo "configure:8511: checking for vfork" >&5 | ||
| 8511 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | ||
| 8512 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 8513 | else | 11484 | else |
| 8514 | cat > conftest.$ac_ext <<EOF | 11485 | cat >conftest.$ac_ext <<_ACEOF |
| 8515 | #line 8516 "configure" | 11486 | #line 11486 "configure" |
| 8516 | #include "confdefs.h" | 11487 | #include "confdefs.h" |
| 8517 | /* System header to define __stub macros and hopefully few prototypes, | 11488 | /* System header to define __stub macros and hopefully few prototypes, |
| 8518 | which can conflict with char vfork(); below. */ | 11489 | which can conflict with char $ac_func (); below. */ |
| 8519 | #include <assert.h> | 11490 | #include <assert.h> |
| 8520 | /* Override any gcc2 internal prototype to avoid an error. */ | 11491 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11492 | #ifdef __cplusplus | ||
| 11493 | extern "C" | ||
| 11494 | #endif | ||
| 8521 | /* We use char because int might match the return type of a gcc2 | 11495 | /* We use char because int might match the return type of a gcc2 |
| 8522 | builtin and then its argument prototype would still apply. */ | 11496 | builtin and then its argument prototype would still apply. */ |
| 8523 | char vfork(); | 11497 | char $ac_func (); |
| 8524 | 11498 | char (*f) (); | |
| 8525 | int main() { | ||
| 8526 | 11499 | ||
| 11500 | int | ||
| 11501 | main () | ||
| 11502 | { | ||
| 8527 | /* The GNU C library defines this for functions which it implements | 11503 | /* The GNU C library defines this for functions which it implements |
| 8528 | to always fail with ENOSYS. Some functions are actually named | 11504 | to always fail with ENOSYS. Some functions are actually named |
| 8529 | something starting with __ and the normal name is an alias. */ | 11505 | something starting with __ and the normal name is an alias. */ |
| 8530 | #if defined (__stub_vfork) || defined (__stub___vfork) | 11506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8531 | choke me | 11507 | choke me |
| 8532 | #else | 11508 | #else |
| 8533 | vfork(); | 11509 | f = $ac_func; |
| 8534 | #endif | 11510 | #endif |
| 8535 | 11511 | ||
| 8536 | ; return 0; } | 11512 | ; |
| 11513 | return 0; | ||
| 11514 | } | ||
| 11515 | _ACEOF | ||
| 11516 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 11517 | if { (eval echo "$as_me:11517: \"$ac_link\"") >&5 | ||
| 11518 | (eval $ac_link) 2>&5 | ||
| 11519 | ac_status=$? | ||
| 11520 | echo "$as_me:11520: \$? = $ac_status" >&5 | ||
| 11521 | (exit $ac_status); } && | ||
| 11522 | { ac_try='test -s conftest$ac_exeext' | ||
| 11523 | { (eval echo "$as_me:11523: \"$ac_try\"") >&5 | ||
| 11524 | (eval $ac_try) 2>&5 | ||
| 11525 | ac_status=$? | ||
| 11526 | echo "$as_me:11526: \$? = $ac_status" >&5 | ||
| 11527 | (exit $ac_status); }; }; then | ||
| 11528 | eval "$as_ac_var=yes" | ||
| 11529 | else | ||
| 11530 | echo "$as_me: failed program was:" >&5 | ||
| 11531 | cat conftest.$ac_ext >&5 | ||
| 11532 | eval "$as_ac_var=no" | ||
| 11533 | fi | ||
| 11534 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 11535 | fi | ||
| 11536 | echo "$as_me:11536: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
| 11537 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
| 11538 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
| 11539 | cat >>confdefs.h <<EOF | ||
| 11540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
| 8537 | EOF | 11541 | EOF |
| 8538 | if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11542 | |
| 8539 | rm -rf conftest* | ||
| 8540 | eval "ac_cv_func_vfork=yes" | ||
| 8541 | else | ||
| 8542 | echo "configure: failed program was:" >&5 | ||
| 8543 | cat conftest.$ac_ext >&5 | ||
| 8544 | rm -rf conftest* | ||
| 8545 | eval "ac_cv_func_vfork=no" | ||
| 8546 | fi | ||
| 8547 | rm -f conftest* | ||
| 8548 | fi | 11543 | fi |
| 11544 | done | ||
| 8549 | 11545 | ||
| 8550 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | 11546 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 8551 | echo "$ac_t""yes" 1>&6 | 11547 | if test "x$ac_cv_func_fork" = xyes; then |
| 8552 | : | 11548 | echo "$as_me:11548: checking for working fork" >&5 |
| 11549 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | ||
| 11550 | if test "${ac_cv_func_fork_works+set}" = set; then | ||
| 11551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 8553 | else | 11552 | else |
| 8554 | echo "$ac_t""no" 1>&6 | 11553 | if test "$cross_compiling" = yes; then |
| 11554 | ac_cv_func_fork_works=cross | ||
| 11555 | else | ||
| 11556 | cat >conftest.$ac_ext <<_ACEOF | ||
| 11557 | /* By Rüdiger Kuhlmann. */ | ||
| 11558 | #include <sys/types.h> | ||
| 11559 | #if HAVE_UNISTD_H | ||
| 11560 | # include <unistd.h> | ||
| 11561 | #endif | ||
| 11562 | /* Some systems only have a dummy stub for fork() */ | ||
| 11563 | int main () | ||
| 11564 | { | ||
| 11565 | if (fork() < 0) | ||
| 11566 | exit (1); | ||
| 11567 | exit (0); | ||
| 11568 | } | ||
| 11569 | _ACEOF | ||
| 11570 | rm -f conftest$ac_exeext | ||
| 11571 | if { (eval echo "$as_me:11571: \"$ac_link\"") >&5 | ||
| 11572 | (eval $ac_link) 2>&5 | ||
| 11573 | ac_status=$? | ||
| 11574 | echo "$as_me:11574: \$? = $ac_status" >&5 | ||
| 11575 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 11576 | { (eval echo "$as_me:11576: \"$ac_try\"") >&5 | ||
| 11577 | (eval $ac_try) 2>&5 | ||
| 11578 | ac_status=$? | ||
| 11579 | echo "$as_me:11579: \$? = $ac_status" >&5 | ||
| 11580 | (exit $ac_status); }; }; then | ||
| 11581 | ac_cv_func_fork_works=yes | ||
| 11582 | else | ||
| 11583 | echo "$as_me: program exited with status $ac_status" >&5 | ||
| 11584 | echo "$as_me: failed program was:" >&5 | ||
| 11585 | cat conftest.$ac_ext >&5 | ||
| 11586 | ac_cv_func_fork_works=no | ||
| 11587 | fi | ||
| 11588 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
| 11589 | fi | ||
| 11590 | fi | ||
| 11591 | echo "$as_me:11591: result: $ac_cv_func_fork_works" >&5 | ||
| 11592 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | ||
| 11593 | |||
| 11594 | fi | ||
| 11595 | if test "x$ac_cv_func_fork_works" = xcross; then | ||
| 11596 | case $host in | ||
| 11597 | *-*-amigaos* | *-*-msdosdjgpp*) | ||
| 11598 | # Override, as these systems have only a dummy fork() stub | ||
| 11599 | ac_cv_func_fork_works=no | ||
| 11600 | ;; | ||
| 11601 | *) | ||
| 11602 | ac_cv_func_fork_works=yes | ||
| 11603 | ;; | ||
| 11604 | esac | ||
| 11605 | { echo "$as_me:11605: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 | ||
| 11606 | echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} | ||
| 8555 | fi | 11607 | fi |
| 8556 | |||
| 8557 | ac_cv_func_vfork_works=$ac_cv_func_vfork | 11608 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 11609 | if test "x$ac_cv_func_vfork" = xyes; then | ||
| 11610 | echo "$as_me:11610: checking for working vfork" >&5 | ||
| 11611 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | ||
| 11612 | if test "${ac_cv_func_vfork_works+set}" = set; then | ||
| 11613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 8558 | else | 11614 | else |
| 8559 | cat > conftest.$ac_ext <<EOF | 11615 | if test "$cross_compiling" = yes; then |
| 8560 | #line 8561 "configure" | 11616 | ac_cv_func_vfork_works=cross |
| 11617 | else | ||
| 11618 | cat >conftest.$ac_ext <<_ACEOF | ||
| 11619 | #line 11619 "configure" | ||
| 8561 | #include "confdefs.h" | 11620 | #include "confdefs.h" |
| 8562 | /* Thanks to Paul Eggert for this test. */ | 11621 | /* Thanks to Paul Eggert for this test. */ |
| 8563 | #include <stdio.h> | 11622 | #include <stdio.h> |
| 8564 | #include <sys/types.h> | 11623 | #include <sys/types.h> |
| 8565 | #include <sys/stat.h> | 11624 | #include <sys/stat.h> |
| 8566 | #ifdef HAVE_UNISTD_H | 11625 | #if HAVE_UNISTD_H |
| 8567 | #include <unistd.h> | 11626 | # include <unistd.h> |
| 8568 | #endif | 11627 | #endif |
| 8569 | #ifdef HAVE_VFORK_H | 11628 | #if HAVE_VFORK_H |
| 8570 | #include <vfork.h> | 11629 | # include <vfork.h> |
| 8571 | #endif | 11630 | #endif |
| 8572 | /* On some sparc systems, changes by the child to local and incoming | 11631 | /* On some sparc systems, changes by the child to local and incoming |
| 8573 | argument registers are propagated back to the parent. | 11632 | argument registers are propagated back to the parent. The compiler |
| 8574 | The compiler is told about this with #include <vfork.h>, | 11633 | is told about this with #include <vfork.h>, but some compilers |
| 8575 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | 11634 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 8576 | Test for this by using a static variable whose address | 11635 | static variable whose address is put into a register that is |
| 8577 | is put into a register that is clobbered by the vfork. */ | 11636 | clobbered by the vfork. */ |
| 8578 | static | 11637 | static |
| 8579 | #ifdef __cplusplus | 11638 | #ifdef __cplusplus |
| 8580 | sparc_address_test (int arg) | 11639 | sparc_address_test (int arg) |
| 8581 | #else | 11640 | # else |
| 8582 | sparc_address_test (arg) int arg; | 11641 | sparc_address_test (arg) int arg; |
| 8583 | #endif | 11642 | #endif |
| 8584 | { | 11643 | { |
| @@ -8596,7 +11655,10 @@ sparc_address_test (arg) int arg; | |||
| 8596 | } | 11655 | } |
| 8597 | } | 11656 | } |
| 8598 | } | 11657 | } |
| 8599 | main() { | 11658 | |
| 11659 | int | ||
| 11660 | main () | ||
| 11661 | { | ||
| 8600 | pid_t parent = getpid (); | 11662 | pid_t parent = getpid (); |
| 8601 | pid_t child; | 11663 | pid_t child; |
| 8602 | 11664 | ||
| @@ -8605,16 +11667,15 @@ main() { | |||
| 8605 | child = vfork (); | 11667 | child = vfork (); |
| 8606 | 11668 | ||
| 8607 | if (child == 0) { | 11669 | if (child == 0) { |
| 8608 | /* Here is another test for sparc vfork register problems. | 11670 | /* Here is another test for sparc vfork register problems. This |
| 8609 | This test uses lots of local variables, at least | 11671 | test uses lots of local variables, at least as many local |
| 8610 | as many local variables as main has allocated so far | 11672 | variables as main has allocated so far including compiler |
| 8611 | including compiler temporaries. 4 locals are enough for | 11673 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 8612 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | 11674 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 8613 | A buggy compiler should reuse the register of parent | 11675 | reuse the register of parent for one of the local variables, |
| 8614 | for one of the local variables, since it will think that | 11676 | since it will think that parent can't possibly be used any more |
| 8615 | parent can't possibly be used any more in this routine. | 11677 | in this routine. Assigning to the local variable will thus |
| 8616 | Assigning to the local variable will thus munge parent | 11678 | munge parent in the parent process. */ |
| 8617 | in the parent process. */ | ||
| 8618 | pid_t | 11679 | pid_t |
| 8619 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | 11680 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 8620 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | 11681 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| @@ -8624,11 +11685,10 @@ main() { | |||
| 8624 | || p != p5 || p != p6 || p != p7) | 11685 | || p != p5 || p != p6 || p != p7) |
| 8625 | _exit(1); | 11686 | _exit(1); |
| 8626 | 11687 | ||
| 8627 | /* On some systems (e.g. IRIX 3.3), | 11688 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 8628 | vfork doesn't separate parent from child file descriptors. | 11689 | from child file descriptors. If the child closes a descriptor |
| 8629 | If the child closes a descriptor before it execs or exits, | 11690 | before it execs or exits, this munges the parent's descriptor |
| 8630 | this munges the parent's descriptor as well. | 11691 | as well. Test for this by closing stdout in the child. */ |
| 8631 | Test for this by closing stdout in the child. */ | ||
| 8632 | _exit(close(fileno(stdout)) != 0); | 11692 | _exit(close(fileno(stdout)) != 0); |
| 8633 | } else { | 11693 | } else { |
| 8634 | int status; | 11694 | int status; |
| @@ -8651,65 +11711,112 @@ main() { | |||
| 8651 | ); | 11711 | ); |
| 8652 | } | 11712 | } |
| 8653 | } | 11713 | } |
| 8654 | EOF | 11714 | _ACEOF |
| 8655 | if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 11715 | rm -f conftest$ac_exeext |
| 8656 | then | 11716 | if { (eval echo "$as_me:11716: \"$ac_link\"") >&5 |
| 11717 | (eval $ac_link) 2>&5 | ||
| 11718 | ac_status=$? | ||
| 11719 | echo "$as_me:11719: \$? = $ac_status" >&5 | ||
| 11720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 11721 | { (eval echo "$as_me:11721: \"$ac_try\"") >&5 | ||
| 11722 | (eval $ac_try) 2>&5 | ||
| 11723 | ac_status=$? | ||
| 11724 | echo "$as_me:11724: \$? = $ac_status" >&5 | ||
| 11725 | (exit $ac_status); }; }; then | ||
| 8657 | ac_cv_func_vfork_works=yes | 11726 | ac_cv_func_vfork_works=yes |
| 8658 | else | 11727 | else |
| 8659 | echo "configure: failed program was:" >&5 | 11728 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8660 | cat conftest.$ac_ext >&5 | 11729 | echo "$as_me: failed program was:" >&5 |
| 8661 | rm -fr conftest* | 11730 | cat conftest.$ac_ext >&5 |
| 8662 | ac_cv_func_vfork_works=no | 11731 | ac_cv_func_vfork_works=no |
| 11732 | fi | ||
| 11733 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
| 8663 | fi | 11734 | fi |
| 8664 | rm -fr conftest* | ||
| 8665 | fi | 11735 | fi |
| 11736 | echo "$as_me:11736: result: $ac_cv_func_vfork_works" >&5 | ||
| 11737 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | ||
| 8666 | 11738 | ||
| 11739 | fi; | ||
| 11740 | if test "x$ac_cv_func_fork_works" = xcross; then | ||
| 11741 | ac_cv_func_vfork_works=ac_cv_func_vfork | ||
| 11742 | { echo "$as_me:11742: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 | ||
| 11743 | echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} | ||
| 8667 | fi | 11744 | fi |
| 8668 | 11745 | ||
| 8669 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | 11746 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 8670 | if test $ac_cv_func_vfork_works = no; then | 11747 | |
| 8671 | cat >> confdefs.h <<\EOF | 11748 | cat >>confdefs.h <<\EOF |
| 11749 | #define HAVE_WORKING_VFORK 1 | ||
| 11750 | EOF | ||
| 11751 | |||
| 11752 | else | ||
| 11753 | |||
| 11754 | cat >>confdefs.h <<\EOF | ||
| 8672 | #define vfork fork | 11755 | #define vfork fork |
| 8673 | EOF | 11756 | EOF |
| 8674 | 11757 | ||
| 8675 | fi | 11758 | fi |
| 11759 | if test "x$ac_cv_func_fork_works" = xyes; then | ||
| 8676 | 11760 | ||
| 11761 | cat >>confdefs.h <<\EOF | ||
| 11762 | #define HAVE_WORKING_FORK 1 | ||
| 11763 | EOF | ||
| 11764 | |||
| 11765 | fi | ||
| 8677 | 11766 | ||
| 8678 | # Fixme: This should be replaced when we have autoconf 2.14. | 11767 | # Fixme: This should be replaced when we have autoconf 2.14. |
| 8679 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 11768 | echo "$as_me:11768: checking for size_t" >&5 |
| 8680 | echo "configure:8681: checking for size_t" >&5 | 11769 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8681 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 11770 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8682 | echo $ac_n "(cached) $ac_c" 1>&6 | 11771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8683 | else | 11772 | else |
| 8684 | cat > conftest.$ac_ext <<EOF | 11773 | cat >conftest.$ac_ext <<_ACEOF |
| 8685 | #line 8686 "configure" | 11774 | #line 11774 "configure" |
| 8686 | #include "confdefs.h" | 11775 | #include "confdefs.h" |
| 8687 | #include <sys/types.h> | 11776 | $ac_includes_default |
| 8688 | #if STDC_HEADERS | 11777 | int |
| 8689 | #include <stdlib.h> | 11778 | main () |
| 8690 | #include <stddef.h> | 11779 | { |
| 8691 | #endif | 11780 | if ((size_t *) 0) |
| 8692 | EOF | 11781 | return 0; |
| 8693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11782 | if (sizeof (size_t)) |
| 8694 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 11783 | return 0; |
| 8695 | rm -rf conftest* | 11784 | ; |
| 11785 | return 0; | ||
| 11786 | } | ||
| 11787 | _ACEOF | ||
| 11788 | rm -f conftest.$ac_objext | ||
| 11789 | if { (eval echo "$as_me:11789: \"$ac_compile\"") >&5 | ||
| 11790 | (eval $ac_compile) 2>&5 | ||
| 11791 | ac_status=$? | ||
| 11792 | echo "$as_me:11792: \$? = $ac_status" >&5 | ||
| 11793 | (exit $ac_status); } && | ||
| 11794 | { ac_try='test -s conftest.$ac_objext' | ||
| 11795 | { (eval echo "$as_me:11795: \"$ac_try\"") >&5 | ||
| 11796 | (eval $ac_try) 2>&5 | ||
| 11797 | ac_status=$? | ||
| 11798 | echo "$as_me:11798: \$? = $ac_status" >&5 | ||
| 11799 | (exit $ac_status); }; }; then | ||
| 8696 | ac_cv_type_size_t=yes | 11800 | ac_cv_type_size_t=yes |
| 8697 | else | 11801 | else |
| 8698 | rm -rf conftest* | 11802 | echo "$as_me: failed program was:" >&5 |
| 8699 | ac_cv_type_size_t=no | 11803 | cat conftest.$ac_ext >&5 |
| 11804 | ac_cv_type_size_t=no | ||
| 8700 | fi | 11805 | fi |
| 8701 | rm -f conftest* | 11806 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8702 | |||
| 8703 | fi | 11807 | fi |
| 8704 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | 11808 | echo "$as_me:11808: result: $ac_cv_type_size_t" >&5 |
| 8705 | if test $ac_cv_type_size_t = no; then | 11809 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8706 | cat >> confdefs.h <<\EOF | 11810 | if test $ac_cv_type_size_t = yes; then |
| 11811 | : | ||
| 11812 | else | ||
| 11813 | |||
| 11814 | cat >>confdefs.h <<EOF | ||
| 8707 | #define size_t unsigned | 11815 | #define size_t unsigned |
| 8708 | EOF | 11816 | EOF |
| 8709 | 11817 | ||
| 8710 | fi | 11818 | fi |
| 8711 | 11819 | ||
| 8712 | |||
| 8713 | # Set up the CFLAGS for real compilation, so we can substitute it. | 11820 | # Set up the CFLAGS for real compilation, so we can substitute it. |
| 8714 | CFLAGS="$REAL_CFLAGS" | 11821 | CFLAGS="$REAL_CFLAGS" |
| 8715 | CPPFLAGS="$REAL_CPPFLAGS" | 11822 | CPPFLAGS="$REAL_CPPFLAGS" |
| @@ -8718,113 +11825,84 @@ CPPFLAGS="$REAL_CPPFLAGS" | |||
| 8718 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | 11825 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
| 8719 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 11826 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
| 8720 | if test x"${version}" = x; then | 11827 | if test x"${version}" = x; then |
| 8721 | { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | 11828 | { { echo "$as_me:11828: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
| 11829 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | ||
| 11830 | { (exit 1); exit 1; }; } | ||
| 8722 | fi | 11831 | fi |
| 8723 | 11832 | ||
| 8724 | ### Specify what sort of things we'll be editing into Makefile and config.h. | 11833 | ### Specify what sort of things we'll be editing into Makefile and config.h. |
| 8725 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | 11834 | ### Use configuration here uncanonicalized to avoid exceeding size limits. |
| 8726 | 11835 | ||
| 8727 | 11836 | cat >>confdefs.h <<EOF | |
| 8728 | |||
| 8729 | |||
| 8730 | |||
| 8731 | |||
| 8732 | |||
| 8733 | |||
| 8734 | |||
| 8735 | |||
| 8736 | |||
| 8737 | |||
| 8738 | |||
| 8739 | |||
| 8740 | |||
| 8741 | |||
| 8742 | |||
| 8743 | |||
| 8744 | |||
| 8745 | |||
| 8746 | |||
| 8747 | |||
| 8748 | |||
| 8749 | |||
| 8750 | |||
| 8751 | |||
| 8752 | |||
| 8753 | |||
| 8754 | |||
| 8755 | |||
| 8756 | |||
| 8757 | cat >> confdefs.h <<EOF | ||
| 8758 | #define EMACS_CONFIGURATION "${canonical}" | 11837 | #define EMACS_CONFIGURATION "${canonical}" |
| 8759 | EOF | 11838 | EOF |
| 8760 | 11839 | ||
| 8761 | cat >> confdefs.h <<EOF | 11840 | cat >>confdefs.h <<EOF |
| 8762 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | 11841 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
| 8763 | EOF | 11842 | EOF |
| 8764 | 11843 | ||
| 8765 | cat >> confdefs.h <<EOF | 11844 | cat >>confdefs.h <<EOF |
| 8766 | #define config_machfile "${machfile}" | 11845 | #define config_machfile "${machfile}" |
| 8767 | EOF | 11846 | EOF |
| 8768 | 11847 | ||
| 8769 | cat >> confdefs.h <<EOF | 11848 | cat >>confdefs.h <<EOF |
| 8770 | #define config_opsysfile "${opsysfile}" | 11849 | #define config_opsysfile "${opsysfile}" |
| 8771 | EOF | 11850 | EOF |
| 8772 | 11851 | ||
| 8773 | cat >> confdefs.h <<EOF | 11852 | cat >>confdefs.h <<EOF |
| 8774 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | 11853 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
| 8775 | EOF | 11854 | EOF |
| 8776 | 11855 | ||
| 8777 | cat >> confdefs.h <<EOF | 11856 | cat >>confdefs.h <<EOF |
| 8778 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | 11857 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
| 8779 | EOF | 11858 | EOF |
| 8780 | 11859 | ||
| 8781 | cat >> confdefs.h <<EOF | 11860 | cat >>confdefs.h <<EOF |
| 8782 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | 11861 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
| 8783 | EOF | 11862 | EOF |
| 8784 | 11863 | ||
| 8785 | cat >> confdefs.h <<EOF | 11864 | cat >>confdefs.h <<EOF |
| 8786 | #define UNEXEC_SRC ${UNEXEC_SRC} | 11865 | #define UNEXEC_SRC ${UNEXEC_SRC} |
| 8787 | EOF | 11866 | EOF |
| 8788 | 11867 | ||
| 8789 | |||
| 8790 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | 11868 | if test "${HAVE_X_WINDOWS}" = "yes" ; then |
| 8791 | cat >> confdefs.h <<\EOF | 11869 | cat >>confdefs.h <<\EOF |
| 8792 | #define HAVE_X_WINDOWS 1 | 11870 | #define HAVE_X_WINDOWS 1 |
| 8793 | EOF | 11871 | EOF |
| 8794 | 11872 | ||
| 8795 | fi | 11873 | fi |
| 8796 | if test "${USE_X_TOOLKIT}" != "none" ; then | 11874 | if test "${USE_X_TOOLKIT}" != "none" ; then |
| 8797 | cat >> confdefs.h <<\EOF | 11875 | cat >>confdefs.h <<\EOF |
| 8798 | #define USE_X_TOOLKIT 1 | 11876 | #define USE_X_TOOLKIT 1 |
| 8799 | EOF | 11877 | EOF |
| 8800 | 11878 | ||
| 8801 | fi | 11879 | fi |
| 8802 | if test "${HAVE_X11}" = "yes" ; then | 11880 | if test "${HAVE_X11}" = "yes" ; then |
| 8803 | cat >> confdefs.h <<\EOF | 11881 | cat >>confdefs.h <<\EOF |
| 8804 | #define HAVE_X11 1 | 11882 | #define HAVE_X11 1 |
| 8805 | EOF | 11883 | EOF |
| 8806 | 11884 | ||
| 8807 | fi | 11885 | fi |
| 8808 | if test "${HAVE_XFREE386}" = "yes" ; then | 11886 | if test "${HAVE_XFREE386}" = "yes" ; then |
| 8809 | cat >> confdefs.h <<\EOF | 11887 | cat >>confdefs.h <<\EOF |
| 8810 | #define HAVE_XFREE386 1 | 11888 | #define HAVE_XFREE386 1 |
| 8811 | EOF | 11889 | EOF |
| 8812 | 11890 | ||
| 8813 | fi | 11891 | fi |
| 8814 | if test "${HAVE_MENUS}" = "yes" ; then | 11892 | if test "${HAVE_MENUS}" = "yes" ; then |
| 8815 | cat >> confdefs.h <<\EOF | 11893 | cat >>confdefs.h <<\EOF |
| 8816 | #define HAVE_MENUS 1 | 11894 | #define HAVE_MENUS 1 |
| 8817 | EOF | 11895 | EOF |
| 8818 | 11896 | ||
| 8819 | fi | 11897 | fi |
| 8820 | if test "${GNU_MALLOC}" = "yes" ; then | 11898 | if test "${GNU_MALLOC}" = "yes" ; then |
| 8821 | cat >> confdefs.h <<\EOF | 11899 | cat >>confdefs.h <<\EOF |
| 8822 | #define GNU_MALLOC 1 | 11900 | #define GNU_MALLOC 1 |
| 8823 | EOF | 11901 | EOF |
| 8824 | 11902 | ||
| 8825 | fi | 11903 | fi |
| 8826 | if test "${REL_ALLOC}" = "yes" ; then | 11904 | if test "${REL_ALLOC}" = "yes" ; then |
| 8827 | cat >> confdefs.h <<\EOF | 11905 | cat >>confdefs.h <<\EOF |
| 8828 | #define REL_ALLOC 1 | 11906 | #define REL_ALLOC 1 |
| 8829 | EOF | 11907 | EOF |
| 8830 | 11908 | ||
| @@ -8875,413 +11953,881 @@ test "${exec_prefix}" != NONE && | |||
| 8875 | ## from Makefile.c can correctly provide the arg `-traditional' to the | 11953 | ## from Makefile.c can correctly provide the arg `-traditional' to the |
| 8876 | ## C preprocessor. | 11954 | ## C preprocessor. |
| 8877 | 11955 | ||
| 8878 | cat > conftest.$ac_ext <<EOF | 11956 | cat >conftest.$ac_ext <<_ACEOF |
| 8879 | #line 8880 "configure" | 11957 | #line 11957 "configure" |
| 8880 | #include "confdefs.h" | 11958 | #include "confdefs.h" |
| 8881 | yes..yes | 11959 | yes..yes |
| 8882 | EOF | 11960 | _ACEOF |
| 8883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11961 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8884 | egrep "yes..yes" >/dev/null 2>&1; then | 11962 | egrep "yes..yes" >/dev/null 2>&1; then |
| 8885 | rm -rf conftest* | ||
| 8886 | CPP_NEED_TRADITIONAL=no | 11963 | CPP_NEED_TRADITIONAL=no |
| 8887 | else | 11964 | else |
| 8888 | rm -rf conftest* | ||
| 8889 | CPP_NEED_TRADITIONAL=yes | 11965 | CPP_NEED_TRADITIONAL=yes |
| 8890 | fi | 11966 | fi |
| 8891 | rm -f conftest* | 11967 | rm -f conftest* |
| 8892 | 11968 | ||
| 8893 | 11969 | ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile leim/Makefile" | |
| 8894 | trap '' 1 2 15 | 11970 | ac_config_commands="$ac_config_commands default" |
| 8895 | cat > confcache <<\EOF | 11971 | cat >confcache <<\_ACEOF |
| 8896 | # This file is a shell script that caches the results of configure | 11972 | # This file is a shell script that caches the results of configure |
| 8897 | # tests run on this system so they can be shared between configure | 11973 | # tests run on this system so they can be shared between configure |
| 8898 | # scripts and configure runs. It is not useful on other systems. | 11974 | # scripts and configure runs, see configure's option --config-cache. |
| 8899 | # If it contains results you don't want to keep, you may remove or edit it. | 11975 | # It is not useful on other systems. If it contains results you don't |
| 11976 | # want to keep, you may remove or edit it. | ||
| 8900 | # | 11977 | # |
| 8901 | # By default, configure uses ./config.cache as the cache file, | 11978 | # config.status only pays attention to the cache file if you give it |
| 8902 | # creating it if it does not exist already. You can give configure | 11979 | # the --recheck option to rerun configure. |
| 8903 | # the --cache-file=FILE option to use a different cache file; that is | ||
| 8904 | # what configure does when it calls configure scripts in | ||
| 8905 | # subdirectories, so they share the cache. | ||
| 8906 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | ||
| 8907 | # config.status only pays attention to the cache file if you give it the | ||
| 8908 | # --recheck option to rerun configure. | ||
| 8909 | # | 11980 | # |
| 8910 | EOF | 11981 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 11982 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
| 11983 | # following values. | ||
| 11984 | |||
| 11985 | _ACEOF | ||
| 11986 | |||
| 8911 | # The following way of writing the cache mishandles newlines in values, | 11987 | # The following way of writing the cache mishandles newlines in values, |
| 8912 | # but we know of no workaround that is simple, portable, and efficient. | 11988 | # but we know of no workaround that is simple, portable, and efficient. |
| 8913 | # So, don't put newlines in cache variables' values. | 11989 | # So, don't put newlines in cache variables' values. |
| 8914 | # Ultrix sh set writes to stderr and can't be redirected directly, | 11990 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 8915 | # and sets the high bit in the cache file unless we assign to the vars. | 11991 | # and sets the high bit in the cache file unless we assign to the vars. |
| 8916 | (set) 2>&1 | | 11992 | { |
| 8917 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 11993 | (set) 2>&1 | |
| 8918 | *ac_space=\ *) | 11994 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 8919 | # `set' does not quote correctly, so add quotes (double-quote substitution | 11995 | *ac_space=\ *) |
| 8920 | # turns \\\\ into \\, and sed turns \\ into \). | 11996 | # `set' does not quote correctly, so add quotes (double-quote |
| 8921 | sed -n \ | 11997 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 8922 | -e "s/'/'\\\\''/g" \ | 11998 | sed -n \ |
| 8923 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 11999 | "s/'/'\\\\''/g; |
| 8924 | ;; | 12000 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 8925 | *) | 12001 | ;; |
| 8926 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 12002 | *) |
| 8927 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 12003 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 8928 | ;; | 12004 | sed -n \ |
| 8929 | esac >> confcache | 12005 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 8930 | if cmp -s $cache_file confcache; then | 12006 | ;; |
| 8931 | : | 12007 | esac; |
| 8932 | else | 12008 | } | |
| 12009 | sed ' | ||
| 12010 | t clear | ||
| 12011 | : clear | ||
| 12012 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
| 12013 | t end | ||
| 12014 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
| 12015 | : end' >>confcache | ||
| 12016 | if cmp -s $cache_file confcache; then :; else | ||
| 8933 | if test -w $cache_file; then | 12017 | if test -w $cache_file; then |
| 8934 | echo "updating cache $cache_file" | 12018 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 8935 | cat confcache > $cache_file | 12019 | cat confcache >$cache_file |
| 8936 | else | 12020 | else |
| 8937 | echo "not updating unwritable cache $cache_file" | 12021 | echo "not updating unwritable cache $cache_file" |
| 8938 | fi | 12022 | fi |
| 8939 | fi | 12023 | fi |
| 8940 | rm -f confcache | 12024 | rm -f confcache |
| 8941 | 12025 | ||
| 8942 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
| 8943 | |||
| 8944 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 12026 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8945 | # Let make expand exec_prefix. | 12027 | # Let make expand exec_prefix. |
| 8946 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 12028 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8947 | 12029 | ||
| 8948 | # Any assignment to VPATH causes Sun make to only execute | 12030 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 8949 | # the first set of double-colon rules, so remove it if not needed. | 12031 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 8950 | # If there is a colon in the path, we need to keep it. | 12032 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12033 | # (actually we leave an empty line to preserve line numbers). | ||
| 8951 | if test "x$srcdir" = x.; then | 12034 | if test "x$srcdir" = x.; then |
| 8952 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | 12035 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12036 | s/:*\$(srcdir):*/:/; | ||
| 12037 | s/:*\${srcdir}:*/:/; | ||
| 12038 | s/:*@srcdir@:*/:/; | ||
| 12039 | s/^\([^=]*=[ ]*\):*/\1/; | ||
| 12040 | s/:*$//; | ||
| 12041 | s/^[^=]*=[ ]*$//; | ||
| 12042 | }' | ||
| 8953 | fi | 12043 | fi |
| 8954 | 12044 | ||
| 8955 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | ||
| 8956 | |||
| 8957 | DEFS=-DHAVE_CONFIG_H | 12045 | DEFS=-DHAVE_CONFIG_H |
| 8958 | 12046 | ||
| 8959 | # Without the "./", some shells look in PATH for config.status. | ||
| 8960 | : ${CONFIG_STATUS=./config.status} | 12047 | : ${CONFIG_STATUS=./config.status} |
| 8961 | 12048 | ac_clean_files_save=$ac_clean_files | |
| 8962 | echo creating $CONFIG_STATUS | 12049 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 8963 | rm -f $CONFIG_STATUS | 12050 | { echo "$as_me:12050: creating $CONFIG_STATUS" >&5 |
| 8964 | cat > $CONFIG_STATUS <<EOF | 12051 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 8965 | #! /bin/sh | 12052 | cat >$CONFIG_STATUS <<_ACEOF |
| 12053 | #! $SHELL | ||
| 8966 | # Generated automatically by configure. | 12054 | # Generated automatically by configure. |
| 8967 | # Run this file to recreate the current configuration. | 12055 | # Run this file to recreate the current configuration. |
| 8968 | # This directory was configured as follows, | ||
| 8969 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
| 8970 | # | ||
| 8971 | # $0 $ac_configure_args | ||
| 8972 | # | ||
| 8973 | # Compiler output produced by configure, useful for debugging | 12056 | # Compiler output produced by configure, useful for debugging |
| 8974 | # configure, is in ./config.log if it exists. | 12057 | # configure, is in config.log if it exists. |
| 8975 | 12058 | ||
| 8976 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 12059 | debug=false |
| 8977 | for ac_option | 12060 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 12061 | ac_cs_invocation="\$0 \$@" | ||
| 12062 | |||
| 12063 | _ACEOF | ||
| 12064 | |||
| 12065 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 12066 | # Be Bourne compatible | ||
| 12067 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
| 12068 | emulate sh | ||
| 12069 | NULLCMD=: | ||
| 12070 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
| 12071 | set -o posix | ||
| 12072 | fi | ||
| 12073 | |||
| 12074 | # Name of the executable. | ||
| 12075 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
| 12076 | |||
| 12077 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
| 12078 | as_expr=expr | ||
| 12079 | else | ||
| 12080 | as_expr=false | ||
| 12081 | fi | ||
| 12082 | |||
| 12083 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 12084 | echo >conf$$.file | ||
| 12085 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
| 12086 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
| 12087 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
| 12088 | if test -f conf$$.exe; then | ||
| 12089 | # Don't use ln at all; we don't have any links | ||
| 12090 | as_ln_s='cp -p' | ||
| 12091 | else | ||
| 12092 | as_ln_s='ln -s' | ||
| 12093 | fi | ||
| 12094 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
| 12095 | as_ln_s=ln | ||
| 12096 | else | ||
| 12097 | as_ln_s='cp -p' | ||
| 12098 | fi | ||
| 12099 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 12100 | |||
| 12101 | as_executable_p="test -f" | ||
| 12102 | |||
| 12103 | # Support unset when possible. | ||
| 12104 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
| 12105 | as_unset=unset | ||
| 12106 | else | ||
| 12107 | as_unset=false | ||
| 12108 | fi | ||
| 12109 | |||
| 12110 | # NLS nuisances. | ||
| 12111 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
| 12112 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
| 12113 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
| 12114 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
| 12115 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
| 12116 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
| 12117 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
| 12118 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
| 12119 | |||
| 12120 | # IFS | ||
| 12121 | # We need space, tab and new line, in precisely that order. | ||
| 12122 | as_nl=' | ||
| 12123 | ' | ||
| 12124 | IFS=" $as_nl" | ||
| 12125 | |||
| 12126 | # CDPATH. | ||
| 12127 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
| 12128 | |||
| 12129 | exec 6>&1 | ||
| 12130 | |||
| 12131 | _ACEOF | ||
| 12132 | |||
| 12133 | # Files that config.status was made for. | ||
| 12134 | if test -n "$ac_config_files"; then | ||
| 12135 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
| 12136 | fi | ||
| 12137 | |||
| 12138 | if test -n "$ac_config_headers"; then | ||
| 12139 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
| 12140 | fi | ||
| 12141 | |||
| 12142 | if test -n "$ac_config_links"; then | ||
| 12143 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
| 12144 | fi | ||
| 12145 | |||
| 12146 | if test -n "$ac_config_commands"; then | ||
| 12147 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
| 12148 | fi | ||
| 12149 | |||
| 12150 | cat >>$CONFIG_STATUS <<\EOF | ||
| 12151 | |||
| 12152 | ac_cs_usage="\ | ||
| 12153 | \`$as_me' instantiates files from templates according to the | ||
| 12154 | current configuration. | ||
| 12155 | |||
| 12156 | Usage: $0 [OPTIONS] [FILE]... | ||
| 12157 | |||
| 12158 | -h, --help print this help, then exit | ||
| 12159 | -V, --version print version number, then exit | ||
| 12160 | -d, --debug don't remove temporary files | ||
| 12161 | --recheck update $as_me by reconfiguring in the same conditions | ||
| 12162 | --file=FILE[:TEMPLATE] | ||
| 12163 | instantiate the configuration file FILE | ||
| 12164 | --header=FILE[:TEMPLATE] | ||
| 12165 | instantiate the configuration header FILE | ||
| 12166 | |||
| 12167 | Configuration files: | ||
| 12168 | $config_files | ||
| 12169 | |||
| 12170 | Configuration headers: | ||
| 12171 | $config_headers | ||
| 12172 | |||
| 12173 | Configuration commands: | ||
| 12174 | $config_commands | ||
| 12175 | |||
| 12176 | Report bugs to <bug-autoconf@gnu.org>." | ||
| 12177 | EOF | ||
| 12178 | |||
| 12179 | cat >>$CONFIG_STATUS <<EOF | ||
| 12180 | ac_cs_version="\\ | ||
| 12181 | config.status | ||
| 12182 | configured by $0, generated by GNU Autoconf 2.52, | ||
| 12183 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
| 12184 | |||
| 12185 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
| 12186 | Free Software Foundation, Inc. | ||
| 12187 | This config.status script is free software; the Free Software Foundation | ||
| 12188 | gives unlimited permission to copy, distribute and modify it." | ||
| 12189 | srcdir=$srcdir | ||
| 12190 | INSTALL="$INSTALL" | ||
| 12191 | EOF | ||
| 12192 | |||
| 12193 | cat >>$CONFIG_STATUS <<\EOF | ||
| 12194 | # If no file are specified by the user, then we need to provide default | ||
| 12195 | # value. By we need to know if files were specified by the user. | ||
| 12196 | ac_need_defaults=: | ||
| 12197 | while test $# != 0 | ||
| 8978 | do | 12198 | do |
| 8979 | case "\$ac_option" in | 12199 | case $1 in |
| 12200 | --*=*) | ||
| 12201 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
| 12202 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
| 12203 | shift | ||
| 12204 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
| 12205 | shift | ||
| 12206 | ;; | ||
| 12207 | -*);; | ||
| 12208 | *) # This is not an option, so the user has probably given explicit | ||
| 12209 | # arguments. | ||
| 12210 | ac_need_defaults=false;; | ||
| 12211 | esac | ||
| 12212 | |||
| 12213 | case $1 in | ||
| 12214 | # Handling of the options. | ||
| 12215 | EOF | ||
| 12216 | cat >>$CONFIG_STATUS <<EOF | ||
| 8980 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 12217 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 8981 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 12218 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 8982 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 12219 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 8983 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 12220 | EOF |
| 8984 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | 12221 | cat >>$CONFIG_STATUS <<\EOF |
| 8985 | exit 0 ;; | 12222 | --version | --vers* | -V ) |
| 8986 | -help | --help | --hel | --he | --h) | 12223 | echo "$ac_cs_version"; exit 0 ;; |
| 8987 | echo "\$ac_cs_usage"; exit 0 ;; | 12224 | --he | --h) |
| 8988 | *) echo "\$ac_cs_usage"; exit 1 ;; | 12225 | # Conflict between --help and --header |
| 12226 | { { echo "$as_me:12226: error: ambiguous option: $1 | ||
| 12227 | Try \`$0 --help' for more information." >&5 | ||
| 12228 | echo "$as_me: error: ambiguous option: $1 | ||
| 12229 | Try \`$0 --help' for more information." >&2;} | ||
| 12230 | { (exit 1); exit 1; }; };; | ||
| 12231 | --help | --hel | -h ) | ||
| 12232 | echo "$ac_cs_usage"; exit 0 ;; | ||
| 12233 | --debug | --d* | -d ) | ||
| 12234 | debug=: ;; | ||
| 12235 | --file | --fil | --fi | --f ) | ||
| 12236 | shift | ||
| 12237 | CONFIG_FILES="$CONFIG_FILES $1" | ||
| 12238 | ac_need_defaults=false;; | ||
| 12239 | --header | --heade | --head | --hea ) | ||
| 12240 | shift | ||
| 12241 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
| 12242 | ac_need_defaults=false;; | ||
| 12243 | |||
| 12244 | # This is an error. | ||
| 12245 | -*) { { echo "$as_me:12245: error: unrecognized option: $1 | ||
| 12246 | Try \`$0 --help' for more information." >&5 | ||
| 12247 | echo "$as_me: error: unrecognized option: $1 | ||
| 12248 | Try \`$0 --help' for more information." >&2;} | ||
| 12249 | { (exit 1); exit 1; }; } ;; | ||
| 12250 | |||
| 12251 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
| 12252 | |||
| 8989 | esac | 12253 | esac |
| 12254 | shift | ||
| 8990 | done | 12255 | done |
| 8991 | 12256 | ||
| 8992 | ac_given_srcdir=$srcdir | 12257 | exec 5>>config.log |
| 8993 | ac_given_INSTALL="$INSTALL" | 12258 | cat >&5 << _ACEOF |
| 8994 | 12259 | ||
| 8995 | trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | 12260 | ## ----------------------- ## |
| 8996 | man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | 12261 | ## Running config.status. ## |
| 8997 | lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 12262 | ## ----------------------- ## |
| 8998 | EOF | ||
| 8999 | cat >> $CONFIG_STATUS <<EOF | ||
| 9000 | 12263 | ||
| 9001 | # Protect against being on the right side of a sed subst in config.status. | 12264 | This file was extended by $as_me 2.52, executed with |
| 9002 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 12265 | CONFIG_FILES = $CONFIG_FILES |
| 9003 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 12266 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9004 | $ac_vpsub | 12267 | CONFIG_LINKS = $CONFIG_LINKS |
| 9005 | $extrasub | 12268 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9006 | s%@SHELL@%$SHELL%g | 12269 | > $ac_cs_invocation |
| 9007 | s%@CFLAGS@%$CFLAGS%g | 12270 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 9008 | s%@CPPFLAGS@%$CPPFLAGS%g | ||
| 9009 | s%@CXXFLAGS@%$CXXFLAGS%g | ||
| 9010 | s%@FFLAGS@%$FFLAGS%g | ||
| 9011 | s%@DEFS@%$DEFS%g | ||
| 9012 | s%@LDFLAGS@%$LDFLAGS%g | ||
| 9013 | s%@LIBS@%$LIBS%g | ||
| 9014 | s%@exec_prefix@%$exec_prefix%g | ||
| 9015 | s%@prefix@%$prefix%g | ||
| 9016 | s%@program_transform_name@%$program_transform_name%g | ||
| 9017 | s%@bindir@%$bindir%g | ||
| 9018 | s%@sbindir@%$sbindir%g | ||
| 9019 | s%@libexecdir@%$libexecdir%g | ||
| 9020 | s%@datadir@%$datadir%g | ||
| 9021 | s%@sysconfdir@%$sysconfdir%g | ||
| 9022 | s%@sharedstatedir@%$sharedstatedir%g | ||
| 9023 | s%@localstatedir@%$localstatedir%g | ||
| 9024 | s%@libdir@%$libdir%g | ||
| 9025 | s%@includedir@%$includedir%g | ||
| 9026 | s%@oldincludedir@%$oldincludedir%g | ||
| 9027 | s%@infodir@%$infodir%g | ||
| 9028 | s%@mandir@%$mandir%g | ||
| 9029 | s%@host@%$host%g | ||
| 9030 | s%@host_alias@%$host_alias%g | ||
| 9031 | s%@host_cpu@%$host_cpu%g | ||
| 9032 | s%@host_vendor@%$host_vendor%g | ||
| 9033 | s%@host_os@%$host_os%g | ||
| 9034 | s%@CC@%$CC%g | ||
| 9035 | s%@LN_S@%$LN_S%g | ||
| 9036 | s%@CPP@%$CPP%g | ||
| 9037 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | ||
| 9038 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | ||
| 9039 | s%@INSTALL_DATA@%$INSTALL_DATA%g | ||
| 9040 | s%@YACC@%$YACC%g | ||
| 9041 | s%@RANLIB@%$RANLIB%g | ||
| 9042 | s%@LIBSOUND@%$LIBSOUND%g | ||
| 9043 | s%@SET_MAKE@%$SET_MAKE%g | ||
| 9044 | s%@ALLOCA@%$ALLOCA%g | ||
| 9045 | s%@liblockfile@%$liblockfile%g | ||
| 9046 | s%@LIBOBJS@%$LIBOBJS%g | ||
| 9047 | s%@NEED_SETGID@%$NEED_SETGID%g | ||
| 9048 | s%@KMEM_GROUP@%$KMEM_GROUP%g | ||
| 9049 | s%@version@%$version%g | ||
| 9050 | s%@configuration@%$configuration%g | ||
| 9051 | s%@canonical@%$canonical%g | ||
| 9052 | s%@srcdir@%$srcdir%g | ||
| 9053 | s%@lispdir@%$lispdir%g | ||
| 9054 | s%@locallisppath@%$locallisppath%g | ||
| 9055 | s%@lisppath@%$lisppath%g | ||
| 9056 | s%@x_default_search_path@%$x_default_search_path%g | ||
| 9057 | s%@etcdir@%$etcdir%g | ||
| 9058 | s%@archlibdir@%$archlibdir%g | ||
| 9059 | s%@docdir@%$docdir%g | ||
| 9060 | s%@bitmapdir@%$bitmapdir%g | ||
| 9061 | s%@c_switch_system@%$c_switch_system%g | ||
| 9062 | s%@c_switch_machine@%$c_switch_machine%g | ||
| 9063 | s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | ||
| 9064 | s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | ||
| 9065 | s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | ||
| 9066 | s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | ||
| 9067 | s%@machfile@%$machfile%g | ||
| 9068 | s%@opsysfile@%$opsysfile%g | ||
| 9069 | s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g | ||
| 9070 | 12271 | ||
| 9071 | CEOF | 12272 | _ACEOF |
| 9072 | EOF | 12273 | EOF |
| 9073 | 12274 | ||
| 9074 | cat >> $CONFIG_STATUS <<\EOF | 12275 | cat >>$CONFIG_STATUS <<EOF |
| 12276 | # | ||
| 12277 | # INIT-COMMANDS section. | ||
| 12278 | # | ||
| 9075 | 12279 | ||
| 9076 | # Split the substitutions into bite-sized pieces for seds with | 12280 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
| 9077 | # small command number limits, like on Digital OSF/1 and HP-UX. | 12281 | |
| 9078 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 12282 | EOF |
| 9079 | ac_file=1 # Number of current file. | 12283 | |
| 9080 | ac_beg=1 # First line for current file. | 12284 | cat >>$CONFIG_STATUS <<\EOF |
| 9081 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 12285 | for ac_config_target in $ac_config_targets |
| 9082 | ac_more_lines=: | 12286 | do |
| 9083 | ac_sed_cmds="" | 12287 | case "$ac_config_target" in |
| 9084 | while $ac_more_lines; do | 12288 | # Handling of arguments. |
| 9085 | if test $ac_beg -gt 1; then | 12289 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9086 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 12290 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; |
| 9087 | else | 12291 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; |
| 9088 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 12292 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
| 9089 | fi | 12293 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
| 9090 | if test ! -s conftest.s$ac_file; then | 12294 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; |
| 9091 | ac_more_lines=false | 12295 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
| 9092 | rm -f conftest.s$ac_file | 12296 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
| 9093 | else | 12297 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 9094 | if test -z "$ac_sed_cmds"; then | 12298 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; |
| 9095 | ac_sed_cmds="sed -f conftest.s$ac_file" | 12299 | *) { { echo "$as_me:12299: error: invalid argument: $ac_config_target" >&5 |
| 9096 | else | 12300 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9097 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 12301 | { (exit 1); exit 1; }; };; |
| 9098 | fi | 12302 | esac |
| 9099 | ac_file=`expr $ac_file + 1` | ||
| 9100 | ac_beg=$ac_end | ||
| 9101 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | ||
| 9102 | fi | ||
| 9103 | done | 12303 | done |
| 9104 | if test -z "$ac_sed_cmds"; then | 12304 | |
| 9105 | ac_sed_cmds=cat | 12305 | # If the user did not use the arguments to specify the items to instantiate, |
| 12306 | # then the envvar interface is used. Set only those that are not. | ||
| 12307 | # We use the long form for the default assignment because of an extremely | ||
| 12308 | # bizarre bug on SunOS 4.1.3. | ||
| 12309 | if $ac_need_defaults; then | ||
| 12310 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
| 12311 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
| 12312 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
| 9106 | fi | 12313 | fi |
| 12314 | |||
| 12315 | # Create a temporary directory, and hook for its removal unless debugging. | ||
| 12316 | $debug || | ||
| 12317 | { | ||
| 12318 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
| 12319 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
| 12320 | } | ||
| 12321 | |||
| 12322 | # Create a (secure) tmp directory for tmp files. | ||
| 12323 | : ${TMPDIR=/tmp} | ||
| 12324 | { | ||
| 12325 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
| 12326 | test -n "$tmp" && test -d "$tmp" | ||
| 12327 | } || | ||
| 12328 | { | ||
| 12329 | tmp=$TMPDIR/cs$$-$RANDOM | ||
| 12330 | (umask 077 && mkdir $tmp) | ||
| 12331 | } || | ||
| 12332 | { | ||
| 12333 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
| 12334 | { (exit 1); exit 1; } | ||
| 12335 | } | ||
| 12336 | |||
| 9107 | EOF | 12337 | EOF |
| 9108 | 12338 | ||
| 9109 | cat >> $CONFIG_STATUS <<EOF | 12339 | cat >>$CONFIG_STATUS <<EOF |
| 12340 | |||
| 12341 | # | ||
| 12342 | # CONFIG_FILES section. | ||
| 12343 | # | ||
| 12344 | |||
| 12345 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
| 12346 | # This happens for instance when ./config.status config.h | ||
| 12347 | if test -n "\$CONFIG_FILES"; then | ||
| 12348 | # Protect against being on the right side of a sed subst in config.status. | ||
| 12349 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
| 12350 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
| 12351 | s,@SHELL@,$SHELL,;t t | ||
| 12352 | s,@exec_prefix@,$exec_prefix,;t t | ||
| 12353 | s,@prefix@,$prefix,;t t | ||
| 12354 | s,@program_transform_name@,$program_transform_name,;t t | ||
| 12355 | s,@bindir@,$bindir,;t t | ||
| 12356 | s,@sbindir@,$sbindir,;t t | ||
| 12357 | s,@libexecdir@,$libexecdir,;t t | ||
| 12358 | s,@datadir@,$datadir,;t t | ||
| 12359 | s,@sysconfdir@,$sysconfdir,;t t | ||
| 12360 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
| 12361 | s,@localstatedir@,$localstatedir,;t t | ||
| 12362 | s,@libdir@,$libdir,;t t | ||
| 12363 | s,@includedir@,$includedir,;t t | ||
| 12364 | s,@oldincludedir@,$oldincludedir,;t t | ||
| 12365 | s,@infodir@,$infodir,;t t | ||
| 12366 | s,@mandir@,$mandir,;t t | ||
| 12367 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
| 12368 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
| 12369 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
| 12370 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
| 12371 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
| 12372 | s,@build_alias@,$build_alias,;t t | ||
| 12373 | s,@host_alias@,$host_alias,;t t | ||
| 12374 | s,@target_alias@,$target_alias,;t t | ||
| 12375 | s,@ECHO_C@,$ECHO_C,;t t | ||
| 12376 | s,@ECHO_N@,$ECHO_N,;t t | ||
| 12377 | s,@ECHO_T@,$ECHO_T,;t t | ||
| 12378 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
| 12379 | s,@DEFS@,$DEFS,;t t | ||
| 12380 | s,@LIBS@,$LIBS,;t t | ||
| 12381 | s,@build@,$build,;t t | ||
| 12382 | s,@build_cpu@,$build_cpu,;t t | ||
| 12383 | s,@build_vendor@,$build_vendor,;t t | ||
| 12384 | s,@build_os@,$build_os,;t t | ||
| 12385 | s,@host@,$host,;t t | ||
| 12386 | s,@host_cpu@,$host_cpu,;t t | ||
| 12387 | s,@host_vendor@,$host_vendor,;t t | ||
| 12388 | s,@host_os@,$host_os,;t t | ||
| 12389 | s,@CC@,$CC,;t t | ||
| 12390 | s,@CFLAGS@,$CFLAGS,;t t | ||
| 12391 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
| 12392 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
| 12393 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
| 12394 | s,@EXEEXT@,$EXEEXT,;t t | ||
| 12395 | s,@OBJEXT@,$OBJEXT,;t t | ||
| 12396 | s,@LN_S@,$LN_S,;t t | ||
| 12397 | s,@CPP@,$CPP,;t t | ||
| 12398 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
| 12399 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
| 12400 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
| 12401 | s,@YACC@,$YACC,;t t | ||
| 12402 | s,@RANLIB@,$RANLIB,;t t | ||
| 12403 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
| 12404 | s,@LIBSOUND@,$LIBSOUND,;t t | ||
| 12405 | s,@SET_MAKE@,$SET_MAKE,;t t | ||
| 12406 | s,@ALLOCA@,$ALLOCA,;t t | ||
| 12407 | s,@liblockfile@,$liblockfile,;t t | ||
| 12408 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
| 12409 | s,@NEED_SETGID@,$NEED_SETGID,;t t | ||
| 12410 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t | ||
| 12411 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | ||
| 12412 | s,@version@,$version,;t t | ||
| 12413 | s,@configuration@,$configuration,;t t | ||
| 12414 | s,@canonical@,$canonical,;t t | ||
| 12415 | s,@srcdir@,$srcdir,;t t | ||
| 12416 | s,@lispdir@,$lispdir,;t t | ||
| 12417 | s,@locallisppath@,$locallisppath,;t t | ||
| 12418 | s,@lisppath@,$lisppath,;t t | ||
| 12419 | s,@x_default_search_path@,$x_default_search_path,;t t | ||
| 12420 | s,@etcdir@,$etcdir,;t t | ||
| 12421 | s,@archlibdir@,$archlibdir,;t t | ||
| 12422 | s,@docdir@,$docdir,;t t | ||
| 12423 | s,@bitmapdir@,$bitmapdir,;t t | ||
| 12424 | s,@c_switch_system@,$c_switch_system,;t t | ||
| 12425 | s,@c_switch_machine@,$c_switch_machine,;t t | ||
| 12426 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | ||
| 12427 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | ||
| 12428 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | ||
| 12429 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | ||
| 12430 | s,@machfile@,$machfile,;t t | ||
| 12431 | s,@opsysfile@,$opsysfile,;t t | ||
| 12432 | CEOF | ||
| 12433 | |||
| 12434 | EOF | ||
| 12435 | |||
| 12436 | cat >>$CONFIG_STATUS <<\EOF | ||
| 12437 | # Split the substitutions into bite-sized pieces for seds with | ||
| 12438 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
| 12439 | ac_max_sed_lines=48 | ||
| 12440 | ac_sed_frag=1 # Number of current file. | ||
| 12441 | ac_beg=1 # First line for current file. | ||
| 12442 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
| 12443 | ac_more_lines=: | ||
| 12444 | ac_sed_cmds= | ||
| 12445 | while $ac_more_lines; do | ||
| 12446 | if test $ac_beg -gt 1; then | ||
| 12447 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
| 12448 | else | ||
| 12449 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
| 12450 | fi | ||
| 12451 | if test ! -s $tmp/subs.frag; then | ||
| 12452 | ac_more_lines=false | ||
| 12453 | else | ||
| 12454 | # The purpose of the label and of the branching condition is to | ||
| 12455 | # speed up the sed processing (if there are no `@' at all, there | ||
| 12456 | # is no need to browse any of the substitutions). | ||
| 12457 | # These are the two extra sed commands mentioned above. | ||
| 12458 | (echo ':t | ||
| 12459 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
| 12460 | if test -z "$ac_sed_cmds"; then | ||
| 12461 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
| 12462 | else | ||
| 12463 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
| 12464 | fi | ||
| 12465 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
| 12466 | ac_beg=$ac_end | ||
| 12467 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
| 12468 | fi | ||
| 12469 | done | ||
| 12470 | if test -z "$ac_sed_cmds"; then | ||
| 12471 | ac_sed_cmds=cat | ||
| 12472 | fi | ||
| 12473 | fi # test -n "$CONFIG_FILES" | ||
| 9110 | 12474 | ||
| 9111 | CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | ||
| 9112 | man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | ||
| 9113 | lisp/Makefile leim/Makefile"} | ||
| 9114 | EOF | 12475 | EOF |
| 9115 | cat >> $CONFIG_STATUS <<\EOF | 12476 | cat >>$CONFIG_STATUS <<\EOF |
| 9116 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 12477 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9117 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 12478 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9118 | case "$ac_file" in | 12479 | case $ac_file in |
| 9119 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 12480 | - | *:- | *:-:* ) # input from stdin |
| 9120 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 12481 | cat >$tmp/stdin |
| 9121 | *) ac_file_in="${ac_file}.in" ;; | 12482 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12483 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 12484 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
| 12485 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 12486 | * ) ac_file_in=$ac_file.in ;; | ||
| 9122 | esac | 12487 | esac |
| 9123 | 12488 | ||
| 9124 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 12489 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 9125 | 12490 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 9126 | # Remove last slash and all that follows it. Not all systems have dirname. | 12491 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9127 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 12492 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12493 | X"$ac_file" : 'X\(/\)' \| \ | ||
| 12494 | . : '\(.\)' 2>/dev/null || | ||
| 12495 | echo X"$ac_file" | | ||
| 12496 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 12497 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 12498 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 12499 | /^X\(\/\).*/{ s//\1/; q; } | ||
| 12500 | s/.*/./; q'` | ||
| 9128 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 12501 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 9129 | # The file is in a subdirectory. | 12502 | { case "$ac_dir" in |
| 9130 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 12503 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 9131 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 12504 | *) as_incr_dir=.;; |
| 12505 | esac | ||
| 12506 | as_dummy="$ac_dir" | ||
| 12507 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
| 12508 | case $as_mkdir_dir in | ||
| 12509 | # Skip DOS drivespec | ||
| 12510 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
| 12511 | *) | ||
| 12512 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
| 12513 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
| 12514 | ;; | ||
| 12515 | esac | ||
| 12516 | done; } | ||
| 12517 | |||
| 12518 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | ||
| 9132 | # A "../" for each directory in $ac_dir_suffix. | 12519 | # A "../" for each directory in $ac_dir_suffix. |
| 9133 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 12520 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
| 9134 | else | 12521 | else |
| 9135 | ac_dir_suffix= ac_dots= | 12522 | ac_dir_suffix= ac_dots= |
| 9136 | fi | 12523 | fi |
| 9137 | 12524 | ||
| 9138 | case "$ac_given_srcdir" in | 12525 | case $srcdir in |
| 9139 | .) srcdir=. | 12526 | .) ac_srcdir=. |
| 9140 | if test -z "$ac_dots"; then top_srcdir=. | 12527 | if test -z "$ac_dots"; then |
| 9141 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 12528 | ac_top_srcdir=. |
| 9142 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 12529 | else |
| 12530 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | ||
| 12531 | fi ;; | ||
| 12532 | [\\/]* | ?:[\\/]* ) | ||
| 12533 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
| 12534 | ac_top_srcdir=$srcdir ;; | ||
| 9143 | *) # Relative path. | 12535 | *) # Relative path. |
| 9144 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 12536 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
| 9145 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | 12537 | ac_top_srcdir=$ac_dots$srcdir ;; |
| 9146 | esac | 12538 | esac |
| 9147 | 12539 | ||
| 9148 | case "$ac_given_INSTALL" in | 12540 | case $INSTALL in |
| 9149 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | 12541 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 9150 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 12542 | *) ac_INSTALL=$ac_dots$INSTALL ;; |
| 9151 | esac | 12543 | esac |
| 9152 | 12544 | ||
| 9153 | echo creating "$ac_file" | 12545 | if test x"$ac_file" != x-; then |
| 9154 | rm -f "$ac_file" | 12546 | { echo "$as_me:12546: creating $ac_file" >&5 |
| 9155 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 12547 | echo "$as_me: creating $ac_file" >&6;} |
| 9156 | case "$ac_file" in | 12548 | rm -f "$ac_file" |
| 9157 | *Makefile*) ac_comsub="1i\\ | 12549 | fi |
| 9158 | # $configure_input" ;; | 12550 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9159 | *) ac_comsub= ;; | 12551 | # use $as_me), people would be surprised to read: |
| 9160 | esac | 12552 | # /* config.h. Generated automatically by config.status. */ |
| 12553 | configure_input="Generated automatically from `echo $ac_file_in | | ||
| 12554 | sed 's,.*/,,'` by configure." | ||
| 12555 | |||
| 12556 | # First look for the input files in the build tree, otherwise in the | ||
| 12557 | # src tree. | ||
| 12558 | ac_file_inputs=`IFS=: | ||
| 12559 | for f in $ac_file_in; do | ||
| 12560 | case $f in | ||
| 12561 | -) echo $tmp/stdin ;; | ||
| 12562 | [\\/$]*) | ||
| 12563 | # Absolute (can't be DOS-style, as IFS=:) | ||
| 12564 | test -f "$f" || { { echo "$as_me:12564: error: cannot find input file: $f" >&5 | ||
| 12565 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
| 12566 | { (exit 1); exit 1; }; } | ||
| 12567 | echo $f;; | ||
| 12568 | *) # Relative | ||
| 12569 | if test -f "$f"; then | ||
| 12570 | # Build tree | ||
| 12571 | echo $f | ||
| 12572 | elif test -f "$srcdir/$f"; then | ||
| 12573 | # Source tree | ||
| 12574 | echo $srcdir/$f | ||
| 12575 | else | ||
| 12576 | # /dev/null tree | ||
| 12577 | { { echo "$as_me:12577: error: cannot find input file: $f" >&5 | ||
| 12578 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
| 12579 | { (exit 1); exit 1; }; } | ||
| 12580 | fi;; | ||
| 12581 | esac | ||
| 12582 | done` || { (exit 1); exit 1; } | ||
| 12583 | EOF | ||
| 12584 | cat >>$CONFIG_STATUS <<EOF | ||
| 12585 | sed "$ac_vpsub | ||
| 12586 | $extrasub | ||
| 12587 | EOF | ||
| 12588 | cat >>$CONFIG_STATUS <<\EOF | ||
| 12589 | :t | ||
| 12590 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
| 12591 | s,@configure_input@,$configure_input,;t t | ||
| 12592 | s,@srcdir@,$ac_srcdir,;t t | ||
| 12593 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
| 12594 | s,@INSTALL@,$ac_INSTALL,;t t | ||
| 12595 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
| 12596 | rm -f $tmp/stdin | ||
| 12597 | if test x"$ac_file" != x-; then | ||
| 12598 | mv $tmp/out $ac_file | ||
| 12599 | else | ||
| 12600 | cat $tmp/out | ||
| 12601 | rm -f $tmp/out | ||
| 12602 | fi | ||
| 9161 | 12603 | ||
| 9162 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 12604 | done |
| 9163 | sed -e "$ac_comsub | 12605 | EOF |
| 9164 | s%@configure_input@%$configure_input%g | 12606 | cat >>$CONFIG_STATUS <<\EOF |
| 9165 | s%@srcdir@%$srcdir%g | 12607 | |
| 9166 | s%@top_srcdir@%$top_srcdir%g | 12608 | # |
| 9167 | s%@INSTALL@%$INSTALL%g | 12609 | # CONFIG_HEADER section. |
| 9168 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 12610 | # |
| 9169 | fi; done | ||
| 9170 | rm -f conftest.s* | ||
| 9171 | 12611 | ||
| 9172 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 12612 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 9173 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 12613 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 9174 | # | 12614 | # |
| 9175 | # ac_d sets the value in "#define NAME VALUE" lines. | 12615 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 9176 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | 12616 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 9177 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | 12617 | ac_dB='[ ].*$,\1#\2' |
| 9178 | ac_dC='\3' | 12618 | ac_dC=' ' |
| 9179 | ac_dD='%g' | 12619 | ac_dD=',;t' |
| 9180 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | 12620 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 9181 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | 12621 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 9182 | ac_uB='\([ ]\)%\1#\2define\3' | 12622 | ac_uB='$,\1#\2define\3' |
| 9183 | ac_uC=' ' | 12623 | ac_uC=' ' |
| 9184 | ac_uD='\4%g' | 12624 | ac_uD=',;t' |
| 9185 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
| 9186 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
| 9187 | ac_eB='$%\1#\2define\3' | ||
| 9188 | ac_eC=' ' | ||
| 9189 | ac_eD='%g' | ||
| 9190 | 12625 | ||
| 9191 | if test "${CONFIG_HEADERS+set}" != set; then | 12626 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 9192 | EOF | ||
| 9193 | cat >> $CONFIG_STATUS <<EOF | ||
| 9194 | CONFIG_HEADERS="src/config.h:src/config.in" | ||
| 9195 | EOF | ||
| 9196 | cat >> $CONFIG_STATUS <<\EOF | ||
| 9197 | fi | ||
| 9198 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | ||
| 9199 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 12627 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9200 | case "$ac_file" in | 12628 | case $ac_file in |
| 9201 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 12629 | - | *:- | *:-:* ) # input from stdin |
| 9202 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 12630 | cat >$tmp/stdin |
| 9203 | *) ac_file_in="${ac_file}.in" ;; | 12631 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12632 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 12633 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
| 12634 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 12635 | * ) ac_file_in=$ac_file.in ;; | ||
| 9204 | esac | 12636 | esac |
| 9205 | 12637 | ||
| 9206 | echo creating $ac_file | 12638 | test x"$ac_file" != x- && { echo "$as_me:12638: creating $ac_file" >&5 |
| 9207 | 12639 | echo "$as_me: creating $ac_file" >&6;} | |
| 9208 | rm -f conftest.frag conftest.in conftest.out | 12640 | |
| 9209 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 12641 | # First look for the input files in the build tree, otherwise in the |
| 9210 | cat $ac_file_inputs > conftest.in | 12642 | # src tree. |
| 9211 | 12643 | ac_file_inputs=`IFS=: | |
| 9212 | EOF | 12644 | for f in $ac_file_in; do |
| 9213 | 12645 | case $f in | |
| 9214 | # Transform confdefs.h into a sed script conftest.vals that substitutes | 12646 | -) echo $tmp/stdin ;; |
| 9215 | # the proper values into config.h.in to produce config.h. And first: | 12647 | [\\/$]*) |
| 9216 | # Protect against being on the right side of a sed subst in config.status. | 12648 | # Absolute (can't be DOS-style, as IFS=:) |
| 9217 | # Protect against being in an unquoted here document in config.status. | 12649 | test -f "$f" || { { echo "$as_me:12649: error: cannot find input file: $f" >&5 |
| 9218 | rm -f conftest.vals | 12650 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9219 | cat > conftest.hdr <<\EOF | 12651 | { (exit 1); exit 1; }; } |
| 9220 | s/[\\&%]/\\&/g | 12652 | echo $f;; |
| 9221 | s%[\\$`]%\\&%g | 12653 | *) # Relative |
| 9222 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | 12654 | if test -f "$f"; then |
| 9223 | s%ac_d%ac_u%gp | 12655 | # Build tree |
| 9224 | s%ac_u%ac_e%gp | 12656 | echo $f |
| 9225 | EOF | 12657 | elif test -f "$srcdir/$f"; then |
| 9226 | sed -n -f conftest.hdr confdefs.h > conftest.vals | 12658 | # Source tree |
| 9227 | rm -f conftest.hdr | 12659 | echo $srcdir/$f |
| 12660 | else | ||
| 12661 | # /dev/null tree | ||
| 12662 | { { echo "$as_me:12662: error: cannot find input file: $f" >&5 | ||
| 12663 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
| 12664 | { (exit 1); exit 1; }; } | ||
| 12665 | fi;; | ||
| 12666 | esac | ||
| 12667 | done` || { (exit 1); exit 1; } | ||
| 12668 | # Remove the trailing spaces. | ||
| 12669 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
| 12670 | |||
| 12671 | EOF | ||
| 12672 | |||
| 12673 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
| 12674 | # `conftest.undefs', that substitutes the proper values into | ||
| 12675 | # config.h.in to produce config.h. The first handles `#define' | ||
| 12676 | # templates, and the second `#undef' templates. | ||
| 12677 | # And first: Protect against being on the right side of a sed subst in | ||
| 12678 | # config.status. Protect against being in an unquoted here document | ||
| 12679 | # in config.status. | ||
| 12680 | rm -f conftest.defines conftest.undefs | ||
| 12681 | # Using a here document instead of a string reduces the quoting nightmare. | ||
| 12682 | # Putting comments in sed scripts is not portable. | ||
| 12683 | # | ||
| 12684 | # `end' is used to avoid that the second main sed command (meant for | ||
| 12685 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
| 12686 | # See the Autoconf documentation for `clear'. | ||
| 12687 | cat >confdef2sed.sed <<\EOF | ||
| 12688 | s/[\\&,]/\\&/g | ||
| 12689 | s,[\\$`],\\&,g | ||
| 12690 | t clear | ||
| 12691 | : clear | ||
| 12692 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | ||
| 12693 | t end | ||
| 12694 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
| 12695 | : end | ||
| 12696 | EOF | ||
| 12697 | # If some macros were called several times there might be several times | ||
| 12698 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
| 12699 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
| 12700 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
| 12701 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
| 12702 | rm -f confdef2sed.sed | ||
| 9228 | 12703 | ||
| 9229 | # This sed command replaces #undef with comments. This is necessary, for | 12704 | # This sed command replaces #undef with comments. This is necessary, for |
| 9230 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 12705 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 9231 | # on some systems where configure will not decide to define it. | 12706 | # on some systems where configure will not decide to define it. |
| 9232 | cat >> conftest.vals <<\EOF | 12707 | cat >>conftest.undefs <<\EOF |
| 9233 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 12708 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 9234 | EOF | 12709 | EOF |
| 9235 | 12710 | ||
| 9236 | # Break up conftest.vals because some shells have a limit on | 12711 | # Break up conftest.defines because some shells have a limit on the size |
| 9237 | # the size of here documents, and old seds have small limits too. | 12712 | # of here documents, and old seds have small limits too (100 cmds). |
| 12713 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
| 12714 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
| 12715 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
| 12716 | echo ' :' >>$CONFIG_STATUS | ||
| 12717 | rm -f conftest.tail | ||
| 12718 | while grep . conftest.defines >/dev/null | ||
| 12719 | do | ||
| 12720 | # Write a limited-size here document to $tmp/defines.sed. | ||
| 12721 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
| 12722 | # Speed up: don't consider the non `#define' lines. | ||
| 12723 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
| 12724 | # Work around the forget-to-reset-the-flag bug. | ||
| 12725 | echo 't clr' >>$CONFIG_STATUS | ||
| 12726 | echo ': clr' >>$CONFIG_STATUS | ||
| 12727 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
| 12728 | echo 'CEOF | ||
| 12729 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
| 12730 | rm -f $tmp/in | ||
| 12731 | mv $tmp/out $tmp/in | ||
| 12732 | ' >>$CONFIG_STATUS | ||
| 12733 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
| 12734 | rm -f conftest.defines | ||
| 12735 | mv conftest.tail conftest.defines | ||
| 12736 | done | ||
| 12737 | rm -f conftest.defines | ||
| 12738 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
| 12739 | echo >>$CONFIG_STATUS | ||
| 9238 | 12740 | ||
| 12741 | # Break up conftest.undefs because some shells have a limit on the size | ||
| 12742 | # of here documents, and old seds have small limits too (100 cmds). | ||
| 12743 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
| 9239 | rm -f conftest.tail | 12744 | rm -f conftest.tail |
| 9240 | while : | 12745 | while grep . conftest.undefs >/dev/null |
| 9241 | do | 12746 | do |
| 9242 | ac_lines=`grep -c . conftest.vals` | 12747 | # Write a limited-size here document to $tmp/undefs.sed. |
| 9243 | # grep -c gives empty output for an empty file on some AIX systems. | 12748 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 9244 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 12749 | # Speed up: don't consider the non `#undef' |
| 9245 | # Write a limited-size here document to conftest.frag. | 12750 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 9246 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 12751 | # Work around the forget-to-reset-the-flag bug. |
| 9247 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 12752 | echo 't clr' >>$CONFIG_STATUS |
| 12753 | echo ': clr' >>$CONFIG_STATUS | ||
| 12754 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
| 9248 | echo 'CEOF | 12755 | echo 'CEOF |
| 9249 | sed -f conftest.frag conftest.in > conftest.out | 12756 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 9250 | rm -f conftest.in | 12757 | rm -f $tmp/in |
| 9251 | mv conftest.out conftest.in | 12758 | mv $tmp/out $tmp/in |
| 9252 | ' >> $CONFIG_STATUS | 12759 | ' >>$CONFIG_STATUS |
| 9253 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 12760 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 9254 | rm -f conftest.vals | 12761 | rm -f conftest.undefs |
| 9255 | mv conftest.tail conftest.vals | 12762 | mv conftest.tail conftest.undefs |
| 9256 | done | 12763 | done |
| 9257 | rm -f conftest.vals | 12764 | rm -f conftest.undefs |
| 9258 | 12765 | ||
| 9259 | cat >> $CONFIG_STATUS <<\EOF | 12766 | cat >>$CONFIG_STATUS <<\EOF |
| 9260 | rm -f conftest.frag conftest.h | 12767 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9261 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | 12768 | # use $as_me), people would be surprised to read: |
| 9262 | cat conftest.in >> conftest.h | 12769 | # /* config.h. Generated automatically by config.status. */ |
| 9263 | rm -f conftest.in | 12770 | if test x"$ac_file" = x-; then |
| 9264 | if cmp -s $ac_file conftest.h 2>/dev/null; then | 12771 | echo "/* Generated automatically by configure. */" >$tmp/config.h |
| 9265 | echo "$ac_file is unchanged" | ||
| 9266 | rm -f conftest.h | ||
| 9267 | else | 12772 | else |
| 9268 | # Remove last slash and all that follows it. Not all systems have dirname. | 12773 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
| 9269 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 12774 | fi |
| 12775 | cat $tmp/in >>$tmp/config.h | ||
| 12776 | rm -f $tmp/in | ||
| 12777 | if test x"$ac_file" != x-; then | ||
| 12778 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
| 12779 | { echo "$as_me:12779: $ac_file is unchanged" >&5 | ||
| 12780 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
| 12781 | else | ||
| 12782 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 12783 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
| 12784 | X"$ac_file" : 'X\(//\)$' \| \ | ||
| 12785 | X"$ac_file" : 'X\(/\)' \| \ | ||
| 12786 | . : '\(.\)' 2>/dev/null || | ||
| 12787 | echo X"$ac_file" | | ||
| 12788 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 12789 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 12790 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 12791 | /^X\(\/\).*/{ s//\1/; q; } | ||
| 12792 | s/.*/./; q'` | ||
| 9270 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 12793 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 9271 | # The file is in a subdirectory. | 12794 | { case "$ac_dir" in |
| 9272 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 12795 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 12796 | *) as_incr_dir=.;; | ||
| 12797 | esac | ||
| 12798 | as_dummy="$ac_dir" | ||
| 12799 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
| 12800 | case $as_mkdir_dir in | ||
| 12801 | # Skip DOS drivespec | ||
| 12802 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
| 12803 | *) | ||
| 12804 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
| 12805 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
| 12806 | ;; | ||
| 12807 | esac | ||
| 12808 | done; } | ||
| 12809 | |||
| 12810 | fi | ||
| 12811 | rm -f $ac_file | ||
| 12812 | mv $tmp/config.h $ac_file | ||
| 9273 | fi | 12813 | fi |
| 9274 | rm -f $ac_file | 12814 | else |
| 9275 | mv conftest.h $ac_file | 12815 | cat $tmp/config.h |
| 12816 | rm -f $tmp/config.h | ||
| 9276 | fi | 12817 | fi |
| 9277 | fi; done | 12818 | done |
| 9278 | |||
| 9279 | EOF | ||
| 9280 | cat >> $CONFIG_STATUS <<EOF | ||
| 9281 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | ||
| 9282 | EOF | 12819 | EOF |
| 9283 | cat >> $CONFIG_STATUS <<\EOF | 12820 | cat >>$CONFIG_STATUS <<\EOF |
| 12821 | |||
| 12822 | # | ||
| 12823 | # CONFIG_COMMANDS section. | ||
| 12824 | # | ||
| 12825 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | ||
| 12826 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | ||
| 12827 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
| 9284 | 12828 | ||
| 12829 | case $ac_dest in | ||
| 12830 | default ) | ||
| 9285 | 12831 | ||
| 9286 | ### Make the necessary directories, if they don't exist. | 12832 | ### Make the necessary directories, if they don't exist. |
| 9287 | for dir in etc lisp ; do | 12833 | for dir in etc lisp ; do |
| @@ -9321,7 +12867,7 @@ echo creating lib-src/Makefile | |||
| 9321 | sed -e '1,/start of cpp stuff/d'\ | 12867 | sed -e '1,/start of cpp stuff/d'\ |
| 9322 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ | 12868 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 9323 | < Makefile.c > junk.c | 12869 | < Makefile.c > junk.c |
| 9324 | $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | 12870 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 9325 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | 12871 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
| 9326 | cat junk1.c junk2.c > Makefile.new | 12872 | cat junk1.c junk2.c > Makefile.new |
| 9327 | rm -f junk.c junk1.c junk2.c | 12873 | rm -f junk.c junk1.c junk2.c |
| @@ -9337,7 +12883,7 @@ echo creating src/Makefile | |||
| 9337 | sed -e '1,/start of cpp stuff/d'\ | 12883 | sed -e '1,/start of cpp stuff/d'\ |
| 9338 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ | 12884 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 9339 | < Makefile.c > junk.c | 12885 | < Makefile.c > junk.c |
| 9340 | $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | 12886 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 9341 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | 12887 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
| 9342 | cat junk1.c junk2.c > Makefile.new | 12888 | cat junk1.c junk2.c > Makefile.new |
| 9343 | rm -f junk.c junk1.c junk2.c | 12889 | rm -f junk.c junk1.c junk2.c |
| @@ -9345,19 +12891,41 @@ echo creating src/Makefile | |||
| 9345 | mv -f Makefile.new Makefile | 12891 | mv -f Makefile.new Makefile |
| 9346 | ) | 12892 | ) |
| 9347 | 12893 | ||
| 9348 | if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then | 12894 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
| 9349 | echo creating src/.gdbinit | 12895 | echo creating src/.gdbinit |
| 9350 | echo source $top_srcdir/src/.gdbinit > src/.gdbinit | 12896 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
| 9351 | fi | 12897 | fi |
| 9352 | 12898 | ||
| 9353 | # This is how we know whether to re-run configure in certain cases. | 12899 | # This is how we know whether to re-run configure in certain cases. |
| 9354 | touch src/config.stamp | 12900 | touch src/config.stamp |
| 9355 | 12901 | ||
| 12902 | ;; | ||
| 12903 | esac | ||
| 12904 | done | ||
| 12905 | EOF | ||
| 12906 | |||
| 12907 | cat >>$CONFIG_STATUS <<\EOF | ||
| 9356 | 12908 | ||
| 9357 | exit 0 | 12909 | { (exit 0); exit 0; } |
| 9358 | EOF | 12910 | EOF |
| 9359 | chmod +x $CONFIG_STATUS | 12911 | chmod +x $CONFIG_STATUS |
| 9360 | rm -fr confdefs* $ac_clean_files | 12912 | ac_clean_files=$ac_clean_files_save |
| 9361 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 12913 | |
| 9362 | 12914 | # configure is writing to config.log, and then calls config.status. | |
| 12915 | # config.status does its own redirection, appending to config.log. | ||
| 12916 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
| 12917 | # by configure, so config.status won't be able to write to it; its | ||
| 12918 | # output is simply discarded. So we exec the FD to /dev/null, | ||
| 12919 | # effectively closing config.log, so it can be properly (re)opened and | ||
| 12920 | # appended to by config.status. When coming back to configure, we | ||
| 12921 | # need to make the FD available again. | ||
| 12922 | if test "$no_create" != yes; then | ||
| 12923 | ac_cs_success=: | ||
| 12924 | exec 5>/dev/null | ||
| 12925 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
| 12926 | exec 5>>config.log | ||
| 12927 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
| 12928 | # would make configure fail if this is the last instruction. | ||
| 12929 | $ac_cs_success || { (exit 1); exit 1; } | ||
| 12930 | fi | ||
| 9363 | 12931 | ||